@brytdesigns/shopify-ajax-cart-api 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,12 +39,69 @@ declare const CartUpdateInput: Schema.extend<Schema.Struct<{
39
39
  Schema.Array$<typeof Schema.Number>
40
40
  ]>>;
41
41
  note: Schema.optional<Schema.NullOr<typeof Schema.String>>;
42
- attributes: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Union<[
42
+ attributes: Schema.optional<Schema.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
43
43
  typeof Schema.Null,
44
44
  typeof Schema.String,
45
45
  typeof Schema.Boolean,
46
46
  typeof Schema.Number
47
- ]>>>;
47
+ ]>>, Schema.Struct<{
48
+ private: Schema.Struct<{
49
+ array: Schema.transform<Schema.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
50
+ typeof Schema.Null,
51
+ typeof Schema.String,
52
+ typeof Schema.Boolean,
53
+ typeof Schema.Number
54
+ ]>>, Schema.Record$<typeof Schema.String, Schema.Union<[
55
+ typeof Schema.Null,
56
+ typeof Schema.String,
57
+ typeof Schema.Boolean,
58
+ typeof Schema.Number
59
+ ]>>>, Schema.Array$<Schema.Struct<{
60
+ key: typeof Schema.String;
61
+ value: Schema.Union<[
62
+ typeof Schema.Null,
63
+ typeof Schema.String,
64
+ typeof Schema.Boolean,
65
+ typeof Schema.Number
66
+ ]>;
67
+ }>>>;
68
+ record: Schema.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
69
+ typeof Schema.Null,
70
+ typeof Schema.String,
71
+ typeof Schema.Boolean,
72
+ typeof Schema.Number
73
+ ]>>, Schema.Record$<typeof Schema.String, Schema.Union<[
74
+ typeof Schema.Null,
75
+ typeof Schema.String,
76
+ typeof Schema.Boolean,
77
+ typeof Schema.Number
78
+ ]>>>;
79
+ }>;
80
+ public: Schema.Struct<{
81
+ array: Schema.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
82
+ typeof Schema.Null,
83
+ typeof Schema.String,
84
+ typeof Schema.Boolean,
85
+ typeof Schema.Number
86
+ ]>>, Schema.Record$<typeof Schema.String, Schema.Union<[
87
+ typeof Schema.Null,
88
+ typeof Schema.String,
89
+ typeof Schema.Boolean,
90
+ typeof Schema.Number
91
+ ]>>>;
92
+ record: Schema.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
93
+ typeof Schema.Null,
94
+ typeof Schema.String,
95
+ typeof Schema.Boolean,
96
+ typeof Schema.Number
97
+ ]>>, Schema.Record$<typeof Schema.String, Schema.Union<[
98
+ typeof Schema.Null,
99
+ typeof Schema.String,
100
+ typeof Schema.Boolean,
101
+ typeof Schema.Number
102
+ ]>>>;
103
+ }>;
104
+ }>>>;
48
105
  discount: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
49
106
  }>, Schema.Struct<{
50
107
  sections: Schema.optional<typeof Schema.String>;
@@ -158,12 +215,24 @@ export declare const add: (input?: ({
158
215
  readonly price: number;
159
216
  readonly id: string | number;
160
217
  readonly properties: {
161
- readonly [x: string]: string | number | boolean | null;
162
- } | null;
163
- readonly properties_array: readonly {
164
- readonly key: string;
165
- readonly value: string | number | boolean | null;
166
- }[] | null;
218
+ readonly private: {
219
+ readonly array: readonly {
220
+ readonly key: string;
221
+ readonly value: string | number | boolean | null;
222
+ }[];
223
+ readonly record: {
224
+ readonly [x: string]: string | number | boolean | null;
225
+ };
226
+ };
227
+ readonly public: {
228
+ readonly array: {
229
+ readonly [x: string]: string | number | boolean | null;
230
+ };
231
+ readonly record: {
232
+ readonly [x: string]: string | number | boolean | null;
233
+ };
234
+ };
235
+ };
167
236
  readonly quantity: number;
168
237
  readonly variant_id: string | number;
169
238
  readonly original_price: number;
@@ -271,12 +340,24 @@ export declare const add: (input?: ({
271
340
  readonly price: number;
272
341
  readonly id: string | number;
273
342
  readonly properties: {
274
- readonly [x: string]: string | number | boolean | null;
275
- } | null;
276
- readonly properties_array: readonly {
277
- readonly key: string;
278
- readonly value: string | number | boolean | null;
279
- }[] | null;
343
+ readonly private: {
344
+ readonly array: readonly {
345
+ readonly key: string;
346
+ readonly value: string | number | boolean | null;
347
+ }[];
348
+ readonly record: {
349
+ readonly [x: string]: string | number | boolean | null;
350
+ };
351
+ };
352
+ readonly public: {
353
+ readonly array: {
354
+ readonly [x: string]: string | number | boolean | null;
355
+ };
356
+ readonly record: {
357
+ readonly [x: string]: string | number | boolean | null;
358
+ };
359
+ };
360
+ };
280
361
  readonly quantity: number;
281
362
  readonly variant_id: string | number;
282
363
  readonly original_price: number;
@@ -410,12 +491,24 @@ export declare const change: (input?: ({
410
491
  readonly token: string;
411
492
  readonly note: string | null;
412
493
  readonly attributes: {
413
- readonly [x: string]: string | number | boolean | null;
494
+ readonly private: {
495
+ readonly array: readonly {
496
+ readonly key: string;
497
+ readonly value: string | number | boolean | null;
498
+ }[];
499
+ readonly record: {
500
+ readonly [x: string]: string | number | boolean | null;
501
+ };
502
+ };
503
+ readonly public: {
504
+ readonly array: {
505
+ readonly [x: string]: string | number | boolean | null;
506
+ };
507
+ readonly record: {
508
+ readonly [x: string]: string | number | boolean | null;
509
+ };
510
+ };
414
511
  };
415
- readonly attributes_array: readonly {
416
- readonly key: string;
417
- readonly value: string | number | boolean | null;
418
- }[];
419
512
  readonly discount_codes: readonly {
420
513
  readonly code: string;
421
514
  readonly applicable: boolean;
@@ -431,12 +524,24 @@ export declare const change: (input?: ({
431
524
  readonly price: number;
432
525
  readonly id: string | number;
433
526
  readonly properties: {
434
- readonly [x: string]: string | number | boolean | null;
435
- } | null;
436
- readonly properties_array: readonly {
437
- readonly key: string;
438
- readonly value: string | number | boolean | null;
439
- }[] | null;
527
+ readonly private: {
528
+ readonly array: readonly {
529
+ readonly key: string;
530
+ readonly value: string | number | boolean | null;
531
+ }[];
532
+ readonly record: {
533
+ readonly [x: string]: string | number | boolean | null;
534
+ };
535
+ };
536
+ readonly public: {
537
+ readonly array: {
538
+ readonly [x: string]: string | number | boolean | null;
539
+ };
540
+ readonly record: {
541
+ readonly [x: string]: string | number | boolean | null;
542
+ };
543
+ };
544
+ };
440
545
  readonly quantity: number;
441
546
  readonly variant_id: string | number;
442
547
  readonly original_price: number;
@@ -596,12 +701,24 @@ export declare const change: (input?: ({
596
701
  readonly token: string;
597
702
  readonly note: string | null;
598
703
  readonly attributes: {
599
- readonly [x: string]: string | number | boolean | null;
704
+ readonly private: {
705
+ readonly array: readonly {
706
+ readonly key: string;
707
+ readonly value: string | number | boolean | null;
708
+ }[];
709
+ readonly record: {
710
+ readonly [x: string]: string | number | boolean | null;
711
+ };
712
+ };
713
+ readonly public: {
714
+ readonly array: {
715
+ readonly [x: string]: string | number | boolean | null;
716
+ };
717
+ readonly record: {
718
+ readonly [x: string]: string | number | boolean | null;
719
+ };
720
+ };
600
721
  };
601
- readonly attributes_array: readonly {
602
- readonly key: string;
603
- readonly value: string | number | boolean | null;
604
- }[];
605
722
  readonly discount_codes: readonly {
606
723
  readonly code: string;
607
724
  readonly applicable: boolean;
@@ -617,12 +734,24 @@ export declare const change: (input?: ({
617
734
  readonly price: number;
618
735
  readonly id: string | number;
619
736
  readonly properties: {
620
- readonly [x: string]: string | number | boolean | null;
621
- } | null;
622
- readonly properties_array: readonly {
623
- readonly key: string;
624
- readonly value: string | number | boolean | null;
625
- }[] | null;
737
+ readonly private: {
738
+ readonly array: readonly {
739
+ readonly key: string;
740
+ readonly value: string | number | boolean | null;
741
+ }[];
742
+ readonly record: {
743
+ readonly [x: string]: string | number | boolean | null;
744
+ };
745
+ };
746
+ readonly public: {
747
+ readonly array: {
748
+ readonly [x: string]: string | number | boolean | null;
749
+ };
750
+ readonly record: {
751
+ readonly [x: string]: string | number | boolean | null;
752
+ };
753
+ };
754
+ };
626
755
  readonly quantity: number;
627
756
  readonly variant_id: string | number;
628
757
  readonly original_price: number;
@@ -787,12 +916,24 @@ export declare const clear: (input?: {
787
916
  readonly token: string;
788
917
  readonly note: string | null;
789
918
  readonly attributes: {
790
- readonly [x: string]: string | number | boolean | null;
919
+ readonly private: {
920
+ readonly array: readonly {
921
+ readonly key: string;
922
+ readonly value: string | number | boolean | null;
923
+ }[];
924
+ readonly record: {
925
+ readonly [x: string]: string | number | boolean | null;
926
+ };
927
+ };
928
+ readonly public: {
929
+ readonly array: {
930
+ readonly [x: string]: string | number | boolean | null;
931
+ };
932
+ readonly record: {
933
+ readonly [x: string]: string | number | boolean | null;
934
+ };
935
+ };
791
936
  };
792
- readonly attributes_array: readonly {
793
- readonly key: string;
794
- readonly value: string | number | boolean | null;
795
- }[];
796
937
  readonly discount_codes: readonly {
797
938
  readonly code: string;
798
939
  readonly applicable: boolean;
@@ -808,12 +949,24 @@ export declare const clear: (input?: {
808
949
  readonly price: number;
809
950
  readonly id: string | number;
810
951
  readonly properties: {
811
- readonly [x: string]: string | number | boolean | null;
812
- } | null;
813
- readonly properties_array: readonly {
814
- readonly key: string;
815
- readonly value: string | number | boolean | null;
816
- }[] | null;
952
+ readonly private: {
953
+ readonly array: readonly {
954
+ readonly key: string;
955
+ readonly value: string | number | boolean | null;
956
+ }[];
957
+ readonly record: {
958
+ readonly [x: string]: string | number | boolean | null;
959
+ };
960
+ };
961
+ readonly public: {
962
+ readonly array: {
963
+ readonly [x: string]: string | number | boolean | null;
964
+ };
965
+ readonly record: {
966
+ readonly [x: string]: string | number | boolean | null;
967
+ };
968
+ };
969
+ };
817
970
  readonly quantity: number;
818
971
  readonly variant_id: string | number;
819
972
  readonly original_price: number;
@@ -935,12 +1088,24 @@ export declare const clear: (input?: {
935
1088
  readonly token: string;
936
1089
  readonly note: string | null;
937
1090
  readonly attributes: {
938
- readonly [x: string]: string | number | boolean | null;
1091
+ readonly private: {
1092
+ readonly array: readonly {
1093
+ readonly key: string;
1094
+ readonly value: string | number | boolean | null;
1095
+ }[];
1096
+ readonly record: {
1097
+ readonly [x: string]: string | number | boolean | null;
1098
+ };
1099
+ };
1100
+ readonly public: {
1101
+ readonly array: {
1102
+ readonly [x: string]: string | number | boolean | null;
1103
+ };
1104
+ readonly record: {
1105
+ readonly [x: string]: string | number | boolean | null;
1106
+ };
1107
+ };
939
1108
  };
940
- readonly attributes_array: readonly {
941
- readonly key: string;
942
- readonly value: string | number | boolean | null;
943
- }[];
944
1109
  readonly discount_codes: readonly {
945
1110
  readonly code: string;
946
1111
  readonly applicable: boolean;
@@ -956,12 +1121,24 @@ export declare const clear: (input?: {
956
1121
  readonly price: number;
957
1122
  readonly id: string | number;
958
1123
  readonly properties: {
959
- readonly [x: string]: string | number | boolean | null;
960
- } | null;
961
- readonly properties_array: readonly {
962
- readonly key: string;
963
- readonly value: string | number | boolean | null;
964
- }[] | null;
1124
+ readonly private: {
1125
+ readonly array: readonly {
1126
+ readonly key: string;
1127
+ readonly value: string | number | boolean | null;
1128
+ }[];
1129
+ readonly record: {
1130
+ readonly [x: string]: string | number | boolean | null;
1131
+ };
1132
+ };
1133
+ readonly public: {
1134
+ readonly array: {
1135
+ readonly [x: string]: string | number | boolean | null;
1136
+ };
1137
+ readonly record: {
1138
+ readonly [x: string]: string | number | boolean | null;
1139
+ };
1140
+ };
1141
+ };
965
1142
  readonly quantity: number;
966
1143
  readonly variant_id: string | number;
967
1144
  readonly original_price: number;
@@ -1088,12 +1265,24 @@ export declare const get: (input?: {
1088
1265
  readonly token: string;
1089
1266
  readonly note: string | null;
1090
1267
  readonly attributes: {
1091
- readonly [x: string]: string | number | boolean | null;
1268
+ readonly private: {
1269
+ readonly array: readonly {
1270
+ readonly key: string;
1271
+ readonly value: string | number | boolean | null;
1272
+ }[];
1273
+ readonly record: {
1274
+ readonly [x: string]: string | number | boolean | null;
1275
+ };
1276
+ };
1277
+ readonly public: {
1278
+ readonly array: {
1279
+ readonly [x: string]: string | number | boolean | null;
1280
+ };
1281
+ readonly record: {
1282
+ readonly [x: string]: string | number | boolean | null;
1283
+ };
1284
+ };
1092
1285
  };
1093
- readonly attributes_array: readonly {
1094
- readonly key: string;
1095
- readonly value: string | number | boolean | null;
1096
- }[];
1097
1286
  readonly discount_codes: readonly {
1098
1287
  readonly code: string;
1099
1288
  readonly applicable: boolean;
@@ -1109,12 +1298,24 @@ export declare const get: (input?: {
1109
1298
  readonly price: number;
1110
1299
  readonly id: string | number;
1111
1300
  readonly properties: {
1112
- readonly [x: string]: string | number | boolean | null;
1113
- } | null;
1114
- readonly properties_array: readonly {
1115
- readonly key: string;
1116
- readonly value: string | number | boolean | null;
1117
- }[] | null;
1301
+ readonly private: {
1302
+ readonly array: readonly {
1303
+ readonly key: string;
1304
+ readonly value: string | number | boolean | null;
1305
+ }[];
1306
+ readonly record: {
1307
+ readonly [x: string]: string | number | boolean | null;
1308
+ };
1309
+ };
1310
+ readonly public: {
1311
+ readonly array: {
1312
+ readonly [x: string]: string | number | boolean | null;
1313
+ };
1314
+ readonly record: {
1315
+ readonly [x: string]: string | number | boolean | null;
1316
+ };
1317
+ };
1318
+ };
1118
1319
  readonly quantity: number;
1119
1320
  readonly variant_id: string | number;
1120
1321
  readonly original_price: number;
@@ -1236,12 +1437,24 @@ export declare const get: (input?: {
1236
1437
  readonly token: string;
1237
1438
  readonly note: string | null;
1238
1439
  readonly attributes: {
1239
- readonly [x: string]: string | number | boolean | null;
1440
+ readonly private: {
1441
+ readonly array: readonly {
1442
+ readonly key: string;
1443
+ readonly value: string | number | boolean | null;
1444
+ }[];
1445
+ readonly record: {
1446
+ readonly [x: string]: string | number | boolean | null;
1447
+ };
1448
+ };
1449
+ readonly public: {
1450
+ readonly array: {
1451
+ readonly [x: string]: string | number | boolean | null;
1452
+ };
1453
+ readonly record: {
1454
+ readonly [x: string]: string | number | boolean | null;
1455
+ };
1456
+ };
1240
1457
  };
1241
- readonly attributes_array: readonly {
1242
- readonly key: string;
1243
- readonly value: string | number | boolean | null;
1244
- }[];
1245
1458
  readonly discount_codes: readonly {
1246
1459
  readonly code: string;
1247
1460
  readonly applicable: boolean;
@@ -1257,12 +1470,24 @@ export declare const get: (input?: {
1257
1470
  readonly price: number;
1258
1471
  readonly id: string | number;
1259
1472
  readonly properties: {
1260
- readonly [x: string]: string | number | boolean | null;
1261
- } | null;
1262
- readonly properties_array: readonly {
1263
- readonly key: string;
1264
- readonly value: string | number | boolean | null;
1265
- }[] | null;
1473
+ readonly private: {
1474
+ readonly array: readonly {
1475
+ readonly key: string;
1476
+ readonly value: string | number | boolean | null;
1477
+ }[];
1478
+ readonly record: {
1479
+ readonly [x: string]: string | number | boolean | null;
1480
+ };
1481
+ };
1482
+ readonly public: {
1483
+ readonly array: {
1484
+ readonly [x: string]: string | number | boolean | null;
1485
+ };
1486
+ readonly record: {
1487
+ readonly [x: string]: string | number | boolean | null;
1488
+ };
1489
+ };
1490
+ };
1266
1491
  readonly quantity: number;
1267
1492
  readonly variant_id: string | number;
1268
1493
  readonly original_price: number;
@@ -1398,12 +1623,24 @@ export declare const update: (input?: ({
1398
1623
  readonly token: string;
1399
1624
  readonly note: string | null;
1400
1625
  readonly attributes: {
1401
- readonly [x: string]: string | number | boolean | null;
1626
+ readonly private: {
1627
+ readonly array: readonly {
1628
+ readonly key: string;
1629
+ readonly value: string | number | boolean | null;
1630
+ }[];
1631
+ readonly record: {
1632
+ readonly [x: string]: string | number | boolean | null;
1633
+ };
1634
+ };
1635
+ readonly public: {
1636
+ readonly array: {
1637
+ readonly [x: string]: string | number | boolean | null;
1638
+ };
1639
+ readonly record: {
1640
+ readonly [x: string]: string | number | boolean | null;
1641
+ };
1642
+ };
1402
1643
  };
1403
- readonly attributes_array: readonly {
1404
- readonly key: string;
1405
- readonly value: string | number | boolean | null;
1406
- }[];
1407
1644
  readonly discount_codes: readonly {
1408
1645
  readonly code: string;
1409
1646
  readonly applicable: boolean;
@@ -1419,12 +1656,24 @@ export declare const update: (input?: ({
1419
1656
  readonly price: number;
1420
1657
  readonly id: string | number;
1421
1658
  readonly properties: {
1422
- readonly [x: string]: string | number | boolean | null;
1423
- } | null;
1424
- readonly properties_array: readonly {
1425
- readonly key: string;
1426
- readonly value: string | number | boolean | null;
1427
- }[] | null;
1659
+ readonly private: {
1660
+ readonly array: readonly {
1661
+ readonly key: string;
1662
+ readonly value: string | number | boolean | null;
1663
+ }[];
1664
+ readonly record: {
1665
+ readonly [x: string]: string | number | boolean | null;
1666
+ };
1667
+ };
1668
+ readonly public: {
1669
+ readonly array: {
1670
+ readonly [x: string]: string | number | boolean | null;
1671
+ };
1672
+ readonly record: {
1673
+ readonly [x: string]: string | number | boolean | null;
1674
+ };
1675
+ };
1676
+ };
1428
1677
  readonly quantity: number;
1429
1678
  readonly variant_id: string | number;
1430
1679
  readonly original_price: number;
@@ -1552,12 +1801,24 @@ export declare const update: (input?: ({
1552
1801
  readonly token: string;
1553
1802
  readonly note: string | null;
1554
1803
  readonly attributes: {
1555
- readonly [x: string]: string | number | boolean | null;
1804
+ readonly private: {
1805
+ readonly array: readonly {
1806
+ readonly key: string;
1807
+ readonly value: string | number | boolean | null;
1808
+ }[];
1809
+ readonly record: {
1810
+ readonly [x: string]: string | number | boolean | null;
1811
+ };
1812
+ };
1813
+ readonly public: {
1814
+ readonly array: {
1815
+ readonly [x: string]: string | number | boolean | null;
1816
+ };
1817
+ readonly record: {
1818
+ readonly [x: string]: string | number | boolean | null;
1819
+ };
1820
+ };
1556
1821
  };
1557
- readonly attributes_array: readonly {
1558
- readonly key: string;
1559
- readonly value: string | number | boolean | null;
1560
- }[];
1561
1822
  readonly discount_codes: readonly {
1562
1823
  readonly code: string;
1563
1824
  readonly applicable: boolean;
@@ -1573,12 +1834,24 @@ export declare const update: (input?: ({
1573
1834
  readonly price: number;
1574
1835
  readonly id: string | number;
1575
1836
  readonly properties: {
1576
- readonly [x: string]: string | number | boolean | null;
1577
- } | null;
1578
- readonly properties_array: readonly {
1579
- readonly key: string;
1580
- readonly value: string | number | boolean | null;
1581
- }[] | null;
1837
+ readonly private: {
1838
+ readonly array: readonly {
1839
+ readonly key: string;
1840
+ readonly value: string | number | boolean | null;
1841
+ }[];
1842
+ readonly record: {
1843
+ readonly [x: string]: string | number | boolean | null;
1844
+ };
1845
+ };
1846
+ readonly public: {
1847
+ readonly array: {
1848
+ readonly [x: string]: string | number | boolean | null;
1849
+ };
1850
+ readonly record: {
1851
+ readonly [x: string]: string | number | boolean | null;
1852
+ };
1853
+ };
1854
+ };
1582
1855
  readonly quantity: number;
1583
1856
  readonly variant_id: string | number;
1584
1857
  readonly original_price: number;