@ecomiq/core 0.1.2 → 0.1.3

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.
@@ -16,28 +16,28 @@ declare const StorefrontAddressSchema: z.ZodObject<{
16
16
  longitude: z.ZodNullable<z.ZodNumber>;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  name: string | null;
19
+ company: string | null;
20
+ phone: string | null;
19
21
  address1: string;
20
22
  city: string;
21
23
  countryCode: string;
22
- company: string | null;
23
24
  address2: string | null;
24
25
  province: string | null;
25
26
  postalCode: string | null;
26
27
  district: string | null;
27
- phone: string | null;
28
28
  latitude: number | null;
29
29
  longitude: number | null;
30
30
  }, {
31
31
  name: string | null;
32
+ company: string | null;
33
+ phone: string | null;
32
34
  address1: string;
33
35
  city: string;
34
36
  countryCode: string;
35
- company: string | null;
36
37
  address2: string | null;
37
38
  province: string | null;
38
39
  postalCode: string | null;
39
40
  district: string | null;
40
- phone: string | null;
41
41
  latitude: number | null;
42
42
  longitude: number | null;
43
43
  }>;
@@ -170,10 +170,10 @@ declare const StorefrontCartShippingMethodSchema: z.ZodObject<{
170
170
  sellerId: z.ZodNullable<z.ZodString>;
171
171
  shippingProfileId: z.ZodNullable<z.ZodString>;
172
172
  }, "strip", z.ZodTypeAny, {
173
- id: string;
174
173
  name: string;
175
- description: string | null;
174
+ id: string;
176
175
  sellerId: string | null;
176
+ description: string | null;
177
177
  locationId: string | null;
178
178
  shippingMethodId: string | null;
179
179
  rateId: string | null;
@@ -185,10 +185,10 @@ declare const StorefrontCartShippingMethodSchema: z.ZodObject<{
185
185
  serviceCode: string | null;
186
186
  shippingProfileId: string | null;
187
187
  }, {
188
- id: string;
189
188
  name: string;
190
- description: string | null;
189
+ id: string;
191
190
  sellerId: string | null;
191
+ description: string | null;
192
192
  locationId: string | null;
193
193
  shippingMethodId: string | null;
194
194
  rateId: string | null;
@@ -251,28 +251,28 @@ declare const StorefrontCartSchema: z.ZodObject<{
251
251
  longitude: z.ZodNullable<z.ZodNumber>;
252
252
  }, "strip", z.ZodTypeAny, {
253
253
  name: string | null;
254
+ company: string | null;
255
+ phone: string | null;
254
256
  address1: string;
255
257
  city: string;
256
258
  countryCode: string;
257
- company: string | null;
258
259
  address2: string | null;
259
260
  province: string | null;
260
261
  postalCode: string | null;
261
262
  district: string | null;
262
- phone: string | null;
263
263
  latitude: number | null;
264
264
  longitude: number | null;
265
265
  }, {
266
266
  name: string | null;
267
+ company: string | null;
268
+ phone: string | null;
267
269
  address1: string;
268
270
  city: string;
269
271
  countryCode: string;
270
- company: string | null;
271
272
  address2: string | null;
272
273
  province: string | null;
273
274
  postalCode: string | null;
274
275
  district: string | null;
275
- phone: string | null;
276
276
  latitude: number | null;
277
277
  longitude: number | null;
278
278
  }>>;
@@ -291,28 +291,28 @@ declare const StorefrontCartSchema: z.ZodObject<{
291
291
  longitude: z.ZodNullable<z.ZodNumber>;
292
292
  }, "strip", z.ZodTypeAny, {
293
293
  name: string | null;
294
+ company: string | null;
295
+ phone: string | null;
294
296
  address1: string;
295
297
  city: string;
296
298
  countryCode: string;
297
- company: string | null;
298
299
  address2: string | null;
299
300
  province: string | null;
300
301
  postalCode: string | null;
301
302
  district: string | null;
302
- phone: string | null;
303
303
  latitude: number | null;
304
304
  longitude: number | null;
305
305
  }, {
306
306
  name: string | null;
307
+ company: string | null;
308
+ phone: string | null;
307
309
  address1: string;
308
310
  city: string;
309
311
  countryCode: string;
310
- company: string | null;
311
312
  address2: string | null;
312
313
  province: string | null;
313
314
  postalCode: string | null;
314
315
  district: string | null;
315
- phone: string | null;
316
316
  latitude: number | null;
317
317
  longitude: number | null;
318
318
  }>>;
@@ -418,10 +418,10 @@ declare const StorefrontCartSchema: z.ZodObject<{
418
418
  sellerId: z.ZodNullable<z.ZodString>;
419
419
  shippingProfileId: z.ZodNullable<z.ZodString>;
420
420
  }, "strip", z.ZodTypeAny, {
421
- id: string;
422
421
  name: string;
423
- description: string | null;
422
+ id: string;
424
423
  sellerId: string | null;
424
+ description: string | null;
425
425
  locationId: string | null;
426
426
  shippingMethodId: string | null;
427
427
  rateId: string | null;
@@ -433,10 +433,10 @@ declare const StorefrontCartSchema: z.ZodObject<{
433
433
  serviceCode: string | null;
434
434
  shippingProfileId: string | null;
435
435
  }, {
436
- id: string;
437
436
  name: string;
438
- description: string | null;
437
+ id: string;
439
438
  sellerId: string | null;
439
+ description: string | null;
440
440
  locationId: string | null;
441
441
  shippingMethodId: string | null;
442
442
  rateId: string | null;
@@ -475,71 +475,71 @@ declare const StorefrontCartSchema: z.ZodObject<{
475
475
  }>;
476
476
  }, "strip", z.ZodTypeAny, {
477
477
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
478
+ email: string | null;
478
479
  id: string;
479
480
  phone: string | null;
481
+ items: {
482
+ id: string;
483
+ productId: number;
484
+ quantity: number;
485
+ variantId: number;
486
+ unitPrice: number;
487
+ bundleItems: {
488
+ imageUrl: string | null;
489
+ brand: string | null;
490
+ productId: number;
491
+ sku: string | null;
492
+ quantity: number;
493
+ variantId: number;
494
+ productName: string;
495
+ variantName: string | null;
496
+ }[];
497
+ title: string;
498
+ variantLabel: string | null;
499
+ productHandle: string | null;
500
+ thumbnail: string | null;
501
+ variantSku: string | null;
502
+ compareAtUnitPrice: number | null;
503
+ }[];
480
504
  cartNumber: string;
481
- email: string | null;
482
505
  firstName: string | null;
483
506
  lastName: string | null;
484
507
  currencyCode: string;
485
508
  completedAt: string | null;
486
509
  shippingAddress: {
487
510
  name: string | null;
511
+ company: string | null;
512
+ phone: string | null;
488
513
  address1: string;
489
514
  city: string;
490
515
  countryCode: string;
491
- company: string | null;
492
516
  address2: string | null;
493
517
  province: string | null;
494
518
  postalCode: string | null;
495
519
  district: string | null;
496
- phone: string | null;
497
520
  latitude: number | null;
498
521
  longitude: number | null;
499
522
  } | null;
500
523
  billingAddress: {
501
524
  name: string | null;
525
+ company: string | null;
526
+ phone: string | null;
502
527
  address1: string;
503
528
  city: string;
504
529
  countryCode: string;
505
- company: string | null;
506
530
  address2: string | null;
507
531
  province: string | null;
508
532
  postalCode: string | null;
509
533
  district: string | null;
510
- phone: string | null;
511
534
  latitude: number | null;
512
535
  longitude: number | null;
513
536
  } | null;
514
537
  promotionCodes: string[];
515
- items: {
516
- id: string;
517
- productId: number;
518
- quantity: number;
519
- variantId: number;
520
- unitPrice: number;
521
- bundleItems: {
522
- imageUrl: string | null;
523
- brand: string | null;
524
- productId: number;
525
- sku: string | null;
526
- quantity: number;
527
- variantId: number;
528
- productName: string;
529
- variantName: string | null;
530
- }[];
531
- title: string;
532
- variantLabel: string | null;
533
- productHandle: string | null;
534
- thumbnail: string | null;
535
- variantSku: string | null;
536
- compareAtUnitPrice: number | null;
537
- }[];
538
538
  shippingMethods: {
539
- id: string;
540
539
  name: string;
541
- description: string | null;
540
+ id: string;
542
541
  sellerId: string | null;
542
+ description: string | null;
543
543
  locationId: string | null;
544
544
  shippingMethodId: string | null;
545
545
  rateId: string | null;
@@ -562,71 +562,71 @@ declare const StorefrontCartSchema: z.ZodObject<{
562
562
  };
563
563
  }, {
564
564
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
565
+ email: string | null;
565
566
  id: string;
566
567
  phone: string | null;
568
+ items: {
569
+ id: string;
570
+ productId: number;
571
+ quantity: number;
572
+ variantId: number;
573
+ unitPrice: number;
574
+ bundleItems: {
575
+ imageUrl: string | null;
576
+ brand: string | null;
577
+ productId: number;
578
+ sku: string | null;
579
+ quantity: number;
580
+ variantId: number;
581
+ productName: string;
582
+ variantName: string | null;
583
+ }[];
584
+ title: string;
585
+ variantLabel: string | null;
586
+ productHandle: string | null;
587
+ thumbnail: string | null;
588
+ variantSku: string | null;
589
+ compareAtUnitPrice: number | null;
590
+ }[];
567
591
  cartNumber: string;
568
- email: string | null;
569
592
  firstName: string | null;
570
593
  lastName: string | null;
571
594
  currencyCode: string;
572
595
  completedAt: string | null;
573
596
  shippingAddress: {
574
597
  name: string | null;
598
+ company: string | null;
599
+ phone: string | null;
575
600
  address1: string;
576
601
  city: string;
577
602
  countryCode: string;
578
- company: string | null;
579
603
  address2: string | null;
580
604
  province: string | null;
581
605
  postalCode: string | null;
582
606
  district: string | null;
583
- phone: string | null;
584
607
  latitude: number | null;
585
608
  longitude: number | null;
586
609
  } | null;
587
610
  billingAddress: {
588
611
  name: string | null;
612
+ company: string | null;
613
+ phone: string | null;
589
614
  address1: string;
590
615
  city: string;
591
616
  countryCode: string;
592
- company: string | null;
593
617
  address2: string | null;
594
618
  province: string | null;
595
619
  postalCode: string | null;
596
620
  district: string | null;
597
- phone: string | null;
598
621
  latitude: number | null;
599
622
  longitude: number | null;
600
623
  } | null;
601
624
  promotionCodes: string[];
602
- items: {
603
- id: string;
604
- productId: number;
605
- quantity: number;
606
- variantId: number;
607
- unitPrice: number;
608
- bundleItems: {
609
- imageUrl: string | null;
610
- brand: string | null;
611
- productId: number;
612
- sku: string | null;
613
- quantity: number;
614
- variantId: number;
615
- productName: string;
616
- variantName: string | null;
617
- }[];
618
- title: string;
619
- variantLabel: string | null;
620
- productHandle: string | null;
621
- thumbnail: string | null;
622
- variantSku: string | null;
623
- compareAtUnitPrice: number | null;
624
- }[];
625
625
  shippingMethods: {
626
- id: string;
627
626
  name: string;
628
- description: string | null;
627
+ id: string;
629
628
  sellerId: string | null;
629
+ description: string | null;
630
630
  locationId: string | null;
631
631
  shippingMethodId: string | null;
632
632
  rateId: string | null;
@@ -16,28 +16,28 @@ declare const StorefrontAddressSchema: z.ZodObject<{
16
16
  longitude: z.ZodNullable<z.ZodNumber>;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  name: string | null;
19
+ company: string | null;
20
+ phone: string | null;
19
21
  address1: string;
20
22
  city: string;
21
23
  countryCode: string;
22
- company: string | null;
23
24
  address2: string | null;
24
25
  province: string | null;
25
26
  postalCode: string | null;
26
27
  district: string | null;
27
- phone: string | null;
28
28
  latitude: number | null;
29
29
  longitude: number | null;
30
30
  }, {
31
31
  name: string | null;
32
+ company: string | null;
33
+ phone: string | null;
32
34
  address1: string;
33
35
  city: string;
34
36
  countryCode: string;
35
- company: string | null;
36
37
  address2: string | null;
37
38
  province: string | null;
38
39
  postalCode: string | null;
39
40
  district: string | null;
40
- phone: string | null;
41
41
  latitude: number | null;
42
42
  longitude: number | null;
43
43
  }>;
@@ -170,10 +170,10 @@ declare const StorefrontCartShippingMethodSchema: z.ZodObject<{
170
170
  sellerId: z.ZodNullable<z.ZodString>;
171
171
  shippingProfileId: z.ZodNullable<z.ZodString>;
172
172
  }, "strip", z.ZodTypeAny, {
173
- id: string;
174
173
  name: string;
175
- description: string | null;
174
+ id: string;
176
175
  sellerId: string | null;
176
+ description: string | null;
177
177
  locationId: string | null;
178
178
  shippingMethodId: string | null;
179
179
  rateId: string | null;
@@ -185,10 +185,10 @@ declare const StorefrontCartShippingMethodSchema: z.ZodObject<{
185
185
  serviceCode: string | null;
186
186
  shippingProfileId: string | null;
187
187
  }, {
188
- id: string;
189
188
  name: string;
190
- description: string | null;
189
+ id: string;
191
190
  sellerId: string | null;
191
+ description: string | null;
192
192
  locationId: string | null;
193
193
  shippingMethodId: string | null;
194
194
  rateId: string | null;
@@ -251,28 +251,28 @@ declare const StorefrontCartSchema: z.ZodObject<{
251
251
  longitude: z.ZodNullable<z.ZodNumber>;
252
252
  }, "strip", z.ZodTypeAny, {
253
253
  name: string | null;
254
+ company: string | null;
255
+ phone: string | null;
254
256
  address1: string;
255
257
  city: string;
256
258
  countryCode: string;
257
- company: string | null;
258
259
  address2: string | null;
259
260
  province: string | null;
260
261
  postalCode: string | null;
261
262
  district: string | null;
262
- phone: string | null;
263
263
  latitude: number | null;
264
264
  longitude: number | null;
265
265
  }, {
266
266
  name: string | null;
267
+ company: string | null;
268
+ phone: string | null;
267
269
  address1: string;
268
270
  city: string;
269
271
  countryCode: string;
270
- company: string | null;
271
272
  address2: string | null;
272
273
  province: string | null;
273
274
  postalCode: string | null;
274
275
  district: string | null;
275
- phone: string | null;
276
276
  latitude: number | null;
277
277
  longitude: number | null;
278
278
  }>>;
@@ -291,28 +291,28 @@ declare const StorefrontCartSchema: z.ZodObject<{
291
291
  longitude: z.ZodNullable<z.ZodNumber>;
292
292
  }, "strip", z.ZodTypeAny, {
293
293
  name: string | null;
294
+ company: string | null;
295
+ phone: string | null;
294
296
  address1: string;
295
297
  city: string;
296
298
  countryCode: string;
297
- company: string | null;
298
299
  address2: string | null;
299
300
  province: string | null;
300
301
  postalCode: string | null;
301
302
  district: string | null;
302
- phone: string | null;
303
303
  latitude: number | null;
304
304
  longitude: number | null;
305
305
  }, {
306
306
  name: string | null;
307
+ company: string | null;
308
+ phone: string | null;
307
309
  address1: string;
308
310
  city: string;
309
311
  countryCode: string;
310
- company: string | null;
311
312
  address2: string | null;
312
313
  province: string | null;
313
314
  postalCode: string | null;
314
315
  district: string | null;
315
- phone: string | null;
316
316
  latitude: number | null;
317
317
  longitude: number | null;
318
318
  }>>;
@@ -418,10 +418,10 @@ declare const StorefrontCartSchema: z.ZodObject<{
418
418
  sellerId: z.ZodNullable<z.ZodString>;
419
419
  shippingProfileId: z.ZodNullable<z.ZodString>;
420
420
  }, "strip", z.ZodTypeAny, {
421
- id: string;
422
421
  name: string;
423
- description: string | null;
422
+ id: string;
424
423
  sellerId: string | null;
424
+ description: string | null;
425
425
  locationId: string | null;
426
426
  shippingMethodId: string | null;
427
427
  rateId: string | null;
@@ -433,10 +433,10 @@ declare const StorefrontCartSchema: z.ZodObject<{
433
433
  serviceCode: string | null;
434
434
  shippingProfileId: string | null;
435
435
  }, {
436
- id: string;
437
436
  name: string;
438
- description: string | null;
437
+ id: string;
439
438
  sellerId: string | null;
439
+ description: string | null;
440
440
  locationId: string | null;
441
441
  shippingMethodId: string | null;
442
442
  rateId: string | null;
@@ -475,71 +475,71 @@ declare const StorefrontCartSchema: z.ZodObject<{
475
475
  }>;
476
476
  }, "strip", z.ZodTypeAny, {
477
477
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
478
+ email: string | null;
478
479
  id: string;
479
480
  phone: string | null;
481
+ items: {
482
+ id: string;
483
+ productId: number;
484
+ quantity: number;
485
+ variantId: number;
486
+ unitPrice: number;
487
+ bundleItems: {
488
+ imageUrl: string | null;
489
+ brand: string | null;
490
+ productId: number;
491
+ sku: string | null;
492
+ quantity: number;
493
+ variantId: number;
494
+ productName: string;
495
+ variantName: string | null;
496
+ }[];
497
+ title: string;
498
+ variantLabel: string | null;
499
+ productHandle: string | null;
500
+ thumbnail: string | null;
501
+ variantSku: string | null;
502
+ compareAtUnitPrice: number | null;
503
+ }[];
480
504
  cartNumber: string;
481
- email: string | null;
482
505
  firstName: string | null;
483
506
  lastName: string | null;
484
507
  currencyCode: string;
485
508
  completedAt: string | null;
486
509
  shippingAddress: {
487
510
  name: string | null;
511
+ company: string | null;
512
+ phone: string | null;
488
513
  address1: string;
489
514
  city: string;
490
515
  countryCode: string;
491
- company: string | null;
492
516
  address2: string | null;
493
517
  province: string | null;
494
518
  postalCode: string | null;
495
519
  district: string | null;
496
- phone: string | null;
497
520
  latitude: number | null;
498
521
  longitude: number | null;
499
522
  } | null;
500
523
  billingAddress: {
501
524
  name: string | null;
525
+ company: string | null;
526
+ phone: string | null;
502
527
  address1: string;
503
528
  city: string;
504
529
  countryCode: string;
505
- company: string | null;
506
530
  address2: string | null;
507
531
  province: string | null;
508
532
  postalCode: string | null;
509
533
  district: string | null;
510
- phone: string | null;
511
534
  latitude: number | null;
512
535
  longitude: number | null;
513
536
  } | null;
514
537
  promotionCodes: string[];
515
- items: {
516
- id: string;
517
- productId: number;
518
- quantity: number;
519
- variantId: number;
520
- unitPrice: number;
521
- bundleItems: {
522
- imageUrl: string | null;
523
- brand: string | null;
524
- productId: number;
525
- sku: string | null;
526
- quantity: number;
527
- variantId: number;
528
- productName: string;
529
- variantName: string | null;
530
- }[];
531
- title: string;
532
- variantLabel: string | null;
533
- productHandle: string | null;
534
- thumbnail: string | null;
535
- variantSku: string | null;
536
- compareAtUnitPrice: number | null;
537
- }[];
538
538
  shippingMethods: {
539
- id: string;
540
539
  name: string;
541
- description: string | null;
540
+ id: string;
542
541
  sellerId: string | null;
542
+ description: string | null;
543
543
  locationId: string | null;
544
544
  shippingMethodId: string | null;
545
545
  rateId: string | null;
@@ -562,71 +562,71 @@ declare const StorefrontCartSchema: z.ZodObject<{
562
562
  };
563
563
  }, {
564
564
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
565
+ email: string | null;
565
566
  id: string;
566
567
  phone: string | null;
568
+ items: {
569
+ id: string;
570
+ productId: number;
571
+ quantity: number;
572
+ variantId: number;
573
+ unitPrice: number;
574
+ bundleItems: {
575
+ imageUrl: string | null;
576
+ brand: string | null;
577
+ productId: number;
578
+ sku: string | null;
579
+ quantity: number;
580
+ variantId: number;
581
+ productName: string;
582
+ variantName: string | null;
583
+ }[];
584
+ title: string;
585
+ variantLabel: string | null;
586
+ productHandle: string | null;
587
+ thumbnail: string | null;
588
+ variantSku: string | null;
589
+ compareAtUnitPrice: number | null;
590
+ }[];
567
591
  cartNumber: string;
568
- email: string | null;
569
592
  firstName: string | null;
570
593
  lastName: string | null;
571
594
  currencyCode: string;
572
595
  completedAt: string | null;
573
596
  shippingAddress: {
574
597
  name: string | null;
598
+ company: string | null;
599
+ phone: string | null;
575
600
  address1: string;
576
601
  city: string;
577
602
  countryCode: string;
578
- company: string | null;
579
603
  address2: string | null;
580
604
  province: string | null;
581
605
  postalCode: string | null;
582
606
  district: string | null;
583
- phone: string | null;
584
607
  latitude: number | null;
585
608
  longitude: number | null;
586
609
  } | null;
587
610
  billingAddress: {
588
611
  name: string | null;
612
+ company: string | null;
613
+ phone: string | null;
589
614
  address1: string;
590
615
  city: string;
591
616
  countryCode: string;
592
- company: string | null;
593
617
  address2: string | null;
594
618
  province: string | null;
595
619
  postalCode: string | null;
596
620
  district: string | null;
597
- phone: string | null;
598
621
  latitude: number | null;
599
622
  longitude: number | null;
600
623
  } | null;
601
624
  promotionCodes: string[];
602
- items: {
603
- id: string;
604
- productId: number;
605
- quantity: number;
606
- variantId: number;
607
- unitPrice: number;
608
- bundleItems: {
609
- imageUrl: string | null;
610
- brand: string | null;
611
- productId: number;
612
- sku: string | null;
613
- quantity: number;
614
- variantId: number;
615
- productName: string;
616
- variantName: string | null;
617
- }[];
618
- title: string;
619
- variantLabel: string | null;
620
- productHandle: string | null;
621
- thumbnail: string | null;
622
- variantSku: string | null;
623
- compareAtUnitPrice: number | null;
624
- }[];
625
625
  shippingMethods: {
626
- id: string;
627
626
  name: string;
628
- description: string | null;
627
+ id: string;
629
628
  sellerId: string | null;
629
+ description: string | null;
630
630
  locationId: string | null;
631
631
  shippingMethodId: string | null;
632
632
  rateId: string | null;