@thirdweb-dev/service-utils 0.4.17-nightly-09de55f1-20240208224959 → 0.4.17-nightly-537e5e06-20240209005454
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.dev.js +2 -1
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +2 -1
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +2 -1
- package/dist/declarations/src/cf-worker/usage.d.ts +3 -0
- package/dist/declarations/src/cf-worker/usage.d.ts.map +1 -1
- package/package.json +1 -1
@@ -58,7 +58,8 @@ const usageEventSchema = zod.z.object({
|
|
58
58
|
retryCount: zod.z.number().int().nonnegative().optional(),
|
59
59
|
policyId: zod.z.string().optional(),
|
60
60
|
msSinceQueue: zod.z.number().nonnegative().optional(),
|
61
|
-
msSinceSend: zod.z.number().nonnegative().optional()
|
61
|
+
msSinceSend: zod.z.number().nonnegative().optional(),
|
62
|
+
msTotalDuration: zod.z.number().nonnegative().optional()
|
62
63
|
});
|
63
64
|
/**
|
64
65
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -58,7 +58,8 @@ const usageEventSchema = zod.z.object({
|
|
58
58
|
retryCount: zod.z.number().int().nonnegative().optional(),
|
59
59
|
policyId: zod.z.string().optional(),
|
60
60
|
msSinceQueue: zod.z.number().nonnegative().optional(),
|
61
|
-
msSinceSend: zod.z.number().nonnegative().optional()
|
61
|
+
msSinceSend: zod.z.number().nonnegative().optional(),
|
62
|
+
msTotalDuration: zod.z.number().nonnegative().optional()
|
62
63
|
});
|
63
64
|
/**
|
64
65
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -55,7 +55,8 @@ const usageEventSchema = z.object({
|
|
55
55
|
retryCount: z.number().int().nonnegative().optional(),
|
56
56
|
policyId: z.string().optional(),
|
57
57
|
msSinceQueue: z.number().nonnegative().optional(),
|
58
|
-
msSinceSend: z.number().nonnegative().optional()
|
58
|
+
msSinceSend: z.number().nonnegative().optional(),
|
59
|
+
msTotalDuration: z.number().nonnegative().optional()
|
59
60
|
});
|
60
61
|
/**
|
61
62
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -41,6 +41,7 @@ declare const usageEventSchema: z.ZodObject<{
|
|
41
41
|
policyId: z.ZodOptional<z.ZodString>;
|
42
42
|
msSinceQueue: z.ZodOptional<z.ZodNumber>;
|
43
43
|
msSinceSend: z.ZodOptional<z.ZodNumber>;
|
44
|
+
msTotalDuration: z.ZodOptional<z.ZodNumber>;
|
44
45
|
}, "strip", z.ZodTypeAny, {
|
45
46
|
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "paymaster" | "connectWallet" | "engine";
|
46
47
|
action: string;
|
@@ -77,6 +78,7 @@ declare const usageEventSchema: z.ZodObject<{
|
|
77
78
|
policyId?: string | undefined;
|
78
79
|
msSinceQueue?: number | undefined;
|
79
80
|
msSinceSend?: number | undefined;
|
81
|
+
msTotalDuration?: number | undefined;
|
80
82
|
}, {
|
81
83
|
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "paymaster" | "connectWallet" | "engine";
|
82
84
|
action: string;
|
@@ -113,6 +115,7 @@ declare const usageEventSchema: z.ZodObject<{
|
|
113
115
|
policyId?: string | undefined;
|
114
116
|
msSinceQueue?: number | undefined;
|
115
117
|
msSinceSend?: number | undefined;
|
118
|
+
msTotalDuration?: number | undefined;
|
116
119
|
}>;
|
117
120
|
export type UsageEvent = z.infer<typeof usageEventSchema>;
|
118
121
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"../../../../src/cf-worker","sources":["usage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;GAEG;AACH,QAAA,MAAM,gBAAgB;;;IAcpB;;OAEG
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"../../../../src/cf-worker","sources":["usage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;GAEG;AACH,QAAA,MAAM,gBAAgB;;;IAcpB;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCH,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,UAAU,EAAE,EACzB,MAAM,EAAE;IACN,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACA,OAAO,CAAC,IAAI,CAAC,CAiCf"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@thirdweb-dev/service-utils",
|
3
|
-
"version": "0.4.17-nightly-
|
3
|
+
"version": "0.4.17-nightly-537e5e06-20240209005454",
|
4
4
|
"main": "dist/thirdweb-dev-service-utils.cjs.js",
|
5
5
|
"module": "dist/thirdweb-dev-service-utils.esm.js",
|
6
6
|
"exports": {
|