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 9490d5f commit 7130c62Copy full SHA for 7130c62
.changeset/healthy-cups-refuse.md
packages/service-utils/src/core/usageV2.ts
@@ -1,12 +1,14 @@
1
-export type UsageV2Source =
2
- | "bundler"
3
- | "engine"
4
- | "insight"
5
- | "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