@plasmicpkgs/commerce-swell 0.0.257 → 0.0.259

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.
Files changed (55) hide show
  1. package/dist/cart/index.d.ts +3 -3
  2. package/dist/cart/use-add-item.d.ts +5 -5
  3. package/dist/cart/use-cart.d.ts +6 -6
  4. package/dist/cart/use-remove-item.d.ts +21 -21
  5. package/dist/cart/use-update-item.d.ts +33 -33
  6. package/dist/cart/utils/checkout-create.d.ts +2 -2
  7. package/dist/cart/utils/checkout-to-cart.d.ts +5 -5
  8. package/dist/cart/utils/index.d.ts +2 -2
  9. package/dist/commerce-swell.cjs.development.js +36 -35
  10. package/dist/commerce-swell.cjs.development.js.map +1 -1
  11. package/dist/commerce-swell.cjs.production.min.js +1 -1
  12. package/dist/commerce-swell.cjs.production.min.js.map +1 -1
  13. package/dist/commerce-swell.esm.js +36 -35
  14. package/dist/commerce-swell.esm.js.map +1 -1
  15. package/dist/const.d.ts +4 -4
  16. package/dist/fetcher.d.ts +3 -3
  17. package/dist/index.d.ts +7 -7
  18. package/dist/product/index.d.ts +2 -2
  19. package/dist/product/use-price.d.ts +2 -2
  20. package/dist/product/use-product.d.ts +7 -7
  21. package/dist/product/use-search.d.ts +15 -15
  22. package/dist/provider.d.ts +132 -81
  23. package/dist/registerCommerceProvider.d.ts +12 -12
  24. package/dist/registerable.d.ts +6 -6
  25. package/dist/site/use-brands.d.ts +5 -5
  26. package/dist/site/use-categories.d.ts +5 -5
  27. package/dist/swell.d.ts +9 -9
  28. package/dist/types/cart.d.ts +18 -18
  29. package/dist/types/checkout.d.ts +1 -1
  30. package/dist/types/common.d.ts +1 -1
  31. package/dist/types/customer.d.ts +1 -1
  32. package/dist/types/index.d.ts +12 -12
  33. package/dist/types/login.d.ts +8 -8
  34. package/dist/types/logout.d.ts +1 -1
  35. package/dist/types/page.d.ts +1 -1
  36. package/dist/types/product.d.ts +14 -14
  37. package/dist/types/signup.d.ts +1 -1
  38. package/dist/types/site.d.ts +8 -8
  39. package/dist/types/wishlist.d.ts +1 -1
  40. package/dist/types.d.ts +98 -98
  41. package/dist/utils/category-tree.d.ts +3 -3
  42. package/dist/utils/common.d.ts +2 -2
  43. package/dist/utils/customer-token.d.ts +3 -3
  44. package/dist/utils/fetch-swell-api.d.ts +2 -2
  45. package/dist/utils/get-categories.d.ts +4 -4
  46. package/dist/utils/get-checkout-id.d.ts +2 -2
  47. package/dist/utils/get-search-variables.d.ts +6 -6
  48. package/dist/utils/get-sort-variables.d.ts +2 -2
  49. package/dist/utils/get-vendors.d.ts +17 -17
  50. package/dist/utils/handle-fetch-response.d.ts +8 -8
  51. package/dist/utils/handle-login.d.ts +2 -2
  52. package/dist/utils/index.d.ts +8 -8
  53. package/dist/utils/normalize.d.ts +7 -7
  54. package/dist/utils/storage.d.ts +2 -2
  55. package/package.json +8 -8
@@ -1,81 +1,132 @@
1
- import swell from "swell-js";
2
- import { CommerceExtraFeatures, Fetcher } from "@plasmicpkgs/commerce";
3
- import { handler as useAddItem } from "./cart/use-add-item";
4
- import { handler as useCart } from "./cart/use-cart";
5
- import { handler as useRemoveItem } from "./cart/use-remove-item";
6
- import { handler as useUpdateItem } from "./cart/use-update-item";
7
- import { handler as useSearch } from "./product/use-search";
8
- import { handler as useBrands } from "./site/use-brands";
9
- import { handler as useCategories } from "./site/use-categories";
10
- export declare const getSwellProvider: (storeId: string, publicKey: string) => {
11
- locale: string;
12
- cartCookie: string;
13
- swell: typeof swell;
14
- fetcher: Fetcher<any, any>;
15
- cart: {
16
- useCart: import("@plasmicpkgs/commerce").SWRHook<import("@plasmicpkgs/commerce/dist/types/cart").GetCartHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>;
17
- useAddItem: import("@plasmicpkgs/commerce").MutationHook<import("@plasmicpkgs/commerce/dist/types/cart").AddItemHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>;
18
- useUpdateItem: {
19
- fetchOptions: {
20
- query: string;
21
- method: string;
22
- };
23
- fetcher({ input: { itemId, item }, options, fetch, }: import("@plasmicpkgs/commerce").HookFetcherContext<import("@plasmicpkgs/commerce/dist/types/cart").UpdateItemHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>): Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart>;
24
- useHook: ({ fetch }: import("@plasmicpkgs/commerce").MutationHookContext<import("@plasmicpkgs/commerce/dist/types/cart").UpdateItemHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>) => <T extends import("@plasmicpkgs/commerce/dist/types/cart").LineItem | undefined = undefined>(ctx?: {
25
- item?: T | undefined;
26
- wait?: number | undefined;
27
- }) => ((input: (Partial<import("@plasmicpkgs/commerce/dist/types/cart").CartItemBody> & {
28
- id: string;
29
- }) | Partial<Partial<import("@plasmicpkgs/commerce/dist/types/cart").CartItemBody> & {
30
- id: string;
31
- }>) => Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined>) & {
32
- clear(): void;
33
- } & {
34
- flush(): void;
35
- };
36
- };
37
- useRemoveItem: {
38
- fetchOptions: {
39
- query: string;
40
- method: string;
41
- };
42
- fetcher({ input: { itemId }, options, fetch, }: import("@plasmicpkgs/commerce").HookFetcherContext<import("@plasmicpkgs/commerce/dist/types/cart").RemoveItemHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>): Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart>;
43
- useHook: ({ fetch }: import("@plasmicpkgs/commerce").MutationHookContext<import("@plasmicpkgs/commerce/dist/types/cart").RemoveItemHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>) => () => (input: {
44
- id: string;
45
- }) => Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined>;
46
- };
47
- };
48
- products: {
49
- useSearch: import("@plasmicpkgs/commerce").SWRHook<import("@plasmicpkgs/commerce").SearchProductsHook<import("@plasmicpkgs/commerce/dist/types/product").ProductTypes>>;
50
- useProduct: import("@plasmicpkgs/commerce").SWRHook<import("@plasmicpkgs/commerce").GetProductHook<import("@plasmicpkgs/commerce/dist/types/product").ProductTypes>>;
51
- };
52
- site: {
53
- useCategories: import("@plasmicpkgs/commerce").SWRHook<import("@plasmicpkgs/commerce/dist/types/site").GetCategoriesHook<import("@plasmicpkgs/commerce/dist/types/site").SiteTypes>>;
54
- useBrands: import("@plasmicpkgs/commerce").SWRHook<import("@plasmicpkgs/commerce/dist/types/site").GetBrandsHook<import("@plasmicpkgs/commerce/dist/types/site").SiteTypes>>;
55
- };
56
- extraFeatures: {
57
- includeSubCategories: boolean;
58
- };
59
- };
60
- export declare type SwellProvider = {
61
- locale: string;
62
- cartCookie: string;
63
- fetcher: Fetcher;
64
- cart: {
65
- useCart: typeof useCart;
66
- useAddItem: typeof useAddItem;
67
- useUpdateItem: typeof useUpdateItem;
68
- useRemoveItem: typeof useRemoveItem;
69
- };
70
- products: {
71
- useSearch: typeof useSearch;
72
- };
73
- site: {
74
- useCategories: typeof useCategories;
75
- useBrands: typeof useBrands;
76
- };
77
- extraFeatures: CommerceExtraFeatures;
78
- swell: any;
79
- };
80
- declare const _default: any;
81
- export default _default;
1
+ import swell from "swell-js";
2
+ import { CommerceExtraFeatures, Fetcher } from "@plasmicpkgs/commerce";
3
+ import { handler as useAddItem } from "./cart/use-add-item";
4
+ import { handler as useCart } from "./cart/use-cart";
5
+ import { handler as useRemoveItem } from "./cart/use-remove-item";
6
+ import { handler as useUpdateItem } from "./cart/use-update-item";
7
+ import { handler as useSearch } from "./product/use-search";
8
+ import { handler as useBrands } from "./site/use-brands";
9
+ import { handler as useCategories } from "./site/use-categories";
10
+ export declare const getSwellProvider: (storeId: string, publicKey: string) => {
11
+ locale: string;
12
+ cartCookie: string;
13
+ swell: typeof swell;
14
+ fetcher: Fetcher;
15
+ cart: {
16
+ useCart: import("@plasmicpkgs/commerce").SWRHook<{
17
+ data: import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined;
18
+ input: {};
19
+ fetcherInput: {
20
+ cartId?: string | undefined;
21
+ };
22
+ swrState: {
23
+ isEmpty: boolean;
24
+ };
25
+ }>;
26
+ useAddItem: import("@plasmicpkgs/commerce").MutationHook<import("@plasmicpkgs/commerce/dist/types/cart").AddItemHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>;
27
+ useUpdateItem: {
28
+ fetchOptions: {
29
+ query: string;
30
+ method: string;
31
+ };
32
+ fetcher({ input: { itemId, item }, options, fetch, }: import("@plasmicpkgs/commerce").HookFetcherContext<import("@plasmicpkgs/commerce/dist/types/cart").UpdateItemHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>): Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart>;
33
+ useHook: ({ fetch }: import("@plasmicpkgs/commerce").MutationHookContext<import("@plasmicpkgs/commerce/dist/types/cart").UpdateItemHook<import("@plasmicpkgs/commerce/dist/types/cart").CartTypes>>) => <T extends import("@plasmicpkgs/commerce/dist/types/cart").LineItem | undefined = undefined>(ctx?: {
34
+ item?: T | undefined;
35
+ wait?: number | undefined;
36
+ }) => ((input: (Partial<import("@plasmicpkgs/commerce/dist/types/cart").CartItemBody> & {
37
+ id: string;
38
+ }) | Partial<Partial<import("@plasmicpkgs/commerce/dist/types/cart").CartItemBody> & {
39
+ id: string;
40
+ }>) => Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined>) & {
41
+ clear(): void;
42
+ } & {
43
+ flush(): void;
44
+ };
45
+ };
46
+ useRemoveItem: {
47
+ fetchOptions: {
48
+ query: string;
49
+ method: string;
50
+ };
51
+ fetcher({ input: { itemId }, options, fetch, }: import("@plasmicpkgs/commerce").HookFetcherContext<{
52
+ data: import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined;
53
+ input: {
54
+ item?: import("@plasmicpkgs/commerce/dist/types/cart").LineItem | undefined;
55
+ };
56
+ fetcherInput: {
57
+ itemId: string;
58
+ };
59
+ body: {
60
+ itemId: string;
61
+ };
62
+ actionInput: {
63
+ id: string;
64
+ };
65
+ }>): Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart>;
66
+ useHook: ({ fetch }: import("@plasmicpkgs/commerce").MutationHookContext<{
67
+ data: import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined;
68
+ input: {
69
+ item?: import("@plasmicpkgs/commerce/dist/types/cart").LineItem | undefined;
70
+ };
71
+ fetcherInput: {
72
+ itemId: string;
73
+ };
74
+ body: {
75
+ itemId: string;
76
+ };
77
+ actionInput: {
78
+ id: string;
79
+ };
80
+ }>) => () => (input: {
81
+ id: string;
82
+ }) => Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined>;
83
+ };
84
+ };
85
+ products: {
86
+ useSearch: import("@plasmicpkgs/commerce").SWRHook<import("@plasmicpkgs/commerce").SearchProductsHook>;
87
+ useProduct: import("@plasmicpkgs/commerce").SWRHook<import("@plasmicpkgs/commerce").GetProductHook>;
88
+ };
89
+ site: {
90
+ useCategories: import("@plasmicpkgs/commerce").SWRHook<{
91
+ data: import("@plasmicpkgs/commerce/dist/types/site").Category[];
92
+ input: import("@plasmicpkgs/commerce/dist/types/site").GetCategoriesBody;
93
+ fetcherInput: import("@plasmicpkgs/commerce/dist/types/site").GetCategoriesBody;
94
+ swrState: {
95
+ isEmpty: boolean;
96
+ };
97
+ }>;
98
+ useBrands: import("@plasmicpkgs/commerce").SWRHook<{
99
+ data: import("@plasmicpkgs/commerce/dist/types/site").Brand[] | null;
100
+ input: {};
101
+ fetcherInput: {};
102
+ swrState: {
103
+ isEmpty: boolean;
104
+ };
105
+ }>;
106
+ };
107
+ extraFeatures: {
108
+ includeSubCategories: boolean;
109
+ };
110
+ };
111
+ export type SwellProvider = {
112
+ locale: string;
113
+ cartCookie: string;
114
+ fetcher: Fetcher;
115
+ cart: {
116
+ useCart: typeof useCart;
117
+ useAddItem: typeof useAddItem;
118
+ useUpdateItem: typeof useUpdateItem;
119
+ useRemoveItem: typeof useRemoveItem;
120
+ };
121
+ products: {
122
+ useSearch: typeof useSearch;
123
+ };
124
+ site: {
125
+ useCategories: typeof useCategories;
126
+ useBrands: typeof useBrands;
127
+ };
128
+ extraFeatures: CommerceExtraFeatures;
129
+ swell: any;
130
+ };
131
+ declare const _default: any;
132
+ export default _default;
@@ -1,12 +1,12 @@
1
- import { GlobalContextMeta } from "@plasmicapp/host";
2
- import React from "react";
3
- import { Registerable } from "./registerable";
4
- interface CommerceProviderProps {
5
- children?: React.ReactNode;
6
- storeId: string;
7
- publicKey: string;
8
- }
9
- export declare const commerceProviderMeta: GlobalContextMeta<CommerceProviderProps>;
10
- export declare function CommerceProviderComponent(props: CommerceProviderProps): React.JSX.Element;
11
- export declare function registerCommerceProvider(loader?: Registerable, customCommerceProviderMeta?: GlobalContextMeta<CommerceProviderProps>): void;
12
- export {};
1
+ import { GlobalContextMeta } from "@plasmicapp/host";
2
+ import React from "react";
3
+ import { Registerable } from "./registerable";
4
+ interface CommerceProviderProps {
5
+ children?: React.ReactNode;
6
+ storeId: string;
7
+ publicKey: string;
8
+ }
9
+ export declare const commerceProviderMeta: GlobalContextMeta<CommerceProviderProps>;
10
+ export declare function CommerceProviderComponent(props: CommerceProviderProps): React.JSX.Element;
11
+ export declare function registerCommerceProvider(loader?: Registerable, customCommerceProviderMeta?: GlobalContextMeta<CommerceProviderProps>): void;
12
+ export {};
@@ -1,6 +1,6 @@
1
- import { registerGlobalContext } from "@plasmicapp/host";
2
- import registerComponent from "@plasmicapp/host/registerComponent";
3
- export declare type Registerable = {
4
- registerComponent: typeof registerComponent;
5
- registerGlobalContext: typeof registerGlobalContext;
6
- };
1
+ import { registerGlobalContext } from "@plasmicapp/host";
2
+ import registerComponent from "@plasmicapp/host/registerComponent";
3
+ export type Registerable = {
4
+ registerComponent: typeof registerComponent;
5
+ registerGlobalContext: typeof registerGlobalContext;
6
+ };
@@ -1,5 +1,5 @@
1
- import { SiteTypes, SWRHook } from "@plasmicpkgs/commerce";
2
- declare const _default;
3
- export default _default;
4
- declare type GetBrandsHook = SiteTypes.GetBrandsHook;
5
- export declare const handler: SWRHook<GetBrandsHook>;
1
+ import { SiteTypes, SWRHook, UseBrands } from "@plasmicpkgs/commerce";
2
+ declare const _default: UseBrands<typeof handler>;
3
+ export default _default;
4
+ type GetBrandsHook = SiteTypes.GetBrandsHook;
5
+ export declare const handler: SWRHook<GetBrandsHook>;
@@ -1,5 +1,5 @@
1
- import { SiteTypes, SWRHook } from "@plasmicpkgs/commerce";
2
- declare const _default;
3
- export default _default;
4
- declare type GetCategoriesHook = SiteTypes.GetCategoriesHook;
5
- export declare const handler: SWRHook<GetCategoriesHook>;
1
+ import { SiteTypes, SWRHook, UseCategories } from "@plasmicpkgs/commerce";
2
+ declare const _default: UseCategories<typeof handler>;
3
+ export default _default;
4
+ type GetCategoriesHook = SiteTypes.GetCategoriesHook;
5
+ export declare const handler: SWRHook<GetCategoriesHook>;
package/dist/swell.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- import { CommerceAPIConfig } from '@plasmicpkgs/commerce';
3
- import { SwellProvider } from './provider';
4
- export type { SwellProvider };
5
- export declare const getCommerceProvider: (storeId: string, publicKey: string) => ({ children, ...props }: import("@plasmicpkgs/commerce").CommerceProviderProps) => import("react").JSX.Element;
6
- export declare const useCommerce: () => import("@plasmicpkgs/commerce").CommerceContextValue<SwellProvider>;
7
- export interface SwellConfig extends CommerceAPIConfig {
8
- fetch: any;
9
- }
1
+ /// <reference types="react" />
2
+ import { CommerceAPIConfig } from '@plasmicpkgs/commerce';
3
+ import { SwellProvider } from './provider';
4
+ export type { SwellProvider };
5
+ export declare const getCommerceProvider: (storeId: string, publicKey: string) => ({ children, ...props }: import("@plasmicpkgs/commerce").CommerceProviderProps) => import("react").JSX.Element;
6
+ export declare const useCommerce: () => import("@plasmicpkgs/commerce").CommerceContextValue<SwellProvider>;
7
+ export interface SwellConfig extends CommerceAPIConfig {
8
+ fetch: any;
9
+ }
@@ -1,18 +1,18 @@
1
- import { CartType as Core } from '@plasmicpkgs/commerce';
2
- export declare type SelectedOption = Core.SelectedOption;
3
- export declare type LineItem = Core.LineItem;
4
- export declare type ProductVariant = Core.ProductVariant;
5
- export declare type CartItemBody = Core.CartItemBody;
6
- export declare type Cart = Core.Cart;
7
- export declare type CartTypes = Core.CartTypes;
8
- export declare type CartHooks = Core.CartHooks<CartTypes>;
9
- export declare type GetCartHook = CartHooks['getCart'];
10
- export declare type AddItemHook = CartHooks['addItem'];
11
- export declare type UpdateItemHook = CartHooks['updateItem'];
12
- export declare type RemoveItemHook = CartHooks['removeItem'];
13
- export declare type CartSchema = Core.CartSchema<CartTypes>;
14
- export declare type CartHandlers = Core.CartHandlers<CartTypes>;
15
- export declare type GetCartHandler = CartHandlers['getCart'];
16
- export declare type AddItemHandler = CartHandlers['addItem'];
17
- export declare type UpdateItemHandler = CartHandlers['updateItem'];
18
- export declare type RemoveItemHandler = CartHandlers['removeItem'];
1
+ import { CartType as Core } from '@plasmicpkgs/commerce';
2
+ export type SelectedOption = Core.SelectedOption;
3
+ export type LineItem = Core.LineItem;
4
+ export type ProductVariant = Core.ProductVariant;
5
+ export type CartItemBody = Core.CartItemBody;
6
+ export type Cart = Core.Cart;
7
+ export type CartTypes = Core.CartTypes;
8
+ export type CartHooks = Core.CartHooks<CartTypes>;
9
+ export type GetCartHook = CartHooks['getCart'];
10
+ export type AddItemHook = CartHooks['addItem'];
11
+ export type UpdateItemHook = CartHooks['updateItem'];
12
+ export type RemoveItemHook = CartHooks['removeItem'];
13
+ export type CartSchema = Core.CartSchema<CartTypes>;
14
+ export type CartHandlers = Core.CartHandlers<CartTypes>;
15
+ export type GetCartHandler = CartHandlers['getCart'];
16
+ export type AddItemHandler = CartHandlers['addItem'];
17
+ export type UpdateItemHandler = CartHandlers['updateItem'];
18
+ export type RemoveItemHandler = CartHandlers['removeItem'];
@@ -1 +1 @@
1
- export * from '@vercel/commerce/types/checkout';
1
+ export * from '@vercel/commerce/types/checkout';
@@ -1 +1 @@
1
- export * from '@vercel/commerce/types/common';
1
+ export * from '@vercel/commerce/types/common';
@@ -1 +1 @@
1
- export * from '@vercel/commerce/types/customer';
1
+ export * from '@vercel/commerce/types/customer';
@@ -1,12 +1,12 @@
1
- import * as Cart from './cart';
2
- import * as Checkout from './checkout';
3
- import * as Common from './common';
4
- import * as Customer from './customer';
5
- import * as Login from './login';
6
- import * as Logout from './logout';
7
- import * as Page from './page';
8
- import * as Product from './product';
9
- import * as Signup from './signup';
10
- import * as Site from './site';
11
- import * as Wishlist from './wishlist';
12
- export type { Cart, Checkout, Common, Customer, Login, Logout, Page, Product, Signup, Site, Wishlist, };
1
+ import * as Cart from './cart';
2
+ import * as Checkout from './checkout';
3
+ import * as Common from './common';
4
+ import * as Customer from './customer';
5
+ import * as Login from './login';
6
+ import * as Logout from './logout';
7
+ import * as Page from './page';
8
+ import * as Product from './product';
9
+ import * as Signup from './signup';
10
+ import * as Site from './site';
11
+ import * as Wishlist from './wishlist';
12
+ export type { Cart, Checkout, Common, Customer, Login, Logout, Page, Product, Signup, Site, Wishlist, };
@@ -1,8 +1,8 @@
1
- import { LoginBody, LoginTypes } from '@vercel/commerce/types/login';
2
- export * from '@vercel/commerce/types/login';
3
- export declare type LoginHook<T extends LoginTypes = LoginTypes> = {
4
- data: null;
5
- actionInput: LoginBody;
6
- fetcherInput: LoginBody;
7
- body: T['body'];
8
- };
1
+ import { LoginBody, LoginTypes } from '@vercel/commerce/types/login';
2
+ export * from '@vercel/commerce/types/login';
3
+ export type LoginHook<T extends LoginTypes = LoginTypes> = {
4
+ data: null;
5
+ actionInput: LoginBody;
6
+ fetcherInput: LoginBody;
7
+ body: T['body'];
8
+ };
@@ -1 +1 @@
1
- export * from '@vercel/commerce/types/logout';
1
+ export * from '@vercel/commerce/types/logout';
@@ -1 +1 @@
1
- export * from '@vercel/commerce/types/page';
1
+ export * from '@vercel/commerce/types/page';
@@ -1,14 +1,14 @@
1
- import { ProductTypes } from "@plasmicpkgs/commerce";
2
- export declare type ProductImage = ProductTypes.ProductImage;
3
- export declare type ProductPrice = ProductTypes.ProductPrice;
4
- export declare type ProductOption = ProductTypes.ProductOption;
5
- export declare type ProductOptionValues = ProductTypes.ProductOptionValues;
6
- export declare type ProductVariant = ProductTypes.ProductVariant;
7
- export declare type Product = ProductTypes.Product;
8
- export declare type SearchProductsBody = ProductTypes.SearchProductsBody;
9
- export declare type ProductTypes = ProductTypes.ProductTypes;
10
- export declare type SearchProductsHook = ProductTypes.SearchProductsHook;
11
- export declare type ProductsSchema = ProductTypes.ProductsSchema;
12
- export declare type GetAllProductPathsOperation = ProductTypes.GetAllProductPathsOperation;
13
- export declare type GetAllProductsOperation = ProductTypes.GetAllProductsOperation;
14
- export declare type GetProductOperation = ProductTypes.GetProductOperation;
1
+ import { ProductTypes } from "@plasmicpkgs/commerce";
2
+ export type ProductImage = ProductTypes.ProductImage;
3
+ export type ProductPrice = ProductTypes.ProductPrice;
4
+ export type ProductOption = ProductTypes.ProductOption;
5
+ export type ProductOptionValues = ProductTypes.ProductOptionValues;
6
+ export type ProductVariant = ProductTypes.ProductVariant;
7
+ export type Product = ProductTypes.Product;
8
+ export type SearchProductsBody = ProductTypes.SearchProductsBody;
9
+ export type ProductTypes = ProductTypes.ProductTypes;
10
+ export type SearchProductsHook = ProductTypes.SearchProductsHook;
11
+ export type ProductsSchema = ProductTypes.ProductsSchema;
12
+ export type GetAllProductPathsOperation = ProductTypes.GetAllProductPathsOperation;
13
+ export type GetAllProductsOperation = ProductTypes.GetAllProductsOperation;
14
+ export type GetProductOperation = ProductTypes.GetProductOperation;
@@ -1 +1 @@
1
- export * from '@vercel/commerce/types/signup';
1
+ export * from '@vercel/commerce/types/signup';
@@ -1,8 +1,8 @@
1
- import { SiteTypes } from "@plasmicpkgs/commerce";
2
- export declare type Category = SiteTypes.Category;
3
- export declare type SwellCategoryChildren = {
4
- results: Category[];
5
- };
6
- export declare type Brand = SiteTypes.Brand;
7
- export declare type SiteTypes = SiteTypes.SiteTypes;
8
- export declare type GetSiteInfoOperation = SiteTypes.GetSiteInfoOperation;
1
+ import { SiteTypes } from "@plasmicpkgs/commerce";
2
+ export type Category = SiteTypes.Category;
3
+ export type SwellCategoryChildren = {
4
+ results: Category[];
5
+ };
6
+ export type Brand = SiteTypes.Brand;
7
+ export type SiteTypes = SiteTypes.SiteTypes;
8
+ export type GetSiteInfoOperation = SiteTypes.GetSiteInfoOperation;
@@ -1 +1 @@
1
- export * from '@vercel/commerce/types/wishlist';
1
+ export * from '@vercel/commerce/types/wishlist';