@moonbase.sh/vue 0.3.19 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -180,8 +180,8 @@ declare function useBundles(context?: StorefrontContext): Ref<StorefrontBundle[]
180
180
 
181
181
  declare function useCart(context?: StorefrontContext): {
182
182
  items: vue.ComputedRef<({
183
- type: "Product";
184
183
  id: string;
184
+ type: "Product";
185
185
  quantity: number;
186
186
  productId: string;
187
187
  variationId: string;
@@ -207,16 +207,16 @@ declare function useCart(context?: StorefrontContext): {
207
207
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
208
208
  };
209
209
  discount?: {
210
- type: "PercentageOffDiscount";
211
210
  name: string;
211
+ type: "PercentageOffDiscount";
212
212
  percentage: number;
213
213
  isExclusive: boolean;
214
214
  description?: string | undefined;
215
215
  total?: Record<string, number> | undefined;
216
216
  recurringPaymentUseCount?: number | undefined;
217
217
  } | {
218
- type: "FlatAmountOffDiscount";
219
218
  name: string;
219
+ type: "FlatAmountOffDiscount";
220
220
  isExclusive: boolean;
221
221
  description?: string | undefined;
222
222
  total?: Record<string, number> | undefined;
@@ -229,24 +229,24 @@ declare function useCart(context?: StorefrontContext): {
229
229
  }[] | null | undefined;
230
230
  } | undefined;
231
231
  appliedDiscount?: {
232
- type: "PercentageOffDiscount";
233
232
  name: string;
233
+ type: "PercentageOffDiscount";
234
234
  percentage: number;
235
235
  isExclusive: boolean;
236
236
  description?: string | undefined;
237
237
  total?: Record<string, number> | undefined;
238
238
  recurringPaymentUseCount?: number | undefined;
239
239
  } | {
240
- type: "FlatAmountOffDiscount";
241
240
  name: string;
241
+ type: "FlatAmountOffDiscount";
242
242
  isExclusive: boolean;
243
243
  description?: string | undefined;
244
244
  total?: Record<string, number> | undefined;
245
245
  recurringPaymentUseCount?: number | undefined;
246
246
  } | undefined;
247
247
  } | {
248
- type: "Bundle";
249
248
  id: string;
249
+ type: "Bundle";
250
250
  quantity: number;
251
251
  variationId: string;
252
252
  bundleId: string;
@@ -281,16 +281,16 @@ declare function useCart(context?: StorefrontContext): {
281
281
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
282
282
  };
283
283
  discount?: {
284
- type: "PercentageOffDiscount";
285
284
  name: string;
285
+ type: "PercentageOffDiscount";
286
286
  percentage: number;
287
287
  isExclusive: boolean;
288
288
  description?: string | undefined;
289
289
  total?: Record<string, number> | undefined;
290
290
  recurringPaymentUseCount?: number | undefined;
291
291
  } | {
292
- type: "FlatAmountOffDiscount";
293
292
  name: string;
293
+ type: "FlatAmountOffDiscount";
294
294
  isExclusive: boolean;
295
295
  description?: string | undefined;
296
296
  total?: Record<string, number> | undefined;
@@ -303,16 +303,16 @@ declare function useCart(context?: StorefrontContext): {
303
303
  }[] | null | undefined;
304
304
  } | undefined;
305
305
  appliedDiscount?: {
306
- type: "PercentageOffDiscount";
307
306
  name: string;
307
+ type: "PercentageOffDiscount";
308
308
  percentage: number;
309
309
  isExclusive: boolean;
310
310
  description?: string | undefined;
311
311
  total?: Record<string, number> | undefined;
312
312
  recurringPaymentUseCount?: number | undefined;
313
313
  } | {
314
- type: "FlatAmountOffDiscount";
315
314
  name: string;
315
+ type: "FlatAmountOffDiscount";
316
316
  isExclusive: boolean;
317
317
  description?: string | undefined;
318
318
  total?: Record<string, number> | undefined;
@@ -351,8 +351,8 @@ declare function useCheckout(items: CheckoutItem[], options: {
351
351
 
352
352
  declare function useInventory(context?: StorefrontContext): {
353
353
  getLicenses: (nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
354
- status: _moonbase_sh_storefront_api.LicenseStatus;
355
354
  id: string;
355
+ status: _moonbase_sh_storefront_api.LicenseStatus;
356
356
  product: {
357
357
  id: string;
358
358
  name: string;
@@ -373,15 +373,15 @@ declare function useInventory(context?: StorefrontContext): {
373
373
  prerelease?: boolean | undefined;
374
374
  releaseDescription?: string | undefined;
375
375
  downloads?: {
376
- path: string | null;
377
376
  name: string;
377
+ path: string | null;
378
378
  key: string;
379
379
  platform: _moonbase_sh_storefront_api.Platform;
380
380
  size: number;
381
381
  manifest?: {
382
382
  files: {
383
- path: string;
384
383
  name: string;
384
+ path: string;
385
385
  }[];
386
386
  licensePath: string | null;
387
387
  } | undefined;
@@ -394,9 +394,9 @@ declare function useInventory(context?: StorefrontContext): {
394
394
  externalFulfillment?: string | undefined;
395
395
  }>>;
396
396
  getLicenseActivations: (licenseId: string, nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
397
- status: _moonbase_sh_storefront_api.ActivationStatus;
398
397
  id: string;
399
398
  name: string;
399
+ status: _moonbase_sh_storefront_api.ActivationStatus;
400
400
  licenseId: string;
401
401
  activationMethod: ActivationMethod;
402
402
  firstValidatedAt: Date;
@@ -422,15 +422,15 @@ declare function useInventory(context?: StorefrontContext): {
422
422
  prerelease?: boolean | undefined;
423
423
  releaseDescription?: string | undefined;
424
424
  downloads?: {
425
- path: string | null;
426
425
  name: string;
426
+ path: string | null;
427
427
  key: string;
428
428
  platform: _moonbase_sh_storefront_api.Platform;
429
429
  size: number;
430
430
  manifest?: {
431
431
  files: {
432
- path: string;
433
432
  name: string;
433
+ path: string;
434
434
  }[];
435
435
  licensePath: string | null;
436
436
  } | undefined;
@@ -456,23 +456,23 @@ declare function useInventory(context?: StorefrontContext): {
456
456
  prerelease?: boolean | undefined;
457
457
  releaseDescription?: string | undefined;
458
458
  downloads?: {
459
- path: string | null;
460
459
  name: string;
460
+ path: string | null;
461
461
  key: string;
462
462
  platform: _moonbase_sh_storefront_api.Platform;
463
463
  size: number;
464
464
  manifest?: {
465
465
  files: {
466
- path: string;
467
466
  name: string;
467
+ path: string;
468
468
  }[];
469
469
  licensePath: string | null;
470
470
  } | undefined;
471
471
  }[] | undefined;
472
472
  }>>;
473
473
  getProductLicenses: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
474
- status: _moonbase_sh_storefront_api.LicenseStatus;
475
474
  id: string;
475
+ status: _moonbase_sh_storefront_api.LicenseStatus;
476
476
  product: {
477
477
  id: string;
478
478
  name: string;
@@ -493,15 +493,15 @@ declare function useInventory(context?: StorefrontContext): {
493
493
  prerelease?: boolean | undefined;
494
494
  releaseDescription?: string | undefined;
495
495
  downloads?: {
496
- path: string | null;
497
496
  name: string;
497
+ path: string | null;
498
498
  key: string;
499
499
  platform: _moonbase_sh_storefront_api.Platform;
500
500
  size: number;
501
501
  manifest?: {
502
502
  files: {
503
- path: string;
504
503
  name: string;
504
+ path: string;
505
505
  }[];
506
506
  licensePath: string | null;
507
507
  } | undefined;
@@ -514,9 +514,9 @@ declare function useInventory(context?: StorefrontContext): {
514
514
  externalFulfillment?: string | undefined;
515
515
  }>>;
516
516
  getProductActivations: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
517
- status: _moonbase_sh_storefront_api.ActivationStatus;
518
517
  id: string;
519
518
  name: string;
519
+ status: _moonbase_sh_storefront_api.ActivationStatus;
520
520
  licenseId: string;
521
521
  activationMethod: ActivationMethod;
522
522
  firstValidatedAt: Date;
@@ -525,8 +525,8 @@ declare function useInventory(context?: StorefrontContext): {
525
525
  revokeActivation: (activation: Activation) => Promise<void>;
526
526
  activateProduct: (deviceToken: string, activationMethod: ActivationMethod) => Promise<{
527
527
  license: {
528
- status: _moonbase_sh_storefront_api.LicenseStatus;
529
528
  id: string;
529
+ status: _moonbase_sh_storefront_api.LicenseStatus;
530
530
  product: {
531
531
  id: string;
532
532
  name: string;
@@ -547,15 +547,15 @@ declare function useInventory(context?: StorefrontContext): {
547
547
  prerelease?: boolean | undefined;
548
548
  releaseDescription?: string | undefined;
549
549
  downloads?: {
550
- path: string | null;
551
550
  name: string;
551
+ path: string | null;
552
552
  key: string;
553
553
  platform: _moonbase_sh_storefront_api.Platform;
554
554
  size: number;
555
555
  manifest?: {
556
556
  files: {
557
- path: string;
558
557
  name: string;
558
+ path: string;
559
559
  }[];
560
560
  licensePath: string | null;
561
561
  } | undefined;
@@ -571,8 +571,8 @@ declare function useInventory(context?: StorefrontContext): {
571
571
  }>;
572
572
  downloadProduct: (download: Download) => Promise<void>;
573
573
  getSubscriptions: (nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
574
- status: _moonbase_sh_storefront_api.SubscriptionStatus;
575
574
  id: string;
575
+ status: _moonbase_sh_storefront_api.SubscriptionStatus;
576
576
  expiresAt: Date;
577
577
  total: {
578
578
  discount: {
@@ -604,9 +604,9 @@ declare function useInventory(context?: StorefrontContext): {
604
604
  type: "Product";
605
605
  quantity: number;
606
606
  product: {
607
- type: "product";
608
607
  id: string;
609
608
  name: string;
609
+ type: "product";
610
610
  description: string;
611
611
  tagline: string;
612
612
  iconUrl: string | null;
@@ -614,15 +614,15 @@ declare function useInventory(context?: StorefrontContext): {
614
614
  website?: string | null | undefined;
615
615
  currentVersion?: string | undefined;
616
616
  downloads?: {
617
- path: string | null;
618
617
  name: string;
618
+ path: string | null;
619
619
  key: string;
620
620
  platform: _moonbase_sh_storefront_api.Platform;
621
621
  size: number;
622
622
  manifest?: {
623
623
  files: {
624
- path: string;
625
624
  name: string;
625
+ path: string;
626
626
  }[];
627
627
  licensePath: string | null;
628
628
  } | undefined;
@@ -640,16 +640,16 @@ declare function useInventory(context?: StorefrontContext): {
640
640
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
641
641
  };
642
642
  discount?: {
643
- type: "PercentageOffDiscount";
644
643
  name: string;
644
+ type: "PercentageOffDiscount";
645
645
  percentage: number;
646
646
  isExclusive: boolean;
647
647
  description?: string | undefined;
648
648
  total?: Record<string, number> | undefined;
649
649
  recurringPaymentUseCount?: number | undefined;
650
650
  } | {
651
- type: "FlatAmountOffDiscount";
652
651
  name: string;
652
+ type: "FlatAmountOffDiscount";
653
653
  isExclusive: boolean;
654
654
  description?: string | undefined;
655
655
  total?: Record<string, number> | undefined;
@@ -674,16 +674,16 @@ declare function useInventory(context?: StorefrontContext): {
674
674
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
675
675
  };
676
676
  discount?: {
677
- type: "PercentageOffDiscount";
678
677
  name: string;
678
+ type: "PercentageOffDiscount";
679
679
  percentage: number;
680
680
  isExclusive: boolean;
681
681
  description?: string | undefined;
682
682
  total?: Record<string, number> | undefined;
683
683
  recurringPaymentUseCount?: number | undefined;
684
684
  } | {
685
- type: "FlatAmountOffDiscount";
686
685
  name: string;
686
+ type: "FlatAmountOffDiscount";
687
687
  isExclusive: boolean;
688
688
  description?: string | undefined;
689
689
  total?: Record<string, number> | undefined;
@@ -700,18 +700,18 @@ declare function useInventory(context?: StorefrontContext): {
700
700
  type: "Bundle";
701
701
  quantity: number;
702
702
  bundle: {
703
- type: "bundle";
704
703
  id: string;
705
704
  name: string;
705
+ type: "bundle";
706
706
  description: string;
707
707
  tagline: string;
708
708
  iconUrl: string | null;
709
709
  owned: boolean;
710
710
  partial: boolean;
711
711
  products: ({
712
- type: "product";
713
712
  id: string;
714
713
  name: string;
714
+ type: "product";
715
715
  description: string;
716
716
  tagline: string;
717
717
  iconUrl: string | null;
@@ -719,15 +719,15 @@ declare function useInventory(context?: StorefrontContext): {
719
719
  website?: string | null | undefined;
720
720
  currentVersion?: string | undefined;
721
721
  downloads?: {
722
- path: string | null;
723
722
  name: string;
723
+ path: string | null;
724
724
  key: string;
725
725
  platform: _moonbase_sh_storefront_api.Platform;
726
726
  size: number;
727
727
  manifest?: {
728
728
  files: {
729
- path: string;
730
729
  name: string;
730
+ path: string;
731
731
  }[];
732
732
  licensePath: string | null;
733
733
  } | undefined;
@@ -745,16 +745,16 @@ declare function useInventory(context?: StorefrontContext): {
745
745
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
746
746
  };
747
747
  discount?: {
748
- type: "PercentageOffDiscount";
749
748
  name: string;
749
+ type: "PercentageOffDiscount";
750
750
  percentage: number;
751
751
  isExclusive: boolean;
752
752
  description?: string | undefined;
753
753
  total?: Record<string, number> | undefined;
754
754
  recurringPaymentUseCount?: number | undefined;
755
755
  } | {
756
- type: "FlatAmountOffDiscount";
757
756
  name: string;
757
+ type: "FlatAmountOffDiscount";
758
758
  isExclusive: boolean;
759
759
  description?: string | undefined;
760
760
  total?: Record<string, number> | undefined;
@@ -779,16 +779,16 @@ declare function useInventory(context?: StorefrontContext): {
779
779
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
780
780
  };
781
781
  discount?: {
782
- type: "PercentageOffDiscount";
783
782
  name: string;
783
+ type: "PercentageOffDiscount";
784
784
  percentage: number;
785
785
  isExclusive: boolean;
786
786
  description?: string | undefined;
787
787
  total?: Record<string, number> | undefined;
788
788
  recurringPaymentUseCount?: number | undefined;
789
789
  } | {
790
- type: "FlatAmountOffDiscount";
791
790
  name: string;
791
+ type: "FlatAmountOffDiscount";
792
792
  isExclusive: boolean;
793
793
  description?: string | undefined;
794
794
  total?: Record<string, number> | undefined;
@@ -816,16 +816,16 @@ declare function useInventory(context?: StorefrontContext): {
816
816
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
817
817
  };
818
818
  discount?: {
819
- type: "PercentageOffDiscount";
820
819
  name: string;
820
+ type: "PercentageOffDiscount";
821
821
  percentage: number;
822
822
  isExclusive: boolean;
823
823
  description?: string | undefined;
824
824
  total?: Record<string, number> | undefined;
825
825
  recurringPaymentUseCount?: number | undefined;
826
826
  } | {
827
- type: "FlatAmountOffDiscount";
828
827
  name: string;
828
+ type: "FlatAmountOffDiscount";
829
829
  isExclusive: boolean;
830
830
  description?: string | undefined;
831
831
  total?: Record<string, number> | undefined;
@@ -850,16 +850,16 @@ declare function useInventory(context?: StorefrontContext): {
850
850
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
851
851
  };
852
852
  discount?: {
853
- type: "PercentageOffDiscount";
854
853
  name: string;
854
+ type: "PercentageOffDiscount";
855
855
  percentage: number;
856
856
  isExclusive: boolean;
857
857
  description?: string | undefined;
858
858
  total?: Record<string, number> | undefined;
859
859
  recurringPaymentUseCount?: number | undefined;
860
860
  } | {
861
- type: "FlatAmountOffDiscount";
862
861
  name: string;
862
+ type: "FlatAmountOffDiscount";
863
863
  isExclusive: boolean;
864
864
  description?: string | undefined;
865
865
  total?: Record<string, number> | undefined;
@@ -875,8 +875,8 @@ declare function useInventory(context?: StorefrontContext): {
875
875
  };
876
876
  }>>;
877
877
  getSubscription: (subscriptionId: string) => Promise<{
878
- status: _moonbase_sh_storefront_api.SubscriptionStatus;
879
878
  id: string;
879
+ status: _moonbase_sh_storefront_api.SubscriptionStatus;
880
880
  expiresAt: Date;
881
881
  total: {
882
882
  discount: {
@@ -908,9 +908,9 @@ declare function useInventory(context?: StorefrontContext): {
908
908
  type: "Product";
909
909
  quantity: number;
910
910
  product: {
911
- type: "product";
912
911
  id: string;
913
912
  name: string;
913
+ type: "product";
914
914
  description: string;
915
915
  tagline: string;
916
916
  iconUrl: string | null;
@@ -918,15 +918,15 @@ declare function useInventory(context?: StorefrontContext): {
918
918
  website?: string | null | undefined;
919
919
  currentVersion?: string | undefined;
920
920
  downloads?: {
921
- path: string | null;
922
921
  name: string;
922
+ path: string | null;
923
923
  key: string;
924
924
  platform: _moonbase_sh_storefront_api.Platform;
925
925
  size: number;
926
926
  manifest?: {
927
927
  files: {
928
- path: string;
929
928
  name: string;
929
+ path: string;
930
930
  }[];
931
931
  licensePath: string | null;
932
932
  } | undefined;
@@ -944,16 +944,16 @@ declare function useInventory(context?: StorefrontContext): {
944
944
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
945
945
  };
946
946
  discount?: {
947
- type: "PercentageOffDiscount";
948
947
  name: string;
948
+ type: "PercentageOffDiscount";
949
949
  percentage: number;
950
950
  isExclusive: boolean;
951
951
  description?: string | undefined;
952
952
  total?: Record<string, number> | undefined;
953
953
  recurringPaymentUseCount?: number | undefined;
954
954
  } | {
955
- type: "FlatAmountOffDiscount";
956
955
  name: string;
956
+ type: "FlatAmountOffDiscount";
957
957
  isExclusive: boolean;
958
958
  description?: string | undefined;
959
959
  total?: Record<string, number> | undefined;
@@ -978,16 +978,16 @@ declare function useInventory(context?: StorefrontContext): {
978
978
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
979
979
  };
980
980
  discount?: {
981
- type: "PercentageOffDiscount";
982
981
  name: string;
982
+ type: "PercentageOffDiscount";
983
983
  percentage: number;
984
984
  isExclusive: boolean;
985
985
  description?: string | undefined;
986
986
  total?: Record<string, number> | undefined;
987
987
  recurringPaymentUseCount?: number | undefined;
988
988
  } | {
989
- type: "FlatAmountOffDiscount";
990
989
  name: string;
990
+ type: "FlatAmountOffDiscount";
991
991
  isExclusive: boolean;
992
992
  description?: string | undefined;
993
993
  total?: Record<string, number> | undefined;
@@ -1004,18 +1004,18 @@ declare function useInventory(context?: StorefrontContext): {
1004
1004
  type: "Bundle";
1005
1005
  quantity: number;
1006
1006
  bundle: {
1007
- type: "bundle";
1008
1007
  id: string;
1009
1008
  name: string;
1009
+ type: "bundle";
1010
1010
  description: string;
1011
1011
  tagline: string;
1012
1012
  iconUrl: string | null;
1013
1013
  owned: boolean;
1014
1014
  partial: boolean;
1015
1015
  products: ({
1016
- type: "product";
1017
1016
  id: string;
1018
1017
  name: string;
1018
+ type: "product";
1019
1019
  description: string;
1020
1020
  tagline: string;
1021
1021
  iconUrl: string | null;
@@ -1023,15 +1023,15 @@ declare function useInventory(context?: StorefrontContext): {
1023
1023
  website?: string | null | undefined;
1024
1024
  currentVersion?: string | undefined;
1025
1025
  downloads?: {
1026
- path: string | null;
1027
1026
  name: string;
1027
+ path: string | null;
1028
1028
  key: string;
1029
1029
  platform: _moonbase_sh_storefront_api.Platform;
1030
1030
  size: number;
1031
1031
  manifest?: {
1032
1032
  files: {
1033
- path: string;
1034
1033
  name: string;
1034
+ path: string;
1035
1035
  }[];
1036
1036
  licensePath: string | null;
1037
1037
  } | undefined;
@@ -1049,16 +1049,16 @@ declare function useInventory(context?: StorefrontContext): {
1049
1049
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1050
1050
  };
1051
1051
  discount?: {
1052
- type: "PercentageOffDiscount";
1053
1052
  name: string;
1053
+ type: "PercentageOffDiscount";
1054
1054
  percentage: number;
1055
1055
  isExclusive: boolean;
1056
1056
  description?: string | undefined;
1057
1057
  total?: Record<string, number> | undefined;
1058
1058
  recurringPaymentUseCount?: number | undefined;
1059
1059
  } | {
1060
- type: "FlatAmountOffDiscount";
1061
1060
  name: string;
1061
+ type: "FlatAmountOffDiscount";
1062
1062
  isExclusive: boolean;
1063
1063
  description?: string | undefined;
1064
1064
  total?: Record<string, number> | undefined;
@@ -1083,16 +1083,16 @@ declare function useInventory(context?: StorefrontContext): {
1083
1083
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1084
1084
  };
1085
1085
  discount?: {
1086
- type: "PercentageOffDiscount";
1087
1086
  name: string;
1087
+ type: "PercentageOffDiscount";
1088
1088
  percentage: number;
1089
1089
  isExclusive: boolean;
1090
1090
  description?: string | undefined;
1091
1091
  total?: Record<string, number> | undefined;
1092
1092
  recurringPaymentUseCount?: number | undefined;
1093
1093
  } | {
1094
- type: "FlatAmountOffDiscount";
1095
1094
  name: string;
1095
+ type: "FlatAmountOffDiscount";
1096
1096
  isExclusive: boolean;
1097
1097
  description?: string | undefined;
1098
1098
  total?: Record<string, number> | undefined;
@@ -1120,16 +1120,16 @@ declare function useInventory(context?: StorefrontContext): {
1120
1120
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1121
1121
  };
1122
1122
  discount?: {
1123
- type: "PercentageOffDiscount";
1124
1123
  name: string;
1124
+ type: "PercentageOffDiscount";
1125
1125
  percentage: number;
1126
1126
  isExclusive: boolean;
1127
1127
  description?: string | undefined;
1128
1128
  total?: Record<string, number> | undefined;
1129
1129
  recurringPaymentUseCount?: number | undefined;
1130
1130
  } | {
1131
- type: "FlatAmountOffDiscount";
1132
1131
  name: string;
1132
+ type: "FlatAmountOffDiscount";
1133
1133
  isExclusive: boolean;
1134
1134
  description?: string | undefined;
1135
1135
  total?: Record<string, number> | undefined;
@@ -1154,16 +1154,16 @@ declare function useInventory(context?: StorefrontContext): {
1154
1154
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1155
1155
  };
1156
1156
  discount?: {
1157
- type: "PercentageOffDiscount";
1158
1157
  name: string;
1158
+ type: "PercentageOffDiscount";
1159
1159
  percentage: number;
1160
1160
  isExclusive: boolean;
1161
1161
  description?: string | undefined;
1162
1162
  total?: Record<string, number> | undefined;
1163
1163
  recurringPaymentUseCount?: number | undefined;
1164
1164
  } | {
1165
- type: "FlatAmountOffDiscount";
1166
1165
  name: string;
1166
+ type: "FlatAmountOffDiscount";
1167
1167
  isExclusive: boolean;
1168
1168
  description?: string | undefined;
1169
1169
  total?: Record<string, number> | undefined;
@@ -1179,8 +1179,8 @@ declare function useInventory(context?: StorefrontContext): {
1179
1179
  };
1180
1180
  }>;
1181
1181
  cancelSubscription: (subscriptionId: string) => Promise<{
1182
- status: _moonbase_sh_storefront_api.SubscriptionStatus;
1183
1182
  id: string;
1183
+ status: _moonbase_sh_storefront_api.SubscriptionStatus;
1184
1184
  expiresAt: Date;
1185
1185
  total: {
1186
1186
  discount: {
@@ -1212,9 +1212,9 @@ declare function useInventory(context?: StorefrontContext): {
1212
1212
  type: "Product";
1213
1213
  quantity: number;
1214
1214
  product: {
1215
- type: "product";
1216
1215
  id: string;
1217
1216
  name: string;
1217
+ type: "product";
1218
1218
  description: string;
1219
1219
  tagline: string;
1220
1220
  iconUrl: string | null;
@@ -1222,15 +1222,15 @@ declare function useInventory(context?: StorefrontContext): {
1222
1222
  website?: string | null | undefined;
1223
1223
  currentVersion?: string | undefined;
1224
1224
  downloads?: {
1225
- path: string | null;
1226
1225
  name: string;
1226
+ path: string | null;
1227
1227
  key: string;
1228
1228
  platform: _moonbase_sh_storefront_api.Platform;
1229
1229
  size: number;
1230
1230
  manifest?: {
1231
1231
  files: {
1232
- path: string;
1233
1232
  name: string;
1233
+ path: string;
1234
1234
  }[];
1235
1235
  licensePath: string | null;
1236
1236
  } | undefined;
@@ -1248,16 +1248,16 @@ declare function useInventory(context?: StorefrontContext): {
1248
1248
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1249
1249
  };
1250
1250
  discount?: {
1251
- type: "PercentageOffDiscount";
1252
1251
  name: string;
1252
+ type: "PercentageOffDiscount";
1253
1253
  percentage: number;
1254
1254
  isExclusive: boolean;
1255
1255
  description?: string | undefined;
1256
1256
  total?: Record<string, number> | undefined;
1257
1257
  recurringPaymentUseCount?: number | undefined;
1258
1258
  } | {
1259
- type: "FlatAmountOffDiscount";
1260
1259
  name: string;
1260
+ type: "FlatAmountOffDiscount";
1261
1261
  isExclusive: boolean;
1262
1262
  description?: string | undefined;
1263
1263
  total?: Record<string, number> | undefined;
@@ -1282,16 +1282,16 @@ declare function useInventory(context?: StorefrontContext): {
1282
1282
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1283
1283
  };
1284
1284
  discount?: {
1285
- type: "PercentageOffDiscount";
1286
1285
  name: string;
1286
+ type: "PercentageOffDiscount";
1287
1287
  percentage: number;
1288
1288
  isExclusive: boolean;
1289
1289
  description?: string | undefined;
1290
1290
  total?: Record<string, number> | undefined;
1291
1291
  recurringPaymentUseCount?: number | undefined;
1292
1292
  } | {
1293
- type: "FlatAmountOffDiscount";
1294
1293
  name: string;
1294
+ type: "FlatAmountOffDiscount";
1295
1295
  isExclusive: boolean;
1296
1296
  description?: string | undefined;
1297
1297
  total?: Record<string, number> | undefined;
@@ -1308,18 +1308,18 @@ declare function useInventory(context?: StorefrontContext): {
1308
1308
  type: "Bundle";
1309
1309
  quantity: number;
1310
1310
  bundle: {
1311
- type: "bundle";
1312
1311
  id: string;
1313
1312
  name: string;
1313
+ type: "bundle";
1314
1314
  description: string;
1315
1315
  tagline: string;
1316
1316
  iconUrl: string | null;
1317
1317
  owned: boolean;
1318
1318
  partial: boolean;
1319
1319
  products: ({
1320
- type: "product";
1321
1320
  id: string;
1322
1321
  name: string;
1322
+ type: "product";
1323
1323
  description: string;
1324
1324
  tagline: string;
1325
1325
  iconUrl: string | null;
@@ -1327,15 +1327,15 @@ declare function useInventory(context?: StorefrontContext): {
1327
1327
  website?: string | null | undefined;
1328
1328
  currentVersion?: string | undefined;
1329
1329
  downloads?: {
1330
- path: string | null;
1331
1330
  name: string;
1331
+ path: string | null;
1332
1332
  key: string;
1333
1333
  platform: _moonbase_sh_storefront_api.Platform;
1334
1334
  size: number;
1335
1335
  manifest?: {
1336
1336
  files: {
1337
- path: string;
1338
1337
  name: string;
1338
+ path: string;
1339
1339
  }[];
1340
1340
  licensePath: string | null;
1341
1341
  } | undefined;
@@ -1353,16 +1353,16 @@ declare function useInventory(context?: StorefrontContext): {
1353
1353
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1354
1354
  };
1355
1355
  discount?: {
1356
- type: "PercentageOffDiscount";
1357
1356
  name: string;
1357
+ type: "PercentageOffDiscount";
1358
1358
  percentage: number;
1359
1359
  isExclusive: boolean;
1360
1360
  description?: string | undefined;
1361
1361
  total?: Record<string, number> | undefined;
1362
1362
  recurringPaymentUseCount?: number | undefined;
1363
1363
  } | {
1364
- type: "FlatAmountOffDiscount";
1365
1364
  name: string;
1365
+ type: "FlatAmountOffDiscount";
1366
1366
  isExclusive: boolean;
1367
1367
  description?: string | undefined;
1368
1368
  total?: Record<string, number> | undefined;
@@ -1387,16 +1387,16 @@ declare function useInventory(context?: StorefrontContext): {
1387
1387
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1388
1388
  };
1389
1389
  discount?: {
1390
- type: "PercentageOffDiscount";
1391
1390
  name: string;
1391
+ type: "PercentageOffDiscount";
1392
1392
  percentage: number;
1393
1393
  isExclusive: boolean;
1394
1394
  description?: string | undefined;
1395
1395
  total?: Record<string, number> | undefined;
1396
1396
  recurringPaymentUseCount?: number | undefined;
1397
1397
  } | {
1398
- type: "FlatAmountOffDiscount";
1399
1398
  name: string;
1399
+ type: "FlatAmountOffDiscount";
1400
1400
  isExclusive: boolean;
1401
1401
  description?: string | undefined;
1402
1402
  total?: Record<string, number> | undefined;
@@ -1424,16 +1424,16 @@ declare function useInventory(context?: StorefrontContext): {
1424
1424
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1425
1425
  };
1426
1426
  discount?: {
1427
- type: "PercentageOffDiscount";
1428
1427
  name: string;
1428
+ type: "PercentageOffDiscount";
1429
1429
  percentage: number;
1430
1430
  isExclusive: boolean;
1431
1431
  description?: string | undefined;
1432
1432
  total?: Record<string, number> | undefined;
1433
1433
  recurringPaymentUseCount?: number | undefined;
1434
1434
  } | {
1435
- type: "FlatAmountOffDiscount";
1436
1435
  name: string;
1436
+ type: "FlatAmountOffDiscount";
1437
1437
  isExclusive: boolean;
1438
1438
  description?: string | undefined;
1439
1439
  total?: Record<string, number> | undefined;
@@ -1458,16 +1458,16 @@ declare function useInventory(context?: StorefrontContext): {
1458
1458
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1459
1459
  };
1460
1460
  discount?: {
1461
- type: "PercentageOffDiscount";
1462
1461
  name: string;
1462
+ type: "PercentageOffDiscount";
1463
1463
  percentage: number;
1464
1464
  isExclusive: boolean;
1465
1465
  description?: string | undefined;
1466
1466
  total?: Record<string, number> | undefined;
1467
1467
  recurringPaymentUseCount?: number | undefined;
1468
1468
  } | {
1469
- type: "FlatAmountOffDiscount";
1470
1469
  name: string;
1470
+ type: "FlatAmountOffDiscount";
1471
1471
  isExclusive: boolean;
1472
1472
  description?: string | undefined;
1473
1473
  total?: Record<string, number> | undefined;
@@ -1503,16 +1503,16 @@ declare function useVendor(context?: StorefrontContext): VendorComposable;
1503
1503
 
1504
1504
  declare function useVoucher(context?: StorefrontContext): {
1505
1505
  peek: (code: string) => Promise<{
1506
- code: string;
1507
1506
  id: string;
1508
1507
  name: string;
1508
+ code: string;
1509
1509
  description: string;
1510
1510
  redeemed: boolean;
1511
1511
  redeemsProducts: {
1512
1512
  value: {
1513
- type: "product";
1514
1513
  id: string;
1515
1514
  name: string;
1515
+ type: "product";
1516
1516
  description: string;
1517
1517
  tagline: string;
1518
1518
  iconUrl: string | null;
@@ -1520,15 +1520,15 @@ declare function useVoucher(context?: StorefrontContext): {
1520
1520
  website?: string | null | undefined;
1521
1521
  currentVersion?: string | undefined;
1522
1522
  downloads?: {
1523
- path: string | null;
1524
1523
  name: string;
1524
+ path: string | null;
1525
1525
  key: string;
1526
1526
  platform: _moonbase_sh_storefront_api.Platform;
1527
1527
  size: number;
1528
1528
  manifest?: {
1529
1529
  files: {
1530
- path: string;
1531
1530
  name: string;
1531
+ path: string;
1532
1532
  }[];
1533
1533
  licensePath: string | null;
1534
1534
  } | undefined;
@@ -1546,16 +1546,16 @@ declare function useVoucher(context?: StorefrontContext): {
1546
1546
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1547
1547
  };
1548
1548
  discount?: {
1549
- type: "PercentageOffDiscount";
1550
1549
  name: string;
1550
+ type: "PercentageOffDiscount";
1551
1551
  percentage: number;
1552
1552
  isExclusive: boolean;
1553
1553
  description?: string | undefined;
1554
1554
  total?: Record<string, number> | undefined;
1555
1555
  recurringPaymentUseCount?: number | undefined;
1556
1556
  } | {
1557
- type: "FlatAmountOffDiscount";
1558
1557
  name: string;
1558
+ type: "FlatAmountOffDiscount";
1559
1559
  isExclusive: boolean;
1560
1560
  description?: string | undefined;
1561
1561
  total?: Record<string, number> | undefined;
@@ -1580,16 +1580,16 @@ declare function useVoucher(context?: StorefrontContext): {
1580
1580
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1581
1581
  };
1582
1582
  discount?: {
1583
- type: "PercentageOffDiscount";
1584
1583
  name: string;
1584
+ type: "PercentageOffDiscount";
1585
1585
  percentage: number;
1586
1586
  isExclusive: boolean;
1587
1587
  description?: string | undefined;
1588
1588
  total?: Record<string, number> | undefined;
1589
1589
  recurringPaymentUseCount?: number | undefined;
1590
1590
  } | {
1591
- type: "FlatAmountOffDiscount";
1592
1591
  name: string;
1592
+ type: "FlatAmountOffDiscount";
1593
1593
  isExclusive: boolean;
1594
1594
  description?: string | undefined;
1595
1595
  total?: Record<string, number> | undefined;
@@ -1606,18 +1606,18 @@ declare function useVoucher(context?: StorefrontContext): {
1606
1606
  }[];
1607
1607
  redeemsBundles: {
1608
1608
  value: {
1609
- type: "bundle";
1610
1609
  id: string;
1611
1610
  name: string;
1611
+ type: "bundle";
1612
1612
  description: string;
1613
1613
  tagline: string;
1614
1614
  iconUrl: string | null;
1615
1615
  owned: boolean;
1616
1616
  partial: boolean;
1617
1617
  products: ({
1618
- type: "product";
1619
1618
  id: string;
1620
1619
  name: string;
1620
+ type: "product";
1621
1621
  description: string;
1622
1622
  tagline: string;
1623
1623
  iconUrl: string | null;
@@ -1625,15 +1625,15 @@ declare function useVoucher(context?: StorefrontContext): {
1625
1625
  website?: string | null | undefined;
1626
1626
  currentVersion?: string | undefined;
1627
1627
  downloads?: {
1628
- path: string | null;
1629
1628
  name: string;
1629
+ path: string | null;
1630
1630
  key: string;
1631
1631
  platform: _moonbase_sh_storefront_api.Platform;
1632
1632
  size: number;
1633
1633
  manifest?: {
1634
1634
  files: {
1635
- path: string;
1636
1635
  name: string;
1636
+ path: string;
1637
1637
  }[];
1638
1638
  licensePath: string | null;
1639
1639
  } | undefined;
@@ -1651,16 +1651,16 @@ declare function useVoucher(context?: StorefrontContext): {
1651
1651
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1652
1652
  };
1653
1653
  discount?: {
1654
- type: "PercentageOffDiscount";
1655
1654
  name: string;
1655
+ type: "PercentageOffDiscount";
1656
1656
  percentage: number;
1657
1657
  isExclusive: boolean;
1658
1658
  description?: string | undefined;
1659
1659
  total?: Record<string, number> | undefined;
1660
1660
  recurringPaymentUseCount?: number | undefined;
1661
1661
  } | {
1662
- type: "FlatAmountOffDiscount";
1663
1662
  name: string;
1663
+ type: "FlatAmountOffDiscount";
1664
1664
  isExclusive: boolean;
1665
1665
  description?: string | undefined;
1666
1666
  total?: Record<string, number> | undefined;
@@ -1685,16 +1685,16 @@ declare function useVoucher(context?: StorefrontContext): {
1685
1685
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1686
1686
  };
1687
1687
  discount?: {
1688
- type: "PercentageOffDiscount";
1689
1688
  name: string;
1689
+ type: "PercentageOffDiscount";
1690
1690
  percentage: number;
1691
1691
  isExclusive: boolean;
1692
1692
  description?: string | undefined;
1693
1693
  total?: Record<string, number> | undefined;
1694
1694
  recurringPaymentUseCount?: number | undefined;
1695
1695
  } | {
1696
- type: "FlatAmountOffDiscount";
1697
1696
  name: string;
1697
+ type: "FlatAmountOffDiscount";
1698
1698
  isExclusive: boolean;
1699
1699
  description?: string | undefined;
1700
1700
  total?: Record<string, number> | undefined;
@@ -1722,16 +1722,16 @@ declare function useVoucher(context?: StorefrontContext): {
1722
1722
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1723
1723
  };
1724
1724
  discount?: {
1725
- type: "PercentageOffDiscount";
1726
1725
  name: string;
1726
+ type: "PercentageOffDiscount";
1727
1727
  percentage: number;
1728
1728
  isExclusive: boolean;
1729
1729
  description?: string | undefined;
1730
1730
  total?: Record<string, number> | undefined;
1731
1731
  recurringPaymentUseCount?: number | undefined;
1732
1732
  } | {
1733
- type: "FlatAmountOffDiscount";
1734
1733
  name: string;
1734
+ type: "FlatAmountOffDiscount";
1735
1735
  isExclusive: boolean;
1736
1736
  description?: string | undefined;
1737
1737
  total?: Record<string, number> | undefined;
@@ -1756,16 +1756,16 @@ declare function useVoucher(context?: StorefrontContext): {
1756
1756
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1757
1757
  };
1758
1758
  discount?: {
1759
- type: "PercentageOffDiscount";
1760
1759
  name: string;
1760
+ type: "PercentageOffDiscount";
1761
1761
  percentage: number;
1762
1762
  isExclusive: boolean;
1763
1763
  description?: string | undefined;
1764
1764
  total?: Record<string, number> | undefined;
1765
1765
  recurringPaymentUseCount?: number | undefined;
1766
1766
  } | {
1767
- type: "FlatAmountOffDiscount";
1768
1767
  name: string;
1768
+ type: "FlatAmountOffDiscount";
1769
1769
  isExclusive: boolean;
1770
1770
  description?: string | undefined;
1771
1771
  total?: Record<string, number> | undefined;
@@ -1782,16 +1782,16 @@ declare function useVoucher(context?: StorefrontContext): {
1782
1782
  }[];
1783
1783
  }>;
1784
1784
  redeem: (code: string) => Promise<{
1785
- code: string;
1786
1785
  id: string;
1787
1786
  name: string;
1787
+ code: string;
1788
1788
  description: string;
1789
1789
  redeemed: boolean;
1790
1790
  redeemsProducts: {
1791
1791
  value: {
1792
- type: "product";
1793
1792
  id: string;
1794
1793
  name: string;
1794
+ type: "product";
1795
1795
  description: string;
1796
1796
  tagline: string;
1797
1797
  iconUrl: string | null;
@@ -1799,15 +1799,15 @@ declare function useVoucher(context?: StorefrontContext): {
1799
1799
  website?: string | null | undefined;
1800
1800
  currentVersion?: string | undefined;
1801
1801
  downloads?: {
1802
- path: string | null;
1803
1802
  name: string;
1803
+ path: string | null;
1804
1804
  key: string;
1805
1805
  platform: _moonbase_sh_storefront_api.Platform;
1806
1806
  size: number;
1807
1807
  manifest?: {
1808
1808
  files: {
1809
- path: string;
1810
1809
  name: string;
1810
+ path: string;
1811
1811
  }[];
1812
1812
  licensePath: string | null;
1813
1813
  } | undefined;
@@ -1825,16 +1825,16 @@ declare function useVoucher(context?: StorefrontContext): {
1825
1825
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1826
1826
  };
1827
1827
  discount?: {
1828
- type: "PercentageOffDiscount";
1829
1828
  name: string;
1829
+ type: "PercentageOffDiscount";
1830
1830
  percentage: number;
1831
1831
  isExclusive: boolean;
1832
1832
  description?: string | undefined;
1833
1833
  total?: Record<string, number> | undefined;
1834
1834
  recurringPaymentUseCount?: number | undefined;
1835
1835
  } | {
1836
- type: "FlatAmountOffDiscount";
1837
1836
  name: string;
1837
+ type: "FlatAmountOffDiscount";
1838
1838
  isExclusive: boolean;
1839
1839
  description?: string | undefined;
1840
1840
  total?: Record<string, number> | undefined;
@@ -1859,16 +1859,16 @@ declare function useVoucher(context?: StorefrontContext): {
1859
1859
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1860
1860
  };
1861
1861
  discount?: {
1862
- type: "PercentageOffDiscount";
1863
1862
  name: string;
1863
+ type: "PercentageOffDiscount";
1864
1864
  percentage: number;
1865
1865
  isExclusive: boolean;
1866
1866
  description?: string | undefined;
1867
1867
  total?: Record<string, number> | undefined;
1868
1868
  recurringPaymentUseCount?: number | undefined;
1869
1869
  } | {
1870
- type: "FlatAmountOffDiscount";
1871
1870
  name: string;
1871
+ type: "FlatAmountOffDiscount";
1872
1872
  isExclusive: boolean;
1873
1873
  description?: string | undefined;
1874
1874
  total?: Record<string, number> | undefined;
@@ -1885,18 +1885,18 @@ declare function useVoucher(context?: StorefrontContext): {
1885
1885
  }[];
1886
1886
  redeemsBundles: {
1887
1887
  value: {
1888
- type: "bundle";
1889
1888
  id: string;
1890
1889
  name: string;
1890
+ type: "bundle";
1891
1891
  description: string;
1892
1892
  tagline: string;
1893
1893
  iconUrl: string | null;
1894
1894
  owned: boolean;
1895
1895
  partial: boolean;
1896
1896
  products: ({
1897
- type: "product";
1898
1897
  id: string;
1899
1898
  name: string;
1899
+ type: "product";
1900
1900
  description: string;
1901
1901
  tagline: string;
1902
1902
  iconUrl: string | null;
@@ -1904,15 +1904,15 @@ declare function useVoucher(context?: StorefrontContext): {
1904
1904
  website?: string | null | undefined;
1905
1905
  currentVersion?: string | undefined;
1906
1906
  downloads?: {
1907
- path: string | null;
1908
1907
  name: string;
1908
+ path: string | null;
1909
1909
  key: string;
1910
1910
  platform: _moonbase_sh_storefront_api.Platform;
1911
1911
  size: number;
1912
1912
  manifest?: {
1913
1913
  files: {
1914
- path: string;
1915
1914
  name: string;
1915
+ path: string;
1916
1916
  }[];
1917
1917
  licensePath: string | null;
1918
1918
  } | undefined;
@@ -1930,16 +1930,16 @@ declare function useVoucher(context?: StorefrontContext): {
1930
1930
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1931
1931
  };
1932
1932
  discount?: {
1933
- type: "PercentageOffDiscount";
1934
1933
  name: string;
1934
+ type: "PercentageOffDiscount";
1935
1935
  percentage: number;
1936
1936
  isExclusive: boolean;
1937
1937
  description?: string | undefined;
1938
1938
  total?: Record<string, number> | undefined;
1939
1939
  recurringPaymentUseCount?: number | undefined;
1940
1940
  } | {
1941
- type: "FlatAmountOffDiscount";
1942
1941
  name: string;
1942
+ type: "FlatAmountOffDiscount";
1943
1943
  isExclusive: boolean;
1944
1944
  description?: string | undefined;
1945
1945
  total?: Record<string, number> | undefined;
@@ -1964,16 +1964,16 @@ declare function useVoucher(context?: StorefrontContext): {
1964
1964
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
1965
1965
  };
1966
1966
  discount?: {
1967
- type: "PercentageOffDiscount";
1968
1967
  name: string;
1968
+ type: "PercentageOffDiscount";
1969
1969
  percentage: number;
1970
1970
  isExclusive: boolean;
1971
1971
  description?: string | undefined;
1972
1972
  total?: Record<string, number> | undefined;
1973
1973
  recurringPaymentUseCount?: number | undefined;
1974
1974
  } | {
1975
- type: "FlatAmountOffDiscount";
1976
1975
  name: string;
1976
+ type: "FlatAmountOffDiscount";
1977
1977
  isExclusive: boolean;
1978
1978
  description?: string | undefined;
1979
1979
  total?: Record<string, number> | undefined;
@@ -2001,16 +2001,16 @@ declare function useVoucher(context?: StorefrontContext): {
2001
2001
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
2002
2002
  };
2003
2003
  discount?: {
2004
- type: "PercentageOffDiscount";
2005
2004
  name: string;
2005
+ type: "PercentageOffDiscount";
2006
2006
  percentage: number;
2007
2007
  isExclusive: boolean;
2008
2008
  description?: string | undefined;
2009
2009
  total?: Record<string, number> | undefined;
2010
2010
  recurringPaymentUseCount?: number | undefined;
2011
2011
  } | {
2012
- type: "FlatAmountOffDiscount";
2013
2012
  name: string;
2013
+ type: "FlatAmountOffDiscount";
2014
2014
  isExclusive: boolean;
2015
2015
  description?: string | undefined;
2016
2016
  total?: Record<string, number> | undefined;
@@ -2035,16 +2035,16 @@ declare function useVoucher(context?: StorefrontContext): {
2035
2035
  cycleLength: _moonbase_sh_storefront_api.CycleLength;
2036
2036
  };
2037
2037
  discount?: {
2038
- type: "PercentageOffDiscount";
2039
2038
  name: string;
2039
+ type: "PercentageOffDiscount";
2040
2040
  percentage: number;
2041
2041
  isExclusive: boolean;
2042
2042
  description?: string | undefined;
2043
2043
  total?: Record<string, number> | undefined;
2044
2044
  recurringPaymentUseCount?: number | undefined;
2045
2045
  } | {
2046
- type: "FlatAmountOffDiscount";
2047
2046
  name: string;
2047
+ type: "FlatAmountOffDiscount";
2048
2048
  isExclusive: boolean;
2049
2049
  description?: string | undefined;
2050
2050
  total?: Record<string, number> | undefined;