@ecomiq/core 0.1.3 → 0.1.6

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 (57) hide show
  1. package/dist/api.cjs +19 -5
  2. package/dist/api.cjs.map +1 -1
  3. package/dist/api.js +19 -5
  4. package/dist/api.js.map +1 -1
  5. package/dist/client-4ZTG2RZ3.d.ts +195 -0
  6. package/dist/client-BpX4yR6S.d.cts +195 -0
  7. package/dist/client.cjs +331 -12
  8. package/dist/client.cjs.map +1 -1
  9. package/dist/client.d.cts +13 -84
  10. package/dist/client.d.ts +13 -84
  11. package/dist/client.js +331 -12
  12. package/dist/client.js.map +1 -1
  13. package/dist/index.cjs +484 -12
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +327 -324
  16. package/dist/index.d.ts +327 -324
  17. package/dist/index.js +451 -13
  18. package/dist/index.js.map +1 -1
  19. package/dist/models/collections.d.cts +4 -4
  20. package/dist/models/collections.d.ts +4 -4
  21. package/dist/models/customer-address.cjs +41 -0
  22. package/dist/models/customer-address.cjs.map +1 -0
  23. package/dist/models/customer-address.d.cts +160 -0
  24. package/dist/models/customer-address.d.ts +160 -0
  25. package/dist/models/customer-address.js +36 -0
  26. package/dist/models/customer-address.js.map +1 -0
  27. package/dist/models/customer-order.cjs +161 -0
  28. package/dist/models/customer-order.cjs.map +1 -0
  29. package/dist/models/customer-order.d.cts +896 -0
  30. package/dist/models/customer-order.d.ts +896 -0
  31. package/dist/models/customer-order.js +149 -0
  32. package/dist/models/customer-order.js.map +1 -0
  33. package/dist/models/customer-profile.cjs +126 -0
  34. package/dist/models/customer-profile.cjs.map +1 -0
  35. package/dist/models/customer-profile.d.cts +178 -0
  36. package/dist/models/customer-profile.d.ts +178 -0
  37. package/dist/models/customer-profile.js +118 -0
  38. package/dist/models/customer-profile.js.map +1 -0
  39. package/dist/models/geo.d.cts +14 -14
  40. package/dist/models/geo.d.ts +14 -14
  41. package/dist/models/products.d.cts +130 -130
  42. package/dist/models/products.d.ts +130 -130
  43. package/dist/models/search.d.cts +4 -4
  44. package/dist/models/search.d.ts +4 -4
  45. package/dist/models/settings.cjs +13 -6
  46. package/dist/models/settings.cjs.map +1 -1
  47. package/dist/models/settings.d.cts +844 -841
  48. package/dist/models/settings.d.ts +844 -841
  49. package/dist/models/settings.js +12 -7
  50. package/dist/models/settings.js.map +1 -1
  51. package/dist/models/storefront-cart.d.cts +80 -80
  52. package/dist/models/storefront-cart.d.ts +80 -80
  53. package/dist/models/storefront-checkout.d.cts +400 -400
  54. package/dist/models/storefront-checkout.d.ts +400 -400
  55. package/dist/models/storefront-reviews.d.cts +8 -8
  56. package/dist/models/storefront-reviews.d.ts +8 -8
  57. package/package.json +16 -1
@@ -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;
21
19
  address1: string;
22
20
  city: string;
23
21
  countryCode: string;
22
+ company: string | null;
24
23
  address2: string | null;
25
24
  province: string | null;
26
25
  postalCode: string | null;
27
26
  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;
34
32
  address1: string;
35
33
  city: string;
36
34
  countryCode: string;
35
+ company: string | null;
37
36
  address2: string | null;
38
37
  province: string | null;
39
38
  postalCode: string | null;
40
39
  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
- name: string;
174
173
  id: string;
175
- sellerId: string | null;
174
+ name: string;
176
175
  description: string | null;
176
+ sellerId: 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
- name: string;
189
188
  id: string;
190
- sellerId: string | null;
189
+ name: string;
191
190
  description: string | null;
191
+ sellerId: 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;
256
254
  address1: string;
257
255
  city: string;
258
256
  countryCode: string;
257
+ company: string | null;
259
258
  address2: string | null;
260
259
  province: string | null;
261
260
  postalCode: string | null;
262
261
  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;
269
267
  address1: string;
270
268
  city: string;
271
269
  countryCode: string;
270
+ company: string | null;
272
271
  address2: string | null;
273
272
  province: string | null;
274
273
  postalCode: string | null;
275
274
  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;
296
294
  address1: string;
297
295
  city: string;
298
296
  countryCode: string;
297
+ company: string | null;
299
298
  address2: string | null;
300
299
  province: string | null;
301
300
  postalCode: string | null;
302
301
  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;
309
307
  address1: string;
310
308
  city: string;
311
309
  countryCode: string;
310
+ company: string | null;
312
311
  address2: string | null;
313
312
  province: string | null;
314
313
  postalCode: string | null;
315
314
  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
- name: string;
422
421
  id: string;
423
- sellerId: string | null;
422
+ name: string;
424
423
  description: string | null;
424
+ sellerId: 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
- name: string;
437
436
  id: string;
438
- sellerId: string | null;
437
+ name: string;
439
438
  description: string | null;
439
+ sellerId: 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;
479
478
  id: string;
480
479
  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
- }[];
504
480
  cartNumber: string;
481
+ email: string | null;
505
482
  firstName: string | null;
506
483
  lastName: string | null;
507
484
  currencyCode: string;
508
485
  completedAt: string | null;
509
486
  shippingAddress: {
510
487
  name: string | null;
511
- company: string | null;
512
- phone: string | null;
513
488
  address1: string;
514
489
  city: string;
515
490
  countryCode: string;
491
+ company: string | null;
516
492
  address2: string | null;
517
493
  province: string | null;
518
494
  postalCode: string | null;
519
495
  district: string | null;
496
+ phone: string | null;
520
497
  latitude: number | null;
521
498
  longitude: number | null;
522
499
  } | null;
523
500
  billingAddress: {
524
501
  name: string | null;
525
- company: string | null;
526
- phone: string | null;
527
502
  address1: string;
528
503
  city: string;
529
504
  countryCode: string;
505
+ company: string | null;
530
506
  address2: string | null;
531
507
  province: string | null;
532
508
  postalCode: string | null;
533
509
  district: string | null;
510
+ phone: string | null;
534
511
  latitude: number | null;
535
512
  longitude: number | null;
536
513
  } | null;
537
514
  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
- name: string;
540
539
  id: string;
541
- sellerId: string | null;
540
+ name: string;
542
541
  description: string | null;
542
+ sellerId: 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;
566
565
  id: string;
567
566
  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
- }[];
591
567
  cartNumber: string;
568
+ email: string | null;
592
569
  firstName: string | null;
593
570
  lastName: string | null;
594
571
  currencyCode: string;
595
572
  completedAt: string | null;
596
573
  shippingAddress: {
597
574
  name: string | null;
598
- company: string | null;
599
- phone: string | null;
600
575
  address1: string;
601
576
  city: string;
602
577
  countryCode: string;
578
+ company: string | null;
603
579
  address2: string | null;
604
580
  province: string | null;
605
581
  postalCode: string | null;
606
582
  district: string | null;
583
+ phone: string | null;
607
584
  latitude: number | null;
608
585
  longitude: number | null;
609
586
  } | null;
610
587
  billingAddress: {
611
588
  name: string | null;
612
- company: string | null;
613
- phone: string | null;
614
589
  address1: string;
615
590
  city: string;
616
591
  countryCode: string;
592
+ company: string | null;
617
593
  address2: string | null;
618
594
  province: string | null;
619
595
  postalCode: string | null;
620
596
  district: string | null;
597
+ phone: string | null;
621
598
  latitude: number | null;
622
599
  longitude: number | null;
623
600
  } | null;
624
601
  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
- name: string;
627
626
  id: string;
628
- sellerId: string | null;
627
+ name: string;
629
628
  description: string | null;
629
+ sellerId: string | null;
630
630
  locationId: string | null;
631
631
  shippingMethodId: string | null;
632
632
  rateId: string | null;