@brytdesigns/shopify-ajax-cart-api 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/effect/index.d.ts +187 -58
- package/dist/effect/schema.js +52 -10
- package/dist/effect/schema.js.map +1 -1
- package/dist/esm/index.js +361 -313
- package/dist/esm/index.js.map +1 -1
- package/dist/main/effect/schema.js +52 -10
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +369 -120
- package/package.json +1 -1
package/dist/effect/index.d.ts
CHANGED
|
@@ -39,12 +39,33 @@ 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
|
+
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<[
|
|
56
|
+
typeof Schema.Null,
|
|
57
|
+
typeof Schema.String,
|
|
58
|
+
typeof Schema.Boolean,
|
|
59
|
+
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
|
+
]>>;
|
|
68
|
+
}>>>;
|
|
48
69
|
discount: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
|
|
49
70
|
}>, Schema.Struct<{
|
|
50
71
|
sections: Schema.optional<typeof Schema.String>;
|
|
@@ -152,14 +173,20 @@ export declare const add: (input?: ({
|
|
|
152
173
|
readonly sections_url?: string | undefined;
|
|
153
174
|
}) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
154
175
|
readonly items: readonly {
|
|
176
|
+
readonly key: string;
|
|
155
177
|
readonly title: string;
|
|
156
178
|
readonly url: string;
|
|
157
179
|
readonly price: number;
|
|
158
180
|
readonly id: string | number;
|
|
159
|
-
readonly key: string;
|
|
160
181
|
readonly properties: {
|
|
161
|
-
readonly
|
|
162
|
-
|
|
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;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
163
190
|
readonly quantity: number;
|
|
164
191
|
readonly variant_id: string | number;
|
|
165
192
|
readonly original_price: number;
|
|
@@ -202,12 +229,12 @@ export declare const add: (input?: ({
|
|
|
202
229
|
readonly line_level_discount_allocations: readonly {
|
|
203
230
|
readonly amount: number;
|
|
204
231
|
readonly discount_application: {
|
|
232
|
+
readonly value: number;
|
|
205
233
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
206
234
|
readonly target_type: "line_item" | "shipping_line";
|
|
207
235
|
readonly title: string;
|
|
208
236
|
readonly total_allocated_amount: number;
|
|
209
237
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
210
|
-
readonly value: number;
|
|
211
238
|
readonly value_type: "fixed_amount" | "percentage";
|
|
212
239
|
readonly description: string | null;
|
|
213
240
|
};
|
|
@@ -261,14 +288,20 @@ export declare const add: (input?: ({
|
|
|
261
288
|
};
|
|
262
289
|
}> | AjaxClientResponse<{
|
|
263
290
|
readonly items: readonly {
|
|
291
|
+
readonly key: string;
|
|
264
292
|
readonly title: string;
|
|
265
293
|
readonly url: string;
|
|
266
294
|
readonly price: number;
|
|
267
295
|
readonly id: string | number;
|
|
268
|
-
readonly key: string;
|
|
269
296
|
readonly properties: {
|
|
270
|
-
readonly
|
|
271
|
-
|
|
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;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
272
305
|
readonly quantity: number;
|
|
273
306
|
readonly variant_id: string | number;
|
|
274
307
|
readonly original_price: number;
|
|
@@ -311,12 +344,12 @@ export declare const add: (input?: ({
|
|
|
311
344
|
readonly line_level_discount_allocations: readonly {
|
|
312
345
|
readonly amount: number;
|
|
313
346
|
readonly discount_application: {
|
|
347
|
+
readonly value: number;
|
|
314
348
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
315
349
|
readonly target_type: "line_item" | "shipping_line";
|
|
316
350
|
readonly title: string;
|
|
317
351
|
readonly total_allocated_amount: number;
|
|
318
352
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
319
|
-
readonly value: number;
|
|
320
353
|
readonly value_type: "fixed_amount" | "percentage";
|
|
321
354
|
readonly description: string | null;
|
|
322
355
|
};
|
|
@@ -402,7 +435,13 @@ export declare const change: (input?: ({
|
|
|
402
435
|
readonly token: string;
|
|
403
436
|
readonly note: string | null;
|
|
404
437
|
readonly attributes: {
|
|
405
|
-
readonly
|
|
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;
|
|
444
|
+
};
|
|
406
445
|
};
|
|
407
446
|
readonly discount_codes: readonly {
|
|
408
447
|
readonly code: string;
|
|
@@ -413,14 +452,20 @@ export declare const change: (input?: ({
|
|
|
413
452
|
readonly total_weight: number;
|
|
414
453
|
readonly item_count: number;
|
|
415
454
|
readonly items: readonly {
|
|
455
|
+
readonly key: string;
|
|
416
456
|
readonly title: string;
|
|
417
457
|
readonly url: string;
|
|
418
458
|
readonly price: number;
|
|
419
459
|
readonly id: string | number;
|
|
420
|
-
readonly key: string;
|
|
421
460
|
readonly properties: {
|
|
422
|
-
readonly
|
|
423
|
-
|
|
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;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
424
469
|
readonly quantity: number;
|
|
425
470
|
readonly variant_id: string | number;
|
|
426
471
|
readonly original_price: number;
|
|
@@ -463,12 +508,12 @@ export declare const change: (input?: ({
|
|
|
463
508
|
readonly line_level_discount_allocations: readonly {
|
|
464
509
|
readonly amount: number;
|
|
465
510
|
readonly discount_application: {
|
|
511
|
+
readonly value: number;
|
|
466
512
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
467
513
|
readonly target_type: "line_item" | "shipping_line";
|
|
468
514
|
readonly title: string;
|
|
469
515
|
readonly total_allocated_amount: number;
|
|
470
516
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
471
|
-
readonly value: number;
|
|
472
517
|
readonly value_type: "fixed_amount" | "percentage";
|
|
473
518
|
readonly description: string | null;
|
|
474
519
|
};
|
|
@@ -519,12 +564,12 @@ export declare const change: (input?: ({
|
|
|
519
564
|
readonly currency: string;
|
|
520
565
|
readonly items_subtotal_price: number;
|
|
521
566
|
readonly cart_level_discount_applications: readonly {
|
|
567
|
+
readonly value: number;
|
|
522
568
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
523
569
|
readonly target_type: "line_item" | "shipping_line";
|
|
524
570
|
readonly title: string;
|
|
525
571
|
readonly total_allocated_amount: number;
|
|
526
572
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
527
|
-
readonly value: number;
|
|
528
573
|
readonly value_type: "fixed_amount" | "percentage";
|
|
529
574
|
readonly description: string | null;
|
|
530
575
|
}[];
|
|
@@ -580,7 +625,13 @@ export declare const change: (input?: ({
|
|
|
580
625
|
readonly token: string;
|
|
581
626
|
readonly note: string | null;
|
|
582
627
|
readonly attributes: {
|
|
583
|
-
readonly
|
|
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;
|
|
634
|
+
};
|
|
584
635
|
};
|
|
585
636
|
readonly discount_codes: readonly {
|
|
586
637
|
readonly code: string;
|
|
@@ -591,14 +642,20 @@ export declare const change: (input?: ({
|
|
|
591
642
|
readonly total_weight: number;
|
|
592
643
|
readonly item_count: number;
|
|
593
644
|
readonly items: readonly {
|
|
645
|
+
readonly key: string;
|
|
594
646
|
readonly title: string;
|
|
595
647
|
readonly url: string;
|
|
596
648
|
readonly price: number;
|
|
597
649
|
readonly id: string | number;
|
|
598
|
-
readonly key: string;
|
|
599
650
|
readonly properties: {
|
|
600
|
-
readonly
|
|
601
|
-
|
|
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;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
602
659
|
readonly quantity: number;
|
|
603
660
|
readonly variant_id: string | number;
|
|
604
661
|
readonly original_price: number;
|
|
@@ -641,12 +698,12 @@ export declare const change: (input?: ({
|
|
|
641
698
|
readonly line_level_discount_allocations: readonly {
|
|
642
699
|
readonly amount: number;
|
|
643
700
|
readonly discount_application: {
|
|
701
|
+
readonly value: number;
|
|
644
702
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
645
703
|
readonly target_type: "line_item" | "shipping_line";
|
|
646
704
|
readonly title: string;
|
|
647
705
|
readonly total_allocated_amount: number;
|
|
648
706
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
649
|
-
readonly value: number;
|
|
650
707
|
readonly value_type: "fixed_amount" | "percentage";
|
|
651
708
|
readonly description: string | null;
|
|
652
709
|
};
|
|
@@ -697,12 +754,12 @@ export declare const change: (input?: ({
|
|
|
697
754
|
readonly currency: string;
|
|
698
755
|
readonly items_subtotal_price: number;
|
|
699
756
|
readonly cart_level_discount_applications: readonly {
|
|
757
|
+
readonly value: number;
|
|
700
758
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
701
759
|
readonly target_type: "line_item" | "shipping_line";
|
|
702
760
|
readonly title: string;
|
|
703
761
|
readonly total_allocated_amount: number;
|
|
704
762
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
705
|
-
readonly value: number;
|
|
706
763
|
readonly value_type: "fixed_amount" | "percentage";
|
|
707
764
|
readonly description: string | null;
|
|
708
765
|
}[];
|
|
@@ -763,7 +820,13 @@ export declare const clear: (input?: {
|
|
|
763
820
|
readonly token: string;
|
|
764
821
|
readonly note: string | null;
|
|
765
822
|
readonly attributes: {
|
|
766
|
-
readonly
|
|
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;
|
|
829
|
+
};
|
|
767
830
|
};
|
|
768
831
|
readonly discount_codes: readonly {
|
|
769
832
|
readonly code: string;
|
|
@@ -774,14 +837,20 @@ export declare const clear: (input?: {
|
|
|
774
837
|
readonly total_weight: number;
|
|
775
838
|
readonly item_count: number;
|
|
776
839
|
readonly items: readonly {
|
|
840
|
+
readonly key: string;
|
|
777
841
|
readonly title: string;
|
|
778
842
|
readonly url: string;
|
|
779
843
|
readonly price: number;
|
|
780
844
|
readonly id: string | number;
|
|
781
|
-
readonly key: string;
|
|
782
845
|
readonly properties: {
|
|
783
|
-
readonly
|
|
784
|
-
|
|
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;
|
|
852
|
+
};
|
|
853
|
+
};
|
|
785
854
|
readonly quantity: number;
|
|
786
855
|
readonly variant_id: string | number;
|
|
787
856
|
readonly original_price: number;
|
|
@@ -824,12 +893,12 @@ export declare const clear: (input?: {
|
|
|
824
893
|
readonly line_level_discount_allocations: readonly {
|
|
825
894
|
readonly amount: number;
|
|
826
895
|
readonly discount_application: {
|
|
896
|
+
readonly value: number;
|
|
827
897
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
828
898
|
readonly target_type: "line_item" | "shipping_line";
|
|
829
899
|
readonly title: string;
|
|
830
900
|
readonly total_allocated_amount: number;
|
|
831
901
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
832
|
-
readonly value: number;
|
|
833
902
|
readonly value_type: "fixed_amount" | "percentage";
|
|
834
903
|
readonly description: string | null;
|
|
835
904
|
};
|
|
@@ -880,12 +949,12 @@ export declare const clear: (input?: {
|
|
|
880
949
|
readonly currency: string;
|
|
881
950
|
readonly items_subtotal_price: number;
|
|
882
951
|
readonly cart_level_discount_applications: readonly {
|
|
952
|
+
readonly value: number;
|
|
883
953
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
884
954
|
readonly target_type: "line_item" | "shipping_line";
|
|
885
955
|
readonly title: string;
|
|
886
956
|
readonly total_allocated_amount: number;
|
|
887
957
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
888
|
-
readonly value: number;
|
|
889
958
|
readonly value_type: "fixed_amount" | "percentage";
|
|
890
959
|
readonly description: string | null;
|
|
891
960
|
}[];
|
|
@@ -903,7 +972,13 @@ export declare const clear: (input?: {
|
|
|
903
972
|
readonly token: string;
|
|
904
973
|
readonly note: string | null;
|
|
905
974
|
readonly attributes: {
|
|
906
|
-
readonly
|
|
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;
|
|
981
|
+
};
|
|
907
982
|
};
|
|
908
983
|
readonly discount_codes: readonly {
|
|
909
984
|
readonly code: string;
|
|
@@ -914,14 +989,20 @@ export declare const clear: (input?: {
|
|
|
914
989
|
readonly total_weight: number;
|
|
915
990
|
readonly item_count: number;
|
|
916
991
|
readonly items: readonly {
|
|
992
|
+
readonly key: string;
|
|
917
993
|
readonly title: string;
|
|
918
994
|
readonly url: string;
|
|
919
995
|
readonly price: number;
|
|
920
996
|
readonly id: string | number;
|
|
921
|
-
readonly key: string;
|
|
922
997
|
readonly properties: {
|
|
923
|
-
readonly
|
|
924
|
-
|
|
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;
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
925
1006
|
readonly quantity: number;
|
|
926
1007
|
readonly variant_id: string | number;
|
|
927
1008
|
readonly original_price: number;
|
|
@@ -964,12 +1045,12 @@ export declare const clear: (input?: {
|
|
|
964
1045
|
readonly line_level_discount_allocations: readonly {
|
|
965
1046
|
readonly amount: number;
|
|
966
1047
|
readonly discount_application: {
|
|
1048
|
+
readonly value: number;
|
|
967
1049
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
968
1050
|
readonly target_type: "line_item" | "shipping_line";
|
|
969
1051
|
readonly title: string;
|
|
970
1052
|
readonly total_allocated_amount: number;
|
|
971
1053
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
972
|
-
readonly value: number;
|
|
973
1054
|
readonly value_type: "fixed_amount" | "percentage";
|
|
974
1055
|
readonly description: string | null;
|
|
975
1056
|
};
|
|
@@ -1020,12 +1101,12 @@ export declare const clear: (input?: {
|
|
|
1020
1101
|
readonly currency: string;
|
|
1021
1102
|
readonly items_subtotal_price: number;
|
|
1022
1103
|
readonly cart_level_discount_applications: readonly {
|
|
1104
|
+
readonly value: number;
|
|
1023
1105
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1024
1106
|
readonly target_type: "line_item" | "shipping_line";
|
|
1025
1107
|
readonly title: string;
|
|
1026
1108
|
readonly total_allocated_amount: number;
|
|
1027
1109
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1028
|
-
readonly value: number;
|
|
1029
1110
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1030
1111
|
readonly description: string | null;
|
|
1031
1112
|
}[];
|
|
@@ -1048,7 +1129,13 @@ export declare const get: (input?: {
|
|
|
1048
1129
|
readonly token: string;
|
|
1049
1130
|
readonly note: string | null;
|
|
1050
1131
|
readonly attributes: {
|
|
1051
|
-
readonly
|
|
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;
|
|
1138
|
+
};
|
|
1052
1139
|
};
|
|
1053
1140
|
readonly discount_codes: readonly {
|
|
1054
1141
|
readonly code: string;
|
|
@@ -1059,14 +1146,20 @@ export declare const get: (input?: {
|
|
|
1059
1146
|
readonly total_weight: number;
|
|
1060
1147
|
readonly item_count: number;
|
|
1061
1148
|
readonly items: readonly {
|
|
1149
|
+
readonly key: string;
|
|
1062
1150
|
readonly title: string;
|
|
1063
1151
|
readonly url: string;
|
|
1064
1152
|
readonly price: number;
|
|
1065
1153
|
readonly id: string | number;
|
|
1066
|
-
readonly key: string;
|
|
1067
1154
|
readonly properties: {
|
|
1068
|
-
readonly
|
|
1069
|
-
|
|
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;
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1070
1163
|
readonly quantity: number;
|
|
1071
1164
|
readonly variant_id: string | number;
|
|
1072
1165
|
readonly original_price: number;
|
|
@@ -1109,12 +1202,12 @@ export declare const get: (input?: {
|
|
|
1109
1202
|
readonly line_level_discount_allocations: readonly {
|
|
1110
1203
|
readonly amount: number;
|
|
1111
1204
|
readonly discount_application: {
|
|
1205
|
+
readonly value: number;
|
|
1112
1206
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1113
1207
|
readonly target_type: "line_item" | "shipping_line";
|
|
1114
1208
|
readonly title: string;
|
|
1115
1209
|
readonly total_allocated_amount: number;
|
|
1116
1210
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1117
|
-
readonly value: number;
|
|
1118
1211
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1119
1212
|
readonly description: string | null;
|
|
1120
1213
|
};
|
|
@@ -1165,12 +1258,12 @@ export declare const get: (input?: {
|
|
|
1165
1258
|
readonly currency: string;
|
|
1166
1259
|
readonly items_subtotal_price: number;
|
|
1167
1260
|
readonly cart_level_discount_applications: readonly {
|
|
1261
|
+
readonly value: number;
|
|
1168
1262
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1169
1263
|
readonly target_type: "line_item" | "shipping_line";
|
|
1170
1264
|
readonly title: string;
|
|
1171
1265
|
readonly total_allocated_amount: number;
|
|
1172
1266
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1173
|
-
readonly value: number;
|
|
1174
1267
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1175
1268
|
readonly description: string | null;
|
|
1176
1269
|
}[];
|
|
@@ -1188,7 +1281,13 @@ export declare const get: (input?: {
|
|
|
1188
1281
|
readonly token: string;
|
|
1189
1282
|
readonly note: string | null;
|
|
1190
1283
|
readonly attributes: {
|
|
1191
|
-
readonly
|
|
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;
|
|
1290
|
+
};
|
|
1192
1291
|
};
|
|
1193
1292
|
readonly discount_codes: readonly {
|
|
1194
1293
|
readonly code: string;
|
|
@@ -1199,14 +1298,20 @@ export declare const get: (input?: {
|
|
|
1199
1298
|
readonly total_weight: number;
|
|
1200
1299
|
readonly item_count: number;
|
|
1201
1300
|
readonly items: readonly {
|
|
1301
|
+
readonly key: string;
|
|
1202
1302
|
readonly title: string;
|
|
1203
1303
|
readonly url: string;
|
|
1204
1304
|
readonly price: number;
|
|
1205
1305
|
readonly id: string | number;
|
|
1206
|
-
readonly key: string;
|
|
1207
1306
|
readonly properties: {
|
|
1208
|
-
readonly
|
|
1209
|
-
|
|
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;
|
|
1313
|
+
};
|
|
1314
|
+
};
|
|
1210
1315
|
readonly quantity: number;
|
|
1211
1316
|
readonly variant_id: string | number;
|
|
1212
1317
|
readonly original_price: number;
|
|
@@ -1249,12 +1354,12 @@ export declare const get: (input?: {
|
|
|
1249
1354
|
readonly line_level_discount_allocations: readonly {
|
|
1250
1355
|
readonly amount: number;
|
|
1251
1356
|
readonly discount_application: {
|
|
1357
|
+
readonly value: number;
|
|
1252
1358
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1253
1359
|
readonly target_type: "line_item" | "shipping_line";
|
|
1254
1360
|
readonly title: string;
|
|
1255
1361
|
readonly total_allocated_amount: number;
|
|
1256
1362
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1257
|
-
readonly value: number;
|
|
1258
1363
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1259
1364
|
readonly description: string | null;
|
|
1260
1365
|
};
|
|
@@ -1305,12 +1410,12 @@ export declare const get: (input?: {
|
|
|
1305
1410
|
readonly currency: string;
|
|
1306
1411
|
readonly items_subtotal_price: number;
|
|
1307
1412
|
readonly cart_level_discount_applications: readonly {
|
|
1413
|
+
readonly value: number;
|
|
1308
1414
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1309
1415
|
readonly target_type: "line_item" | "shipping_line";
|
|
1310
1416
|
readonly title: string;
|
|
1311
1417
|
readonly total_allocated_amount: number;
|
|
1312
1418
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1313
|
-
readonly value: number;
|
|
1314
1419
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1315
1420
|
readonly description: string | null;
|
|
1316
1421
|
}[];
|
|
@@ -1342,7 +1447,13 @@ export declare const update: (input?: ({
|
|
|
1342
1447
|
readonly token: string;
|
|
1343
1448
|
readonly note: string | null;
|
|
1344
1449
|
readonly attributes: {
|
|
1345
|
-
readonly
|
|
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;
|
|
1456
|
+
};
|
|
1346
1457
|
};
|
|
1347
1458
|
readonly discount_codes: readonly {
|
|
1348
1459
|
readonly code: string;
|
|
@@ -1353,14 +1464,20 @@ export declare const update: (input?: ({
|
|
|
1353
1464
|
readonly total_weight: number;
|
|
1354
1465
|
readonly item_count: number;
|
|
1355
1466
|
readonly items: readonly {
|
|
1467
|
+
readonly key: string;
|
|
1356
1468
|
readonly title: string;
|
|
1357
1469
|
readonly url: string;
|
|
1358
1470
|
readonly price: number;
|
|
1359
1471
|
readonly id: string | number;
|
|
1360
|
-
readonly key: string;
|
|
1361
1472
|
readonly properties: {
|
|
1362
|
-
readonly
|
|
1363
|
-
|
|
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;
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1364
1481
|
readonly quantity: number;
|
|
1365
1482
|
readonly variant_id: string | number;
|
|
1366
1483
|
readonly original_price: number;
|
|
@@ -1403,12 +1520,12 @@ export declare const update: (input?: ({
|
|
|
1403
1520
|
readonly line_level_discount_allocations: readonly {
|
|
1404
1521
|
readonly amount: number;
|
|
1405
1522
|
readonly discount_application: {
|
|
1523
|
+
readonly value: number;
|
|
1406
1524
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1407
1525
|
readonly target_type: "line_item" | "shipping_line";
|
|
1408
1526
|
readonly title: string;
|
|
1409
1527
|
readonly total_allocated_amount: number;
|
|
1410
1528
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1411
|
-
readonly value: number;
|
|
1412
1529
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1413
1530
|
readonly description: string | null;
|
|
1414
1531
|
};
|
|
@@ -1459,12 +1576,12 @@ export declare const update: (input?: ({
|
|
|
1459
1576
|
readonly currency: string;
|
|
1460
1577
|
readonly items_subtotal_price: number;
|
|
1461
1578
|
readonly cart_level_discount_applications: readonly {
|
|
1579
|
+
readonly value: number;
|
|
1462
1580
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1463
1581
|
readonly target_type: "line_item" | "shipping_line";
|
|
1464
1582
|
readonly title: string;
|
|
1465
1583
|
readonly total_allocated_amount: number;
|
|
1466
1584
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1467
|
-
readonly value: number;
|
|
1468
1585
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1469
1586
|
readonly description: string | null;
|
|
1470
1587
|
}[];
|
|
@@ -1488,7 +1605,13 @@ export declare const update: (input?: ({
|
|
|
1488
1605
|
readonly token: string;
|
|
1489
1606
|
readonly note: string | null;
|
|
1490
1607
|
readonly attributes: {
|
|
1491
|
-
readonly
|
|
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;
|
|
1614
|
+
};
|
|
1492
1615
|
};
|
|
1493
1616
|
readonly discount_codes: readonly {
|
|
1494
1617
|
readonly code: string;
|
|
@@ -1499,14 +1622,20 @@ export declare const update: (input?: ({
|
|
|
1499
1622
|
readonly total_weight: number;
|
|
1500
1623
|
readonly item_count: number;
|
|
1501
1624
|
readonly items: readonly {
|
|
1625
|
+
readonly key: string;
|
|
1502
1626
|
readonly title: string;
|
|
1503
1627
|
readonly url: string;
|
|
1504
1628
|
readonly price: number;
|
|
1505
1629
|
readonly id: string | number;
|
|
1506
|
-
readonly key: string;
|
|
1507
1630
|
readonly properties: {
|
|
1508
|
-
readonly
|
|
1509
|
-
|
|
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;
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1510
1639
|
readonly quantity: number;
|
|
1511
1640
|
readonly variant_id: string | number;
|
|
1512
1641
|
readonly original_price: number;
|
|
@@ -1549,12 +1678,12 @@ export declare const update: (input?: ({
|
|
|
1549
1678
|
readonly line_level_discount_allocations: readonly {
|
|
1550
1679
|
readonly amount: number;
|
|
1551
1680
|
readonly discount_application: {
|
|
1681
|
+
readonly value: number;
|
|
1552
1682
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1553
1683
|
readonly target_type: "line_item" | "shipping_line";
|
|
1554
1684
|
readonly title: string;
|
|
1555
1685
|
readonly total_allocated_amount: number;
|
|
1556
1686
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1557
|
-
readonly value: number;
|
|
1558
1687
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1559
1688
|
readonly description: string | null;
|
|
1560
1689
|
};
|
|
@@ -1605,12 +1734,12 @@ export declare const update: (input?: ({
|
|
|
1605
1734
|
readonly currency: string;
|
|
1606
1735
|
readonly items_subtotal_price: number;
|
|
1607
1736
|
readonly cart_level_discount_applications: readonly {
|
|
1737
|
+
readonly value: number;
|
|
1608
1738
|
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1609
1739
|
readonly target_type: "line_item" | "shipping_line";
|
|
1610
1740
|
readonly title: string;
|
|
1611
1741
|
readonly total_allocated_amount: number;
|
|
1612
1742
|
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1613
|
-
readonly value: number;
|
|
1614
1743
|
readonly value_type: "fixed_amount" | "percentage";
|
|
1615
1744
|
readonly description: string | null;
|
|
1616
1745
|
}[];
|