@brytdesigns/shopify-ajax-cart-api 1.0.5 → 1.0.7

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.
@@ -45,26 +45,70 @@ declare const CartUpdateInput: Schema.extend<Schema.Struct<{
45
45
  typeof Schema.Boolean,
46
46
  typeof Schema.Number
47
47
  ]>>, Schema.Struct<{
48
- array: Schema.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
49
- typeof Schema.Null,
50
- typeof Schema.String,
51
- typeof Schema.Boolean,
52
- typeof Schema.Number
53
- ]>>, Schema.Array$<Schema.Struct<{
54
- key: typeof Schema.String;
55
- value: Schema.Union<[
48
+ private: Schema.Struct<{
49
+ array: Schema.transform<Schema.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
56
50
  typeof Schema.Null,
57
51
  typeof Schema.String,
58
52
  typeof Schema.Boolean,
59
53
  typeof Schema.Number
60
- ]>;
61
- }>>>;
62
- record: Schema.Record$<typeof Schema.String, Schema.Union<[
63
- typeof Schema.Null,
64
- typeof Schema.String,
65
- typeof Schema.Boolean,
66
- typeof Schema.Number
67
- ]>>;
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.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
+ ]>>>, Schema.Array$<Schema.Struct<{
92
+ key: typeof Schema.String;
93
+ value: Schema.Union<[
94
+ typeof Schema.Null,
95
+ typeof Schema.String,
96
+ typeof Schema.Boolean,
97
+ typeof Schema.Number
98
+ ]>;
99
+ }>>>;
100
+ record: Schema.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
101
+ typeof Schema.Null,
102
+ typeof Schema.String,
103
+ typeof Schema.Boolean,
104
+ typeof Schema.Number
105
+ ]>>, Schema.Record$<typeof Schema.String, Schema.Union<[
106
+ typeof Schema.Null,
107
+ typeof Schema.String,
108
+ typeof Schema.Boolean,
109
+ typeof Schema.Number
110
+ ]>>>;
111
+ }>;
68
112
  }>>>;
69
113
  discount: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
70
114
  }>, Schema.Struct<{
@@ -179,12 +223,23 @@ export declare const add: (input?: ({
179
223
  readonly price: number;
180
224
  readonly id: string | number;
181
225
  readonly properties: {
182
- readonly array: readonly {
183
- readonly key: string;
184
- readonly value: string | number | boolean | null;
185
- }[];
186
- readonly record: {
187
- readonly [x: string]: string | number | boolean | null;
226
+ readonly private: {
227
+ readonly array: readonly {
228
+ readonly key: string;
229
+ readonly value: string | number | boolean | null;
230
+ }[];
231
+ readonly record: {
232
+ readonly [x: string]: string | number | boolean | null;
233
+ };
234
+ };
235
+ readonly public: {
236
+ readonly array: readonly {
237
+ readonly key: string;
238
+ readonly value: string | number | boolean | null;
239
+ }[];
240
+ readonly record: {
241
+ readonly [x: string]: string | number | boolean | null;
242
+ };
188
243
  };
189
244
  };
190
245
  readonly quantity: number;
@@ -294,12 +349,23 @@ export declare const add: (input?: ({
294
349
  readonly price: number;
295
350
  readonly id: string | number;
296
351
  readonly properties: {
297
- readonly array: readonly {
298
- readonly key: string;
299
- readonly value: string | number | boolean | null;
300
- }[];
301
- readonly record: {
302
- readonly [x: string]: string | number | boolean | null;
352
+ readonly private: {
353
+ readonly array: readonly {
354
+ readonly key: string;
355
+ readonly value: string | number | boolean | null;
356
+ }[];
357
+ readonly record: {
358
+ readonly [x: string]: string | number | boolean | null;
359
+ };
360
+ };
361
+ readonly public: {
362
+ readonly array: readonly {
363
+ readonly key: string;
364
+ readonly value: string | number | boolean | null;
365
+ }[];
366
+ readonly record: {
367
+ readonly [x: string]: string | number | boolean | null;
368
+ };
303
369
  };
304
370
  };
305
371
  readonly quantity: number;
@@ -435,12 +501,23 @@ export declare const change: (input?: ({
435
501
  readonly token: string;
436
502
  readonly note: string | null;
437
503
  readonly attributes: {
438
- readonly array: readonly {
439
- readonly key: string;
440
- readonly value: string | number | boolean | null;
441
- }[];
442
- readonly record: {
443
- readonly [x: string]: string | number | boolean | null;
504
+ readonly private: {
505
+ readonly array: readonly {
506
+ readonly key: string;
507
+ readonly value: string | number | boolean | null;
508
+ }[];
509
+ readonly record: {
510
+ readonly [x: string]: string | number | boolean | null;
511
+ };
512
+ };
513
+ readonly public: {
514
+ readonly array: readonly {
515
+ readonly key: string;
516
+ readonly value: string | number | boolean | null;
517
+ }[];
518
+ readonly record: {
519
+ readonly [x: string]: string | number | boolean | null;
520
+ };
444
521
  };
445
522
  };
446
523
  readonly discount_codes: readonly {
@@ -458,12 +535,23 @@ export declare const change: (input?: ({
458
535
  readonly price: number;
459
536
  readonly id: string | number;
460
537
  readonly properties: {
461
- readonly array: readonly {
462
- readonly key: string;
463
- readonly value: string | number | boolean | null;
464
- }[];
465
- readonly record: {
466
- readonly [x: string]: string | number | boolean | null;
538
+ readonly private: {
539
+ readonly array: readonly {
540
+ readonly key: string;
541
+ readonly value: string | number | boolean | null;
542
+ }[];
543
+ readonly record: {
544
+ readonly [x: string]: string | number | boolean | null;
545
+ };
546
+ };
547
+ readonly public: {
548
+ readonly array: readonly {
549
+ readonly key: string;
550
+ readonly value: string | number | boolean | null;
551
+ }[];
552
+ readonly record: {
553
+ readonly [x: string]: string | number | boolean | null;
554
+ };
467
555
  };
468
556
  };
469
557
  readonly quantity: number;
@@ -625,12 +713,23 @@ export declare const change: (input?: ({
625
713
  readonly token: string;
626
714
  readonly note: string | null;
627
715
  readonly attributes: {
628
- readonly array: readonly {
629
- readonly key: string;
630
- readonly value: string | number | boolean | null;
631
- }[];
632
- readonly record: {
633
- readonly [x: string]: string | number | boolean | null;
716
+ readonly private: {
717
+ readonly array: readonly {
718
+ readonly key: string;
719
+ readonly value: string | number | boolean | null;
720
+ }[];
721
+ readonly record: {
722
+ readonly [x: string]: string | number | boolean | null;
723
+ };
724
+ };
725
+ readonly public: {
726
+ readonly array: readonly {
727
+ readonly key: string;
728
+ readonly value: string | number | boolean | null;
729
+ }[];
730
+ readonly record: {
731
+ readonly [x: string]: string | number | boolean | null;
732
+ };
634
733
  };
635
734
  };
636
735
  readonly discount_codes: readonly {
@@ -648,12 +747,23 @@ export declare const change: (input?: ({
648
747
  readonly price: number;
649
748
  readonly id: string | number;
650
749
  readonly properties: {
651
- readonly array: readonly {
652
- readonly key: string;
653
- readonly value: string | number | boolean | null;
654
- }[];
655
- readonly record: {
656
- readonly [x: string]: string | number | boolean | null;
750
+ readonly private: {
751
+ readonly array: readonly {
752
+ readonly key: string;
753
+ readonly value: string | number | boolean | null;
754
+ }[];
755
+ readonly record: {
756
+ readonly [x: string]: string | number | boolean | null;
757
+ };
758
+ };
759
+ readonly public: {
760
+ readonly array: readonly {
761
+ readonly key: string;
762
+ readonly value: string | number | boolean | null;
763
+ }[];
764
+ readonly record: {
765
+ readonly [x: string]: string | number | boolean | null;
766
+ };
657
767
  };
658
768
  };
659
769
  readonly quantity: number;
@@ -820,12 +930,23 @@ export declare const clear: (input?: {
820
930
  readonly token: string;
821
931
  readonly note: string | null;
822
932
  readonly attributes: {
823
- readonly array: readonly {
824
- readonly key: string;
825
- readonly value: string | number | boolean | null;
826
- }[];
827
- readonly record: {
828
- readonly [x: string]: string | number | boolean | null;
933
+ readonly private: {
934
+ readonly array: readonly {
935
+ readonly key: string;
936
+ readonly value: string | number | boolean | null;
937
+ }[];
938
+ readonly record: {
939
+ readonly [x: string]: string | number | boolean | null;
940
+ };
941
+ };
942
+ readonly public: {
943
+ readonly array: readonly {
944
+ readonly key: string;
945
+ readonly value: string | number | boolean | null;
946
+ }[];
947
+ readonly record: {
948
+ readonly [x: string]: string | number | boolean | null;
949
+ };
829
950
  };
830
951
  };
831
952
  readonly discount_codes: readonly {
@@ -843,12 +964,23 @@ export declare const clear: (input?: {
843
964
  readonly price: number;
844
965
  readonly id: string | number;
845
966
  readonly properties: {
846
- readonly array: readonly {
847
- readonly key: string;
848
- readonly value: string | number | boolean | null;
849
- }[];
850
- readonly record: {
851
- readonly [x: string]: string | number | boolean | null;
967
+ readonly private: {
968
+ readonly array: readonly {
969
+ readonly key: string;
970
+ readonly value: string | number | boolean | null;
971
+ }[];
972
+ readonly record: {
973
+ readonly [x: string]: string | number | boolean | null;
974
+ };
975
+ };
976
+ readonly public: {
977
+ readonly array: readonly {
978
+ readonly key: string;
979
+ readonly value: string | number | boolean | null;
980
+ }[];
981
+ readonly record: {
982
+ readonly [x: string]: string | number | boolean | null;
983
+ };
852
984
  };
853
985
  };
854
986
  readonly quantity: number;
@@ -972,12 +1104,23 @@ export declare const clear: (input?: {
972
1104
  readonly token: string;
973
1105
  readonly note: string | null;
974
1106
  readonly attributes: {
975
- readonly array: readonly {
976
- readonly key: string;
977
- readonly value: string | number | boolean | null;
978
- }[];
979
- readonly record: {
980
- readonly [x: string]: string | number | boolean | null;
1107
+ readonly private: {
1108
+ readonly array: readonly {
1109
+ readonly key: string;
1110
+ readonly value: string | number | boolean | null;
1111
+ }[];
1112
+ readonly record: {
1113
+ readonly [x: string]: string | number | boolean | null;
1114
+ };
1115
+ };
1116
+ readonly public: {
1117
+ readonly array: readonly {
1118
+ readonly key: string;
1119
+ readonly value: string | number | boolean | null;
1120
+ }[];
1121
+ readonly record: {
1122
+ readonly [x: string]: string | number | boolean | null;
1123
+ };
981
1124
  };
982
1125
  };
983
1126
  readonly discount_codes: readonly {
@@ -995,12 +1138,23 @@ export declare const clear: (input?: {
995
1138
  readonly price: number;
996
1139
  readonly id: string | number;
997
1140
  readonly properties: {
998
- readonly array: readonly {
999
- readonly key: string;
1000
- readonly value: string | number | boolean | null;
1001
- }[];
1002
- readonly record: {
1003
- readonly [x: string]: string | number | boolean | null;
1141
+ readonly private: {
1142
+ readonly array: readonly {
1143
+ readonly key: string;
1144
+ readonly value: string | number | boolean | null;
1145
+ }[];
1146
+ readonly record: {
1147
+ readonly [x: string]: string | number | boolean | null;
1148
+ };
1149
+ };
1150
+ readonly public: {
1151
+ readonly array: readonly {
1152
+ readonly key: string;
1153
+ readonly value: string | number | boolean | null;
1154
+ }[];
1155
+ readonly record: {
1156
+ readonly [x: string]: string | number | boolean | null;
1157
+ };
1004
1158
  };
1005
1159
  };
1006
1160
  readonly quantity: number;
@@ -1129,12 +1283,23 @@ export declare const get: (input?: {
1129
1283
  readonly token: string;
1130
1284
  readonly note: string | null;
1131
1285
  readonly attributes: {
1132
- readonly array: readonly {
1133
- readonly key: string;
1134
- readonly value: string | number | boolean | null;
1135
- }[];
1136
- readonly record: {
1137
- readonly [x: string]: string | number | boolean | null;
1286
+ readonly private: {
1287
+ readonly array: readonly {
1288
+ readonly key: string;
1289
+ readonly value: string | number | boolean | null;
1290
+ }[];
1291
+ readonly record: {
1292
+ readonly [x: string]: string | number | boolean | null;
1293
+ };
1294
+ };
1295
+ readonly public: {
1296
+ readonly array: readonly {
1297
+ readonly key: string;
1298
+ readonly value: string | number | boolean | null;
1299
+ }[];
1300
+ readonly record: {
1301
+ readonly [x: string]: string | number | boolean | null;
1302
+ };
1138
1303
  };
1139
1304
  };
1140
1305
  readonly discount_codes: readonly {
@@ -1152,12 +1317,23 @@ export declare const get: (input?: {
1152
1317
  readonly price: number;
1153
1318
  readonly id: string | number;
1154
1319
  readonly properties: {
1155
- readonly array: readonly {
1156
- readonly key: string;
1157
- readonly value: string | number | boolean | null;
1158
- }[];
1159
- readonly record: {
1160
- readonly [x: string]: string | number | boolean | null;
1320
+ readonly private: {
1321
+ readonly array: readonly {
1322
+ readonly key: string;
1323
+ readonly value: string | number | boolean | null;
1324
+ }[];
1325
+ readonly record: {
1326
+ readonly [x: string]: string | number | boolean | null;
1327
+ };
1328
+ };
1329
+ readonly public: {
1330
+ readonly array: readonly {
1331
+ readonly key: string;
1332
+ readonly value: string | number | boolean | null;
1333
+ }[];
1334
+ readonly record: {
1335
+ readonly [x: string]: string | number | boolean | null;
1336
+ };
1161
1337
  };
1162
1338
  };
1163
1339
  readonly quantity: number;
@@ -1281,12 +1457,23 @@ export declare const get: (input?: {
1281
1457
  readonly token: string;
1282
1458
  readonly note: string | null;
1283
1459
  readonly attributes: {
1284
- readonly array: readonly {
1285
- readonly key: string;
1286
- readonly value: string | number | boolean | null;
1287
- }[];
1288
- readonly record: {
1289
- readonly [x: string]: string | number | boolean | null;
1460
+ readonly private: {
1461
+ readonly array: readonly {
1462
+ readonly key: string;
1463
+ readonly value: string | number | boolean | null;
1464
+ }[];
1465
+ readonly record: {
1466
+ readonly [x: string]: string | number | boolean | null;
1467
+ };
1468
+ };
1469
+ readonly public: {
1470
+ readonly array: readonly {
1471
+ readonly key: string;
1472
+ readonly value: string | number | boolean | null;
1473
+ }[];
1474
+ readonly record: {
1475
+ readonly [x: string]: string | number | boolean | null;
1476
+ };
1290
1477
  };
1291
1478
  };
1292
1479
  readonly discount_codes: readonly {
@@ -1304,12 +1491,23 @@ export declare const get: (input?: {
1304
1491
  readonly price: number;
1305
1492
  readonly id: string | number;
1306
1493
  readonly properties: {
1307
- readonly array: readonly {
1308
- readonly key: string;
1309
- readonly value: string | number | boolean | null;
1310
- }[];
1311
- readonly record: {
1312
- readonly [x: string]: string | number | boolean | null;
1494
+ readonly private: {
1495
+ readonly array: readonly {
1496
+ readonly key: string;
1497
+ readonly value: string | number | boolean | null;
1498
+ }[];
1499
+ readonly record: {
1500
+ readonly [x: string]: string | number | boolean | null;
1501
+ };
1502
+ };
1503
+ readonly public: {
1504
+ readonly array: readonly {
1505
+ readonly key: string;
1506
+ readonly value: string | number | boolean | null;
1507
+ }[];
1508
+ readonly record: {
1509
+ readonly [x: string]: string | number | boolean | null;
1510
+ };
1313
1511
  };
1314
1512
  };
1315
1513
  readonly quantity: number;
@@ -1447,12 +1645,23 @@ export declare const update: (input?: ({
1447
1645
  readonly token: string;
1448
1646
  readonly note: string | null;
1449
1647
  readonly attributes: {
1450
- readonly array: readonly {
1451
- readonly key: string;
1452
- readonly value: string | number | boolean | null;
1453
- }[];
1454
- readonly record: {
1455
- readonly [x: string]: string | number | boolean | null;
1648
+ readonly private: {
1649
+ readonly array: readonly {
1650
+ readonly key: string;
1651
+ readonly value: string | number | boolean | null;
1652
+ }[];
1653
+ readonly record: {
1654
+ readonly [x: string]: string | number | boolean | null;
1655
+ };
1656
+ };
1657
+ readonly public: {
1658
+ readonly array: readonly {
1659
+ readonly key: string;
1660
+ readonly value: string | number | boolean | null;
1661
+ }[];
1662
+ readonly record: {
1663
+ readonly [x: string]: string | number | boolean | null;
1664
+ };
1456
1665
  };
1457
1666
  };
1458
1667
  readonly discount_codes: readonly {
@@ -1470,12 +1679,23 @@ export declare const update: (input?: ({
1470
1679
  readonly price: number;
1471
1680
  readonly id: string | number;
1472
1681
  readonly properties: {
1473
- readonly array: readonly {
1474
- readonly key: string;
1475
- readonly value: string | number | boolean | null;
1476
- }[];
1477
- readonly record: {
1478
- readonly [x: string]: string | number | boolean | null;
1682
+ readonly private: {
1683
+ readonly array: readonly {
1684
+ readonly key: string;
1685
+ readonly value: string | number | boolean | null;
1686
+ }[];
1687
+ readonly record: {
1688
+ readonly [x: string]: string | number | boolean | null;
1689
+ };
1690
+ };
1691
+ readonly public: {
1692
+ readonly array: readonly {
1693
+ readonly key: string;
1694
+ readonly value: string | number | boolean | null;
1695
+ }[];
1696
+ readonly record: {
1697
+ readonly [x: string]: string | number | boolean | null;
1698
+ };
1479
1699
  };
1480
1700
  };
1481
1701
  readonly quantity: number;
@@ -1605,12 +1825,23 @@ export declare const update: (input?: ({
1605
1825
  readonly token: string;
1606
1826
  readonly note: string | null;
1607
1827
  readonly attributes: {
1608
- readonly array: readonly {
1609
- readonly key: string;
1610
- readonly value: string | number | boolean | null;
1611
- }[];
1612
- readonly record: {
1613
- readonly [x: string]: string | number | boolean | null;
1828
+ readonly private: {
1829
+ readonly array: readonly {
1830
+ readonly key: string;
1831
+ readonly value: string | number | boolean | null;
1832
+ }[];
1833
+ readonly record: {
1834
+ readonly [x: string]: string | number | boolean | null;
1835
+ };
1836
+ };
1837
+ readonly public: {
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
+ };
1614
1845
  };
1615
1846
  };
1616
1847
  readonly discount_codes: readonly {
@@ -1628,12 +1859,23 @@ export declare const update: (input?: ({
1628
1859
  readonly price: number;
1629
1860
  readonly id: string | number;
1630
1861
  readonly properties: {
1631
- readonly array: readonly {
1632
- readonly key: string;
1633
- readonly value: string | number | boolean | null;
1634
- }[];
1635
- readonly record: {
1636
- readonly [x: string]: string | number | boolean | null;
1862
+ readonly private: {
1863
+ readonly array: readonly {
1864
+ readonly key: string;
1865
+ readonly value: string | number | boolean | null;
1866
+ }[];
1867
+ readonly record: {
1868
+ readonly [x: string]: string | number | boolean | null;
1869
+ };
1870
+ };
1871
+ readonly public: {
1872
+ readonly array: readonly {
1873
+ readonly key: string;
1874
+ readonly value: string | number | boolean | null;
1875
+ }[];
1876
+ readonly record: {
1877
+ readonly [x: string]: string | number | boolean | null;
1878
+ };
1637
1879
  };
1638
1880
  };
1639
1881
  readonly quantity: number;