We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1cd253 commit 8aeb4d6Copy full SHA for 8aeb4d6
.changeset/short-insects-fry.md
@@ -0,0 +1,5 @@
1
+---
2
+"@thirdweb-dev/service-utils": patch
3
4
+
5
+Export usageV2 sources
packages/service-utils/src/core/usageV2.ts
@@ -1,12 +1,14 @@
-export type UsageV2Source =
- | "bundler"
- | "engine"
- | "insight"
- | "nebula"
6
- | "rpc"
7
- | "sdk"
8
- | "storage"
9
- | "wallet";
+export const USAGE_V2_SOURCES = [
+ "bundler",
+ "engine",
+ "insight",
+ "nebula",
+ "rpc",
+ "sdk",
+ "storage",
+ "wallet",
10
+] as const;
11
+export type UsageV2Source = (typeof USAGE_V2_SOURCES)[number];
12
export function getTopicName(source: UsageV2Source) {
13
return `usage_v2.raw_${source}`;
14
}
0 commit comments