@brytdesigns/shopify-ajax-cart-api 1.0.21 → 1.0.22
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 +137 -32
- package/dist/effect/schema.js +57 -3
- package/dist/effect/schema.js.map +1 -1
- package/dist/esm/index.js +607 -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 +57 -3
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +299 -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,27 @@ 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
|
+
};
|
|
240
261
|
readonly properties_array: readonly {
|
|
241
262
|
readonly key: string;
|
|
242
263
|
readonly value: string | number | boolean | null;
|
|
@@ -308,6 +329,12 @@ declare const change: (input?: ({
|
|
|
308
329
|
readonly url: string;
|
|
309
330
|
readonly price: number;
|
|
310
331
|
readonly id: string | number;
|
|
332
|
+
readonly quantity_rule?: {
|
|
333
|
+
readonly min: number;
|
|
334
|
+
readonly max: number | null;
|
|
335
|
+
readonly increment: number;
|
|
336
|
+
} | undefined;
|
|
337
|
+
readonly handle: string;
|
|
311
338
|
readonly properties: {
|
|
312
339
|
readonly [x: string]: string | number | boolean | null;
|
|
313
340
|
};
|
|
@@ -339,7 +366,6 @@ declare const change: (input?: ({
|
|
|
339
366
|
readonly width: number;
|
|
340
367
|
} | undefined;
|
|
341
368
|
readonly image: string;
|
|
342
|
-
readonly handle: string;
|
|
343
369
|
readonly requires_shipping: boolean;
|
|
344
370
|
readonly product_type: string | null;
|
|
345
371
|
readonly product_title: string;
|
|
@@ -364,11 +390,6 @@ declare const change: (input?: ({
|
|
|
364
390
|
};
|
|
365
391
|
}[];
|
|
366
392
|
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
393
|
readonly has_components: boolean;
|
|
373
394
|
readonly unit_price?: number | undefined;
|
|
374
395
|
readonly unit_price_measurement?: {
|
|
@@ -406,6 +427,27 @@ declare const change: (input?: ({
|
|
|
406
427
|
};
|
|
407
428
|
} | null;
|
|
408
429
|
} & {
|
|
430
|
+
readonly product: {
|
|
431
|
+
readonly title: string;
|
|
432
|
+
readonly id: string | number;
|
|
433
|
+
readonly options: readonly {
|
|
434
|
+
readonly values: readonly string[];
|
|
435
|
+
readonly name: string;
|
|
436
|
+
readonly position: number;
|
|
437
|
+
}[];
|
|
438
|
+
readonly handle: string;
|
|
439
|
+
readonly variants: readonly {
|
|
440
|
+
readonly title: string;
|
|
441
|
+
readonly id: string | number;
|
|
442
|
+
readonly options: readonly string[];
|
|
443
|
+
readonly quantity_rule: {
|
|
444
|
+
readonly min: number | null;
|
|
445
|
+
readonly max: number | null;
|
|
446
|
+
readonly increment: number;
|
|
447
|
+
};
|
|
448
|
+
}[];
|
|
449
|
+
readonly tags: readonly string[];
|
|
450
|
+
};
|
|
409
451
|
readonly properties_array: readonly {
|
|
410
452
|
readonly key: string;
|
|
411
453
|
readonly value: string | number | boolean | null;
|
|
@@ -489,6 +531,12 @@ declare const clear: (input?: {
|
|
|
489
531
|
readonly url: string;
|
|
490
532
|
readonly price: number;
|
|
491
533
|
readonly id: string | number;
|
|
534
|
+
readonly quantity_rule?: {
|
|
535
|
+
readonly min: number;
|
|
536
|
+
readonly max: number | null;
|
|
537
|
+
readonly increment: number;
|
|
538
|
+
} | undefined;
|
|
539
|
+
readonly handle: string;
|
|
492
540
|
readonly properties: {
|
|
493
541
|
readonly [x: string]: string | number | boolean | null;
|
|
494
542
|
};
|
|
@@ -520,7 +568,6 @@ declare const clear: (input?: {
|
|
|
520
568
|
readonly width: number;
|
|
521
569
|
} | undefined;
|
|
522
570
|
readonly image: string;
|
|
523
|
-
readonly handle: string;
|
|
524
571
|
readonly requires_shipping: boolean;
|
|
525
572
|
readonly product_type: string | null;
|
|
526
573
|
readonly product_title: string;
|
|
@@ -545,11 +592,6 @@ declare const clear: (input?: {
|
|
|
545
592
|
};
|
|
546
593
|
}[];
|
|
547
594
|
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
595
|
readonly has_components: boolean;
|
|
554
596
|
readonly unit_price?: number | undefined;
|
|
555
597
|
readonly unit_price_measurement?: {
|
|
@@ -587,6 +629,27 @@ declare const clear: (input?: {
|
|
|
587
629
|
};
|
|
588
630
|
} | null;
|
|
589
631
|
} & {
|
|
632
|
+
readonly product: {
|
|
633
|
+
readonly title: string;
|
|
634
|
+
readonly id: string | number;
|
|
635
|
+
readonly options: readonly {
|
|
636
|
+
readonly values: readonly string[];
|
|
637
|
+
readonly name: string;
|
|
638
|
+
readonly position: number;
|
|
639
|
+
}[];
|
|
640
|
+
readonly handle: string;
|
|
641
|
+
readonly variants: readonly {
|
|
642
|
+
readonly title: string;
|
|
643
|
+
readonly id: string | number;
|
|
644
|
+
readonly options: readonly string[];
|
|
645
|
+
readonly quantity_rule: {
|
|
646
|
+
readonly min: number | null;
|
|
647
|
+
readonly max: number | null;
|
|
648
|
+
readonly increment: number;
|
|
649
|
+
};
|
|
650
|
+
}[];
|
|
651
|
+
readonly tags: readonly string[];
|
|
652
|
+
};
|
|
590
653
|
readonly properties_array: readonly {
|
|
591
654
|
readonly key: string;
|
|
592
655
|
readonly value: string | number | boolean | null;
|
|
@@ -670,6 +733,12 @@ declare const get: (input?: {
|
|
|
670
733
|
readonly url: string;
|
|
671
734
|
readonly price: number;
|
|
672
735
|
readonly id: string | number;
|
|
736
|
+
readonly quantity_rule?: {
|
|
737
|
+
readonly min: number;
|
|
738
|
+
readonly max: number | null;
|
|
739
|
+
readonly increment: number;
|
|
740
|
+
} | undefined;
|
|
741
|
+
readonly handle: string;
|
|
673
742
|
readonly properties: {
|
|
674
743
|
readonly [x: string]: string | number | boolean | null;
|
|
675
744
|
};
|
|
@@ -701,7 +770,6 @@ declare const get: (input?: {
|
|
|
701
770
|
readonly width: number;
|
|
702
771
|
} | undefined;
|
|
703
772
|
readonly image: string;
|
|
704
|
-
readonly handle: string;
|
|
705
773
|
readonly requires_shipping: boolean;
|
|
706
774
|
readonly product_type: string | null;
|
|
707
775
|
readonly product_title: string;
|
|
@@ -726,11 +794,6 @@ declare const get: (input?: {
|
|
|
726
794
|
};
|
|
727
795
|
}[];
|
|
728
796
|
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
797
|
readonly has_components: boolean;
|
|
735
798
|
readonly unit_price?: number | undefined;
|
|
736
799
|
readonly unit_price_measurement?: {
|
|
@@ -768,6 +831,27 @@ declare const get: (input?: {
|
|
|
768
831
|
};
|
|
769
832
|
} | null;
|
|
770
833
|
} & {
|
|
834
|
+
readonly product: {
|
|
835
|
+
readonly title: string;
|
|
836
|
+
readonly id: string | number;
|
|
837
|
+
readonly options: readonly {
|
|
838
|
+
readonly values: readonly string[];
|
|
839
|
+
readonly name: string;
|
|
840
|
+
readonly position: number;
|
|
841
|
+
}[];
|
|
842
|
+
readonly handle: string;
|
|
843
|
+
readonly variants: readonly {
|
|
844
|
+
readonly title: string;
|
|
845
|
+
readonly id: string | number;
|
|
846
|
+
readonly options: readonly string[];
|
|
847
|
+
readonly quantity_rule: {
|
|
848
|
+
readonly min: number | null;
|
|
849
|
+
readonly max: number | null;
|
|
850
|
+
readonly increment: number;
|
|
851
|
+
};
|
|
852
|
+
}[];
|
|
853
|
+
readonly tags: readonly string[];
|
|
854
|
+
};
|
|
771
855
|
readonly properties_array: readonly {
|
|
772
856
|
readonly key: string;
|
|
773
857
|
readonly value: string | number | boolean | null;
|
|
@@ -827,9 +911,9 @@ declare const update: (input?: ({
|
|
|
827
911
|
readonly attributes?: {
|
|
828
912
|
readonly [x: string]: string | number | boolean | null;
|
|
829
913
|
} | undefined;
|
|
830
|
-
readonly updates?: {
|
|
914
|
+
readonly updates?: readonly number[] | {
|
|
831
915
|
readonly [x: string]: number;
|
|
832
|
-
} |
|
|
916
|
+
} | undefined;
|
|
833
917
|
readonly discount?: readonly string[] | undefined;
|
|
834
918
|
} & {
|
|
835
919
|
readonly sections?: string | undefined;
|
|
@@ -860,6 +944,12 @@ declare const update: (input?: ({
|
|
|
860
944
|
readonly url: string;
|
|
861
945
|
readonly price: number;
|
|
862
946
|
readonly id: string | number;
|
|
947
|
+
readonly quantity_rule?: {
|
|
948
|
+
readonly min: number;
|
|
949
|
+
readonly max: number | null;
|
|
950
|
+
readonly increment: number;
|
|
951
|
+
} | undefined;
|
|
952
|
+
readonly handle: string;
|
|
863
953
|
readonly properties: {
|
|
864
954
|
readonly [x: string]: string | number | boolean | null;
|
|
865
955
|
};
|
|
@@ -891,7 +981,6 @@ declare const update: (input?: ({
|
|
|
891
981
|
readonly width: number;
|
|
892
982
|
} | undefined;
|
|
893
983
|
readonly image: string;
|
|
894
|
-
readonly handle: string;
|
|
895
984
|
readonly requires_shipping: boolean;
|
|
896
985
|
readonly product_type: string | null;
|
|
897
986
|
readonly product_title: string;
|
|
@@ -916,11 +1005,6 @@ declare const update: (input?: ({
|
|
|
916
1005
|
};
|
|
917
1006
|
}[];
|
|
918
1007
|
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
1008
|
readonly has_components: boolean;
|
|
925
1009
|
readonly unit_price?: number | undefined;
|
|
926
1010
|
readonly unit_price_measurement?: {
|
|
@@ -958,6 +1042,27 @@ declare const update: (input?: ({
|
|
|
958
1042
|
};
|
|
959
1043
|
} | null;
|
|
960
1044
|
} & {
|
|
1045
|
+
readonly product: {
|
|
1046
|
+
readonly title: string;
|
|
1047
|
+
readonly id: string | number;
|
|
1048
|
+
readonly options: readonly {
|
|
1049
|
+
readonly values: readonly string[];
|
|
1050
|
+
readonly name: string;
|
|
1051
|
+
readonly position: number;
|
|
1052
|
+
}[];
|
|
1053
|
+
readonly handle: string;
|
|
1054
|
+
readonly variants: readonly {
|
|
1055
|
+
readonly title: string;
|
|
1056
|
+
readonly id: string | number;
|
|
1057
|
+
readonly options: readonly string[];
|
|
1058
|
+
readonly quantity_rule: {
|
|
1059
|
+
readonly min: number | null;
|
|
1060
|
+
readonly max: number | null;
|
|
1061
|
+
readonly increment: number;
|
|
1062
|
+
};
|
|
1063
|
+
}[];
|
|
1064
|
+
readonly tags: readonly string[];
|
|
1065
|
+
};
|
|
961
1066
|
readonly properties_array: readonly {
|
|
962
1067
|
readonly key: string;
|
|
963
1068
|
readonly value: string | number | boolean | null;
|
|
@@ -1043,6 +1148,12 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1043
1148
|
readonly url: string;
|
|
1044
1149
|
readonly price: number;
|
|
1045
1150
|
readonly id: string | number;
|
|
1151
|
+
readonly quantity_rule?: {
|
|
1152
|
+
readonly min: number;
|
|
1153
|
+
readonly max: number | null;
|
|
1154
|
+
readonly increment: number;
|
|
1155
|
+
} | undefined;
|
|
1156
|
+
readonly handle: string;
|
|
1046
1157
|
readonly properties: {
|
|
1047
1158
|
readonly [x: string]: string | number | boolean | null;
|
|
1048
1159
|
};
|
|
@@ -1074,7 +1185,6 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1074
1185
|
readonly width: number;
|
|
1075
1186
|
} | undefined;
|
|
1076
1187
|
readonly image: string;
|
|
1077
|
-
readonly handle: string;
|
|
1078
1188
|
readonly requires_shipping: boolean;
|
|
1079
1189
|
readonly product_type: string | null;
|
|
1080
1190
|
readonly product_title: string;
|
|
@@ -1099,11 +1209,6 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1099
1209
|
};
|
|
1100
1210
|
}[];
|
|
1101
1211
|
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
1212
|
readonly has_components: boolean;
|
|
1108
1213
|
readonly unit_price?: number | undefined;
|
|
1109
1214
|
readonly unit_price_measurement?: {
|
|
@@ -1141,6 +1246,27 @@ export declare const validateCart: (cart: unknown) => {
|
|
|
1141
1246
|
};
|
|
1142
1247
|
} | null;
|
|
1143
1248
|
} & {
|
|
1249
|
+
readonly product: {
|
|
1250
|
+
readonly title: string;
|
|
1251
|
+
readonly id: string | number;
|
|
1252
|
+
readonly options: readonly {
|
|
1253
|
+
readonly values: readonly string[];
|
|
1254
|
+
readonly name: string;
|
|
1255
|
+
readonly position: number;
|
|
1256
|
+
}[];
|
|
1257
|
+
readonly handle: string;
|
|
1258
|
+
readonly variants: readonly {
|
|
1259
|
+
readonly title: string;
|
|
1260
|
+
readonly id: string | number;
|
|
1261
|
+
readonly options: readonly string[];
|
|
1262
|
+
readonly quantity_rule: {
|
|
1263
|
+
readonly min: number | null;
|
|
1264
|
+
readonly max: number | null;
|
|
1265
|
+
readonly increment: number;
|
|
1266
|
+
};
|
|
1267
|
+
}[];
|
|
1268
|
+
readonly tags: readonly string[];
|
|
1269
|
+
};
|
|
1144
1270
|
readonly properties_array: readonly {
|
|
1145
1271
|
readonly key: string;
|
|
1146
1272
|
readonly value: string | number | boolean | null;
|
|
@@ -1202,6 +1328,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1202
1328
|
readonly url: string;
|
|
1203
1329
|
readonly price: number;
|
|
1204
1330
|
readonly id: string | number;
|
|
1331
|
+
readonly quantity_rule?: {
|
|
1332
|
+
readonly min: number;
|
|
1333
|
+
readonly max: number | null;
|
|
1334
|
+
readonly increment: number;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
readonly handle: string;
|
|
1205
1337
|
readonly properties: {
|
|
1206
1338
|
readonly [x: string]: string | number | boolean | null;
|
|
1207
1339
|
};
|
|
@@ -1233,7 +1365,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1233
1365
|
readonly width: number;
|
|
1234
1366
|
} | undefined;
|
|
1235
1367
|
readonly image: string;
|
|
1236
|
-
readonly handle: string;
|
|
1237
1368
|
readonly requires_shipping: boolean;
|
|
1238
1369
|
readonly product_type: string | null;
|
|
1239
1370
|
readonly product_title: string;
|
|
@@ -1258,11 +1389,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1258
1389
|
};
|
|
1259
1390
|
}[];
|
|
1260
1391
|
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
1392
|
readonly has_components: boolean;
|
|
1267
1393
|
readonly unit_price?: number | undefined;
|
|
1268
1394
|
readonly unit_price_measurement?: {
|
|
@@ -1300,6 +1426,27 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1300
1426
|
};
|
|
1301
1427
|
} | null;
|
|
1302
1428
|
} & {
|
|
1429
|
+
readonly product: {
|
|
1430
|
+
readonly title: string;
|
|
1431
|
+
readonly id: string | number;
|
|
1432
|
+
readonly options: readonly {
|
|
1433
|
+
readonly values: readonly string[];
|
|
1434
|
+
readonly name: string;
|
|
1435
|
+
readonly position: number;
|
|
1436
|
+
}[];
|
|
1437
|
+
readonly handle: string;
|
|
1438
|
+
readonly variants: readonly {
|
|
1439
|
+
readonly title: string;
|
|
1440
|
+
readonly id: string | number;
|
|
1441
|
+
readonly options: readonly string[];
|
|
1442
|
+
readonly quantity_rule: {
|
|
1443
|
+
readonly min: number | null;
|
|
1444
|
+
readonly max: number | null;
|
|
1445
|
+
readonly increment: number;
|
|
1446
|
+
};
|
|
1447
|
+
}[];
|
|
1448
|
+
readonly tags: readonly string[];
|
|
1449
|
+
};
|
|
1303
1450
|
readonly properties_array: readonly {
|
|
1304
1451
|
readonly key: string;
|
|
1305
1452
|
readonly value: string | number | boolean | null;
|
|
@@ -1346,6 +1493,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1346
1493
|
readonly url: string;
|
|
1347
1494
|
readonly price: number;
|
|
1348
1495
|
readonly id: string | number;
|
|
1496
|
+
readonly quantity_rule?: {
|
|
1497
|
+
readonly min: number;
|
|
1498
|
+
readonly max: number | null;
|
|
1499
|
+
readonly increment: number;
|
|
1500
|
+
} | undefined;
|
|
1501
|
+
readonly handle: string;
|
|
1349
1502
|
readonly properties: {
|
|
1350
1503
|
readonly [x: string]: string | number | boolean | null;
|
|
1351
1504
|
};
|
|
@@ -1377,7 +1530,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1377
1530
|
readonly width: number;
|
|
1378
1531
|
} | undefined;
|
|
1379
1532
|
readonly image: string;
|
|
1380
|
-
readonly handle: string;
|
|
1381
1533
|
readonly requires_shipping: boolean;
|
|
1382
1534
|
readonly product_type: string | null;
|
|
1383
1535
|
readonly product_title: string;
|
|
@@ -1402,11 +1554,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1402
1554
|
};
|
|
1403
1555
|
}[];
|
|
1404
1556
|
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
1557
|
readonly has_components: boolean;
|
|
1411
1558
|
readonly unit_price?: number | undefined;
|
|
1412
1559
|
readonly unit_price_measurement?: {
|
|
@@ -1444,6 +1591,27 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1444
1591
|
};
|
|
1445
1592
|
} | null;
|
|
1446
1593
|
} & {
|
|
1594
|
+
readonly product: {
|
|
1595
|
+
readonly title: string;
|
|
1596
|
+
readonly id: string | number;
|
|
1597
|
+
readonly options: readonly {
|
|
1598
|
+
readonly values: readonly string[];
|
|
1599
|
+
readonly name: string;
|
|
1600
|
+
readonly position: number;
|
|
1601
|
+
}[];
|
|
1602
|
+
readonly handle: string;
|
|
1603
|
+
readonly variants: readonly {
|
|
1604
|
+
readonly title: string;
|
|
1605
|
+
readonly id: string | number;
|
|
1606
|
+
readonly options: readonly string[];
|
|
1607
|
+
readonly quantity_rule: {
|
|
1608
|
+
readonly min: number | null;
|
|
1609
|
+
readonly max: number | null;
|
|
1610
|
+
readonly increment: number;
|
|
1611
|
+
};
|
|
1612
|
+
}[];
|
|
1613
|
+
readonly tags: readonly string[];
|
|
1614
|
+
};
|
|
1447
1615
|
readonly properties_array: readonly {
|
|
1448
1616
|
readonly key: string;
|
|
1449
1617
|
readonly value: string | number | boolean | null;
|
|
@@ -1521,6 +1689,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1521
1689
|
readonly url: string;
|
|
1522
1690
|
readonly price: number;
|
|
1523
1691
|
readonly id: string | number;
|
|
1692
|
+
readonly quantity_rule?: {
|
|
1693
|
+
readonly min: number;
|
|
1694
|
+
readonly max: number | null;
|
|
1695
|
+
readonly increment: number;
|
|
1696
|
+
} | undefined;
|
|
1697
|
+
readonly handle: string;
|
|
1524
1698
|
readonly properties: {
|
|
1525
1699
|
readonly [x: string]: string | number | boolean | null;
|
|
1526
1700
|
};
|
|
@@ -1552,7 +1726,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1552
1726
|
readonly width: number;
|
|
1553
1727
|
} | undefined;
|
|
1554
1728
|
readonly image: string;
|
|
1555
|
-
readonly handle: string;
|
|
1556
1729
|
readonly requires_shipping: boolean;
|
|
1557
1730
|
readonly product_type: string | null;
|
|
1558
1731
|
readonly product_title: string;
|
|
@@ -1577,11 +1750,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1577
1750
|
};
|
|
1578
1751
|
}[];
|
|
1579
1752
|
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
1753
|
readonly has_components: boolean;
|
|
1586
1754
|
readonly unit_price?: number | undefined;
|
|
1587
1755
|
readonly unit_price_measurement?: {
|
|
@@ -1619,6 +1787,27 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1619
1787
|
};
|
|
1620
1788
|
} | null;
|
|
1621
1789
|
} & {
|
|
1790
|
+
readonly product: {
|
|
1791
|
+
readonly title: string;
|
|
1792
|
+
readonly id: string | number;
|
|
1793
|
+
readonly options: readonly {
|
|
1794
|
+
readonly values: readonly string[];
|
|
1795
|
+
readonly name: string;
|
|
1796
|
+
readonly position: number;
|
|
1797
|
+
}[];
|
|
1798
|
+
readonly handle: string;
|
|
1799
|
+
readonly variants: readonly {
|
|
1800
|
+
readonly title: string;
|
|
1801
|
+
readonly id: string | number;
|
|
1802
|
+
readonly options: readonly string[];
|
|
1803
|
+
readonly quantity_rule: {
|
|
1804
|
+
readonly min: number | null;
|
|
1805
|
+
readonly max: number | null;
|
|
1806
|
+
readonly increment: number;
|
|
1807
|
+
};
|
|
1808
|
+
}[];
|
|
1809
|
+
readonly tags: readonly string[];
|
|
1810
|
+
};
|
|
1622
1811
|
readonly properties_array: readonly {
|
|
1623
1812
|
readonly key: string;
|
|
1624
1813
|
readonly value: string | number | boolean | null;
|
|
@@ -1696,6 +1885,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1696
1885
|
readonly url: string;
|
|
1697
1886
|
readonly price: number;
|
|
1698
1887
|
readonly id: string | number;
|
|
1888
|
+
readonly quantity_rule?: {
|
|
1889
|
+
readonly min: number;
|
|
1890
|
+
readonly max: number | null;
|
|
1891
|
+
readonly increment: number;
|
|
1892
|
+
} | undefined;
|
|
1893
|
+
readonly handle: string;
|
|
1699
1894
|
readonly properties: {
|
|
1700
1895
|
readonly [x: string]: string | number | boolean | null;
|
|
1701
1896
|
};
|
|
@@ -1727,7 +1922,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1727
1922
|
readonly width: number;
|
|
1728
1923
|
} | undefined;
|
|
1729
1924
|
readonly image: string;
|
|
1730
|
-
readonly handle: string;
|
|
1731
1925
|
readonly requires_shipping: boolean;
|
|
1732
1926
|
readonly product_type: string | null;
|
|
1733
1927
|
readonly product_title: string;
|
|
@@ -1752,11 +1946,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1752
1946
|
};
|
|
1753
1947
|
}[];
|
|
1754
1948
|
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
1949
|
readonly has_components: boolean;
|
|
1761
1950
|
readonly unit_price?: number | undefined;
|
|
1762
1951
|
readonly unit_price_measurement?: {
|
|
@@ -1794,6 +1983,27 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1794
1983
|
};
|
|
1795
1984
|
} | null;
|
|
1796
1985
|
} & {
|
|
1986
|
+
readonly product: {
|
|
1987
|
+
readonly title: string;
|
|
1988
|
+
readonly id: string | number;
|
|
1989
|
+
readonly options: readonly {
|
|
1990
|
+
readonly values: readonly string[];
|
|
1991
|
+
readonly name: string;
|
|
1992
|
+
readonly position: number;
|
|
1993
|
+
}[];
|
|
1994
|
+
readonly handle: string;
|
|
1995
|
+
readonly variants: readonly {
|
|
1996
|
+
readonly title: string;
|
|
1997
|
+
readonly id: string | number;
|
|
1998
|
+
readonly options: readonly string[];
|
|
1999
|
+
readonly quantity_rule: {
|
|
2000
|
+
readonly min: number | null;
|
|
2001
|
+
readonly max: number | null;
|
|
2002
|
+
readonly increment: number;
|
|
2003
|
+
};
|
|
2004
|
+
}[];
|
|
2005
|
+
readonly tags: readonly string[];
|
|
2006
|
+
};
|
|
1797
2007
|
readonly properties_array: readonly {
|
|
1798
2008
|
readonly key: string;
|
|
1799
2009
|
readonly value: string | number | boolean | null;
|
|
@@ -1871,6 +2081,12 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1871
2081
|
readonly url: string;
|
|
1872
2082
|
readonly price: number;
|
|
1873
2083
|
readonly id: string | number;
|
|
2084
|
+
readonly quantity_rule?: {
|
|
2085
|
+
readonly min: number;
|
|
2086
|
+
readonly max: number | null;
|
|
2087
|
+
readonly increment: number;
|
|
2088
|
+
} | undefined;
|
|
2089
|
+
readonly handle: string;
|
|
1874
2090
|
readonly properties: {
|
|
1875
2091
|
readonly [x: string]: string | number | boolean | null;
|
|
1876
2092
|
};
|
|
@@ -1902,7 +2118,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1902
2118
|
readonly width: number;
|
|
1903
2119
|
} | undefined;
|
|
1904
2120
|
readonly image: string;
|
|
1905
|
-
readonly handle: string;
|
|
1906
2121
|
readonly requires_shipping: boolean;
|
|
1907
2122
|
readonly product_type: string | null;
|
|
1908
2123
|
readonly product_title: string;
|
|
@@ -1927,11 +2142,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1927
2142
|
};
|
|
1928
2143
|
}[];
|
|
1929
2144
|
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
2145
|
readonly has_components: boolean;
|
|
1936
2146
|
readonly unit_price?: number | undefined;
|
|
1937
2147
|
readonly unit_price_measurement?: {
|
|
@@ -1969,6 +2179,27 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
1969
2179
|
};
|
|
1970
2180
|
} | null;
|
|
1971
2181
|
} & {
|
|
2182
|
+
readonly product: {
|
|
2183
|
+
readonly title: string;
|
|
2184
|
+
readonly id: string | number;
|
|
2185
|
+
readonly options: readonly {
|
|
2186
|
+
readonly values: readonly string[];
|
|
2187
|
+
readonly name: string;
|
|
2188
|
+
readonly position: number;
|
|
2189
|
+
}[];
|
|
2190
|
+
readonly handle: string;
|
|
2191
|
+
readonly variants: readonly {
|
|
2192
|
+
readonly title: string;
|
|
2193
|
+
readonly id: string | number;
|
|
2194
|
+
readonly options: readonly string[];
|
|
2195
|
+
readonly quantity_rule: {
|
|
2196
|
+
readonly min: number | null;
|
|
2197
|
+
readonly max: number | null;
|
|
2198
|
+
readonly increment: number;
|
|
2199
|
+
};
|
|
2200
|
+
}[];
|
|
2201
|
+
readonly tags: readonly string[];
|
|
2202
|
+
};
|
|
1972
2203
|
readonly properties_array: readonly {
|
|
1973
2204
|
readonly key: string;
|
|
1974
2205
|
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.22",
|
|
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": {
|