@brytdesigns/shopify-ajax-cart-api 1.0.37 → 1.0.39

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.
@@ -122,11 +122,52 @@ export declare const add: (input?: ({
122
122
  } | {
123
123
  readonly data?: {
124
124
  readonly items: readonly ({
125
- readonly key: string;
126
125
  readonly title: string;
126
+ readonly key: string;
127
127
  readonly url: string;
128
+ readonly image: string | null;
129
+ readonly quantity_rule?: {
130
+ readonly min: number;
131
+ readonly max: number | null;
132
+ readonly increment: number;
133
+ } | undefined;
128
134
  readonly price: number;
129
135
  readonly id: string | number;
136
+ readonly selling_plan_allocation: {
137
+ readonly price: number;
138
+ readonly price_adjustments: readonly {
139
+ readonly position: number;
140
+ readonly price: number;
141
+ }[];
142
+ readonly selling_plan: {
143
+ readonly description: string | null;
144
+ readonly name: string;
145
+ readonly id: string | number;
146
+ readonly options: readonly {
147
+ readonly value: string;
148
+ readonly name: string;
149
+ readonly position: number;
150
+ }[];
151
+ readonly recurring_deliveries: boolean;
152
+ readonly fixed_selling_plan: boolean;
153
+ readonly price_adjustments: readonly {
154
+ readonly value: string | number;
155
+ readonly value_type: "fixed_amount" | "percentage" | "price";
156
+ readonly position: number;
157
+ readonly order_count: number | null;
158
+ }[];
159
+ };
160
+ readonly compare_at_price: number;
161
+ readonly per_delivery_price: number;
162
+ } | null;
163
+ readonly unit_price_measurement?: {
164
+ readonly measured_type: "volume" | "weight" | "dimension";
165
+ readonly quantity_unit: string;
166
+ readonly quantity_value: number;
167
+ readonly reference_unit: string;
168
+ readonly reference_value: number;
169
+ } | undefined;
170
+ readonly variant_options: readonly string[];
130
171
  readonly properties: {
131
172
  readonly [x: string]: string | number | boolean | null;
132
173
  };
@@ -157,73 +198,32 @@ export declare const add: (input?: ({
157
198
  readonly url: string | null;
158
199
  readonly width: number | null;
159
200
  };
160
- readonly image: string | null;
161
201
  readonly handle: string;
162
202
  readonly requires_shipping: boolean;
163
203
  readonly product_type: string | null;
164
204
  readonly product_title: string;
165
205
  readonly product_description: string | null;
166
206
  readonly variant_title: string | null;
167
- readonly variant_options: readonly string[];
168
207
  readonly options_with_values: readonly {
169
208
  readonly value: string;
170
209
  readonly name: string;
171
210
  }[];
172
211
  readonly line_level_discount_allocations: readonly {
173
- readonly amount: number;
174
212
  readonly discount_application: {
213
+ readonly title: string;
214
+ readonly description: string | null;
175
215
  readonly value: number;
176
216
  readonly target_selection: "all" | "entitled" | "explicit";
177
217
  readonly target_type: "line_item" | "shipping_line";
178
- readonly title: string;
179
218
  readonly total_allocated_amount: number;
180
219
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
181
220
  readonly value_type: "fixed_amount" | "percentage";
182
- readonly description: string | null;
183
221
  };
222
+ readonly amount: number;
184
223
  }[];
185
224
  readonly line_level_total_discount: number;
186
- readonly quantity_rule?: {
187
- readonly min: number;
188
- readonly max: number | null;
189
- readonly increment: number;
190
- } | undefined;
191
225
  readonly has_components: boolean;
192
226
  readonly unit_price?: number | undefined;
193
- readonly unit_price_measurement?: {
194
- readonly measured_type: "volume" | "weight" | "dimension";
195
- readonly quantity_unit: string;
196
- readonly quantity_value: number;
197
- readonly reference_unit: string;
198
- readonly reference_value: number;
199
- } | undefined;
200
- readonly selling_plan_allocation: {
201
- readonly price: number;
202
- readonly price_adjustments: readonly {
203
- readonly position: number;
204
- readonly price: number;
205
- }[];
206
- readonly compare_at_price: number;
207
- readonly per_delivery_price: number;
208
- readonly selling_plan: {
209
- readonly description: string | null;
210
- readonly name: string;
211
- readonly id: string | number;
212
- readonly options: readonly {
213
- readonly value: string;
214
- readonly name: string;
215
- readonly position: number;
216
- }[];
217
- readonly recurring_deliveries: boolean;
218
- readonly fixed_selling_plan: boolean;
219
- readonly price_adjustments: readonly {
220
- readonly value: string | number;
221
- readonly value_type: "fixed_amount" | "percentage" | "price";
222
- readonly position: number;
223
- readonly order_count: number | null;
224
- }[];
225
- };
226
- } | null;
227
227
  } & {
228
228
  readonly properties_array: readonly {
229
229
  readonly key: string;
@@ -287,6 +287,9 @@ export declare const change: (input?: ({
287
287
  } | undefined;
288
288
  } | {
289
289
  readonly data?: ({
290
+ readonly attributes: {
291
+ readonly [x: string]: string | number | boolean | null;
292
+ };
290
293
  readonly total_discount: number;
291
294
  readonly discounts: readonly {
292
295
  readonly title: string;
@@ -295,9 +298,6 @@ export declare const change: (input?: ({
295
298
  readonly requires_shipping: boolean;
296
299
  readonly token: string;
297
300
  readonly note: string | null;
298
- readonly attributes: {
299
- readonly [x: string]: string | number | boolean | null;
300
- };
301
301
  readonly discount_codes: readonly {
302
302
  readonly code: string;
303
303
  readonly applicable: boolean;
@@ -307,11 +307,52 @@ export declare const change: (input?: ({
307
307
  readonly total_weight: number;
308
308
  readonly item_count: number;
309
309
  readonly items: readonly ({
310
- readonly key: string;
311
310
  readonly title: string;
311
+ readonly key: string;
312
312
  readonly url: string;
313
+ readonly image: string | null;
314
+ readonly quantity_rule?: {
315
+ readonly min: number;
316
+ readonly max: number | null;
317
+ readonly increment: number;
318
+ } | undefined;
313
319
  readonly price: number;
314
320
  readonly id: string | number;
321
+ readonly selling_plan_allocation: {
322
+ readonly price: number;
323
+ readonly price_adjustments: readonly {
324
+ readonly position: number;
325
+ readonly price: number;
326
+ }[];
327
+ readonly selling_plan: {
328
+ readonly description: string | null;
329
+ readonly name: string;
330
+ readonly id: string | number;
331
+ readonly options: readonly {
332
+ readonly value: string;
333
+ readonly name: string;
334
+ readonly position: number;
335
+ }[];
336
+ readonly recurring_deliveries: boolean;
337
+ readonly fixed_selling_plan: boolean;
338
+ readonly price_adjustments: readonly {
339
+ readonly value: string | number;
340
+ readonly value_type: "fixed_amount" | "percentage" | "price";
341
+ readonly position: number;
342
+ readonly order_count: number | null;
343
+ }[];
344
+ };
345
+ readonly compare_at_price: number;
346
+ readonly per_delivery_price: number;
347
+ } | null;
348
+ readonly unit_price_measurement?: {
349
+ readonly measured_type: "volume" | "weight" | "dimension";
350
+ readonly quantity_unit: string;
351
+ readonly quantity_value: number;
352
+ readonly reference_unit: string;
353
+ readonly reference_value: number;
354
+ } | undefined;
355
+ readonly variant_options: readonly string[];
315
356
  readonly properties: {
316
357
  readonly [x: string]: string | number | boolean | null;
317
358
  };
@@ -342,73 +383,32 @@ export declare const change: (input?: ({
342
383
  readonly url: string | null;
343
384
  readonly width: number | null;
344
385
  };
345
- readonly image: string | null;
346
386
  readonly handle: string;
347
387
  readonly requires_shipping: boolean;
348
388
  readonly product_type: string | null;
349
389
  readonly product_title: string;
350
390
  readonly product_description: string | null;
351
391
  readonly variant_title: string | null;
352
- readonly variant_options: readonly string[];
353
392
  readonly options_with_values: readonly {
354
393
  readonly value: string;
355
394
  readonly name: string;
356
395
  }[];
357
396
  readonly line_level_discount_allocations: readonly {
358
- readonly amount: number;
359
397
  readonly discount_application: {
398
+ readonly title: string;
399
+ readonly description: string | null;
360
400
  readonly value: number;
361
401
  readonly target_selection: "all" | "entitled" | "explicit";
362
402
  readonly target_type: "line_item" | "shipping_line";
363
- readonly title: string;
364
403
  readonly total_allocated_amount: number;
365
404
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
366
405
  readonly value_type: "fixed_amount" | "percentage";
367
- readonly description: string | null;
368
406
  };
407
+ readonly amount: number;
369
408
  }[];
370
409
  readonly line_level_total_discount: number;
371
- readonly quantity_rule?: {
372
- readonly min: number;
373
- readonly max: number | null;
374
- readonly increment: number;
375
- } | undefined;
376
410
  readonly has_components: boolean;
377
411
  readonly unit_price?: number | undefined;
378
- readonly unit_price_measurement?: {
379
- readonly measured_type: "volume" | "weight" | "dimension";
380
- readonly quantity_unit: string;
381
- readonly quantity_value: number;
382
- readonly reference_unit: string;
383
- readonly reference_value: number;
384
- } | undefined;
385
- readonly selling_plan_allocation: {
386
- readonly price: number;
387
- readonly price_adjustments: readonly {
388
- readonly position: number;
389
- readonly price: number;
390
- }[];
391
- readonly compare_at_price: number;
392
- readonly per_delivery_price: number;
393
- readonly selling_plan: {
394
- readonly description: string | null;
395
- readonly name: string;
396
- readonly id: string | number;
397
- readonly options: readonly {
398
- readonly value: string;
399
- readonly name: string;
400
- readonly position: number;
401
- }[];
402
- readonly recurring_deliveries: boolean;
403
- readonly fixed_selling_plan: boolean;
404
- readonly price_adjustments: readonly {
405
- readonly value: string | number;
406
- readonly value_type: "fixed_amount" | "percentage" | "price";
407
- readonly position: number;
408
- readonly order_count: number | null;
409
- }[];
410
- };
411
- } | null;
412
412
  } & {
413
413
  readonly properties_array: readonly {
414
414
  readonly key: string;
@@ -432,14 +432,14 @@ export declare const change: (input?: ({
432
432
  readonly currency: string;
433
433
  readonly items_subtotal_price: number;
434
434
  readonly cart_level_discount_applications: readonly {
435
+ readonly title: string;
436
+ readonly description: string | null;
435
437
  readonly value: number;
436
438
  readonly target_selection: "all" | "entitled" | "explicit";
437
439
  readonly target_type: "line_item" | "shipping_line";
438
- readonly title: string;
439
440
  readonly total_allocated_amount: number;
440
441
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
441
442
  readonly value_type: "fixed_amount" | "percentage";
442
- readonly description: string | null;
443
443
  }[];
444
444
  } & {
445
445
  readonly attributes_array: readonly {
@@ -484,6 +484,9 @@ export declare const clear: (input?: {
484
484
  } | undefined;
485
485
  } | {
486
486
  readonly data?: ({
487
+ readonly attributes: {
488
+ readonly [x: string]: string | number | boolean | null;
489
+ };
487
490
  readonly total_discount: number;
488
491
  readonly discounts: readonly {
489
492
  readonly title: string;
@@ -492,9 +495,6 @@ export declare const clear: (input?: {
492
495
  readonly requires_shipping: boolean;
493
496
  readonly token: string;
494
497
  readonly note: string | null;
495
- readonly attributes: {
496
- readonly [x: string]: string | number | boolean | null;
497
- };
498
498
  readonly discount_codes: readonly {
499
499
  readonly code: string;
500
500
  readonly applicable: boolean;
@@ -504,11 +504,52 @@ export declare const clear: (input?: {
504
504
  readonly total_weight: number;
505
505
  readonly item_count: number;
506
506
  readonly items: readonly ({
507
- readonly key: string;
508
507
  readonly title: string;
508
+ readonly key: string;
509
509
  readonly url: string;
510
+ readonly image: string | null;
511
+ readonly quantity_rule?: {
512
+ readonly min: number;
513
+ readonly max: number | null;
514
+ readonly increment: number;
515
+ } | undefined;
510
516
  readonly price: number;
511
517
  readonly id: string | number;
518
+ readonly selling_plan_allocation: {
519
+ readonly price: number;
520
+ readonly price_adjustments: readonly {
521
+ readonly position: number;
522
+ readonly price: number;
523
+ }[];
524
+ readonly selling_plan: {
525
+ readonly description: string | null;
526
+ readonly name: string;
527
+ readonly id: string | number;
528
+ readonly options: readonly {
529
+ readonly value: string;
530
+ readonly name: string;
531
+ readonly position: number;
532
+ }[];
533
+ readonly recurring_deliveries: boolean;
534
+ readonly fixed_selling_plan: boolean;
535
+ readonly price_adjustments: readonly {
536
+ readonly value: string | number;
537
+ readonly value_type: "fixed_amount" | "percentage" | "price";
538
+ readonly position: number;
539
+ readonly order_count: number | null;
540
+ }[];
541
+ };
542
+ readonly compare_at_price: number;
543
+ readonly per_delivery_price: number;
544
+ } | null;
545
+ readonly unit_price_measurement?: {
546
+ readonly measured_type: "volume" | "weight" | "dimension";
547
+ readonly quantity_unit: string;
548
+ readonly quantity_value: number;
549
+ readonly reference_unit: string;
550
+ readonly reference_value: number;
551
+ } | undefined;
552
+ readonly variant_options: readonly string[];
512
553
  readonly properties: {
513
554
  readonly [x: string]: string | number | boolean | null;
514
555
  };
@@ -539,73 +580,32 @@ export declare const clear: (input?: {
539
580
  readonly url: string | null;
540
581
  readonly width: number | null;
541
582
  };
542
- readonly image: string | null;
543
583
  readonly handle: string;
544
584
  readonly requires_shipping: boolean;
545
585
  readonly product_type: string | null;
546
586
  readonly product_title: string;
547
587
  readonly product_description: string | null;
548
588
  readonly variant_title: string | null;
549
- readonly variant_options: readonly string[];
550
589
  readonly options_with_values: readonly {
551
590
  readonly value: string;
552
591
  readonly name: string;
553
592
  }[];
554
593
  readonly line_level_discount_allocations: readonly {
555
- readonly amount: number;
556
594
  readonly discount_application: {
595
+ readonly title: string;
596
+ readonly description: string | null;
557
597
  readonly value: number;
558
598
  readonly target_selection: "all" | "entitled" | "explicit";
559
599
  readonly target_type: "line_item" | "shipping_line";
560
- readonly title: string;
561
600
  readonly total_allocated_amount: number;
562
601
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
563
602
  readonly value_type: "fixed_amount" | "percentage";
564
- readonly description: string | null;
565
603
  };
604
+ readonly amount: number;
566
605
  }[];
567
606
  readonly line_level_total_discount: number;
568
- readonly quantity_rule?: {
569
- readonly min: number;
570
- readonly max: number | null;
571
- readonly increment: number;
572
- } | undefined;
573
607
  readonly has_components: boolean;
574
608
  readonly unit_price?: number | undefined;
575
- readonly unit_price_measurement?: {
576
- readonly measured_type: "volume" | "weight" | "dimension";
577
- readonly quantity_unit: string;
578
- readonly quantity_value: number;
579
- readonly reference_unit: string;
580
- readonly reference_value: number;
581
- } | undefined;
582
- readonly selling_plan_allocation: {
583
- readonly price: number;
584
- readonly price_adjustments: readonly {
585
- readonly position: number;
586
- readonly price: number;
587
- }[];
588
- readonly compare_at_price: number;
589
- readonly per_delivery_price: number;
590
- readonly selling_plan: {
591
- readonly description: string | null;
592
- readonly name: string;
593
- readonly id: string | number;
594
- readonly options: readonly {
595
- readonly value: string;
596
- readonly name: string;
597
- readonly position: number;
598
- }[];
599
- readonly recurring_deliveries: boolean;
600
- readonly fixed_selling_plan: boolean;
601
- readonly price_adjustments: readonly {
602
- readonly value: string | number;
603
- readonly value_type: "fixed_amount" | "percentage" | "price";
604
- readonly position: number;
605
- readonly order_count: number | null;
606
- }[];
607
- };
608
- } | null;
609
609
  } & {
610
610
  readonly properties_array: readonly {
611
611
  readonly key: string;
@@ -629,14 +629,14 @@ export declare const clear: (input?: {
629
629
  readonly currency: string;
630
630
  readonly items_subtotal_price: number;
631
631
  readonly cart_level_discount_applications: readonly {
632
+ readonly title: string;
633
+ readonly description: string | null;
632
634
  readonly value: number;
633
635
  readonly target_selection: "all" | "entitled" | "explicit";
634
636
  readonly target_type: "line_item" | "shipping_line";
635
- readonly title: string;
636
637
  readonly total_allocated_amount: number;
637
638
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
638
639
  readonly value_type: "fixed_amount" | "percentage";
639
- readonly description: string | null;
640
640
  }[];
641
641
  } & {
642
642
  readonly attributes_array: readonly {
@@ -681,6 +681,9 @@ export declare const get: (input?: {
681
681
  } | undefined;
682
682
  } | {
683
683
  readonly data?: ({
684
+ readonly attributes: {
685
+ readonly [x: string]: string | number | boolean | null;
686
+ };
684
687
  readonly total_discount: number;
685
688
  readonly discounts: readonly {
686
689
  readonly title: string;
@@ -689,9 +692,6 @@ export declare const get: (input?: {
689
692
  readonly requires_shipping: boolean;
690
693
  readonly token: string;
691
694
  readonly note: string | null;
692
- readonly attributes: {
693
- readonly [x: string]: string | number | boolean | null;
694
- };
695
695
  readonly discount_codes: readonly {
696
696
  readonly code: string;
697
697
  readonly applicable: boolean;
@@ -701,11 +701,52 @@ export declare const get: (input?: {
701
701
  readonly total_weight: number;
702
702
  readonly item_count: number;
703
703
  readonly items: readonly ({
704
- readonly key: string;
705
704
  readonly title: string;
705
+ readonly key: string;
706
706
  readonly url: string;
707
+ readonly image: string | null;
708
+ readonly quantity_rule?: {
709
+ readonly min: number;
710
+ readonly max: number | null;
711
+ readonly increment: number;
712
+ } | undefined;
707
713
  readonly price: number;
708
714
  readonly id: string | number;
715
+ readonly selling_plan_allocation: {
716
+ readonly price: number;
717
+ readonly price_adjustments: readonly {
718
+ readonly position: number;
719
+ readonly price: number;
720
+ }[];
721
+ readonly selling_plan: {
722
+ readonly description: string | null;
723
+ readonly name: string;
724
+ readonly id: string | number;
725
+ readonly options: readonly {
726
+ readonly value: string;
727
+ readonly name: string;
728
+ readonly position: number;
729
+ }[];
730
+ readonly recurring_deliveries: boolean;
731
+ readonly fixed_selling_plan: boolean;
732
+ readonly price_adjustments: readonly {
733
+ readonly value: string | number;
734
+ readonly value_type: "fixed_amount" | "percentage" | "price";
735
+ readonly position: number;
736
+ readonly order_count: number | null;
737
+ }[];
738
+ };
739
+ readonly compare_at_price: number;
740
+ readonly per_delivery_price: number;
741
+ } | null;
742
+ readonly unit_price_measurement?: {
743
+ readonly measured_type: "volume" | "weight" | "dimension";
744
+ readonly quantity_unit: string;
745
+ readonly quantity_value: number;
746
+ readonly reference_unit: string;
747
+ readonly reference_value: number;
748
+ } | undefined;
749
+ readonly variant_options: readonly string[];
709
750
  readonly properties: {
710
751
  readonly [x: string]: string | number | boolean | null;
711
752
  };
@@ -736,73 +777,32 @@ export declare const get: (input?: {
736
777
  readonly url: string | null;
737
778
  readonly width: number | null;
738
779
  };
739
- readonly image: string | null;
740
780
  readonly handle: string;
741
781
  readonly requires_shipping: boolean;
742
782
  readonly product_type: string | null;
743
783
  readonly product_title: string;
744
784
  readonly product_description: string | null;
745
785
  readonly variant_title: string | null;
746
- readonly variant_options: readonly string[];
747
786
  readonly options_with_values: readonly {
748
787
  readonly value: string;
749
788
  readonly name: string;
750
789
  }[];
751
790
  readonly line_level_discount_allocations: readonly {
752
- readonly amount: number;
753
791
  readonly discount_application: {
792
+ readonly title: string;
793
+ readonly description: string | null;
754
794
  readonly value: number;
755
795
  readonly target_selection: "all" | "entitled" | "explicit";
756
796
  readonly target_type: "line_item" | "shipping_line";
757
- readonly title: string;
758
797
  readonly total_allocated_amount: number;
759
798
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
760
799
  readonly value_type: "fixed_amount" | "percentage";
761
- readonly description: string | null;
762
800
  };
801
+ readonly amount: number;
763
802
  }[];
764
803
  readonly line_level_total_discount: number;
765
- readonly quantity_rule?: {
766
- readonly min: number;
767
- readonly max: number | null;
768
- readonly increment: number;
769
- } | undefined;
770
804
  readonly has_components: boolean;
771
805
  readonly unit_price?: number | undefined;
772
- readonly unit_price_measurement?: {
773
- readonly measured_type: "volume" | "weight" | "dimension";
774
- readonly quantity_unit: string;
775
- readonly quantity_value: number;
776
- readonly reference_unit: string;
777
- readonly reference_value: number;
778
- } | undefined;
779
- readonly selling_plan_allocation: {
780
- readonly price: number;
781
- readonly price_adjustments: readonly {
782
- readonly position: number;
783
- readonly price: number;
784
- }[];
785
- readonly compare_at_price: number;
786
- readonly per_delivery_price: number;
787
- readonly selling_plan: {
788
- readonly description: string | null;
789
- readonly name: string;
790
- readonly id: string | number;
791
- readonly options: readonly {
792
- readonly value: string;
793
- readonly name: string;
794
- readonly position: number;
795
- }[];
796
- readonly recurring_deliveries: boolean;
797
- readonly fixed_selling_plan: boolean;
798
- readonly price_adjustments: readonly {
799
- readonly value: string | number;
800
- readonly value_type: "fixed_amount" | "percentage" | "price";
801
- readonly position: number;
802
- readonly order_count: number | null;
803
- }[];
804
- };
805
- } | null;
806
806
  } & {
807
807
  readonly properties_array: readonly {
808
808
  readonly key: string;
@@ -826,14 +826,14 @@ export declare const get: (input?: {
826
826
  readonly currency: string;
827
827
  readonly items_subtotal_price: number;
828
828
  readonly cart_level_discount_applications: readonly {
829
+ readonly title: string;
830
+ readonly description: string | null;
829
831
  readonly value: number;
830
832
  readonly target_selection: "all" | "entitled" | "explicit";
831
833
  readonly target_type: "line_item" | "shipping_line";
832
- readonly title: string;
833
834
  readonly total_allocated_amount: number;
834
835
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
835
836
  readonly value_type: "fixed_amount" | "percentage";
836
- readonly description: string | null;
837
837
  }[];
838
838
  } & {
839
839
  readonly attributes_array: readonly {
@@ -865,14 +865,14 @@ export declare namespace update {
865
865
  type Input = UpdateInput;
866
866
  }
867
867
  export declare const update: (input?: ({
868
- readonly note?: string | null | undefined;
869
868
  readonly attributes?: {
870
869
  readonly [x: string]: string | number | boolean | null;
871
870
  } | undefined;
871
+ readonly discount?: readonly string[] | undefined;
872
+ readonly note?: string | null | undefined;
872
873
  readonly updates?: {
873
874
  readonly [x: string]: number;
874
875
  } | readonly number[] | undefined;
875
- readonly discount?: readonly string[] | undefined;
876
876
  } & {
877
877
  readonly sections?: readonly string[] | undefined;
878
878
  readonly sections_url?: string | undefined;
@@ -887,6 +887,9 @@ export declare const update: (input?: ({
887
887
  } | undefined;
888
888
  } | {
889
889
  readonly data?: ({
890
+ readonly attributes: {
891
+ readonly [x: string]: string | number | boolean | null;
892
+ };
890
893
  readonly total_discount: number;
891
894
  readonly discounts: readonly {
892
895
  readonly title: string;
@@ -895,9 +898,6 @@ export declare const update: (input?: ({
895
898
  readonly requires_shipping: boolean;
896
899
  readonly token: string;
897
900
  readonly note: string | null;
898
- readonly attributes: {
899
- readonly [x: string]: string | number | boolean | null;
900
- };
901
901
  readonly discount_codes: readonly {
902
902
  readonly code: string;
903
903
  readonly applicable: boolean;
@@ -907,11 +907,52 @@ export declare const update: (input?: ({
907
907
  readonly total_weight: number;
908
908
  readonly item_count: number;
909
909
  readonly items: readonly ({
910
- readonly key: string;
911
910
  readonly title: string;
911
+ readonly key: string;
912
912
  readonly url: string;
913
+ readonly image: string | null;
914
+ readonly quantity_rule?: {
915
+ readonly min: number;
916
+ readonly max: number | null;
917
+ readonly increment: number;
918
+ } | undefined;
913
919
  readonly price: number;
914
920
  readonly id: string | number;
921
+ readonly selling_plan_allocation: {
922
+ readonly price: number;
923
+ readonly price_adjustments: readonly {
924
+ readonly position: number;
925
+ readonly price: number;
926
+ }[];
927
+ readonly selling_plan: {
928
+ readonly description: string | null;
929
+ readonly name: string;
930
+ readonly id: string | number;
931
+ readonly options: readonly {
932
+ readonly value: string;
933
+ readonly name: string;
934
+ readonly position: number;
935
+ }[];
936
+ readonly recurring_deliveries: boolean;
937
+ readonly fixed_selling_plan: boolean;
938
+ readonly price_adjustments: readonly {
939
+ readonly value: string | number;
940
+ readonly value_type: "fixed_amount" | "percentage" | "price";
941
+ readonly position: number;
942
+ readonly order_count: number | null;
943
+ }[];
944
+ };
945
+ readonly compare_at_price: number;
946
+ readonly per_delivery_price: number;
947
+ } | null;
948
+ readonly unit_price_measurement?: {
949
+ readonly measured_type: "volume" | "weight" | "dimension";
950
+ readonly quantity_unit: string;
951
+ readonly quantity_value: number;
952
+ readonly reference_unit: string;
953
+ readonly reference_value: number;
954
+ } | undefined;
955
+ readonly variant_options: readonly string[];
915
956
  readonly properties: {
916
957
  readonly [x: string]: string | number | boolean | null;
917
958
  };
@@ -942,73 +983,32 @@ export declare const update: (input?: ({
942
983
  readonly url: string | null;
943
984
  readonly width: number | null;
944
985
  };
945
- readonly image: string | null;
946
986
  readonly handle: string;
947
987
  readonly requires_shipping: boolean;
948
988
  readonly product_type: string | null;
949
989
  readonly product_title: string;
950
990
  readonly product_description: string | null;
951
991
  readonly variant_title: string | null;
952
- readonly variant_options: readonly string[];
953
992
  readonly options_with_values: readonly {
954
993
  readonly value: string;
955
994
  readonly name: string;
956
995
  }[];
957
996
  readonly line_level_discount_allocations: readonly {
958
- readonly amount: number;
959
997
  readonly discount_application: {
998
+ readonly title: string;
999
+ readonly description: string | null;
960
1000
  readonly value: number;
961
1001
  readonly target_selection: "all" | "entitled" | "explicit";
962
1002
  readonly target_type: "line_item" | "shipping_line";
963
- readonly title: string;
964
1003
  readonly total_allocated_amount: number;
965
1004
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
966
1005
  readonly value_type: "fixed_amount" | "percentage";
967
- readonly description: string | null;
968
1006
  };
1007
+ readonly amount: number;
969
1008
  }[];
970
1009
  readonly line_level_total_discount: number;
971
- readonly quantity_rule?: {
972
- readonly min: number;
973
- readonly max: number | null;
974
- readonly increment: number;
975
- } | undefined;
976
1010
  readonly has_components: boolean;
977
1011
  readonly unit_price?: number | undefined;
978
- readonly unit_price_measurement?: {
979
- readonly measured_type: "volume" | "weight" | "dimension";
980
- readonly quantity_unit: string;
981
- readonly quantity_value: number;
982
- readonly reference_unit: string;
983
- readonly reference_value: number;
984
- } | undefined;
985
- readonly selling_plan_allocation: {
986
- readonly price: number;
987
- readonly price_adjustments: readonly {
988
- readonly position: number;
989
- readonly price: number;
990
- }[];
991
- readonly compare_at_price: number;
992
- readonly per_delivery_price: number;
993
- readonly selling_plan: {
994
- readonly description: string | null;
995
- readonly name: string;
996
- readonly id: string | number;
997
- readonly options: readonly {
998
- readonly value: string;
999
- readonly name: string;
1000
- readonly position: number;
1001
- }[];
1002
- readonly recurring_deliveries: boolean;
1003
- readonly fixed_selling_plan: boolean;
1004
- readonly price_adjustments: readonly {
1005
- readonly value: string | number;
1006
- readonly value_type: "fixed_amount" | "percentage" | "price";
1007
- readonly position: number;
1008
- readonly order_count: number | null;
1009
- }[];
1010
- };
1011
- } | null;
1012
1012
  } & {
1013
1013
  readonly properties_array: readonly {
1014
1014
  readonly key: string;
@@ -1032,14 +1032,14 @@ export declare const update: (input?: ({
1032
1032
  readonly currency: string;
1033
1033
  readonly items_subtotal_price: number;
1034
1034
  readonly cart_level_discount_applications: readonly {
1035
+ readonly title: string;
1036
+ readonly description: string | null;
1035
1037
  readonly value: number;
1036
1038
  readonly target_selection: "all" | "entitled" | "explicit";
1037
1039
  readonly target_type: "line_item" | "shipping_line";
1038
- readonly title: string;
1039
1040
  readonly total_allocated_amount: number;
1040
1041
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1041
1042
  readonly value_type: "fixed_amount" | "percentage";
1042
- readonly description: string | null;
1043
1043
  }[];
1044
1044
  } & {
1045
1045
  readonly attributes_array: readonly {