@plasmicpkgs/commerce-shopify 0.0.214 → 0.0.215
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/cart/use-add-item.d.ts +4 -4
- package/dist/cart/use-cart.d.ts +2 -3
- package/dist/cart/use-remove-item.d.ts +12 -8
- package/dist/cart/use-update-item.d.ts +12 -8
- package/dist/commerce-shopify.cjs.development.js +2863 -716
- package/dist/commerce-shopify.cjs.development.js.map +1 -1
- package/dist/commerce-shopify.cjs.production.min.js +1 -1
- package/dist/commerce-shopify.cjs.production.min.js.map +1 -1
- package/dist/commerce-shopify.esm.js +2864 -717
- package/dist/commerce-shopify.esm.js.map +1 -1
- package/dist/const.d.ts +1 -1
- package/dist/fetcher.d.ts +1 -1
- package/dist/graphql-config.d.ts +6 -0
- package/dist/product/use-product.d.ts +2 -5
- package/dist/product/use-search.d.ts +1 -9
- package/dist/provider.d.ts +19 -13
- package/dist/shopify-types.d.ts +5 -0
- package/dist/site/use-brands.d.ts +2 -3
- package/dist/site/use-categories.d.ts +2 -3
- package/dist/utils/cart-create.d.ts +3 -0
- package/dist/utils/fragments/cart.d.ts +1 -0
- package/dist/utils/fragments/collection.d.ts +1 -0
- package/dist/utils/fragments/image.d.ts +1 -0
- package/dist/utils/fragments/product-variant.d.ts +1 -0
- package/dist/utils/fragments/product.d.ts +1 -0
- package/dist/utils/fragments/seo.d.ts +1 -0
- package/dist/utils/get-cart-id.d.ts +1 -0
- package/dist/utils/graphql/gen/gql.d.ts +76 -0
- package/dist/utils/graphql/gen/graphql.d.ts +11114 -0
- package/dist/utils/graphql/gen/index.d.ts +1 -0
- package/dist/utils/mutations/cart.d.ts +15 -0
- package/dist/utils/mutations/customer-activate-by-url.d.ts +4 -2
- package/dist/utils/normalize.d.ts +6 -7
- package/dist/utils/queries/get-all-collections-query.d.ts +3 -2
- package/dist/utils/queries/get-all-product-vendors-query.d.ts +4 -2
- package/dist/utils/queries/get-all-products-query.d.ts +6 -3
- package/dist/utils/queries/get-cart-query.d.ts +3 -0
- package/dist/utils/queries/get-collection-products-query.d.ts +6 -2
- package/dist/utils/queries/get-collection-query.d.ts +5 -3
- package/dist/utils/queries/get-product-query.d.ts +6 -3
- package/dist/utils/throw-user-errors.d.ts +1 -2
- package/package.json +7 -4
- package/dist/cart/index.d.ts +0 -4
- package/dist/product/use-price.d.ts +0 -2
- package/dist/types/cart.d.ts +0 -25
- package/dist/types/checkout.d.ts +0 -1
- package/dist/types/common.d.ts +0 -1
- package/dist/types/customer.d.ts +0 -3
- package/dist/types/index.d.ts +0 -12
- package/dist/types/login.d.ts +0 -6
- package/dist/types/logout.d.ts +0 -1
- package/dist/types/page.d.ts +0 -8
- package/dist/types/product.d.ts +0 -1
- package/dist/types/signup.d.ts +0 -1
- package/dist/types/site.d.ts +0 -7
- package/dist/types/wishlist.d.ts +0 -1
- package/dist/utils/checkout-create.d.ts +0 -4
- package/dist/utils/checkout-to-cart.d.ts +0 -9
- package/dist/utils/customer-token.d.ts +0 -3
- package/dist/utils/get-brands.d.ts +0 -11
- package/dist/utils/get-categories.d.ts +0 -3
- package/dist/utils/get-checkout-id.d.ts +0 -2
- package/dist/utils/handle-account-activation.d.ts +0 -3
- package/dist/utils/handle-fetch-response.d.ts +0 -5
- package/dist/utils/handle-login.d.ts +0 -4
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/mutations/associate-customer-with-checkout.d.ts +0 -2
- package/dist/utils/mutations/checkout-create.d.ts +0 -2
- package/dist/utils/mutations/checkout-line-item-add.d.ts +0 -2
- package/dist/utils/mutations/checkout-line-item-remove.d.ts +0 -2
- package/dist/utils/mutations/checkout-line-item-update.d.ts +0 -2
- package/dist/utils/mutations/customer-access-token-create.d.ts +0 -2
- package/dist/utils/mutations/customer-access-token-delete.d.ts +0 -2
- package/dist/utils/mutations/customer-activate.d.ts +0 -2
- package/dist/utils/mutations/customer-create.d.ts +0 -2
- package/dist/utils/mutations/index.d.ts +0 -9
- package/dist/utils/queries/get-all-pages-query.d.ts +0 -2
- package/dist/utils/queries/get-all-products-paths-query.d.ts +0 -2
- package/dist/utils/queries/get-checkout-query.d.ts +0 -3
- package/dist/utils/queries/get-customer-id-query.d.ts +0 -2
- package/dist/utils/queries/get-customer-query.d.ts +0 -2
- package/dist/utils/queries/get-page-query.d.ts +0 -2
- package/dist/utils/queries/get-site-info-query.d.ts +0 -2
- package/dist/utils/queries/index.d.ts +0 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./gql";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const addToCartMutation: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").AddToCartMutation, import("../graphql/gen/graphql").Exact<{
|
|
2
|
+
cartId: string;
|
|
3
|
+
lines: import("../graphql/gen/graphql").CartLineInput | import("../graphql/gen/graphql").CartLineInput[];
|
|
4
|
+
}>>;
|
|
5
|
+
export declare const createCartMutation: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").CreateCartMutation, import("../graphql/gen/graphql").Exact<{
|
|
6
|
+
lines?: import("../graphql/gen/graphql").CartLineInput | import("../graphql/gen/graphql").CartLineInput[] | null | undefined;
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const editCartItemsMutation: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").EditCartItemsMutation, import("../graphql/gen/graphql").Exact<{
|
|
9
|
+
cartId: string;
|
|
10
|
+
lines: import("../graphql/gen/graphql").CartLineUpdateInput | import("../graphql/gen/graphql").CartLineUpdateInput[];
|
|
11
|
+
}>>;
|
|
12
|
+
export declare const removeFromCartMutation: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").RemoveFromCartMutation, import("../graphql/gen/graphql").Exact<{
|
|
13
|
+
cartId: string;
|
|
14
|
+
lineIds: string | string[];
|
|
15
|
+
}>>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const customerActivateByUrlMutation
|
|
2
|
-
|
|
1
|
+
export declare const customerActivateByUrlMutation: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").CustomerActivateByUrlMutation, import("../graphql/gen/graphql").Exact<{
|
|
2
|
+
activationUrl: any;
|
|
3
|
+
password: string;
|
|
4
|
+
}>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { Product } from "@plasmicpkgs/commerce";
|
|
2
|
-
import type {
|
|
3
|
-
import { Collection } from "
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare const normalizeCategory: ({ title: name, handle, id, products, image, }: Collection) => Category;
|
|
1
|
+
import type { Product, SiteTypes } from "@plasmicpkgs/commerce";
|
|
2
|
+
import type { ShopifyCart } from "../shopify-types";
|
|
3
|
+
import { CartFragment, Collection, ProductFragment } from "./graphql/gen/graphql";
|
|
4
|
+
export declare function normalizeProduct({ id, title: name, vendor, images, variants, description, handle, priceRange, options, ...rest }: ProductFragment): Product;
|
|
5
|
+
export declare function normalizeCart(cart: CartFragment | null | undefined): ShopifyCart | undefined;
|
|
6
|
+
export declare function normalizeCategory({ title: name, handle, id, products, image, }: Collection): SiteTypes.Category;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const getSiteCollectionsQuery:
|
|
2
|
-
|
|
1
|
+
export declare const getSiteCollectionsQuery: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").GetSiteCollectionsQuery, import("../graphql/gen/graphql").Exact<{
|
|
2
|
+
first: number;
|
|
3
|
+
}>>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const getAllProductVendors
|
|
2
|
-
|
|
1
|
+
export declare const getAllProductVendors: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").GetAllProductVendorsQuery, import("../graphql/gen/graphql").Exact<{
|
|
2
|
+
first?: number | null | undefined;
|
|
3
|
+
cursor?: string | null | undefined;
|
|
4
|
+
}>>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const getAllProductsQuery: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").GetAllProductsQuery, import("../graphql/gen/graphql").Exact<{
|
|
2
|
+
first?: number | null | undefined;
|
|
3
|
+
query?: string | null | undefined;
|
|
4
|
+
sortKey?: import("../graphql/gen/graphql").ProductSortKeys | null | undefined;
|
|
5
|
+
reverse?: boolean | null | undefined;
|
|
6
|
+
}>>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
declare const getCollectionProductsQuery:
|
|
2
|
-
|
|
1
|
+
export declare const getCollectionProductsQuery: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").GetProductsFromCollectionQuery, import("../graphql/gen/graphql").Exact<{
|
|
2
|
+
categoryId: string;
|
|
3
|
+
first?: number | null | undefined;
|
|
4
|
+
sortKey?: import("../graphql/gen/graphql").ProductCollectionSortKeys | null | undefined;
|
|
5
|
+
reverse?: boolean | null | undefined;
|
|
6
|
+
}>>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const getCollectionQueryById: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").GetSiteCollectionQuery, import("../graphql/gen/graphql").Exact<{
|
|
2
|
+
id?: string | null | undefined;
|
|
3
|
+
handle?: string | null | undefined;
|
|
4
|
+
first?: number | null | undefined;
|
|
5
|
+
}>>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export declare const getProductQueryBySlug:
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const getProductQueryBySlug: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").GetProductBySlugQuery, import("../graphql/gen/graphql").Exact<{
|
|
2
|
+
slug: string;
|
|
3
|
+
}>>;
|
|
4
|
+
export declare const getProductQueryById: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").GetProductByIdQuery, import("../graphql/gen/graphql").Exact<{
|
|
5
|
+
id: string;
|
|
6
|
+
}>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CheckoutErrorCode, CheckoutUserError, CustomerErrorCode, CustomerUserError } from
|
|
1
|
+
import { CheckoutErrorCode, CheckoutUserError, CustomerErrorCode, CustomerUserError } from "./graphql/gen/graphql";
|
|
2
2
|
export declare type UserErrors = Array<CheckoutUserError | CustomerUserError>;
|
|
3
3
|
export declare type UserErrorCode = CustomerErrorCode | CheckoutErrorCode | null | undefined;
|
|
4
4
|
export declare const throwUserErrors: (errors?: UserErrors | undefined) => void;
|
|
5
|
-
export default throwUserErrors;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/commerce-shopify",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.215",
|
|
4
4
|
"description": "Plasmic registration calls for shopify commerce provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,18 +11,21 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsdx build",
|
|
13
13
|
"start": "tsdx watch",
|
|
14
|
-
"test": "TEST_CWD=`pwd` yarn --cwd=../../.. test
|
|
14
|
+
"test": "TEST_CWD=`pwd` yarn --cwd=../../.. test",
|
|
15
15
|
"lint": "tsdx lint",
|
|
16
16
|
"prepublishOnly": "npm run build",
|
|
17
17
|
"size": "size-limit",
|
|
18
|
-
"analyze": "size-limit --why"
|
|
18
|
+
"analyze": "size-limit --why",
|
|
19
|
+
"graphql-codegen": "graphql-codegen --config src/graphql-config.ts"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
22
|
+
"@graphql-codegen/cli": "^5.0.3",
|
|
21
23
|
"@plasmicapp/host": "1.0.209",
|
|
22
24
|
"@size-limit/preset-small-lib": "^4.11.0",
|
|
23
25
|
"@types/debounce": "^1.2.3",
|
|
24
26
|
"@types/js-cookie": "^3.0.1",
|
|
25
27
|
"@types/node": "^14.0.26",
|
|
28
|
+
"nock": "14.0.0",
|
|
26
29
|
"react": "^18.2.0",
|
|
27
30
|
"react-dom": "^18.2.0",
|
|
28
31
|
"size-limit": "^4.11.0",
|
|
@@ -38,5 +41,5 @@
|
|
|
38
41
|
"debounce": "^1.2.1",
|
|
39
42
|
"js-cookie": "^3.0.5"
|
|
40
43
|
},
|
|
41
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6251034c50f514f5489ee4bad345888d3eee56c2"
|
|
42
45
|
}
|
package/dist/cart/index.d.ts
DELETED
package/dist/types/cart.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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 ShopifyCart = {};
|
|
7
|
-
/**
|
|
8
|
-
* Extend core cart types
|
|
9
|
-
*/
|
|
10
|
-
export declare type Cart = Core.Cart & {
|
|
11
|
-
lineItems: Core.LineItem[];
|
|
12
|
-
url?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare type CartTypes = Core.CartTypes;
|
|
15
|
-
export declare type CartHooks = Core.CartHooks<CartTypes>;
|
|
16
|
-
export declare type GetCartHook = CartHooks['getCart'];
|
|
17
|
-
export declare type AddItemHook = CartHooks['addItem'];
|
|
18
|
-
export declare type UpdateItemHook = CartHooks['updateItem'];
|
|
19
|
-
export declare type RemoveItemHook = CartHooks['removeItem'];
|
|
20
|
-
export declare type CartSchema = Core.CartSchema<CartTypes>;
|
|
21
|
-
export declare type CartHandlers = Core.CartHandlers<CartTypes>;
|
|
22
|
-
export declare type GetCartHandler = CartHandlers['getCart'];
|
|
23
|
-
export declare type AddItemHandler = CartHandlers['addItem'];
|
|
24
|
-
export declare type UpdateItemHandler = CartHandlers['updateItem'];
|
|
25
|
-
export declare type RemoveItemHandler = CartHandlers['removeItem'];
|
package/dist/types/checkout.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@vercel/commerce/types/checkout';
|
package/dist/types/common.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@vercel/commerce/types/common';
|
package/dist/types/customer.d.ts
DELETED
package/dist/types/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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, };
|
package/dist/types/login.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as Core from '@vercel/commerce/types/login';
|
|
2
|
-
import type { CustomerAccessTokenCreateInput } from '../../schema';
|
|
3
|
-
export * from '@vercel/commerce/types/login';
|
|
4
|
-
export declare type LoginOperation = Core.LoginOperation & {
|
|
5
|
-
variables: CustomerAccessTokenCreateInput;
|
|
6
|
-
};
|
package/dist/types/logout.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@vercel/commerce/types/logout';
|
package/dist/types/page.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Core from '@vercel/commerce/types/page';
|
|
2
|
-
export * from '@vercel/commerce/types/page';
|
|
3
|
-
export declare type Page = Core.Page;
|
|
4
|
-
export declare type PageTypes = {
|
|
5
|
-
page: Page;
|
|
6
|
-
};
|
|
7
|
-
export declare type GetAllPagesOperation = Core.GetAllPagesOperation<PageTypes>;
|
|
8
|
-
export declare type GetPageOperation = Core.GetPageOperation<PageTypes>;
|
package/dist/types/product.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@vercel/commerce/types/product';
|
package/dist/types/signup.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@vercel/commerce/types/signup';
|
package/dist/types/site.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SiteTypes } from "@plasmicpkgs/commerce";
|
|
2
|
-
export declare type Category = SiteTypes.Category;
|
|
3
|
-
export declare type Brand = SiteTypes.Brand;
|
|
4
|
-
export declare type SiteTypes = SiteTypes.SiteTypes;
|
|
5
|
-
export declare type GetSiteInfoOperation = SiteTypes.GetSiteInfoOperation;
|
|
6
|
-
export declare type GetCategoriesHook = SiteTypes.GetCategoriesHook;
|
|
7
|
-
export declare type GetBrandsHook = SiteTypes.GetBrandsHook;
|
package/dist/types/wishlist.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@vercel/commerce/types/wishlist';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CheckoutCreatePayload, CheckoutLineItemInput } from '../schema';
|
|
2
|
-
import { FetcherOptions } from '@plasmicpkgs/commerce';
|
|
3
|
-
export declare const checkoutCreate: (fetch: <T = any, B = Body>(options: FetcherOptions<B>) => Promise<T>, lineItems: CheckoutLineItemInput[]) => Promise<CheckoutCreatePayload>;
|
|
4
|
-
export default checkoutCreate;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Cart } from '../types/cart';
|
|
2
|
-
import { CheckoutLineItemsAddPayload, CheckoutLineItemsRemovePayload, CheckoutLineItemsUpdatePayload, CheckoutCreatePayload, CheckoutUserError, Checkout } from '../schema';
|
|
3
|
-
export declare type CheckoutQuery = {
|
|
4
|
-
checkout: Checkout;
|
|
5
|
-
checkoutUserErrors?: Array<CheckoutUserError>;
|
|
6
|
-
};
|
|
7
|
-
export declare type CheckoutPayload = CheckoutLineItemsAddPayload | CheckoutLineItemsUpdatePayload | CheckoutLineItemsRemovePayload | CheckoutCreatePayload | CheckoutQuery;
|
|
8
|
-
declare const checkoutToCart: (checkoutPayload?: CheckoutQuery | CheckoutLineItemsAddPayload | CheckoutLineItemsUpdatePayload | CheckoutLineItemsRemovePayload | CheckoutCreatePayload | null | undefined) => Cart;
|
|
9
|
-
export default checkoutToCart;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare type Brand = {
|
|
2
|
-
entityId: string;
|
|
3
|
-
name: string;
|
|
4
|
-
path: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type BrandEdge = {
|
|
7
|
-
node: Brand;
|
|
8
|
-
};
|
|
9
|
-
export declare type Brands = BrandEdge[];
|
|
10
|
-
declare const getBrands: (config: any) => Promise<BrandEdge[]>;
|
|
11
|
-
export default getBrands;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FetcherError } from '@plasmicpkgs/commerce';
|
|
2
|
-
export declare function getError(errors: any[] | null, status: number): FetcherError;
|
|
3
|
-
export declare function getAsyncError(res: Response): Promise<FetcherError>;
|
|
4
|
-
declare const handleFetchResponse: (res: Response) => Promise<any>;
|
|
5
|
-
export default handleFetchResponse;
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { default as handleFetchResponse } from './handle-fetch-response';
|
|
2
|
-
export { default as getSearchVariables } from './get-search-variables';
|
|
3
|
-
export { default as getSortVariables } from './get-sort-variables';
|
|
4
|
-
export { default as getCheckoutId } from './get-checkout-id';
|
|
5
|
-
export { default as checkoutCreate } from './checkout-create';
|
|
6
|
-
export { default as checkoutToCart } from './checkout-to-cart';
|
|
7
|
-
export * from './queries';
|
|
8
|
-
export * from './normalize';
|
|
9
|
-
export * from './mutations';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const associateCustomerWithCheckoutMutation = "\nmutation associateCustomerWithCheckout($checkoutId: ID!, $customerAccessToken: String!) {\n checkoutCustomerAssociateV2(checkoutId: $checkoutId, customerAccessToken: $customerAccessToken) {\n checkout {\n id\n }\n checkoutUserErrors {\n code\n field\n message\n }\n customer {\n id\n }\n }\n }\n";
|
|
2
|
-
export default associateCustomerWithCheckoutMutation;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const customerAccessTokenCreateMutation = "\n mutation customerAccessTokenCreate($input: CustomerAccessTokenCreateInput!) {\n customerAccessTokenCreate(input: $input) {\n customerAccessToken {\n accessToken\n expiresAt\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n";
|
|
2
|
-
export default customerAccessTokenCreateMutation;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const customerAccessTokenDeleteMutation = "\n mutation customerAccessTokenDelete($customerAccessToken: String!) {\n customerAccessTokenDelete(customerAccessToken: $customerAccessToken) {\n deletedAccessToken\n deletedCustomerAccessTokenId\n userErrors {\n field\n message\n }\n }\n }\n";
|
|
2
|
-
export default customerAccessTokenDeleteMutation;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const customerActivateMutation = "\n mutation customerActivate($id: ID!, $input: CustomerActivateInput!) {\n customerActivate(id: $id, input: $input) {\n customer {\n id\n }\n customerAccessToken {\n accessToken\n expiresAt\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n";
|
|
2
|
-
export default customerActivateMutation;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { default as customerCreateMutation } from './customer-create';
|
|
2
|
-
export { default as checkoutCreateMutation } from './checkout-create';
|
|
3
|
-
export { default as checkoutLineItemAddMutation } from './checkout-line-item-add';
|
|
4
|
-
export { default as checkoutLineItemUpdateMutation } from './checkout-line-item-update';
|
|
5
|
-
export { default as checkoutLineItemRemoveMutation } from './checkout-line-item-remove';
|
|
6
|
-
export { default as customerAccessTokenCreateMutation } from './customer-access-token-create';
|
|
7
|
-
export { default as customerAccessTokenDeleteMutation } from './customer-access-token-delete';
|
|
8
|
-
export { default as customerActivateMutation } from './customer-activate';
|
|
9
|
-
export { default as customerActivateByUrlMutation } from './customer-activate-by-url';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const getAllProductsPathsQuery = "\n query getAllProductPaths($first: Int = 250, $cursor: String) {\n products(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n handle\n }\n cursor\n }\n }\n }\n";
|
|
2
|
-
export default getAllProductsPathsQuery;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const checkoutDetailsFragment = "\n fragment checkoutDetails on Checkout {\n id\n webUrl\n subtotalPriceV2 {\n amount\n currencyCode\n }\n totalTaxV2 {\n amount\n currencyCode\n }\n totalPriceV2 {\n amount\n currencyCode\n }\n completedAt\n createdAt\n taxesIncluded\n lineItems(first: 250) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n title\n variant {\n id\n sku\n title\n selectedOptions {\n name\n value\n }\n image {\n originalSrc\n altText\n width\n height\n }\n priceV2 {\n amount\n currencyCode\n }\n compareAtPriceV2 {\n amount\n currencyCode\n }\n product {\n id\n handle\n }\n }\n quantity\n }\n }\n }\n }\n";
|
|
2
|
-
declare const getCheckoutQuery: string;
|
|
3
|
-
export default getCheckoutQuery;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const getCustomerQuery = "\n query getCustomer($customerAccessToken: String!) {\n customer(customerAccessToken: $customerAccessToken) {\n id\n firstName\n lastName\n displayName\n email\n phone\n tags\n acceptsMarketing\n createdAt\n }\n }\n";
|
|
2
|
-
export default getCustomerQuery;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { default as getSiteCollectionsQuery } from './get-all-collections-query';
|
|
2
|
-
export { default as getProductQuery } from './get-product-query';
|
|
3
|
-
export { default as getAllProductsQuery } from './get-all-products-query';
|
|
4
|
-
export { default as getAllProductsPathtsQuery } from './get-all-products-paths-query';
|
|
5
|
-
export { default as getAllProductVendors } from './get-all-product-vendors-query';
|
|
6
|
-
export { default as getCollectionProductsQuery } from './get-collection-products-query';
|
|
7
|
-
export { default as getCheckoutQuery } from './get-checkout-query';
|
|
8
|
-
export { default as getAllPagesQuery } from './get-all-pages-query';
|
|
9
|
-
export { default as getPageQuery } from './get-page-query';
|
|
10
|
-
export { default as getCustomerQuery } from './get-customer-query';
|
|
11
|
-
export { default as getSiteInfoQuery } from './get-site-info-query';
|