@moonbase.sh/vue 0.4.25 → 0.4.27

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
@@ -1,8 +1,8 @@
1
1
  import * as _moonbase_sh_storefront_api from '@moonbase.sh/storefront-api';
2
- import { MoonbaseConfiguration, Storefront, Order, User, UrchinTrackingModule, MoonbaseClient, LineItem, OpenOrder, Money, CompletedOrder, ActivationRequest, Address, CommunicationPreferences, StorefrontBundle, StorefrontProduct, PricingVariation, ActivationMethod, Activation, Download, Vendor } from '@moonbase.sh/storefront-api';
2
+ import { MoonbaseConfiguration, Storefront, Order, User, UrchinTrackingModule, MoonbaseClient, LineItem, OpenOrder, Money, CompletedOrder, ActivationRequest, Address, CommunicationPreferences, StorefrontBundle, StorefrontProduct, PricingVariation, StorefrontOffer, ActivationMethod, Activation, Download, Subscription, Vendor } from '@moonbase.sh/storefront-api';
3
3
  export * from '@moonbase.sh/storefront-api';
4
4
  import * as vue from 'vue';
5
- import { Plugin, Ref, App, UnwrapRef, InjectionKey } from 'vue';
5
+ import { Ref, UnwrapRef, Plugin, App, MaybeRef, InjectionKey } from 'vue';
6
6
 
7
7
  interface StorefrontContext extends Pick<Plugin, keyof Plugin> {
8
8
  configuration: MoonbaseConfiguration;
@@ -237,6 +237,7 @@ declare function useCart(context?: StorefrontContext): {
237
237
  tagline: string;
238
238
  iconUrl: string | null;
239
239
  } | undefined;
240
+ offerId?: string | undefined;
240
241
  isDefaultVariation?: boolean | null | undefined;
241
242
  isSubcriptionPayment?: boolean | null | undefined;
242
243
  variation?: {
@@ -315,20 +316,7 @@ declare function useCart(context?: StorefrontContext): {
315
316
  } | null | undefined;
316
317
  price?: Record<string, number> | undefined;
317
318
  partial?: boolean | undefined;
318
- bundle?: {
319
- id: string;
320
- name: string;
321
- tagline: string;
322
- iconUrl: string | null;
323
- products: ({
324
- id: string;
325
- name: string;
326
- tagline: string;
327
- iconUrl: string | null;
328
- } & {
329
- included?: boolean | undefined;
330
- })[];
331
- } | undefined;
319
+ offerId?: string | undefined;
332
320
  isDefaultVariation?: boolean | null | undefined;
333
321
  isSubcriptionPayment?: boolean | null | undefined;
334
322
  variation?: {
@@ -381,13 +369,30 @@ declare function useCart(context?: StorefrontContext): {
381
369
  total?: Record<string, number> | undefined;
382
370
  recurringPaymentUseCount?: number | undefined;
383
371
  } | undefined;
372
+ replaced?: string[] | undefined;
373
+ bundle?: {
374
+ id: string;
375
+ name: string;
376
+ tagline: string;
377
+ iconUrl: string | null;
378
+ products: ({
379
+ id: string;
380
+ name: string;
381
+ tagline: string;
382
+ iconUrl: string | null;
383
+ } & {
384
+ included?: boolean | undefined;
385
+ })[];
386
+ } | undefined;
384
387
  })[]>;
385
388
  currency: vue.ComputedRef<string>;
386
389
  total: vue.ComputedRef<{
387
390
  amount: number;
388
391
  currency: string;
389
392
  }>;
390
- addToCart: (item: StorefrontProduct | StorefrontBundle | Ref<StorefrontProduct> | Ref<StorefrontBundle>, variation?: PricingVariation) => CartItem;
393
+ addToCart: (item: MaybeRef<StorefrontProduct> | MaybeRef<StorefrontBundle>, variation?: PricingVariation, offer?: StorefrontOffer, options?: {
394
+ bundleBehaviour?: "append" | "replace";
395
+ }) => CartItem;
391
396
  setQuantity: (cartItem: CartItem, quantity: number) => CartItem;
392
397
  removeFromCart: (cartItem: CartItem) => void;
393
398
  checkout: (options: {
@@ -587,49 +592,7 @@ declare function useInventory(context?: StorefrontContext): {
587
592
  }>>;
588
593
  revokeActivation: (activation: Activation) => Promise<void>;
589
594
  activateProduct: (deviceToken: string, activationMethod: ActivationMethod) => Promise<{
590
- license: {
591
- id: string;
592
- status: _moonbase_sh_storefront_api.LicenseStatus;
593
- product: {
594
- id: string;
595
- name: string;
596
- tagline: string;
597
- currentVersion: string | null;
598
- downloadsNeedsUser: boolean;
599
- downloadsNeedsOwnership: boolean;
600
- description?: string | null | undefined;
601
- website?: string | undefined;
602
- iconUrl?: string | undefined;
603
- numberOfLicenses?: number | undefined;
604
- numberOfTrials?: number | undefined;
605
- currentActivations?: number | undefined;
606
- maxActivations?: number | undefined;
607
- externalLicenses?: number | undefined;
608
- subscriptionLicenses?: number | undefined;
609
- version?: string | undefined;
610
- prerelease?: boolean | undefined;
611
- releaseDescription?: string | undefined;
612
- downloads?: {
613
- name: string;
614
- path: string | null;
615
- key: string;
616
- platform: _moonbase_sh_storefront_api.Platform;
617
- size: number;
618
- manifest?: {
619
- files: {
620
- name: string;
621
- path: string;
622
- }[];
623
- licensePath: string | null;
624
- } | undefined;
625
- }[] | undefined;
626
- };
627
- activeNumberOfActivations: number;
628
- maxNumberOfActivations: number;
629
- createdAt: Date;
630
- expiresAt?: Date | undefined;
631
- externalFulfillment?: string | undefined;
632
- };
595
+ license: _moonbase_sh_storefront_api.License;
633
596
  url: string;
634
597
  }>;
635
598
  downloadProduct: (download: Download) => Promise<void>;
@@ -671,7 +634,7 @@ declare function useInventory(context?: StorefrontContext): {
671
634
  product: {
672
635
  id: string;
673
636
  name: string;
674
- type: "product";
637
+ type: "Product";
675
638
  description: string;
676
639
  tagline: string;
677
640
  iconUrl: string | null;
@@ -767,7 +730,7 @@ declare function useInventory(context?: StorefrontContext): {
767
730
  bundle: {
768
731
  id: string;
769
732
  name: string;
770
- type: "bundle";
733
+ type: "Bundle";
771
734
  description: string;
772
735
  tagline: string;
773
736
  iconUrl: string | null;
@@ -776,7 +739,7 @@ declare function useInventory(context?: StorefrontContext): {
776
739
  products: ({
777
740
  id: string;
778
741
  name: string;
779
- type: "product";
742
+ type: "Product";
780
743
  description: string;
781
744
  tagline: string;
782
745
  iconUrl: string | null;
@@ -938,6 +901,8 @@ declare function useInventory(context?: StorefrontContext): {
938
901
  }[] | undefined;
939
902
  };
940
903
  };
904
+ paymentMethod?: string | undefined;
905
+ embeddedUpdatePaymentUrl?: string | undefined;
941
906
  }>>;
942
907
  getSubscription: (subscriptionId: string) => Promise<{
943
908
  id: string;
@@ -977,7 +942,7 @@ declare function useInventory(context?: StorefrontContext): {
977
942
  product: {
978
943
  id: string;
979
944
  name: string;
980
- type: "product";
945
+ type: "Product";
981
946
  description: string;
982
947
  tagline: string;
983
948
  iconUrl: string | null;
@@ -1073,7 +1038,7 @@ declare function useInventory(context?: StorefrontContext): {
1073
1038
  bundle: {
1074
1039
  id: string;
1075
1040
  name: string;
1076
- type: "bundle";
1041
+ type: "Bundle";
1077
1042
  description: string;
1078
1043
  tagline: string;
1079
1044
  iconUrl: string | null;
@@ -1082,7 +1047,7 @@ declare function useInventory(context?: StorefrontContext): {
1082
1047
  products: ({
1083
1048
  id: string;
1084
1049
  name: string;
1085
- type: "product";
1050
+ type: "Product";
1086
1051
  description: string;
1087
1052
  tagline: string;
1088
1053
  iconUrl: string | null;
@@ -1244,6 +1209,8 @@ declare function useInventory(context?: StorefrontContext): {
1244
1209
  }[] | undefined;
1245
1210
  };
1246
1211
  };
1212
+ paymentMethod?: string | undefined;
1213
+ embeddedUpdatePaymentUrl?: string | undefined;
1247
1214
  }>;
1248
1215
  cancelSubscription: (subscriptionId: string) => Promise<{
1249
1216
  id: string;
@@ -1283,7 +1250,7 @@ declare function useInventory(context?: StorefrontContext): {
1283
1250
  product: {
1284
1251
  id: string;
1285
1252
  name: string;
1286
- type: "product";
1253
+ type: "Product";
1287
1254
  description: string;
1288
1255
  tagline: string;
1289
1256
  iconUrl: string | null;
@@ -1379,7 +1346,7 @@ declare function useInventory(context?: StorefrontContext): {
1379
1346
  bundle: {
1380
1347
  id: string;
1381
1348
  name: string;
1382
- type: "bundle";
1349
+ type: "Bundle";
1383
1350
  description: string;
1384
1351
  tagline: string;
1385
1352
  iconUrl: string | null;
@@ -1388,7 +1355,7 @@ declare function useInventory(context?: StorefrontContext): {
1388
1355
  products: ({
1389
1356
  id: string;
1390
1357
  name: string;
1391
- type: "product";
1358
+ type: "Product";
1392
1359
  description: string;
1393
1360
  tagline: string;
1394
1361
  iconUrl: string | null;
@@ -1550,6 +1517,8 @@ declare function useInventory(context?: StorefrontContext): {
1550
1517
  }[] | undefined;
1551
1518
  };
1552
1519
  };
1520
+ paymentMethod?: string | undefined;
1521
+ embeddedUpdatePaymentUrl?: string | undefined;
1553
1522
  }>;
1554
1523
  renewSubscription: (subscriptionId: string, options: {
1555
1524
  redirect: boolean;
@@ -1558,8 +1527,18 @@ declare function useInventory(context?: StorefrontContext): {
1558
1527
  next: string | undefined;
1559
1528
  completed: boolean;
1560
1529
  }>;
1530
+ updateSubscriptionPaymentMethod: (subscription: Subscription, options: {
1531
+ returnUrl?: string;
1532
+ }) => Promise<{
1533
+ completed: boolean;
1534
+ } | undefined>;
1561
1535
  };
1562
1536
 
1537
+ declare function useOffer(offerId: string, context?: StorefrontContext): Ref<StorefrontOffer | null>;
1538
+
1539
+ declare function useOffers(context?: StorefrontContext): Ref<StorefrontOffer[]>;
1540
+ declare function useEligibleOffers(context?: StorefrontContext): Ref<StorefrontOffer[]>;
1541
+
1563
1542
  declare function useProduct(productId: string, context?: StorefrontContext): Ref<StorefrontProduct | null>;
1564
1543
 
1565
1544
  declare function useProducts(context?: StorefrontContext): Ref<StorefrontProduct[]>;
@@ -1581,7 +1560,7 @@ declare function useVoucher(context?: StorefrontContext): {
1581
1560
  value: {
1582
1561
  id: string;
1583
1562
  name: string;
1584
- type: "product";
1563
+ type: "Product";
1585
1564
  description: string;
1586
1565
  tagline: string;
1587
1566
  iconUrl: string | null;
@@ -1677,7 +1656,7 @@ declare function useVoucher(context?: StorefrontContext): {
1677
1656
  value: {
1678
1657
  id: string;
1679
1658
  name: string;
1680
- type: "bundle";
1659
+ type: "Bundle";
1681
1660
  description: string;
1682
1661
  tagline: string;
1683
1662
  iconUrl: string | null;
@@ -1686,7 +1665,7 @@ declare function useVoucher(context?: StorefrontContext): {
1686
1665
  products: ({
1687
1666
  id: string;
1688
1667
  name: string;
1689
- type: "product";
1668
+ type: "Product";
1690
1669
  description: string;
1691
1670
  tagline: string;
1692
1671
  iconUrl: string | null;
@@ -1860,7 +1839,7 @@ declare function useVoucher(context?: StorefrontContext): {
1860
1839
  value: {
1861
1840
  id: string;
1862
1841
  name: string;
1863
- type: "product";
1842
+ type: "Product";
1864
1843
  description: string;
1865
1844
  tagline: string;
1866
1845
  iconUrl: string | null;
@@ -1956,7 +1935,7 @@ declare function useVoucher(context?: StorefrontContext): {
1956
1935
  value: {
1957
1936
  id: string;
1958
1937
  name: string;
1959
- type: "bundle";
1938
+ type: "Bundle";
1960
1939
  description: string;
1961
1940
  tagline: string;
1962
1941
  iconUrl: string | null;
@@ -1965,7 +1944,7 @@ declare function useVoucher(context?: StorefrontContext): {
1965
1944
  products: ({
1966
1945
  id: string;
1967
1946
  name: string;
1968
- type: "product";
1947
+ type: "Product";
1969
1948
  description: string;
1970
1949
  tagline: string;
1971
1950
  iconUrl: string | null;
@@ -2139,4 +2118,4 @@ interface Cart {
2139
2118
  type CartItem = LineItem;
2140
2119
  declare function createStorefront(endpoint: string, stateFactory?: StateFactory, config?: Omit<MoonbaseConfiguration, 'endpoint'>): StorefrontContext;
2141
2120
 
2142
- export { type ActivationRequestComposable, type Cart, type CartItem, type CheckoutItem, type VendorComposable, createStorefront, storefrontKey, useActivationRequest, useAuth, useBundle, useBundles, useCart, useCheckout, useInventory, useProduct, useProducts, useVendor, useVoucher };
2121
+ export { type ActivationRequestComposable, type Cart, type CartItem, type CheckoutItem, type VendorComposable, createStorefront, storefrontKey, useActivationRequest, useAuth, useBundle, useBundles, useCart, useCheckout, useEligibleOffers, useInventory, useOffer, useOffers, useProduct, useProducts, useVendor, useVoucher };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _moonbase_sh_storefront_api from '@moonbase.sh/storefront-api';
2
- import { MoonbaseConfiguration, Storefront, Order, User, UrchinTrackingModule, MoonbaseClient, LineItem, OpenOrder, Money, CompletedOrder, ActivationRequest, Address, CommunicationPreferences, StorefrontBundle, StorefrontProduct, PricingVariation, ActivationMethod, Activation, Download, Vendor } from '@moonbase.sh/storefront-api';
2
+ import { MoonbaseConfiguration, Storefront, Order, User, UrchinTrackingModule, MoonbaseClient, LineItem, OpenOrder, Money, CompletedOrder, ActivationRequest, Address, CommunicationPreferences, StorefrontBundle, StorefrontProduct, PricingVariation, StorefrontOffer, ActivationMethod, Activation, Download, Subscription, Vendor } from '@moonbase.sh/storefront-api';
3
3
  export * from '@moonbase.sh/storefront-api';
4
4
  import * as vue from 'vue';
5
- import { Plugin, Ref, App, UnwrapRef, InjectionKey } from 'vue';
5
+ import { Ref, UnwrapRef, Plugin, App, MaybeRef, InjectionKey } from 'vue';
6
6
 
7
7
  interface StorefrontContext extends Pick<Plugin, keyof Plugin> {
8
8
  configuration: MoonbaseConfiguration;
@@ -237,6 +237,7 @@ declare function useCart(context?: StorefrontContext): {
237
237
  tagline: string;
238
238
  iconUrl: string | null;
239
239
  } | undefined;
240
+ offerId?: string | undefined;
240
241
  isDefaultVariation?: boolean | null | undefined;
241
242
  isSubcriptionPayment?: boolean | null | undefined;
242
243
  variation?: {
@@ -315,20 +316,7 @@ declare function useCart(context?: StorefrontContext): {
315
316
  } | null | undefined;
316
317
  price?: Record<string, number> | undefined;
317
318
  partial?: boolean | undefined;
318
- bundle?: {
319
- id: string;
320
- name: string;
321
- tagline: string;
322
- iconUrl: string | null;
323
- products: ({
324
- id: string;
325
- name: string;
326
- tagline: string;
327
- iconUrl: string | null;
328
- } & {
329
- included?: boolean | undefined;
330
- })[];
331
- } | undefined;
319
+ offerId?: string | undefined;
332
320
  isDefaultVariation?: boolean | null | undefined;
333
321
  isSubcriptionPayment?: boolean | null | undefined;
334
322
  variation?: {
@@ -381,13 +369,30 @@ declare function useCart(context?: StorefrontContext): {
381
369
  total?: Record<string, number> | undefined;
382
370
  recurringPaymentUseCount?: number | undefined;
383
371
  } | undefined;
372
+ replaced?: string[] | undefined;
373
+ bundle?: {
374
+ id: string;
375
+ name: string;
376
+ tagline: string;
377
+ iconUrl: string | null;
378
+ products: ({
379
+ id: string;
380
+ name: string;
381
+ tagline: string;
382
+ iconUrl: string | null;
383
+ } & {
384
+ included?: boolean | undefined;
385
+ })[];
386
+ } | undefined;
384
387
  })[]>;
385
388
  currency: vue.ComputedRef<string>;
386
389
  total: vue.ComputedRef<{
387
390
  amount: number;
388
391
  currency: string;
389
392
  }>;
390
- addToCart: (item: StorefrontProduct | StorefrontBundle | Ref<StorefrontProduct> | Ref<StorefrontBundle>, variation?: PricingVariation) => CartItem;
393
+ addToCart: (item: MaybeRef<StorefrontProduct> | MaybeRef<StorefrontBundle>, variation?: PricingVariation, offer?: StorefrontOffer, options?: {
394
+ bundleBehaviour?: "append" | "replace";
395
+ }) => CartItem;
391
396
  setQuantity: (cartItem: CartItem, quantity: number) => CartItem;
392
397
  removeFromCart: (cartItem: CartItem) => void;
393
398
  checkout: (options: {
@@ -587,49 +592,7 @@ declare function useInventory(context?: StorefrontContext): {
587
592
  }>>;
588
593
  revokeActivation: (activation: Activation) => Promise<void>;
589
594
  activateProduct: (deviceToken: string, activationMethod: ActivationMethod) => Promise<{
590
- license: {
591
- id: string;
592
- status: _moonbase_sh_storefront_api.LicenseStatus;
593
- product: {
594
- id: string;
595
- name: string;
596
- tagline: string;
597
- currentVersion: string | null;
598
- downloadsNeedsUser: boolean;
599
- downloadsNeedsOwnership: boolean;
600
- description?: string | null | undefined;
601
- website?: string | undefined;
602
- iconUrl?: string | undefined;
603
- numberOfLicenses?: number | undefined;
604
- numberOfTrials?: number | undefined;
605
- currentActivations?: number | undefined;
606
- maxActivations?: number | undefined;
607
- externalLicenses?: number | undefined;
608
- subscriptionLicenses?: number | undefined;
609
- version?: string | undefined;
610
- prerelease?: boolean | undefined;
611
- releaseDescription?: string | undefined;
612
- downloads?: {
613
- name: string;
614
- path: string | null;
615
- key: string;
616
- platform: _moonbase_sh_storefront_api.Platform;
617
- size: number;
618
- manifest?: {
619
- files: {
620
- name: string;
621
- path: string;
622
- }[];
623
- licensePath: string | null;
624
- } | undefined;
625
- }[] | undefined;
626
- };
627
- activeNumberOfActivations: number;
628
- maxNumberOfActivations: number;
629
- createdAt: Date;
630
- expiresAt?: Date | undefined;
631
- externalFulfillment?: string | undefined;
632
- };
595
+ license: _moonbase_sh_storefront_api.License;
633
596
  url: string;
634
597
  }>;
635
598
  downloadProduct: (download: Download) => Promise<void>;
@@ -671,7 +634,7 @@ declare function useInventory(context?: StorefrontContext): {
671
634
  product: {
672
635
  id: string;
673
636
  name: string;
674
- type: "product";
637
+ type: "Product";
675
638
  description: string;
676
639
  tagline: string;
677
640
  iconUrl: string | null;
@@ -767,7 +730,7 @@ declare function useInventory(context?: StorefrontContext): {
767
730
  bundle: {
768
731
  id: string;
769
732
  name: string;
770
- type: "bundle";
733
+ type: "Bundle";
771
734
  description: string;
772
735
  tagline: string;
773
736
  iconUrl: string | null;
@@ -776,7 +739,7 @@ declare function useInventory(context?: StorefrontContext): {
776
739
  products: ({
777
740
  id: string;
778
741
  name: string;
779
- type: "product";
742
+ type: "Product";
780
743
  description: string;
781
744
  tagline: string;
782
745
  iconUrl: string | null;
@@ -938,6 +901,8 @@ declare function useInventory(context?: StorefrontContext): {
938
901
  }[] | undefined;
939
902
  };
940
903
  };
904
+ paymentMethod?: string | undefined;
905
+ embeddedUpdatePaymentUrl?: string | undefined;
941
906
  }>>;
942
907
  getSubscription: (subscriptionId: string) => Promise<{
943
908
  id: string;
@@ -977,7 +942,7 @@ declare function useInventory(context?: StorefrontContext): {
977
942
  product: {
978
943
  id: string;
979
944
  name: string;
980
- type: "product";
945
+ type: "Product";
981
946
  description: string;
982
947
  tagline: string;
983
948
  iconUrl: string | null;
@@ -1073,7 +1038,7 @@ declare function useInventory(context?: StorefrontContext): {
1073
1038
  bundle: {
1074
1039
  id: string;
1075
1040
  name: string;
1076
- type: "bundle";
1041
+ type: "Bundle";
1077
1042
  description: string;
1078
1043
  tagline: string;
1079
1044
  iconUrl: string | null;
@@ -1082,7 +1047,7 @@ declare function useInventory(context?: StorefrontContext): {
1082
1047
  products: ({
1083
1048
  id: string;
1084
1049
  name: string;
1085
- type: "product";
1050
+ type: "Product";
1086
1051
  description: string;
1087
1052
  tagline: string;
1088
1053
  iconUrl: string | null;
@@ -1244,6 +1209,8 @@ declare function useInventory(context?: StorefrontContext): {
1244
1209
  }[] | undefined;
1245
1210
  };
1246
1211
  };
1212
+ paymentMethod?: string | undefined;
1213
+ embeddedUpdatePaymentUrl?: string | undefined;
1247
1214
  }>;
1248
1215
  cancelSubscription: (subscriptionId: string) => Promise<{
1249
1216
  id: string;
@@ -1283,7 +1250,7 @@ declare function useInventory(context?: StorefrontContext): {
1283
1250
  product: {
1284
1251
  id: string;
1285
1252
  name: string;
1286
- type: "product";
1253
+ type: "Product";
1287
1254
  description: string;
1288
1255
  tagline: string;
1289
1256
  iconUrl: string | null;
@@ -1379,7 +1346,7 @@ declare function useInventory(context?: StorefrontContext): {
1379
1346
  bundle: {
1380
1347
  id: string;
1381
1348
  name: string;
1382
- type: "bundle";
1349
+ type: "Bundle";
1383
1350
  description: string;
1384
1351
  tagline: string;
1385
1352
  iconUrl: string | null;
@@ -1388,7 +1355,7 @@ declare function useInventory(context?: StorefrontContext): {
1388
1355
  products: ({
1389
1356
  id: string;
1390
1357
  name: string;
1391
- type: "product";
1358
+ type: "Product";
1392
1359
  description: string;
1393
1360
  tagline: string;
1394
1361
  iconUrl: string | null;
@@ -1550,6 +1517,8 @@ declare function useInventory(context?: StorefrontContext): {
1550
1517
  }[] | undefined;
1551
1518
  };
1552
1519
  };
1520
+ paymentMethod?: string | undefined;
1521
+ embeddedUpdatePaymentUrl?: string | undefined;
1553
1522
  }>;
1554
1523
  renewSubscription: (subscriptionId: string, options: {
1555
1524
  redirect: boolean;
@@ -1558,8 +1527,18 @@ declare function useInventory(context?: StorefrontContext): {
1558
1527
  next: string | undefined;
1559
1528
  completed: boolean;
1560
1529
  }>;
1530
+ updateSubscriptionPaymentMethod: (subscription: Subscription, options: {
1531
+ returnUrl?: string;
1532
+ }) => Promise<{
1533
+ completed: boolean;
1534
+ } | undefined>;
1561
1535
  };
1562
1536
 
1537
+ declare function useOffer(offerId: string, context?: StorefrontContext): Ref<StorefrontOffer | null>;
1538
+
1539
+ declare function useOffers(context?: StorefrontContext): Ref<StorefrontOffer[]>;
1540
+ declare function useEligibleOffers(context?: StorefrontContext): Ref<StorefrontOffer[]>;
1541
+
1563
1542
  declare function useProduct(productId: string, context?: StorefrontContext): Ref<StorefrontProduct | null>;
1564
1543
 
1565
1544
  declare function useProducts(context?: StorefrontContext): Ref<StorefrontProduct[]>;
@@ -1581,7 +1560,7 @@ declare function useVoucher(context?: StorefrontContext): {
1581
1560
  value: {
1582
1561
  id: string;
1583
1562
  name: string;
1584
- type: "product";
1563
+ type: "Product";
1585
1564
  description: string;
1586
1565
  tagline: string;
1587
1566
  iconUrl: string | null;
@@ -1677,7 +1656,7 @@ declare function useVoucher(context?: StorefrontContext): {
1677
1656
  value: {
1678
1657
  id: string;
1679
1658
  name: string;
1680
- type: "bundle";
1659
+ type: "Bundle";
1681
1660
  description: string;
1682
1661
  tagline: string;
1683
1662
  iconUrl: string | null;
@@ -1686,7 +1665,7 @@ declare function useVoucher(context?: StorefrontContext): {
1686
1665
  products: ({
1687
1666
  id: string;
1688
1667
  name: string;
1689
- type: "product";
1668
+ type: "Product";
1690
1669
  description: string;
1691
1670
  tagline: string;
1692
1671
  iconUrl: string | null;
@@ -1860,7 +1839,7 @@ declare function useVoucher(context?: StorefrontContext): {
1860
1839
  value: {
1861
1840
  id: string;
1862
1841
  name: string;
1863
- type: "product";
1842
+ type: "Product";
1864
1843
  description: string;
1865
1844
  tagline: string;
1866
1845
  iconUrl: string | null;
@@ -1956,7 +1935,7 @@ declare function useVoucher(context?: StorefrontContext): {
1956
1935
  value: {
1957
1936
  id: string;
1958
1937
  name: string;
1959
- type: "bundle";
1938
+ type: "Bundle";
1960
1939
  description: string;
1961
1940
  tagline: string;
1962
1941
  iconUrl: string | null;
@@ -1965,7 +1944,7 @@ declare function useVoucher(context?: StorefrontContext): {
1965
1944
  products: ({
1966
1945
  id: string;
1967
1946
  name: string;
1968
- type: "product";
1947
+ type: "Product";
1969
1948
  description: string;
1970
1949
  tagline: string;
1971
1950
  iconUrl: string | null;
@@ -2139,4 +2118,4 @@ interface Cart {
2139
2118
  type CartItem = LineItem;
2140
2119
  declare function createStorefront(endpoint: string, stateFactory?: StateFactory, config?: Omit<MoonbaseConfiguration, 'endpoint'>): StorefrontContext;
2141
2120
 
2142
- export { type ActivationRequestComposable, type Cart, type CartItem, type CheckoutItem, type VendorComposable, createStorefront, storefrontKey, useActivationRequest, useAuth, useBundle, useBundles, useCart, useCheckout, useInventory, useProduct, useProducts, useVendor, useVoucher };
2121
+ export { type ActivationRequestComposable, type Cart, type CartItem, type CheckoutItem, type VendorComposable, createStorefront, storefrontKey, useActivationRequest, useAuth, useBundle, useBundles, useCart, useCheckout, useEligibleOffers, useInventory, useOffer, useOffers, useProduct, useProducts, useVendor, useVoucher };