Skip to content

Commit 1c73255

Browse files
committed
chore: Export usageV2 sources array
1 parent fe449dc commit 1c73255

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

packages/service-utils/src/core/usageV2.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
export type UsageV2Source =
2-
| "bundler"
3-
| "engine"
4-
| "insight"
5-
| "nebula"
6-
| "rpc"
7-
| "sdk"
8-
| "storage"
9-
| "wallet";
1+
export const USAGE_V2_SOURCES = [
2+
"bundler",
3+
"engine",
4+
"insight",
5+
"nebula",
6+
"rpc",
7+
"sdk",
8+
"storage",
9+
"wallet",
10+
] as const;
11+
export type UsageV2Source = (typeof USAGE_V2_SOURCES)[number];
1012
export function getTopicName(source: UsageV2Source) {
1113
return `usage_v2.raw_${source}`;
1214
}

0 commit comments

Comments
 (0)