@brytdesigns/shopify-ajax-cart-api 1.0.21 → 1.0.23
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/cache.js +39 -0
- package/dist/effect/cache.js.map +1 -0
- package/dist/effect/index.d.ts +142 -32
- package/dist/effect/schema.js +58 -3
- package/dist/effect/schema.js.map +1 -1
- package/dist/esm/index.js +608 -41
- package/dist/esm/index.js.map +1 -1
- package/dist/main/effect/cache.js +39 -0
- package/dist/main/effect/cache.js.map +1 -0
- package/dist/main/effect/schema.js +58 -3
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +310 -68
- package/package.json +2 -1
package/dist/main/index.d.ts
CHANGED
|
@@ -139,6 +139,12 @@ declare const add: (input?: ({
|
|
|
139
139
|
readonly url: string;
|
|
140
140
|
readonly price: number;
|
|
141
141
|
readonly id: string | number;
|
|
142
|
+
readonly quantity_rule?: {
|
|
143
|
+
readonly min: number;
|
|
144
|
+
readonly max: number | null;
|
|
145
|
+
readonly increment: number;
|
|
146
|
+
} | undefined;
|
|
147
|
+
readonly handle: string;
|
|
142
148
|
readonly properties: {
|
|
143
149
|
readonly [x: string]: string | number | boolean | null;
|
|
144
150
|
};
|
|
@@ -170,7 +176,6 @@ declare const add: (input?: ({
|
|
|
170
176
|
readonly width: number;
|
|
171
177
|
} | undefined;
|
|
172
178
|
readonly image: string;
|
|
173
|
-
readonly handle: string;
|
|
174
179
|
readonly requires_shipping: boolean;
|
|
175
180
|
readonly product_type: string | null;
|
|
176
181
|
readonly product_title: string;
|
|
@@ -195,11 +200,6 @@ declare const add: (input?: ({
|
|
|
195
200
|
};
|
|
196
201
|
}[];
|
|
197
202
|
readonly line_level_total_discount: number;
|
|
198
|
-
readonly quantity_rule?: {
|
|
199
|
-
readonly min: number;
|
|
200
|
-
readonly max: number | null;
|
|
201
|
-
readonly increment: number;
|
|
202
|
-
} | undefined;
|
|
203
203
|
readonly has_components: boolean;
|
|
204
204
|
readonly unit_price?: number | undefined;
|
|
205
205
|
readonly unit_price_measurement?: {
|
|
@@ -237,6 +237,28 @@ declare const add: (input?: ({
|
|
|
237
237
|
};
|
|
238
238
|
} | null;
|
|
239
239
|
} & {
|
|
240
|
+
readonly product: {
|
|
241
|
+
readonly title: string;
|
|
242
|
+
readonly id: string | number;
|
|
243
|
+
readonly options: readonly {
|
|
244
|
+
readonly values: readonly string[];
|
|
245
|
+
readonly name: string;
|
|
246
|
+
readonly position: number;
|
|
247
|
+
}[];
|
|
248
|
+
readonly handle: string;
|
|
249
|
+
readonly variants: readonly {
|
|
250
|
+
readonly title: string;
|
|
251
|
+
readonly id: string | number;
|
|
252
|
+
readonly options: readonly string[];
|
|
253
|
+
readonly quantity_rule: {
|
|
254
|
+
readonly min: number | null;
|
|
255
|
+
readonly max: number | null;
|
|
256
|
+
readonly increment: number;
|
|
257
|
+
};
|
|
258
|
+
}[];
|
|
259
|
+
readonly tags: readonly string[];
|
|
260
|
+
readonly available: boolean;
|
|
261
|
+
};
|
|
240
262
|
readonly properties_array: readonly {
|
|
241
263
|
readonly key: string;
|
|
242
264
|
readonly value: string | number | boolean | null;
|
|
@@ -308,6 +330,12 @@ declare const change: (input?: ({
|
|
|
308
330
|
readonly url: string;
|
|
309
331
|
readonly price: number;
|
|
310
332
|
readonly id: string | number;
|
|
333
|
+
readonly quantity_rule?: {
|
|
334
|
+
readonly min: number;
|
|
335
|
+
readonly max: number | null;
|
|
336
|
+
readonly increment: number;
|
|
337
|
+
} | undefined;
|
|
338
|
+
readonly handle: string;
|
|
311
339
|
readonly properties: {
|
|
312
340
|
readonly [x: string]: string | number | boolean | null;
|
|
313
341
|
};
|
|
@@ -339,7 +367,6 @@ declare const change: (input?: ({
|
|
|
339
367
|
readonly width: number;
|
|
340
368
|
} | undefined;
|
|
341
369
|
readonly image: string;
|
|
342
|
-
readonly handle: string;
|
|
343
370
|
readonly requires_shipping: boolean;
|
|
344
371
|
readonly product_type: string | null;
|
|
345
372
|
readonly product_title: string;
|
|
@@ -364,11 +391,6 @@ declare const change: (input?: ({
|
|
|
364
391
|
};
|
|
365
392
|
}[];
|
|
366
393
|
readonly line_level_total_discount: number;
|
|
367
|
-
readonly quantity_rule?: {
|
|
368
|
-
readonly min: number;
|
|
369
|
-
readonly max: number | null;
|
|
370
|
-
readonly increment: number;
|
|
371
|
-
} | undefined;
|
|
372
394
|
readonly has_components: boolean;
|
|
373
395
|
readonly unit_price?: number | undefined;
|
|
374
396
|
readonly unit_price_measurement?: {
|
|
@@ -406,6 +428,28 @@ declare const change: (input?: ({
|
|
|
406
428
|
};
|
|
407
429
|
} | null;
|
|
408
430
|
} & {
|
|
431
|
+
readonly product: {
|
|
432
|
+
readonly title: string;
|
|
433
|
+
readonly id: string | number;
|
|
434
|
+
readonly options: readonly {
|
|
435
|
+
readonly values: readonly string[];
|
|
436
|
+
readonly name: string;
|
|
437
|
+
readonly position: number;
|
|
438
|
+
}[];
|
|
439
|
+
readonly handle: string;
|
|
440
|
+
readonly variants: readonly {
|
|
441
|
+
readonly title: string;
|
|
442
|
+
readonly id: string | number;
|
|
443
|
+
readonly options: readonly string[];
|
|
444
|
+
readonly quantity_rule: {
|
|
445
|
+
readonly min: number | null;
|
|
446
|
+
readonly max: number | null;
|
|
447
|
+
readonly increment: number;
|
|
448
|
+
};
|
|
449
|
+
}[];
|
|
450
|
+
readonly tags: readonly string[];
|
|
451
|
+
readonly available: boolean;
|
|
452
|
+
};
|
|
409
453
|
readonly properties_array: readonly {
|
|
410
454
|
readonly key: string;
|
|
411
455
|
readonly value: string | number | boolean | null;
|
|
@@ -489,6 +533,12 @@ declare const clear: (input?: {
|
|
|
489
533
|
readonly url: string;
|
|
490
534
|
readonly price: number;
|
|
491
535
|
readonly id: string | number;
|
|
536
|
+
readonly quantity_rule?: {
|
|
537
|
+
readonly min: number;
|
|
538
|
+
readonly max: number | null;
|
|
539
|
+
readonly increment: number;
|
|
540
|
+
} | undefined;
|
|
541
|
+
readonly handle: string;
|
|
492
542
|
readonly properties: {
|
|
493
543
|
readonly [x: string]: string | number | boolean | null;
|
|
494
544
|
};
|
|
@@ -520,7 +570,6 @@ declare const clear: (input?: {
|
|
|
520
570
|
readonly width: number;
|
|
521
571
|
} | undefined;
|
|
522
572
|
readonly image: string;
|
|
523
|
-
readonly handle: string;
|
|
524
573
|
readonly requires_shipping: boolean;
|
|
525
574
|
readonly product_type: string | null;
|
|
526
575
|
readonly product_title: string;
|
|
@@ -545,11 +594,6 @@ declare const clear: (input?: {
|
|
|
545
594
|
};
|
|
546
595
|
}[];
|
|
547
596
|
readonly line_level_total_discount: number;
|
|
548
|
-
readonly quantity_rule?: {
|
|
549
|
-
readonly min: number;
|
|
550
|
-
readonly max: number | null;
|
|
551
|
-
readonly increment: number;
|
|
552
|
-
} | undefined;
|
|
553
597
|
readonly has_components: boolean;
|
|
554
598
|
readonly unit_price?: number | undefined;
|
|
555
599
|
readonly unit_price_measurement?: {
|
|
@@ -587,6 +631,28 @@ declare const clear: (input?: {
|
|
|
587
631
|
};
|
|
588
632
|
} | null;
|
|
589
633
|
} & {
|
|
634
|
+
readonly product: {
|
|
635
|
+
readonly title: string;
|
|
636
|
+
readonly id: string | number;
|
|
637
|
+
readonly options: readonly {
|
|
638
|
+
readonly values: readonly string[];
|
|
639
|
+
readonly name: string;
|
|
640
|
+
readonly position: number;
|
|
641
|
+
}[];
|
|
642
|
+
readonly handle: string;
|
|
643
|
+
readonly variants: readonly {
|
|
644
|
+
readonly title: string;
|
|
645
|
+
readonly id: string | number;
|
|
646
|
+
readonly options: readonly string[];
|
|
647
|
+
readonly quantity_rule: {
|
|
648
|
+
readonly min: number | null;
|
|
649
|
+
readonly max: number | null;
|
|
650
|
+
readonly increment: number;
|
|
651
|
+
};
|
|
652
|
+
}[];
|
|
653
|
+
readonly tags: readonly string[];
|
|
654
|
+
readonly available: boolean;
|
|
655
|
+
};
|
|
590
656
|
readonly properties_array: readonly {
|
|
591
657
|
readonly key: string;
|
|
592
658
|
readonly value: string | number | boolean | null;
|
|
@@ -670,6 +736,12 @@ declare const get: (input?: {
|
|
|
670
736
|
readonly url: string;
|
|
671
737
|
readonly price: number;
|
|
672
738
|
readonly id: string | number;
|
|
739
|
+
readonly quantity_rule?: {
|
|
740
|
+
readonly min: number;
|
|
741
|
+
readonly max: number | null;
|
|
742
|
+
readonly increment: number;
|
|
743
|
+
} | undefined;
|
|
744
|
+
readonly handle: string;
|
|
673
745
|
readonly properties: {
|
|
674
746
|
readonly [x: string]: string | number | boolean | null;
|
|
675
747
|
};
|
|
@@ -701,7 +773,6 @@ declare const get: (input?: {
|
|
|
701
773
|
readonly width: number;
|
|
702
774
|
} | undefined;
|
|
703
775
|
readonly image: string;
|
|
704
|
-
readonly handle: string;
|
|
705
776
|
readonly requires_shipping: boolean;
|
|
706
777
|
readonly product_type: string | null;
|
|
707
778
|
readonly product_title: string;
|
|
@@ -726,11 +797,6 @@ declare const get: (input?: {
|
|
|
726
797
|
};
|
|
727
798
|
}[];
|
|
728
799
|
readonly line_level_total_discount: number;
|
|
729
|
-
readonly quantity_rule?: {
|
|
730
|
-
readonly min: number;
|
|
731
|
-
readonly max: number | null;
|
|
732
|
-
readonly increment: number;
|
|
733
|
-
} | undefined;
|
|
734
800
|
readonly has_components: boolean;
|
|
735
801
|
readonly unit_price?: number | undefined;
|
|
736
802
|
readonly unit_price_measurement?: {
|
|
@@ -768,6 +834,28 @@ declare const get: (input?: {
|
|
|
768
834
|
};
|
|
769
835
|
} | null;
|
|
770
836
|
} & {
|
|
837
|
+
readonly product: {
|
|
838
|
+
readonly title: string;
|
|
839
|
+
readonly id: string | number;
|
|
840
|
+
readonly options: readonly {
|
|
841
|
+
readonly values: readonly string[];
|
|
842
|
+
readonly name: string;
|
|
843
|
+
readonly position: number;
|
|
844
|
+
}[];
|
|
845
|
+
readonly handle: string;
|
|
846
|
+
readonly variants: readonly {
|
|
847
|
+
readonly title: string;
|
|
848
|
+
readonly id: string | number;
|
|
849
|
+
readonly options: readonly string[];
|
|
850
|
+
readonly quantity_rule: {
|
|
851
|
+
readonly min: number | null;
|
|
852
|
+
readonly max: number | null;
|
|
853
|
+
readonly increment: number;
|
|
854
|
+
};
|
|
855
|
+
}[];
|
|
856
|
+
readonly tags: readonly string[];
|
|
857
|
+
readonly available: boolean;
|
|
858
|
+
};
|
|
771
859
|
readonly properties_array: readonly {
|
|
772
860
|
readonly key: string;
|
|
773
861
|
readonly value: string | number | boolean | null;
|
|
@@ -827,9 +915,9 @@ declare const update: (input?: ({
|
|
|
827
915
|
readonly attributes?: {
|
|
828
916
|
readonly [x: string]: string | number | boolean | null;
|
|
829
917
|
} | undefined;
|
|
830
|
-
readonly updates?: {
|
|
918
|
+
readonly updates?: readonly number[] | {
|
|
831
919
|
readonly [x: string]: number;
|
|
832
|
-
} |
|
|
920
|
+
} | undefined;
|
|
833
921
|
readonly discount?: readonly string[] | undefined;
|
|
834
922
|
} & {
|
|
835
923
|
readonly sections?: string | undefined;
|
|
@@ -860,6 +948,12 @@ declare const update: (input?: ({
|
|
|
860
948
|
readonly url: string;
|
|
861
949
|
readonly price: number;
|
|
862
950
|
readonly id: string | number;
|
|
951
|
+
readonly quantity_rule?: {
|
|
952
|
+
readonly min: number;
|
|
953
|
+
readonly max: number | null;
|
|
954
|
+
readonly increment: number;
|
|
955
|
+
} | undefined;
|
|
956
|
+
readonly handle: string;
|
|
863
957
|
readonly properties: {
|
|
864
958
|
readonly [x: string]: string | number | boolean | null;
|
|
865
959
|
};
|
|
@@ -891,7 +985,6 @@ declare const update: (input?: ({
|
|
|
891
985
|
readonly width: number;
|
|
892
986
|
} | undefined;
|
|
893
987
|
readonly image: string;
|
|
894
|
-
readonly handle: string;
|
|
895
988
|
readonly requires_shipping: boolean;
|
|
896
989
|
readonly product_type: string | null;
|
|
897
990
|
readonly product_title: string;
|
|
@@ -916,11 +1009,6 @@ declare const update: (input?: ({
|
|
|
916
1009
|
};
|
|
917
1010
|
}[];
|
|
918
1011
|
readonly line_level_total_discount: number;
|
|
919
|
-
readonly quantity_rule?: {
|
|
920
|
-
readonly min: number;
|
|
921
|
-
readonly max: number | null;
|
|
922
|
-
readonly increment: number;
|
|
923
|
-
} | undefined;
|
|
924
1012
|
readonly has_components: boolean;
|
|
925
1013
|
readonly unit_price?: number | undefined;
|
|
926
1014
|
readonly unit_price_measurement?: {
|
|
@@ -958,6 +1046,28 @@ declare const update: (input?: ({
|
|
|
958
1046
|
};
|
|
959
1047
|
} | null;
|
|
960
1048
|
} & {
|
|
1049
|
+
readonly product: {
|
|
1050
|
+
readonly title: string;
|
|
1051
|
+
readonly id: string | number;
|
|
1052
|
+
readonly options: readonly {
|
|
1053
|
+
readonly values: readonly string[];
|
|
1054
|
+
readonly name: string;
|
|
1055
|
+
readonly position: number;
|
|
1056
|
+
}[];
|
|
1057
|
+
readonly handle: string;
|
|
1058
|
+
readonly variants: readonly {
|
|
1059
|
+
readonly title: string;
|
|
1060
|
+
readonly id: string | number;
|
|
1061
|
+
readonly options: readonly string[];
|
|
1062
|
+
readonly quantity_rule: {
|
|
1063
|
+
readonly min: number | null;
|
|
1064
|
+
readonly max: number | null;
|
|
1065
|
+
readonly increment: number;
|
|
1066
|
+
};
|
|
1067
|
+
}[];
|
|
1068
|
+
readonly tags: readonly string[];
|
|
1069
|
+
readonly available: boolean;
|
|
1070
|
+
};
|
|
961
1071
|
readonly properties_array: readonly {
|
|
962
1072
|
readonly key: string;
|
|
963
1073
|
readonly value: string | number | boolean | null;
|
|
@@ -1043,6 +1153,12 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1043
1153
|
readonly url: string;
|
|
1044
1154
|
readonly price: number;
|
|
1045
1155
|
readonly id: string | number;
|
|
1156
|
+
readonly quantity_rule?: {
|
|
1157
|
+
readonly min: number;
|
|
1158
|
+
readonly max: number | null;
|
|
1159
|
+
readonly increment: number;
|
|
1160
|
+
} | undefined;
|
|
1161
|
+
readonly handle: string;
|
|
1046
1162
|
readonly properties: {
|
|
1047
1163
|
readonly [x: string]: string | number | boolean | null;
|
|
1048
1164
|
};
|
|
@@ -1074,7 +1190,6 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1074
1190
|
readonly width: number;
|
|
1075
1191
|
} | undefined;
|
|
1076
1192
|
readonly image: string;
|
|
1077
|
-
readonly handle: string;
|
|
1078
1193
|
readonly requires_shipping: boolean;
|
|
1079
1194
|
readonly product_type: string | null;
|
|
1080
1195
|
readonly product_title: string;
|
|
@@ -1099,11 +1214,6 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1099
1214
|
};
|
|
1100
1215
|
}[];
|
|
1101
1216
|
readonly line_level_total_discount: number;
|
|
1102
|
-
readonly quantity_rule?: {
|
|
1103
|
-
readonly min: number;
|
|
1104
|
-
readonly max: number | null;
|
|
1105
|
-
readonly increment: number;
|
|
1106
|
-
} | undefined;
|
|
1107
1217
|
readonly has_components: boolean;
|
|
1108
1218
|
readonly unit_price?: number | undefined;
|
|
1109
1219
|
readonly unit_price_measurement?: {
|
|
@@ -1141,6 +1251,28 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1141
1251
|
};
|
|
1142
1252
|
} | null;
|
|
1143
1253
|
} & {
|
|
1254
|
+
readonly product: {
|
|
1255
|
+
readonly title: string;
|
|
1256
|
+
readonly id: string | number;
|
|
1257
|
+
readonly options: readonly {
|
|
1258
|
+
readonly values: readonly string[];
|
|
1259
|
+
readonly name: string;
|
|
1260
|
+
readonly position: number;
|
|
1261
|
+
}[];
|
|
1262
|
+
readonly handle: string;
|
|
1263
|
+
readonly variants: readonly {
|
|
1264
|
+
readonly title: string;
|
|
1265
|
+
readonly id: string | number;
|
|
1266
|
+
readonly options: readonly string[];
|
|
1267
|
+
readonly quantity_rule: {
|
|
1268
|
+
readonly min: number | null;
|
|
1269
|
+
readonly max: number | null;
|
|
1270
|
+
readonly increment: number;
|
|
1271
|
+
};
|
|
1272
|
+
}[];
|
|
1273
|
+
readonly tags: readonly string[];
|
|
1274
|
+
readonly available: boolean;
|
|
1275
|
+
};
|
|
1144
1276
|
readonly properties_array: readonly {
|
|
1145
1277
|
readonly key: string;
|
|
1146
1278
|
readonly value: string | number | boolean | null;
|
|
@@ -1202,6 +1334,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1202
1334
|
readonly url: string;
|
|
1203
1335
|
readonly price: number;
|
|
1204
1336
|
readonly id: string | number;
|
|
1337
|
+
readonly quantity_rule?: {
|
|
1338
|
+
readonly min: number;
|
|
1339
|
+
readonly max: number | null;
|
|
1340
|
+
readonly increment: number;
|
|
1341
|
+
} | undefined;
|
|
1342
|
+
readonly handle: string;
|
|
1205
1343
|
readonly properties: {
|
|
1206
1344
|
readonly [x: string]: string | number | boolean | null;
|
|
1207
1345
|
};
|
|
@@ -1233,7 +1371,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1233
1371
|
readonly width: number;
|
|
1234
1372
|
} | undefined;
|
|
1235
1373
|
readonly image: string;
|
|
1236
|
-
readonly handle: string;
|
|
1237
1374
|
readonly requires_shipping: boolean;
|
|
1238
1375
|
readonly product_type: string | null;
|
|
1239
1376
|
readonly product_title: string;
|
|
@@ -1258,11 +1395,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1258
1395
|
};
|
|
1259
1396
|
}[];
|
|
1260
1397
|
readonly line_level_total_discount: number;
|
|
1261
|
-
readonly quantity_rule?: {
|
|
1262
|
-
readonly min: number;
|
|
1263
|
-
readonly max: number | null;
|
|
1264
|
-
readonly increment: number;
|
|
1265
|
-
} | undefined;
|
|
1266
1398
|
readonly has_components: boolean;
|
|
1267
1399
|
readonly unit_price?: number | undefined;
|
|
1268
1400
|
readonly unit_price_measurement?: {
|
|
@@ -1300,6 +1432,28 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1300
1432
|
};
|
|
1301
1433
|
} | null;
|
|
1302
1434
|
} & {
|
|
1435
|
+
readonly product: {
|
|
1436
|
+
readonly title: string;
|
|
1437
|
+
readonly id: string | number;
|
|
1438
|
+
readonly options: readonly {
|
|
1439
|
+
readonly values: readonly string[];
|
|
1440
|
+
readonly name: string;
|
|
1441
|
+
readonly position: number;
|
|
1442
|
+
}[];
|
|
1443
|
+
readonly handle: string;
|
|
1444
|
+
readonly variants: readonly {
|
|
1445
|
+
readonly title: string;
|
|
1446
|
+
readonly id: string | number;
|
|
1447
|
+
readonly options: readonly string[];
|
|
1448
|
+
readonly quantity_rule: {
|
|
1449
|
+
readonly min: number | null;
|
|
1450
|
+
readonly max: number | null;
|
|
1451
|
+
readonly increment: number;
|
|
1452
|
+
};
|
|
1453
|
+
}[];
|
|
1454
|
+
readonly tags: readonly string[];
|
|
1455
|
+
readonly available: boolean;
|
|
1456
|
+
};
|
|
1303
1457
|
readonly properties_array: readonly {
|
|
1304
1458
|
readonly key: string;
|
|
1305
1459
|
readonly value: string | number | boolean | null;
|
|
@@ -1346,6 +1500,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1346
1500
|
readonly url: string;
|
|
1347
1501
|
readonly price: number;
|
|
1348
1502
|
readonly id: string | number;
|
|
1503
|
+
readonly quantity_rule?: {
|
|
1504
|
+
readonly min: number;
|
|
1505
|
+
readonly max: number | null;
|
|
1506
|
+
readonly increment: number;
|
|
1507
|
+
} | undefined;
|
|
1508
|
+
readonly handle: string;
|
|
1349
1509
|
readonly properties: {
|
|
1350
1510
|
readonly [x: string]: string | number | boolean | null;
|
|
1351
1511
|
};
|
|
@@ -1377,7 +1537,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1377
1537
|
readonly width: number;
|
|
1378
1538
|
} | undefined;
|
|
1379
1539
|
readonly image: string;
|
|
1380
|
-
readonly handle: string;
|
|
1381
1540
|
readonly requires_shipping: boolean;
|
|
1382
1541
|
readonly product_type: string | null;
|
|
1383
1542
|
readonly product_title: string;
|
|
@@ -1402,11 +1561,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1402
1561
|
};
|
|
1403
1562
|
}[];
|
|
1404
1563
|
readonly line_level_total_discount: number;
|
|
1405
|
-
readonly quantity_rule?: {
|
|
1406
|
-
readonly min: number;
|
|
1407
|
-
readonly max: number | null;
|
|
1408
|
-
readonly increment: number;
|
|
1409
|
-
} | undefined;
|
|
1410
1564
|
readonly has_components: boolean;
|
|
1411
1565
|
readonly unit_price?: number | undefined;
|
|
1412
1566
|
readonly unit_price_measurement?: {
|
|
@@ -1444,6 +1598,28 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1444
1598
|
};
|
|
1445
1599
|
} | null;
|
|
1446
1600
|
} & {
|
|
1601
|
+
readonly product: {
|
|
1602
|
+
readonly title: string;
|
|
1603
|
+
readonly id: string | number;
|
|
1604
|
+
readonly options: readonly {
|
|
1605
|
+
readonly values: readonly string[];
|
|
1606
|
+
readonly name: string;
|
|
1607
|
+
readonly position: number;
|
|
1608
|
+
}[];
|
|
1609
|
+
readonly handle: string;
|
|
1610
|
+
readonly variants: readonly {
|
|
1611
|
+
readonly title: string;
|
|
1612
|
+
readonly id: string | number;
|
|
1613
|
+
readonly options: readonly string[];
|
|
1614
|
+
readonly quantity_rule: {
|
|
1615
|
+
readonly min: number | null;
|
|
1616
|
+
readonly max: number | null;
|
|
1617
|
+
readonly increment: number;
|
|
1618
|
+
};
|
|
1619
|
+
}[];
|
|
1620
|
+
readonly tags: readonly string[];
|
|
1621
|
+
readonly available: boolean;
|
|
1622
|
+
};
|
|
1447
1623
|
readonly properties_array: readonly {
|
|
1448
1624
|
readonly key: string;
|
|
1449
1625
|
readonly value: string | number | boolean | null;
|
|
@@ -1521,6 +1697,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1521
1697
|
readonly url: string;
|
|
1522
1698
|
readonly price: number;
|
|
1523
1699
|
readonly id: string | number;
|
|
1700
|
+
readonly quantity_rule?: {
|
|
1701
|
+
readonly min: number;
|
|
1702
|
+
readonly max: number | null;
|
|
1703
|
+
readonly increment: number;
|
|
1704
|
+
} | undefined;
|
|
1705
|
+
readonly handle: string;
|
|
1524
1706
|
readonly properties: {
|
|
1525
1707
|
readonly [x: string]: string | number | boolean | null;
|
|
1526
1708
|
};
|
|
@@ -1552,7 +1734,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1552
1734
|
readonly width: number;
|
|
1553
1735
|
} | undefined;
|
|
1554
1736
|
readonly image: string;
|
|
1555
|
-
readonly handle: string;
|
|
1556
1737
|
readonly requires_shipping: boolean;
|
|
1557
1738
|
readonly product_type: string | null;
|
|
1558
1739
|
readonly product_title: string;
|
|
@@ -1577,11 +1758,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1577
1758
|
};
|
|
1578
1759
|
}[];
|
|
1579
1760
|
readonly line_level_total_discount: number;
|
|
1580
|
-
readonly quantity_rule?: {
|
|
1581
|
-
readonly min: number;
|
|
1582
|
-
readonly max: number | null;
|
|
1583
|
-
readonly increment: number;
|
|
1584
|
-
} | undefined;
|
|
1585
1761
|
readonly has_components: boolean;
|
|
1586
1762
|
readonly unit_price?: number | undefined;
|
|
1587
1763
|
readonly unit_price_measurement?: {
|
|
@@ -1619,6 +1795,28 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1619
1795
|
};
|
|
1620
1796
|
} | null;
|
|
1621
1797
|
} & {
|
|
1798
|
+
readonly product: {
|
|
1799
|
+
readonly title: string;
|
|
1800
|
+
readonly id: string | number;
|
|
1801
|
+
readonly options: readonly {
|
|
1802
|
+
readonly values: readonly string[];
|
|
1803
|
+
readonly name: string;
|
|
1804
|
+
readonly position: number;
|
|
1805
|
+
}[];
|
|
1806
|
+
readonly handle: string;
|
|
1807
|
+
readonly variants: readonly {
|
|
1808
|
+
readonly title: string;
|
|
1809
|
+
readonly id: string | number;
|
|
1810
|
+
readonly options: readonly string[];
|
|
1811
|
+
readonly quantity_rule: {
|
|
1812
|
+
readonly min: number | null;
|
|
1813
|
+
readonly max: number | null;
|
|
1814
|
+
readonly increment: number;
|
|
1815
|
+
};
|
|
1816
|
+
}[];
|
|
1817
|
+
readonly tags: readonly string[];
|
|
1818
|
+
readonly available: boolean;
|
|
1819
|
+
};
|
|
1622
1820
|
readonly properties_array: readonly {
|
|
1623
1821
|
readonly key: string;
|
|
1624
1822
|
readonly value: string | number | boolean | null;
|
|
@@ -1696,6 +1894,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1696
1894
|
readonly url: string;
|
|
1697
1895
|
readonly price: number;
|
|
1698
1896
|
readonly id: string | number;
|
|
1897
|
+
readonly quantity_rule?: {
|
|
1898
|
+
readonly min: number;
|
|
1899
|
+
readonly max: number | null;
|
|
1900
|
+
readonly increment: number;
|
|
1901
|
+
} | undefined;
|
|
1902
|
+
readonly handle: string;
|
|
1699
1903
|
readonly properties: {
|
|
1700
1904
|
readonly [x: string]: string | number | boolean | null;
|
|
1701
1905
|
};
|
|
@@ -1727,7 +1931,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1727
1931
|
readonly width: number;
|
|
1728
1932
|
} | undefined;
|
|
1729
1933
|
readonly image: string;
|
|
1730
|
-
readonly handle: string;
|
|
1731
1934
|
readonly requires_shipping: boolean;
|
|
1732
1935
|
readonly product_type: string | null;
|
|
1733
1936
|
readonly product_title: string;
|
|
@@ -1752,11 +1955,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1752
1955
|
};
|
|
1753
1956
|
}[];
|
|
1754
1957
|
readonly line_level_total_discount: number;
|
|
1755
|
-
readonly quantity_rule?: {
|
|
1756
|
-
readonly min: number;
|
|
1757
|
-
readonly max: number | null;
|
|
1758
|
-
readonly increment: number;
|
|
1759
|
-
} | undefined;
|
|
1760
1958
|
readonly has_components: boolean;
|
|
1761
1959
|
readonly unit_price?: number | undefined;
|
|
1762
1960
|
readonly unit_price_measurement?: {
|
|
@@ -1794,6 +1992,28 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1794
1992
|
};
|
|
1795
1993
|
} | null;
|
|
1796
1994
|
} & {
|
|
1995
|
+
readonly product: {
|
|
1996
|
+
readonly title: string;
|
|
1997
|
+
readonly id: string | number;
|
|
1998
|
+
readonly options: readonly {
|
|
1999
|
+
readonly values: readonly string[];
|
|
2000
|
+
readonly name: string;
|
|
2001
|
+
readonly position: number;
|
|
2002
|
+
}[];
|
|
2003
|
+
readonly handle: string;
|
|
2004
|
+
readonly variants: readonly {
|
|
2005
|
+
readonly title: string;
|
|
2006
|
+
readonly id: string | number;
|
|
2007
|
+
readonly options: readonly string[];
|
|
2008
|
+
readonly quantity_rule: {
|
|
2009
|
+
readonly min: number | null;
|
|
2010
|
+
readonly max: number | null;
|
|
2011
|
+
readonly increment: number;
|
|
2012
|
+
};
|
|
2013
|
+
}[];
|
|
2014
|
+
readonly tags: readonly string[];
|
|
2015
|
+
readonly available: boolean;
|
|
2016
|
+
};
|
|
1797
2017
|
readonly properties_array: readonly {
|
|
1798
2018
|
readonly key: string;
|
|
1799
2019
|
readonly value: string | number | boolean | null;
|
|
@@ -1871,6 +2091,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1871
2091
|
readonly url: string;
|
|
1872
2092
|
readonly price: number;
|
|
1873
2093
|
readonly id: string | number;
|
|
2094
|
+
readonly quantity_rule?: {
|
|
2095
|
+
readonly min: number;
|
|
2096
|
+
readonly max: number | null;
|
|
2097
|
+
readonly increment: number;
|
|
2098
|
+
} | undefined;
|
|
2099
|
+
readonly handle: string;
|
|
1874
2100
|
readonly properties: {
|
|
1875
2101
|
readonly [x: string]: string | number | boolean | null;
|
|
1876
2102
|
};
|
|
@@ -1902,7 +2128,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1902
2128
|
readonly width: number;
|
|
1903
2129
|
} | undefined;
|
|
1904
2130
|
readonly image: string;
|
|
1905
|
-
readonly handle: string;
|
|
1906
2131
|
readonly requires_shipping: boolean;
|
|
1907
2132
|
readonly product_type: string | null;
|
|
1908
2133
|
readonly product_title: string;
|
|
@@ -1927,11 +2152,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1927
2152
|
};
|
|
1928
2153
|
}[];
|
|
1929
2154
|
readonly line_level_total_discount: number;
|
|
1930
|
-
readonly quantity_rule?: {
|
|
1931
|
-
readonly min: number;
|
|
1932
|
-
readonly max: number | null;
|
|
1933
|
-
readonly increment: number;
|
|
1934
|
-
} | undefined;
|
|
1935
2155
|
readonly has_components: boolean;
|
|
1936
2156
|
readonly unit_price?: number | undefined;
|
|
1937
2157
|
readonly unit_price_measurement?: {
|
|
@@ -1969,6 +2189,28 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1969
2189
|
};
|
|
1970
2190
|
} | null;
|
|
1971
2191
|
} & {
|
|
2192
|
+
readonly product: {
|
|
2193
|
+
readonly title: string;
|
|
2194
|
+
readonly id: string | number;
|
|
2195
|
+
readonly options: readonly {
|
|
2196
|
+
readonly values: readonly string[];
|
|
2197
|
+
readonly name: string;
|
|
2198
|
+
readonly position: number;
|
|
2199
|
+
}[];
|
|
2200
|
+
readonly handle: string;
|
|
2201
|
+
readonly variants: readonly {
|
|
2202
|
+
readonly title: string;
|
|
2203
|
+
readonly id: string | number;
|
|
2204
|
+
readonly options: readonly string[];
|
|
2205
|
+
readonly quantity_rule: {
|
|
2206
|
+
readonly min: number | null;
|
|
2207
|
+
readonly max: number | null;
|
|
2208
|
+
readonly increment: number;
|
|
2209
|
+
};
|
|
2210
|
+
}[];
|
|
2211
|
+
readonly tags: readonly string[];
|
|
2212
|
+
readonly available: boolean;
|
|
2213
|
+
};
|
|
1972
2214
|
readonly properties_array: readonly {
|
|
1973
2215
|
readonly key: string;
|
|
1974
2216
|
readonly value: string | number | boolean | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brytdesigns/shopify-ajax-cart-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "An AJAX cart that integrates with the AJAX Cart API",
|
|
5
5
|
"main": "./dist/main/index.js",
|
|
6
6
|
"types": "./dist/main/index.d.ts",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@effect/platform": "0.82.4",
|
|
33
33
|
"effect": "3.15.2",
|
|
34
|
+
"lz-string": "^1.5.0",
|
|
34
35
|
"@brytdesigns/shopify-utils": "1.2.13"
|
|
35
36
|
},
|
|
36
37
|
"scripts": {
|