@tiledev/sdk-shopify 0.9.0 → 0.10.0
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/README.md +650 -50
- package/dist/alertSettings.d.ts.map +1 -1
- package/dist/alertSettings.js +2 -0
- package/dist/alertSettings.js.map +1 -1
- package/dist/attribution.d.ts +21 -0
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.js +17 -0
- package/dist/attribution.js.map +1 -1
- package/dist/auth/pkce.d.ts +30 -0
- package/dist/auth/pkce.d.ts.map +1 -0
- package/dist/auth/pkce.js +128 -0
- package/dist/auth/pkce.js.map +1 -0
- package/dist/auth/session.d.ts +118 -0
- package/dist/auth/session.d.ts.map +1 -0
- package/dist/auth/session.js +896 -0
- package/dist/auth/session.js.map +1 -0
- package/dist/auth/storeCredit.d.ts +64 -0
- package/dist/auth/storeCredit.d.ts.map +1 -0
- package/dist/auth/storeCredit.js +274 -0
- package/dist/auth/storeCredit.js.map +1 -0
- package/dist/cart.d.ts +25 -1
- package/dist/cart.d.ts.map +1 -1
- package/dist/cart.js +95 -2
- package/dist/cart.js.map +1 -1
- package/dist/cartPolicy.js +4 -4
- package/dist/checkout.d.ts +123 -0
- package/dist/checkout.d.ts.map +1 -0
- package/dist/checkout.js +205 -0
- package/dist/checkout.js.map +1 -0
- package/dist/customer.d.ts.map +1 -1
- package/dist/customer.js +8 -0
- package/dist/customer.js.map +1 -1
- package/dist/index.d.ts +12 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +74 -2
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +2 -0
- package/dist/messages.js.map +1 -1
- package/dist/money.d.ts +16 -0
- package/dist/money.d.ts.map +1 -1
- package/dist/money.js +55 -0
- package/dist/money.js.map +1 -1
- package/dist/orders.d.ts +99 -0
- package/dist/orders.d.ts.map +1 -0
- package/dist/orders.js +439 -0
- package/dist/orders.js.map +1 -0
- package/dist/productPage.d.ts +100 -0
- package/dist/productPage.d.ts.map +1 -0
- package/dist/productPage.js +298 -0
- package/dist/productPage.js.map +1 -0
- package/dist/productStore.d.ts +1 -1
- package/dist/productStore.d.ts.map +1 -1
- package/dist/productStore.js +63 -5
- package/dist/productStore.js.map +1 -1
- package/dist/products.d.ts.map +1 -1
- package/dist/products.js +15 -3
- package/dist/products.js.map +1 -1
- package/dist/purchaseRules.d.ts +74 -0
- package/dist/purchaseRules.d.ts.map +1 -0
- package/dist/purchaseRules.js +73 -0
- package/dist/purchaseRules.js.map +1 -0
- package/dist/queries.d.ts +15 -13
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +43 -7
- package/dist/queries.js.map +1 -1
- package/dist/react/ShopifyProvider.d.ts +167 -25
- package/dist/react/ShopifyProvider.d.ts.map +1 -1
- package/dist/react/ShopifyProvider.js +352 -207
- package/dist/react/ShopifyProvider.js.map +1 -1
- package/dist/react/appForeground.d.ts +6 -0
- package/dist/react/appForeground.d.ts.map +1 -0
- package/dist/react/appForeground.js +19 -0
- package/dist/react/appForeground.js.map +1 -0
- package/dist/react/appForeground.native.d.ts +2 -0
- package/dist/react/appForeground.native.d.ts.map +1 -0
- package/dist/react/appForeground.native.js +23 -0
- package/dist/react/appForeground.native.js.map +1 -0
- package/dist/react/index.d.ts +7 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +23 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/tileCreditClient.d.ts +4 -0
- package/dist/react/tileCreditClient.d.ts.map +1 -0
- package/dist/react/tileCreditClient.js +27 -0
- package/dist/react/tileCreditClient.js.map +1 -0
- package/dist/react/useAppDiscountCode.d.ts +19 -0
- package/dist/react/useAppDiscountCode.d.ts.map +1 -0
- package/dist/react/useAppDiscountCode.js +44 -0
- package/dist/react/useAppDiscountCode.js.map +1 -0
- package/dist/react/useCartStoreCredit.d.ts +25 -0
- package/dist/react/useCartStoreCredit.d.ts.map +1 -0
- package/dist/react/useCartStoreCredit.js +292 -0
- package/dist/react/useCartStoreCredit.js.map +1 -0
- package/dist/react/useOrders.d.ts +104 -0
- package/dist/react/useOrders.d.ts.map +1 -0
- package/dist/react/useOrders.js +287 -0
- package/dist/react/useOrders.js.map +1 -0
- package/dist/react/useProduct.d.ts.map +1 -1
- package/dist/react/useProduct.js +1 -9
- package/dist/react/useProduct.js.map +1 -1
- package/dist/react/useProductPage.d.ts +148 -0
- package/dist/react/useProductPage.d.ts.map +1 -0
- package/dist/react/useProductPage.js +178 -0
- package/dist/react/useProductPage.js.map +1 -0
- package/dist/react/useProductRecommendations.d.ts +27 -0
- package/dist/react/useProductRecommendations.d.ts.map +1 -0
- package/dist/react/useProductRecommendations.js +76 -0
- package/dist/react/useProductRecommendations.js.map +1 -0
- package/dist/react/useStoreCredit.d.ts +58 -0
- package/dist/react/useStoreCredit.d.ts.map +1 -0
- package/dist/react/useStoreCredit.js +209 -0
- package/dist/react/useStoreCredit.js.map +1 -0
- package/dist/react/useTileCredit.d.ts +4 -3
- package/dist/react/useTileCredit.d.ts.map +1 -1
- package/dist/react/useTileCredit.js +63 -55
- package/dist/react/useTileCredit.js.map +1 -1
- package/dist/shopify.d.ts.map +1 -1
- package/dist/shopify.js +2 -0
- package/dist/shopify.js.map +1 -1
- package/dist/storedList.d.ts +27 -0
- package/dist/storedList.d.ts.map +1 -0
- package/dist/storedList.js +152 -0
- package/dist/storedList.js.map +1 -0
- package/dist/tileCredit.d.ts +25 -10
- package/dist/tileCredit.d.ts.map +1 -1
- package/dist/tileCredit.js +97 -45
- package/dist/tileCredit.js.map +1 -1
- package/dist/types.d.ts +407 -34
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -2
- package/dist/types.js.map +1 -1
- package/dist/variants.d.ts.map +1 -1
- package/dist/variants.js +4 -3
- package/dist/variants.js.map +1 -1
- package/dist/waitlist.d.ts +4 -0
- package/dist/waitlist.d.ts.map +1 -0
- package/dist/waitlist.js +213 -0
- package/dist/waitlist.js.map +1 -0
- package/dist/wishlist.d.ts.map +1 -1
- package/dist/wishlist.js +70 -47
- package/dist/wishlist.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Cart } from './types';
|
|
2
|
+
/** Just what the pre-order rule reads of a variant: a product page's `ProductVariant` or a waitlist's `StandaloneVariant`. */
|
|
3
|
+
export interface PreorderVariant<Plan extends {
|
|
4
|
+
id: string;
|
|
5
|
+
} = {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}> {
|
|
9
|
+
/** The variant's own selling plan (a pre-order), or null. */
|
|
10
|
+
sellingPlan?: Plan | null;
|
|
11
|
+
availableForSale: boolean;
|
|
12
|
+
/** Units left; null when Shopify doesn't track the stock. */
|
|
13
|
+
quantityAvailable: number | null;
|
|
14
|
+
}
|
|
15
|
+
export interface PreorderOptions {
|
|
16
|
+
/**
|
|
17
|
+
* The product can't be bought at all right now (an auction: the product page's `isBlocked`, status
|
|
18
|
+
* `blocked`). Nothing is pre-ordered then.
|
|
19
|
+
*/
|
|
20
|
+
blocked?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The plan to pre-order this size on, or null. A size is pre-ordered when it is sold out (Shopify's
|
|
24
|
+
* count is known and 0 or less), still for sale, and enrolled in a plan of its own
|
|
25
|
+
* (`variant.sellingPlan`, which also names the plan to add with). Never when `blocked`.
|
|
26
|
+
*
|
|
27
|
+
* - A count Shopify doesn't track (null) isn't sold out: that size is bought ("Add to Cart", decided
|
|
28
|
+
* 2026-10-06).
|
|
29
|
+
* - An oversold count (below 0) is sold out.
|
|
30
|
+
*/
|
|
31
|
+
export declare function preorderPlanFor<Plan extends {
|
|
32
|
+
id: string;
|
|
33
|
+
}>(variant: PreorderVariant<Plan> | null | undefined, options?: PreorderOptions): Plan | null;
|
|
34
|
+
/**
|
|
35
|
+
* What a product page's buy bar offers, in this order (the first that applies):
|
|
36
|
+
*
|
|
37
|
+
* - `blocked`: the product can't be bought (an auction). Wins over everything, a pre-order included.
|
|
38
|
+
* - `preorder`: `preorderPlanFor` has a plan for the chosen size.
|
|
39
|
+
* - `soldOut`: the chosen size can't be bought (the page's status `unavailable`).
|
|
40
|
+
* - `heldInOtherCarts`: a reservation service just refused it: every unit is in other carts, though
|
|
41
|
+
* Shopify still calls it sellable (Cart Hold's held out).
|
|
42
|
+
* - `allInCart`: this cart already holds every unit Shopify has (`canAddMore` is false).
|
|
43
|
+
* - `buy`: anything else, including while the page is still loading.
|
|
44
|
+
*/
|
|
45
|
+
export type PurchaseMode = 'blocked' | 'preorder' | 'soldOut' | 'heldInOtherCarts' | 'allInCart' | 'buy';
|
|
46
|
+
export interface PurchaseModeInput {
|
|
47
|
+
/** `useProductPage().status`. */
|
|
48
|
+
status: 'loading' | 'unknown' | 'available' | 'unavailable' | 'blocked';
|
|
49
|
+
/** The chosen size (`useProductPage().selection.variant`). */
|
|
50
|
+
variant: PreorderVariant | null | undefined;
|
|
51
|
+
/** One more of the chosen size fits under its stock (`useProductPage().cart.canAddMore`). */
|
|
52
|
+
canAddMore: boolean;
|
|
53
|
+
/** A reservation service just refused this size as sold out (Cart Hold's `useHeldOut`). */
|
|
54
|
+
heldInOtherCarts?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/** What a product page's buy bar offers for the chosen size. See `PurchaseMode`. */
|
|
57
|
+
export declare function purchaseModeFor({ status, variant, canAddMore, heldInOtherCarts }: PurchaseModeInput): PurchaseMode;
|
|
58
|
+
/**
|
|
59
|
+
* What a waitlist card's button does for a size the shopper waits on:
|
|
60
|
+
*
|
|
61
|
+
* - `blocked`: the product can't be bought (an auction), whatever its stock or plan. Shown as not
|
|
62
|
+
* buyable ("Auction notice wins", decided 2026-10-06).
|
|
63
|
+
* - `preorder`: `preorderPlanFor` has a plan.
|
|
64
|
+
* - `addToCart`: back in stock (for sale, with units left or a count Shopify doesn't track) with a unit
|
|
65
|
+
* beyond what the cart already holds (the product page's `canAddMore` rule).
|
|
66
|
+
* - `inCart`: back in stock, but the cart already holds every unit.
|
|
67
|
+
* - `waiting`: anything else (sold out, or no longer for sale).
|
|
68
|
+
*/
|
|
69
|
+
export type WaitlistAction = 'blocked' | 'preorder' | 'addToCart' | 'inCart' | 'waiting';
|
|
70
|
+
/** What a waitlist card offers for this size, given the cart. See `WaitlistAction`. */
|
|
71
|
+
export declare function waitlistActionFor(variant: PreorderVariant & {
|
|
72
|
+
id: string;
|
|
73
|
+
}, cart: Pick<Cart, 'lines'> | null | undefined, options?: PreorderOptions): WaitlistAction;
|
|
74
|
+
//# sourceMappingURL=purchaseRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchaseRules.d.ts","sourceRoot":"","sources":["../src/purchaseRules.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,8HAA8H;AAC9H,MAAM,WAAW,eAAe,CAAC,IAAI,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;IACzF,6DAA6D;IAC7D,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,6DAA6D;IAC7D,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,IAAI,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACzD,OAAO,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,EACjD,OAAO,GAAE,eAAoB,GAC5B,IAAI,GAAG,IAAI,CAKb;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,kBAAkB,GAAG,WAAW,GAAG,KAAK,CAAC;AAEzG,MAAM,WAAW,iBAAiB;IAChC,iCAAiC;IACjC,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CAAC;IACxE,8DAA8D;IAC9D,OAAO,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,6FAA6F;IAC7F,UAAU,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,gBAAwB,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAO1H;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzF,uFAAuF;AACvF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,eAAe,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACzC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EAC5C,OAAO,GAAE,eAAoB,GAC5B,cAAc,CAQhB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.preorderPlanFor = preorderPlanFor;
|
|
4
|
+
exports.purchaseModeFor = purchaseModeFor;
|
|
5
|
+
exports.waitlistActionFor = waitlistActionFor;
|
|
6
|
+
/**
|
|
7
|
+
* What a shopper can do with one size: pre-order it, buy it, or neither (SDK move 6). One rule for every
|
|
8
|
+
* screen that sells a size, so a product page and a waitlist card never disagree again:
|
|
9
|
+
*
|
|
10
|
+
* - `preorderPlanFor(variant, { blocked })`: the plan to pre-order on, or null.
|
|
11
|
+
* - `purchaseModeFor(...)`: what a product page's buy bar offers.
|
|
12
|
+
* - `waitlistActionFor(variant, cart, { blocked })`: what a waitlist card's button does.
|
|
13
|
+
*
|
|
14
|
+
* From amore-v2, whose product page (`preorderPlanFor` and the bar's mode) and Waitlist (`canPreOrder`)
|
|
15
|
+
* had two rules that disagreed in two cases. The Head of Engineering decided both on 2026-10-06, for the
|
|
16
|
+
* product page's rule:
|
|
17
|
+
*
|
|
18
|
+
* - **Stock not tracked** (`quantityAvailable` null), for sale, with a plan: "Add to Cart". Untracked
|
|
19
|
+
* stock is always available, and pre-order applies only when Shopify says the size is sold out. (The
|
|
20
|
+
* Waitlist counted null as 0 and offered Preauthorize Now.)
|
|
21
|
+
* - **A sold-out size with a plan on a blocked product** (an auction: `SEARCH-BLOCKED`): "Auction
|
|
22
|
+
* notice wins". It can't be pre-ordered anywhere, and a waitlist card shows it as not buyable too.
|
|
23
|
+
* (The Waitlist didn't know about auctions and offered Preauthorize Now.)
|
|
24
|
+
*
|
|
25
|
+
* Pure: no React, no network.
|
|
26
|
+
*/
|
|
27
|
+
const productPage_1 = require("./productPage");
|
|
28
|
+
/**
|
|
29
|
+
* The plan to pre-order this size on, or null. A size is pre-ordered when it is sold out (Shopify's
|
|
30
|
+
* count is known and 0 or less), still for sale, and enrolled in a plan of its own
|
|
31
|
+
* (`variant.sellingPlan`, which also names the plan to add with). Never when `blocked`.
|
|
32
|
+
*
|
|
33
|
+
* - A count Shopify doesn't track (null) isn't sold out: that size is bought ("Add to Cart", decided
|
|
34
|
+
* 2026-10-06).
|
|
35
|
+
* - An oversold count (below 0) is sold out.
|
|
36
|
+
*/
|
|
37
|
+
function preorderPlanFor(variant, options = {}) {
|
|
38
|
+
if (options.blocked)
|
|
39
|
+
return null;
|
|
40
|
+
if (!(variant === null || variant === void 0 ? void 0 : variant.sellingPlan) || !variant.availableForSale)
|
|
41
|
+
return null;
|
|
42
|
+
const unitsLeft = variant.quantityAvailable;
|
|
43
|
+
return unitsLeft != null && unitsLeft <= 0 ? variant.sellingPlan : null;
|
|
44
|
+
}
|
|
45
|
+
/** What a product page's buy bar offers for the chosen size. See `PurchaseMode`. */
|
|
46
|
+
function purchaseModeFor({ status, variant, canAddMore, heldInOtherCarts = false }) {
|
|
47
|
+
if (status === 'blocked')
|
|
48
|
+
return 'blocked';
|
|
49
|
+
if (preorderPlanFor(variant))
|
|
50
|
+
return 'preorder';
|
|
51
|
+
if (status === 'unavailable')
|
|
52
|
+
return 'soldOut';
|
|
53
|
+
if (heldInOtherCarts)
|
|
54
|
+
return 'heldInOtherCarts';
|
|
55
|
+
if (variant && status === 'available' && !canAddMore)
|
|
56
|
+
return 'allInCart';
|
|
57
|
+
return 'buy';
|
|
58
|
+
}
|
|
59
|
+
/** What a waitlist card offers for this size, given the cart. See `WaitlistAction`. */
|
|
60
|
+
function waitlistActionFor(variant, cart, options = {}) {
|
|
61
|
+
if (options.blocked)
|
|
62
|
+
return 'blocked';
|
|
63
|
+
if (preorderPlanFor(variant))
|
|
64
|
+
return 'preorder';
|
|
65
|
+
const inStock = variant.availableForSale && (variant.quantityAvailable == null || variant.quantityAvailable > 0);
|
|
66
|
+
if (!inStock)
|
|
67
|
+
return 'waiting';
|
|
68
|
+
const inThisCart = (0, productPage_1.quantityInCart)(cart, variant.id);
|
|
69
|
+
if ((0, productPage_1.withinCeiling)((0, productPage_1.stockCeiling)(variant), inThisCart, 1))
|
|
70
|
+
return 'addToCart';
|
|
71
|
+
return inThisCart > 0 ? 'inCart' : 'waiting';
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=purchaseRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchaseRules.js","sourceRoot":"","sources":["../src/purchaseRules.ts"],"names":[],"mappings":";;AAkDA,0CAQC;AA2BD,0CAOC;AAgBD,8CAYC;AAxHD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,+CAA4E;AAoB5E;;;;;;;;GAQG;AACH,SAAgB,eAAe,CAC7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AC;IAC/B,MAAM,UAAU,GAAG,IAAA,4BAAc,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACpD,IAAI,IAAA,2BAAa,EAAC,IAAA,0BAAY,EAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;QAAE,OAAO,WAAW,CAAC;IAC5E,OAAO,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/C,CAAC"}
|
package/dist/queries.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const VARIANT_FRAGMENT = "\n \n fragment MoneyFields on MoneyV2
|
|
|
9
9
|
export declare const productCardFragment: () => string;
|
|
10
10
|
export declare const productFragment: () => string;
|
|
11
11
|
export declare const COLLECTION_FRAGMENT = "\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment CollectionFields on Collection {\n id\n handle\n title\n description\n descriptionHtml\n image { ...ImageFields }\n }\n";
|
|
12
|
-
export declare const CART_FRAGMENT = "\n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
12
|
+
export declare const CART_FRAGMENT = "\n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n";
|
|
13
13
|
export declare const ADDRESS_FRAGMENT = "\n fragment AddressFields on MailingAddress {\n id\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n phone\n }\n";
|
|
14
14
|
export declare const CUSTOMER_FRAGMENT = "\n \n fragment AddressFields on MailingAddress {\n id\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n phone\n }\n\n fragment CustomerFields on Customer {\n id\n email\n firstName\n lastName\n phone\n acceptsMarketing\n defaultAddress { ...AddressFields }\n }\n";
|
|
15
15
|
export declare const productsListQuery: () => string;
|
|
@@ -20,11 +20,11 @@ export declare const COLLECTIONS_LIST_QUERY = "\n \n \n fragment ImageFields
|
|
|
20
20
|
export declare const COLLECTION_BY_HANDLE_QUERY = "\n \n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment CollectionFields on Collection {\n id\n handle\n title\n description\n descriptionHtml\n image { ...ImageFields }\n }\n\n query CollectionByHandle($handle: String!) {\n collection(handle: $handle) { ...CollectionFields }\n }\n";
|
|
21
21
|
export declare const collectionProductsQuery: () => string;
|
|
22
22
|
export declare const searchProductsQuery: () => string;
|
|
23
|
-
export declare const CART_CREATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
24
|
-
export declare const CART_GET_QUERY = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
25
|
-
export declare const CART_LINES_ADD_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
26
|
-
export declare const CART_LINES_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
27
|
-
export declare const CART_LINES_REMOVE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
23
|
+
export declare const CART_CREATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartCreate($input: CartInput) {\n cartCreate(input: $input) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
24
|
+
export declare const CART_GET_QUERY = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n query CartGet($id: ID!) {\n cart(id: $id) { ...CartFields }\n }\n";
|
|
25
|
+
export declare const CART_LINES_ADD_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) {\n cartLinesAdd(cartId: $cartId, lines: $lines) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
26
|
+
export declare const CART_LINES_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!) {\n cartLinesUpdate(cartId: $cartId, lines: $lines) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
27
|
+
export declare const CART_LINES_REMOVE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartLinesRemove($cartId: ID!, $lineIds: [ID!]!) {\n cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
28
28
|
/**
|
|
29
29
|
* The cart's discount codes — the whole set, not an addition: this REPLACES whatever the cart
|
|
30
30
|
* carries, so a caller adding one has to send the existing ones back alongside it.
|
|
@@ -36,7 +36,7 @@ export declare const CART_LINES_REMOVE_MUTATION = "\n \n \n \n fragment Mone
|
|
|
36
36
|
* EVERY code failed, valid or not, on every app built on this SDK. Clearing the set is `[]`, which
|
|
37
37
|
* is a value rather than a null, so nothing is lost by requiring it.
|
|
38
38
|
*/
|
|
39
|
-
export declare const CART_DISCOUNT_CODES_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
39
|
+
export declare const CART_DISCOUNT_CODES_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartDiscountCodesUpdate($cartId: ID!, $discountCodes: [String!]!) {\n cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
40
40
|
/**
|
|
41
41
|
* The shopper's order note. It rides the cart to the order, where the merchant reads it beside the
|
|
42
42
|
* line items — so it is content, not a cart attribute, and Shopify gives it its own mutation.
|
|
@@ -46,17 +46,19 @@ export declare const CART_DISCOUNT_CODES_UPDATE_MUTATION = "\n \n \n \n frag
|
|
|
46
46
|
* not a case that only shows up when clearing. Clearing is the empty string, which is also what a
|
|
47
47
|
* cart with no note reads back as.
|
|
48
48
|
*/
|
|
49
|
-
export declare const CART_ATTRIBUTES_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
50
|
-
export declare const CART_NOTE_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
51
|
-
export declare const CART_BUYER_IDENTITY_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n sellingPlanAllocation {
|
|
52
|
-
export declare const
|
|
53
|
-
export declare const
|
|
49
|
+
export declare const CART_ATTRIBUTES_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartAttributesUpdate($cartId: ID!, $attributes: [AttributeInput!]!) {\n cartAttributesUpdate(cartId: $cartId, attributes: $attributes) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
50
|
+
export declare const CART_NOTE_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartNoteUpdate($cartId: ID!, $note: String!) {\n cartNoteUpdate(cartId: $cartId, note: $note) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
51
|
+
export declare const CART_BUYER_IDENTITY_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartBuyerIdentityUpdate($cartId: ID!, $buyerIdentity: CartBuyerIdentityInput!) {\n cartBuyerIdentityUpdate(cartId: $cartId, buyerIdentity: $buyerIdentity) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
52
|
+
export declare const CART_GIFT_CARD_CODES_ADD_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartGiftCardCodesAdd($cartId: ID!, $giftCardCodes: [String!]!) {\n cartGiftCardCodesAdd(cartId: $cartId, giftCardCodes: $giftCardCodes) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
53
|
+
export declare const CART_GIFT_CARD_CODES_UPDATE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartGiftCardCodesUpdate($cartId: ID!, $giftCardCodes: [String!]!) {\n cartGiftCardCodesUpdate(cartId: $cartId, giftCardCodes: $giftCardCodes) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
54
|
+
export declare const CART_GIFT_CARD_CODES_REMOVE_MUTATION = "\n \n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n fragment CartFields on Cart {\n id\n checkoutUrl\n totalQuantity\n note\n attributes { key value }\n buyerIdentity { countryCode email phone }\n cost {\n subtotalAmount { ...MoneyFields }\n totalAmount { ...MoneyFields }\n totalTaxAmount { ...MoneyFields }\n checkoutChargeAmount { ...MoneyFields }\n }\n discountCodes { code applicable }\n appliedGiftCards {\n id\n lastCharacters\n presentmentAmountUsed { ...MoneyFields }\n balance { ...MoneyFields }\n amountUsed { ...MoneyFields }\n }\n createdAt\n updatedAt\n lines(first: 250) {\n nodes {\n id\n quantity\n attributes { key value }\n # The plan the line was bought on, and what checkout takes now and later for it. Shopify\n # gives the two amounts per unit (normalize multiplies them by the quantity).\n sellingPlanAllocation {\n sellingPlan { id name }\n checkoutChargeAmount { ...MoneyFields }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n cost {\n totalAmount { ...MoneyFields }\n amountPerQuantity { ...MoneyFields }\n compareAtAmountPerQuantity { ...MoneyFields }\n }\n merchandise {\n ... on ProductVariant {\n ...VariantFields\n product { id title handle }\n }\n }\n }\n }\n }\n\n mutation CartGiftCardCodesRemove($cartId: ID!, $appliedGiftCardIds: [ID!]!) {\n cartGiftCardCodesRemove(cartId: $cartId, appliedGiftCardIds: $appliedGiftCardIds) {\n cart { ...CartFields }\n userErrors { field message code }\n }\n }\n";
|
|
54
55
|
/** Shop's IP-localized country (e.g. `"US"`). We use this as the fallback
|
|
55
56
|
* countryCode when applying a gift card so the cart has a payment tender. */
|
|
56
57
|
export declare const SHOP_LOCALIZATION_QUERY = "\n query ShopLocalization {\n localization {\n country { isoCode name }\n }\n }\n";
|
|
57
58
|
export declare const CUSTOMER_CREATE_MUTATION = "\n \n \n fragment AddressFields on MailingAddress {\n id\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n phone\n }\n\n fragment CustomerFields on Customer {\n id\n email\n firstName\n lastName\n phone\n acceptsMarketing\n defaultAddress { ...AddressFields }\n }\n\n mutation CustomerCreate($input: CustomerCreateInput!) {\n customerCreate(input: $input) {\n customer { ...CustomerFields }\n customerUserErrors { field message code }\n }\n }\n";
|
|
58
59
|
export declare const CUSTOMER_ACCESS_TOKEN_CREATE_MUTATION = "\n mutation CustomerAccessTokenCreate($input: CustomerAccessTokenCreateInput!) {\n customerAccessTokenCreate(input: $input) {\n customerAccessToken { accessToken expiresAt }\n customerUserErrors { field message code }\n }\n }\n";
|
|
59
60
|
export declare const CUSTOMER_ACCESS_TOKEN_DELETE_MUTATION = "\n mutation CustomerAccessTokenDelete($customerAccessToken: String!) {\n customerAccessTokenDelete(customerAccessToken: $customerAccessToken) {\n deletedAccessToken\n userErrors { field message }\n }\n }\n";
|
|
61
|
+
export declare const CUSTOMER_ACCESS_TOKEN_RENEW_MUTATION = "\n mutation CustomerAccessTokenRenew($customerAccessToken: String!) {\n customerAccessTokenRenew(customerAccessToken: $customerAccessToken) {\n customerAccessToken { accessToken expiresAt }\n userErrors { field message }\n }\n }\n";
|
|
60
62
|
export declare const CUSTOMER_QUERY = "\n \n \n fragment AddressFields on MailingAddress {\n id\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n phone\n }\n\n fragment CustomerFields on Customer {\n id\n email\n firstName\n lastName\n phone\n acceptsMarketing\n defaultAddress { ...AddressFields }\n }\n\n query Customer($accessToken: String!) {\n customer(customerAccessToken: $accessToken) { ...CustomerFields }\n }\n";
|
|
61
63
|
export declare const CUSTOMER_RECOVER_MUTATION = "\n mutation CustomerRecover($email: String!) {\n customerRecover(email: $email) {\n customerUserErrors { field message code }\n }\n }\n";
|
|
62
64
|
export declare const CUSTOMER_UPDATE_MUTATION = "\n \n \n fragment AddressFields on MailingAddress {\n id\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n phone\n }\n\n fragment CustomerFields on Customer {\n id\n email\n firstName\n lastName\n phone\n acceptsMarketing\n defaultAddress { ...AddressFields }\n }\n\n mutation CustomerUpdate($accessToken: String!, $customer: CustomerUpdateInput!) {\n customerUpdate(customerAccessToken: $accessToken, customer: $customer) {\n customer { ...CustomerFields }\n customerUserErrors { field message code }\n }\n }\n";
|
|
@@ -73,5 +75,5 @@ export declare const BLOG_ARTICLE_BY_HANDLE_QUERY = "\n \n \n fragment ImageF
|
|
|
73
75
|
export declare const nodesAsProductsQuery: () => string;
|
|
74
76
|
export declare const SHOP_QUERY = "\n query ShopInfo {\n shop {\n name\n moneyFormat\n paymentSettings {\n currencyCode\n }\n }\n }\n";
|
|
75
77
|
/** Each variant carries enough of its parent product to render a card without a second trip. */
|
|
76
|
-
export declare const NODES_AS_VARIANTS_QUERY = "\n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n query VariantNodes($ids: [ID!]!) {\n nodes(ids: $ids) {\n __typename\n ... on ProductVariant {\n ...VariantFields\n sellingPlanAllocations(first: 1) {\n nodes {\n sellingPlan { id name }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n }\n product {\n id\n title\n handle\n featuredImage { ...ImageFields }\n media(first: 250) { nodes { mediaContentType } }\n }\n }\n }\n }\n";
|
|
78
|
+
export declare const NODES_AS_VARIANTS_QUERY = "\n \n \n fragment MoneyFields on MoneyV2 {\n amount\n currencyCode\n }\n\n \n fragment ImageFields on Image {\n # A null $imageTransform (the default) returns the original; request() declares the variable.\n url(transform: $imageTransform)\n altText\n width\n height\n }\n\n fragment VariantFields on ProductVariant {\n id\n title\n sku\n availableForSale\n quantityAvailable\n price { ...MoneyFields }\n compareAtPrice { ...MoneyFields }\n selectedOptions { name value }\n image { ...ImageFields }\n }\n\n query VariantNodes($ids: [ID!]!) {\n nodes(ids: $ids) {\n __typename\n ... on ProductVariant {\n ...VariantFields\n sellingPlanAllocations(first: 1) {\n nodes {\n sellingPlan { id name }\n remainingBalanceChargeAmount { ...MoneyFields }\n }\n }\n product {\n id\n title\n handle\n tags\n featuredImage { ...ImageFields }\n media(first: 250) { nodes { mediaContentType } }\n }\n }\n }\n }\n";
|
|
77
79
|
//# sourceMappingURL=queries.d.ts.map
|
package/dist/queries.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,+EAK1B,CAAC;AAEF,eAAO,MAAM,cAAc,2NAQ1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,kjBAc5B,CAAC;
|
|
1
|
+
{"version":3,"file":"queries.d.ts","s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ixEAQhD,CAAC;AAEF,eAAO,MAAM,oCAAoC,4xEAQhD,CAAC;AAEF;8EAC8E;AAC9E,eAAO,MAAM,uBAAuB,mGAMnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,2iBAQpC,CAAC;AAEF,eAAO,MAAM,qCAAqC,0PAOjD,CAAC;AAEF,eAAO,MAAM,qCAAqC,oOAOjD,CAAC;AAEF,eAAO,MAAM,oCAAoC,6PAOhD,CAAC;AAEF,eAAO,MAAM,cAAc,+dAK1B,CAAC;AAEF,eAAO,MAAM,yBAAyB,yJAMrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,8mBAQpC,CAAC;AAIF,eAAO,MAAM,cAAc,s2CAyC1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,isDAUjC,CAAC;AAEF,eAAO,MAAM,0BAA0B,4kDAStC,CAAC;AAIF,eAAO,MAAM,aAAa,4EAMzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mkBAqB5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6YAQ5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,8KAKhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,m7BAU/B,CAAC;AAEF,eAAO,MAAM,4BAA4B,wwBAOxC,CAAC;AAIF,iFAAiF;AACjF,eAAO,MAAM,oBAAoB,cAQ/B,CAAC;AAEH,eAAO,MAAM,UAAU,0IAUtB,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,uBAAuB,slCAwBnC,CAAC"}
|
package/dist/queries.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NODES_AS_VARIANTS_QUERY = exports.SHOP_QUERY = exports.nodesAsProductsQuery = exports.BLOG_ARTICLE_BY_HANDLE_QUERY = exports.BLOG_ARTICLES_QUERY = exports.BLOG_BY_HANDLE_QUERY = exports.BLOGS_LIST_QUERY = exports.ARTICLE_FRAGMENT = exports.BLOG_FRAGMENT = exports.CUSTOMER_ORDER_BY_ID_QUERY = exports.CUSTOMER_ORDERS_QUERY = exports.ORDER_FRAGMENT = exports.CUSTOMER_UPDATE_MUTATION = exports.CUSTOMER_RECOVER_MUTATION = exports.CUSTOMER_QUERY = exports.CUSTOMER_ACCESS_TOKEN_DELETE_MUTATION = exports.CUSTOMER_ACCESS_TOKEN_CREATE_MUTATION = exports.CUSTOMER_CREATE_MUTATION = exports.SHOP_LOCALIZATION_QUERY = exports.CART_GIFT_CARD_CODES_REMOVE_MUTATION = exports.CART_GIFT_CARD_CODES_UPDATE_MUTATION = exports.CART_BUYER_IDENTITY_UPDATE_MUTATION = exports.CART_NOTE_UPDATE_MUTATION = exports.CART_ATTRIBUTES_UPDATE_MUTATION = exports.CART_DISCOUNT_CODES_UPDATE_MUTATION = exports.CART_LINES_REMOVE_MUTATION = exports.CART_LINES_UPDATE_MUTATION = exports.CART_LINES_ADD_MUTATION = exports.CART_GET_QUERY = exports.CART_CREATE_MUTATION = exports.searchProductsQuery = exports.collectionProductsQuery = exports.COLLECTION_BY_HANDLE_QUERY = exports.COLLECTIONS_LIST_QUERY = exports.productRecommendationsQuery = exports.productByIdQuery = exports.productByHandleQuery = exports.productsListQuery = exports.CUSTOMER_FRAGMENT = exports.ADDRESS_FRAGMENT = exports.CART_FRAGMENT = exports.COLLECTION_FRAGMENT = exports.productFragment = exports.productCardFragment = exports.VARIANT_FRAGMENT = exports.IMAGE_FRAGMENT = exports.MONEY_FRAGMENT = void 0;
|
|
3
|
+
exports.NODES_AS_VARIANTS_QUERY = exports.SHOP_QUERY = exports.nodesAsProductsQuery = exports.BLOG_ARTICLE_BY_HANDLE_QUERY = exports.BLOG_ARTICLES_QUERY = exports.BLOG_BY_HANDLE_QUERY = exports.BLOGS_LIST_QUERY = exports.ARTICLE_FRAGMENT = exports.BLOG_FRAGMENT = exports.CUSTOMER_ORDER_BY_ID_QUERY = exports.CUSTOMER_ORDERS_QUERY = exports.ORDER_FRAGMENT = exports.CUSTOMER_UPDATE_MUTATION = exports.CUSTOMER_RECOVER_MUTATION = exports.CUSTOMER_QUERY = exports.CUSTOMER_ACCESS_TOKEN_RENEW_MUTATION = exports.CUSTOMER_ACCESS_TOKEN_DELETE_MUTATION = exports.CUSTOMER_ACCESS_TOKEN_CREATE_MUTATION = exports.CUSTOMER_CREATE_MUTATION = exports.SHOP_LOCALIZATION_QUERY = exports.CART_GIFT_CARD_CODES_REMOVE_MUTATION = exports.CART_GIFT_CARD_CODES_UPDATE_MUTATION = exports.CART_GIFT_CARD_CODES_ADD_MUTATION = exports.CART_BUYER_IDENTITY_UPDATE_MUTATION = exports.CART_NOTE_UPDATE_MUTATION = exports.CART_ATTRIBUTES_UPDATE_MUTATION = exports.CART_DISCOUNT_CODES_UPDATE_MUTATION = exports.CART_LINES_REMOVE_MUTATION = exports.CART_LINES_UPDATE_MUTATION = exports.CART_LINES_ADD_MUTATION = exports.CART_GET_QUERY = exports.CART_CREATE_MUTATION = exports.searchProductsQuery = exports.collectionProductsQuery = exports.COLLECTION_BY_HANDLE_QUERY = exports.COLLECTIONS_LIST_QUERY = exports.productRecommendationsQuery = exports.productByIdQuery = exports.productByHandleQuery = exports.productsListQuery = exports.CUSTOMER_FRAGMENT = exports.ADDRESS_FRAGMENT = exports.CART_FRAGMENT = exports.COLLECTION_FRAGMENT = exports.productFragment = exports.productCardFragment = exports.VARIANT_FRAGMENT = exports.IMAGE_FRAGMENT = exports.MONEY_FRAGMENT = void 0;
|
|
4
4
|
const metafields_1 = require("./metafields");
|
|
5
5
|
exports.MONEY_FRAGMENT = `
|
|
6
6
|
fragment MoneyFields on MoneyV2 {
|
|
@@ -37,6 +37,10 @@ exports.VARIANT_FRAGMENT = `
|
|
|
37
37
|
*
|
|
38
38
|
* Built on demand rather than held as a const: the metafield selection depends on what the app
|
|
39
39
|
* configured, which happens after this module is imported.
|
|
40
|
+
*
|
|
41
|
+
* Each variant carries its first selling-plan allocation (`variant.sellingPlan`, its pre-order plan):
|
|
42
|
+
* one is all a page adds with, and every product read carries it, so a page opened from a card knows
|
|
43
|
+
* it in its first frame. It isn't in `VariantFields`, which the cart shares: a cart line has its own.
|
|
40
44
|
*/
|
|
41
45
|
const productCoreFragment = () => /* GraphQL */ `
|
|
42
46
|
${exports.VARIANT_FRAGMENT}
|
|
@@ -61,7 +65,12 @@ const productCoreFragment = () => /* GraphQL */ `
|
|
|
61
65
|
maxVariantPrice { ...MoneyFields }
|
|
62
66
|
}
|
|
63
67
|
options { id name values }
|
|
64
|
-
variants(first: 100) {
|
|
68
|
+
variants(first: 100) {
|
|
69
|
+
nodes {
|
|
70
|
+
...VariantFields
|
|
71
|
+
sellingPlanAllocations(first: 1) { nodes { sellingPlan { id name } } }
|
|
72
|
+
}
|
|
73
|
+
}
|
|
65
74
|
images(first: 20) { nodes { ...ImageFields } }
|
|
66
75
|
featuredImage { ...ImageFields }
|
|
67
76
|
onlineStoreUrl
|
|
@@ -91,8 +100,9 @@ const productFragment = () => /* GraphQL */ `
|
|
|
91
100
|
nodes {
|
|
92
101
|
mediaContentType
|
|
93
102
|
alt
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
# width/height are the original's, whatever the transform: a viewer sizes the photo from them.
|
|
104
|
+
previewImage { url(transform: $imageTransform) width height }
|
|
105
|
+
... on MediaImage { id image { url(transform: $imageTransform) altText width height } }
|
|
96
106
|
# mimeType tells the usable mp4s from the HLS/DASH manifests Shopify also returns.
|
|
97
107
|
... on Video { id sources { url mimeType width height } }
|
|
98
108
|
... on ExternalVideo { id embeddedUrl host }
|
|
@@ -143,7 +153,13 @@ exports.CART_FRAGMENT = `
|
|
|
143
153
|
id
|
|
144
154
|
quantity
|
|
145
155
|
attributes { key value }
|
|
146
|
-
|
|
156
|
+
# The plan the line was bought on, and what checkout takes now and later for it. Shopify
|
|
157
|
+
# gives the two amounts per unit (normalize multiplies them by the quantity).
|
|
158
|
+
sellingPlanAllocation {
|
|
159
|
+
sellingPlan { id name }
|
|
160
|
+
checkoutChargeAmount { ...MoneyFields }
|
|
161
|
+
remainingBalanceChargeAmount { ...MoneyFields }
|
|
162
|
+
}
|
|
147
163
|
cost {
|
|
148
164
|
totalAmount { ...MoneyFields }
|
|
149
165
|
amountPerQuantity { ...MoneyFields }
|
|
@@ -381,8 +397,19 @@ exports.CART_BUYER_IDENTITY_UPDATE_MUTATION = `
|
|
|
381
397
|
`;
|
|
382
398
|
// Gift cards are a payment tender in Shopify (not a discount), so they stack
|
|
383
399
|
// past `combinesWith` rules. Apply requires `buyerIdentity.countryCode` on
|
|
384
|
-
// the cart — otherwise Shopify returns INVALID_PAYMENT.
|
|
385
|
-
//
|
|
400
|
+
// the cart — otherwise Shopify returns INVALID_PAYMENT.
|
|
401
|
+
//
|
|
402
|
+
// UPDATE replaces every gift card on the cart with the codes sent; ADD keeps
|
|
403
|
+
// the ones already there. Adding a card is ADD.
|
|
404
|
+
exports.CART_GIFT_CARD_CODES_ADD_MUTATION = `
|
|
405
|
+
${exports.CART_FRAGMENT}
|
|
406
|
+
mutation CartGiftCardCodesAdd($cartId: ID!, $giftCardCodes: [String!]!) {
|
|
407
|
+
cartGiftCardCodesAdd(cartId: $cartId, giftCardCodes: $giftCardCodes) {
|
|
408
|
+
cart { ...CartFields }
|
|
409
|
+
userErrors { field message code }
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
`;
|
|
386
413
|
exports.CART_GIFT_CARD_CODES_UPDATE_MUTATION = `
|
|
387
414
|
${exports.CART_FRAGMENT}
|
|
388
415
|
mutation CartGiftCardCodesUpdate($cartId: ID!, $giftCardCodes: [String!]!) {
|
|
@@ -435,6 +462,14 @@ exports.CUSTOMER_ACCESS_TOKEN_DELETE_MUTATION = `
|
|
|
435
462
|
}
|
|
436
463
|
}
|
|
437
464
|
`;
|
|
465
|
+
exports.CUSTOMER_ACCESS_TOKEN_RENEW_MUTATION = `
|
|
466
|
+
mutation CustomerAccessTokenRenew($customerAccessToken: String!) {
|
|
467
|
+
customerAccessTokenRenew(customerAccessToken: $customerAccessToken) {
|
|
468
|
+
customerAccessToken { accessToken expiresAt }
|
|
469
|
+
userErrors { field message }
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
`;
|
|
438
473
|
exports.CUSTOMER_QUERY = `
|
|
439
474
|
${exports.CUSTOMER_FRAGMENT}
|
|
440
475
|
query Customer($accessToken: String!) {
|
|
@@ -625,6 +660,7 @@ exports.NODES_AS_VARIANTS_QUERY = `
|
|
|
625
660
|
id
|
|
626
661
|
title
|
|
627
662
|
handle
|
|
663
|
+
tags
|
|
628
664
|
featuredImage { ...ImageFields }
|
|
629
665
|
media(first: 250) { nodes { mediaContentType } }
|
|
630
666
|
}
|
package/dist/queries.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":";;;AAAA,6CAAgE;AAEnD,QAAA,cAAc,GAAiB;;;;;CAK3C,CAAC;AAEW,QAAA,cAAc,GAAiB;;;;;;;;CAQ3C,CAAC;AAEW,QAAA,gBAAgB,GAAiB;IAC1C,sBAAc;IACd,sBAAc;;;;;;;;;;;;CAYjB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":";;;AAAA,6CAAgE;AAEnD,QAAA,cAAc,GAAiB;;;;;CAK3C,CAAC;AAEW,QAAA,cAAc,GAAiB;;;;;;;;CAQ3C,CAAC;AAEW,QAAA,gBAAgB,GAAiB;IAC1C,sBAAc;IACd,sBAAc;;;;;;;;;;;;CAYjB,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC;IAC5C,wBAAgB;;MAEd,IAAA,+BAAkB,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCzB,CAAC;AAEF;;;;GAIG;AACI,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,a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