@moonbase.sh/storefront 0.2.127 → 0.2.129

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 { OpenOrder } from '@moonbase.sh/vue';
5
6
  import { Order } from '@moonbase.sh/vue';
6
7
  import { OwnedProduct } from '@moonbase.sh/vue';
7
8
  import { StorefrontProduct } from '@moonbase.sh/vue';
@@ -59,7 +60,7 @@ declare interface MoonbaseEventArgs {
59
60
  user?: User | null;
60
61
  };
61
62
  [MoonbaseEvent.CheckoutInitiated]: {
62
- order: Order;
63
+ order: OpenOrder;
63
64
  user?: User | null;
64
65
  };
65
66
  [MoonbaseEvent.CheckoutClosed]: {
@@ -97,6 +98,7 @@ declare class MoonbaseImpl implements MoonbaseInstance {
97
98
  activate_product(parameters?: MoonbaseIntentArgs['activate_product']): void;
98
99
  view_cart(): void;
99
100
  add_to_cart(parameters?: MoonbaseIntentArgs['add_to_cart']): Promise<void>;
101
+ purchase(parameters?: MoonbaseIntentArgs['purchase']): Promise<void>;
100
102
  checkout(parameters?: MoonbaseIntentArgs['checkout']): void;
101
103
  close_checkout(): void;
102
104
  view_about(): void;
@@ -127,6 +129,7 @@ export declare enum MoonbaseIntent {
127
129
  DownloadProduct = "download_product",
128
130
  ActivateProduct = "activate_product",
129
131
  ViewCart = "view_cart",
132
+ Purchase = "purchase",
130
133
  AddToCart = "add_to_cart",
131
134
  Checkout = "checkout",
132
135
  CloseCheckout = "close_checkout",
@@ -182,7 +185,19 @@ export declare interface MoonbaseIntentArgs {
182
185
  bundle_id?: string;
183
186
  variation_id?: string;
184
187
  quantity?: number;
188
+ show_cart?: boolean;
185
189
  };
190
+ [MoonbaseIntent.Purchase]: {
191
+ product_id?: string;
192
+ bundle_id?: string;
193
+ variation_id?: string;
194
+ quantity?: number;
195
+ } | {
196
+ product_id?: string;
197
+ bundle_id?: string;
198
+ variation_id?: string;
199
+ quantity?: number;
200
+ }[];
186
201
  [MoonbaseIntent.Checkout]: {
187
202
  complete?: boolean;
188
203
  };