@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.
Files changed (84) hide show
  1. package/dist/cart/use-add-item.d.ts +4 -4
  2. package/dist/cart/use-cart.d.ts +2 -3
  3. package/dist/cart/use-remove-item.d.ts +12 -8
  4. package/dist/cart/use-update-item.d.ts +12 -8
  5. package/dist/commerce-shopify.cjs.development.js +2863 -716
  6. package/dist/commerce-shopify.cjs.development.js.map +1 -1
  7. package/dist/commerce-shopify.cjs.production.min.js +1 -1
  8. package/dist/commerce-shopify.cjs.production.min.js.map +1 -1
  9. package/dist/commerce-shopify.esm.js +2864 -717
  10. package/dist/commerce-shopify.esm.js.map +1 -1
  11. package/dist/const.d.ts +1 -1
  12. package/dist/fetcher.d.ts +1 -1
  13. package/dist/graphql-config.d.ts +6 -0
  14. package/dist/product/use-product.d.ts +2 -5
  15. package/dist/product/use-search.d.ts +1 -9
  16. package/dist/provider.d.ts +19 -13
  17. package/dist/shopify-types.d.ts +5 -0
  18. package/dist/site/use-brands.d.ts +2 -3
  19. package/dist/site/use-categories.d.ts +2 -3
  20. package/dist/utils/cart-create.d.ts +3 -0
  21. package/dist/utils/fragments/cart.d.ts +1 -0
  22. package/dist/utils/fragments/collection.d.ts +1 -0
  23. package/dist/utils/fragments/image.d.ts +1 -0
  24. package/dist/utils/fragments/product-variant.d.ts +1 -0
  25. package/dist/utils/fragments/product.d.ts +1 -0
  26. package/dist/utils/fragments/seo.d.ts +1 -0
  27. package/dist/utils/get-cart-id.d.ts +1 -0
  28. package/dist/utils/graphql/gen/gql.d.ts +76 -0
  29. package/dist/utils/graphql/gen/graphql.d.ts +11114 -0
  30. package/dist/utils/graphql/gen/index.d.ts +1 -0
  31. package/dist/utils/mutations/cart.d.ts +15 -0
  32. package/dist/utils/mutations/customer-activate-by-url.d.ts +4 -2
  33. package/dist/utils/normalize.d.ts +6 -7
  34. package/dist/utils/queries/get-all-collections-query.d.ts +3 -2
  35. package/dist/utils/queries/get-all-product-vendors-query.d.ts +4 -2
  36. package/dist/utils/queries/get-all-products-query.d.ts +6 -3
  37. package/dist/utils/queries/get-cart-query.d.ts +3 -0
  38. package/dist/utils/queries/get-collection-products-query.d.ts +6 -2
  39. package/dist/utils/queries/get-collection-query.d.ts +5 -3
  40. package/dist/utils/queries/get-product-query.d.ts +6 -3
  41. package/dist/utils/throw-user-errors.d.ts +1 -2
  42. package/package.json +7 -4
  43. package/dist/cart/index.d.ts +0 -4
  44. package/dist/product/use-price.d.ts +0 -2
  45. package/dist/types/cart.d.ts +0 -25
  46. package/dist/types/checkout.d.ts +0 -1
  47. package/dist/types/common.d.ts +0 -1
  48. package/dist/types/customer.d.ts +0 -3
  49. package/dist/types/index.d.ts +0 -12
  50. package/dist/types/login.d.ts +0 -6
  51. package/dist/types/logout.d.ts +0 -1
  52. package/dist/types/page.d.ts +0 -8
  53. package/dist/types/product.d.ts +0 -1
  54. package/dist/types/signup.d.ts +0 -1
  55. package/dist/types/site.d.ts +0 -7
  56. package/dist/types/wishlist.d.ts +0 -1
  57. package/dist/utils/checkout-create.d.ts +0 -4
  58. package/dist/utils/checkout-to-cart.d.ts +0 -9
  59. package/dist/utils/customer-token.d.ts +0 -3
  60. package/dist/utils/get-brands.d.ts +0 -11
  61. package/dist/utils/get-categories.d.ts +0 -3
  62. package/dist/utils/get-checkout-id.d.ts +0 -2
  63. package/dist/utils/handle-account-activation.d.ts +0 -3
  64. package/dist/utils/handle-fetch-response.d.ts +0 -5
  65. package/dist/utils/handle-login.d.ts +0 -4
  66. package/dist/utils/index.d.ts +0 -9
  67. package/dist/utils/mutations/associate-customer-with-checkout.d.ts +0 -2
  68. package/dist/utils/mutations/checkout-create.d.ts +0 -2
  69. package/dist/utils/mutations/checkout-line-item-add.d.ts +0 -2
  70. package/dist/utils/mutations/checkout-line-item-remove.d.ts +0 -2
  71. package/dist/utils/mutations/checkout-line-item-update.d.ts +0 -2
  72. package/dist/utils/mutations/customer-access-token-create.d.ts +0 -2
  73. package/dist/utils/mutations/customer-access-token-delete.d.ts +0 -2
  74. package/dist/utils/mutations/customer-activate.d.ts +0 -2
  75. package/dist/utils/mutations/customer-create.d.ts +0 -2
  76. package/dist/utils/mutations/index.d.ts +0 -9
  77. package/dist/utils/queries/get-all-pages-query.d.ts +0 -2
  78. package/dist/utils/queries/get-all-products-paths-query.d.ts +0 -2
  79. package/dist/utils/queries/get-checkout-query.d.ts +0 -3
  80. package/dist/utils/queries/get-customer-id-query.d.ts +0 -2
  81. package/dist/utils/queries/get-customer-query.d.ts +0 -2
  82. package/dist/utils/queries/get-page-query.d.ts +0 -2
  83. package/dist/utils/queries/get-site-info-query.d.ts +0 -2
  84. 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 = "\n mutation customerActivateByUrl($activationUrl: URL!, $password: String!) {\n customerActivateByUrl(activationUrl: $activationUrl, password: $password) {\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 customerActivateByUrlMutation;
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 { Cart } from "../types/cart";
3
- import { Collection } from "../schema";
4
- import { Category } from "../types/site";
5
- export declare function normalizeProduct({ id, title: name, vendor, images, variants, description, descriptionHtml, handle, priceRange, options, metafields, ...rest }: any): Product;
6
- export declare function normalizeCart(checkout: any): Cart;
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: string;
2
- export default getSiteCollectionsQuery;
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 = "\n query getAllProductVendors($first: Int = 250, $cursor: String) {\n products(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n vendor\n }\n cursor\n }\n }\n }\n";
2
- export default getAllProductVendors;
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 productConnectionFragment = "\n fragment productConnection on ProductConnection {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n handle\n title\n vendor\n handle\n description\n descriptionHtml\n priceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n options {\n id\n name\n values\n }\n variants(first: 250) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n title\n sku\n availableForSale\n requiresShipping\n selectedOptions {\n name\n value\n }\n priceV2 {\n amount\n currencyCode\n }\n compareAtPriceV2 {\n amount\n currencyCode\n }\n }\n }\n }\n images(first: 250) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n originalSrc\n altText\n width\n height\n }\n }\n }\n }\n }\n }\n";
2
- declare const getAllProductsQuery: string;
3
- export default getAllProductsQuery;
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
+ }>>;
@@ -0,0 +1,3 @@
1
+ export declare const getCartQuery: import("../graphql/gen/graphql").TypedDocumentString<import("../graphql/gen/graphql").GetCartQuery, import("../graphql/gen/graphql").Exact<{
2
+ cartId: string;
3
+ }>>;
@@ -1,2 +1,6 @@
1
- declare const getCollectionProductsQuery: string;
2
- export default getCollectionProductsQuery;
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 simpleProductConnection = "\nfragment simpleProductConnection on ProductConnection {\n edges {\n node {\n id\n }\n }\n}\n";
2
- export declare const collectionFieldsFragment: string;
3
- export declare const getCollectionQueryById: string;
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: string;
2
- export declare const getProductQueryById: string;
3
- export default getProductQueryBySlug;
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 '../schema';
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.214",
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 --passWithNoTests",
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": "a68b0dbe021bc38f355643251cf4150d949f92c6"
44
+ "gitHead": "6251034c50f514f5489ee4bad345888d3eee56c2"
42
45
  }
@@ -1,4 +0,0 @@
1
- export { default as useCart } from './use-cart';
2
- export { default as useAddItem } from './use-add-item';
3
- export { default as useUpdateItem } from './use-update-item';
4
- export { default as useRemoveItem } from './use-remove-item';
@@ -1,2 +0,0 @@
1
- export * from '@vercel/commerce/product/use-price';
2
- export { default } from '@vercel/commerce/product/use-price';
@@ -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'];
@@ -1 +0,0 @@
1
- export * from '@vercel/commerce/types/checkout';
@@ -1 +0,0 @@
1
- export * from '@vercel/commerce/types/common';
@@ -1,3 +0,0 @@
1
- import * as Core from '@vercel/commerce/types/customer';
2
- export * from '@vercel/commerce/types/customer';
3
- export declare type CustomerSchema = Core.CustomerSchema;
@@ -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, };
@@ -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
- };
@@ -1 +0,0 @@
1
- export * from '@vercel/commerce/types/logout';
@@ -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>;
@@ -1 +0,0 @@
1
- export * from '@vercel/commerce/types/product';
@@ -1 +0,0 @@
1
- export * from '@vercel/commerce/types/signup';
@@ -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;
@@ -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,3 +0,0 @@
1
- import Cookies from 'js-cookie';
2
- export declare const getCustomerToken: () => string | undefined;
3
- export declare const setCustomerToken: (token: string | null, options?: Cookies.CookieAttributes | undefined) => void;
@@ -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,3 +0,0 @@
1
- import type { Category } from '../types/site';
2
- declare const getCategories: ({ fetch, locale, }: any) => Promise<Category[]>;
3
- export default getCategories;
@@ -1,2 +0,0 @@
1
- declare const getCheckoutId: (id?: string | undefined) => string | undefined;
2
- export default getCheckoutId;
@@ -1,3 +0,0 @@
1
- import { FetcherOptions } from '@vercel/commerce/utils/types';
2
- declare const handleAccountActivation: (fetch: <T = any, B = Body>(options: any) => Promise<T>, input: any) => Promise<void>;
3
- export default handleAccountActivation;
@@ -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;
@@ -1,4 +0,0 @@
1
- import { FetcherOptions } from '@vercel/commerce/utils/types';
2
- declare const handleLogin: (data: any) => any;
3
- export declare const handleAutomaticLogin: (fetch: <T = any, B = Body>(options: any) => Promise<T>, input: any) => Promise<void>;
4
- export default handleLogin;
@@ -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 checkoutCreateMutation: string;
2
- export default checkoutCreateMutation;
@@ -1,2 +0,0 @@
1
- declare const checkoutLineItemAddMutation: string;
2
- export default checkoutLineItemAddMutation;
@@ -1,2 +0,0 @@
1
- declare const checkoutLineItemRemoveMutation: string;
2
- export default checkoutLineItemRemoveMutation;
@@ -1,2 +0,0 @@
1
- declare const checkoutLineItemUpdateMutation: string;
2
- export default checkoutLineItemUpdateMutation;
@@ -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,2 +0,0 @@
1
- declare const customerCreateMutation = "\n mutation customerCreate($input: CustomerCreateInput!) {\n customerCreate(input: $input) {\n customerUserErrors {\n code\n field\n message\n }\n customer {\n id\n }\n }\n }\n";
2
- export default customerCreateMutation;
@@ -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
- export declare const getAllPagesQuery = "\n query getAllPages($first: Int = 250) {\n pages(first: $first) {\n edges {\n node {\n id\n title\n handle\n }\n }\n }\n }\n";
2
- export default getAllPagesQuery;
@@ -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 getCustomerId($customerAccessToken: String!) {\n customer(customerAccessToken: $customerAccessToken) {\n id\n }\n }\n";
2
- export default getCustomerQuery;
@@ -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,2 +0,0 @@
1
- export declare const getPageQuery = "\n query getPage($id: ID!) {\n node(id: $id) {\n id\n ... on Page {\n title\n handle\n body\n bodySummary\n }\n }\n }\n";
2
- export default getPageQuery;
@@ -1,2 +0,0 @@
1
- declare const getSiteInfoQuery = "\n query getSiteInfo {\n shop {\n name\n }\n }\n";
2
- export default getSiteInfoQuery;
@@ -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';