Skip to content

Commit 8aeb4d6

Browse files
authored
chore: Export sources array (#6206)
1 parent f1cd253 commit 8aeb4d6

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

.changeset/short-insects-fry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": patch
3+
---
4+
5+
Export usageV2 sources

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)