@moonbase.sh/storefront 0.3.4 → 0.3.6

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.
@@ -2,6 +2,7 @@ import { ActivationRequestFulfillmentType } from '@moonbase.sh/vue';
2
2
  import { CartItem } from '@moonbase.sh/vue';
3
3
  import { Download } from '@moonbase.sh/vue';
4
4
  import { InjectionKey } from 'vue';
5
+ import { Money } from '@moonbase.sh/vue';
5
6
  import { OpenOrder } from '@moonbase.sh/vue';
6
7
  import { Order } from '@moonbase.sh/vue';
7
8
  import { OwnedProduct } from '@moonbase.sh/vue';
@@ -57,10 +58,12 @@ declare interface MoonbaseEventArgs {
57
58
  };
58
59
  [MoonbaseEvent.AddedToCart]: {
59
60
  item: CartItem;
61
+ currency: string;
60
62
  user?: User | null;
61
63
  };
62
64
  [MoonbaseEvent.CheckoutInitiated]: {
63
65
  order: OpenOrder;
66
+ total: Money;
64
67
  user?: User | null;
65
68
  };
66
69
  [MoonbaseEvent.CheckoutClosed]: {
@@ -83,6 +86,7 @@ declare class MoonbaseImpl implements MoonbaseInstance {
83
86
  setup(url: string, options?: DeepPartial<MoonbaseOptions>): Promise<void>;
84
87
  configure(options: DeepPartial<MoonbaseOptions>): void;
85
88
  on<TEvent extends MoonbaseEvent>(eventType: TEvent, callback: (event: MoonbaseEventArgs[TEvent]) => void): void;
89
+ private handleLocationIntent;
86
90
  sign_in(parameters?: MoonbaseIntentArgs['sign_in']): void;
87
91
  sign_up(parameters?: MoonbaseIntentArgs['sign_up']): void;
88
92
  forgot_password(parameters?: MoonbaseIntentArgs['forgot_password']): void;
@@ -92,10 +96,12 @@ declare class MoonbaseImpl implements MoonbaseInstance {
92
96
  confirm_email_change(parameters?: MoonbaseIntentArgs['confirm_email_change']): void;
93
97
  view_account(): void;
94
98
  view_products(): void;
99
+ view_subscriptions(): void;
95
100
  redeem_voucher(parameters?: MoonbaseIntentArgs['redeem_voucher']): void;
96
101
  view_product(parameters?: MoonbaseIntentArgs['view_product']): void;
97
102
  download_product(parameters?: MoonbaseIntentArgs['download_product']): void;
98
103
  activate_product(parameters?: MoonbaseIntentArgs['activate_product']): void;
104
+ manage_subscription(parameters?: MoonbaseIntentArgs['manage_subscription']): void;
99
105
  view_cart(): void;
100
106
  add_to_cart(parameters?: MoonbaseIntentArgs['add_to_cart']): Promise<void>;
101
107
  purchase(parameters?: MoonbaseIntentArgs['purchase']): Promise<void>;
@@ -124,10 +130,12 @@ export declare enum MoonbaseIntent {
124
130
  ConfirmEmailChange = "confirm_email_change",
125
131
  ViewAccount = "view_account",
126
132
  ViewProducts = "view_products",
133
+ ViewSubscriptions = "view_subscriptions",
127
134
  RedeemVoucher = "redeem_voucher",
128
135
  ViewProduct = "view_product",
129
136
  DownloadProduct = "download_product",
130
137
  ActivateProduct = "activate_product",
138
+ ManageSubscription = "manage_subscription",
131
139
  ViewCart = "view_cart",
132
140
  Purchase = "purchase",
133
141
  AddToCart = "add_to_cart",
@@ -164,6 +172,7 @@ export declare interface MoonbaseIntentArgs {
164
172
  };
165
173
  [MoonbaseIntent.ViewAccount]: never;
166
174
  [MoonbaseIntent.ViewProducts]: never;
175
+ [MoonbaseIntent.ViewSubscriptions]: never;
167
176
  [MoonbaseIntent.RedeemVoucher]: {
168
177
  code?: string;
169
178
  };
@@ -179,6 +188,9 @@ export declare interface MoonbaseIntentArgs {
179
188
  [MoonbaseIntent.ActivateProduct]: {
180
189
  token?: string;
181
190
  };
191
+ [MoonbaseIntent.ManageSubscription]: {
192
+ subscription_id: string;
193
+ };
182
194
  [MoonbaseIntent.ViewCart]: never;
183
195
  [MoonbaseIntent.AddToCart]: {
184
196
  product_id?: string;