@brytdesigns/shopify-ajax-cart-api 1.0.3 → 1.0.4
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/effect/index.d.ts +100 -28
- package/dist/effect/schema.js +30 -6
- package/dist/effect/schema.js.map +1 -1
- package/dist/esm/index.js +30 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/main/effect/schema.js +30 -6
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +211 -59
- package/package.json +1 -1
package/dist/main/index.d.ts
CHANGED
|
@@ -134,14 +134,18 @@ declare const add: (input?: ({
|
|
|
134
134
|
readonly sections_url?: string | undefined;
|
|
135
135
|
}) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
136
136
|
readonly items: readonly {
|
|
137
|
+
readonly key: string;
|
|
137
138
|
readonly title: string;
|
|
138
139
|
readonly url: string;
|
|
139
140
|
readonly price: number;
|
|
140
141
|
readonly id: string | number;
|
|
141
|
-
readonly key: string;
|
|
142
142
|
readonly properties: {
|
|
143
143
|
readonly [x: string]: string | number | boolean | null;
|
|
144
144
|
} | null;
|
|
145
|
+
readonly properties_array: readonly {
|
|
146
|
+
readonly key: string;
|
|
147
|
+
readonly value: string | number | boolean | null;
|
|
148
|
+
}[] | null;
|
|
145
149
|
readonly quantity: number;
|
|
146
150
|
readonly variant_id: string | number;
|
|
147
151
|
readonly original_price: number;
|
|
@@ -184,12 +188,12 @@ declare const add: (input?: ({
|
|
|
184
188
|
readonly line_level_discount_allocations: readonly {
|
|
185
189
|
readonly amount: number;
|
|
186
190
|
readonly discount_application: {
|
|
191
|
+
readonly value: number;
|
|
187
192
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
188
193
|
readonly target_type: "line_item" | "shipping_line";
|
|
189
194
|
readonly title: string;
|
|
190
195
|
readonly total_allocated_amount: number;
|
|
191
196
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
192
|
-
readonly value: number;
|
|
193
197
|
readonly value_type: "fixed_amount" | "percentage";
|
|
194
198
|
readonly description: string | null;
|
|
195
199
|
};
|
|
@@ -243,14 +247,18 @@ declare const add: (input?: ({
|
|
|
243
247
|
};
|
|
244
248
|
}> | AjaxClientResponse<{
|
|
245
249
|
readonly items: readonly {
|
|
250
|
+
readonly key: string;
|
|
246
251
|
readonly title: string;
|
|
247
252
|
readonly url: string;
|
|
248
253
|
readonly price: number;
|
|
249
254
|
readonly id: string | number;
|
|
250
|
-
readonly key: string;
|
|
251
255
|
readonly properties: {
|
|
252
256
|
readonly [x: string]: string | number | boolean | null;
|
|
253
257
|
} | null;
|
|
258
|
+
readonly properties_array: readonly {
|
|
259
|
+
readonly key: string;
|
|
260
|
+
readonly value: string | number | boolean | null;
|
|
261
|
+
}[] | null;
|
|
254
262
|
readonly quantity: number;
|
|
255
263
|
readonly variant_id: string | number;
|
|
256
264
|
readonly original_price: number;
|
|
@@ -293,12 +301,12 @@ declare const add: (input?: ({
|
|
|
293
301
|
readonly line_level_discount_allocations: readonly {
|
|
294
302
|
readonly amount: number;
|
|
295
303
|
readonly discount_application: {
|
|
304
|
+
readonly value: number;
|
|
296
305
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
297
306
|
readonly target_type: "line_item" | "shipping_line";
|
|
298
307
|
readonly title: string;
|
|
299
308
|
readonly total_allocated_amount: number;
|
|
300
309
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
301
|
-
readonly value: number;
|
|
302
310
|
readonly value_type: "fixed_amount" | "percentage";
|
|
303
311
|
readonly description: string | null;
|
|
304
312
|
};
|
|
@@ -386,6 +394,10 @@ declare const change: (input?: ({
|
|
|
386
394
|
readonly attributes: {
|
|
387
395
|
readonly [x: string]: string | number | boolean | null;
|
|
388
396
|
};
|
|
397
|
+
readonly attributes_array: readonly {
|
|
398
|
+
readonly key: string;
|
|
399
|
+
readonly value: string | number | boolean | null;
|
|
400
|
+
}[];
|
|
389
401
|
readonly discount_codes: readonly {
|
|
390
402
|
readonly code: string;
|
|
391
403
|
readonly applicable: boolean;
|
|
@@ -395,14 +407,18 @@ declare const change: (input?: ({
|
|
|
395
407
|
readonly total_weight: number;
|
|
396
408
|
readonly item_count: number;
|
|
397
409
|
readonly items: readonly {
|
|
410
|
+
readonly key: string;
|
|
398
411
|
readonly title: string;
|
|
399
412
|
readonly url: string;
|
|
400
413
|
readonly price: number;
|
|
401
414
|
readonly id: string | number;
|
|
402
|
-
readonly key: string;
|
|
403
415
|
readonly properties: {
|
|
404
416
|
readonly [x: string]: string | number | boolean | null;
|
|
405
417
|
} | null;
|
|
418
|
+
readonly properties_array: readonly {
|
|
419
|
+
readonly key: string;
|
|
420
|
+
readonly value: string | number | boolean | null;
|
|
421
|
+
}[] | null;
|
|
406
422
|
readonly quantity: number;
|
|
407
423
|
readonly variant_id: string | number;
|
|
408
424
|
readonly original_price: number;
|
|
@@ -445,12 +461,12 @@ declare const change: (input?: ({
|
|
|
445
461
|
readonly line_level_discount_allocations: readonly {
|
|
446
462
|
readonly amount: number;
|
|
447
463
|
readonly discount_application: {
|
|
464
|
+
readonly value: number;
|
|
448
465
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
449
466
|
readonly target_type: "line_item" | "shipping_line";
|
|
450
467
|
readonly title: string;
|
|
451
468
|
readonly total_allocated_amount: number;
|
|
452
469
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
453
|
-
readonly value: number;
|
|
454
470
|
readonly value_type: "fixed_amount" | "percentage";
|
|
455
471
|
readonly description: string | null;
|
|
456
472
|
};
|
|
@@ -501,12 +517,12 @@ declare const change: (input?: ({
|
|
|
501
517
|
readonly currency: string;
|
|
502
518
|
readonly items_subtotal_price: number;
|
|
503
519
|
readonly cart_level_discount_applications: readonly {
|
|
520
|
+
readonly value: number;
|
|
504
521
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
505
522
|
readonly target_type: "line_item" | "shipping_line";
|
|
506
523
|
readonly title: string;
|
|
507
524
|
readonly total_allocated_amount: number;
|
|
508
525
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
509
|
-
readonly value: number;
|
|
510
526
|
readonly value_type: "fixed_amount" | "percentage";
|
|
511
527
|
readonly description: string | null;
|
|
512
528
|
}[];
|
|
@@ -564,6 +580,10 @@ declare const change: (input?: ({
|
|
|
564
580
|
readonly attributes: {
|
|
565
581
|
readonly [x: string]: string | number | boolean | null;
|
|
566
582
|
};
|
|
583
|
+
readonly attributes_array: readonly {
|
|
584
|
+
readonly key: string;
|
|
585
|
+
readonly value: string | number | boolean | null;
|
|
586
|
+
}[];
|
|
567
587
|
readonly discount_codes: readonly {
|
|
568
588
|
readonly code: string;
|
|
569
589
|
readonly applicable: boolean;
|
|
@@ -573,14 +593,18 @@ declare const change: (input?: ({
|
|
|
573
593
|
readonly total_weight: number;
|
|
574
594
|
readonly item_count: number;
|
|
575
595
|
readonly items: readonly {
|
|
596
|
+
readonly key: string;
|
|
576
597
|
readonly title: string;
|
|
577
598
|
readonly url: string;
|
|
578
599
|
readonly price: number;
|
|
579
600
|
readonly id: string | number;
|
|
580
|
-
readonly key: string;
|
|
581
601
|
readonly properties: {
|
|
582
602
|
readonly [x: string]: string | number | boolean | null;
|
|
583
603
|
} | null;
|
|
604
|
+
readonly properties_array: readonly {
|
|
605
|
+
readonly key: string;
|
|
606
|
+
readonly value: string | number | boolean | null;
|
|
607
|
+
}[] | null;
|
|
584
608
|
readonly quantity: number;
|
|
585
609
|
readonly variant_id: string | number;
|
|
586
610
|
readonly original_price: number;
|
|
@@ -623,12 +647,12 @@ declare const change: (input?: ({
|
|
|
623
647
|
readonly line_level_discount_allocations: readonly {
|
|
624
648
|
readonly amount: number;
|
|
625
649
|
readonly discount_application: {
|
|
650
|
+
readonly value: number;
|
|
626
651
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
627
652
|
readonly target_type: "line_item" | "shipping_line";
|
|
628
653
|
readonly title: string;
|
|
629
654
|
readonly total_allocated_amount: number;
|
|
630
655
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
631
|
-
readonly value: number;
|
|
632
656
|
readonly value_type: "fixed_amount" | "percentage";
|
|
633
657
|
readonly description: string | null;
|
|
634
658
|
};
|
|
@@ -679,12 +703,12 @@ declare const change: (input?: ({
|
|
|
679
703
|
readonly currency: string;
|
|
680
704
|
readonly items_subtotal_price: number;
|
|
681
705
|
readonly cart_level_discount_applications: readonly {
|
|
706
|
+
readonly value: number;
|
|
682
707
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
683
708
|
readonly target_type: "line_item" | "shipping_line";
|
|
684
709
|
readonly title: string;
|
|
685
710
|
readonly total_allocated_amount: number;
|
|
686
711
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
687
|
-
readonly value: number;
|
|
688
712
|
readonly value_type: "fixed_amount" | "percentage";
|
|
689
713
|
readonly description: string | null;
|
|
690
714
|
}[];
|
|
@@ -747,6 +771,10 @@ declare const clear: (input?: {
|
|
|
747
771
|
readonly attributes: {
|
|
748
772
|
readonly [x: string]: string | number | boolean | null;
|
|
749
773
|
};
|
|
774
|
+
readonly attributes_array: readonly {
|
|
775
|
+
readonly key: string;
|
|
776
|
+
readonly value: string | number | boolean | null;
|
|
777
|
+
}[];
|
|
750
778
|
readonly discount_codes: readonly {
|
|
751
779
|
readonly code: string;
|
|
752
780
|
readonly applicable: boolean;
|
|
@@ -756,14 +784,18 @@ declare const clear: (input?: {
|
|
|
756
784
|
readonly total_weight: number;
|
|
757
785
|
readonly item_count: number;
|
|
758
786
|
readonly items: readonly {
|
|
787
|
+
readonly key: string;
|
|
759
788
|
readonly title: string;
|
|
760
789
|
readonly url: string;
|
|
761
790
|
readonly price: number;
|
|
762
791
|
readonly id: string | number;
|
|
763
|
-
readonly key: string;
|
|
764
792
|
readonly properties: {
|
|
765
793
|
readonly [x: string]: string | number | boolean | null;
|
|
766
794
|
} | null;
|
|
795
|
+
readonly properties_array: readonly {
|
|
796
|
+
readonly key: string;
|
|
797
|
+
readonly value: string | number | boolean | null;
|
|
798
|
+
}[] | null;
|
|
767
799
|
readonly quantity: number;
|
|
768
800
|
readonly variant_id: string | number;
|
|
769
801
|
readonly original_price: number;
|
|
@@ -806,12 +838,12 @@ declare const clear: (input?: {
|
|
|
806
838
|
readonly line_level_discount_allocations: readonly {
|
|
807
839
|
readonly amount: number;
|
|
808
840
|
readonly discount_application: {
|
|
841
|
+
readonly value: number;
|
|
809
842
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
810
843
|
readonly target_type: "line_item" | "shipping_line";
|
|
811
844
|
readonly title: string;
|
|
812
845
|
readonly total_allocated_amount: number;
|
|
813
846
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
814
|
-
readonly value: number;
|
|
815
847
|
readonly value_type: "fixed_amount" | "percentage";
|
|
816
848
|
readonly description: string | null;
|
|
817
849
|
};
|
|
@@ -862,12 +894,12 @@ declare const clear: (input?: {
|
|
|
862
894
|
readonly currency: string;
|
|
863
895
|
readonly items_subtotal_price: number;
|
|
864
896
|
readonly cart_level_discount_applications: readonly {
|
|
897
|
+
readonly value: number;
|
|
865
898
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
866
899
|
readonly target_type: "line_item" | "shipping_line";
|
|
867
900
|
readonly title: string;
|
|
868
901
|
readonly total_allocated_amount: number;
|
|
869
902
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
870
|
-
readonly value: number;
|
|
871
903
|
readonly value_type: "fixed_amount" | "percentage";
|
|
872
904
|
readonly description: string | null;
|
|
873
905
|
}[];
|
|
@@ -887,6 +919,10 @@ declare const clear: (input?: {
|
|
|
887
919
|
readonly attributes: {
|
|
888
920
|
readonly [x: string]: string | number | boolean | null;
|
|
889
921
|
};
|
|
922
|
+
readonly attributes_array: readonly {
|
|
923
|
+
readonly key: string;
|
|
924
|
+
readonly value: string | number | boolean | null;
|
|
925
|
+
}[];
|
|
890
926
|
readonly discount_codes: readonly {
|
|
891
927
|
readonly code: string;
|
|
892
928
|
readonly applicable: boolean;
|
|
@@ -896,14 +932,18 @@ declare const clear: (input?: {
|
|
|
896
932
|
readonly total_weight: number;
|
|
897
933
|
readonly item_count: number;
|
|
898
934
|
readonly items: readonly {
|
|
935
|
+
readonly key: string;
|
|
899
936
|
readonly title: string;
|
|
900
937
|
readonly url: string;
|
|
901
938
|
readonly price: number;
|
|
902
939
|
readonly id: string | number;
|
|
903
|
-
readonly key: string;
|
|
904
940
|
readonly properties: {
|
|
905
941
|
readonly [x: string]: string | number | boolean | null;
|
|
906
942
|
} | null;
|
|
943
|
+
readonly properties_array: readonly {
|
|
944
|
+
readonly key: string;
|
|
945
|
+
readonly value: string | number | boolean | null;
|
|
946
|
+
}[] | null;
|
|
907
947
|
readonly quantity: number;
|
|
908
948
|
readonly variant_id: string | number;
|
|
909
949
|
readonly original_price: number;
|
|
@@ -946,12 +986,12 @@ declare const clear: (input?: {
|
|
|
946
986
|
readonly line_level_discount_allocations: readonly {
|
|
947
987
|
readonly amount: number;
|
|
948
988
|
readonly discount_application: {
|
|
989
|
+
readonly value: number;
|
|
949
990
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
950
991
|
readonly target_type: "line_item" | "shipping_line";
|
|
951
992
|
readonly title: string;
|
|
952
993
|
readonly total_allocated_amount: number;
|
|
953
994
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
954
|
-
readonly value: number;
|
|
955
995
|
readonly value_type: "fixed_amount" | "percentage";
|
|
956
996
|
readonly description: string | null;
|
|
957
997
|
};
|
|
@@ -1002,12 +1042,12 @@ declare const clear: (input?: {
|
|
|
1002
1042
|
readonly currency: string;
|
|
1003
1043
|
readonly items_subtotal_price: number;
|
|
1004
1044
|
readonly cart_level_discount_applications: readonly {
|
|
1045
|
+
readonly value: number;
|
|
1005
1046
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1006
1047
|
readonly target_type: "line_item" | "shipping_line";
|
|
1007
1048
|
readonly title: string;
|
|
1008
1049
|
readonly total_allocated_amount: number;
|
|
1009
1050
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1010
|
-
readonly value: number;
|
|
1011
1051
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1012
1052
|
readonly description: string | null;
|
|
1013
1053
|
}[];
|
|
@@ -1032,6 +1072,10 @@ declare const get: (input?: {
|
|
|
1032
1072
|
readonly attributes: {
|
|
1033
1073
|
readonly [x: string]: string | number | boolean | null;
|
|
1034
1074
|
};
|
|
1075
|
+
readonly attributes_array: readonly {
|
|
1076
|
+
readonly key: string;
|
|
1077
|
+
readonly value: string | number | boolean | null;
|
|
1078
|
+
}[];
|
|
1035
1079
|
readonly discount_codes: readonly {
|
|
1036
1080
|
readonly code: string;
|
|
1037
1081
|
readonly applicable: boolean;
|
|
@@ -1041,14 +1085,18 @@ declare const get: (input?: {
|
|
|
1041
1085
|
readonly total_weight: number;
|
|
1042
1086
|
readonly item_count: number;
|
|
1043
1087
|
readonly items: readonly {
|
|
1088
|
+
readonly key: string;
|
|
1044
1089
|
readonly title: string;
|
|
1045
1090
|
readonly url: string;
|
|
1046
1091
|
readonly price: number;
|
|
1047
1092
|
readonly id: string | number;
|
|
1048
|
-
readonly key: string;
|
|
1049
1093
|
readonly properties: {
|
|
1050
1094
|
readonly [x: string]: string | number | boolean | null;
|
|
1051
1095
|
} | null;
|
|
1096
|
+
readonly properties_array: readonly {
|
|
1097
|
+
readonly key: string;
|
|
1098
|
+
readonly value: string | number | boolean | null;
|
|
1099
|
+
}[] | null;
|
|
1052
1100
|
readonly quantity: number;
|
|
1053
1101
|
readonly variant_id: string | number;
|
|
1054
1102
|
readonly original_price: number;
|
|
@@ -1091,12 +1139,12 @@ declare const get: (input?: {
|
|
|
1091
1139
|
readonly line_level_discount_allocations: readonly {
|
|
1092
1140
|
readonly amount: number;
|
|
1093
1141
|
readonly discount_application: {
|
|
1142
|
+
readonly value: number;
|
|
1094
1143
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1095
1144
|
readonly target_type: "line_item" | "shipping_line";
|
|
1096
1145
|
readonly title: string;
|
|
1097
1146
|
readonly total_allocated_amount: number;
|
|
1098
1147
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1099
|
-
readonly value: number;
|
|
1100
1148
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1101
1149
|
readonly description: string | null;
|
|
1102
1150
|
};
|
|
@@ -1147,12 +1195,12 @@ declare const get: (input?: {
|
|
|
1147
1195
|
readonly currency: string;
|
|
1148
1196
|
readonly items_subtotal_price: number;
|
|
1149
1197
|
readonly cart_level_discount_applications: readonly {
|
|
1198
|
+
readonly value: number;
|
|
1150
1199
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1151
1200
|
readonly target_type: "line_item" | "shipping_line";
|
|
1152
1201
|
readonly title: string;
|
|
1153
1202
|
readonly total_allocated_amount: number;
|
|
1154
1203
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1155
|
-
readonly value: number;
|
|
1156
1204
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1157
1205
|
readonly description: string | null;
|
|
1158
1206
|
}[];
|
|
@@ -1172,6 +1220,10 @@ declare const get: (input?: {
|
|
|
1172
1220
|
readonly attributes: {
|
|
1173
1221
|
readonly [x: string]: string | number | boolean | null;
|
|
1174
1222
|
};
|
|
1223
|
+
readonly attributes_array: readonly {
|
|
1224
|
+
readonly key: string;
|
|
1225
|
+
readonly value: string | number | boolean | null;
|
|
1226
|
+
}[];
|
|
1175
1227
|
readonly discount_codes: readonly {
|
|
1176
1228
|
readonly code: string;
|
|
1177
1229
|
readonly applicable: boolean;
|
|
@@ -1181,14 +1233,18 @@ declare const get: (input?: {
|
|
|
1181
1233
|
readonly total_weight: number;
|
|
1182
1234
|
readonly item_count: number;
|
|
1183
1235
|
readonly items: readonly {
|
|
1236
|
+
readonly key: string;
|
|
1184
1237
|
readonly title: string;
|
|
1185
1238
|
readonly url: string;
|
|
1186
1239
|
readonly price: number;
|
|
1187
1240
|
readonly id: string | number;
|
|
1188
|
-
readonly key: string;
|
|
1189
1241
|
readonly properties: {
|
|
1190
1242
|
readonly [x: string]: string | number | boolean | null;
|
|
1191
1243
|
} | null;
|
|
1244
|
+
readonly properties_array: readonly {
|
|
1245
|
+
readonly key: string;
|
|
1246
|
+
readonly value: string | number | boolean | null;
|
|
1247
|
+
}[] | null;
|
|
1192
1248
|
readonly quantity: number;
|
|
1193
1249
|
readonly variant_id: string | number;
|
|
1194
1250
|
readonly original_price: number;
|
|
@@ -1231,12 +1287,12 @@ declare const get: (input?: {
|
|
|
1231
1287
|
readonly line_level_discount_allocations: readonly {
|
|
1232
1288
|
readonly amount: number;
|
|
1233
1289
|
readonly discount_application: {
|
|
1290
|
+
readonly value: number;
|
|
1234
1291
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1235
1292
|
readonly target_type: "line_item" | "shipping_line";
|
|
1236
1293
|
readonly title: string;
|
|
1237
1294
|
readonly total_allocated_amount: number;
|
|
1238
1295
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1239
|
-
readonly value: number;
|
|
1240
1296
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1241
1297
|
readonly description: string | null;
|
|
1242
1298
|
};
|
|
@@ -1287,12 +1343,12 @@ declare const get: (input?: {
|
|
|
1287
1343
|
readonly currency: string;
|
|
1288
1344
|
readonly items_subtotal_price: number;
|
|
1289
1345
|
readonly cart_level_discount_applications: readonly {
|
|
1346
|
+
readonly value: number;
|
|
1290
1347
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1291
1348
|
readonly target_type: "line_item" | "shipping_line";
|
|
1292
1349
|
readonly title: string;
|
|
1293
1350
|
readonly total_allocated_amount: number;
|
|
1294
1351
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1295
|
-
readonly value: number;
|
|
1296
1352
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1297
1353
|
readonly description: string | null;
|
|
1298
1354
|
}[];
|
|
@@ -1326,6 +1382,10 @@ declare const update: (input?: ({
|
|
|
1326
1382
|
readonly attributes: {
|
|
1327
1383
|
readonly [x: string]: string | number | boolean | null;
|
|
1328
1384
|
};
|
|
1385
|
+
readonly attributes_array: readonly {
|
|
1386
|
+
readonly key: string;
|
|
1387
|
+
readonly value: string | number | boolean | null;
|
|
1388
|
+
}[];
|
|
1329
1389
|
readonly discount_codes: readonly {
|
|
1330
1390
|
readonly code: string;
|
|
1331
1391
|
readonly applicable: boolean;
|
|
@@ -1335,14 +1395,18 @@ declare const update: (input?: ({
|
|
|
1335
1395
|
readonly total_weight: number;
|
|
1336
1396
|
readonly item_count: number;
|
|
1337
1397
|
readonly items: readonly {
|
|
1398
|
+
readonly key: string;
|
|
1338
1399
|
readonly title: string;
|
|
1339
1400
|
readonly url: string;
|
|
1340
1401
|
readonly price: number;
|
|
1341
1402
|
readonly id: string | number;
|
|
1342
|
-
readonly key: string;
|
|
1343
1403
|
readonly properties: {
|
|
1344
1404
|
readonly [x: string]: string | number | boolean | null;
|
|
1345
1405
|
} | null;
|
|
1406
|
+
readonly properties_array: readonly {
|
|
1407
|
+
readonly key: string;
|
|
1408
|
+
readonly value: string | number | boolean | null;
|
|
1409
|
+
}[] | null;
|
|
1346
1410
|
readonly quantity: number;
|
|
1347
1411
|
readonly variant_id: string | number;
|
|
1348
1412
|
readonly original_price: number;
|
|
@@ -1385,12 +1449,12 @@ declare const update: (input?: ({
|
|
|
1385
1449
|
readonly line_level_discount_allocations: readonly {
|
|
1386
1450
|
readonly amount: number;
|
|
1387
1451
|
readonly discount_application: {
|
|
1452
|
+
readonly value: number;
|
|
1388
1453
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1389
1454
|
readonly target_type: "line_item" | "shipping_line";
|
|
1390
1455
|
readonly title: string;
|
|
1391
1456
|
readonly total_allocated_amount: number;
|
|
1392
1457
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1393
|
-
readonly value: number;
|
|
1394
1458
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1395
1459
|
readonly description: string | null;
|
|
1396
1460
|
};
|
|
@@ -1441,12 +1505,12 @@ declare const update: (input?: ({
|
|
|
1441
1505
|
readonly currency: string;
|
|
1442
1506
|
readonly items_subtotal_price: number;
|
|
1443
1507
|
readonly cart_level_discount_applications: readonly {
|
|
1508
|
+
readonly value: number;
|
|
1444
1509
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1445
1510
|
readonly target_type: "line_item" | "shipping_line";
|
|
1446
1511
|
readonly title: string;
|
|
1447
1512
|
readonly total_allocated_amount: number;
|
|
1448
1513
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1449
|
-
readonly value: number;
|
|
1450
1514
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1451
1515
|
readonly description: string | null;
|
|
1452
1516
|
}[];
|
|
@@ -1472,6 +1536,10 @@ declare const update: (input?: ({
|
|
|
1472
1536
|
readonly attributes: {
|
|
1473
1537
|
readonly [x: string]: string | number | boolean | null;
|
|
1474
1538
|
};
|
|
1539
|
+
readonly attributes_array: readonly {
|
|
1540
|
+
readonly key: string;
|
|
1541
|
+
readonly value: string | number | boolean | null;
|
|
1542
|
+
}[];
|
|
1475
1543
|
readonly discount_codes: readonly {
|
|
1476
1544
|
readonly code: string;
|
|
1477
1545
|
readonly applicable: boolean;
|
|
@@ -1481,14 +1549,18 @@ declare const update: (input?: ({
|
|
|
1481
1549
|
readonly total_weight: number;
|
|
1482
1550
|
readonly item_count: number;
|
|
1483
1551
|
readonly items: readonly {
|
|
1552
|
+
readonly key: string;
|
|
1484
1553
|
readonly title: string;
|
|
1485
1554
|
readonly url: string;
|
|
1486
1555
|
readonly price: number;
|
|
1487
1556
|
readonly id: string | number;
|
|
1488
|
-
readonly key: string;
|
|
1489
1557
|
readonly properties: {
|
|
1490
1558
|
readonly [x: string]: string | number | boolean | null;
|
|
1491
1559
|
} | null;
|
|
1560
|
+
readonly properties_array: readonly {
|
|
1561
|
+
readonly key: string;
|
|
1562
|
+
readonly value: string | number | boolean | null;
|
|
1563
|
+
}[] | null;
|
|
1492
1564
|
readonly quantity: number;
|
|
1493
1565
|
readonly variant_id: string | number;
|
|
1494
1566
|
readonly original_price: number;
|
|
@@ -1531,12 +1603,12 @@ declare const update: (input?: ({
|
|
|
1531
1603
|
readonly line_level_discount_allocations: readonly {
|
|
1532
1604
|
readonly amount: number;
|
|
1533
1605
|
readonly discount_application: {
|
|
1606
|
+
readonly value: number;
|
|
1534
1607
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1535
1608
|
readonly target_type: "line_item" | "shipping_line";
|
|
1536
1609
|
readonly title: string;
|
|
1537
1610
|
readonly total_allocated_amount: number;
|
|
1538
1611
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1539
|
-
readonly value: number;
|
|
1540
1612
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1541
1613
|
readonly description: string | null;
|
|
1542
1614
|
};
|
|
@@ -1587,12 +1659,12 @@ declare const update: (input?: ({
|
|
|
1587
1659
|
readonly currency: string;
|
|
1588
1660
|
readonly items_subtotal_price: number;
|
|
1589
1661
|
readonly cart_level_discount_applications: readonly {
|
|
1662
|
+
readonly value: number;
|
|
1590
1663
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1591
1664
|
readonly target_type: "line_item" | "shipping_line";
|
|
1592
1665
|
readonly title: string;
|
|
1593
1666
|
readonly total_allocated_amount: number;
|
|
1594
1667
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1595
|
-
readonly value: number;
|
|
1596
1668
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1597
1669
|
readonly description: string | null;
|
|
1598
1670
|
}[];
|
|
@@ -1625,6 +1697,10 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1625
1697
|
readonly attributes: {
|
|
1626
1698
|
readonly [x: string]: string | number | boolean | null;
|
|
1627
1699
|
};
|
|
1700
|
+
readonly attributes_array: readonly {
|
|
1701
|
+
readonly key: string;
|
|
1702
|
+
readonly value: string | number | boolean | null;
|
|
1703
|
+
}[];
|
|
1628
1704
|
readonly discount_codes: readonly {
|
|
1629
1705
|
readonly code: string;
|
|
1630
1706
|
readonly applicable: boolean;
|
|
@@ -1634,14 +1710,18 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1634
1710
|
readonly total_weight: number;
|
|
1635
1711
|
readonly item_count: number;
|
|
1636
1712
|
readonly items: readonly {
|
|
1713
|
+
readonly key: string;
|
|
1637
1714
|
readonly title: string;
|
|
1638
1715
|
readonly url: string;
|
|
1639
1716
|
readonly price: number;
|
|
1640
1717
|
readonly id: string | number;
|
|
1641
|
-
readonly key: string;
|
|
1642
1718
|
readonly properties: {
|
|
1643
1719
|
readonly [x: string]: string | number | boolean | null;
|
|
1644
1720
|
} | null;
|
|
1721
|
+
readonly properties_array: readonly {
|
|
1722
|
+
readonly key: string;
|
|
1723
|
+
readonly value: string | number | boolean | null;
|
|
1724
|
+
}[] | null;
|
|
1645
1725
|
readonly quantity: number;
|
|
1646
1726
|
readonly variant_id: string | number;
|
|
1647
1727
|
readonly original_price: number;
|
|
@@ -1684,12 +1764,12 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1684
1764
|
readonly line_level_discount_allocations: readonly {
|
|
1685
1765
|
readonly amount: number;
|
|
1686
1766
|
readonly discount_application: {
|
|
1767
|
+
readonly value: number;
|
|
1687
1768
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1688
1769
|
readonly target_type: "line_item" | "shipping_line";
|
|
1689
1770
|
readonly title: string;
|
|
1690
1771
|
readonly total_allocated_amount: number;
|
|
1691
1772
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1692
|
-
readonly value: number;
|
|
1693
1773
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1694
1774
|
readonly description: string | null;
|
|
1695
1775
|
};
|
|
@@ -1740,12 +1820,12 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1740
1820
|
readonly currency: string;
|
|
1741
1821
|
readonly items_subtotal_price: number;
|
|
1742
1822
|
readonly cart_level_discount_applications: readonly {
|
|
1823
|
+
readonly value: number;
|
|
1743
1824
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1744
1825
|
readonly target_type: "line_item" | "shipping_line";
|
|
1745
1826
|
readonly title: string;
|
|
1746
1827
|
readonly total_allocated_amount: number;
|
|
1747
1828
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1748
|
-
readonly value: number;
|
|
1749
1829
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1750
1830
|
readonly description: string | null;
|
|
1751
1831
|
}[];
|
|
@@ -1755,14 +1835,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1755
1835
|
}) => {
|
|
1756
1836
|
add: (input: add.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
1757
1837
|
readonly items: readonly {
|
|
1838
|
+
readonly key: string;
|
|
1758
1839
|
readonly title: string;
|
|
1759
1840
|
readonly url: string;
|
|
1760
1841
|
readonly price: number;
|
|
1761
1842
|
readonly id: string | number;
|
|
1762
|
-
readonly key: string;
|
|
1763
1843
|
readonly properties: {
|
|
1764
1844
|
readonly [x: string]: string | number | boolean | null;
|
|
1765
1845
|
} | null;
|
|
1846
|
+
readonly properties_array: readonly {
|
|
1847
|
+
readonly key: string;
|
|
1848
|
+
readonly value: string | number | boolean | null;
|
|
1849
|
+
}[] | null;
|
|
1766
1850
|
readonly quantity: number;
|
|
1767
1851
|
readonly variant_id: string | number;
|
|
1768
1852
|
readonly original_price: number;
|
|
@@ -1805,12 +1889,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1805
1889
|
readonly line_level_discount_allocations: readonly {
|
|
1806
1890
|
readonly amount: number;
|
|
1807
1891
|
readonly discount_application: {
|
|
1892
|
+
readonly value: number;
|
|
1808
1893
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1809
1894
|
readonly target_type: "line_item" | "shipping_line";
|
|
1810
1895
|
readonly title: string;
|
|
1811
1896
|
readonly total_allocated_amount: number;
|
|
1812
1897
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1813
|
-
readonly value: number;
|
|
1814
1898
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1815
1899
|
readonly description: string | null;
|
|
1816
1900
|
};
|
|
@@ -1864,14 +1948,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1864
1948
|
};
|
|
1865
1949
|
}> | AjaxClientResponse<{
|
|
1866
1950
|
readonly items: readonly {
|
|
1951
|
+
readonly key: string;
|
|
1867
1952
|
readonly title: string;
|
|
1868
1953
|
readonly url: string;
|
|
1869
1954
|
readonly price: number;
|
|
1870
1955
|
readonly id: string | number;
|
|
1871
|
-
readonly key: string;
|
|
1872
1956
|
readonly properties: {
|
|
1873
1957
|
readonly [x: string]: string | number | boolean | null;
|
|
1874
1958
|
} | null;
|
|
1959
|
+
readonly properties_array: readonly {
|
|
1960
|
+
readonly key: string;
|
|
1961
|
+
readonly value: string | number | boolean | null;
|
|
1962
|
+
}[] | null;
|
|
1875
1963
|
readonly quantity: number;
|
|
1876
1964
|
readonly variant_id: string | number;
|
|
1877
1965
|
readonly original_price: number;
|
|
@@ -1914,12 +2002,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1914
2002
|
readonly line_level_discount_allocations: readonly {
|
|
1915
2003
|
readonly amount: number;
|
|
1916
2004
|
readonly discount_application: {
|
|
2005
|
+
readonly value: number;
|
|
1917
2006
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1918
2007
|
readonly target_type: "line_item" | "shipping_line";
|
|
1919
2008
|
readonly title: string;
|
|
1920
2009
|
readonly total_allocated_amount: number;
|
|
1921
2010
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1922
|
-
readonly value: number;
|
|
1923
2011
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1924
2012
|
readonly description: string | null;
|
|
1925
2013
|
};
|
|
@@ -1982,6 +2070,10 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1982
2070
|
readonly attributes: {
|
|
1983
2071
|
readonly [x: string]: string | number | boolean | null;
|
|
1984
2072
|
};
|
|
2073
|
+
readonly attributes_array: readonly {
|
|
2074
|
+
readonly key: string;
|
|
2075
|
+
readonly value: string | number | boolean | null;
|
|
2076
|
+
}[];
|
|
1985
2077
|
readonly discount_codes: readonly {
|
|
1986
2078
|
readonly code: string;
|
|
1987
2079
|
readonly applicable: boolean;
|
|
@@ -1991,14 +2083,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1991
2083
|
readonly total_weight: number;
|
|
1992
2084
|
readonly item_count: number;
|
|
1993
2085
|
readonly items: readonly {
|
|
2086
|
+
readonly key: string;
|
|
1994
2087
|
readonly title: string;
|
|
1995
2088
|
readonly url: string;
|
|
1996
2089
|
readonly price: number;
|
|
1997
2090
|
readonly id: string | number;
|
|
1998
|
-
readonly key: string;
|
|
1999
2091
|
readonly properties: {
|
|
2000
2092
|
readonly [x: string]: string | number | boolean | null;
|
|
2001
2093
|
} | null;
|
|
2094
|
+
readonly properties_array: readonly {
|
|
2095
|
+
readonly key: string;
|
|
2096
|
+
readonly value: string | number | boolean | null;
|
|
2097
|
+
}[] | null;
|
|
2002
2098
|
readonly quantity: number;
|
|
2003
2099
|
readonly variant_id: string | number;
|
|
2004
2100
|
readonly original_price: number;
|
|
@@ -2041,12 +2137,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2041
2137
|
readonly line_level_discount_allocations: readonly {
|
|
2042
2138
|
readonly amount: number;
|
|
2043
2139
|
readonly discount_application: {
|
|
2140
|
+
readonly value: number;
|
|
2044
2141
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2045
2142
|
readonly target_type: "line_item" | "shipping_line";
|
|
2046
2143
|
readonly title: string;
|
|
2047
2144
|
readonly total_allocated_amount: number;
|
|
2048
2145
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2049
|
-
readonly value: number;
|
|
2050
2146
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2051
2147
|
readonly description: string | null;
|
|
2052
2148
|
};
|
|
@@ -2097,12 +2193,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2097
2193
|
readonly currency: string;
|
|
2098
2194
|
readonly items_subtotal_price: number;
|
|
2099
2195
|
readonly cart_level_discount_applications: readonly {
|
|
2196
|
+
readonly value: number;
|
|
2100
2197
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2101
2198
|
readonly target_type: "line_item" | "shipping_line";
|
|
2102
2199
|
readonly title: string;
|
|
2103
2200
|
readonly total_allocated_amount: number;
|
|
2104
2201
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2105
|
-
readonly value: number;
|
|
2106
2202
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2107
2203
|
readonly description: string | null;
|
|
2108
2204
|
}[];
|
|
@@ -2160,6 +2256,10 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2160
2256
|
readonly attributes: {
|
|
2161
2257
|
readonly [x: string]: string | number | boolean | null;
|
|
2162
2258
|
};
|
|
2259
|
+
readonly attributes_array: readonly {
|
|
2260
|
+
readonly key: string;
|
|
2261
|
+
readonly value: string | number | boolean | null;
|
|
2262
|
+
}[];
|
|
2163
2263
|
readonly discount_codes: readonly {
|
|
2164
2264
|
readonly code: string;
|
|
2165
2265
|
readonly applicable: boolean;
|
|
@@ -2169,14 +2269,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2169
2269
|
readonly total_weight: number;
|
|
2170
2270
|
readonly item_count: number;
|
|
2171
2271
|
readonly items: readonly {
|
|
2272
|
+
readonly key: string;
|
|
2172
2273
|
readonly title: string;
|
|
2173
2274
|
readonly url: string;
|
|
2174
2275
|
readonly price: number;
|
|
2175
2276
|
readonly id: string | number;
|
|
2176
|
-
readonly key: string;
|
|
2177
2277
|
readonly properties: {
|
|
2178
2278
|
readonly [x: string]: string | number | boolean | null;
|
|
2179
2279
|
} | null;
|
|
2280
|
+
readonly properties_array: readonly {
|
|
2281
|
+
readonly key: string;
|
|
2282
|
+
readonly value: string | number | boolean | null;
|
|
2283
|
+
}[] | null;
|
|
2180
2284
|
readonly quantity: number;
|
|
2181
2285
|
readonly variant_id: string | number;
|
|
2182
2286
|
readonly original_price: number;
|
|
@@ -2219,12 +2323,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2219
2323
|
readonly line_level_discount_allocations: readonly {
|
|
2220
2324
|
readonly amount: number;
|
|
2221
2325
|
readonly discount_application: {
|
|
2326
|
+
readonly value: number;
|
|
2222
2327
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2223
2328
|
readonly target_type: "line_item" | "shipping_line";
|
|
2224
2329
|
readonly title: string;
|
|
2225
2330
|
readonly total_allocated_amount: number;
|
|
2226
2331
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2227
|
-
readonly value: number;
|
|
2228
2332
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2229
2333
|
readonly description: string | null;
|
|
2230
2334
|
};
|
|
@@ -2275,12 +2379,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2275
2379
|
readonly currency: string;
|
|
2276
2380
|
readonly items_subtotal_price: number;
|
|
2277
2381
|
readonly cart_level_discount_applications: readonly {
|
|
2382
|
+
readonly value: number;
|
|
2278
2383
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2279
2384
|
readonly target_type: "line_item" | "shipping_line";
|
|
2280
2385
|
readonly title: string;
|
|
2281
2386
|
readonly total_allocated_amount: number;
|
|
2282
2387
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2283
|
-
readonly value: number;
|
|
2284
2388
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2285
2389
|
readonly description: string | null;
|
|
2286
2390
|
}[];
|
|
@@ -2337,6 +2441,10 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2337
2441
|
readonly attributes: {
|
|
2338
2442
|
readonly [x: string]: string | number | boolean | null;
|
|
2339
2443
|
};
|
|
2444
|
+
readonly attributes_array: readonly {
|
|
2445
|
+
readonly key: string;
|
|
2446
|
+
readonly value: string | number | boolean | null;
|
|
2447
|
+
}[];
|
|
2340
2448
|
readonly discount_codes: readonly {
|
|
2341
2449
|
readonly code: string;
|
|
2342
2450
|
readonly applicable: boolean;
|
|
@@ -2346,14 +2454,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2346
2454
|
readonly total_weight: number;
|
|
2347
2455
|
readonly item_count: number;
|
|
2348
2456
|
readonly items: readonly {
|
|
2457
|
+
readonly key: string;
|
|
2349
2458
|
readonly title: string;
|
|
2350
2459
|
readonly url: string;
|
|
2351
2460
|
readonly price: number;
|
|
2352
2461
|
readonly id: string | number;
|
|
2353
|
-
readonly key: string;
|
|
2354
2462
|
readonly properties: {
|
|
2355
2463
|
readonly [x: string]: string | number | boolean | null;
|
|
2356
2464
|
} | null;
|
|
2465
|
+
readonly properties_array: readonly {
|
|
2466
|
+
readonly key: string;
|
|
2467
|
+
readonly value: string | number | boolean | null;
|
|
2468
|
+
}[] | null;
|
|
2357
2469
|
readonly quantity: number;
|
|
2358
2470
|
readonly variant_id: string | number;
|
|
2359
2471
|
readonly original_price: number;
|
|
@@ -2396,12 +2508,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2396
2508
|
readonly line_level_discount_allocations: readonly {
|
|
2397
2509
|
readonly amount: number;
|
|
2398
2510
|
readonly discount_application: {
|
|
2511
|
+
readonly value: number;
|
|
2399
2512
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2400
2513
|
readonly target_type: "line_item" | "shipping_line";
|
|
2401
2514
|
readonly title: string;
|
|
2402
2515
|
readonly total_allocated_amount: number;
|
|
2403
2516
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2404
|
-
readonly value: number;
|
|
2405
2517
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2406
2518
|
readonly description: string | null;
|
|
2407
2519
|
};
|
|
@@ -2452,12 +2564,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2452
2564
|
readonly currency: string;
|
|
2453
2565
|
readonly items_subtotal_price: number;
|
|
2454
2566
|
readonly cart_level_discount_applications: readonly {
|
|
2567
|
+
readonly value: number;
|
|
2455
2568
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2456
2569
|
readonly target_type: "line_item" | "shipping_line";
|
|
2457
2570
|
readonly title: string;
|
|
2458
2571
|
readonly total_allocated_amount: number;
|
|
2459
2572
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2460
|
-
readonly value: number;
|
|
2461
2573
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2462
2574
|
readonly description: string | null;
|
|
2463
2575
|
}[];
|
|
@@ -2477,6 +2589,10 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2477
2589
|
readonly attributes: {
|
|
2478
2590
|
readonly [x: string]: string | number | boolean | null;
|
|
2479
2591
|
};
|
|
2592
|
+
readonly attributes_array: readonly {
|
|
2593
|
+
readonly key: string;
|
|
2594
|
+
readonly value: string | number | boolean | null;
|
|
2595
|
+
}[];
|
|
2480
2596
|
readonly discount_codes: readonly {
|
|
2481
2597
|
readonly code: string;
|
|
2482
2598
|
readonly applicable: boolean;
|
|
@@ -2486,14 +2602,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2486
2602
|
readonly total_weight: number;
|
|
2487
2603
|
readonly item_count: number;
|
|
2488
2604
|
readonly items: readonly {
|
|
2605
|
+
readonly key: string;
|
|
2489
2606
|
readonly title: string;
|
|
2490
2607
|
readonly url: string;
|
|
2491
2608
|
readonly price: number;
|
|
2492
2609
|
readonly id: string | number;
|
|
2493
|
-
readonly key: string;
|
|
2494
2610
|
readonly properties: {
|
|
2495
2611
|
readonly [x: string]: string | number | boolean | null;
|
|
2496
2612
|
} | null;
|
|
2613
|
+
readonly properties_array: readonly {
|
|
2614
|
+
readonly key: string;
|
|
2615
|
+
readonly value: string | number | boolean | null;
|
|
2616
|
+
}[] | null;
|
|
2497
2617
|
readonly quantity: number;
|
|
2498
2618
|
readonly variant_id: string | number;
|
|
2499
2619
|
readonly original_price: number;
|
|
@@ -2536,12 +2656,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2536
2656
|
readonly line_level_discount_allocations: readonly {
|
|
2537
2657
|
readonly amount: number;
|
|
2538
2658
|
readonly discount_application: {
|
|
2659
|
+
readonly value: number;
|
|
2539
2660
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2540
2661
|
readonly target_type: "line_item" | "shipping_line";
|
|
2541
2662
|
readonly title: string;
|
|
2542
2663
|
readonly total_allocated_amount: number;
|
|
2543
2664
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2544
|
-
readonly value: number;
|
|
2545
2665
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2546
2666
|
readonly description: string | null;
|
|
2547
2667
|
};
|
|
@@ -2592,12 +2712,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2592
2712
|
readonly currency: string;
|
|
2593
2713
|
readonly items_subtotal_price: number;
|
|
2594
2714
|
readonly cart_level_discount_applications: readonly {
|
|
2715
|
+
readonly value: number;
|
|
2595
2716
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2596
2717
|
readonly target_type: "line_item" | "shipping_line";
|
|
2597
2718
|
readonly title: string;
|
|
2598
2719
|
readonly total_allocated_amount: number;
|
|
2599
2720
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2600
|
-
readonly value: number;
|
|
2601
2721
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2602
2722
|
readonly description: string | null;
|
|
2603
2723
|
}[];
|
|
@@ -2616,6 +2736,10 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2616
2736
|
readonly attributes: {
|
|
2617
2737
|
readonly [x: string]: string | number | boolean | null;
|
|
2618
2738
|
};
|
|
2739
|
+
readonly attributes_array: readonly {
|
|
2740
|
+
readonly key: string;
|
|
2741
|
+
readonly value: string | number | boolean | null;
|
|
2742
|
+
}[];
|
|
2619
2743
|
readonly discount_codes: readonly {
|
|
2620
2744
|
readonly code: string;
|
|
2621
2745
|
readonly applicable: boolean;
|
|
@@ -2625,14 +2749,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2625
2749
|
readonly total_weight: number;
|
|
2626
2750
|
readonly item_count: number;
|
|
2627
2751
|
readonly items: readonly {
|
|
2752
|
+
readonly key: string;
|
|
2628
2753
|
readonly title: string;
|
|
2629
2754
|
readonly url: string;
|
|
2630
2755
|
readonly price: number;
|
|
2631
2756
|
readonly id: string | number;
|
|
2632
|
-
readonly key: string;
|
|
2633
2757
|
readonly properties: {
|
|
2634
2758
|
readonly [x: string]: string | number | boolean | null;
|
|
2635
2759
|
} | null;
|
|
2760
|
+
readonly properties_array: readonly {
|
|
2761
|
+
readonly key: string;
|
|
2762
|
+
readonly value: string | number | boolean | null;
|
|
2763
|
+
}[] | null;
|
|
2636
2764
|
readonly quantity: number;
|
|
2637
2765
|
readonly variant_id: string | number;
|
|
2638
2766
|
readonly original_price: number;
|
|
@@ -2675,12 +2803,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2675
2803
|
readonly line_level_discount_allocations: readonly {
|
|
2676
2804
|
readonly amount: number;
|
|
2677
2805
|
readonly discount_application: {
|
|
2806
|
+
readonly value: number;
|
|
2678
2807
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2679
2808
|
readonly target_type: "line_item" | "shipping_line";
|
|
2680
2809
|
readonly title: string;
|
|
2681
2810
|
readonly total_allocated_amount: number;
|
|
2682
2811
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2683
|
-
readonly value: number;
|
|
2684
2812
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2685
2813
|
readonly description: string | null;
|
|
2686
2814
|
};
|
|
@@ -2731,12 +2859,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2731
2859
|
readonly currency: string;
|
|
2732
2860
|
readonly items_subtotal_price: number;
|
|
2733
2861
|
readonly cart_level_discount_applications: readonly {
|
|
2862
|
+
readonly value: number;
|
|
2734
2863
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2735
2864
|
readonly target_type: "line_item" | "shipping_line";
|
|
2736
2865
|
readonly title: string;
|
|
2737
2866
|
readonly total_allocated_amount: number;
|
|
2738
2867
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2739
|
-
readonly value: number;
|
|
2740
2868
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2741
2869
|
readonly description: string | null;
|
|
2742
2870
|
}[];
|
|
@@ -2756,6 +2884,10 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2756
2884
|
readonly attributes: {
|
|
2757
2885
|
readonly [x: string]: string | number | boolean | null;
|
|
2758
2886
|
};
|
|
2887
|
+
readonly attributes_array: readonly {
|
|
2888
|
+
readonly key: string;
|
|
2889
|
+
readonly value: string | number | boolean | null;
|
|
2890
|
+
}[];
|
|
2759
2891
|
readonly discount_codes: readonly {
|
|
2760
2892
|
readonly code: string;
|
|
2761
2893
|
readonly applicable: boolean;
|
|
@@ -2765,14 +2897,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2765
2897
|
readonly total_weight: number;
|
|
2766
2898
|
readonly item_count: number;
|
|
2767
2899
|
readonly items: readonly {
|
|
2900
|
+
readonly key: string;
|
|
2768
2901
|
readonly title: string;
|
|
2769
2902
|
readonly url: string;
|
|
2770
2903
|
readonly price: number;
|
|
2771
2904
|
readonly id: string | number;
|
|
2772
|
-
readonly key: string;
|
|
2773
2905
|
readonly properties: {
|
|
2774
2906
|
readonly [x: string]: string | number | boolean | null;
|
|
2775
2907
|
} | null;
|
|
2908
|
+
readonly properties_array: readonly {
|
|
2909
|
+
readonly key: string;
|
|
2910
|
+
readonly value: string | number | boolean | null;
|
|
2911
|
+
}[] | null;
|
|
2776
2912
|
readonly quantity: number;
|
|
2777
2913
|
readonly variant_id: string | number;
|
|
2778
2914
|
readonly original_price: number;
|
|
@@ -2815,12 +2951,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2815
2951
|
readonly line_level_discount_allocations: readonly {
|
|
2816
2952
|
readonly amount: number;
|
|
2817
2953
|
readonly discount_application: {
|
|
2954
|
+
readonly value: number;
|
|
2818
2955
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2819
2956
|
readonly target_type: "line_item" | "shipping_line";
|
|
2820
2957
|
readonly title: string;
|
|
2821
2958
|
readonly total_allocated_amount: number;
|
|
2822
2959
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2823
|
-
readonly value: number;
|
|
2824
2960
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2825
2961
|
readonly description: string | null;
|
|
2826
2962
|
};
|
|
@@ -2871,12 +3007,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2871
3007
|
readonly currency: string;
|
|
2872
3008
|
readonly items_subtotal_price: number;
|
|
2873
3009
|
readonly cart_level_discount_applications: readonly {
|
|
3010
|
+
readonly value: number;
|
|
2874
3011
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2875
3012
|
readonly target_type: "line_item" | "shipping_line";
|
|
2876
3013
|
readonly title: string;
|
|
2877
3014
|
readonly total_allocated_amount: number;
|
|
2878
3015
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2879
|
-
readonly value: number;
|
|
2880
3016
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2881
3017
|
readonly description: string | null;
|
|
2882
3018
|
}[];
|
|
@@ -2895,6 +3031,10 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2895
3031
|
readonly attributes: {
|
|
2896
3032
|
readonly [x: string]: string | number | boolean | null;
|
|
2897
3033
|
};
|
|
3034
|
+
readonly attributes_array: readonly {
|
|
3035
|
+
readonly key: string;
|
|
3036
|
+
readonly value: string | number | boolean | null;
|
|
3037
|
+
}[];
|
|
2898
3038
|
readonly discount_codes: readonly {
|
|
2899
3039
|
readonly code: string;
|
|
2900
3040
|
readonly applicable: boolean;
|
|
@@ -2904,14 +3044,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2904
3044
|
readonly total_weight: number;
|
|
2905
3045
|
readonly item_count: number;
|
|
2906
3046
|
readonly items: readonly {
|
|
3047
|
+
readonly key: string;
|
|
2907
3048
|
readonly title: string;
|
|
2908
3049
|
readonly url: string;
|
|
2909
3050
|
readonly price: number;
|
|
2910
3051
|
readonly id: string | number;
|
|
2911
|
-
readonly key: string;
|
|
2912
3052
|
readonly properties: {
|
|
2913
3053
|
readonly [x: string]: string | number | boolean | null;
|
|
2914
3054
|
} | null;
|
|
3055
|
+
readonly properties_array: readonly {
|
|
3056
|
+
readonly key: string;
|
|
3057
|
+
readonly value: string | number | boolean | null;
|
|
3058
|
+
}[] | null;
|
|
2915
3059
|
readonly quantity: number;
|
|
2916
3060
|
readonly variant_id: string | number;
|
|
2917
3061
|
readonly original_price: number;
|
|
@@ -2954,12 +3098,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2954
3098
|
readonly line_level_discount_allocations: readonly {
|
|
2955
3099
|
readonly amount: number;
|
|
2956
3100
|
readonly discount_application: {
|
|
3101
|
+
readonly value: number;
|
|
2957
3102
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2958
3103
|
readonly target_type: "line_item" | "shipping_line";
|
|
2959
3104
|
readonly title: string;
|
|
2960
3105
|
readonly total_allocated_amount: number;
|
|
2961
3106
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2962
|
-
readonly value: number;
|
|
2963
3107
|
readonly value_type: "fixed_amount" | "percentage";
|
|
2964
3108
|
readonly description: string | null;
|
|
2965
3109
|
};
|
|
@@ -3010,12 +3154,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3010
3154
|
readonly currency: string;
|
|
3011
3155
|
readonly items_subtotal_price: number;
|
|
3012
3156
|
readonly cart_level_discount_applications: readonly {
|
|
3157
|
+
readonly value: number;
|
|
3013
3158
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
3014
3159
|
readonly target_type: "line_item" | "shipping_line";
|
|
3015
3160
|
readonly title: string;
|
|
3016
3161
|
readonly total_allocated_amount: number;
|
|
3017
3162
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
3018
|
-
readonly value: number;
|
|
3019
3163
|
readonly value_type: "fixed_amount" | "percentage";
|
|
3020
3164
|
readonly description: string | null;
|
|
3021
3165
|
}[];
|
|
@@ -3041,6 +3185,10 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3041
3185
|
readonly attributes: {
|
|
3042
3186
|
readonly [x: string]: string | number | boolean | null;
|
|
3043
3187
|
};
|
|
3188
|
+
readonly attributes_array: readonly {
|
|
3189
|
+
readonly key: string;
|
|
3190
|
+
readonly value: string | number | boolean | null;
|
|
3191
|
+
}[];
|
|
3044
3192
|
readonly discount_codes: readonly {
|
|
3045
3193
|
readonly code: string;
|
|
3046
3194
|
readonly applicable: boolean;
|
|
@@ -3050,14 +3198,18 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3050
3198
|
readonly total_weight: number;
|
|
3051
3199
|
readonly item_count: number;
|
|
3052
3200
|
readonly items: readonly {
|
|
3201
|
+
readonly key: string;
|
|
3053
3202
|
readonly title: string;
|
|
3054
3203
|
readonly url: string;
|
|
3055
3204
|
readonly price: number;
|
|
3056
3205
|
readonly id: string | number;
|
|
3057
|
-
readonly key: string;
|
|
3058
3206
|
readonly properties: {
|
|
3059
3207
|
readonly [x: string]: string | number | boolean | null;
|
|
3060
3208
|
} | null;
|
|
3209
|
+
readonly properties_array: readonly {
|
|
3210
|
+
readonly key: string;
|
|
3211
|
+
readonly value: string | number | boolean | null;
|
|
3212
|
+
}[] | null;
|
|
3061
3213
|
readonly quantity: number;
|
|
3062
3214
|
readonly variant_id: string | number;
|
|
3063
3215
|
readonly original_price: number;
|
|
@@ -3100,12 +3252,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3100
3252
|
readonly line_level_discount_allocations: readonly {
|
|
3101
3253
|
readonly amount: number;
|
|
3102
3254
|
readonly discount_application: {
|
|
3255
|
+
readonly value: number;
|
|
3103
3256
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
3104
3257
|
readonly target_type: "line_item" | "shipping_line";
|
|
3105
3258
|
readonly title: string;
|
|
3106
3259
|
readonly total_allocated_amount: number;
|
|
3107
3260
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
3108
|
-
readonly value: number;
|
|
3109
3261
|
readonly value_type: "fixed_amount" | "percentage";
|
|
3110
3262
|
readonly description: string | null;
|
|
3111
3263
|
};
|
|
@@ -3156,12 +3308,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3156
3308
|
readonly currency: string;
|
|
3157
3309
|
readonly items_subtotal_price: number;
|
|
3158
3310
|
readonly cart_level_discount_applications: readonly {
|
|
3311
|
+
readonly value: number;
|
|
3159
3312
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
3160
3313
|
readonly target_type: "line_item" | "shipping_line";
|
|
3161
3314
|
readonly title: string;
|
|
3162
3315
|
readonly total_allocated_amount: number;
|
|
3163
3316
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
3164
|
-
readonly value: number;
|
|
3165
3317
|
readonly value_type: "fixed_amount" | "percentage";
|
|
3166
3318
|
readonly description: string | null;
|
|
3167
3319
|
}[];
|