Skip to content

Commit

Permalink
chore: Export sources array (#6206)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven authored Feb 8, 2025
1 parent f1cd253 commit 8aeb4d6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-insects-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/service-utils": patch
---

Export usageV2 sources
20 changes: 11 additions & 9 deletions packages/service-utils/src/core/usageV2.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
export type UsageV2Source =
| "bundler"
| "engine"
| "insight"
| "nebula"
| "rpc"
| "sdk"
| "storage"
| "wallet";
export const USAGE_V2_SOURCES = [
"bundler",
"engine",
"insight",
"nebula",
"rpc",
"sdk",
"storage",
"wallet",
] as const;
export type UsageV2Source = (typeof USAGE_V2_SOURCES)[number];
export function getTopicName(source: UsageV2Source) {
return `usage_v2.raw_${source}`;
}
Expand Down

0 comments on commit 8aeb4d6

Please sign in to comment.