@brytdesigns/shopify-ajax-cart-api 1.0.10 → 1.0.11

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,77 +39,12 @@ 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.transform<Schema.Record$<typeof Schema.String, Schema.Union<[
42
+ attributes: Schema.optional<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
- ]>>, 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.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
- }>;
112
- }>>>;
47
+ ]>>>;
113
48
  discount: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
114
49
  }>, Schema.Struct<{
115
50
  sections: Schema.optional<typeof Schema.String>;
@@ -223,24 +158,7 @@ export declare const add: (input?: ({
223
158
  readonly price: number;
224
159
  readonly id: string | number;
225
160
  readonly properties: {
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
- };
243
- };
161
+ readonly [x: string]: string | number | boolean | null;
244
162
  };
245
163
  readonly quantity: number;
246
164
  readonly variant_id: string | number;
@@ -336,6 +254,24 @@ export declare const add: (input?: ({
336
254
  }[];
337
255
  };
338
256
  } | null;
257
+ readonly properties_array: readonly {
258
+ readonly key: string;
259
+ readonly value: string | number | boolean | null;
260
+ }[];
261
+ readonly private_properties: {
262
+ readonly [x: string]: string | number | boolean | null;
263
+ };
264
+ readonly private_properties_array: readonly {
265
+ readonly key: string;
266
+ readonly value: string | number | boolean | null;
267
+ }[];
268
+ readonly public_properties: {
269
+ readonly [x: string]: string | number | boolean | null;
270
+ };
271
+ readonly public_properties_array: readonly {
272
+ readonly key: string;
273
+ readonly value: string | number | boolean | null;
274
+ }[];
339
275
  }[];
340
276
  } & {
341
277
  readonly sections: {
@@ -349,24 +285,7 @@ export declare const add: (input?: ({
349
285
  readonly price: number;
350
286
  readonly id: string | number;
351
287
  readonly properties: {
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
- };
369
- };
288
+ readonly [x: string]: string | number | boolean | null;
370
289
  };
371
290
  readonly quantity: number;
372
291
  readonly variant_id: string | number;
@@ -462,6 +381,24 @@ export declare const add: (input?: ({
462
381
  }[];
463
382
  };
464
383
  } | null;
384
+ readonly properties_array: readonly {
385
+ readonly key: string;
386
+ readonly value: string | number | boolean | null;
387
+ }[];
388
+ readonly private_properties: {
389
+ readonly [x: string]: string | number | boolean | null;
390
+ };
391
+ readonly private_properties_array: readonly {
392
+ readonly key: string;
393
+ readonly value: string | number | boolean | null;
394
+ }[];
395
+ readonly public_properties: {
396
+ readonly [x: string]: string | number | boolean | null;
397
+ };
398
+ readonly public_properties_array: readonly {
399
+ readonly key: string;
400
+ readonly value: string | number | boolean | null;
401
+ }[];
465
402
  }[];
466
403
  } & {
467
404
  readonly sections: null;
@@ -501,24 +438,7 @@ export declare const change: (input?: ({
501
438
  readonly token: string;
502
439
  readonly note: string | null;
503
440
  readonly attributes: {
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
- };
521
- };
441
+ readonly [x: string]: string | number | boolean | null;
522
442
  };
523
443
  readonly discount_codes: readonly {
524
444
  readonly code: string;
@@ -535,24 +455,7 @@ export declare const change: (input?: ({
535
455
  readonly price: number;
536
456
  readonly id: string | number;
537
457
  readonly properties: {
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
- };
555
- };
458
+ readonly [x: string]: string | number | boolean | null;
556
459
  };
557
460
  readonly quantity: number;
558
461
  readonly variant_id: string | number;
@@ -648,6 +551,24 @@ export declare const change: (input?: ({
648
551
  }[];
649
552
  };
650
553
  } | null;
554
+ readonly properties_array: readonly {
555
+ readonly key: string;
556
+ readonly value: string | number | boolean | null;
557
+ }[];
558
+ readonly private_properties: {
559
+ readonly [x: string]: string | number | boolean | null;
560
+ };
561
+ readonly private_properties_array: readonly {
562
+ readonly key: string;
563
+ readonly value: string | number | boolean | null;
564
+ }[];
565
+ readonly public_properties: {
566
+ readonly [x: string]: string | number | boolean | null;
567
+ };
568
+ readonly public_properties_array: readonly {
569
+ readonly key: string;
570
+ readonly value: string | number | boolean | null;
571
+ }[];
651
572
  }[];
652
573
  readonly currency: string;
653
574
  readonly items_subtotal_price: number;
@@ -661,49 +582,7 @@ export declare const change: (input?: ({
661
582
  readonly value_type: "fixed_amount" | "percentage";
662
583
  readonly description: string | null;
663
584
  }[];
664
- readonly items_added: readonly {
665
- readonly title: string;
666
- readonly url: string;
667
- readonly price: string;
668
- readonly id: string;
669
- readonly quantity: number;
670
- readonly variant_id: number;
671
- readonly sku: string;
672
- readonly vendor: string;
673
- readonly product_id: number;
674
- readonly image: string;
675
- readonly product_type: string;
676
- readonly product_title: string;
677
- readonly variant_title: string;
678
- readonly presentment_price: number;
679
- readonly untranslated_product_title: string;
680
- readonly untranslated_variant_title: string;
681
- readonly view_key: string;
682
- }[];
683
- readonly items_removed: readonly {
684
- readonly title: string;
685
- readonly url: string;
686
- readonly price: string;
687
- readonly id: string;
688
- readonly quantity: number;
689
- readonly variant_id: number;
690
- readonly sku: string;
691
- readonly vendor: string;
692
- readonly product_id: number;
693
- readonly image: string;
694
- readonly product_type: string;
695
- readonly product_title: string;
696
- readonly variant_title: string;
697
- readonly presentment_price: number;
698
- readonly untranslated_product_title: string;
699
- readonly untranslated_variant_title: string;
700
- readonly view_key: string;
701
- }[];
702
585
  } & {
703
- readonly sections: {
704
- readonly [x: string]: string | null;
705
- };
706
- }> | AjaxClientResponse<{
707
586
  readonly total_discount: number;
708
587
  readonly discounts: readonly {
709
588
  readonly title: string;
@@ -713,24 +592,7 @@ export declare const change: (input?: ({
713
592
  readonly token: string;
714
593
  readonly note: string | null;
715
594
  readonly attributes: {
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
- };
733
- };
595
+ readonly [x: string]: string | number | boolean | null;
734
596
  };
735
597
  readonly discount_codes: readonly {
736
598
  readonly code: string;
@@ -747,24 +609,7 @@ export declare const change: (input?: ({
747
609
  readonly price: number;
748
610
  readonly id: string | number;
749
611
  readonly properties: {
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
- };
767
- };
612
+ readonly [x: string]: string | number | boolean | null;
768
613
  };
769
614
  readonly quantity: number;
770
615
  readonly variant_id: string | number;
@@ -860,6 +705,24 @@ export declare const change: (input?: ({
860
705
  }[];
861
706
  };
862
707
  } | null;
708
+ readonly properties_array: readonly {
709
+ readonly key: string;
710
+ readonly value: string | number | boolean | null;
711
+ }[];
712
+ readonly private_properties: {
713
+ readonly [x: string]: string | number | boolean | null;
714
+ };
715
+ readonly private_properties_array: readonly {
716
+ readonly key: string;
717
+ readonly value: string | number | boolean | null;
718
+ }[];
719
+ readonly public_properties: {
720
+ readonly [x: string]: string | number | boolean | null;
721
+ };
722
+ readonly public_properties_array: readonly {
723
+ readonly key: string;
724
+ readonly value: string | number | boolean | null;
725
+ }[];
863
726
  }[];
864
727
  readonly currency: string;
865
728
  readonly items_subtotal_price: number;
@@ -873,6 +736,25 @@ export declare const change: (input?: ({
873
736
  readonly value_type: "fixed_amount" | "percentage";
874
737
  readonly description: string | null;
875
738
  }[];
739
+ readonly attributes_array: readonly {
740
+ readonly key: string;
741
+ readonly value: string | number | boolean | null;
742
+ }[];
743
+ readonly private_attributes: {
744
+ readonly [x: string]: string | number | boolean | null;
745
+ };
746
+ readonly private_attributes_array: readonly {
747
+ readonly key: string;
748
+ readonly value: string | number | boolean | null;
749
+ }[];
750
+ readonly public_attributes: {
751
+ readonly [x: string]: string | number | boolean | null;
752
+ };
753
+ readonly public_attributes_array: readonly {
754
+ readonly key: string;
755
+ readonly value: string | number | boolean | null;
756
+ }[];
757
+ } & {
876
758
  readonly items_added: readonly {
877
759
  readonly title: string;
878
760
  readonly url: string;
@@ -912,15 +794,10 @@ export declare const change: (input?: ({
912
794
  readonly view_key: string;
913
795
  }[];
914
796
  } & {
915
- readonly sections: null;
916
- }>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
917
- export declare namespace clear {
918
- type Input = ClearInput;
919
- }
920
- export declare const clear: (input?: {
921
- readonly sections?: string | undefined;
922
- readonly sections_url?: string | undefined;
923
- } | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
797
+ readonly sections: {
798
+ readonly [x: string]: string | null;
799
+ };
800
+ }> | AjaxClientResponse<{
924
801
  readonly total_discount: number;
925
802
  readonly discounts: readonly {
926
803
  readonly title: string;
@@ -930,24 +807,7 @@ export declare const clear: (input?: {
930
807
  readonly token: string;
931
808
  readonly note: string | null;
932
809
  readonly attributes: {
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
- };
950
- };
810
+ readonly [x: string]: string | number | boolean | null;
951
811
  };
952
812
  readonly discount_codes: readonly {
953
813
  readonly code: string;
@@ -964,24 +824,7 @@ export declare const clear: (input?: {
964
824
  readonly price: number;
965
825
  readonly id: string | number;
966
826
  readonly properties: {
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
- };
984
- };
827
+ readonly [x: string]: string | number | boolean | null;
985
828
  };
986
829
  readonly quantity: number;
987
830
  readonly variant_id: string | number;
@@ -1077,6 +920,24 @@ export declare const clear: (input?: {
1077
920
  }[];
1078
921
  };
1079
922
  } | null;
923
+ readonly properties_array: readonly {
924
+ readonly key: string;
925
+ readonly value: string | number | boolean | null;
926
+ }[];
927
+ readonly private_properties: {
928
+ readonly [x: string]: string | number | boolean | null;
929
+ };
930
+ readonly private_properties_array: readonly {
931
+ readonly key: string;
932
+ readonly value: string | number | boolean | null;
933
+ }[];
934
+ readonly public_properties: {
935
+ readonly [x: string]: string | number | boolean | null;
936
+ };
937
+ readonly public_properties_array: readonly {
938
+ readonly key: string;
939
+ readonly value: string | number | boolean | null;
940
+ }[];
1080
941
  }[];
1081
942
  readonly currency: string;
1082
943
  readonly items_subtotal_price: number;
@@ -1091,10 +952,6 @@ export declare const clear: (input?: {
1091
952
  readonly description: string | null;
1092
953
  }[];
1093
954
  } & {
1094
- readonly sections: {
1095
- readonly [x: string]: string | null;
1096
- };
1097
- }> | AjaxClientResponse<{
1098
955
  readonly total_discount: number;
1099
956
  readonly discounts: readonly {
1100
957
  readonly title: string;
@@ -1104,24 +961,7 @@ export declare const clear: (input?: {
1104
961
  readonly token: string;
1105
962
  readonly note: string | null;
1106
963
  readonly attributes: {
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
- };
1124
- };
964
+ readonly [x: string]: string | number | boolean | null;
1125
965
  };
1126
966
  readonly discount_codes: readonly {
1127
967
  readonly code: string;
@@ -1138,24 +978,7 @@ export declare const clear: (input?: {
1138
978
  readonly price: number;
1139
979
  readonly id: string | number;
1140
980
  readonly properties: {
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
- };
1158
- };
981
+ readonly [x: string]: string | number | boolean | null;
1159
982
  };
1160
983
  readonly quantity: number;
1161
984
  readonly variant_id: string | number;
@@ -1251,6 +1074,24 @@ export declare const clear: (input?: {
1251
1074
  }[];
1252
1075
  };
1253
1076
  } | null;
1077
+ readonly properties_array: readonly {
1078
+ readonly key: string;
1079
+ readonly value: string | number | boolean | null;
1080
+ }[];
1081
+ readonly private_properties: {
1082
+ readonly [x: string]: string | number | boolean | null;
1083
+ };
1084
+ readonly private_properties_array: readonly {
1085
+ readonly key: string;
1086
+ readonly value: string | number | boolean | null;
1087
+ }[];
1088
+ readonly public_properties: {
1089
+ readonly [x: string]: string | number | boolean | null;
1090
+ };
1091
+ readonly public_properties_array: readonly {
1092
+ readonly key: string;
1093
+ readonly value: string | number | boolean | null;
1094
+ }[];
1254
1095
  }[];
1255
1096
  readonly currency: string;
1256
1097
  readonly items_subtotal_price: number;
@@ -1264,13 +1105,70 @@ export declare const clear: (input?: {
1264
1105
  readonly value_type: "fixed_amount" | "percentage";
1265
1106
  readonly description: string | null;
1266
1107
  }[];
1108
+ readonly attributes_array: readonly {
1109
+ readonly key: string;
1110
+ readonly value: string | number | boolean | null;
1111
+ }[];
1112
+ readonly private_attributes: {
1113
+ readonly [x: string]: string | number | boolean | null;
1114
+ };
1115
+ readonly private_attributes_array: readonly {
1116
+ readonly key: string;
1117
+ readonly value: string | number | boolean | null;
1118
+ }[];
1119
+ readonly public_attributes: {
1120
+ readonly [x: string]: string | number | boolean | null;
1121
+ };
1122
+ readonly public_attributes_array: readonly {
1123
+ readonly key: string;
1124
+ readonly value: string | number | boolean | null;
1125
+ }[];
1126
+ } & {
1127
+ readonly items_added: readonly {
1128
+ readonly title: string;
1129
+ readonly url: string;
1130
+ readonly price: string;
1131
+ readonly id: string;
1132
+ readonly quantity: number;
1133
+ readonly variant_id: number;
1134
+ readonly sku: string;
1135
+ readonly vendor: string;
1136
+ readonly product_id: number;
1137
+ readonly image: string;
1138
+ readonly product_type: string;
1139
+ readonly product_title: string;
1140
+ readonly variant_title: string;
1141
+ readonly presentment_price: number;
1142
+ readonly untranslated_product_title: string;
1143
+ readonly untranslated_variant_title: string;
1144
+ readonly view_key: string;
1145
+ }[];
1146
+ readonly items_removed: readonly {
1147
+ readonly title: string;
1148
+ readonly url: string;
1149
+ readonly price: string;
1150
+ readonly id: string;
1151
+ readonly quantity: number;
1152
+ readonly variant_id: number;
1153
+ readonly sku: string;
1154
+ readonly vendor: string;
1155
+ readonly product_id: number;
1156
+ readonly image: string;
1157
+ readonly product_type: string;
1158
+ readonly product_title: string;
1159
+ readonly variant_title: string;
1160
+ readonly presentment_price: number;
1161
+ readonly untranslated_product_title: string;
1162
+ readonly untranslated_variant_title: string;
1163
+ readonly view_key: string;
1164
+ }[];
1267
1165
  } & {
1268
1166
  readonly sections: null;
1269
1167
  }>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
1270
- export declare namespace get {
1271
- type Input = GetInput;
1168
+ export declare namespace clear {
1169
+ type Input = ClearInput;
1272
1170
  }
1273
- export declare const get: (input?: {
1171
+ export declare const clear: (input?: {
1274
1172
  readonly sections?: string | undefined;
1275
1173
  readonly sections_url?: string | undefined;
1276
1174
  } | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
@@ -1283,24 +1181,7 @@ export declare const get: (input?: {
1283
1181
  readonly token: string;
1284
1182
  readonly note: string | null;
1285
1183
  readonly attributes: {
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
- };
1303
- };
1184
+ readonly [x: string]: string | number | boolean | null;
1304
1185
  };
1305
1186
  readonly discount_codes: readonly {
1306
1187
  readonly code: string;
@@ -1317,24 +1198,7 @@ export declare const get: (input?: {
1317
1198
  readonly price: number;
1318
1199
  readonly id: string | number;
1319
1200
  readonly properties: {
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
- };
1337
- };
1201
+ readonly [x: string]: string | number | boolean | null;
1338
1202
  };
1339
1203
  readonly quantity: number;
1340
1204
  readonly variant_id: string | number;
@@ -1430,6 +1294,24 @@ export declare const get: (input?: {
1430
1294
  }[];
1431
1295
  };
1432
1296
  } | null;
1297
+ readonly properties_array: readonly {
1298
+ readonly key: string;
1299
+ readonly value: string | number | boolean | null;
1300
+ }[];
1301
+ readonly private_properties: {
1302
+ readonly [x: string]: string | number | boolean | null;
1303
+ };
1304
+ readonly private_properties_array: readonly {
1305
+ readonly key: string;
1306
+ readonly value: string | number | boolean | null;
1307
+ }[];
1308
+ readonly public_properties: {
1309
+ readonly [x: string]: string | number | boolean | null;
1310
+ };
1311
+ readonly public_properties_array: readonly {
1312
+ readonly key: string;
1313
+ readonly value: string | number | boolean | null;
1314
+ }[];
1433
1315
  }[];
1434
1316
  readonly currency: string;
1435
1317
  readonly items_subtotal_price: number;
@@ -1444,10 +1326,6 @@ export declare const get: (input?: {
1444
1326
  readonly description: string | null;
1445
1327
  }[];
1446
1328
  } & {
1447
- readonly sections: {
1448
- readonly [x: string]: string | null;
1449
- };
1450
- }> | AjaxClientResponse<{
1451
1329
  readonly total_discount: number;
1452
1330
  readonly discounts: readonly {
1453
1331
  readonly title: string;
@@ -1457,24 +1335,1192 @@ export declare const get: (input?: {
1457
1335
  readonly token: string;
1458
1336
  readonly note: string | null;
1459
1337
  readonly attributes: {
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
- };
1477
- };
1338
+ readonly [x: string]: string | number | boolean | null;
1339
+ };
1340
+ readonly discount_codes: readonly {
1341
+ readonly code: string;
1342
+ readonly applicable: boolean;
1343
+ }[];
1344
+ readonly original_total_price: number;
1345
+ readonly total_price: number;
1346
+ readonly total_weight: number;
1347
+ readonly item_count: number;
1348
+ readonly items: readonly {
1349
+ readonly key: string;
1350
+ readonly title: string;
1351
+ readonly url: string;
1352
+ readonly price: number;
1353
+ readonly id: string | number;
1354
+ readonly properties: {
1355
+ readonly [x: string]: string | number | boolean | null;
1356
+ };
1357
+ readonly quantity: number;
1358
+ readonly variant_id: string | number;
1359
+ readonly original_price: number;
1360
+ readonly discounted_price: number;
1361
+ readonly line_price: number;
1362
+ readonly original_line_price: number;
1363
+ readonly total_discount: number;
1364
+ readonly discounts: readonly {
1365
+ readonly title: string;
1366
+ readonly amount: number;
1367
+ }[];
1368
+ readonly sku: string | null;
1369
+ readonly grams: number;
1370
+ readonly vendor: string;
1371
+ readonly taxable: boolean;
1372
+ readonly product_id: string | number;
1373
+ readonly product_has_only_default_variant: boolean;
1374
+ readonly gift_card: boolean;
1375
+ readonly final_line_price: number;
1376
+ readonly final_price: number;
1377
+ readonly featured_image?: {
1378
+ readonly aspect_ratio: number;
1379
+ readonly alt: string;
1380
+ readonly height: number;
1381
+ readonly url: string;
1382
+ readonly width: number;
1383
+ } | undefined;
1384
+ readonly image: string;
1385
+ readonly handle: string;
1386
+ readonly requires_shipping: boolean;
1387
+ readonly product_type: string;
1388
+ readonly product_title: string;
1389
+ readonly product_description: string;
1390
+ readonly variant_title: string | null;
1391
+ readonly variant_options: readonly string[];
1392
+ readonly options_with_values: readonly {
1393
+ readonly value: string;
1394
+ readonly name: string;
1395
+ }[];
1396
+ readonly line_level_discount_allocations: readonly {
1397
+ readonly amount: number;
1398
+ readonly discount_application: {
1399
+ readonly value: number;
1400
+ readonly target_selection: "all" | "entitled" | "explicit";
1401
+ readonly target_type: "line_item" | "shipping_line";
1402
+ readonly title: string;
1403
+ readonly total_allocated_amount: number;
1404
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1405
+ readonly value_type: "fixed_amount" | "percentage";
1406
+ readonly description: string | null;
1407
+ };
1408
+ }[];
1409
+ readonly line_level_total_discount: number;
1410
+ readonly quantity_rule?: {
1411
+ readonly min: number;
1412
+ readonly max: number | null;
1413
+ readonly increment: number;
1414
+ } | undefined;
1415
+ readonly has_components: boolean;
1416
+ readonly unit_price?: number | undefined;
1417
+ readonly unit_price_measurement?: {
1418
+ readonly measured_type: "volume" | "weight" | "dimension";
1419
+ readonly quantity_unit: string;
1420
+ readonly quantity_value: number;
1421
+ readonly reference_unit: string;
1422
+ readonly reference_value: number;
1423
+ } | undefined;
1424
+ readonly selling_plan_allocation: {
1425
+ readonly price: number;
1426
+ readonly price_adjustments: readonly {
1427
+ readonly position: number;
1428
+ readonly price: number;
1429
+ }[];
1430
+ readonly compare_at_price: number;
1431
+ readonly per_delivery_price: number;
1432
+ readonly selling_plan: {
1433
+ readonly description: string | null;
1434
+ readonly name: string;
1435
+ readonly id: string | number;
1436
+ readonly options: readonly {
1437
+ readonly value: string;
1438
+ readonly name: string;
1439
+ readonly position: number;
1440
+ }[];
1441
+ readonly recurring_deliveries: boolean;
1442
+ readonly fixed_selling_plan: boolean;
1443
+ readonly price_adjustments: readonly {
1444
+ readonly value: string | number;
1445
+ readonly value_type: "fixed_amount" | "percentage" | "price";
1446
+ readonly position: number;
1447
+ readonly order_count: number | null;
1448
+ }[];
1449
+ };
1450
+ } | null;
1451
+ readonly properties_array: readonly {
1452
+ readonly key: string;
1453
+ readonly value: string | number | boolean | null;
1454
+ }[];
1455
+ readonly private_properties: {
1456
+ readonly [x: string]: string | number | boolean | null;
1457
+ };
1458
+ readonly private_properties_array: readonly {
1459
+ readonly key: string;
1460
+ readonly value: string | number | boolean | null;
1461
+ }[];
1462
+ readonly public_properties: {
1463
+ readonly [x: string]: string | number | boolean | null;
1464
+ };
1465
+ readonly public_properties_array: readonly {
1466
+ readonly key: string;
1467
+ readonly value: string | number | boolean | null;
1468
+ }[];
1469
+ }[];
1470
+ readonly currency: string;
1471
+ readonly items_subtotal_price: number;
1472
+ readonly cart_level_discount_applications: readonly {
1473
+ readonly value: number;
1474
+ readonly target_selection: "all" | "entitled" | "explicit";
1475
+ readonly target_type: "line_item" | "shipping_line";
1476
+ readonly title: string;
1477
+ readonly total_allocated_amount: number;
1478
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1479
+ readonly value_type: "fixed_amount" | "percentage";
1480
+ readonly description: string | null;
1481
+ }[];
1482
+ readonly attributes_array: readonly {
1483
+ readonly key: string;
1484
+ readonly value: string | number | boolean | null;
1485
+ }[];
1486
+ readonly private_attributes: {
1487
+ readonly [x: string]: string | number | boolean | null;
1488
+ };
1489
+ readonly private_attributes_array: readonly {
1490
+ readonly key: string;
1491
+ readonly value: string | number | boolean | null;
1492
+ }[];
1493
+ readonly public_attributes: {
1494
+ readonly [x: string]: string | number | boolean | null;
1495
+ };
1496
+ readonly public_attributes_array: readonly {
1497
+ readonly key: string;
1498
+ readonly value: string | number | boolean | null;
1499
+ }[];
1500
+ } & {
1501
+ readonly sections: {
1502
+ readonly [x: string]: string | null;
1503
+ };
1504
+ }> | AjaxClientResponse<{
1505
+ readonly total_discount: number;
1506
+ readonly discounts: readonly {
1507
+ readonly title: string;
1508
+ readonly amount: number;
1509
+ }[];
1510
+ readonly requires_shipping: boolean;
1511
+ readonly token: string;
1512
+ readonly note: string | null;
1513
+ readonly attributes: {
1514
+ readonly [x: string]: string | number | boolean | null;
1515
+ };
1516
+ readonly discount_codes: readonly {
1517
+ readonly code: string;
1518
+ readonly applicable: boolean;
1519
+ }[];
1520
+ readonly original_total_price: number;
1521
+ readonly total_price: number;
1522
+ readonly total_weight: number;
1523
+ readonly item_count: number;
1524
+ readonly items: readonly {
1525
+ readonly key: string;
1526
+ readonly title: string;
1527
+ readonly url: string;
1528
+ readonly price: number;
1529
+ readonly id: string | number;
1530
+ readonly properties: {
1531
+ readonly [x: string]: string | number | boolean | null;
1532
+ };
1533
+ readonly quantity: number;
1534
+ readonly variant_id: string | number;
1535
+ readonly original_price: number;
1536
+ readonly discounted_price: number;
1537
+ readonly line_price: number;
1538
+ readonly original_line_price: number;
1539
+ readonly total_discount: number;
1540
+ readonly discounts: readonly {
1541
+ readonly title: string;
1542
+ readonly amount: number;
1543
+ }[];
1544
+ readonly sku: string | null;
1545
+ readonly grams: number;
1546
+ readonly vendor: string;
1547
+ readonly taxable: boolean;
1548
+ readonly product_id: string | number;
1549
+ readonly product_has_only_default_variant: boolean;
1550
+ readonly gift_card: boolean;
1551
+ readonly final_line_price: number;
1552
+ readonly final_price: number;
1553
+ readonly featured_image?: {
1554
+ readonly aspect_ratio: number;
1555
+ readonly alt: string;
1556
+ readonly height: number;
1557
+ readonly url: string;
1558
+ readonly width: number;
1559
+ } | undefined;
1560
+ readonly image: string;
1561
+ readonly handle: string;
1562
+ readonly requires_shipping: boolean;
1563
+ readonly product_type: string;
1564
+ readonly product_title: string;
1565
+ readonly product_description: string;
1566
+ readonly variant_title: string | null;
1567
+ readonly variant_options: readonly string[];
1568
+ readonly options_with_values: readonly {
1569
+ readonly value: string;
1570
+ readonly name: string;
1571
+ }[];
1572
+ readonly line_level_discount_allocations: readonly {
1573
+ readonly amount: number;
1574
+ readonly discount_application: {
1575
+ readonly value: number;
1576
+ readonly target_selection: "all" | "entitled" | "explicit";
1577
+ readonly target_type: "line_item" | "shipping_line";
1578
+ readonly title: string;
1579
+ readonly total_allocated_amount: number;
1580
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1581
+ readonly value_type: "fixed_amount" | "percentage";
1582
+ readonly description: string | null;
1583
+ };
1584
+ }[];
1585
+ readonly line_level_total_discount: number;
1586
+ readonly quantity_rule?: {
1587
+ readonly min: number;
1588
+ readonly max: number | null;
1589
+ readonly increment: number;
1590
+ } | undefined;
1591
+ readonly has_components: boolean;
1592
+ readonly unit_price?: number | undefined;
1593
+ readonly unit_price_measurement?: {
1594
+ readonly measured_type: "volume" | "weight" | "dimension";
1595
+ readonly quantity_unit: string;
1596
+ readonly quantity_value: number;
1597
+ readonly reference_unit: string;
1598
+ readonly reference_value: number;
1599
+ } | undefined;
1600
+ readonly selling_plan_allocation: {
1601
+ readonly price: number;
1602
+ readonly price_adjustments: readonly {
1603
+ readonly position: number;
1604
+ readonly price: number;
1605
+ }[];
1606
+ readonly compare_at_price: number;
1607
+ readonly per_delivery_price: number;
1608
+ readonly selling_plan: {
1609
+ readonly description: string | null;
1610
+ readonly name: string;
1611
+ readonly id: string | number;
1612
+ readonly options: readonly {
1613
+ readonly value: string;
1614
+ readonly name: string;
1615
+ readonly position: number;
1616
+ }[];
1617
+ readonly recurring_deliveries: boolean;
1618
+ readonly fixed_selling_plan: boolean;
1619
+ readonly price_adjustments: readonly {
1620
+ readonly value: string | number;
1621
+ readonly value_type: "fixed_amount" | "percentage" | "price";
1622
+ readonly position: number;
1623
+ readonly order_count: number | null;
1624
+ }[];
1625
+ };
1626
+ } | null;
1627
+ readonly properties_array: readonly {
1628
+ readonly key: string;
1629
+ readonly value: string | number | boolean | null;
1630
+ }[];
1631
+ readonly private_properties: {
1632
+ readonly [x: string]: string | number | boolean | null;
1633
+ };
1634
+ readonly private_properties_array: readonly {
1635
+ readonly key: string;
1636
+ readonly value: string | number | boolean | null;
1637
+ }[];
1638
+ readonly public_properties: {
1639
+ readonly [x: string]: string | number | boolean | null;
1640
+ };
1641
+ readonly public_properties_array: readonly {
1642
+ readonly key: string;
1643
+ readonly value: string | number | boolean | null;
1644
+ }[];
1645
+ }[];
1646
+ readonly currency: string;
1647
+ readonly items_subtotal_price: number;
1648
+ readonly cart_level_discount_applications: readonly {
1649
+ readonly value: number;
1650
+ readonly target_selection: "all" | "entitled" | "explicit";
1651
+ readonly target_type: "line_item" | "shipping_line";
1652
+ readonly title: string;
1653
+ readonly total_allocated_amount: number;
1654
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1655
+ readonly value_type: "fixed_amount" | "percentage";
1656
+ readonly description: string | null;
1657
+ }[];
1658
+ } & {
1659
+ readonly total_discount: number;
1660
+ readonly discounts: readonly {
1661
+ readonly title: string;
1662
+ readonly amount: number;
1663
+ }[];
1664
+ readonly requires_shipping: boolean;
1665
+ readonly token: string;
1666
+ readonly note: string | null;
1667
+ readonly attributes: {
1668
+ readonly [x: string]: string | number | boolean | null;
1669
+ };
1670
+ readonly discount_codes: readonly {
1671
+ readonly code: string;
1672
+ readonly applicable: boolean;
1673
+ }[];
1674
+ readonly original_total_price: number;
1675
+ readonly total_price: number;
1676
+ readonly total_weight: number;
1677
+ readonly item_count: number;
1678
+ readonly items: readonly {
1679
+ readonly key: string;
1680
+ readonly title: string;
1681
+ readonly url: string;
1682
+ readonly price: number;
1683
+ readonly id: string | number;
1684
+ readonly properties: {
1685
+ readonly [x: string]: string | number | boolean | null;
1686
+ };
1687
+ readonly quantity: number;
1688
+ readonly variant_id: string | number;
1689
+ readonly original_price: number;
1690
+ readonly discounted_price: number;
1691
+ readonly line_price: number;
1692
+ readonly original_line_price: number;
1693
+ readonly total_discount: number;
1694
+ readonly discounts: readonly {
1695
+ readonly title: string;
1696
+ readonly amount: number;
1697
+ }[];
1698
+ readonly sku: string | null;
1699
+ readonly grams: number;
1700
+ readonly vendor: string;
1701
+ readonly taxable: boolean;
1702
+ readonly product_id: string | number;
1703
+ readonly product_has_only_default_variant: boolean;
1704
+ readonly gift_card: boolean;
1705
+ readonly final_line_price: number;
1706
+ readonly final_price: number;
1707
+ readonly featured_image?: {
1708
+ readonly aspect_ratio: number;
1709
+ readonly alt: string;
1710
+ readonly height: number;
1711
+ readonly url: string;
1712
+ readonly width: number;
1713
+ } | undefined;
1714
+ readonly image: string;
1715
+ readonly handle: string;
1716
+ readonly requires_shipping: boolean;
1717
+ readonly product_type: string;
1718
+ readonly product_title: string;
1719
+ readonly product_description: string;
1720
+ readonly variant_title: string | null;
1721
+ readonly variant_options: readonly string[];
1722
+ readonly options_with_values: readonly {
1723
+ readonly value: string;
1724
+ readonly name: string;
1725
+ }[];
1726
+ readonly line_level_discount_allocations: readonly {
1727
+ readonly amount: number;
1728
+ readonly discount_application: {
1729
+ readonly value: number;
1730
+ readonly target_selection: "all" | "entitled" | "explicit";
1731
+ readonly target_type: "line_item" | "shipping_line";
1732
+ readonly title: string;
1733
+ readonly total_allocated_amount: number;
1734
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1735
+ readonly value_type: "fixed_amount" | "percentage";
1736
+ readonly description: string | null;
1737
+ };
1738
+ }[];
1739
+ readonly line_level_total_discount: number;
1740
+ readonly quantity_rule?: {
1741
+ readonly min: number;
1742
+ readonly max: number | null;
1743
+ readonly increment: number;
1744
+ } | undefined;
1745
+ readonly has_components: boolean;
1746
+ readonly unit_price?: number | undefined;
1747
+ readonly unit_price_measurement?: {
1748
+ readonly measured_type: "volume" | "weight" | "dimension";
1749
+ readonly quantity_unit: string;
1750
+ readonly quantity_value: number;
1751
+ readonly reference_unit: string;
1752
+ readonly reference_value: number;
1753
+ } | undefined;
1754
+ readonly selling_plan_allocation: {
1755
+ readonly price: number;
1756
+ readonly price_adjustments: readonly {
1757
+ readonly position: number;
1758
+ readonly price: number;
1759
+ }[];
1760
+ readonly compare_at_price: number;
1761
+ readonly per_delivery_price: number;
1762
+ readonly selling_plan: {
1763
+ readonly description: string | null;
1764
+ readonly name: string;
1765
+ readonly id: string | number;
1766
+ readonly options: readonly {
1767
+ readonly value: string;
1768
+ readonly name: string;
1769
+ readonly position: number;
1770
+ }[];
1771
+ readonly recurring_deliveries: boolean;
1772
+ readonly fixed_selling_plan: boolean;
1773
+ readonly price_adjustments: readonly {
1774
+ readonly value: string | number;
1775
+ readonly value_type: "fixed_amount" | "percentage" | "price";
1776
+ readonly position: number;
1777
+ readonly order_count: number | null;
1778
+ }[];
1779
+ };
1780
+ } | null;
1781
+ readonly properties_array: readonly {
1782
+ readonly key: string;
1783
+ readonly value: string | number | boolean | null;
1784
+ }[];
1785
+ readonly private_properties: {
1786
+ readonly [x: string]: string | number | boolean | null;
1787
+ };
1788
+ readonly private_properties_array: readonly {
1789
+ readonly key: string;
1790
+ readonly value: string | number | boolean | null;
1791
+ }[];
1792
+ readonly public_properties: {
1793
+ readonly [x: string]: string | number | boolean | null;
1794
+ };
1795
+ readonly public_properties_array: readonly {
1796
+ readonly key: string;
1797
+ readonly value: string | number | boolean | null;
1798
+ }[];
1799
+ }[];
1800
+ readonly currency: string;
1801
+ readonly items_subtotal_price: number;
1802
+ readonly cart_level_discount_applications: readonly {
1803
+ readonly value: number;
1804
+ readonly target_selection: "all" | "entitled" | "explicit";
1805
+ readonly target_type: "line_item" | "shipping_line";
1806
+ readonly title: string;
1807
+ readonly total_allocated_amount: number;
1808
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1809
+ readonly value_type: "fixed_amount" | "percentage";
1810
+ readonly description: string | null;
1811
+ }[];
1812
+ readonly attributes_array: readonly {
1813
+ readonly key: string;
1814
+ readonly value: string | number | boolean | null;
1815
+ }[];
1816
+ readonly private_attributes: {
1817
+ readonly [x: string]: string | number | boolean | null;
1818
+ };
1819
+ readonly private_attributes_array: readonly {
1820
+ readonly key: string;
1821
+ readonly value: string | number | boolean | null;
1822
+ }[];
1823
+ readonly public_attributes: {
1824
+ readonly [x: string]: string | number | boolean | null;
1825
+ };
1826
+ readonly public_attributes_array: readonly {
1827
+ readonly key: string;
1828
+ readonly value: string | number | boolean | null;
1829
+ }[];
1830
+ } & {
1831
+ readonly sections: null;
1832
+ }>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
1833
+ export declare namespace get {
1834
+ type Input = GetInput;
1835
+ }
1836
+ export declare const get: (input?: {
1837
+ readonly sections?: string | undefined;
1838
+ readonly sections_url?: string | undefined;
1839
+ } | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
1840
+ readonly total_discount: number;
1841
+ readonly discounts: readonly {
1842
+ readonly title: string;
1843
+ readonly amount: number;
1844
+ }[];
1845
+ readonly requires_shipping: boolean;
1846
+ readonly token: string;
1847
+ readonly note: string | null;
1848
+ readonly attributes: {
1849
+ readonly [x: string]: string | number | boolean | null;
1850
+ };
1851
+ readonly discount_codes: readonly {
1852
+ readonly code: string;
1853
+ readonly applicable: boolean;
1854
+ }[];
1855
+ readonly original_total_price: number;
1856
+ readonly total_price: number;
1857
+ readonly total_weight: number;
1858
+ readonly item_count: number;
1859
+ readonly items: readonly {
1860
+ readonly key: string;
1861
+ readonly title: string;
1862
+ readonly url: string;
1863
+ readonly price: number;
1864
+ readonly id: string | number;
1865
+ readonly properties: {
1866
+ readonly [x: string]: string | number | boolean | null;
1867
+ };
1868
+ readonly quantity: number;
1869
+ readonly variant_id: string | number;
1870
+ readonly original_price: number;
1871
+ readonly discounted_price: number;
1872
+ readonly line_price: number;
1873
+ readonly original_line_price: number;
1874
+ readonly total_discount: number;
1875
+ readonly discounts: readonly {
1876
+ readonly title: string;
1877
+ readonly amount: number;
1878
+ }[];
1879
+ readonly sku: string | null;
1880
+ readonly grams: number;
1881
+ readonly vendor: string;
1882
+ readonly taxable: boolean;
1883
+ readonly product_id: string | number;
1884
+ readonly product_has_only_default_variant: boolean;
1885
+ readonly gift_card: boolean;
1886
+ readonly final_line_price: number;
1887
+ readonly final_price: number;
1888
+ readonly featured_image?: {
1889
+ readonly aspect_ratio: number;
1890
+ readonly alt: string;
1891
+ readonly height: number;
1892
+ readonly url: string;
1893
+ readonly width: number;
1894
+ } | undefined;
1895
+ readonly image: string;
1896
+ readonly handle: string;
1897
+ readonly requires_shipping: boolean;
1898
+ readonly product_type: string;
1899
+ readonly product_title: string;
1900
+ readonly product_description: string;
1901
+ readonly variant_title: string | null;
1902
+ readonly variant_options: readonly string[];
1903
+ readonly options_with_values: readonly {
1904
+ readonly value: string;
1905
+ readonly name: string;
1906
+ }[];
1907
+ readonly line_level_discount_allocations: readonly {
1908
+ readonly amount: number;
1909
+ readonly discount_application: {
1910
+ readonly value: number;
1911
+ readonly target_selection: "all" | "entitled" | "explicit";
1912
+ readonly target_type: "line_item" | "shipping_line";
1913
+ readonly title: string;
1914
+ readonly total_allocated_amount: number;
1915
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1916
+ readonly value_type: "fixed_amount" | "percentage";
1917
+ readonly description: string | null;
1918
+ };
1919
+ }[];
1920
+ readonly line_level_total_discount: number;
1921
+ readonly quantity_rule?: {
1922
+ readonly min: number;
1923
+ readonly max: number | null;
1924
+ readonly increment: number;
1925
+ } | undefined;
1926
+ readonly has_components: boolean;
1927
+ readonly unit_price?: number | undefined;
1928
+ readonly unit_price_measurement?: {
1929
+ readonly measured_type: "volume" | "weight" | "dimension";
1930
+ readonly quantity_unit: string;
1931
+ readonly quantity_value: number;
1932
+ readonly reference_unit: string;
1933
+ readonly reference_value: number;
1934
+ } | undefined;
1935
+ readonly selling_plan_allocation: {
1936
+ readonly price: number;
1937
+ readonly price_adjustments: readonly {
1938
+ readonly position: number;
1939
+ readonly price: number;
1940
+ }[];
1941
+ readonly compare_at_price: number;
1942
+ readonly per_delivery_price: number;
1943
+ readonly selling_plan: {
1944
+ readonly description: string | null;
1945
+ readonly name: string;
1946
+ readonly id: string | number;
1947
+ readonly options: readonly {
1948
+ readonly value: string;
1949
+ readonly name: string;
1950
+ readonly position: number;
1951
+ }[];
1952
+ readonly recurring_deliveries: boolean;
1953
+ readonly fixed_selling_plan: boolean;
1954
+ readonly price_adjustments: readonly {
1955
+ readonly value: string | number;
1956
+ readonly value_type: "fixed_amount" | "percentage" | "price";
1957
+ readonly position: number;
1958
+ readonly order_count: number | null;
1959
+ }[];
1960
+ };
1961
+ } | null;
1962
+ readonly properties_array: readonly {
1963
+ readonly key: string;
1964
+ readonly value: string | number | boolean | null;
1965
+ }[];
1966
+ readonly private_properties: {
1967
+ readonly [x: string]: string | number | boolean | null;
1968
+ };
1969
+ readonly private_properties_array: readonly {
1970
+ readonly key: string;
1971
+ readonly value: string | number | boolean | null;
1972
+ }[];
1973
+ readonly public_properties: {
1974
+ readonly [x: string]: string | number | boolean | null;
1975
+ };
1976
+ readonly public_properties_array: readonly {
1977
+ readonly key: string;
1978
+ readonly value: string | number | boolean | null;
1979
+ }[];
1980
+ }[];
1981
+ readonly currency: string;
1982
+ readonly items_subtotal_price: number;
1983
+ readonly cart_level_discount_applications: readonly {
1984
+ readonly value: number;
1985
+ readonly target_selection: "all" | "entitled" | "explicit";
1986
+ readonly target_type: "line_item" | "shipping_line";
1987
+ readonly title: string;
1988
+ readonly total_allocated_amount: number;
1989
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1990
+ readonly value_type: "fixed_amount" | "percentage";
1991
+ readonly description: string | null;
1992
+ }[];
1993
+ } & {
1994
+ readonly total_discount: number;
1995
+ readonly discounts: readonly {
1996
+ readonly title: string;
1997
+ readonly amount: number;
1998
+ }[];
1999
+ readonly requires_shipping: boolean;
2000
+ readonly token: string;
2001
+ readonly note: string | null;
2002
+ readonly attributes: {
2003
+ readonly [x: string]: string | number | boolean | null;
2004
+ };
2005
+ readonly discount_codes: readonly {
2006
+ readonly code: string;
2007
+ readonly applicable: boolean;
2008
+ }[];
2009
+ readonly original_total_price: number;
2010
+ readonly total_price: number;
2011
+ readonly total_weight: number;
2012
+ readonly item_count: number;
2013
+ readonly items: readonly {
2014
+ readonly key: string;
2015
+ readonly title: string;
2016
+ readonly url: string;
2017
+ readonly price: number;
2018
+ readonly id: string | number;
2019
+ readonly properties: {
2020
+ readonly [x: string]: string | number | boolean | null;
2021
+ };
2022
+ readonly quantity: number;
2023
+ readonly variant_id: string | number;
2024
+ readonly original_price: number;
2025
+ readonly discounted_price: number;
2026
+ readonly line_price: number;
2027
+ readonly original_line_price: number;
2028
+ readonly total_discount: number;
2029
+ readonly discounts: readonly {
2030
+ readonly title: string;
2031
+ readonly amount: number;
2032
+ }[];
2033
+ readonly sku: string | null;
2034
+ readonly grams: number;
2035
+ readonly vendor: string;
2036
+ readonly taxable: boolean;
2037
+ readonly product_id: string | number;
2038
+ readonly product_has_only_default_variant: boolean;
2039
+ readonly gift_card: boolean;
2040
+ readonly final_line_price: number;
2041
+ readonly final_price: number;
2042
+ readonly featured_image?: {
2043
+ readonly aspect_ratio: number;
2044
+ readonly alt: string;
2045
+ readonly height: number;
2046
+ readonly url: string;
2047
+ readonly width: number;
2048
+ } | undefined;
2049
+ readonly image: string;
2050
+ readonly handle: string;
2051
+ readonly requires_shipping: boolean;
2052
+ readonly product_type: string;
2053
+ readonly product_title: string;
2054
+ readonly product_description: string;
2055
+ readonly variant_title: string | null;
2056
+ readonly variant_options: readonly string[];
2057
+ readonly options_with_values: readonly {
2058
+ readonly value: string;
2059
+ readonly name: string;
2060
+ }[];
2061
+ readonly line_level_discount_allocations: readonly {
2062
+ readonly amount: number;
2063
+ readonly discount_application: {
2064
+ readonly value: number;
2065
+ readonly target_selection: "all" | "entitled" | "explicit";
2066
+ readonly target_type: "line_item" | "shipping_line";
2067
+ readonly title: string;
2068
+ readonly total_allocated_amount: number;
2069
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2070
+ readonly value_type: "fixed_amount" | "percentage";
2071
+ readonly description: string | null;
2072
+ };
2073
+ }[];
2074
+ readonly line_level_total_discount: number;
2075
+ readonly quantity_rule?: {
2076
+ readonly min: number;
2077
+ readonly max: number | null;
2078
+ readonly increment: number;
2079
+ } | undefined;
2080
+ readonly has_components: boolean;
2081
+ readonly unit_price?: number | undefined;
2082
+ readonly unit_price_measurement?: {
2083
+ readonly measured_type: "volume" | "weight" | "dimension";
2084
+ readonly quantity_unit: string;
2085
+ readonly quantity_value: number;
2086
+ readonly reference_unit: string;
2087
+ readonly reference_value: number;
2088
+ } | undefined;
2089
+ readonly selling_plan_allocation: {
2090
+ readonly price: number;
2091
+ readonly price_adjustments: readonly {
2092
+ readonly position: number;
2093
+ readonly price: number;
2094
+ }[];
2095
+ readonly compare_at_price: number;
2096
+ readonly per_delivery_price: number;
2097
+ readonly selling_plan: {
2098
+ readonly description: string | null;
2099
+ readonly name: string;
2100
+ readonly id: string | number;
2101
+ readonly options: readonly {
2102
+ readonly value: string;
2103
+ readonly name: string;
2104
+ readonly position: number;
2105
+ }[];
2106
+ readonly recurring_deliveries: boolean;
2107
+ readonly fixed_selling_plan: boolean;
2108
+ readonly price_adjustments: readonly {
2109
+ readonly value: string | number;
2110
+ readonly value_type: "fixed_amount" | "percentage" | "price";
2111
+ readonly position: number;
2112
+ readonly order_count: number | null;
2113
+ }[];
2114
+ };
2115
+ } | null;
2116
+ readonly properties_array: readonly {
2117
+ readonly key: string;
2118
+ readonly value: string | number | boolean | null;
2119
+ }[];
2120
+ readonly private_properties: {
2121
+ readonly [x: string]: string | number | boolean | null;
2122
+ };
2123
+ readonly private_properties_array: readonly {
2124
+ readonly key: string;
2125
+ readonly value: string | number | boolean | null;
2126
+ }[];
2127
+ readonly public_properties: {
2128
+ readonly [x: string]: string | number | boolean | null;
2129
+ };
2130
+ readonly public_properties_array: readonly {
2131
+ readonly key: string;
2132
+ readonly value: string | number | boolean | null;
2133
+ }[];
2134
+ }[];
2135
+ readonly currency: string;
2136
+ readonly items_subtotal_price: number;
2137
+ readonly cart_level_discount_applications: readonly {
2138
+ readonly value: number;
2139
+ readonly target_selection: "all" | "entitled" | "explicit";
2140
+ readonly target_type: "line_item" | "shipping_line";
2141
+ readonly title: string;
2142
+ readonly total_allocated_amount: number;
2143
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2144
+ readonly value_type: "fixed_amount" | "percentage";
2145
+ readonly description: string | null;
2146
+ }[];
2147
+ readonly attributes_array: readonly {
2148
+ readonly key: string;
2149
+ readonly value: string | number | boolean | null;
2150
+ }[];
2151
+ readonly private_attributes: {
2152
+ readonly [x: string]: string | number | boolean | null;
2153
+ };
2154
+ readonly private_attributes_array: readonly {
2155
+ readonly key: string;
2156
+ readonly value: string | number | boolean | null;
2157
+ }[];
2158
+ readonly public_attributes: {
2159
+ readonly [x: string]: string | number | boolean | null;
2160
+ };
2161
+ readonly public_attributes_array: readonly {
2162
+ readonly key: string;
2163
+ readonly value: string | number | boolean | null;
2164
+ }[];
2165
+ } & {
2166
+ readonly sections: {
2167
+ readonly [x: string]: string | null;
2168
+ };
2169
+ }> | AjaxClientResponse<{
2170
+ readonly total_discount: number;
2171
+ readonly discounts: readonly {
2172
+ readonly title: string;
2173
+ readonly amount: number;
2174
+ }[];
2175
+ readonly requires_shipping: boolean;
2176
+ readonly token: string;
2177
+ readonly note: string | null;
2178
+ readonly attributes: {
2179
+ readonly [x: string]: string | number | boolean | null;
2180
+ };
2181
+ readonly discount_codes: readonly {
2182
+ readonly code: string;
2183
+ readonly applicable: boolean;
2184
+ }[];
2185
+ readonly original_total_price: number;
2186
+ readonly total_price: number;
2187
+ readonly total_weight: number;
2188
+ readonly item_count: number;
2189
+ readonly items: readonly {
2190
+ readonly key: string;
2191
+ readonly title: string;
2192
+ readonly url: string;
2193
+ readonly price: number;
2194
+ readonly id: string | number;
2195
+ readonly properties: {
2196
+ readonly [x: string]: string | number | boolean | null;
2197
+ };
2198
+ readonly quantity: number;
2199
+ readonly variant_id: string | number;
2200
+ readonly original_price: number;
2201
+ readonly discounted_price: number;
2202
+ readonly line_price: number;
2203
+ readonly original_line_price: number;
2204
+ readonly total_discount: number;
2205
+ readonly discounts: readonly {
2206
+ readonly title: string;
2207
+ readonly amount: number;
2208
+ }[];
2209
+ readonly sku: string | null;
2210
+ readonly grams: number;
2211
+ readonly vendor: string;
2212
+ readonly taxable: boolean;
2213
+ readonly product_id: string | number;
2214
+ readonly product_has_only_default_variant: boolean;
2215
+ readonly gift_card: boolean;
2216
+ readonly final_line_price: number;
2217
+ readonly final_price: number;
2218
+ readonly featured_image?: {
2219
+ readonly aspect_ratio: number;
2220
+ readonly alt: string;
2221
+ readonly height: number;
2222
+ readonly url: string;
2223
+ readonly width: number;
2224
+ } | undefined;
2225
+ readonly image: string;
2226
+ readonly handle: string;
2227
+ readonly requires_shipping: boolean;
2228
+ readonly product_type: string;
2229
+ readonly product_title: string;
2230
+ readonly product_description: string;
2231
+ readonly variant_title: string | null;
2232
+ readonly variant_options: readonly string[];
2233
+ readonly options_with_values: readonly {
2234
+ readonly value: string;
2235
+ readonly name: string;
2236
+ }[];
2237
+ readonly line_level_discount_allocations: readonly {
2238
+ readonly amount: number;
2239
+ readonly discount_application: {
2240
+ readonly value: number;
2241
+ readonly target_selection: "all" | "entitled" | "explicit";
2242
+ readonly target_type: "line_item" | "shipping_line";
2243
+ readonly title: string;
2244
+ readonly total_allocated_amount: number;
2245
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2246
+ readonly value_type: "fixed_amount" | "percentage";
2247
+ readonly description: string | null;
2248
+ };
2249
+ }[];
2250
+ readonly line_level_total_discount: number;
2251
+ readonly quantity_rule?: {
2252
+ readonly min: number;
2253
+ readonly max: number | null;
2254
+ readonly increment: number;
2255
+ } | undefined;
2256
+ readonly has_components: boolean;
2257
+ readonly unit_price?: number | undefined;
2258
+ readonly unit_price_measurement?: {
2259
+ readonly measured_type: "volume" | "weight" | "dimension";
2260
+ readonly quantity_unit: string;
2261
+ readonly quantity_value: number;
2262
+ readonly reference_unit: string;
2263
+ readonly reference_value: number;
2264
+ } | undefined;
2265
+ readonly selling_plan_allocation: {
2266
+ readonly price: number;
2267
+ readonly price_adjustments: readonly {
2268
+ readonly position: number;
2269
+ readonly price: number;
2270
+ }[];
2271
+ readonly compare_at_price: number;
2272
+ readonly per_delivery_price: number;
2273
+ readonly selling_plan: {
2274
+ readonly description: string | null;
2275
+ readonly name: string;
2276
+ readonly id: string | number;
2277
+ readonly options: readonly {
2278
+ readonly value: string;
2279
+ readonly name: string;
2280
+ readonly position: number;
2281
+ }[];
2282
+ readonly recurring_deliveries: boolean;
2283
+ readonly fixed_selling_plan: boolean;
2284
+ readonly price_adjustments: readonly {
2285
+ readonly value: string | number;
2286
+ readonly value_type: "fixed_amount" | "percentage" | "price";
2287
+ readonly position: number;
2288
+ readonly order_count: number | null;
2289
+ }[];
2290
+ };
2291
+ } | null;
2292
+ readonly properties_array: readonly {
2293
+ readonly key: string;
2294
+ readonly value: string | number | boolean | null;
2295
+ }[];
2296
+ readonly private_properties: {
2297
+ readonly [x: string]: string | number | boolean | null;
2298
+ };
2299
+ readonly private_properties_array: readonly {
2300
+ readonly key: string;
2301
+ readonly value: string | number | boolean | null;
2302
+ }[];
2303
+ readonly public_properties: {
2304
+ readonly [x: string]: string | number | boolean | null;
2305
+ };
2306
+ readonly public_properties_array: readonly {
2307
+ readonly key: string;
2308
+ readonly value: string | number | boolean | null;
2309
+ }[];
2310
+ }[];
2311
+ readonly currency: string;
2312
+ readonly items_subtotal_price: number;
2313
+ readonly cart_level_discount_applications: readonly {
2314
+ readonly value: number;
2315
+ readonly target_selection: "all" | "entitled" | "explicit";
2316
+ readonly target_type: "line_item" | "shipping_line";
2317
+ readonly title: string;
2318
+ readonly total_allocated_amount: number;
2319
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2320
+ readonly value_type: "fixed_amount" | "percentage";
2321
+ readonly description: string | null;
2322
+ }[];
2323
+ } & {
2324
+ readonly total_discount: number;
2325
+ readonly discounts: readonly {
2326
+ readonly title: string;
2327
+ readonly amount: number;
2328
+ }[];
2329
+ readonly requires_shipping: boolean;
2330
+ readonly token: string;
2331
+ readonly note: string | null;
2332
+ readonly attributes: {
2333
+ readonly [x: string]: string | number | boolean | null;
2334
+ };
2335
+ readonly discount_codes: readonly {
2336
+ readonly code: string;
2337
+ readonly applicable: boolean;
2338
+ }[];
2339
+ readonly original_total_price: number;
2340
+ readonly total_price: number;
2341
+ readonly total_weight: number;
2342
+ readonly item_count: number;
2343
+ readonly items: readonly {
2344
+ readonly key: string;
2345
+ readonly title: string;
2346
+ readonly url: string;
2347
+ readonly price: number;
2348
+ readonly id: string | number;
2349
+ readonly properties: {
2350
+ readonly [x: string]: string | number | boolean | null;
2351
+ };
2352
+ readonly quantity: number;
2353
+ readonly variant_id: string | number;
2354
+ readonly original_price: number;
2355
+ readonly discounted_price: number;
2356
+ readonly line_price: number;
2357
+ readonly original_line_price: number;
2358
+ readonly total_discount: number;
2359
+ readonly discounts: readonly {
2360
+ readonly title: string;
2361
+ readonly amount: number;
2362
+ }[];
2363
+ readonly sku: string | null;
2364
+ readonly grams: number;
2365
+ readonly vendor: string;
2366
+ readonly taxable: boolean;
2367
+ readonly product_id: string | number;
2368
+ readonly product_has_only_default_variant: boolean;
2369
+ readonly gift_card: boolean;
2370
+ readonly final_line_price: number;
2371
+ readonly final_price: number;
2372
+ readonly featured_image?: {
2373
+ readonly aspect_ratio: number;
2374
+ readonly alt: string;
2375
+ readonly height: number;
2376
+ readonly url: string;
2377
+ readonly width: number;
2378
+ } | undefined;
2379
+ readonly image: string;
2380
+ readonly handle: string;
2381
+ readonly requires_shipping: boolean;
2382
+ readonly product_type: string;
2383
+ readonly product_title: string;
2384
+ readonly product_description: string;
2385
+ readonly variant_title: string | null;
2386
+ readonly variant_options: readonly string[];
2387
+ readonly options_with_values: readonly {
2388
+ readonly value: string;
2389
+ readonly name: string;
2390
+ }[];
2391
+ readonly line_level_discount_allocations: readonly {
2392
+ readonly amount: number;
2393
+ readonly discount_application: {
2394
+ readonly value: number;
2395
+ readonly target_selection: "all" | "entitled" | "explicit";
2396
+ readonly target_type: "line_item" | "shipping_line";
2397
+ readonly title: string;
2398
+ readonly total_allocated_amount: number;
2399
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2400
+ readonly value_type: "fixed_amount" | "percentage";
2401
+ readonly description: string | null;
2402
+ };
2403
+ }[];
2404
+ readonly line_level_total_discount: number;
2405
+ readonly quantity_rule?: {
2406
+ readonly min: number;
2407
+ readonly max: number | null;
2408
+ readonly increment: number;
2409
+ } | undefined;
2410
+ readonly has_components: boolean;
2411
+ readonly unit_price?: number | undefined;
2412
+ readonly unit_price_measurement?: {
2413
+ readonly measured_type: "volume" | "weight" | "dimension";
2414
+ readonly quantity_unit: string;
2415
+ readonly quantity_value: number;
2416
+ readonly reference_unit: string;
2417
+ readonly reference_value: number;
2418
+ } | undefined;
2419
+ readonly selling_plan_allocation: {
2420
+ readonly price: number;
2421
+ readonly price_adjustments: readonly {
2422
+ readonly position: number;
2423
+ readonly price: number;
2424
+ }[];
2425
+ readonly compare_at_price: number;
2426
+ readonly per_delivery_price: number;
2427
+ readonly selling_plan: {
2428
+ readonly description: string | null;
2429
+ readonly name: string;
2430
+ readonly id: string | number;
2431
+ readonly options: readonly {
2432
+ readonly value: string;
2433
+ readonly name: string;
2434
+ readonly position: number;
2435
+ }[];
2436
+ readonly recurring_deliveries: boolean;
2437
+ readonly fixed_selling_plan: boolean;
2438
+ readonly price_adjustments: readonly {
2439
+ readonly value: string | number;
2440
+ readonly value_type: "fixed_amount" | "percentage" | "price";
2441
+ readonly position: number;
2442
+ readonly order_count: number | null;
2443
+ }[];
2444
+ };
2445
+ } | null;
2446
+ readonly properties_array: readonly {
2447
+ readonly key: string;
2448
+ readonly value: string | number | boolean | null;
2449
+ }[];
2450
+ readonly private_properties: {
2451
+ readonly [x: string]: string | number | boolean | null;
2452
+ };
2453
+ readonly private_properties_array: readonly {
2454
+ readonly key: string;
2455
+ readonly value: string | number | boolean | null;
2456
+ }[];
2457
+ readonly public_properties: {
2458
+ readonly [x: string]: string | number | boolean | null;
2459
+ };
2460
+ readonly public_properties_array: readonly {
2461
+ readonly key: string;
2462
+ readonly value: string | number | boolean | null;
2463
+ }[];
2464
+ }[];
2465
+ readonly currency: string;
2466
+ readonly items_subtotal_price: number;
2467
+ readonly cart_level_discount_applications: readonly {
2468
+ readonly value: number;
2469
+ readonly target_selection: "all" | "entitled" | "explicit";
2470
+ readonly target_type: "line_item" | "shipping_line";
2471
+ readonly title: string;
2472
+ readonly total_allocated_amount: number;
2473
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2474
+ readonly value_type: "fixed_amount" | "percentage";
2475
+ readonly description: string | null;
2476
+ }[];
2477
+ readonly attributes_array: readonly {
2478
+ readonly key: string;
2479
+ readonly value: string | number | boolean | null;
2480
+ }[];
2481
+ readonly private_attributes: {
2482
+ readonly [x: string]: string | number | boolean | null;
2483
+ };
2484
+ readonly private_attributes_array: readonly {
2485
+ readonly key: string;
2486
+ readonly value: string | number | boolean | null;
2487
+ }[];
2488
+ readonly public_attributes: {
2489
+ readonly [x: string]: string | number | boolean | null;
2490
+ };
2491
+ readonly public_attributes_array: readonly {
2492
+ readonly key: string;
2493
+ readonly value: string | number | boolean | null;
2494
+ }[];
2495
+ } & {
2496
+ readonly sections: null;
2497
+ }>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
2498
+ export declare namespace update {
2499
+ type Input = UpdateInput;
2500
+ }
2501
+ export declare const update: (input?: ({
2502
+ readonly note?: string | null | undefined;
2503
+ readonly attributes?: {
2504
+ readonly [x: string]: string | number | boolean | null;
2505
+ } | undefined;
2506
+ readonly updates?: {
2507
+ readonly [x: string]: number;
2508
+ } | readonly number[] | undefined;
2509
+ readonly discount?: readonly string[] | undefined;
2510
+ } & {
2511
+ readonly sections?: string | undefined;
2512
+ readonly sections_url?: string | undefined;
2513
+ }) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
2514
+ readonly total_discount: number;
2515
+ readonly discounts: readonly {
2516
+ readonly title: string;
2517
+ readonly amount: number;
2518
+ }[];
2519
+ readonly requires_shipping: boolean;
2520
+ readonly token: string;
2521
+ readonly note: string | null;
2522
+ readonly attributes: {
2523
+ readonly [x: string]: string | number | boolean | null;
1478
2524
  };
1479
2525
  readonly discount_codes: readonly {
1480
2526
  readonly code: string;
@@ -1491,24 +2537,7 @@ export declare const get: (input?: {
1491
2537
  readonly price: number;
1492
2538
  readonly id: string | number;
1493
2539
  readonly properties: {
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
- };
1511
- };
2540
+ readonly [x: string]: string | number | boolean | null;
1512
2541
  };
1513
2542
  readonly quantity: number;
1514
2543
  readonly variant_id: string | number;
@@ -1604,6 +2633,24 @@ export declare const get: (input?: {
1604
2633
  }[];
1605
2634
  };
1606
2635
  } | null;
2636
+ readonly properties_array: readonly {
2637
+ readonly key: string;
2638
+ readonly value: string | number | boolean | null;
2639
+ }[];
2640
+ readonly private_properties: {
2641
+ readonly [x: string]: string | number | boolean | null;
2642
+ };
2643
+ readonly private_properties_array: readonly {
2644
+ readonly key: string;
2645
+ readonly value: string | number | boolean | null;
2646
+ }[];
2647
+ readonly public_properties: {
2648
+ readonly [x: string]: string | number | boolean | null;
2649
+ };
2650
+ readonly public_properties_array: readonly {
2651
+ readonly key: string;
2652
+ readonly value: string | number | boolean | null;
2653
+ }[];
1607
2654
  }[];
1608
2655
  readonly currency: string;
1609
2656
  readonly items_subtotal_price: number;
@@ -1618,24 +2665,6 @@ export declare const get: (input?: {
1618
2665
  readonly description: string | null;
1619
2666
  }[];
1620
2667
  } & {
1621
- readonly sections: null;
1622
- }>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
1623
- export declare namespace update {
1624
- type Input = UpdateInput;
1625
- }
1626
- export declare const update: (input?: ({
1627
- readonly note?: string | null | undefined;
1628
- readonly attributes?: {
1629
- readonly [x: string]: string | number | boolean | null;
1630
- } | undefined;
1631
- readonly updates?: {
1632
- readonly [x: string]: number;
1633
- } | readonly number[] | undefined;
1634
- readonly discount?: readonly string[] | undefined;
1635
- } & {
1636
- readonly sections?: string | undefined;
1637
- readonly sections_url?: string | undefined;
1638
- }) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
1639
2668
  readonly total_discount: number;
1640
2669
  readonly discounts: readonly {
1641
2670
  readonly title: string;
@@ -1645,24 +2674,7 @@ export declare const update: (input?: ({
1645
2674
  readonly token: string;
1646
2675
  readonly note: string | null;
1647
2676
  readonly attributes: {
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
- };
1665
- };
2677
+ readonly [x: string]: string | number | boolean | null;
1666
2678
  };
1667
2679
  readonly discount_codes: readonly {
1668
2680
  readonly code: string;
@@ -1679,24 +2691,7 @@ export declare const update: (input?: ({
1679
2691
  readonly price: number;
1680
2692
  readonly id: string | number;
1681
2693
  readonly properties: {
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
- };
1699
- };
2694
+ readonly [x: string]: string | number | boolean | null;
1700
2695
  };
1701
2696
  readonly quantity: number;
1702
2697
  readonly variant_id: string | number;
@@ -1792,6 +2787,24 @@ export declare const update: (input?: ({
1792
2787
  }[];
1793
2788
  };
1794
2789
  } | null;
2790
+ readonly properties_array: readonly {
2791
+ readonly key: string;
2792
+ readonly value: string | number | boolean | null;
2793
+ }[];
2794
+ readonly private_properties: {
2795
+ readonly [x: string]: string | number | boolean | null;
2796
+ };
2797
+ readonly private_properties_array: readonly {
2798
+ readonly key: string;
2799
+ readonly value: string | number | boolean | null;
2800
+ }[];
2801
+ readonly public_properties: {
2802
+ readonly [x: string]: string | number | boolean | null;
2803
+ };
2804
+ readonly public_properties_array: readonly {
2805
+ readonly key: string;
2806
+ readonly value: string | number | boolean | null;
2807
+ }[];
1795
2808
  }[];
1796
2809
  readonly currency: string;
1797
2810
  readonly items_subtotal_price: number;
@@ -1805,6 +2818,25 @@ export declare const update: (input?: ({
1805
2818
  readonly value_type: "fixed_amount" | "percentage";
1806
2819
  readonly description: string | null;
1807
2820
  }[];
2821
+ readonly attributes_array: readonly {
2822
+ readonly key: string;
2823
+ readonly value: string | number | boolean | null;
2824
+ }[];
2825
+ readonly private_attributes: {
2826
+ readonly [x: string]: string | number | boolean | null;
2827
+ };
2828
+ readonly private_attributes_array: readonly {
2829
+ readonly key: string;
2830
+ readonly value: string | number | boolean | null;
2831
+ }[];
2832
+ readonly public_attributes: {
2833
+ readonly [x: string]: string | number | boolean | null;
2834
+ };
2835
+ readonly public_attributes_array: readonly {
2836
+ readonly key: string;
2837
+ readonly value: string | number | boolean | null;
2838
+ }[];
2839
+ } & {
1808
2840
  readonly items_changelog: {
1809
2841
  readonly added: readonly {
1810
2842
  readonly quantity: number;
@@ -1825,24 +2857,161 @@ export declare const update: (input?: ({
1825
2857
  readonly token: string;
1826
2858
  readonly note: string | null;
1827
2859
  readonly attributes: {
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
- };
2860
+ readonly [x: string]: string | number | boolean | null;
2861
+ };
2862
+ readonly discount_codes: readonly {
2863
+ readonly code: string;
2864
+ readonly applicable: boolean;
2865
+ }[];
2866
+ readonly original_total_price: number;
2867
+ readonly total_price: number;
2868
+ readonly total_weight: number;
2869
+ readonly item_count: number;
2870
+ readonly items: readonly {
2871
+ readonly key: string;
2872
+ readonly title: string;
2873
+ readonly url: string;
2874
+ readonly price: number;
2875
+ readonly id: string | number;
2876
+ readonly properties: {
2877
+ readonly [x: string]: string | number | boolean | null;
1836
2878
  };
1837
- readonly public: {
1838
- readonly array: readonly {
1839
- readonly key: string;
1840
- readonly value: string | number | boolean | null;
2879
+ readonly quantity: number;
2880
+ readonly variant_id: string | number;
2881
+ readonly original_price: number;
2882
+ readonly discounted_price: number;
2883
+ readonly line_price: number;
2884
+ readonly original_line_price: number;
2885
+ readonly total_discount: number;
2886
+ readonly discounts: readonly {
2887
+ readonly title: string;
2888
+ readonly amount: number;
2889
+ }[];
2890
+ readonly sku: string | null;
2891
+ readonly grams: number;
2892
+ readonly vendor: string;
2893
+ readonly taxable: boolean;
2894
+ readonly product_id: string | number;
2895
+ readonly product_has_only_default_variant: boolean;
2896
+ readonly gift_card: boolean;
2897
+ readonly final_line_price: number;
2898
+ readonly final_price: number;
2899
+ readonly featured_image?: {
2900
+ readonly aspect_ratio: number;
2901
+ readonly alt: string;
2902
+ readonly height: number;
2903
+ readonly url: string;
2904
+ readonly width: number;
2905
+ } | undefined;
2906
+ readonly image: string;
2907
+ readonly handle: string;
2908
+ readonly requires_shipping: boolean;
2909
+ readonly product_type: string;
2910
+ readonly product_title: string;
2911
+ readonly product_description: string;
2912
+ readonly variant_title: string | null;
2913
+ readonly variant_options: readonly string[];
2914
+ readonly options_with_values: readonly {
2915
+ readonly value: string;
2916
+ readonly name: string;
2917
+ }[];
2918
+ readonly line_level_discount_allocations: readonly {
2919
+ readonly amount: number;
2920
+ readonly discount_application: {
2921
+ readonly value: number;
2922
+ readonly target_selection: "all" | "entitled" | "explicit";
2923
+ readonly target_type: "line_item" | "shipping_line";
2924
+ readonly title: string;
2925
+ readonly total_allocated_amount: number;
2926
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2927
+ readonly value_type: "fixed_amount" | "percentage";
2928
+ readonly description: string | null;
2929
+ };
2930
+ }[];
2931
+ readonly line_level_total_discount: number;
2932
+ readonly quantity_rule?: {
2933
+ readonly min: number;
2934
+ readonly max: number | null;
2935
+ readonly increment: number;
2936
+ } | undefined;
2937
+ readonly has_components: boolean;
2938
+ readonly unit_price?: number | undefined;
2939
+ readonly unit_price_measurement?: {
2940
+ readonly measured_type: "volume" | "weight" | "dimension";
2941
+ readonly quantity_unit: string;
2942
+ readonly quantity_value: number;
2943
+ readonly reference_unit: string;
2944
+ readonly reference_value: number;
2945
+ } | undefined;
2946
+ readonly selling_plan_allocation: {
2947
+ readonly price: number;
2948
+ readonly price_adjustments: readonly {
2949
+ readonly position: number;
2950
+ readonly price: number;
1841
2951
  }[];
1842
- readonly record: {
1843
- readonly [x: string]: string | number | boolean | null;
2952
+ readonly compare_at_price: number;
2953
+ readonly per_delivery_price: number;
2954
+ readonly selling_plan: {
2955
+ readonly description: string | null;
2956
+ readonly name: string;
2957
+ readonly id: string | number;
2958
+ readonly options: readonly {
2959
+ readonly value: string;
2960
+ readonly name: string;
2961
+ readonly position: number;
2962
+ }[];
2963
+ readonly recurring_deliveries: boolean;
2964
+ readonly fixed_selling_plan: boolean;
2965
+ readonly price_adjustments: readonly {
2966
+ readonly value: string | number;
2967
+ readonly value_type: "fixed_amount" | "percentage" | "price";
2968
+ readonly position: number;
2969
+ readonly order_count: number | null;
2970
+ }[];
1844
2971
  };
2972
+ } | null;
2973
+ readonly properties_array: readonly {
2974
+ readonly key: string;
2975
+ readonly value: string | number | boolean | null;
2976
+ }[];
2977
+ readonly private_properties: {
2978
+ readonly [x: string]: string | number | boolean | null;
2979
+ };
2980
+ readonly private_properties_array: readonly {
2981
+ readonly key: string;
2982
+ readonly value: string | number | boolean | null;
2983
+ }[];
2984
+ readonly public_properties: {
2985
+ readonly [x: string]: string | number | boolean | null;
1845
2986
  };
2987
+ readonly public_properties_array: readonly {
2988
+ readonly key: string;
2989
+ readonly value: string | number | boolean | null;
2990
+ }[];
2991
+ }[];
2992
+ readonly currency: string;
2993
+ readonly items_subtotal_price: number;
2994
+ readonly cart_level_discount_applications: readonly {
2995
+ readonly value: number;
2996
+ readonly target_selection: "all" | "entitled" | "explicit";
2997
+ readonly target_type: "line_item" | "shipping_line";
2998
+ readonly title: string;
2999
+ readonly total_allocated_amount: number;
3000
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
3001
+ readonly value_type: "fixed_amount" | "percentage";
3002
+ readonly description: string | null;
3003
+ }[];
3004
+ } & {
3005
+ readonly total_discount: number;
3006
+ readonly discounts: readonly {
3007
+ readonly title: string;
3008
+ readonly amount: number;
3009
+ }[];
3010
+ readonly requires_shipping: boolean;
3011
+ readonly token: string;
3012
+ readonly note: string | null;
3013
+ readonly attributes: {
3014
+ readonly [x: string]: string | number | boolean | null;
1846
3015
  };
1847
3016
  readonly discount_codes: readonly {
1848
3017
  readonly code: string;
@@ -1859,24 +3028,7 @@ export declare const update: (input?: ({
1859
3028
  readonly price: number;
1860
3029
  readonly id: string | number;
1861
3030
  readonly properties: {
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
- };
1879
- };
3031
+ readonly [x: string]: string | number | boolean | null;
1880
3032
  };
1881
3033
  readonly quantity: number;
1882
3034
  readonly variant_id: string | number;
@@ -1972,6 +3124,24 @@ export declare const update: (input?: ({
1972
3124
  }[];
1973
3125
  };
1974
3126
  } | null;
3127
+ readonly properties_array: readonly {
3128
+ readonly key: string;
3129
+ readonly value: string | number | boolean | null;
3130
+ }[];
3131
+ readonly private_properties: {
3132
+ readonly [x: string]: string | number | boolean | null;
3133
+ };
3134
+ readonly private_properties_array: readonly {
3135
+ readonly key: string;
3136
+ readonly value: string | number | boolean | null;
3137
+ }[];
3138
+ readonly public_properties: {
3139
+ readonly [x: string]: string | number | boolean | null;
3140
+ };
3141
+ readonly public_properties_array: readonly {
3142
+ readonly key: string;
3143
+ readonly value: string | number | boolean | null;
3144
+ }[];
1975
3145
  }[];
1976
3146
  readonly currency: string;
1977
3147
  readonly items_subtotal_price: number;
@@ -1985,6 +3155,25 @@ export declare const update: (input?: ({
1985
3155
  readonly value_type: "fixed_amount" | "percentage";
1986
3156
  readonly description: string | null;
1987
3157
  }[];
3158
+ readonly attributes_array: readonly {
3159
+ readonly key: string;
3160
+ readonly value: string | number | boolean | null;
3161
+ }[];
3162
+ readonly private_attributes: {
3163
+ readonly [x: string]: string | number | boolean | null;
3164
+ };
3165
+ readonly private_attributes_array: readonly {
3166
+ readonly key: string;
3167
+ readonly value: string | number | boolean | null;
3168
+ }[];
3169
+ readonly public_attributes: {
3170
+ readonly [x: string]: string | number | boolean | null;
3171
+ };
3172
+ readonly public_attributes_array: readonly {
3173
+ readonly key: string;
3174
+ readonly value: string | number | boolean | null;
3175
+ }[];
3176
+ } & {
1988
3177
  readonly items_changelog: {
1989
3178
  readonly added: readonly {
1990
3179
  readonly quantity: number;