@shware/analytics 0.1.1 → 0.1.2
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/dist/index.d.mts +3 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -28,6 +28,7 @@ declare function setVisitor(properties: VisitorProperties): Promise<Visitor>;
|
|
|
28
28
|
|
|
29
29
|
declare const createTrackEventSchema: z.ZodObject<{
|
|
30
30
|
name: z.ZodString;
|
|
31
|
+
visitor_id: z.ZodBigInt;
|
|
31
32
|
tags: z.ZodObject<{
|
|
32
33
|
os: z.ZodOptional<z.ZodString>;
|
|
33
34
|
os_name: z.ZodOptional<z.ZodString>;
|
|
@@ -115,6 +116,7 @@ declare const createTrackEventSchema: z.ZodObject<{
|
|
|
115
116
|
}>;
|
|
116
117
|
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
117
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
visitor_id: bigint;
|
|
118
120
|
name: string;
|
|
119
121
|
tags: {
|
|
120
122
|
os?: string | undefined;
|
|
@@ -147,6 +149,7 @@ declare const createTrackEventSchema: z.ZodObject<{
|
|
|
147
149
|
};
|
|
148
150
|
properties: Record<string, string | number | boolean | null>;
|
|
149
151
|
}, {
|
|
152
|
+
visitor_id: bigint;
|
|
150
153
|
name: string;
|
|
151
154
|
tags: {
|
|
152
155
|
os?: string | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -92,6 +92,7 @@ function track(name, properties, trackOptions = defaultOptions) {
|
|
|
92
92
|
|
|
93
93
|
const createTrackEventSchema = z.object({
|
|
94
94
|
name: z.string().trim().min(1).max(64),
|
|
95
|
+
visitor_id: z.coerce.bigint(),
|
|
95
96
|
tags: z.object({
|
|
96
97
|
os: z.string().optional(),
|
|
97
98
|
os_name: z.string().optional(),
|