@gem-sdk/adapter-shopify 1.12.0 → 1.22.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const normalizeCartProductVariant = (variant)=>{
|
|
4
|
-
const { compareAtPriceV2
|
|
4
|
+
const { compareAtPriceV2, priceV2, weight, weightUnit, id, sku, image } = variant;
|
|
5
5
|
return {
|
|
6
6
|
id,
|
|
7
7
|
requiresShipping: variant.requiresShipping,
|
|
@@ -18,7 +18,7 @@ const normalizeCartProductVariant = (variant)=>{
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
const normalizeLineItem = (lineItem)=>{
|
|
21
|
-
const { quantity
|
|
21
|
+
const { quantity, id, merchandise } = lineItem;
|
|
22
22
|
const variant = normalizeCartProductVariant(merchandise);
|
|
23
23
|
return {
|
|
24
24
|
id,
|
|
@@ -34,7 +34,7 @@ const normalizeLineItem = (lineItem)=>{
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
const normalizeCart = (cart)=>{
|
|
37
|
-
const { cost
|
|
37
|
+
const { cost } = cart;
|
|
38
38
|
return {
|
|
39
39
|
createdAt: cart.createdAt,
|
|
40
40
|
id: cart.id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const normalizeCartProductVariant = (variant)=>{
|
|
2
|
-
const { compareAtPriceV2
|
|
2
|
+
const { compareAtPriceV2, priceV2, weight, weightUnit, id, sku, image } = variant;
|
|
3
3
|
return {
|
|
4
4
|
id,
|
|
5
5
|
requiresShipping: variant.requiresShipping,
|
|
@@ -16,7 +16,7 @@ const normalizeCartProductVariant = (variant)=>{
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const normalizeLineItem = (lineItem)=>{
|
|
19
|
-
const { quantity
|
|
19
|
+
const { quantity, id, merchandise } = lineItem;
|
|
20
20
|
const variant = normalizeCartProductVariant(merchandise);
|
|
21
21
|
return {
|
|
22
22
|
id,
|
|
@@ -32,7 +32,7 @@ const normalizeLineItem = (lineItem)=>{
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
const normalizeCart = (cart)=>{
|
|
35
|
-
const { cost
|
|
35
|
+
const { cost } = cart;
|
|
36
36
|
return {
|
|
37
37
|
createdAt: cart.createdAt,
|
|
38
38
|
id: cart.id,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,9 +17,7 @@ declare const cartNoteUpdateOperation: (config: Site.ProviderConfig) => Cart$1.C
|
|
|
17
17
|
|
|
18
18
|
type Maybe<T> = T | undefined;
|
|
19
19
|
type InputMaybe<T> = T | undefined;
|
|
20
|
-
type Exact<T extends {
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
}> = {
|
|
20
|
+
type Exact<T extends Record<string, unknown>> = {
|
|
23
21
|
[K in keyof T]: T[K];
|
|
24
22
|
};
|
|
25
23
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
@@ -139,7 +137,7 @@ type Article = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
139
137
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
140
138
|
*
|
|
141
139
|
*/
|
|
142
|
-
metafields:
|
|
140
|
+
metafields: Maybe<Metafield>[];
|
|
143
141
|
/** The URL used for viewing the resource on the shop's Online Store. Returns `null` if the resource is currently not published to the Online Store sales channel. */
|
|
144
142
|
onlineStoreUrl?: Maybe<Scalars['URL']>;
|
|
145
143
|
/** The date and time when the article was published. */
|
|
@@ -147,7 +145,7 @@ type Article = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
147
145
|
/** The article’s SEO information. */
|
|
148
146
|
seo?: Maybe<Seo>;
|
|
149
147
|
/** A categorization that a article can be tagged with. */
|
|
150
|
-
tags:
|
|
148
|
+
tags: Scalars['String'][];
|
|
151
149
|
/** The article’s name. */
|
|
152
150
|
title: Scalars['String'];
|
|
153
151
|
};
|
|
@@ -170,9 +168,9 @@ type ArticleAuthor = {
|
|
|
170
168
|
*/
|
|
171
169
|
type ArticleConnection = {
|
|
172
170
|
/** A list of edges. */
|
|
173
|
-
edges:
|
|
171
|
+
edges: ArticleEdge[];
|
|
174
172
|
/** A list of the nodes contained in ArticleEdge. */
|
|
175
|
-
nodes:
|
|
173
|
+
nodes: Article[];
|
|
176
174
|
/** Information to aid in pagination. */
|
|
177
175
|
pageInfo: PageInfo;
|
|
178
176
|
};
|
|
@@ -210,7 +208,7 @@ type AvailableShippingRates = {
|
|
|
210
208
|
*/
|
|
211
209
|
ready: Scalars['Boolean'];
|
|
212
210
|
/** The fetched shipping rates. `null` until the `ready` field is `true`. */
|
|
213
|
-
shippingRates?: Maybe<
|
|
211
|
+
shippingRates?: Maybe<ShippingRate[]>;
|
|
214
212
|
};
|
|
215
213
|
/** An online store blog. */
|
|
216
214
|
type Blog = HasMetafields & Node & OnlineStorePublishable & {
|
|
@@ -219,7 +217,7 @@ type Blog = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
219
217
|
/** List of the blog's articles. */
|
|
220
218
|
articles: ArticleConnection;
|
|
221
219
|
/** The authors who have contributed to the blog. */
|
|
222
|
-
authors:
|
|
220
|
+
authors: ArticleAuthor[];
|
|
223
221
|
/**
|
|
224
222
|
* A human-friendly unique string for the Blog automatically generated from its title.
|
|
225
223
|
*
|
|
@@ -233,7 +231,7 @@ type Blog = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
233
231
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
234
232
|
*
|
|
235
233
|
*/
|
|
236
|
-
metafields:
|
|
234
|
+
metafields: Maybe<Metafield>[];
|
|
237
235
|
/** The URL used for viewing the resource on the shop's Online Store. Returns `null` if the resource is currently not published to the Online Store sales channel. */
|
|
238
236
|
onlineStoreUrl?: Maybe<Scalars['URL']>;
|
|
239
237
|
/** The blog's SEO information. */
|
|
@@ -260,7 +258,7 @@ type Cart = Node & {
|
|
|
260
258
|
/** An attribute associated with the cart. */
|
|
261
259
|
attribute?: Maybe<Attribute>;
|
|
262
260
|
/** The attributes associated with the cart. Attributes are represented as key-value pairs. */
|
|
263
|
-
attributes:
|
|
261
|
+
attributes: Attribute[];
|
|
264
262
|
/** Information about the buyer that is interacting with the cart. */
|
|
265
263
|
buyerIdentity: CartBuyerIdentity;
|
|
266
264
|
/** The URL of the checkout for the cart. */
|
|
@@ -272,12 +270,12 @@ type Cart = Node & {
|
|
|
272
270
|
/** The delivery groups available for the cart, based on the default address of the logged-in customer. */
|
|
273
271
|
deliveryGroups: CartDeliveryGroupConnection;
|
|
274
272
|
/** The discounts that have been applied to the entire cart. */
|
|
275
|
-
discountAllocations:
|
|
273
|
+
discountAllocations: CartDiscountAllocation[];
|
|
276
274
|
/**
|
|
277
275
|
* The case-insensitive discount codes that the customer added at checkout.
|
|
278
276
|
*
|
|
279
277
|
*/
|
|
280
|
-
discountCodes:
|
|
278
|
+
discountCodes: CartDiscountCode[];
|
|
281
279
|
/**
|
|
282
280
|
* The estimated costs that the buyer will pay at checkout. The estimated costs are subject to change and changes will be reflected at checkout. The `estimatedCost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/api/examples/international-pricing#create-a-cart).
|
|
283
281
|
* @deprecated Use `cost` instead
|
|
@@ -355,7 +353,7 @@ type CartDeliveryGroup = {
|
|
|
355
353
|
/** The destination address for the delivery group. */
|
|
356
354
|
deliveryAddress: MailingAddress;
|
|
357
355
|
/** The delivery options available for the delivery group. */
|
|
358
|
-
deliveryOptions:
|
|
356
|
+
deliveryOptions: CartDeliveryOption[];
|
|
359
357
|
/** The ID for the delivery group. */
|
|
360
358
|
id: Scalars['ID'];
|
|
361
359
|
};
|
|
@@ -365,9 +363,9 @@ type CartDeliveryGroup = {
|
|
|
365
363
|
*/
|
|
366
364
|
type CartDeliveryGroupConnection = {
|
|
367
365
|
/** A list of edges. */
|
|
368
|
-
edges:
|
|
366
|
+
edges: CartDeliveryGroupEdge[];
|
|
369
367
|
/** A list of the nodes contained in CartDeliveryGroupEdge. */
|
|
370
|
-
nodes:
|
|
368
|
+
nodes: CartDeliveryGroup[];
|
|
371
369
|
/** Information to aid in pagination. */
|
|
372
370
|
pageInfo: PageInfo;
|
|
373
371
|
};
|
|
@@ -439,16 +437,16 @@ type CartEstimatedCost = {
|
|
|
439
437
|
/** Specifies the input fields to create a cart. */
|
|
440
438
|
type CartInput = {
|
|
441
439
|
/** An array of key-value pairs that contains additional information about the cart. */
|
|
442
|
-
attributes?: InputMaybe<
|
|
440
|
+
attributes?: InputMaybe<AttributeInput[]>;
|
|
443
441
|
/** The customer associated with the cart. Used to determine [international pricing](https://shopify.dev/api/examples/international-pricing#create-a-checkout). Buyer identity should match the customer's shipping address. */
|
|
444
442
|
buyerIdentity?: InputMaybe<CartBuyerIdentityInput>;
|
|
445
443
|
/**
|
|
446
444
|
* The case-insensitive discount codes that the customer added at checkout.
|
|
447
445
|
*
|
|
448
446
|
*/
|
|
449
|
-
discountCodes?: InputMaybe<
|
|
447
|
+
discountCodes?: InputMaybe<Scalars['String'][]>;
|
|
450
448
|
/** A list of merchandise lines to add to the cart. */
|
|
451
|
-
lines?: InputMaybe<
|
|
449
|
+
lines?: InputMaybe<CartLineInput[]>;
|
|
452
450
|
/** A note that is associated with the cart. For example, the note can be a personalized message to the buyer. */
|
|
453
451
|
note?: InputMaybe<Scalars['String']>;
|
|
454
452
|
};
|
|
@@ -457,11 +455,11 @@ type CartLine = Node & {
|
|
|
457
455
|
/** An attribute associated with the cart line. */
|
|
458
456
|
attribute?: Maybe<Attribute>;
|
|
459
457
|
/** The attributes associated with the cart line. Attributes are represented as key-value pairs. */
|
|
460
|
-
attributes:
|
|
458
|
+
attributes: Attribute[];
|
|
461
459
|
/** The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. */
|
|
462
460
|
cost: CartLineCost;
|
|
463
461
|
/** The discounts that have been applied to the cart line. */
|
|
464
|
-
discountAllocations:
|
|
462
|
+
discountAllocations: CartDiscountAllocation[];
|
|
465
463
|
/**
|
|
466
464
|
* The estimated cost of the merchandise that the buyer will pay for at checkout. The estimated costs are subject to change and changes will be reflected at checkout.
|
|
467
465
|
* @deprecated Use `cost` instead
|
|
@@ -482,9 +480,9 @@ type CartLine = Node & {
|
|
|
482
480
|
*/
|
|
483
481
|
type CartLineConnection = {
|
|
484
482
|
/** A list of edges. */
|
|
485
|
-
edges:
|
|
483
|
+
edges: CartLineEdge[];
|
|
486
484
|
/** A list of the nodes contained in CartLineEdge. */
|
|
487
|
-
nodes:
|
|
485
|
+
nodes: CartLine[];
|
|
488
486
|
/** Information to aid in pagination. */
|
|
489
487
|
pageInfo: PageInfo;
|
|
490
488
|
};
|
|
@@ -523,7 +521,7 @@ type CartLineEstimatedCost = {
|
|
|
523
521
|
/** Specifies the input fields to create a merchandise line on a cart. */
|
|
524
522
|
type CartLineInput = {
|
|
525
523
|
/** An array of key-value pairs that contains additional information about the merchandise line. */
|
|
526
|
-
attributes?: InputMaybe<
|
|
524
|
+
attributes?: InputMaybe<AttributeInput[]>;
|
|
527
525
|
/** The identifier of the merchandise that the buyer intends to purchase. */
|
|
528
526
|
merchandiseId: Scalars['ID'];
|
|
529
527
|
/** The quantity of the merchandise. */
|
|
@@ -534,7 +532,7 @@ type CartLineInput = {
|
|
|
534
532
|
/** Specifies the input fields to update a line item on a cart. */
|
|
535
533
|
type CartLineUpdateInput = {
|
|
536
534
|
/** An array of key-value pairs that contains additional information about the merchandise line. */
|
|
537
|
-
attributes?: InputMaybe<
|
|
535
|
+
attributes?: InputMaybe<AttributeInput[]>;
|
|
538
536
|
/** The identifier of the merchandise line. */
|
|
539
537
|
id: Scalars['ID'];
|
|
540
538
|
/** The identifier of the merchandise for the line item. */
|
|
@@ -549,14 +547,14 @@ type CartUserError = DisplayableError & {
|
|
|
549
547
|
/** The error code. */
|
|
550
548
|
code?: Maybe<CartErrorCode>;
|
|
551
549
|
/** The path to the input field that caused the error. */
|
|
552
|
-
field?: Maybe<
|
|
550
|
+
field?: Maybe<Scalars['String'][]>;
|
|
553
551
|
/** The error message. */
|
|
554
552
|
message: Scalars['String'];
|
|
555
553
|
};
|
|
556
554
|
/** A container for all the information required to checkout items and pay. */
|
|
557
555
|
type Checkout = Node & {
|
|
558
556
|
/** The gift cards used on the checkout. */
|
|
559
|
-
appliedGiftCards:
|
|
557
|
+
appliedGiftCards: AppliedGiftCard[];
|
|
560
558
|
/**
|
|
561
559
|
* The available shipping rates for this Checkout.
|
|
562
560
|
* Should only be used when checkout `requiresShipping` is `true` and
|
|
@@ -573,7 +571,7 @@ type Checkout = Node & {
|
|
|
573
571
|
/** The currency code for the checkout. */
|
|
574
572
|
currencyCode: CurrencyCode;
|
|
575
573
|
/** A list of extra information that is added to the checkout. */
|
|
576
|
-
customAttributes:
|
|
574
|
+
customAttributes: Attribute[];
|
|
577
575
|
/** Discounts that have been applied on the checkout. */
|
|
578
576
|
discountApplications: DiscountApplicationConnection;
|
|
579
577
|
/** The email attached to this checkout. */
|
|
@@ -613,7 +611,7 @@ type Checkout = Node & {
|
|
|
613
611
|
* The discounts that have been allocated onto the shipping line by discount applications.
|
|
614
612
|
*
|
|
615
613
|
*/
|
|
616
|
-
shippingDiscountAllocations:
|
|
614
|
+
shippingDiscountAllocations: DiscountAllocation[];
|
|
617
615
|
/** Once a shipping rate is selected by the customer it is transitioned to a `shipping_line` object. */
|
|
618
616
|
shippingLine?: Maybe<ShippingRate>;
|
|
619
617
|
/**
|
|
@@ -656,9 +654,9 @@ type CheckoutBuyerIdentity = {
|
|
|
656
654
|
/** A single line item in the checkout, grouped by variant and attributes. */
|
|
657
655
|
type CheckoutLineItem = Node & {
|
|
658
656
|
/** Extra information in the form of an array of Key-Value pairs about the line item. */
|
|
659
|
-
customAttributes:
|
|
657
|
+
customAttributes: Attribute[];
|
|
660
658
|
/** The discounts that have been allocated onto the checkout line item by discount applications. */
|
|
661
|
-
discountAllocations:
|
|
659
|
+
discountAllocations: DiscountAllocation[];
|
|
662
660
|
/** A globally-unique identifier. */
|
|
663
661
|
id: Scalars['ID'];
|
|
664
662
|
/** The quantity of the line item. */
|
|
@@ -676,9 +674,9 @@ type CheckoutLineItem = Node & {
|
|
|
676
674
|
*/
|
|
677
675
|
type CheckoutLineItemConnection = {
|
|
678
676
|
/** A list of edges. */
|
|
679
|
-
edges:
|
|
677
|
+
edges: CheckoutLineItemEdge[];
|
|
680
678
|
/** A list of the nodes contained in CheckoutLineItemEdge. */
|
|
681
|
-
nodes:
|
|
679
|
+
nodes: CheckoutLineItem[];
|
|
682
680
|
/** Information to aid in pagination. */
|
|
683
681
|
pageInfo: PageInfo;
|
|
684
682
|
};
|
|
@@ -714,7 +712,7 @@ type Collection = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
714
712
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
715
713
|
*
|
|
716
714
|
*/
|
|
717
|
-
metafields:
|
|
715
|
+
metafields: Maybe<Metafield>[];
|
|
718
716
|
/** The URL used for viewing the resource on the shop's Online Store. Returns `null` if the resource is currently not published to the Online Store sales channel. */
|
|
719
717
|
onlineStoreUrl?: Maybe<Scalars['URL']>;
|
|
720
718
|
/** List of products in the collection. */
|
|
@@ -732,9 +730,9 @@ type Collection = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
732
730
|
*/
|
|
733
731
|
type CollectionConnection = {
|
|
734
732
|
/** A list of edges. */
|
|
735
|
-
edges:
|
|
733
|
+
edges: CollectionEdge[];
|
|
736
734
|
/** A list of the nodes contained in CollectionEdge. */
|
|
737
|
-
nodes:
|
|
735
|
+
nodes: Collection[];
|
|
738
736
|
/** Information to aid in pagination. */
|
|
739
737
|
pageInfo: PageInfo;
|
|
740
738
|
};
|
|
@@ -772,9 +770,9 @@ type CommentAuthor = {
|
|
|
772
770
|
*/
|
|
773
771
|
type CommentConnection = {
|
|
774
772
|
/** A list of edges. */
|
|
775
|
-
edges:
|
|
773
|
+
edges: CommentEdge[];
|
|
776
774
|
/** A list of the nodes contained in CommentEdge. */
|
|
777
|
-
nodes:
|
|
775
|
+
nodes: Comment[];
|
|
778
776
|
/** Information to aid in pagination. */
|
|
779
777
|
pageInfo: PageInfo;
|
|
780
778
|
};
|
|
@@ -791,7 +789,7 @@ type CommentEdge = {
|
|
|
791
789
|
/** A country. */
|
|
792
790
|
type Country = {
|
|
793
791
|
/** The languages available for the country. */
|
|
794
|
-
availableLanguages:
|
|
792
|
+
availableLanguages: Language[];
|
|
795
793
|
/** The currency of the country. */
|
|
796
794
|
currency: Currency;
|
|
797
795
|
/** The ISO code of the country. */
|
|
@@ -1664,7 +1662,7 @@ type Customer = HasMetafields & {
|
|
|
1664
1662
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
1665
1663
|
*
|
|
1666
1664
|
*/
|
|
1667
|
-
metafields:
|
|
1665
|
+
metafields: Maybe<Metafield>[];
|
|
1668
1666
|
/** The orders associated with the customer. */
|
|
1669
1667
|
orders: OrderConnection;
|
|
1670
1668
|
/** The customer’s phone number. */
|
|
@@ -1674,7 +1672,7 @@ type Customer = HasMetafields & {
|
|
|
1674
1672
|
* Additional access scope required: unauthenticated_read_customer_tags.
|
|
1675
1673
|
*
|
|
1676
1674
|
*/
|
|
1677
|
-
tags:
|
|
1675
|
+
tags: Scalars['String'][];
|
|
1678
1676
|
/** The date and time when the customer information was updated. */
|
|
1679
1677
|
updatedAt: Scalars['DateTime'];
|
|
1680
1678
|
};
|
|
@@ -1741,9 +1739,9 @@ type DiscountApplicationAllocationMethod =
|
|
|
1741
1739
|
*/
|
|
1742
1740
|
type DiscountApplicationConnection = {
|
|
1743
1741
|
/** A list of edges. */
|
|
1744
|
-
edges:
|
|
1742
|
+
edges: DiscountApplicationEdge[];
|
|
1745
1743
|
/** A list of the nodes contained in DiscountApplicationEdge. */
|
|
1746
|
-
nodes:
|
|
1744
|
+
nodes: DiscountApplication[];
|
|
1747
1745
|
/** Information to aid in pagination. */
|
|
1748
1746
|
pageInfo: PageInfo;
|
|
1749
1747
|
};
|
|
@@ -1783,7 +1781,7 @@ type DiscountApplicationTargetType =
|
|
|
1783
1781
|
/** Represents an error in the input of a mutation. */
|
|
1784
1782
|
type DisplayableError = {
|
|
1785
1783
|
/** The path to the input field that caused the error. */
|
|
1786
|
-
field?: Maybe<
|
|
1784
|
+
field?: Maybe<Scalars['String'][]>;
|
|
1787
1785
|
/** The error message. */
|
|
1788
1786
|
message: Scalars['String'];
|
|
1789
1787
|
};
|
|
@@ -1805,7 +1803,7 @@ type Filter = {
|
|
|
1805
1803
|
/** An enumeration that denotes the type of data this filter represents. */
|
|
1806
1804
|
type: FilterType;
|
|
1807
1805
|
/** The list of values for this filter. */
|
|
1808
|
-
values:
|
|
1806
|
+
values: FilterValue[];
|
|
1809
1807
|
};
|
|
1810
1808
|
/**
|
|
1811
1809
|
* The type of data that the filter group represents.
|
|
@@ -1848,7 +1846,7 @@ type Fulfillment = {
|
|
|
1848
1846
|
* such as the tracking number and tracking URL.
|
|
1849
1847
|
*
|
|
1850
1848
|
*/
|
|
1851
|
-
trackingInfo:
|
|
1849
|
+
trackingInfo: FulfillmentTrackingInfo[];
|
|
1852
1850
|
};
|
|
1853
1851
|
/** Represents a single line item in a fulfillment. There is at most one fulfillment line item for each order line item. */
|
|
1854
1852
|
type FulfillmentLineItem = {
|
|
@@ -1863,9 +1861,9 @@ type FulfillmentLineItem = {
|
|
|
1863
1861
|
*/
|
|
1864
1862
|
type FulfillmentLineItemConnection = {
|
|
1865
1863
|
/** A list of edges. */
|
|
1866
|
-
edges:
|
|
1864
|
+
edges: FulfillmentLineItemEdge[];
|
|
1867
1865
|
/** A list of the nodes contained in FulfillmentLineItemEdge. */
|
|
1868
|
-
nodes:
|
|
1866
|
+
nodes: FulfillmentLineItem[];
|
|
1869
1867
|
/** Information to aid in pagination. */
|
|
1870
1868
|
pageInfo: PageInfo;
|
|
1871
1869
|
};
|
|
@@ -1909,7 +1907,7 @@ type HasMetafields = {
|
|
|
1909
1907
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
1910
1908
|
*
|
|
1911
1909
|
*/
|
|
1912
|
-
metafields:
|
|
1910
|
+
metafields: Maybe<Metafield>[];
|
|
1913
1911
|
};
|
|
1914
1912
|
/** Represents an image resource. */
|
|
1915
1913
|
type Image = {
|
|
@@ -1961,9 +1959,9 @@ type Image = {
|
|
|
1961
1959
|
*/
|
|
1962
1960
|
type ImageConnection = {
|
|
1963
1961
|
/** A list of edges. */
|
|
1964
|
-
edges:
|
|
1962
|
+
edges: ImageEdge[];
|
|
1965
1963
|
/** A list of the nodes contained in ImageEdge. */
|
|
1966
|
-
nodes:
|
|
1964
|
+
nodes: Image[];
|
|
1967
1965
|
/** Information to aid in pagination. */
|
|
1968
1966
|
pageInfo: PageInfo;
|
|
1969
1967
|
};
|
|
@@ -2287,7 +2285,7 @@ type LocationAddress = {
|
|
|
2287
2285
|
/** The country code of the location. */
|
|
2288
2286
|
countryCode?: Maybe<Scalars['String']>;
|
|
2289
2287
|
/** A formatted version of the address for the location. */
|
|
2290
|
-
formatted:
|
|
2288
|
+
formatted: Scalars['String'][];
|
|
2291
2289
|
/** The latitude coordinates of the location. */
|
|
2292
2290
|
latitude?: Maybe<Scalars['Float']>;
|
|
2293
2291
|
/** The longitude coordinates of the location. */
|
|
@@ -2346,7 +2344,7 @@ type MailingAddress = Node & {
|
|
|
2346
2344
|
/** The first name of the customer. */
|
|
2347
2345
|
firstName?: Maybe<Scalars['String']>;
|
|
2348
2346
|
/** A formatted version of the address, customized by the provided arguments. */
|
|
2349
|
-
formatted:
|
|
2347
|
+
formatted: Scalars['String'][];
|
|
2350
2348
|
/** A comma-separated list of the values for city, province, and country. */
|
|
2351
2349
|
formattedArea?: Maybe<Scalars['String']>;
|
|
2352
2350
|
/** A globally-unique identifier. */
|
|
@@ -2387,9 +2385,9 @@ type MailingAddress = Node & {
|
|
|
2387
2385
|
*/
|
|
2388
2386
|
type MailingAddressConnection = {
|
|
2389
2387
|
/** A list of edges. */
|
|
2390
|
-
edges:
|
|
2388
|
+
edges: MailingAddressEdge[];
|
|
2391
2389
|
/** A list of the nodes contained in MailingAddressEdge. */
|
|
2392
|
-
nodes:
|
|
2390
|
+
nodes: MailingAddress[];
|
|
2393
2391
|
/** Information to aid in pagination. */
|
|
2394
2392
|
pageInfo: PageInfo;
|
|
2395
2393
|
};
|
|
@@ -2418,9 +2416,9 @@ type Media = {
|
|
|
2418
2416
|
*/
|
|
2419
2417
|
type MediaConnection = {
|
|
2420
2418
|
/** A list of edges. */
|
|
2421
|
-
edges:
|
|
2419
|
+
edges: MediaEdge[];
|
|
2422
2420
|
/** A list of the nodes contained in MediaEdge. */
|
|
2423
|
-
nodes:
|
|
2421
|
+
nodes: Media[];
|
|
2424
2422
|
/** Information to aid in pagination. */
|
|
2425
2423
|
pageInfo: PageInfo;
|
|
2426
2424
|
};
|
|
@@ -2563,7 +2561,7 @@ type Order = HasMetafields & Node & {
|
|
|
2563
2561
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
2564
2562
|
*
|
|
2565
2563
|
*/
|
|
2566
|
-
metafields:
|
|
2564
|
+
metafields: Maybe<Metafield>[];
|
|
2567
2565
|
/**
|
|
2568
2566
|
* Unique identifier for the order that appears on the order.
|
|
2569
2567
|
* For example, _#1000_ or _Store1001.
|
|
@@ -2591,7 +2589,7 @@ type Order = HasMetafields & Node & {
|
|
|
2591
2589
|
* The discounts that have been allocated onto the shipping line by discount applications.
|
|
2592
2590
|
*
|
|
2593
2591
|
*/
|
|
2594
|
-
shippingDiscountAllocations:
|
|
2592
|
+
shippingDiscountAllocations: DiscountAllocation[];
|
|
2595
2593
|
/** The unique URL for the order's status page. */
|
|
2596
2594
|
statusUrl: Scalars['URL'];
|
|
2597
2595
|
/**
|
|
@@ -2602,7 +2600,7 @@ type Order = HasMetafields & Node & {
|
|
|
2602
2600
|
/** Price of the order before duties, shipping and taxes. */
|
|
2603
2601
|
subtotalPriceV2?: Maybe<MoneyV2>;
|
|
2604
2602
|
/** List of the order’s successful fulfillments. */
|
|
2605
|
-
successfulFulfillments?: Maybe<
|
|
2603
|
+
successfulFulfillments?: Maybe<Fulfillment[]>;
|
|
2606
2604
|
/**
|
|
2607
2605
|
* The sum of all the prices of all the items in the order, taxes and discounts included (must be positive).
|
|
2608
2606
|
* @deprecated Use `totalPriceV2` instead
|
|
@@ -2650,9 +2648,9 @@ type OrderCancelReason =
|
|
|
2650
2648
|
*/
|
|
2651
2649
|
type OrderConnection = {
|
|
2652
2650
|
/** A list of edges. */
|
|
2653
|
-
edges:
|
|
2651
|
+
edges: OrderEdge[];
|
|
2654
2652
|
/** A list of the nodes contained in OrderEdge. */
|
|
2655
|
-
nodes:
|
|
2653
|
+
nodes: Order[];
|
|
2656
2654
|
/** Information to aid in pagination. */
|
|
2657
2655
|
pageInfo: PageInfo;
|
|
2658
2656
|
};
|
|
@@ -2707,9 +2705,9 @@ type OrderLineItem = {
|
|
|
2707
2705
|
/** The number of entries associated to the line item minus the items that have been removed. */
|
|
2708
2706
|
currentQuantity: Scalars['Int'];
|
|
2709
2707
|
/** List of custom attributes associated to the line item. */
|
|
2710
|
-
customAttributes:
|
|
2708
|
+
customAttributes: Attribute[];
|
|
2711
2709
|
/** The discounts that have been allocated onto the order line item by discount applications. */
|
|
2712
|
-
discountAllocations:
|
|
2710
|
+
discountAllocations: DiscountAllocation[];
|
|
2713
2711
|
/** The total price of the line item, including discounts, and displayed in the presentment currency. */
|
|
2714
2712
|
discountedTotalPrice: MoneyV2;
|
|
2715
2713
|
/** The total price of the line item, not including any discounts. The total price is calculated using the original unit price multiplied by the quantity, and it is displayed in the presentment currency. */
|
|
@@ -2727,9 +2725,9 @@ type OrderLineItem = {
|
|
|
2727
2725
|
*/
|
|
2728
2726
|
type OrderLineItemConnection = {
|
|
2729
2727
|
/** A list of edges. */
|
|
2730
|
-
edges:
|
|
2728
|
+
edges: OrderLineItemEdge[];
|
|
2731
2729
|
/** A list of the nodes contained in OrderLineItemEdge. */
|
|
2732
|
-
nodes:
|
|
2730
|
+
nodes: OrderLineItem[];
|
|
2733
2731
|
/** Information to aid in pagination. */
|
|
2734
2732
|
pageInfo: PageInfo;
|
|
2735
2733
|
};
|
|
@@ -2761,7 +2759,7 @@ type Page = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
2761
2759
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
2762
2760
|
*
|
|
2763
2761
|
*/
|
|
2764
|
-
metafields:
|
|
2762
|
+
metafields: Maybe<Metafield>[];
|
|
2765
2763
|
/** The URL used for viewing the resource on the shop's Online Store. Returns `null` if the resource is currently not published to the Online Store sales channel. */
|
|
2766
2764
|
onlineStoreUrl?: Maybe<Scalars['URL']>;
|
|
2767
2765
|
/** The page's SEO information. */
|
|
@@ -2789,7 +2787,7 @@ type PageInfo = {
|
|
|
2789
2787
|
/** Settings related to payments. */
|
|
2790
2788
|
type PaymentSettings = {
|
|
2791
2789
|
/** List of the card brands which the shop accepts. */
|
|
2792
|
-
acceptedCardBrands:
|
|
2790
|
+
acceptedCardBrands: CardBrand[];
|
|
2793
2791
|
/** The url pointing to the endpoint to vault credit cards. */
|
|
2794
2792
|
cardVaultUrl: Scalars['URL'];
|
|
2795
2793
|
/** The country where the shop is located. */
|
|
@@ -2797,11 +2795,11 @@ type PaymentSettings = {
|
|
|
2797
2795
|
/** The three-letter code for the shop's primary currency. */
|
|
2798
2796
|
currencyCode: CurrencyCode;
|
|
2799
2797
|
/** A list of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify admin. */
|
|
2800
|
-
enabledPresentmentCurrencies:
|
|
2798
|
+
enabledPresentmentCurrencies: CurrencyCode[];
|
|
2801
2799
|
/** The shop’s Shopify Payments account id. */
|
|
2802
2800
|
shopifyPaymentsAccountId?: Maybe<Scalars['String']>;
|
|
2803
2801
|
/** List of the digital wallets which the shop supports. */
|
|
2804
|
-
supportedDigitalWallets:
|
|
2802
|
+
supportedDigitalWallets: DigitalWallet[];
|
|
2805
2803
|
};
|
|
2806
2804
|
/** The value of the percentage pricing object. */
|
|
2807
2805
|
type PricingPercentageValue = {
|
|
@@ -2852,11 +2850,11 @@ type Product = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
2852
2850
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
2853
2851
|
*
|
|
2854
2852
|
*/
|
|
2855
|
-
metafields:
|
|
2853
|
+
metafields: Maybe<Metafield>[];
|
|
2856
2854
|
/** The URL used for viewing the resource on the shop's Online Store. Returns `null` if the resource is currently not published to the Online Store sales channel. */
|
|
2857
2855
|
onlineStoreUrl?: Maybe<Scalars['URL']>;
|
|
2858
2856
|
/** List of product options. */
|
|
2859
|
-
options:
|
|
2857
|
+
options: ProductOption[];
|
|
2860
2858
|
/** The price range. */
|
|
2861
2859
|
priceRange: ProductPriceRange;
|
|
2862
2860
|
/** A categorization that a product can be tagged with, commonly used for filtering and searching. */
|
|
@@ -2874,7 +2872,7 @@ type Product = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
2874
2872
|
* Additional access scope required for private apps: unauthenticated_read_product_tags.
|
|
2875
2873
|
*
|
|
2876
2874
|
*/
|
|
2877
|
-
tags:
|
|
2875
|
+
tags: Scalars['String'][];
|
|
2878
2876
|
/** The product’s title. */
|
|
2879
2877
|
title: Scalars['String'];
|
|
2880
2878
|
/** The total quantity of inventory in stock for this Product. */
|
|
@@ -2905,11 +2903,11 @@ type Product = HasMetafields & Node & OnlineStorePublishable & {
|
|
|
2905
2903
|
*/
|
|
2906
2904
|
type ProductConnection = {
|
|
2907
2905
|
/** A list of edges. */
|
|
2908
|
-
edges:
|
|
2906
|
+
edges: ProductEdge[];
|
|
2909
2907
|
/** A list of available filters. */
|
|
2910
|
-
filters:
|
|
2908
|
+
filters: Filter[];
|
|
2911
2909
|
/** A list of the nodes contained in ProductEdge. */
|
|
2912
|
-
nodes:
|
|
2910
|
+
nodes: Product[];
|
|
2913
2911
|
/** Information to aid in pagination. */
|
|
2914
2912
|
pageInfo: PageInfo;
|
|
2915
2913
|
};
|
|
@@ -2935,7 +2933,7 @@ type ProductOption = Node & {
|
|
|
2935
2933
|
/** The product option’s name. */
|
|
2936
2934
|
name: Scalars['String'];
|
|
2937
2935
|
/** The corresponding value to the product option name. */
|
|
2938
|
-
values:
|
|
2936
|
+
values: Scalars['String'][];
|
|
2939
2937
|
};
|
|
2940
2938
|
/** The price range of the product. */
|
|
2941
2939
|
type ProductPriceRange = {
|
|
@@ -2972,7 +2970,7 @@ type ProductVariant = HasMetafields & Node & {
|
|
|
2972
2970
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
2973
2971
|
*
|
|
2974
2972
|
*/
|
|
2975
|
-
metafields:
|
|
2973
|
+
metafields: Maybe<Metafield>[];
|
|
2976
2974
|
/**
|
|
2977
2975
|
* The product variant’s price.
|
|
2978
2976
|
* @deprecated Use `priceV2` instead
|
|
@@ -2987,7 +2985,7 @@ type ProductVariant = HasMetafields & Node & {
|
|
|
2987
2985
|
/** Whether a customer needs to provide a shipping address when placing an order for the product variant. */
|
|
2988
2986
|
requiresShipping: Scalars['Boolean'];
|
|
2989
2987
|
/** List of product options applied to the variant. */
|
|
2990
|
-
selectedOptions:
|
|
2988
|
+
selectedOptions: SelectedOption[];
|
|
2991
2989
|
/** Represents an association between a variant and a selling plan. Selling plan allocations describe which selling plans are available for each variant, and what their impact is on pricing. */
|
|
2992
2990
|
sellingPlanAllocations: SellingPlanAllocationConnection;
|
|
2993
2991
|
/** The SKU (stock keeping unit) associated with the variant. */
|
|
@@ -3011,9 +3009,9 @@ type ProductVariant = HasMetafields & Node & {
|
|
|
3011
3009
|
*/
|
|
3012
3010
|
type ProductVariantConnection = {
|
|
3013
3011
|
/** A list of edges. */
|
|
3014
|
-
edges:
|
|
3012
|
+
edges: ProductVariantEdge[];
|
|
3015
3013
|
/** A list of the nodes contained in ProductVariantEdge. */
|
|
3016
|
-
nodes:
|
|
3014
|
+
nodes: ProductVariant[];
|
|
3017
3015
|
/** Information to aid in pagination. */
|
|
3018
3016
|
pageInfo: PageInfo;
|
|
3019
3017
|
};
|
|
@@ -3056,9 +3054,9 @@ type SellingPlan = {
|
|
|
3056
3054
|
/** The name of the selling plan. For example, '6 weeks of prepaid granola, delivered weekly'. */
|
|
3057
3055
|
name: Scalars['String'];
|
|
3058
3056
|
/** The selling plan options available in the drop-down list in the storefront. For example, 'Delivery every week' or 'Delivery every 2 weeks' specifies the delivery frequency options for the product. Individual selling plans contribute their options to the associated selling plan group. For example, a selling plan group might have an option called `option1: Delivery every`. One selling plan in that group could contribute `option1: 2 weeks` with the pricing for that option, and another selling plan could contribute `option1: 4 weeks`, with different pricing. */
|
|
3059
|
-
options:
|
|
3057
|
+
options: SellingPlanOption[];
|
|
3060
3058
|
/** The price adjustments that a selling plan makes when a variant is purchased with a selling plan. */
|
|
3061
|
-
priceAdjustments:
|
|
3059
|
+
priceAdjustments: SellingPlanPriceAdjustment[];
|
|
3062
3060
|
/** Whether purchasing the selling plan will result in multiple deliveries. */
|
|
3063
3061
|
recurringDeliveries: Scalars['Boolean'];
|
|
3064
3062
|
};
|
|
@@ -3067,7 +3065,7 @@ type SellingPlanAllocation = {
|
|
|
3067
3065
|
/** The checkout charge amount due for the purchase. */
|
|
3068
3066
|
checkoutChargeAmount: MoneyV2;
|
|
3069
3067
|
/** A list of price adjustments, with a maximum of two. When there are two, the first price adjustment goes into effect at the time of purchase, while the second one starts after a certain number of orders. A price adjustment represents how a selling plan affects pricing when a variant is purchased with a selling plan. Prices display in the customer's currency if the shop is configured for it. */
|
|
3070
|
-
priceAdjustments:
|
|
3068
|
+
priceAdjustments: SellingPlanAllocationPriceAdjustment[];
|
|
3071
3069
|
/** The remaining balance charge amount due for the purchase. */
|
|
3072
3070
|
remainingBalanceChargeAmount: MoneyV2;
|
|
3073
3071
|
/** A representation of how products and variants can be sold and purchased. For example, an individual selling plan could be '6 weeks of prepaid granola, delivered weekly'. */
|
|
@@ -3079,9 +3077,9 @@ type SellingPlanAllocation = {
|
|
|
3079
3077
|
*/
|
|
3080
3078
|
type SellingPlanAllocationConnection = {
|
|
3081
3079
|
/** A list of edges. */
|
|
3082
|
-
edges:
|
|
3080
|
+
edges: SellingPlanAllocationEdge[];
|
|
3083
3081
|
/** A list of the nodes contained in SellingPlanAllocationEdge. */
|
|
3084
|
-
nodes:
|
|
3082
|
+
nodes: SellingPlanAllocation[];
|
|
3085
3083
|
/** Information to aid in pagination. */
|
|
3086
3084
|
pageInfo: PageInfo;
|
|
3087
3085
|
};
|
|
@@ -3132,9 +3130,9 @@ type SellingPlanCheckoutChargeValue = MoneyV2 | SellingPlanCheckoutChargePercent
|
|
|
3132
3130
|
*/
|
|
3133
3131
|
type SellingPlanConnection = {
|
|
3134
3132
|
/** A list of edges. */
|
|
3135
|
-
edges:
|
|
3133
|
+
edges: SellingPlanEdge[];
|
|
3136
3134
|
/** A list of the nodes contained in SellingPlanEdge. */
|
|
3137
|
-
nodes:
|
|
3135
|
+
nodes: SellingPlan[];
|
|
3138
3136
|
/** Information to aid in pagination. */
|
|
3139
3137
|
pageInfo: PageInfo;
|
|
3140
3138
|
};
|
|
@@ -3165,7 +3163,7 @@ type SellingPlanGroup = {
|
|
|
3165
3163
|
/** The name of the selling plan group. */
|
|
3166
3164
|
name: Scalars['String'];
|
|
3167
3165
|
/** Represents the selling plan options available in the drop-down list in the storefront. For example, 'Delivery every week' or 'Delivery every 2 weeks' specifies the delivery frequency options for the product. */
|
|
3168
|
-
options:
|
|
3166
|
+
options: SellingPlanGroupOption[];
|
|
3169
3167
|
/** A list of selling plans in a selling plan group. A selling plan is a representation of how products and variants can be sold and purchased. For example, an individual selling plan could be '6 weeks of prepaid granola, delivered weekly'. */
|
|
3170
3168
|
sellingPlans: SellingPlanConnection;
|
|
3171
3169
|
};
|
|
@@ -3175,9 +3173,9 @@ type SellingPlanGroup = {
|
|
|
3175
3173
|
*/
|
|
3176
3174
|
type SellingPlanGroupConnection = {
|
|
3177
3175
|
/** A list of edges. */
|
|
3178
|
-
edges:
|
|
3176
|
+
edges: SellingPlanGroupEdge[];
|
|
3179
3177
|
/** A list of the nodes contained in SellingPlanGroupEdge. */
|
|
3180
|
-
nodes:
|
|
3178
|
+
nodes: SellingPlanGroup[];
|
|
3181
3179
|
/** Information to aid in pagination. */
|
|
3182
3180
|
pageInfo: PageInfo;
|
|
3183
3181
|
};
|
|
@@ -3200,7 +3198,7 @@ type SellingPlanGroupOption = {
|
|
|
3200
3198
|
/** The name of the option. For example, 'Delivery every'. */
|
|
3201
3199
|
name: Scalars['String'];
|
|
3202
3200
|
/** The values for the options specified by the selling plans in the selling plan group. For example, '1 week', '2 weeks', '3 weeks'. */
|
|
3203
|
-
values:
|
|
3201
|
+
values: Scalars['String'][];
|
|
3204
3202
|
};
|
|
3205
3203
|
/** An option provided by a Selling Plan. */
|
|
3206
3204
|
type SellingPlanOption = {
|
|
@@ -3249,7 +3247,7 @@ type Shop = HasMetafields & Node & {
|
|
|
3249
3247
|
* The metafields associated with the resource matching the supplied list of namespaces and keys.
|
|
3250
3248
|
*
|
|
3251
3249
|
*/
|
|
3252
|
-
metafields:
|
|
3250
|
+
metafields: Maybe<Metafield>[];
|
|
3253
3251
|
/** A string representing the way currency is formatted when the currency isn’t specified. */
|
|
3254
3252
|
moneyFormat: Scalars['String'];
|
|
3255
3253
|
/** The shop’s name. */
|
|
@@ -3265,7 +3263,7 @@ type Shop = HasMetafields & Node & {
|
|
|
3265
3263
|
/** The shop’s shipping policy. */
|
|
3266
3264
|
shippingPolicy?: Maybe<ShopPolicy>;
|
|
3267
3265
|
/** Countries that the shop ships to. */
|
|
3268
|
-
shipsToCountries:
|
|
3266
|
+
shipsToCountries: CountryCode[];
|
|
3269
3267
|
/** The shop’s subscription policy. */
|
|
3270
3268
|
subscriptionPolicy?: Maybe<ShopPolicyWithDefault>;
|
|
3271
3269
|
/** The shop’s terms of service. */
|
|
@@ -3321,9 +3319,9 @@ type StoreAvailability = {
|
|
|
3321
3319
|
*/
|
|
3322
3320
|
type StoreAvailabilityConnection = {
|
|
3323
3321
|
/** A list of edges. */
|
|
3324
|
-
edges:
|
|
3322
|
+
edges: StoreAvailabilityEdge[];
|
|
3325
3323
|
/** A list of the nodes contained in StoreAvailabilityEdge. */
|
|
3326
|
-
nodes:
|
|
3324
|
+
nodes: StoreAvailability[];
|
|
3327
3325
|
/** Information to aid in pagination. */
|
|
3328
3326
|
pageInfo: PageInfo;
|
|
3329
3327
|
};
|
|
@@ -3404,7 +3402,7 @@ type Video = Media & Node & {
|
|
|
3404
3402
|
/** The preview image for the media. */
|
|
3405
3403
|
previewImage?: Maybe<Image>;
|
|
3406
3404
|
/** The sources for a video. */
|
|
3407
|
-
sources:
|
|
3405
|
+
sources: VideoSource[];
|
|
3408
3406
|
};
|
|
3409
3407
|
/** Represents a source for a Shopify hosted video. */
|
|
3410
3408
|
type VideoSource = {
|