Skip to content

Commit 18f0e57

Browse files
authored
[service-utils] Update list of usageV2 sources (#6183)
1 parent e732b11 commit 18f0e57

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.changeset/healthy-cups-refuse.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+
[service-utils] Update list of usageV2 sources"

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
import type { ServiceName } from "./services.js";
2-
3-
export type UsageV2Source = ServiceName | "sdk";
1+
export type UsageV2Source =
2+
| "bundler"
3+
| "engine"
4+
| "insight"
5+
| "nebula"
6+
| "rpc"
7+
| "sdk"
8+
| "storage"
9+
| "wallet";
10+
export function getTopicName(source: UsageV2Source) {
11+
return `usage_v2.raw_${source}`;
12+
}
413

514
export interface UsageV2Event {
615
/**
@@ -54,7 +63,3 @@ export interface UsageV2Event {
5463
*/
5564
[key: string]: boolean | number | string | Date | null | undefined;
5665
}
57-
58-
export function getTopicName(source: UsageV2Source) {
59-
return `usage_v2.raw_${source}`;
60-
}

0 commit comments

Comments
 (0)