@chordcommerce/analytics 1.17.1 → 1.18.0

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.
Files changed (48) hide show
  1. package/README.md +8 -0
  2. package/dist/cjs/client/cdp.d.ts +3 -0
  3. package/dist/cjs/client/cdp.js +123 -0
  4. package/dist/cjs/client/consent/index.d.ts +11 -0
  5. package/dist/cjs/client/consent/index.js +241 -0
  6. package/dist/cjs/client/consent/ketch.d.ts +16 -0
  7. package/dist/cjs/client/consent/ketch.js +53 -0
  8. package/dist/cjs/client/consent/onetrust.d.ts +22 -0
  9. package/dist/cjs/client/consent/onetrust.js +61 -0
  10. package/dist/cjs/client/consent/segment.d.ts +17 -0
  11. package/dist/cjs/client/consent/segment.js +155 -0
  12. package/dist/cjs/client/consent/shopify.d.ts +21 -0
  13. package/dist/cjs/client/consent/shopify.js +51 -0
  14. package/dist/cjs/client/index.d.ts +111 -0
  15. package/dist/cjs/client/index.js +861 -0
  16. package/dist/cjs/client/utils.d.ts +1 -0
  17. package/dist/cjs/client/utils.js +12 -0
  18. package/dist/cjs/index.d.ts +2 -0
  19. package/dist/cjs/index.js +18 -0
  20. package/dist/cjs/setupTests.d.ts +1 -0
  21. package/dist/cjs/setupTests.js +6 -0
  22. package/dist/cjs/types/client.d.ts +96 -0
  23. package/dist/cjs/types/client.js +2 -0
  24. package/dist/cjs/types/consent.d.ts +11 -0
  25. package/dist/cjs/types/consent.js +2 -0
  26. package/dist/cjs/types/formatters.d.ts +114 -0
  27. package/dist/cjs/types/formatters.js +2 -0
  28. package/dist/cjs/types/index.d.ts +7 -0
  29. package/dist/cjs/types/index.js +22 -0
  30. package/dist/cjs/types/input.d.ts +396 -0
  31. package/dist/cjs/types/input.js +2 -0
  32. package/dist/cjs/types/objects.d.ts +379 -0
  33. package/dist/cjs/types/objects.js +2 -0
  34. package/dist/cjs/types/typewriter.d.ts +6502 -0
  35. package/dist/cjs/types/typewriter.js +5 -0
  36. package/dist/cjs/utils.d.ts +2 -0
  37. package/dist/cjs/utils.js +25 -0
  38. package/dist/cjs/validators/custom.d.ts +43 -0
  39. package/dist/cjs/validators/custom.js +18 -0
  40. package/dist/cjs/validators/index.d.ts +4 -0
  41. package/dist/cjs/validators/index.js +20 -0
  42. package/dist/cjs/validators/objects.d.ts +696 -0
  43. package/dist/cjs/validators/objects.js +128 -0
  44. package/dist/cjs/validators/tracking-plan-map.d.ts +6603 -0
  45. package/dist/cjs/validators/tracking-plan-map.js +72 -0
  46. package/dist/cjs/validators/tracking-plan.d.ts +9275 -0
  47. package/dist/cjs/validators/tracking-plan.js +1682 -0
  48. package/package.json +4 -2
@@ -0,0 +1,696 @@
1
+ import { z } from 'zod';
2
+ export declare const identifyTraitsSchema: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
3
+ address: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
4
+ city: z.ZodOptional<z.ZodString>;
5
+ country: z.ZodOptional<z.ZodString>;
6
+ postalCode: z.ZodOptional<z.ZodString>;
7
+ state: z.ZodOptional<z.ZodString>;
8
+ street: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ city?: string;
11
+ country?: string;
12
+ postalCode?: string;
13
+ state?: string;
14
+ street?: string;
15
+ }, {
16
+ city?: string;
17
+ country?: string;
18
+ postalCode?: string;
19
+ state?: string;
20
+ street?: string;
21
+ }>>>;
22
+ age: z.ZodOptional<z.ZodNumber>;
23
+ avatar: z.ZodOptional<z.ZodString>;
24
+ birthday: z.ZodOptional<z.ZodString>;
25
+ company: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
26
+ name: z.ZodOptional<z.ZodString>;
27
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
28
+ industry: z.ZodOptional<z.ZodString>;
29
+ employeeCount: z.ZodOptional<z.ZodNumber>;
30
+ plan: z.ZodOptional<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ name?: string;
33
+ id?: string | number;
34
+ industry?: string;
35
+ employeeCount?: number;
36
+ plan?: string;
37
+ }, {
38
+ name?: string;
39
+ id?: string | number;
40
+ industry?: string;
41
+ employeeCount?: number;
42
+ plan?: string;
43
+ }>>>;
44
+ createdAt: z.ZodOptional<z.ZodString>;
45
+ description: z.ZodOptional<z.ZodString>;
46
+ email: z.ZodOptional<z.ZodString>;
47
+ firstName: z.ZodOptional<z.ZodString>;
48
+ gender: z.ZodOptional<z.ZodString>;
49
+ id: z.ZodOptional<z.ZodString>;
50
+ lastName: z.ZodOptional<z.ZodString>;
51
+ name: z.ZodOptional<z.ZodString>;
52
+ phone: z.ZodOptional<z.ZodString>;
53
+ title: z.ZodOptional<z.ZodString>;
54
+ username: z.ZodOptional<z.ZodString>;
55
+ website: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ address?: Record<string, any> & {
58
+ city?: string;
59
+ country?: string;
60
+ postalCode?: string;
61
+ state?: string;
62
+ street?: string;
63
+ };
64
+ age?: number;
65
+ avatar?: string;
66
+ birthday?: string;
67
+ company?: Record<string, any> & {
68
+ name?: string;
69
+ id?: string | number;
70
+ industry?: string;
71
+ employeeCount?: number;
72
+ plan?: string;
73
+ };
74
+ createdAt?: string;
75
+ description?: string;
76
+ email?: string;
77
+ firstName?: string;
78
+ gender?: string;
79
+ id?: string;
80
+ lastName?: string;
81
+ name?: string;
82
+ phone?: string;
83
+ title?: string;
84
+ username?: string;
85
+ website?: string;
86
+ }, {
87
+ address?: Record<string, any> & {
88
+ city?: string;
89
+ country?: string;
90
+ postalCode?: string;
91
+ state?: string;
92
+ street?: string;
93
+ };
94
+ age?: number;
95
+ avatar?: string;
96
+ birthday?: string;
97
+ company?: Record<string, any> & {
98
+ name?: string;
99
+ id?: string | number;
100
+ industry?: string;
101
+ employeeCount?: number;
102
+ plan?: string;
103
+ };
104
+ createdAt?: string;
105
+ description?: string;
106
+ email?: string;
107
+ firstName?: string;
108
+ gender?: string;
109
+ id?: string;
110
+ lastName?: string;
111
+ name?: string;
112
+ phone?: string;
113
+ title?: string;
114
+ username?: string;
115
+ website?: string;
116
+ }>>;
117
+ export declare const productSchema: z.ZodObject<{
118
+ affiliation: z.ZodOptional<z.ZodString>;
119
+ brand: z.ZodOptional<z.ZodString>;
120
+ bundle: z.ZodOptional<z.ZodBoolean>;
121
+ category: z.ZodOptional<z.ZodString>;
122
+ description: z.ZodOptional<z.ZodString>;
123
+ image_url: z.ZodOptional<z.ZodString>;
124
+ name: z.ZodString;
125
+ option_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
126
+ position: z.ZodOptional<z.ZodNumber>;
127
+ price: z.ZodNumber;
128
+ product_id: z.ZodString;
129
+ sku: z.ZodString;
130
+ slug: z.ZodOptional<z.ZodString>;
131
+ url: z.ZodOptional<z.ZodString>;
132
+ variant: z.ZodOptional<z.ZodString>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ affiliation?: string;
135
+ brand?: string;
136
+ bundle?: boolean;
137
+ category?: string;
138
+ description?: string;
139
+ image_url?: string;
140
+ name?: string;
141
+ option_values?: string[];
142
+ position?: number;
143
+ price?: number;
144
+ product_id?: string;
145
+ sku?: string;
146
+ slug?: string;
147
+ url?: string;
148
+ variant?: string;
149
+ }, {
150
+ affiliation?: string;
151
+ brand?: string;
152
+ bundle?: boolean;
153
+ category?: string;
154
+ description?: string;
155
+ image_url?: string;
156
+ name?: string;
157
+ option_values?: string[];
158
+ position?: number;
159
+ price?: number;
160
+ product_id?: string;
161
+ sku?: string;
162
+ slug?: string;
163
+ url?: string;
164
+ variant?: string;
165
+ }>;
166
+ export declare const lineItemSchema: z.ZodObject<{
167
+ description: z.ZodOptional<z.ZodString>;
168
+ name: z.ZodString;
169
+ product_id: z.ZodString;
170
+ affiliation: z.ZodOptional<z.ZodString>;
171
+ brand: z.ZodOptional<z.ZodString>;
172
+ bundle: z.ZodOptional<z.ZodBoolean>;
173
+ category: z.ZodOptional<z.ZodString>;
174
+ image_url: z.ZodOptional<z.ZodString>;
175
+ option_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
176
+ position: z.ZodOptional<z.ZodNumber>;
177
+ price: z.ZodNumber;
178
+ sku: z.ZodString;
179
+ slug: z.ZodOptional<z.ZodString>;
180
+ url: z.ZodOptional<z.ZodString>;
181
+ variant: z.ZodOptional<z.ZodString>;
182
+ coupon: z.ZodOptional<z.ZodString>;
183
+ line_item_id: z.ZodOptional<z.ZodString>;
184
+ quantity: z.ZodNumber;
185
+ }, "strip", z.ZodTypeAny, {
186
+ description?: string;
187
+ name?: string;
188
+ product_id?: string;
189
+ affiliation?: string;
190
+ brand?: string;
191
+ bundle?: boolean;
192
+ category?: string;
193
+ image_url?: string;
194
+ option_values?: string[];
195
+ position?: number;
196
+ price?: number;
197
+ sku?: string;
198
+ slug?: string;
199
+ url?: string;
200
+ variant?: string;
201
+ coupon?: string;
202
+ line_item_id?: string;
203
+ quantity?: number;
204
+ }, {
205
+ description?: string;
206
+ name?: string;
207
+ product_id?: string;
208
+ affiliation?: string;
209
+ brand?: string;
210
+ bundle?: boolean;
211
+ category?: string;
212
+ image_url?: string;
213
+ option_values?: string[];
214
+ position?: number;
215
+ price?: number;
216
+ sku?: string;
217
+ slug?: string;
218
+ url?: string;
219
+ variant?: string;
220
+ coupon?: string;
221
+ line_item_id?: string;
222
+ quantity?: number;
223
+ }>;
224
+ export declare const orderSchema: z.ZodObject<{
225
+ affiliation: z.ZodOptional<z.ZodString>;
226
+ campaign_id: z.ZodOptional<z.ZodNumber>;
227
+ channel: z.ZodOptional<z.ZodString>;
228
+ checkout_type: z.ZodOptional<z.ZodString>;
229
+ coupon: z.ZodOptional<z.ZodString>;
230
+ currency: z.ZodOptional<z.ZodString>;
231
+ discount: z.ZodOptional<z.ZodNumber>;
232
+ email: z.ZodOptional<z.ZodString>;
233
+ first_name: z.ZodOptional<z.ZodString>;
234
+ has_subscription: z.ZodOptional<z.ZodBoolean>;
235
+ is_recurring: z.ZodOptional<z.ZodBoolean>;
236
+ last_name: z.ZodOptional<z.ZodString>;
237
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
238
+ order_date: z.ZodOptional<z.ZodString>;
239
+ order_id: z.ZodOptional<z.ZodString>;
240
+ phone: z.ZodOptional<z.ZodString>;
241
+ products: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
242
+ description: z.ZodOptional<z.ZodString>;
243
+ name: z.ZodString;
244
+ product_id: z.ZodString;
245
+ affiliation: z.ZodOptional<z.ZodString>;
246
+ brand: z.ZodOptional<z.ZodString>;
247
+ bundle: z.ZodOptional<z.ZodBoolean>;
248
+ category: z.ZodOptional<z.ZodString>;
249
+ image_url: z.ZodOptional<z.ZodString>;
250
+ option_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
251
+ position: z.ZodOptional<z.ZodNumber>;
252
+ price: z.ZodNumber;
253
+ sku: z.ZodString;
254
+ slug: z.ZodOptional<z.ZodString>;
255
+ url: z.ZodOptional<z.ZodString>;
256
+ variant: z.ZodOptional<z.ZodString>;
257
+ coupon: z.ZodOptional<z.ZodString>;
258
+ line_item_id: z.ZodOptional<z.ZodString>;
259
+ quantity: z.ZodNumber;
260
+ }, "strip", z.ZodTypeAny, {
261
+ description?: string;
262
+ name?: string;
263
+ product_id?: string;
264
+ affiliation?: string;
265
+ brand?: string;
266
+ bundle?: boolean;
267
+ category?: string;
268
+ image_url?: string;
269
+ option_values?: string[];
270
+ position?: number;
271
+ price?: number;
272
+ sku?: string;
273
+ slug?: string;
274
+ url?: string;
275
+ variant?: string;
276
+ coupon?: string;
277
+ line_item_id?: string;
278
+ quantity?: number;
279
+ }, {
280
+ description?: string;
281
+ name?: string;
282
+ product_id?: string;
283
+ affiliation?: string;
284
+ brand?: string;
285
+ bundle?: boolean;
286
+ category?: string;
287
+ image_url?: string;
288
+ option_values?: string[];
289
+ position?: number;
290
+ price?: number;
291
+ sku?: string;
292
+ slug?: string;
293
+ url?: string;
294
+ variant?: string;
295
+ coupon?: string;
296
+ line_item_id?: string;
297
+ quantity?: number;
298
+ }>, z.ZodObject<{
299
+ bundle_size: z.ZodOptional<z.ZodNumber>;
300
+ cross_sold_quantity: z.ZodOptional<z.ZodNumber>;
301
+ variant_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ bundle_size?: number;
304
+ cross_sold_quantity?: number;
305
+ variant_metadata?: Record<string, unknown>;
306
+ }, {
307
+ bundle_size?: number;
308
+ cross_sold_quantity?: number;
309
+ variant_metadata?: Record<string, unknown>;
310
+ }>>, "many">>;
311
+ purl_link: z.ZodOptional<z.ZodString>;
312
+ referral_identifier_id: z.ZodOptional<z.ZodString>;
313
+ revenue: z.ZodOptional<z.ZodNumber>;
314
+ shipping: z.ZodOptional<z.ZodNumber>;
315
+ shipping_city: z.ZodOptional<z.ZodString>;
316
+ shipping_country: z.ZodOptional<z.ZodString>;
317
+ shipping_method_details: z.ZodOptional<z.ZodObject<{
318
+ shipping_code: z.ZodOptional<z.ZodString>;
319
+ shipping_method: z.ZodOptional<z.ZodString>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ shipping_code?: string;
322
+ shipping_method?: string;
323
+ }, {
324
+ shipping_code?: string;
325
+ shipping_method?: string;
326
+ }>>;
327
+ shipping_state: z.ZodOptional<z.ZodString>;
328
+ shipping_zipcode: z.ZodOptional<z.ZodString>;
329
+ tax: z.ZodOptional<z.ZodNumber>;
330
+ template_id: z.ZodOptional<z.ZodNumber>;
331
+ total: z.ZodOptional<z.ZodNumber>;
332
+ tracking_ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ affiliation?: string;
335
+ campaign_id?: number;
336
+ channel?: string;
337
+ checkout_type?: string;
338
+ coupon?: string;
339
+ currency?: string;
340
+ discount?: number;
341
+ email?: string;
342
+ first_name?: string;
343
+ has_subscription?: boolean;
344
+ is_recurring?: boolean;
345
+ last_name?: string;
346
+ metadata?: Record<string, unknown>;
347
+ order_date?: string;
348
+ order_id?: string;
349
+ phone?: string;
350
+ products?: ({
351
+ description?: string;
352
+ name?: string;
353
+ product_id?: string;
354
+ affiliation?: string;
355
+ brand?: string;
356
+ bundle?: boolean;
357
+ category?: string;
358
+ image_url?: string;
359
+ option_values?: string[];
360
+ position?: number;
361
+ price?: number;
362
+ sku?: string;
363
+ slug?: string;
364
+ url?: string;
365
+ variant?: string;
366
+ coupon?: string;
367
+ line_item_id?: string;
368
+ quantity?: number;
369
+ } & {
370
+ bundle_size?: number;
371
+ cross_sold_quantity?: number;
372
+ variant_metadata?: Record<string, unknown>;
373
+ })[];
374
+ purl_link?: string;
375
+ referral_identifier_id?: string;
376
+ revenue?: number;
377
+ shipping?: number;
378
+ shipping_city?: string;
379
+ shipping_country?: string;
380
+ shipping_method_details?: {
381
+ shipping_code?: string;
382
+ shipping_method?: string;
383
+ };
384
+ shipping_state?: string;
385
+ shipping_zipcode?: string;
386
+ tax?: number;
387
+ template_id?: number;
388
+ total?: number;
389
+ tracking_ids?: Record<string, unknown>;
390
+ }, {
391
+ affiliation?: string;
392
+ campaign_id?: number;
393
+ channel?: string;
394
+ checkout_type?: string;
395
+ coupon?: string;
396
+ currency?: string;
397
+ discount?: number;
398
+ email?: string;
399
+ first_name?: string;
400
+ has_subscription?: boolean;
401
+ is_recurring?: boolean;
402
+ last_name?: string;
403
+ metadata?: Record<string, unknown>;
404
+ order_date?: string;
405
+ order_id?: string;
406
+ phone?: string;
407
+ products?: ({
408
+ description?: string;
409
+ name?: string;
410
+ product_id?: string;
411
+ affiliation?: string;
412
+ brand?: string;
413
+ bundle?: boolean;
414
+ category?: string;
415
+ image_url?: string;
416
+ option_values?: string[];
417
+ position?: number;
418
+ price?: number;
419
+ sku?: string;
420
+ slug?: string;
421
+ url?: string;
422
+ variant?: string;
423
+ coupon?: string;
424
+ line_item_id?: string;
425
+ quantity?: number;
426
+ } & {
427
+ bundle_size?: number;
428
+ cross_sold_quantity?: number;
429
+ variant_metadata?: Record<string, unknown>;
430
+ })[];
431
+ purl_link?: string;
432
+ referral_identifier_id?: string;
433
+ revenue?: number;
434
+ shipping?: number;
435
+ shipping_city?: string;
436
+ shipping_country?: string;
437
+ shipping_method_details?: {
438
+ shipping_code?: string;
439
+ shipping_method?: string;
440
+ };
441
+ shipping_state?: string;
442
+ shipping_zipcode?: string;
443
+ tax?: number;
444
+ template_id?: number;
445
+ total?: number;
446
+ tracking_ids?: Record<string, unknown>;
447
+ }>;
448
+ export declare const checkoutSchema: z.ZodObject<{
449
+ affiliation: z.ZodOptional<z.ZodString>;
450
+ checkout_type: z.ZodOptional<z.ZodString>;
451
+ coupon: z.ZodOptional<z.ZodString>;
452
+ currency: z.ZodOptional<z.ZodString>;
453
+ discount: z.ZodOptional<z.ZodNumber>;
454
+ order_id: z.ZodOptional<z.ZodString>;
455
+ order_name: z.ZodOptional<z.ZodString>;
456
+ products: z.ZodArray<z.ZodObject<{
457
+ description: z.ZodOptional<z.ZodString>;
458
+ name: z.ZodString;
459
+ product_id: z.ZodString;
460
+ affiliation: z.ZodOptional<z.ZodString>;
461
+ brand: z.ZodOptional<z.ZodString>;
462
+ bundle: z.ZodOptional<z.ZodBoolean>;
463
+ category: z.ZodOptional<z.ZodString>;
464
+ image_url: z.ZodOptional<z.ZodString>;
465
+ option_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
466
+ position: z.ZodOptional<z.ZodNumber>;
467
+ price: z.ZodNumber;
468
+ sku: z.ZodString;
469
+ slug: z.ZodOptional<z.ZodString>;
470
+ url: z.ZodOptional<z.ZodString>;
471
+ variant: z.ZodOptional<z.ZodString>;
472
+ coupon: z.ZodOptional<z.ZodString>;
473
+ line_item_id: z.ZodOptional<z.ZodString>;
474
+ quantity: z.ZodNumber;
475
+ }, "strip", z.ZodTypeAny, {
476
+ description?: string;
477
+ name?: string;
478
+ product_id?: string;
479
+ affiliation?: string;
480
+ brand?: string;
481
+ bundle?: boolean;
482
+ category?: string;
483
+ image_url?: string;
484
+ option_values?: string[];
485
+ position?: number;
486
+ price?: number;
487
+ sku?: string;
488
+ slug?: string;
489
+ url?: string;
490
+ variant?: string;
491
+ coupon?: string;
492
+ line_item_id?: string;
493
+ quantity?: number;
494
+ }, {
495
+ description?: string;
496
+ name?: string;
497
+ product_id?: string;
498
+ affiliation?: string;
499
+ brand?: string;
500
+ bundle?: boolean;
501
+ category?: string;
502
+ image_url?: string;
503
+ option_values?: string[];
504
+ position?: number;
505
+ price?: number;
506
+ sku?: string;
507
+ slug?: string;
508
+ url?: string;
509
+ variant?: string;
510
+ coupon?: string;
511
+ line_item_id?: string;
512
+ quantity?: number;
513
+ }>, "many">;
514
+ revenue: z.ZodOptional<z.ZodNumber>;
515
+ shipping: z.ZodOptional<z.ZodNumber>;
516
+ tax: z.ZodOptional<z.ZodNumber>;
517
+ value: z.ZodOptional<z.ZodNumber>;
518
+ step: z.ZodOptional<z.ZodNumber>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ affiliation?: string;
521
+ checkout_type?: string;
522
+ coupon?: string;
523
+ currency?: string;
524
+ discount?: number;
525
+ order_id?: string;
526
+ order_name?: string;
527
+ products?: {
528
+ description?: string;
529
+ name?: string;
530
+ product_id?: string;
531
+ affiliation?: string;
532
+ brand?: string;
533
+ bundle?: boolean;
534
+ category?: string;
535
+ image_url?: string;
536
+ option_values?: string[];
537
+ position?: number;
538
+ price?: number;
539
+ sku?: string;
540
+ slug?: string;
541
+ url?: string;
542
+ variant?: string;
543
+ coupon?: string;
544
+ line_item_id?: string;
545
+ quantity?: number;
546
+ }[];
547
+ revenue?: number;
548
+ shipping?: number;
549
+ tax?: number;
550
+ value?: number;
551
+ step?: number;
552
+ }, {
553
+ affiliation?: string;
554
+ checkout_type?: string;
555
+ coupon?: string;
556
+ currency?: string;
557
+ discount?: number;
558
+ order_id?: string;
559
+ order_name?: string;
560
+ products?: {
561
+ description?: string;
562
+ name?: string;
563
+ product_id?: string;
564
+ affiliation?: string;
565
+ brand?: string;
566
+ bundle?: boolean;
567
+ category?: string;
568
+ image_url?: string;
569
+ option_values?: string[];
570
+ position?: number;
571
+ price?: number;
572
+ sku?: string;
573
+ slug?: string;
574
+ url?: string;
575
+ variant?: string;
576
+ coupon?: string;
577
+ line_item_id?: string;
578
+ quantity?: number;
579
+ }[];
580
+ revenue?: number;
581
+ shipping?: number;
582
+ tax?: number;
583
+ value?: number;
584
+ step?: number;
585
+ }>;
586
+ export declare const cartSchema: z.ZodObject<{
587
+ cart_id: z.ZodOptional<z.ZodString>;
588
+ currency: z.ZodOptional<z.ZodString>;
589
+ products: z.ZodArray<z.ZodObject<{
590
+ description: z.ZodOptional<z.ZodString>;
591
+ name: z.ZodString;
592
+ product_id: z.ZodString;
593
+ affiliation: z.ZodOptional<z.ZodString>;
594
+ brand: z.ZodOptional<z.ZodString>;
595
+ bundle: z.ZodOptional<z.ZodBoolean>;
596
+ category: z.ZodOptional<z.ZodString>;
597
+ image_url: z.ZodOptional<z.ZodString>;
598
+ option_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
599
+ position: z.ZodOptional<z.ZodNumber>;
600
+ price: z.ZodNumber;
601
+ sku: z.ZodString;
602
+ slug: z.ZodOptional<z.ZodString>;
603
+ url: z.ZodOptional<z.ZodString>;
604
+ variant: z.ZodOptional<z.ZodString>;
605
+ coupon: z.ZodOptional<z.ZodString>;
606
+ line_item_id: z.ZodOptional<z.ZodString>;
607
+ quantity: z.ZodNumber;
608
+ }, "strip", z.ZodTypeAny, {
609
+ description?: string;
610
+ name?: string;
611
+ product_id?: string;
612
+ affiliation?: string;
613
+ brand?: string;
614
+ bundle?: boolean;
615
+ category?: string;
616
+ image_url?: string;
617
+ option_values?: string[];
618
+ position?: number;
619
+ price?: number;
620
+ sku?: string;
621
+ slug?: string;
622
+ url?: string;
623
+ variant?: string;
624
+ coupon?: string;
625
+ line_item_id?: string;
626
+ quantity?: number;
627
+ }, {
628
+ description?: string;
629
+ name?: string;
630
+ product_id?: string;
631
+ affiliation?: string;
632
+ brand?: string;
633
+ bundle?: boolean;
634
+ category?: string;
635
+ image_url?: string;
636
+ option_values?: string[];
637
+ position?: number;
638
+ price?: number;
639
+ sku?: string;
640
+ slug?: string;
641
+ url?: string;
642
+ variant?: string;
643
+ coupon?: string;
644
+ line_item_id?: string;
645
+ quantity?: number;
646
+ }>, "many">;
647
+ value: z.ZodOptional<z.ZodNumber>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ cart_id?: string;
650
+ currency?: string;
651
+ products?: {
652
+ description?: string;
653
+ name?: string;
654
+ product_id?: string;
655
+ affiliation?: string;
656
+ brand?: string;
657
+ bundle?: boolean;
658
+ category?: string;
659
+ image_url?: string;
660
+ option_values?: string[];
661
+ position?: number;
662
+ price?: number;
663
+ sku?: string;
664
+ slug?: string;
665
+ url?: string;
666
+ variant?: string;
667
+ coupon?: string;
668
+ line_item_id?: string;
669
+ quantity?: number;
670
+ }[];
671
+ value?: number;
672
+ }, {
673
+ cart_id?: string;
674
+ currency?: string;
675
+ products?: {
676
+ description?: string;
677
+ name?: string;
678
+ product_id?: string;
679
+ affiliation?: string;
680
+ brand?: string;
681
+ bundle?: boolean;
682
+ category?: string;
683
+ image_url?: string;
684
+ option_values?: string[];
685
+ position?: number;
686
+ price?: number;
687
+ sku?: string;
688
+ slug?: string;
689
+ url?: string;
690
+ variant?: string;
691
+ coupon?: string;
692
+ line_item_id?: string;
693
+ quantity?: number;
694
+ }[];
695
+ value?: number;
696
+ }>;