@moonbase.sh/storefront 0.3.3 → 0.3.5
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/moonbase.d.ts +9 -0
- package/dist/moonbase.js +8149 -7108
- package/dist/moonbase.umd.cjs +15 -15
- package/package.json +2 -2
package/dist/moonbase.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ declare class MoonbaseImpl implements MoonbaseInstance {
|
|
|
83
83
|
setup(url: string, options?: DeepPartial<MoonbaseOptions>): Promise<void>;
|
|
84
84
|
configure(options: DeepPartial<MoonbaseOptions>): void;
|
|
85
85
|
on<TEvent extends MoonbaseEvent>(eventType: TEvent, callback: (event: MoonbaseEventArgs[TEvent]) => void): void;
|
|
86
|
+
private handleLocationIntent;
|
|
86
87
|
sign_in(parameters?: MoonbaseIntentArgs['sign_in']): void;
|
|
87
88
|
sign_up(parameters?: MoonbaseIntentArgs['sign_up']): void;
|
|
88
89
|
forgot_password(parameters?: MoonbaseIntentArgs['forgot_password']): void;
|
|
@@ -92,10 +93,12 @@ declare class MoonbaseImpl implements MoonbaseInstance {
|
|
|
92
93
|
confirm_email_change(parameters?: MoonbaseIntentArgs['confirm_email_change']): void;
|
|
93
94
|
view_account(): void;
|
|
94
95
|
view_products(): void;
|
|
96
|
+
view_subscriptions(): void;
|
|
95
97
|
redeem_voucher(parameters?: MoonbaseIntentArgs['redeem_voucher']): void;
|
|
96
98
|
view_product(parameters?: MoonbaseIntentArgs['view_product']): void;
|
|
97
99
|
download_product(parameters?: MoonbaseIntentArgs['download_product']): void;
|
|
98
100
|
activate_product(parameters?: MoonbaseIntentArgs['activate_product']): void;
|
|
101
|
+
manage_subscription(parameters?: MoonbaseIntentArgs['manage_subscription']): void;
|
|
99
102
|
view_cart(): void;
|
|
100
103
|
add_to_cart(parameters?: MoonbaseIntentArgs['add_to_cart']): Promise<void>;
|
|
101
104
|
purchase(parameters?: MoonbaseIntentArgs['purchase']): Promise<void>;
|
|
@@ -124,10 +127,12 @@ export declare enum MoonbaseIntent {
|
|
|
124
127
|
ConfirmEmailChange = "confirm_email_change",
|
|
125
128
|
ViewAccount = "view_account",
|
|
126
129
|
ViewProducts = "view_products",
|
|
130
|
+
ViewSubscriptions = "view_subscriptions",
|
|
127
131
|
RedeemVoucher = "redeem_voucher",
|
|
128
132
|
ViewProduct = "view_product",
|
|
129
133
|
DownloadProduct = "download_product",
|
|
130
134
|
ActivateProduct = "activate_product",
|
|
135
|
+
ManageSubscription = "manage_subscription",
|
|
131
136
|
ViewCart = "view_cart",
|
|
132
137
|
Purchase = "purchase",
|
|
133
138
|
AddToCart = "add_to_cart",
|
|
@@ -164,6 +169,7 @@ export declare interface MoonbaseIntentArgs {
|
|
|
164
169
|
};
|
|
165
170
|
[MoonbaseIntent.ViewAccount]: never;
|
|
166
171
|
[MoonbaseIntent.ViewProducts]: never;
|
|
172
|
+
[MoonbaseIntent.ViewSubscriptions]: never;
|
|
167
173
|
[MoonbaseIntent.RedeemVoucher]: {
|
|
168
174
|
code?: string;
|
|
169
175
|
};
|
|
@@ -179,6 +185,9 @@ export declare interface MoonbaseIntentArgs {
|
|
|
179
185
|
[MoonbaseIntent.ActivateProduct]: {
|
|
180
186
|
token?: string;
|
|
181
187
|
};
|
|
188
|
+
[MoonbaseIntent.ManageSubscription]: {
|
|
189
|
+
subscription_id: string;
|
|
190
|
+
};
|
|
182
191
|
[MoonbaseIntent.ViewCart]: never;
|
|
183
192
|
[MoonbaseIntent.AddToCart]: {
|
|
184
193
|
product_id?: string;
|