@moonbase.sh/storefront 1.0.37 → 2.0.1
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 +23 -0
- package/dist/moonbase.js +8096 -7540
- package/dist/moonbase.umd.cjs +16 -16
- package/package.json +2 -2
package/dist/moonbase.d.ts
CHANGED
|
@@ -103,6 +103,9 @@ declare class MoonbaseImpl implements MoonbaseInstance {
|
|
|
103
103
|
confirm_account(parameters?: MoonbaseIntentArgs['confirm_account']): void;
|
|
104
104
|
confirm_email(parameters?: MoonbaseIntentArgs['confirm_email']): void;
|
|
105
105
|
confirm_email_change(parameters?: MoonbaseIntentArgs['confirm_email_change']): void;
|
|
106
|
+
subscribe(parameters?: MoonbaseIntentArgs['subscribe']): void;
|
|
107
|
+
confirm_communication_preferences(parameters?: MoonbaseIntentArgs['confirm_communication_preferences']): void;
|
|
108
|
+
manage_communication_preferences(parameters?: MoonbaseIntentArgs['manage_communication_preferences']): void;
|
|
106
109
|
connect_account(parameters?: MoonbaseIntentArgs['connect_account']): void;
|
|
107
110
|
view_account(): void;
|
|
108
111
|
view_products(): void;
|
|
@@ -138,6 +141,9 @@ export declare enum MoonbaseIntent {
|
|
|
138
141
|
ConfirmAccount = "confirm_account",
|
|
139
142
|
ConfirmEmail = "confirm_email",
|
|
140
143
|
ConfirmEmailChange = "confirm_email_change",
|
|
144
|
+
Subscribe = "subscribe",
|
|
145
|
+
ConfirmCommunicationPreferences = "confirm_communication_preferences",
|
|
146
|
+
ManageCommunicationPreferences = "manage_communication_preferences",
|
|
141
147
|
ViewAccount = "view_account",
|
|
142
148
|
ViewProducts = "view_products",
|
|
143
149
|
ViewSubscriptions = "view_subscriptions",
|
|
@@ -181,6 +187,17 @@ export declare interface MoonbaseIntentArgs {
|
|
|
181
187
|
email: string;
|
|
182
188
|
code: string;
|
|
183
189
|
};
|
|
190
|
+
[MoonbaseIntent.Subscribe]: {
|
|
191
|
+
email?: string;
|
|
192
|
+
};
|
|
193
|
+
[MoonbaseIntent.ConfirmCommunicationPreferences]: {
|
|
194
|
+
email: string;
|
|
195
|
+
token: string;
|
|
196
|
+
};
|
|
197
|
+
[MoonbaseIntent.ManageCommunicationPreferences]: {
|
|
198
|
+
email: string;
|
|
199
|
+
token: string;
|
|
200
|
+
};
|
|
184
201
|
[MoonbaseIntent.ViewAccount]: never;
|
|
185
202
|
[MoonbaseIntent.ViewProducts]: never;
|
|
186
203
|
[MoonbaseIntent.ViewSubscriptions]: never;
|
|
@@ -253,6 +270,12 @@ declare interface MoonbaseOptions {
|
|
|
253
270
|
};
|
|
254
271
|
passwords: 'default' | 'lax';
|
|
255
272
|
};
|
|
273
|
+
communicationPreferences: {
|
|
274
|
+
show: {
|
|
275
|
+
newsletter: boolean;
|
|
276
|
+
productUpdates: boolean;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
256
279
|
checkout: {
|
|
257
280
|
redirect: boolean;
|
|
258
281
|
};
|