@ecomiq/core 0.1.8 → 0.1.9
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/{client-4ZTG2RZ3.d.ts → client-Ba1r_uiO.d.ts} +4 -4
- package/dist/{client-BpX4yR6S.d.cts → client-Cqcnv2tC.d.cts} +4 -4
- package/dist/client.cjs +72 -77
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +72 -77
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +73 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +64 -54
- package/dist/index.d.ts +64 -54
- package/dist/index.js +73 -88
- package/dist/index.js.map +1 -1
- package/dist/models/collections.cjs +2 -4
- package/dist/models/collections.cjs.map +1 -1
- package/dist/models/collections.d.cts +2 -2
- package/dist/models/collections.d.ts +2 -2
- package/dist/models/collections.js +2 -4
- package/dist/models/collections.js.map +1 -1
- package/dist/models/customer-address.cjs +7 -1
- package/dist/models/customer-address.cjs.map +1 -1
- package/dist/models/customer-address.d.cts +4 -4
- package/dist/models/customer-address.d.ts +4 -4
- package/dist/models/customer-address.js +7 -1
- package/dist/models/customer-address.js.map +1 -1
- package/dist/models/customer-order.cjs +14 -8
- package/dist/models/customer-order.cjs.map +1 -1
- package/dist/models/customer-order.d.cts +1 -5
- package/dist/models/customer-order.d.ts +1 -5
- package/dist/models/customer-order.js +14 -8
- package/dist/models/customer-order.js.map +1 -1
- package/dist/models/customer-profile.cjs +8 -2
- package/dist/models/customer-profile.cjs.map +1 -1
- package/dist/models/customer-profile.d.cts +3 -3
- package/dist/models/customer-profile.d.ts +3 -3
- package/dist/models/customer-profile.js +8 -2
- package/dist/models/customer-profile.js.map +1 -1
- package/dist/models/geo.cjs +2 -4
- package/dist/models/geo.cjs.map +1 -1
- package/dist/models/geo.d.cts +14 -14
- package/dist/models/geo.d.ts +14 -14
- package/dist/models/geo.js +2 -4
- package/dist/models/geo.js.map +1 -1
- package/dist/models/ids.cjs +3 -4
- package/dist/models/ids.cjs.map +1 -1
- package/dist/models/ids.d.cts +8 -8
- package/dist/models/ids.d.ts +8 -8
- package/dist/models/ids.js +3 -5
- package/dist/models/ids.js.map +1 -1
- package/dist/models/products.cjs +12 -19
- package/dist/models/products.cjs.map +1 -1
- package/dist/models/products.d.cts +32 -33
- package/dist/models/products.d.ts +32 -33
- package/dist/models/products.js +13 -19
- package/dist/models/products.js.map +1 -1
- package/dist/models/search.cjs +3 -180
- package/dist/models/search.cjs.map +1 -1
- package/dist/models/search.d.cts +5 -5
- package/dist/models/search.d.ts +5 -5
- package/dist/models/search.js +3 -180
- package/dist/models/search.js.map +1 -1
- package/dist/models/settings.cjs +2 -4
- package/dist/models/settings.cjs.map +1 -1
- package/dist/models/settings.d.cts +63 -63
- package/dist/models/settings.d.ts +63 -63
- package/dist/models/settings.js +2 -4
- package/dist/models/settings.js.map +1 -1
- package/dist/models/storefront-cart.cjs +14 -26
- package/dist/models/storefront-cart.cjs.map +1 -1
- package/dist/models/storefront-cart.d.cts +100 -98
- package/dist/models/storefront-cart.d.ts +100 -98
- package/dist/models/storefront-cart.js +15 -26
- package/dist/models/storefront-cart.js.map +1 -1
- package/dist/models/storefront-checkout.cjs +26 -27
- package/dist/models/storefront-checkout.cjs.map +1 -1
- package/dist/models/storefront-checkout.d.cts +130 -120
- package/dist/models/storefront-checkout.d.ts +130 -120
- package/dist/models/storefront-checkout.js +26 -27
- package/dist/models/storefront-checkout.js.map +1 -1
- package/dist/models/storefront-reviews.cjs +8 -187
- package/dist/models/storefront-reviews.cjs.map +1 -1
- package/dist/models/storefront-reviews.d.cts +17 -17
- package/dist/models/storefront-reviews.d.ts +17 -17
- package/dist/models/storefront-reviews.js +8 -187
- package/dist/models/storefront-reviews.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ type CheckoutMetadataValue = string | number | boolean | null | CheckoutMetadata
|
|
|
5
5
|
};
|
|
6
6
|
declare const CheckoutMetadataValueSchema: z.ZodType<CheckoutMetadataValue>;
|
|
7
7
|
declare const CartBuyerParamsSchema: z.ZodObject<{
|
|
8
|
-
|
|
8
|
+
cartToken: z.ZodString;
|
|
9
9
|
email: z.ZodString;
|
|
10
10
|
firstName: z.ZodString;
|
|
11
11
|
lastName: z.ZodString;
|
|
@@ -15,13 +15,13 @@ declare const CartBuyerParamsSchema: z.ZodObject<{
|
|
|
15
15
|
email: string;
|
|
16
16
|
firstName: string;
|
|
17
17
|
lastName: string;
|
|
18
|
-
|
|
18
|
+
cartToken: string;
|
|
19
19
|
}, {
|
|
20
20
|
phone: string;
|
|
21
21
|
email: string;
|
|
22
22
|
firstName: string;
|
|
23
23
|
lastName: string;
|
|
24
|
-
|
|
24
|
+
cartToken: string;
|
|
25
25
|
}>;
|
|
26
26
|
type CartBuyerParams = z.input<typeof CartBuyerParamsSchema>;
|
|
27
27
|
declare const CartAddressWriteSchema: z.ZodObject<{
|
|
@@ -89,7 +89,7 @@ declare const CartAddressWriteSchema: z.ZodObject<{
|
|
|
89
89
|
}>;
|
|
90
90
|
type CartAddressWrite = z.input<typeof CartAddressWriteSchema>;
|
|
91
91
|
declare const CartAddressesParamsSchema: z.ZodObject<{
|
|
92
|
-
|
|
92
|
+
cartToken: z.ZodString;
|
|
93
93
|
shippingAddress: z.ZodObject<{
|
|
94
94
|
name: z.ZodString;
|
|
95
95
|
address1: z.ZodString;
|
|
@@ -255,7 +255,7 @@ declare const CartAddressesParamsSchema: z.ZodObject<{
|
|
|
255
255
|
districtCode?: string | null | undefined;
|
|
256
256
|
} | null | undefined;
|
|
257
257
|
};
|
|
258
|
-
|
|
258
|
+
cartToken: string;
|
|
259
259
|
}, {
|
|
260
260
|
shippingAddress: {
|
|
261
261
|
name: string;
|
|
@@ -295,7 +295,7 @@ declare const CartAddressesParamsSchema: z.ZodObject<{
|
|
|
295
295
|
districtCode?: string | null | undefined;
|
|
296
296
|
} | null | undefined;
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
cartToken: string;
|
|
299
299
|
}>;
|
|
300
300
|
type CartAddressesParams = z.input<typeof CartAddressesParamsSchema>;
|
|
301
301
|
declare const CartPaymentMethodSchema: z.ZodObject<{
|
|
@@ -341,8 +341,8 @@ declare const CartPaymentMethodSchema: z.ZodObject<{
|
|
|
341
341
|
type CartPaymentMethod = z.infer<typeof CartPaymentMethodSchema>;
|
|
342
342
|
declare const StorefrontOrderBumpSchema: z.ZodObject<{
|
|
343
343
|
id: z.ZodString;
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
productId: z.ZodString;
|
|
345
|
+
variantId: z.ZodString;
|
|
346
346
|
productName: z.ZodString;
|
|
347
347
|
variantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
348
|
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -354,10 +354,10 @@ declare const StorefrontOrderBumpSchema: z.ZodObject<{
|
|
|
354
354
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
355
|
}, "strip", z.ZodTypeAny, {
|
|
356
356
|
id: string;
|
|
357
|
+
productId: string;
|
|
358
|
+
variantId: string;
|
|
357
359
|
productName: string;
|
|
358
360
|
currencyCode: string;
|
|
359
|
-
productPublicId: string;
|
|
360
|
-
variantPublicId: string;
|
|
361
361
|
regularPrice: number;
|
|
362
362
|
offerPrice: number;
|
|
363
363
|
callToAction: string;
|
|
@@ -367,10 +367,10 @@ declare const StorefrontOrderBumpSchema: z.ZodObject<{
|
|
|
367
367
|
badgeLabel?: string | null | undefined;
|
|
368
368
|
}, {
|
|
369
369
|
id: string;
|
|
370
|
+
productId: string;
|
|
371
|
+
variantId: string;
|
|
370
372
|
productName: string;
|
|
371
373
|
currencyCode: string;
|
|
372
|
-
productPublicId: string;
|
|
373
|
-
variantPublicId: string;
|
|
374
374
|
regularPrice: number;
|
|
375
375
|
offerPrice: number;
|
|
376
376
|
callToAction: string;
|
|
@@ -381,16 +381,17 @@ declare const StorefrontOrderBumpSchema: z.ZodObject<{
|
|
|
381
381
|
}>;
|
|
382
382
|
type StorefrontOrderBump = z.infer<typeof StorefrontOrderBumpSchema>;
|
|
383
383
|
declare const CartCheckoutReadParamsSchema: z.ZodObject<{
|
|
384
|
-
|
|
384
|
+
cartToken: z.ZodString;
|
|
385
385
|
}, "strip", z.ZodTypeAny, {
|
|
386
|
-
|
|
386
|
+
cartToken: string;
|
|
387
387
|
}, {
|
|
388
|
-
|
|
388
|
+
cartToken: string;
|
|
389
389
|
}>;
|
|
390
390
|
type CartCheckoutReadParams = z.input<typeof CartCheckoutReadParamsSchema>;
|
|
391
391
|
declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
392
392
|
cart: z.ZodObject<{
|
|
393
|
-
id: z.
|
|
393
|
+
id: z.ZodString;
|
|
394
|
+
token: z.ZodString;
|
|
394
395
|
cartNumber: z.ZodString;
|
|
395
396
|
email: z.ZodNullable<z.ZodString>;
|
|
396
397
|
phone: z.ZodNullable<z.ZodString>;
|
|
@@ -481,20 +482,20 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
481
482
|
}>>;
|
|
482
483
|
promotionCodes: z.ZodArray<z.ZodString, "many">;
|
|
483
484
|
items: z.ZodArray<z.ZodObject<{
|
|
484
|
-
id: z.
|
|
485
|
-
productId: z.
|
|
485
|
+
id: z.ZodString;
|
|
486
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
486
487
|
title: z.ZodString;
|
|
487
488
|
variantLabel: z.ZodNullable<z.ZodString>;
|
|
488
489
|
productHandle: z.ZodNullable<z.ZodString>;
|
|
489
490
|
thumbnail: z.ZodNullable<z.ZodString>;
|
|
490
491
|
quantity: z.ZodNumber;
|
|
491
|
-
variantId: z.
|
|
492
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
492
493
|
variantSku: z.ZodNullable<z.ZodString>;
|
|
493
494
|
unitPrice: z.ZodNumber;
|
|
494
495
|
compareAtUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
495
496
|
bundleItems: z.ZodArray<z.ZodObject<{
|
|
496
|
-
productId: z.
|
|
497
|
-
variantId: z.
|
|
497
|
+
productId: z.ZodString;
|
|
498
|
+
variantId: z.ZodString;
|
|
498
499
|
productName: z.ZodString;
|
|
499
500
|
variantName: z.ZodNullable<z.ZodString>;
|
|
500
501
|
sku: z.ZodNullable<z.ZodString>;
|
|
@@ -504,35 +505,35 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
504
505
|
}, "strip", z.ZodTypeAny, {
|
|
505
506
|
imageUrl: string | null;
|
|
506
507
|
brand: string | null;
|
|
507
|
-
productId:
|
|
508
|
+
productId: string;
|
|
508
509
|
sku: string | null;
|
|
509
510
|
quantity: number;
|
|
510
|
-
variantId:
|
|
511
|
+
variantId: string;
|
|
511
512
|
productName: string;
|
|
512
513
|
variantName: string | null;
|
|
513
514
|
}, {
|
|
514
515
|
imageUrl: string | null;
|
|
515
516
|
brand: string | null;
|
|
516
|
-
productId:
|
|
517
|
+
productId: string;
|
|
517
518
|
sku: string | null;
|
|
518
519
|
quantity: number;
|
|
519
|
-
variantId:
|
|
520
|
+
variantId: string;
|
|
520
521
|
productName: string;
|
|
521
522
|
variantName: string | null;
|
|
522
523
|
}>, "many">;
|
|
523
524
|
}, "strip", z.ZodTypeAny, {
|
|
524
525
|
id: string;
|
|
525
|
-
productId:
|
|
526
|
+
productId: string | null;
|
|
526
527
|
quantity: number;
|
|
527
|
-
variantId:
|
|
528
|
+
variantId: string | null;
|
|
528
529
|
unitPrice: number;
|
|
529
530
|
bundleItems: {
|
|
530
531
|
imageUrl: string | null;
|
|
531
532
|
brand: string | null;
|
|
532
|
-
productId:
|
|
533
|
+
productId: string;
|
|
533
534
|
sku: string | null;
|
|
534
535
|
quantity: number;
|
|
535
|
-
variantId:
|
|
536
|
+
variantId: string;
|
|
536
537
|
productName: string;
|
|
537
538
|
variantName: string | null;
|
|
538
539
|
}[];
|
|
@@ -544,17 +545,17 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
544
545
|
compareAtUnitPrice: number | null;
|
|
545
546
|
}, {
|
|
546
547
|
id: string;
|
|
547
|
-
productId:
|
|
548
|
+
productId: string | null;
|
|
548
549
|
quantity: number;
|
|
549
|
-
variantId:
|
|
550
|
+
variantId: string | null;
|
|
550
551
|
unitPrice: number;
|
|
551
552
|
bundleItems: {
|
|
552
553
|
imageUrl: string | null;
|
|
553
554
|
brand: string | null;
|
|
554
|
-
productId:
|
|
555
|
+
productId: string;
|
|
555
556
|
sku: string | null;
|
|
556
557
|
quantity: number;
|
|
557
|
-
variantId:
|
|
558
|
+
variantId: string;
|
|
558
559
|
productName: string;
|
|
559
560
|
variantName: string | null;
|
|
560
561
|
}[];
|
|
@@ -566,20 +567,20 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
566
567
|
compareAtUnitPrice: number | null;
|
|
567
568
|
}>, "many">;
|
|
568
569
|
shippingMethods: z.ZodArray<z.ZodObject<{
|
|
569
|
-
id: z.
|
|
570
|
-
shippingMethodId: z.ZodNullable<z.
|
|
571
|
-
rateId: z.ZodNullable<z.
|
|
570
|
+
id: z.ZodString;
|
|
571
|
+
shippingMethodId: z.ZodNullable<z.ZodString>;
|
|
572
|
+
rateId: z.ZodNullable<z.ZodString>;
|
|
572
573
|
name: z.ZodString;
|
|
573
574
|
description: z.ZodNullable<z.ZodString>;
|
|
574
575
|
total: z.ZodNumber;
|
|
575
|
-
locationId: z.ZodNullable<z.
|
|
576
|
+
locationId: z.ZodNullable<z.ZodString>;
|
|
576
577
|
estimatedDays: z.ZodNullable<z.ZodNumber>;
|
|
577
|
-
pickupPointId: z.ZodNullable<z.
|
|
578
|
+
pickupPointId: z.ZodNullable<z.ZodString>;
|
|
578
579
|
scheduledDate: z.ZodNullable<z.ZodString>;
|
|
579
580
|
scheduledTime: z.ZodNullable<z.ZodString>;
|
|
580
581
|
serviceCode: z.ZodNullable<z.ZodString>;
|
|
581
|
-
sellerId: z.ZodNullable<z.
|
|
582
|
-
shippingProfileId: z.ZodNullable<z.
|
|
582
|
+
sellerId: z.ZodNullable<z.ZodString>;
|
|
583
|
+
shippingProfileId: z.ZodNullable<z.ZodString>;
|
|
583
584
|
}, "strip", z.ZodTypeAny, {
|
|
584
585
|
id: string;
|
|
585
586
|
name: string;
|
|
@@ -640,6 +641,7 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
640
641
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
641
642
|
id: string;
|
|
642
643
|
phone: string | null;
|
|
644
|
+
token: string;
|
|
643
645
|
cartNumber: string;
|
|
644
646
|
email: string | null;
|
|
645
647
|
firstName: string | null;
|
|
@@ -677,17 +679,17 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
677
679
|
promotionCodes: string[];
|
|
678
680
|
items: {
|
|
679
681
|
id: string;
|
|
680
|
-
productId:
|
|
682
|
+
productId: string | null;
|
|
681
683
|
quantity: number;
|
|
682
|
-
variantId:
|
|
684
|
+
variantId: string | null;
|
|
683
685
|
unitPrice: number;
|
|
684
686
|
bundleItems: {
|
|
685
687
|
imageUrl: string | null;
|
|
686
688
|
brand: string | null;
|
|
687
|
-
productId:
|
|
689
|
+
productId: string;
|
|
688
690
|
sku: string | null;
|
|
689
691
|
quantity: number;
|
|
690
|
-
variantId:
|
|
692
|
+
variantId: string;
|
|
691
693
|
productName: string;
|
|
692
694
|
variantName: string | null;
|
|
693
695
|
}[];
|
|
@@ -727,6 +729,7 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
727
729
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
728
730
|
id: string;
|
|
729
731
|
phone: string | null;
|
|
732
|
+
token: string;
|
|
730
733
|
cartNumber: string;
|
|
731
734
|
email: string | null;
|
|
732
735
|
firstName: string | null;
|
|
@@ -764,17 +767,17 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
764
767
|
promotionCodes: string[];
|
|
765
768
|
items: {
|
|
766
769
|
id: string;
|
|
767
|
-
productId:
|
|
770
|
+
productId: string | null;
|
|
768
771
|
quantity: number;
|
|
769
|
-
variantId:
|
|
772
|
+
variantId: string | null;
|
|
770
773
|
unitPrice: number;
|
|
771
774
|
bundleItems: {
|
|
772
775
|
imageUrl: string | null;
|
|
773
776
|
brand: string | null;
|
|
774
|
-
productId:
|
|
777
|
+
productId: string;
|
|
775
778
|
sku: string | null;
|
|
776
779
|
quantity: number;
|
|
777
|
-
variantId:
|
|
780
|
+
variantId: string;
|
|
778
781
|
productName: string;
|
|
779
782
|
variantName: string | null;
|
|
780
783
|
}[];
|
|
@@ -885,8 +888,8 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
885
888
|
}>;
|
|
886
889
|
orderBumps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
887
890
|
id: z.ZodString;
|
|
888
|
-
|
|
889
|
-
|
|
891
|
+
productId: z.ZodString;
|
|
892
|
+
variantId: z.ZodString;
|
|
890
893
|
productName: z.ZodString;
|
|
891
894
|
variantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
892
895
|
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -898,10 +901,10 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
898
901
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
899
902
|
}, "strip", z.ZodTypeAny, {
|
|
900
903
|
id: string;
|
|
904
|
+
productId: string;
|
|
905
|
+
variantId: string;
|
|
901
906
|
productName: string;
|
|
902
907
|
currencyCode: string;
|
|
903
|
-
productPublicId: string;
|
|
904
|
-
variantPublicId: string;
|
|
905
908
|
regularPrice: number;
|
|
906
909
|
offerPrice: number;
|
|
907
910
|
callToAction: string;
|
|
@@ -911,10 +914,10 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
911
914
|
badgeLabel?: string | null | undefined;
|
|
912
915
|
}, {
|
|
913
916
|
id: string;
|
|
917
|
+
productId: string;
|
|
918
|
+
variantId: string;
|
|
914
919
|
productName: string;
|
|
915
920
|
currencyCode: string;
|
|
916
|
-
productPublicId: string;
|
|
917
|
-
variantPublicId: string;
|
|
918
921
|
regularPrice: number;
|
|
919
922
|
offerPrice: number;
|
|
920
923
|
callToAction: string;
|
|
@@ -928,6 +931,7 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
928
931
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
929
932
|
id: string;
|
|
930
933
|
phone: string | null;
|
|
934
|
+
token: string;
|
|
931
935
|
cartNumber: string;
|
|
932
936
|
email: string | null;
|
|
933
937
|
firstName: string | null;
|
|
@@ -965,17 +969,17 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
965
969
|
promotionCodes: string[];
|
|
966
970
|
items: {
|
|
967
971
|
id: string;
|
|
968
|
-
productId:
|
|
972
|
+
productId: string | null;
|
|
969
973
|
quantity: number;
|
|
970
|
-
variantId:
|
|
974
|
+
variantId: string | null;
|
|
971
975
|
unitPrice: number;
|
|
972
976
|
bundleItems: {
|
|
973
977
|
imageUrl: string | null;
|
|
974
978
|
brand: string | null;
|
|
975
|
-
productId:
|
|
979
|
+
productId: string;
|
|
976
980
|
sku: string | null;
|
|
977
981
|
quantity: number;
|
|
978
|
-
variantId:
|
|
982
|
+
variantId: string;
|
|
979
983
|
productName: string;
|
|
980
984
|
variantName: string | null;
|
|
981
985
|
}[];
|
|
@@ -1030,10 +1034,10 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
1030
1034
|
};
|
|
1031
1035
|
orderBumps: {
|
|
1032
1036
|
id: string;
|
|
1037
|
+
productId: string;
|
|
1038
|
+
variantId: string;
|
|
1033
1039
|
productName: string;
|
|
1034
1040
|
currencyCode: string;
|
|
1035
|
-
productPublicId: string;
|
|
1036
|
-
variantPublicId: string;
|
|
1037
1041
|
regularPrice: number;
|
|
1038
1042
|
offerPrice: number;
|
|
1039
1043
|
callToAction: string;
|
|
@@ -1047,6 +1051,7 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
1047
1051
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
1048
1052
|
id: string;
|
|
1049
1053
|
phone: string | null;
|
|
1054
|
+
token: string;
|
|
1050
1055
|
cartNumber: string;
|
|
1051
1056
|
email: string | null;
|
|
1052
1057
|
firstName: string | null;
|
|
@@ -1084,17 +1089,17 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
1084
1089
|
promotionCodes: string[];
|
|
1085
1090
|
items: {
|
|
1086
1091
|
id: string;
|
|
1087
|
-
productId:
|
|
1092
|
+
productId: string | null;
|
|
1088
1093
|
quantity: number;
|
|
1089
|
-
variantId:
|
|
1094
|
+
variantId: string | null;
|
|
1090
1095
|
unitPrice: number;
|
|
1091
1096
|
bundleItems: {
|
|
1092
1097
|
imageUrl: string | null;
|
|
1093
1098
|
brand: string | null;
|
|
1094
|
-
productId:
|
|
1099
|
+
productId: string;
|
|
1095
1100
|
sku: string | null;
|
|
1096
1101
|
quantity: number;
|
|
1097
|
-
variantId:
|
|
1102
|
+
variantId: string;
|
|
1098
1103
|
productName: string;
|
|
1099
1104
|
variantName: string | null;
|
|
1100
1105
|
}[];
|
|
@@ -1149,10 +1154,10 @@ declare const CartCheckoutReadResponseSchema: z.ZodObject<{
|
|
|
1149
1154
|
};
|
|
1150
1155
|
orderBumps?: {
|
|
1151
1156
|
id: string;
|
|
1157
|
+
productId: string;
|
|
1158
|
+
variantId: string;
|
|
1152
1159
|
productName: string;
|
|
1153
1160
|
currencyCode: string;
|
|
1154
|
-
productPublicId: string;
|
|
1155
|
-
variantPublicId: string;
|
|
1156
1161
|
regularPrice: number;
|
|
1157
1162
|
offerPrice: number;
|
|
1158
1163
|
callToAction: string;
|
|
@@ -1442,7 +1447,8 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1442
1447
|
} | null | undefined;
|
|
1443
1448
|
}>>;
|
|
1444
1449
|
cart: z.ZodOptional<z.ZodObject<{
|
|
1445
|
-
id: z.
|
|
1450
|
+
id: z.ZodString;
|
|
1451
|
+
token: z.ZodString;
|
|
1446
1452
|
cartNumber: z.ZodString;
|
|
1447
1453
|
email: z.ZodNullable<z.ZodString>;
|
|
1448
1454
|
phone: z.ZodNullable<z.ZodString>;
|
|
@@ -1533,20 +1539,20 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1533
1539
|
}>>;
|
|
1534
1540
|
promotionCodes: z.ZodArray<z.ZodString, "many">;
|
|
1535
1541
|
items: z.ZodArray<z.ZodObject<{
|
|
1536
|
-
id: z.
|
|
1537
|
-
productId: z.
|
|
1542
|
+
id: z.ZodString;
|
|
1543
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1538
1544
|
title: z.ZodString;
|
|
1539
1545
|
variantLabel: z.ZodNullable<z.ZodString>;
|
|
1540
1546
|
productHandle: z.ZodNullable<z.ZodString>;
|
|
1541
1547
|
thumbnail: z.ZodNullable<z.ZodString>;
|
|
1542
1548
|
quantity: z.ZodNumber;
|
|
1543
|
-
variantId: z.
|
|
1549
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1544
1550
|
variantSku: z.ZodNullable<z.ZodString>;
|
|
1545
1551
|
unitPrice: z.ZodNumber;
|
|
1546
1552
|
compareAtUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
1547
1553
|
bundleItems: z.ZodArray<z.ZodObject<{
|
|
1548
|
-
productId: z.
|
|
1549
|
-
variantId: z.
|
|
1554
|
+
productId: z.ZodString;
|
|
1555
|
+
variantId: z.ZodString;
|
|
1550
1556
|
productName: z.ZodString;
|
|
1551
1557
|
variantName: z.ZodNullable<z.ZodString>;
|
|
1552
1558
|
sku: z.ZodNullable<z.ZodString>;
|
|
@@ -1556,35 +1562,35 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1556
1562
|
}, "strip", z.ZodTypeAny, {
|
|
1557
1563
|
imageUrl: string | null;
|
|
1558
1564
|
brand: string | null;
|
|
1559
|
-
productId:
|
|
1565
|
+
productId: string;
|
|
1560
1566
|
sku: string | null;
|
|
1561
1567
|
quantity: number;
|
|
1562
|
-
variantId:
|
|
1568
|
+
variantId: string;
|
|
1563
1569
|
productName: string;
|
|
1564
1570
|
variantName: string | null;
|
|
1565
1571
|
}, {
|
|
1566
1572
|
imageUrl: string | null;
|
|
1567
1573
|
brand: string | null;
|
|
1568
|
-
productId:
|
|
1574
|
+
productId: string;
|
|
1569
1575
|
sku: string | null;
|
|
1570
1576
|
quantity: number;
|
|
1571
|
-
variantId:
|
|
1577
|
+
variantId: string;
|
|
1572
1578
|
productName: string;
|
|
1573
1579
|
variantName: string | null;
|
|
1574
1580
|
}>, "many">;
|
|
1575
1581
|
}, "strip", z.ZodTypeAny, {
|
|
1576
1582
|
id: string;
|
|
1577
|
-
productId:
|
|
1583
|
+
productId: string | null;
|
|
1578
1584
|
quantity: number;
|
|
1579
|
-
variantId:
|
|
1585
|
+
variantId: string | null;
|
|
1580
1586
|
unitPrice: number;
|
|
1581
1587
|
bundleItems: {
|
|
1582
1588
|
imageUrl: string | null;
|
|
1583
1589
|
brand: string | null;
|
|
1584
|
-
productId:
|
|
1590
|
+
productId: string;
|
|
1585
1591
|
sku: string | null;
|
|
1586
1592
|
quantity: number;
|
|
1587
|
-
variantId:
|
|
1593
|
+
variantId: string;
|
|
1588
1594
|
productName: string;
|
|
1589
1595
|
variantName: string | null;
|
|
1590
1596
|
}[];
|
|
@@ -1596,17 +1602,17 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1596
1602
|
compareAtUnitPrice: number | null;
|
|
1597
1603
|
}, {
|
|
1598
1604
|
id: string;
|
|
1599
|
-
productId:
|
|
1605
|
+
productId: string | null;
|
|
1600
1606
|
quantity: number;
|
|
1601
|
-
variantId:
|
|
1607
|
+
variantId: string | null;
|
|
1602
1608
|
unitPrice: number;
|
|
1603
1609
|
bundleItems: {
|
|
1604
1610
|
imageUrl: string | null;
|
|
1605
1611
|
brand: string | null;
|
|
1606
|
-
productId:
|
|
1612
|
+
productId: string;
|
|
1607
1613
|
sku: string | null;
|
|
1608
1614
|
quantity: number;
|
|
1609
|
-
variantId:
|
|
1615
|
+
variantId: string;
|
|
1610
1616
|
productName: string;
|
|
1611
1617
|
variantName: string | null;
|
|
1612
1618
|
}[];
|
|
@@ -1618,20 +1624,20 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1618
1624
|
compareAtUnitPrice: number | null;
|
|
1619
1625
|
}>, "many">;
|
|
1620
1626
|
shippingMethods: z.ZodArray<z.ZodObject<{
|
|
1621
|
-
id: z.
|
|
1622
|
-
shippingMethodId: z.ZodNullable<z.
|
|
1623
|
-
rateId: z.ZodNullable<z.
|
|
1627
|
+
id: z.ZodString;
|
|
1628
|
+
shippingMethodId: z.ZodNullable<z.ZodString>;
|
|
1629
|
+
rateId: z.ZodNullable<z.ZodString>;
|
|
1624
1630
|
name: z.ZodString;
|
|
1625
1631
|
description: z.ZodNullable<z.ZodString>;
|
|
1626
1632
|
total: z.ZodNumber;
|
|
1627
|
-
locationId: z.ZodNullable<z.
|
|
1633
|
+
locationId: z.ZodNullable<z.ZodString>;
|
|
1628
1634
|
estimatedDays: z.ZodNullable<z.ZodNumber>;
|
|
1629
|
-
pickupPointId: z.ZodNullable<z.
|
|
1635
|
+
pickupPointId: z.ZodNullable<z.ZodString>;
|
|
1630
1636
|
scheduledDate: z.ZodNullable<z.ZodString>;
|
|
1631
1637
|
scheduledTime: z.ZodNullable<z.ZodString>;
|
|
1632
1638
|
serviceCode: z.ZodNullable<z.ZodString>;
|
|
1633
|
-
sellerId: z.ZodNullable<z.
|
|
1634
|
-
shippingProfileId: z.ZodNullable<z.
|
|
1639
|
+
sellerId: z.ZodNullable<z.ZodString>;
|
|
1640
|
+
shippingProfileId: z.ZodNullable<z.ZodString>;
|
|
1635
1641
|
}, "strip", z.ZodTypeAny, {
|
|
1636
1642
|
id: string;
|
|
1637
1643
|
name: string;
|
|
@@ -1692,6 +1698,7 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1692
1698
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
1693
1699
|
id: string;
|
|
1694
1700
|
phone: string | null;
|
|
1701
|
+
token: string;
|
|
1695
1702
|
cartNumber: string;
|
|
1696
1703
|
email: string | null;
|
|
1697
1704
|
firstName: string | null;
|
|
@@ -1729,17 +1736,17 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1729
1736
|
promotionCodes: string[];
|
|
1730
1737
|
items: {
|
|
1731
1738
|
id: string;
|
|
1732
|
-
productId:
|
|
1739
|
+
productId: string | null;
|
|
1733
1740
|
quantity: number;
|
|
1734
|
-
variantId:
|
|
1741
|
+
variantId: string | null;
|
|
1735
1742
|
unitPrice: number;
|
|
1736
1743
|
bundleItems: {
|
|
1737
1744
|
imageUrl: string | null;
|
|
1738
1745
|
brand: string | null;
|
|
1739
|
-
productId:
|
|
1746
|
+
productId: string;
|
|
1740
1747
|
sku: string | null;
|
|
1741
1748
|
quantity: number;
|
|
1742
|
-
variantId:
|
|
1749
|
+
variantId: string;
|
|
1743
1750
|
productName: string;
|
|
1744
1751
|
variantName: string | null;
|
|
1745
1752
|
}[];
|
|
@@ -1779,6 +1786,7 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1779
1786
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
1780
1787
|
id: string;
|
|
1781
1788
|
phone: string | null;
|
|
1789
|
+
token: string;
|
|
1782
1790
|
cartNumber: string;
|
|
1783
1791
|
email: string | null;
|
|
1784
1792
|
firstName: string | null;
|
|
@@ -1816,17 +1824,17 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1816
1824
|
promotionCodes: string[];
|
|
1817
1825
|
items: {
|
|
1818
1826
|
id: string;
|
|
1819
|
-
productId:
|
|
1827
|
+
productId: string | null;
|
|
1820
1828
|
quantity: number;
|
|
1821
|
-
variantId:
|
|
1829
|
+
variantId: string | null;
|
|
1822
1830
|
unitPrice: number;
|
|
1823
1831
|
bundleItems: {
|
|
1824
1832
|
imageUrl: string | null;
|
|
1825
1833
|
brand: string | null;
|
|
1826
|
-
productId:
|
|
1834
|
+
productId: string;
|
|
1827
1835
|
sku: string | null;
|
|
1828
1836
|
quantity: number;
|
|
1829
|
-
variantId:
|
|
1837
|
+
variantId: string;
|
|
1830
1838
|
productName: string;
|
|
1831
1839
|
variantName: string | null;
|
|
1832
1840
|
}[];
|
|
@@ -1869,6 +1877,7 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1869
1877
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
1870
1878
|
id: string;
|
|
1871
1879
|
phone: string | null;
|
|
1880
|
+
token: string;
|
|
1872
1881
|
cartNumber: string;
|
|
1873
1882
|
email: string | null;
|
|
1874
1883
|
firstName: string | null;
|
|
@@ -1906,17 +1915,17 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1906
1915
|
promotionCodes: string[];
|
|
1907
1916
|
items: {
|
|
1908
1917
|
id: string;
|
|
1909
|
-
productId:
|
|
1918
|
+
productId: string | null;
|
|
1910
1919
|
quantity: number;
|
|
1911
|
-
variantId:
|
|
1920
|
+
variantId: string | null;
|
|
1912
1921
|
unitPrice: number;
|
|
1913
1922
|
bundleItems: {
|
|
1914
1923
|
imageUrl: string | null;
|
|
1915
1924
|
brand: string | null;
|
|
1916
|
-
productId:
|
|
1925
|
+
productId: string;
|
|
1917
1926
|
sku: string | null;
|
|
1918
1927
|
quantity: number;
|
|
1919
|
-
variantId:
|
|
1928
|
+
variantId: string;
|
|
1920
1929
|
productName: string;
|
|
1921
1930
|
variantName: string | null;
|
|
1922
1931
|
}[];
|
|
@@ -1990,6 +1999,7 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
1990
1999
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
1991
2000
|
id: string;
|
|
1992
2001
|
phone: string | null;
|
|
2002
|
+
token: string;
|
|
1993
2003
|
cartNumber: string;
|
|
1994
2004
|
email: string | null;
|
|
1995
2005
|
firstName: string | null;
|
|
@@ -2027,17 +2037,17 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
2027
2037
|
promotionCodes: string[];
|
|
2028
2038
|
items: {
|
|
2029
2039
|
id: string;
|
|
2030
|
-
productId:
|
|
2040
|
+
productId: string | null;
|
|
2031
2041
|
quantity: number;
|
|
2032
|
-
variantId:
|
|
2042
|
+
variantId: string | null;
|
|
2033
2043
|
unitPrice: number;
|
|
2034
2044
|
bundleItems: {
|
|
2035
2045
|
imageUrl: string | null;
|
|
2036
2046
|
brand: string | null;
|
|
2037
|
-
productId:
|
|
2047
|
+
productId: string;
|
|
2038
2048
|
sku: string | null;
|
|
2039
2049
|
quantity: number;
|
|
2040
|
-
variantId:
|
|
2050
|
+
variantId: string;
|
|
2041
2051
|
productName: string;
|
|
2042
2052
|
variantName: string | null;
|
|
2043
2053
|
}[];
|
|
@@ -2108,17 +2118,17 @@ declare const CartCheckoutResponseSchema: z.ZodObject<{
|
|
|
2108
2118
|
}>;
|
|
2109
2119
|
type CartCheckoutResponse = z.infer<typeof CartCheckoutResponseSchema>;
|
|
2110
2120
|
declare const CartCheckoutParamsSchema: z.ZodObject<{
|
|
2111
|
-
|
|
2121
|
+
cartToken: z.ZodString;
|
|
2112
2122
|
paymentMethodCode: z.ZodString;
|
|
2113
2123
|
externalRef: z.ZodString;
|
|
2114
2124
|
receiptUrl: z.ZodOptional<z.ZodString>;
|
|
2115
2125
|
}, "strip", z.ZodTypeAny, {
|
|
2116
|
-
|
|
2126
|
+
cartToken: string;
|
|
2117
2127
|
paymentMethodCode: string;
|
|
2118
2128
|
externalRef: string;
|
|
2119
2129
|
receiptUrl?: string | undefined;
|
|
2120
2130
|
}, {
|
|
2121
|
-
|
|
2131
|
+
cartToken: string;
|
|
2122
2132
|
paymentMethodCode: string;
|
|
2123
2133
|
externalRef: string;
|
|
2124
2134
|
receiptUrl?: string | undefined;
|
|
@@ -2418,18 +2428,18 @@ declare const ShippingOptionsResponseSchema: z.ZodObject<{
|
|
|
2418
2428
|
}>;
|
|
2419
2429
|
type ShippingOptionsResponse = z.infer<typeof ShippingOptionsResponseSchema>;
|
|
2420
2430
|
declare const GetShippingOptionsParamsSchema: z.ZodObject<{
|
|
2421
|
-
|
|
2431
|
+
cartToken: z.ZodString;
|
|
2422
2432
|
postalCode: z.ZodString;
|
|
2423
2433
|
}, "strip", z.ZodTypeAny, {
|
|
2424
2434
|
postalCode: string;
|
|
2425
|
-
|
|
2435
|
+
cartToken: string;
|
|
2426
2436
|
}, {
|
|
2427
2437
|
postalCode: string;
|
|
2428
|
-
|
|
2438
|
+
cartToken: string;
|
|
2429
2439
|
}>;
|
|
2430
2440
|
type GetShippingOptionsParams = z.input<typeof GetShippingOptionsParamsSchema>;
|
|
2431
2441
|
declare const PutShippingMethodParamsSchema: z.ZodObject<{
|
|
2432
|
-
|
|
2442
|
+
cartToken: z.ZodString;
|
|
2433
2443
|
rateId: z.ZodString;
|
|
2434
2444
|
shippingMethodId: z.ZodString;
|
|
2435
2445
|
serviceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2442,7 +2452,7 @@ declare const PutShippingMethodParamsSchema: z.ZodObject<{
|
|
|
2442
2452
|
}, "strip", z.ZodTypeAny, {
|
|
2443
2453
|
shippingMethodId: string;
|
|
2444
2454
|
rateId: string;
|
|
2445
|
-
|
|
2455
|
+
cartToken: string;
|
|
2446
2456
|
sellerId?: string | null | undefined;
|
|
2447
2457
|
locationId?: string | null | undefined;
|
|
2448
2458
|
pickupPointId?: string | null | undefined;
|
|
@@ -2453,7 +2463,7 @@ declare const PutShippingMethodParamsSchema: z.ZodObject<{
|
|
|
2453
2463
|
}, {
|
|
2454
2464
|
shippingMethodId: string;
|
|
2455
2465
|
rateId: string;
|
|
2456
|
-
|
|
2466
|
+
cartToken: string;
|
|
2457
2467
|
sellerId?: string | null | undefined;
|
|
2458
2468
|
locationId?: string | null | undefined;
|
|
2459
2469
|
pickupPointId?: string | null | undefined;
|
|
@@ -2475,19 +2485,19 @@ declare const CartPaymentReceiptResponseSchema: z.ZodObject<{
|
|
|
2475
2485
|
}>;
|
|
2476
2486
|
type CartPaymentReceiptResponse = z.infer<typeof CartPaymentReceiptResponseSchema>;
|
|
2477
2487
|
type UploadPaymentReceiptParams = {
|
|
2478
|
-
|
|
2488
|
+
cartToken: string;
|
|
2479
2489
|
file: Blob;
|
|
2480
2490
|
fileName?: string;
|
|
2481
2491
|
};
|
|
2482
2492
|
declare const CartPromotionCodeParamsSchema: z.ZodObject<{
|
|
2483
|
-
|
|
2493
|
+
cartToken: z.ZodString;
|
|
2484
2494
|
code: z.ZodString;
|
|
2485
2495
|
}, "strip", z.ZodTypeAny, {
|
|
2486
2496
|
code: string;
|
|
2487
|
-
|
|
2497
|
+
cartToken: string;
|
|
2488
2498
|
}, {
|
|
2489
2499
|
code: string;
|
|
2490
|
-
|
|
2500
|
+
cartToken: string;
|
|
2491
2501
|
}>;
|
|
2492
2502
|
type CartPromotionCodeParams = z.input<typeof CartPromotionCodeParamsSchema>;
|
|
2493
2503
|
|