@daffodil/driver 0.90.0 → 0.92.3-rc.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,6 @@
1
- import * as i1 from 'apollo-angular';
1
+ import { faker } from '@faker-js/faker/locale/en_US';
2
2
  import { gql, provideNamedApollo } from 'apollo-angular';
3
- import * as i0 from '@angular/core';
4
- import { Injectable, inject, InjectionToken } from '@angular/core';
3
+ import { inject, InjectionToken } from '@angular/core';
5
4
  import { InMemoryCache, from } from '@apollo/client/core';
6
5
  import { setContext } from '@apollo/client/link/context';
7
6
  import { onError } from '@apollo/client/link/error';
@@ -9,276 +8,231 @@ import { HttpHeaders } from '@angular/common/http';
9
8
  import { HttpLink } from 'apollo-angular/http';
10
9
 
11
10
  /** The set of valid sort keys for the Article query. */
12
- var ArticleSortKeys;
13
- (function (ArticleSortKeys) {
11
+ var ShopifyArticleSortKeys;
12
+ (function (ShopifyArticleSortKeys) {
14
13
  /** Sort by the `author` value. */
15
- ArticleSortKeys["Author"] = "AUTHOR";
14
+ ShopifyArticleSortKeys["Author"] = "AUTHOR";
16
15
  /** Sort by the `blog_title` value. */
17
- ArticleSortKeys["BlogTitle"] = "BLOG_TITLE";
16
+ ShopifyArticleSortKeys["BlogTitle"] = "BLOG_TITLE";
18
17
  /** Sort by the `id` value. */
19
- ArticleSortKeys["Id"] = "ID";
18
+ ShopifyArticleSortKeys["Id"] = "ID";
20
19
  /** Sort by the `published_at` value. */
21
- ArticleSortKeys["PublishedAt"] = "PUBLISHED_AT";
20
+ ShopifyArticleSortKeys["PublishedAt"] = "PUBLISHED_AT";
22
21
  /**
23
22
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
24
23
  * Don't use this sort key when no search query is specified.
25
24
  *
26
25
  */
27
- ArticleSortKeys["Relevance"] = "RELEVANCE";
26
+ ShopifyArticleSortKeys["Relevance"] = "RELEVANCE";
28
27
  /** Sort by the `title` value. */
29
- ArticleSortKeys["Title"] = "TITLE";
28
+ ShopifyArticleSortKeys["Title"] = "TITLE";
30
29
  /** Sort by the `updated_at` value. */
31
- ArticleSortKeys["UpdatedAt"] = "UPDATED_AT";
32
- })(ArticleSortKeys || (ArticleSortKeys = {}));
30
+ ShopifyArticleSortKeys["UpdatedAt"] = "UPDATED_AT";
31
+ })(ShopifyArticleSortKeys || (ShopifyArticleSortKeys = {}));
33
32
  /** The set of valid sort keys for the Blog query. */
34
- var BlogSortKeys;
35
- (function (BlogSortKeys) {
33
+ var ShopifyBlogSortKeys;
34
+ (function (ShopifyBlogSortKeys) {
36
35
  /** Sort by the `handle` value. */
37
- BlogSortKeys["Handle"] = "HANDLE";
36
+ ShopifyBlogSortKeys["Handle"] = "HANDLE";
38
37
  /** Sort by the `id` value. */
39
- BlogSortKeys["Id"] = "ID";
38
+ ShopifyBlogSortKeys["Id"] = "ID";
40
39
  /**
41
40
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
42
41
  * Don't use this sort key when no search query is specified.
43
42
  *
44
43
  */
45
- BlogSortKeys["Relevance"] = "RELEVANCE";
44
+ ShopifyBlogSortKeys["Relevance"] = "RELEVANCE";
46
45
  /** Sort by the `title` value. */
47
- BlogSortKeys["Title"] = "TITLE";
48
- })(BlogSortKeys || (BlogSortKeys = {}));
46
+ ShopifyBlogSortKeys["Title"] = "TITLE";
47
+ })(ShopifyBlogSortKeys || (ShopifyBlogSortKeys = {}));
49
48
  /** Card brand, such as Visa or Mastercard, which can be used for payments. */
50
- var CardBrand;
51
- (function (CardBrand) {
49
+ var ShopifyCardBrand;
50
+ (function (ShopifyCardBrand) {
52
51
  /** American Express. */
53
- CardBrand["AmericanExpress"] = "AMERICAN_EXPRESS";
52
+ ShopifyCardBrand["AmericanExpress"] = "AMERICAN_EXPRESS";
54
53
  /** Diners Club. */
55
- CardBrand["DinersClub"] = "DINERS_CLUB";
54
+ ShopifyCardBrand["DinersClub"] = "DINERS_CLUB";
56
55
  /** Discover. */
57
- CardBrand["Discover"] = "DISCOVER";
56
+ ShopifyCardBrand["Discover"] = "DISCOVER";
58
57
  /** JCB. */
59
- CardBrand["Jcb"] = "JCB";
58
+ ShopifyCardBrand["Jcb"] = "JCB";
60
59
  /** Mastercard. */
61
- CardBrand["Mastercard"] = "MASTERCARD";
60
+ ShopifyCardBrand["Mastercard"] = "MASTERCARD";
62
61
  /** Visa. */
63
- CardBrand["Visa"] = "VISA";
64
- })(CardBrand || (CardBrand = {}));
62
+ ShopifyCardBrand["Visa"] = "VISA";
63
+ })(ShopifyCardBrand || (ShopifyCardBrand = {}));
65
64
  /**
66
65
  * Represents how credit card details are provided for a direct payment.
67
66
  *
68
67
  */
69
- var CartCardSource;
70
- (function (CartCardSource) {
68
+ var ShopifyCartCardSource;
69
+ (function (ShopifyCartCardSource) {
71
70
  /**
72
71
  * The credit card was provided by a third party and vaulted on their system.
73
72
  * Using this value requires a separate permission from Shopify.
74
73
  *
75
74
  */
76
- CartCardSource["SavedCreditCard"] = "SAVED_CREDIT_CARD";
77
- })(CartCardSource || (CartCardSource = {}));
75
+ ShopifyCartCardSource["SavedCreditCard"] = "SAVED_CREDIT_CARD";
76
+ })(ShopifyCartCardSource || (ShopifyCartCardSource = {}));
78
77
  /**
79
78
  * Defines what type of merchandise is in the delivery group.
80
79
  *
81
80
  */
82
- var CartDeliveryGroupType;
83
- (function (CartDeliveryGroupType) {
81
+ var ShopifyCartDeliveryGroupType;
82
+ (function (ShopifyCartDeliveryGroupType) {
84
83
  /**
85
84
  * The delivery group only contains merchandise that is either a one time purchase or a first delivery of
86
85
  * subscription merchandise.
87
86
  *
88
87
  */
89
- CartDeliveryGroupType["OneTimePurchase"] = "ONE_TIME_PURCHASE";
88
+ ShopifyCartDeliveryGroupType["OneTimePurchase"] = "ONE_TIME_PURCHASE";
90
89
  /** The delivery group only contains subscription merchandise. */
91
- CartDeliveryGroupType["Subscription"] = "SUBSCRIPTION";
92
- })(CartDeliveryGroupType || (CartDeliveryGroupType = {}));
93
- /** Possible error codes that can be returned by `CartUserError`. */
94
- var CartErrorCode;
95
- (function (CartErrorCode) {
90
+ ShopifyCartDeliveryGroupType["Subscription"] = "SUBSCRIPTION";
91
+ })(ShopifyCartDeliveryGroupType || (ShopifyCartDeliveryGroupType = {}));
92
+ /**
93
+ * Error codes returned by [`CartUserError`](https://shopify.dev/docs/api/storefront/current/objects/CartUserError) during cart mutations. Covers validation failures for addresses, quantities, delivery options, merchandise lines, discount codes, and metafields.
94
+ *
95
+ */
96
+ var ShopifyCartErrorCode;
97
+ (function (ShopifyCartErrorCode) {
96
98
  /** The specified address field contains emojis. */
97
- CartErrorCode["AddressFieldContainsEmojis"] = "ADDRESS_FIELD_CONTAINS_EMOJIS";
99
+ ShopifyCartErrorCode["AddressFieldContainsEmojis"] = "ADDRESS_FIELD_CONTAINS_EMOJIS";
98
100
  /** The specified address field contains HTML tags. */
99
- CartErrorCode["AddressFieldContainsHtmlTags"] = "ADDRESS_FIELD_CONTAINS_HTML_TAGS";
101
+ ShopifyCartErrorCode["AddressFieldContainsHtmlTags"] = "ADDRESS_FIELD_CONTAINS_HTML_TAGS";
100
102
  /** The specified address field contains a URL. */
101
- CartErrorCode["AddressFieldContainsUrl"] = "ADDRESS_FIELD_CONTAINS_URL";
103
+ ShopifyCartErrorCode["AddressFieldContainsUrl"] = "ADDRESS_FIELD_CONTAINS_URL";
102
104
  /** The specified address field does not match the expected pattern. */
103
- CartErrorCode["AddressFieldDoesNotMatchExpectedPattern"] = "ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN";
105
+ ShopifyCartErrorCode["AddressFieldDoesNotMatchExpectedPattern"] = "ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN";
104
106
  /** The specified address field is required. */
105
- CartErrorCode["AddressFieldIsRequired"] = "ADDRESS_FIELD_IS_REQUIRED";
107
+ ShopifyCartErrorCode["AddressFieldIsRequired"] = "ADDRESS_FIELD_IS_REQUIRED";
106
108
  /** The specified address field is too long. */
107
- CartErrorCode["AddressFieldIsTooLong"] = "ADDRESS_FIELD_IS_TOO_LONG";
109
+ ShopifyCartErrorCode["AddressFieldIsTooLong"] = "ADDRESS_FIELD_IS_TOO_LONG";
108
110
  /** The input value is invalid. */
109
- CartErrorCode["Invalid"] = "INVALID";
111
+ ShopifyCartErrorCode["Invalid"] = "INVALID";
110
112
  /** Company location not found or not allowed. */
111
- CartErrorCode["InvalidCompanyLocation"] = "INVALID_COMPANY_LOCATION";
113
+ ShopifyCartErrorCode["InvalidCompanyLocation"] = "INVALID_COMPANY_LOCATION";
114
+ /** The delivery address was not found. */
115
+ ShopifyCartErrorCode["InvalidDeliveryAddressId"] = "INVALID_DELIVERY_ADDRESS_ID";
112
116
  /** Delivery group was not found in cart. */
113
- CartErrorCode["InvalidDeliveryGroup"] = "INVALID_DELIVERY_GROUP";
117
+ ShopifyCartErrorCode["InvalidDeliveryGroup"] = "INVALID_DELIVERY_GROUP";
114
118
  /** Delivery option was not valid. */
115
- CartErrorCode["InvalidDeliveryOption"] = "INVALID_DELIVERY_OPTION";
119
+ ShopifyCartErrorCode["InvalidDeliveryOption"] = "INVALID_DELIVERY_OPTION";
116
120
  /** The quantity must be a multiple of the specified increment. */
117
- CartErrorCode["InvalidIncrement"] = "INVALID_INCREMENT";
121
+ ShopifyCartErrorCode["InvalidIncrement"] = "INVALID_INCREMENT";
118
122
  /** Merchandise line was not found in cart. */
119
- CartErrorCode["InvalidMerchandiseLine"] = "INVALID_MERCHANDISE_LINE";
123
+ ShopifyCartErrorCode["InvalidMerchandiseLine"] = "INVALID_MERCHANDISE_LINE";
120
124
  /** The metafields were not valid. */
121
- CartErrorCode["InvalidMetafields"] = "INVALID_METAFIELDS";
125
+ ShopifyCartErrorCode["InvalidMetafields"] = "INVALID_METAFIELDS";
122
126
  /** The payment wasn't valid. */
123
- CartErrorCode["InvalidPayment"] = "INVALID_PAYMENT";
127
+ ShopifyCartErrorCode["InvalidPayment"] = "INVALID_PAYMENT";
124
128
  /** Cannot update payment on an empty cart */
125
- CartErrorCode["InvalidPaymentEmptyCart"] = "INVALID_PAYMENT_EMPTY_CART";
129
+ ShopifyCartErrorCode["InvalidPaymentEmptyCart"] = "INVALID_PAYMENT_EMPTY_CART";
126
130
  /** The given zip code is invalid for the provided country. */
127
- CartErrorCode["InvalidZipCodeForCountry"] = "INVALID_ZIP_CODE_FOR_COUNTRY";
131
+ ShopifyCartErrorCode["InvalidZipCodeForCountry"] = "INVALID_ZIP_CODE_FOR_COUNTRY";
128
132
  /** The given zip code is invalid for the provided province. */
129
- CartErrorCode["InvalidZipCodeForProvince"] = "INVALID_ZIP_CODE_FOR_PROVINCE";
133
+ ShopifyCartErrorCode["InvalidZipCodeForProvince"] = "INVALID_ZIP_CODE_FOR_PROVINCE";
130
134
  /** The input value should be less than the maximum value allowed. */
131
- CartErrorCode["LessThan"] = "LESS_THAN";
135
+ ShopifyCartErrorCode["LessThan"] = "LESS_THAN";
132
136
  /** The quantity must be below the specified maximum for the item. */
133
- CartErrorCode["MaximumExceeded"] = "MAXIMUM_EXCEEDED";
137
+ ShopifyCartErrorCode["MaximumExceeded"] = "MAXIMUM_EXCEEDED";
134
138
  /** The quantity must be above the specified minimum for the item. */
135
- CartErrorCode["MinimumNotMet"] = "MINIMUM_NOT_MET";
139
+ ShopifyCartErrorCode["MinimumNotMet"] = "MINIMUM_NOT_MET";
136
140
  /** The customer access token is required when setting a company location. */
137
- CartErrorCode["MissingCustomerAccessToken"] = "MISSING_CUSTOMER_ACCESS_TOKEN";
141
+ ShopifyCartErrorCode["MissingCustomerAccessToken"] = "MISSING_CUSTOMER_ACCESS_TOKEN";
138
142
  /** Missing discount code. */
139
- CartErrorCode["MissingDiscountCode"] = "MISSING_DISCOUNT_CODE";
143
+ ShopifyCartErrorCode["MissingDiscountCode"] = "MISSING_DISCOUNT_CODE";
140
144
  /** Missing note. */
141
- CartErrorCode["MissingNote"] = "MISSING_NOTE";
145
+ ShopifyCartErrorCode["MissingNote"] = "MISSING_NOTE";
146
+ /** The note length must be below the specified maximum. */
147
+ ShopifyCartErrorCode["NoteTooLong"] = "NOTE_TOO_LONG";
148
+ /** Only one delivery address can be selected. */
149
+ ShopifyCartErrorCode["OnlyOneDeliveryAddressCanBeSelected"] = "ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED";
150
+ /** Credit card has expired. */
151
+ ShopifyCartErrorCode["PaymentsCreditCardBaseExpired"] = "PAYMENTS_CREDIT_CARD_BASE_EXPIRED";
152
+ /** Credit card gateway is not supported. */
153
+ ShopifyCartErrorCode["PaymentsCreditCardBaseGatewayNotSupported"] = "PAYMENTS_CREDIT_CARD_BASE_GATEWAY_NOT_SUPPORTED";
154
+ /** Credit card error. */
155
+ ShopifyCartErrorCode["PaymentsCreditCardGeneric"] = "PAYMENTS_CREDIT_CARD_GENERIC";
156
+ /** Credit card month is invalid. */
157
+ ShopifyCartErrorCode["PaymentsCreditCardMonthInclusion"] = "PAYMENTS_CREDIT_CARD_MONTH_INCLUSION";
158
+ /** Credit card number is invalid. */
159
+ ShopifyCartErrorCode["PaymentsCreditCardNumberInvalid"] = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID";
160
+ /** Credit card number format is invalid. */
161
+ ShopifyCartErrorCode["PaymentsCreditCardNumberInvalidFormat"] = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID_FORMAT";
162
+ /** Credit card verification value is blank. */
163
+ ShopifyCartErrorCode["PaymentsCreditCardVerificationValueBlank"] = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_BLANK";
164
+ /** Credit card verification value is invalid for card type. */
165
+ ShopifyCartErrorCode["PaymentsCreditCardVerificationValueInvalidForCardType"] = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_INVALID_FOR_CARD_TYPE";
166
+ /** Credit card has expired. */
167
+ ShopifyCartErrorCode["PaymentsCreditCardYearExpired"] = "PAYMENTS_CREDIT_CARD_YEAR_EXPIRED";
168
+ /** Credit card expiry year is invalid. */
169
+ ShopifyCartErrorCode["PaymentsCreditCardYearInvalidExpiryYear"] = "PAYMENTS_CREDIT_CARD_YEAR_INVALID_EXPIRY_YEAR";
142
170
  /** The payment method is not supported. */
143
- CartErrorCode["PaymentMethodNotSupported"] = "PAYMENT_METHOD_NOT_SUPPORTED";
171
+ ShopifyCartErrorCode["PaymentMethodNotSupported"] = "PAYMENT_METHOD_NOT_SUPPORTED";
144
172
  /** The given province cannot be found. */
145
- CartErrorCode["ProvinceNotFound"] = "PROVINCE_NOT_FOUND";
173
+ ShopifyCartErrorCode["ProvinceNotFound"] = "PROVINCE_NOT_FOUND";
174
+ /** Too many delivery addresses on Cart. */
175
+ ShopifyCartErrorCode["TooManyDeliveryAddresses"] = "TOO_MANY_DELIVERY_ADDRESSES";
146
176
  /** A general error occurred during address validation. */
147
- CartErrorCode["UnspecifiedAddressError"] = "UNSPECIFIED_ADDRESS_ERROR";
177
+ ShopifyCartErrorCode["UnspecifiedAddressError"] = "UNSPECIFIED_ADDRESS_ERROR";
148
178
  /** Validation failed. */
149
- CartErrorCode["ValidationCustom"] = "VALIDATION_CUSTOM";
179
+ ShopifyCartErrorCode["ValidationCustom"] = "VALIDATION_CUSTOM";
150
180
  /** The given zip code is unsupported. */
151
- CartErrorCode["ZipCodeNotSupported"] = "ZIP_CODE_NOT_SUPPORTED";
152
- })(CartErrorCode || (CartErrorCode = {}));
153
- /** Possible error codes that can be returned by `CheckoutUserError`. */
154
- var CheckoutErrorCode;
155
- (function (CheckoutErrorCode) {
156
- /** Checkout is already completed. */
157
- CheckoutErrorCode["AlreadyCompleted"] = "ALREADY_COMPLETED";
158
- /** Input email contains an invalid domain name. */
159
- CheckoutErrorCode["BadDomain"] = "BAD_DOMAIN";
160
- /** The input value is blank. */
161
- CheckoutErrorCode["Blank"] = "BLANK";
162
- /** Cart does not meet discount requirements notice. */
163
- CheckoutErrorCode["CartDoesNotMeetDiscountRequirementsNotice"] = "CART_DOES_NOT_MEET_DISCOUNT_REQUIREMENTS_NOTICE";
164
- /** Customer already used once per customer discount notice. */
165
- CheckoutErrorCode["CustomerAlreadyUsedOncePerCustomerDiscountNotice"] = "CUSTOMER_ALREADY_USED_ONCE_PER_CUSTOMER_DISCOUNT_NOTICE";
166
- /** Discount already applied. */
167
- CheckoutErrorCode["DiscountAlreadyApplied"] = "DISCOUNT_ALREADY_APPLIED";
168
- /** Discount code isn't working right now. Please contact us for help. */
169
- CheckoutErrorCode["DiscountCodeApplicationFailed"] = "DISCOUNT_CODE_APPLICATION_FAILED";
170
- /** Discount disabled. */
171
- CheckoutErrorCode["DiscountDisabled"] = "DISCOUNT_DISABLED";
172
- /** Discount expired. */
173
- CheckoutErrorCode["DiscountExpired"] = "DISCOUNT_EXPIRED";
174
- /** Discount limit reached. */
175
- CheckoutErrorCode["DiscountLimitReached"] = "DISCOUNT_LIMIT_REACHED";
176
- /** Discount not found. */
177
- CheckoutErrorCode["DiscountNotFound"] = "DISCOUNT_NOT_FOUND";
178
- /** Checkout is already completed. */
179
- CheckoutErrorCode["Empty"] = "EMPTY";
180
- /** Queue token has expired. */
181
- CheckoutErrorCode["ExpiredQueueToken"] = "EXPIRED_QUEUE_TOKEN";
182
- /** Gift card has already been applied. */
183
- CheckoutErrorCode["GiftCardAlreadyApplied"] = "GIFT_CARD_ALREADY_APPLIED";
184
- /** Gift card code is invalid. */
185
- CheckoutErrorCode["GiftCardCodeInvalid"] = "GIFT_CARD_CODE_INVALID";
186
- /** Gift card currency does not match checkout currency. */
187
- CheckoutErrorCode["GiftCardCurrencyMismatch"] = "GIFT_CARD_CURRENCY_MISMATCH";
188
- /** Gift card has no funds left. */
189
- CheckoutErrorCode["GiftCardDepleted"] = "GIFT_CARD_DEPLETED";
190
- /** Gift card is disabled. */
191
- CheckoutErrorCode["GiftCardDisabled"] = "GIFT_CARD_DISABLED";
192
- /** Gift card is expired. */
193
- CheckoutErrorCode["GiftCardExpired"] = "GIFT_CARD_EXPIRED";
194
- /** Gift card was not found. */
195
- CheckoutErrorCode["GiftCardNotFound"] = "GIFT_CARD_NOT_FOUND";
196
- /** Gift card cannot be applied to a checkout that contains a gift card. */
197
- CheckoutErrorCode["GiftCardUnusable"] = "GIFT_CARD_UNUSABLE";
198
- /** The input value should be greater than or equal to the minimum value allowed. */
199
- CheckoutErrorCode["GreaterThanOrEqualTo"] = "GREATER_THAN_OR_EQUAL_TO";
200
- /** Higher value discount applied. */
201
- CheckoutErrorCode["HigherValueDiscountApplied"] = "HIGHER_VALUE_DISCOUNT_APPLIED";
202
- /** The input value is invalid. */
203
- CheckoutErrorCode["Invalid"] = "INVALID";
204
- /** Cannot specify country and presentment currency code. */
205
- CheckoutErrorCode["InvalidCountryAndCurrency"] = "INVALID_COUNTRY_AND_CURRENCY";
206
- /** Input Zip is invalid for country provided. */
207
- CheckoutErrorCode["InvalidForCountry"] = "INVALID_FOR_COUNTRY";
208
- /** Input Zip is invalid for country and province provided. */
209
- CheckoutErrorCode["InvalidForCountryAndProvince"] = "INVALID_FOR_COUNTRY_AND_PROVINCE";
210
- /** Invalid province in country. */
211
- CheckoutErrorCode["InvalidProvinceInCountry"] = "INVALID_PROVINCE_IN_COUNTRY";
212
- /** Queue token is invalid. */
213
- CheckoutErrorCode["InvalidQueueToken"] = "INVALID_QUEUE_TOKEN";
214
- /** Invalid region in country. */
215
- CheckoutErrorCode["InvalidRegionInCountry"] = "INVALID_REGION_IN_COUNTRY";
216
- /** Invalid state in country. */
217
- CheckoutErrorCode["InvalidStateInCountry"] = "INVALID_STATE_IN_COUNTRY";
218
- /** The input value should be less than the maximum value allowed. */
219
- CheckoutErrorCode["LessThan"] = "LESS_THAN";
220
- /** The input value should be less than or equal to the maximum value allowed. */
221
- CheckoutErrorCode["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
222
- /** Line item was not found in checkout. */
223
- CheckoutErrorCode["LineItemNotFound"] = "LINE_ITEM_NOT_FOUND";
224
- /** Checkout is locked. */
225
- CheckoutErrorCode["Locked"] = "LOCKED";
226
- /** Maximum number of discount codes limit reached. */
227
- CheckoutErrorCode["MaximumDiscountCodeLimitReached"] = "MAXIMUM_DISCOUNT_CODE_LIMIT_REACHED";
228
- /** Missing payment input. */
229
- CheckoutErrorCode["MissingPaymentInput"] = "MISSING_PAYMENT_INPUT";
230
- /** Not enough in stock. */
231
- CheckoutErrorCode["NotEnoughInStock"] = "NOT_ENOUGH_IN_STOCK";
232
- /** Input value is not supported. */
233
- CheckoutErrorCode["NotSupported"] = "NOT_SUPPORTED";
234
- /** The input value needs to be blank. */
235
- CheckoutErrorCode["Present"] = "PRESENT";
236
- /** Product is not published for this customer. */
237
- CheckoutErrorCode["ProductNotAvailable"] = "PRODUCT_NOT_AVAILABLE";
238
- /** Shipping rate expired. */
239
- CheckoutErrorCode["ShippingRateExpired"] = "SHIPPING_RATE_EXPIRED";
240
- /** Throttled during checkout. */
241
- CheckoutErrorCode["ThrottledDuringCheckout"] = "THROTTLED_DURING_CHECKOUT";
242
- /** The input value is too long. */
243
- CheckoutErrorCode["TooLong"] = "TOO_LONG";
244
- /** The amount of the payment does not match the value to be paid. */
245
- CheckoutErrorCode["TotalPriceMismatch"] = "TOTAL_PRICE_MISMATCH";
246
- /** Unable to apply discount. */
247
- CheckoutErrorCode["UnableToApply"] = "UNABLE_TO_APPLY";
248
- })(CheckoutErrorCode || (CheckoutErrorCode = {}));
181
+ ShopifyCartErrorCode["ZipCodeNotSupported"] = "ZIP_CODE_NOT_SUPPORTED";
182
+ })(ShopifyCartErrorCode || (ShopifyCartErrorCode = {}));
183
+ /** The code for the cart warning. */
184
+ var ShopifyCartWarningCode;
185
+ (function (ShopifyCartWarningCode) {
186
+ /** A delivery address with the same details already exists on this cart. */
187
+ ShopifyCartWarningCode["DuplicateDeliveryAddress"] = "DUPLICATE_DELIVERY_ADDRESS";
188
+ /** The merchandise does not have enough stock. */
189
+ ShopifyCartWarningCode["MerchandiseNotEnoughStock"] = "MERCHANDISE_NOT_ENOUGH_STOCK";
190
+ /** The merchandise is out of stock. */
191
+ ShopifyCartWarningCode["MerchandiseOutOfStock"] = "MERCHANDISE_OUT_OF_STOCK";
192
+ /** Gift cards are not available as a payment method. */
193
+ ShopifyCartWarningCode["PaymentsGiftCardsUnavailable"] = "PAYMENTS_GIFT_CARDS_UNAVAILABLE";
194
+ })(ShopifyCartWarningCode || (ShopifyCartWarningCode = {}));
249
195
  /** The set of valid sort keys for the Collection query. */
250
- var CollectionSortKeys;
251
- (function (CollectionSortKeys) {
196
+ var ShopifyCollectionSortKeys;
197
+ (function (ShopifyCollectionSortKeys) {
252
198
  /** Sort by the `id` value. */
253
- CollectionSortKeys["Id"] = "ID";
199
+ ShopifyCollectionSortKeys["Id"] = "ID";
254
200
  /**
255
201
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
256
202
  * Don't use this sort key when no search query is specified.
257
203
  *
258
204
  */
259
- CollectionSortKeys["Relevance"] = "RELEVANCE";
205
+ ShopifyCollectionSortKeys["Relevance"] = "RELEVANCE";
260
206
  /** Sort by the `title` value. */
261
- CollectionSortKeys["Title"] = "TITLE";
207
+ ShopifyCollectionSortKeys["Title"] = "TITLE";
262
208
  /** Sort by the `updated_at` value. */
263
- CollectionSortKeys["UpdatedAt"] = "UPDATED_AT";
264
- })(CollectionSortKeys || (CollectionSortKeys = {}));
209
+ ShopifyCollectionSortKeys["UpdatedAt"] = "UPDATED_AT";
210
+ })(ShopifyCollectionSortKeys || (ShopifyCollectionSortKeys = {}));
265
211
  /** The code of the error that occurred during a cart completion attempt. */
266
- var CompletionErrorCode;
267
- (function (CompletionErrorCode) {
268
- CompletionErrorCode["Error"] = "ERROR";
269
- CompletionErrorCode["InventoryReservationError"] = "INVENTORY_RESERVATION_ERROR";
270
- CompletionErrorCode["PaymentAmountTooSmall"] = "PAYMENT_AMOUNT_TOO_SMALL";
271
- CompletionErrorCode["PaymentCallIssuer"] = "PAYMENT_CALL_ISSUER";
272
- CompletionErrorCode["PaymentCardDeclined"] = "PAYMENT_CARD_DECLINED";
273
- CompletionErrorCode["PaymentError"] = "PAYMENT_ERROR";
274
- CompletionErrorCode["PaymentGatewayNotEnabledError"] = "PAYMENT_GATEWAY_NOT_ENABLED_ERROR";
275
- CompletionErrorCode["PaymentInsufficientFunds"] = "PAYMENT_INSUFFICIENT_FUNDS";
276
- CompletionErrorCode["PaymentInvalidBillingAddress"] = "PAYMENT_INVALID_BILLING_ADDRESS";
277
- CompletionErrorCode["PaymentInvalidCreditCard"] = "PAYMENT_INVALID_CREDIT_CARD";
278
- CompletionErrorCode["PaymentInvalidCurrency"] = "PAYMENT_INVALID_CURRENCY";
279
- CompletionErrorCode["PaymentInvalidPaymentMethod"] = "PAYMENT_INVALID_PAYMENT_METHOD";
280
- CompletionErrorCode["PaymentTransientError"] = "PAYMENT_TRANSIENT_ERROR";
281
- })(CompletionErrorCode || (CompletionErrorCode = {}));
212
+ var ShopifyCompletionErrorCode;
213
+ (function (ShopifyCompletionErrorCode) {
214
+ ShopifyCompletionErrorCode["Error"] = "ERROR";
215
+ ShopifyCompletionErrorCode["InventoryReservationError"] = "INVENTORY_RESERVATION_ERROR";
216
+ ShopifyCompletionErrorCode["PaymentAmountTooSmall"] = "PAYMENT_AMOUNT_TOO_SMALL";
217
+ ShopifyCompletionErrorCode["PaymentCallIssuer"] = "PAYMENT_CALL_ISSUER";
218
+ ShopifyCompletionErrorCode["PaymentCardDeclined"] = "PAYMENT_CARD_DECLINED";
219
+ ShopifyCompletionErrorCode["PaymentError"] = "PAYMENT_ERROR";
220
+ ShopifyCompletionErrorCode["PaymentGatewayNotEnabledError"] = "PAYMENT_GATEWAY_NOT_ENABLED_ERROR";
221
+ ShopifyCompletionErrorCode["PaymentInsufficientFunds"] = "PAYMENT_INSUFFICIENT_FUNDS";
222
+ ShopifyCompletionErrorCode["PaymentInvalidBillingAddress"] = "PAYMENT_INVALID_BILLING_ADDRESS";
223
+ ShopifyCompletionErrorCode["PaymentInvalidCreditCard"] = "PAYMENT_INVALID_CREDIT_CARD";
224
+ ShopifyCompletionErrorCode["PaymentInvalidCurrency"] = "PAYMENT_INVALID_CURRENCY";
225
+ ShopifyCompletionErrorCode["PaymentInvalidPaymentMethod"] = "PAYMENT_INVALID_PAYMENT_METHOD";
226
+ ShopifyCompletionErrorCode["PaymentTransientError"] = "PAYMENT_TRANSIENT_ERROR";
227
+ })(ShopifyCompletionErrorCode || (ShopifyCompletionErrorCode = {}));
228
+ /** The precision of the value returned by a count field. */
229
+ var ShopifyCountPrecision;
230
+ (function (ShopifyCountPrecision) {
231
+ /** The count is at least the value. A limit was reached. */
232
+ ShopifyCountPrecision["AtLeast"] = "AT_LEAST";
233
+ /** The count is exactly the value. */
234
+ ShopifyCountPrecision["Exact"] = "EXACT";
235
+ })(ShopifyCountPrecision || (ShopifyCountPrecision = {}));
282
236
  /**
283
237
  * The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines.
284
238
  * If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision
@@ -286,943 +240,953 @@ var CompletionErrorCode;
286
240
  * and the territories associated with the United States of America are represented by the country code `US`.
287
241
  *
288
242
  */
289
- var CountryCode;
290
- (function (CountryCode) {
243
+ var ShopifyCountryCode;
244
+ (function (ShopifyCountryCode) {
291
245
  /** Ascension Island. */
292
- CountryCode["Ac"] = "AC";
246
+ ShopifyCountryCode["Ac"] = "AC";
293
247
  /** Andorra. */
294
- CountryCode["Ad"] = "AD";
248
+ ShopifyCountryCode["Ad"] = "AD";
295
249
  /** United Arab Emirates. */
296
- CountryCode["Ae"] = "AE";
250
+ ShopifyCountryCode["Ae"] = "AE";
297
251
  /** Afghanistan. */
298
- CountryCode["Af"] = "AF";
252
+ ShopifyCountryCode["Af"] = "AF";
299
253
  /** Antigua & Barbuda. */
300
- CountryCode["Ag"] = "AG";
254
+ ShopifyCountryCode["Ag"] = "AG";
301
255
  /** Anguilla. */
302
- CountryCode["Ai"] = "AI";
256
+ ShopifyCountryCode["Ai"] = "AI";
303
257
  /** Albania. */
304
- CountryCode["Al"] = "AL";
258
+ ShopifyCountryCode["Al"] = "AL";
305
259
  /** Armenia. */
306
- CountryCode["Am"] = "AM";
260
+ ShopifyCountryCode["Am"] = "AM";
307
261
  /** Netherlands Antilles. */
308
- CountryCode["An"] = "AN";
262
+ ShopifyCountryCode["An"] = "AN";
309
263
  /** Angola. */
310
- CountryCode["Ao"] = "AO";
264
+ ShopifyCountryCode["Ao"] = "AO";
311
265
  /** Argentina. */
312
- CountryCode["Ar"] = "AR";
266
+ ShopifyCountryCode["Ar"] = "AR";
313
267
  /** Austria. */
314
- CountryCode["At"] = "AT";
268
+ ShopifyCountryCode["At"] = "AT";
315
269
  /** Australia. */
316
- CountryCode["Au"] = "AU";
270
+ ShopifyCountryCode["Au"] = "AU";
317
271
  /** Aruba. */
318
- CountryCode["Aw"] = "AW";
272
+ ShopifyCountryCode["Aw"] = "AW";
319
273
  /** Åland Islands. */
320
- CountryCode["Ax"] = "AX";
274
+ ShopifyCountryCode["Ax"] = "AX";
321
275
  /** Azerbaijan. */
322
- CountryCode["Az"] = "AZ";
276
+ ShopifyCountryCode["Az"] = "AZ";
323
277
  /** Bosnia & Herzegovina. */
324
- CountryCode["Ba"] = "BA";
278
+ ShopifyCountryCode["Ba"] = "BA";
325
279
  /** Barbados. */
326
- CountryCode["Bb"] = "BB";
280
+ ShopifyCountryCode["Bb"] = "BB";
327
281
  /** Bangladesh. */
328
- CountryCode["Bd"] = "BD";
282
+ ShopifyCountryCode["Bd"] = "BD";
329
283
  /** Belgium. */
330
- CountryCode["Be"] = "BE";
284
+ ShopifyCountryCode["Be"] = "BE";
331
285
  /** Burkina Faso. */
332
- CountryCode["Bf"] = "BF";
286
+ ShopifyCountryCode["Bf"] = "BF";
333
287
  /** Bulgaria. */
334
- CountryCode["Bg"] = "BG";
288
+ ShopifyCountryCode["Bg"] = "BG";
335
289
  /** Bahrain. */
336
- CountryCode["Bh"] = "BH";
290
+ ShopifyCountryCode["Bh"] = "BH";
337
291
  /** Burundi. */
338
- CountryCode["Bi"] = "BI";
292
+ ShopifyCountryCode["Bi"] = "BI";
339
293
  /** Benin. */
340
- CountryCode["Bj"] = "BJ";
294
+ ShopifyCountryCode["Bj"] = "BJ";
341
295
  /** St. Barthélemy. */
342
- CountryCode["Bl"] = "BL";
296
+ ShopifyCountryCode["Bl"] = "BL";
343
297
  /** Bermuda. */
344
- CountryCode["Bm"] = "BM";
298
+ ShopifyCountryCode["Bm"] = "BM";
345
299
  /** Brunei. */
346
- CountryCode["Bn"] = "BN";
300
+ ShopifyCountryCode["Bn"] = "BN";
347
301
  /** Bolivia. */
348
- CountryCode["Bo"] = "BO";
302
+ ShopifyCountryCode["Bo"] = "BO";
349
303
  /** Caribbean Netherlands. */
350
- CountryCode["Bq"] = "BQ";
304
+ ShopifyCountryCode["Bq"] = "BQ";
351
305
  /** Brazil. */
352
- CountryCode["Br"] = "BR";
306
+ ShopifyCountryCode["Br"] = "BR";
353
307
  /** Bahamas. */
354
- CountryCode["Bs"] = "BS";
308
+ ShopifyCountryCode["Bs"] = "BS";
355
309
  /** Bhutan. */
356
- CountryCode["Bt"] = "BT";
310
+ ShopifyCountryCode["Bt"] = "BT";
357
311
  /** Bouvet Island. */
358
- CountryCode["Bv"] = "BV";
312
+ ShopifyCountryCode["Bv"] = "BV";
359
313
  /** Botswana. */
360
- CountryCode["Bw"] = "BW";
314
+ ShopifyCountryCode["Bw"] = "BW";
361
315
  /** Belarus. */
362
- CountryCode["By"] = "BY";
316
+ ShopifyCountryCode["By"] = "BY";
363
317
  /** Belize. */
364
- CountryCode["Bz"] = "BZ";
318
+ ShopifyCountryCode["Bz"] = "BZ";
365
319
  /** Canada. */
366
- CountryCode["Ca"] = "CA";
320
+ ShopifyCountryCode["Ca"] = "CA";
367
321
  /** Cocos (Keeling) Islands. */
368
- CountryCode["Cc"] = "CC";
322
+ ShopifyCountryCode["Cc"] = "CC";
369
323
  /** Congo - Kinshasa. */
370
- CountryCode["Cd"] = "CD";
324
+ ShopifyCountryCode["Cd"] = "CD";
371
325
  /** Central African Republic. */
372
- CountryCode["Cf"] = "CF";
326
+ ShopifyCountryCode["Cf"] = "CF";
373
327
  /** Congo - Brazzaville. */
374
- CountryCode["Cg"] = "CG";
328
+ ShopifyCountryCode["Cg"] = "CG";
375
329
  /** Switzerland. */
376
- CountryCode["Ch"] = "CH";
330
+ ShopifyCountryCode["Ch"] = "CH";
377
331
  /** Côte d’Ivoire. */
378
- CountryCode["Ci"] = "CI";
332
+ ShopifyCountryCode["Ci"] = "CI";
379
333
  /** Cook Islands. */
380
- CountryCode["Ck"] = "CK";
334
+ ShopifyCountryCode["Ck"] = "CK";
381
335
  /** Chile. */
382
- CountryCode["Cl"] = "CL";
336
+ ShopifyCountryCode["Cl"] = "CL";
383
337
  /** Cameroon. */
384
- CountryCode["Cm"] = "CM";
338
+ ShopifyCountryCode["Cm"] = "CM";
385
339
  /** China. */
386
- CountryCode["Cn"] = "CN";
340
+ ShopifyCountryCode["Cn"] = "CN";
387
341
  /** Colombia. */
388
- CountryCode["Co"] = "CO";
342
+ ShopifyCountryCode["Co"] = "CO";
389
343
  /** Costa Rica. */
390
- CountryCode["Cr"] = "CR";
344
+ ShopifyCountryCode["Cr"] = "CR";
391
345
  /** Cuba. */
392
- CountryCode["Cu"] = "CU";
346
+ ShopifyCountryCode["Cu"] = "CU";
393
347
  /** Cape Verde. */
394
- CountryCode["Cv"] = "CV";
348
+ ShopifyCountryCode["Cv"] = "CV";
395
349
  /** Curaçao. */
396
- CountryCode["Cw"] = "CW";
350
+ ShopifyCountryCode["Cw"] = "CW";
397
351
  /** Christmas Island. */
398
- CountryCode["Cx"] = "CX";
352
+ ShopifyCountryCode["Cx"] = "CX";
399
353
  /** Cyprus. */
400
- CountryCode["Cy"] = "CY";
354
+ ShopifyCountryCode["Cy"] = "CY";
401
355
  /** Czechia. */
402
- CountryCode["Cz"] = "CZ";
356
+ ShopifyCountryCode["Cz"] = "CZ";
403
357
  /** Germany. */
404
- CountryCode["De"] = "DE";
358
+ ShopifyCountryCode["De"] = "DE";
405
359
  /** Djibouti. */
406
- CountryCode["Dj"] = "DJ";
360
+ ShopifyCountryCode["Dj"] = "DJ";
407
361
  /** Denmark. */
408
- CountryCode["Dk"] = "DK";
362
+ ShopifyCountryCode["Dk"] = "DK";
409
363
  /** Dominica. */
410
- CountryCode["Dm"] = "DM";
364
+ ShopifyCountryCode["Dm"] = "DM";
411
365
  /** Dominican Republic. */
412
- CountryCode["Do"] = "DO";
366
+ ShopifyCountryCode["Do"] = "DO";
413
367
  /** Algeria. */
414
- CountryCode["Dz"] = "DZ";
368
+ ShopifyCountryCode["Dz"] = "DZ";
415
369
  /** Ecuador. */
416
- CountryCode["Ec"] = "EC";
370
+ ShopifyCountryCode["Ec"] = "EC";
417
371
  /** Estonia. */
418
- CountryCode["Ee"] = "EE";
372
+ ShopifyCountryCode["Ee"] = "EE";
419
373
  /** Egypt. */
420
- CountryCode["Eg"] = "EG";
374
+ ShopifyCountryCode["Eg"] = "EG";
421
375
  /** Western Sahara. */
422
- CountryCode["Eh"] = "EH";
376
+ ShopifyCountryCode["Eh"] = "EH";
423
377
  /** Eritrea. */
424
- CountryCode["Er"] = "ER";
378
+ ShopifyCountryCode["Er"] = "ER";
425
379
  /** Spain. */
426
- CountryCode["Es"] = "ES";
380
+ ShopifyCountryCode["Es"] = "ES";
427
381
  /** Ethiopia. */
428
- CountryCode["Et"] = "ET";
382
+ ShopifyCountryCode["Et"] = "ET";
429
383
  /** Finland. */
430
- CountryCode["Fi"] = "FI";
384
+ ShopifyCountryCode["Fi"] = "FI";
431
385
  /** Fiji. */
432
- CountryCode["Fj"] = "FJ";
386
+ ShopifyCountryCode["Fj"] = "FJ";
433
387
  /** Falkland Islands. */
434
- CountryCode["Fk"] = "FK";
388
+ ShopifyCountryCode["Fk"] = "FK";
435
389
  /** Faroe Islands. */
436
- CountryCode["Fo"] = "FO";
390
+ ShopifyCountryCode["Fo"] = "FO";
437
391
  /** France. */
438
- CountryCode["Fr"] = "FR";
392
+ ShopifyCountryCode["Fr"] = "FR";
439
393
  /** Gabon. */
440
- CountryCode["Ga"] = "GA";
394
+ ShopifyCountryCode["Ga"] = "GA";
441
395
  /** United Kingdom. */
442
- CountryCode["Gb"] = "GB";
396
+ ShopifyCountryCode["Gb"] = "GB";
443
397
  /** Grenada. */
444
- CountryCode["Gd"] = "GD";
398
+ ShopifyCountryCode["Gd"] = "GD";
445
399
  /** Georgia. */
446
- CountryCode["Ge"] = "GE";
400
+ ShopifyCountryCode["Ge"] = "GE";
447
401
  /** French Guiana. */
448
- CountryCode["Gf"] = "GF";
402
+ ShopifyCountryCode["Gf"] = "GF";
449
403
  /** Guernsey. */
450
- CountryCode["Gg"] = "GG";
404
+ ShopifyCountryCode["Gg"] = "GG";
451
405
  /** Ghana. */
452
- CountryCode["Gh"] = "GH";
406
+ ShopifyCountryCode["Gh"] = "GH";
453
407
  /** Gibraltar. */
454
- CountryCode["Gi"] = "GI";
408
+ ShopifyCountryCode["Gi"] = "GI";
455
409
  /** Greenland. */
456
- CountryCode["Gl"] = "GL";
410
+ ShopifyCountryCode["Gl"] = "GL";
457
411
  /** Gambia. */
458
- CountryCode["Gm"] = "GM";
412
+ ShopifyCountryCode["Gm"] = "GM";
459
413
  /** Guinea. */
460
- CountryCode["Gn"] = "GN";
414
+ ShopifyCountryCode["Gn"] = "GN";
461
415
  /** Guadeloupe. */
462
- CountryCode["Gp"] = "GP";
416
+ ShopifyCountryCode["Gp"] = "GP";
463
417
  /** Equatorial Guinea. */
464
- CountryCode["Gq"] = "GQ";
418
+ ShopifyCountryCode["Gq"] = "GQ";
465
419
  /** Greece. */
466
- CountryCode["Gr"] = "GR";
420
+ ShopifyCountryCode["Gr"] = "GR";
467
421
  /** South Georgia & South Sandwich Islands. */
468
- CountryCode["Gs"] = "GS";
422
+ ShopifyCountryCode["Gs"] = "GS";
469
423
  /** Guatemala. */
470
- CountryCode["Gt"] = "GT";
424
+ ShopifyCountryCode["Gt"] = "GT";
471
425
  /** Guinea-Bissau. */
472
- CountryCode["Gw"] = "GW";
426
+ ShopifyCountryCode["Gw"] = "GW";
473
427
  /** Guyana. */
474
- CountryCode["Gy"] = "GY";
428
+ ShopifyCountryCode["Gy"] = "GY";
475
429
  /** Hong Kong SAR. */
476
- CountryCode["Hk"] = "HK";
430
+ ShopifyCountryCode["Hk"] = "HK";
477
431
  /** Heard & McDonald Islands. */
478
- CountryCode["Hm"] = "HM";
432
+ ShopifyCountryCode["Hm"] = "HM";
479
433
  /** Honduras. */
480
- CountryCode["Hn"] = "HN";
434
+ ShopifyCountryCode["Hn"] = "HN";
481
435
  /** Croatia. */
482
- CountryCode["Hr"] = "HR";
436
+ ShopifyCountryCode["Hr"] = "HR";
483
437
  /** Haiti. */
484
- CountryCode["Ht"] = "HT";
438
+ ShopifyCountryCode["Ht"] = "HT";
485
439
  /** Hungary. */
486
- CountryCode["Hu"] = "HU";
440
+ ShopifyCountryCode["Hu"] = "HU";
487
441
  /** Indonesia. */
488
- CountryCode["Id"] = "ID";
442
+ ShopifyCountryCode["Id"] = "ID";
489
443
  /** Ireland. */
490
- CountryCode["Ie"] = "IE";
444
+ ShopifyCountryCode["Ie"] = "IE";
491
445
  /** Israel. */
492
- CountryCode["Il"] = "IL";
446
+ ShopifyCountryCode["Il"] = "IL";
493
447
  /** Isle of Man. */
494
- CountryCode["Im"] = "IM";
448
+ ShopifyCountryCode["Im"] = "IM";
495
449
  /** India. */
496
- CountryCode["In"] = "IN";
450
+ ShopifyCountryCode["In"] = "IN";
497
451
  /** British Indian Ocean Territory. */
498
- CountryCode["Io"] = "IO";
452
+ ShopifyCountryCode["Io"] = "IO";
499
453
  /** Iraq. */
500
- CountryCode["Iq"] = "IQ";
454
+ ShopifyCountryCode["Iq"] = "IQ";
501
455
  /** Iran. */
502
- CountryCode["Ir"] = "IR";
456
+ ShopifyCountryCode["Ir"] = "IR";
503
457
  /** Iceland. */
504
- CountryCode["Is"] = "IS";
458
+ ShopifyCountryCode["Is"] = "IS";
505
459
  /** Italy. */
506
- CountryCode["It"] = "IT";
460
+ ShopifyCountryCode["It"] = "IT";
507
461
  /** Jersey. */
508
- CountryCode["Je"] = "JE";
462
+ ShopifyCountryCode["Je"] = "JE";
509
463
  /** Jamaica. */
510
- CountryCode["Jm"] = "JM";
464
+ ShopifyCountryCode["Jm"] = "JM";
511
465
  /** Jordan. */
512
- CountryCode["Jo"] = "JO";
466
+ ShopifyCountryCode["Jo"] = "JO";
513
467
  /** Japan. */
514
- CountryCode["Jp"] = "JP";
468
+ ShopifyCountryCode["Jp"] = "JP";
515
469
  /** Kenya. */
516
- CountryCode["Ke"] = "KE";
470
+ ShopifyCountryCode["Ke"] = "KE";
517
471
  /** Kyrgyzstan. */
518
- CountryCode["Kg"] = "KG";
472
+ ShopifyCountryCode["Kg"] = "KG";
519
473
  /** Cambodia. */
520
- CountryCode["Kh"] = "KH";
474
+ ShopifyCountryCode["Kh"] = "KH";
521
475
  /** Kiribati. */
522
- CountryCode["Ki"] = "KI";
476
+ ShopifyCountryCode["Ki"] = "KI";
523
477
  /** Comoros. */
524
- CountryCode["Km"] = "KM";
478
+ ShopifyCountryCode["Km"] = "KM";
525
479
  /** St. Kitts & Nevis. */
526
- CountryCode["Kn"] = "KN";
480
+ ShopifyCountryCode["Kn"] = "KN";
527
481
  /** North Korea. */
528
- CountryCode["Kp"] = "KP";
482
+ ShopifyCountryCode["Kp"] = "KP";
529
483
  /** South Korea. */
530
- CountryCode["Kr"] = "KR";
484
+ ShopifyCountryCode["Kr"] = "KR";
531
485
  /** Kuwait. */
532
- CountryCode["Kw"] = "KW";
486
+ ShopifyCountryCode["Kw"] = "KW";
533
487
  /** Cayman Islands. */
534
- CountryCode["Ky"] = "KY";
488
+ ShopifyCountryCode["Ky"] = "KY";
535
489
  /** Kazakhstan. */
536
- CountryCode["Kz"] = "KZ";
490
+ ShopifyCountryCode["Kz"] = "KZ";
537
491
  /** Laos. */
538
- CountryCode["La"] = "LA";
492
+ ShopifyCountryCode["La"] = "LA";
539
493
  /** Lebanon. */
540
- CountryCode["Lb"] = "LB";
494
+ ShopifyCountryCode["Lb"] = "LB";
541
495
  /** St. Lucia. */
542
- CountryCode["Lc"] = "LC";
496
+ ShopifyCountryCode["Lc"] = "LC";
543
497
  /** Liechtenstein. */
544
- CountryCode["Li"] = "LI";
498
+ ShopifyCountryCode["Li"] = "LI";
545
499
  /** Sri Lanka. */
546
- CountryCode["Lk"] = "LK";
500
+ ShopifyCountryCode["Lk"] = "LK";
547
501
  /** Liberia. */
548
- CountryCode["Lr"] = "LR";
502
+ ShopifyCountryCode["Lr"] = "LR";
549
503
  /** Lesotho. */
550
- CountryCode["Ls"] = "LS";
504
+ ShopifyCountryCode["Ls"] = "LS";
551
505
  /** Lithuania. */
552
- CountryCode["Lt"] = "LT";
506
+ ShopifyCountryCode["Lt"] = "LT";
553
507
  /** Luxembourg. */
554
- CountryCode["Lu"] = "LU";
508
+ ShopifyCountryCode["Lu"] = "LU";
555
509
  /** Latvia. */
556
- CountryCode["Lv"] = "LV";
510
+ ShopifyCountryCode["Lv"] = "LV";
557
511
  /** Libya. */
558
- CountryCode["Ly"] = "LY";
512
+ ShopifyCountryCode["Ly"] = "LY";
559
513
  /** Morocco. */
560
- CountryCode["Ma"] = "MA";
514
+ ShopifyCountryCode["Ma"] = "MA";
561
515
  /** Monaco. */
562
- CountryCode["Mc"] = "MC";
516
+ ShopifyCountryCode["Mc"] = "MC";
563
517
  /** Moldova. */
564
- CountryCode["Md"] = "MD";
518
+ ShopifyCountryCode["Md"] = "MD";
565
519
  /** Montenegro. */
566
- CountryCode["Me"] = "ME";
520
+ ShopifyCountryCode["Me"] = "ME";
567
521
  /** St. Martin. */
568
- CountryCode["Mf"] = "MF";
522
+ ShopifyCountryCode["Mf"] = "MF";
569
523
  /** Madagascar. */
570
- CountryCode["Mg"] = "MG";
524
+ ShopifyCountryCode["Mg"] = "MG";
571
525
  /** North Macedonia. */
572
- CountryCode["Mk"] = "MK";
526
+ ShopifyCountryCode["Mk"] = "MK";
573
527
  /** Mali. */
574
- CountryCode["Ml"] = "ML";
528
+ ShopifyCountryCode["Ml"] = "ML";
575
529
  /** Myanmar (Burma). */
576
- CountryCode["Mm"] = "MM";
530
+ ShopifyCountryCode["Mm"] = "MM";
577
531
  /** Mongolia. */
578
- CountryCode["Mn"] = "MN";
532
+ ShopifyCountryCode["Mn"] = "MN";
579
533
  /** Macao SAR. */
580
- CountryCode["Mo"] = "MO";
534
+ ShopifyCountryCode["Mo"] = "MO";
581
535
  /** Martinique. */
582
- CountryCode["Mq"] = "MQ";
536
+ ShopifyCountryCode["Mq"] = "MQ";
583
537
  /** Mauritania. */
584
- CountryCode["Mr"] = "MR";
538
+ ShopifyCountryCode["Mr"] = "MR";
585
539
  /** Montserrat. */
586
- CountryCode["Ms"] = "MS";
540
+ ShopifyCountryCode["Ms"] = "MS";
587
541
  /** Malta. */
588
- CountryCode["Mt"] = "MT";
542
+ ShopifyCountryCode["Mt"] = "MT";
589
543
  /** Mauritius. */
590
- CountryCode["Mu"] = "MU";
544
+ ShopifyCountryCode["Mu"] = "MU";
591
545
  /** Maldives. */
592
- CountryCode["Mv"] = "MV";
546
+ ShopifyCountryCode["Mv"] = "MV";
593
547
  /** Malawi. */
594
- CountryCode["Mw"] = "MW";
548
+ ShopifyCountryCode["Mw"] = "MW";
595
549
  /** Mexico. */
596
- CountryCode["Mx"] = "MX";
550
+ ShopifyCountryCode["Mx"] = "MX";
597
551
  /** Malaysia. */
598
- CountryCode["My"] = "MY";
552
+ ShopifyCountryCode["My"] = "MY";
599
553
  /** Mozambique. */
600
- CountryCode["Mz"] = "MZ";
554
+ ShopifyCountryCode["Mz"] = "MZ";
601
555
  /** Namibia. */
602
- CountryCode["Na"] = "NA";
556
+ ShopifyCountryCode["Na"] = "NA";
603
557
  /** New Caledonia. */
604
- CountryCode["Nc"] = "NC";
558
+ ShopifyCountryCode["Nc"] = "NC";
605
559
  /** Niger. */
606
- CountryCode["Ne"] = "NE";
560
+ ShopifyCountryCode["Ne"] = "NE";
607
561
  /** Norfolk Island. */
608
- CountryCode["Nf"] = "NF";
562
+ ShopifyCountryCode["Nf"] = "NF";
609
563
  /** Nigeria. */
610
- CountryCode["Ng"] = "NG";
564
+ ShopifyCountryCode["Ng"] = "NG";
611
565
  /** Nicaragua. */
612
- CountryCode["Ni"] = "NI";
566
+ ShopifyCountryCode["Ni"] = "NI";
613
567
  /** Netherlands. */
614
- CountryCode["Nl"] = "NL";
568
+ ShopifyCountryCode["Nl"] = "NL";
615
569
  /** Norway. */
616
- CountryCode["No"] = "NO";
570
+ ShopifyCountryCode["No"] = "NO";
617
571
  /** Nepal. */
618
- CountryCode["Np"] = "NP";
572
+ ShopifyCountryCode["Np"] = "NP";
619
573
  /** Nauru. */
620
- CountryCode["Nr"] = "NR";
574
+ ShopifyCountryCode["Nr"] = "NR";
621
575
  /** Niue. */
622
- CountryCode["Nu"] = "NU";
576
+ ShopifyCountryCode["Nu"] = "NU";
623
577
  /** New Zealand. */
624
- CountryCode["Nz"] = "NZ";
578
+ ShopifyCountryCode["Nz"] = "NZ";
625
579
  /** Oman. */
626
- CountryCode["Om"] = "OM";
580
+ ShopifyCountryCode["Om"] = "OM";
627
581
  /** Panama. */
628
- CountryCode["Pa"] = "PA";
582
+ ShopifyCountryCode["Pa"] = "PA";
629
583
  /** Peru. */
630
- CountryCode["Pe"] = "PE";
584
+ ShopifyCountryCode["Pe"] = "PE";
631
585
  /** French Polynesia. */
632
- CountryCode["Pf"] = "PF";
586
+ ShopifyCountryCode["Pf"] = "PF";
633
587
  /** Papua New Guinea. */
634
- CountryCode["Pg"] = "PG";
588
+ ShopifyCountryCode["Pg"] = "PG";
635
589
  /** Philippines. */
636
- CountryCode["Ph"] = "PH";
590
+ ShopifyCountryCode["Ph"] = "PH";
637
591
  /** Pakistan. */
638
- CountryCode["Pk"] = "PK";
592
+ ShopifyCountryCode["Pk"] = "PK";
639
593
  /** Poland. */
640
- CountryCode["Pl"] = "PL";
594
+ ShopifyCountryCode["Pl"] = "PL";
641
595
  /** St. Pierre & Miquelon. */
642
- CountryCode["Pm"] = "PM";
596
+ ShopifyCountryCode["Pm"] = "PM";
643
597
  /** Pitcairn Islands. */
644
- CountryCode["Pn"] = "PN";
598
+ ShopifyCountryCode["Pn"] = "PN";
645
599
  /** Palestinian Territories. */
646
- CountryCode["Ps"] = "PS";
600
+ ShopifyCountryCode["Ps"] = "PS";
647
601
  /** Portugal. */
648
- CountryCode["Pt"] = "PT";
602
+ ShopifyCountryCode["Pt"] = "PT";
649
603
  /** Paraguay. */
650
- CountryCode["Py"] = "PY";
604
+ ShopifyCountryCode["Py"] = "PY";
651
605
  /** Qatar. */
652
- CountryCode["Qa"] = "QA";
606
+ ShopifyCountryCode["Qa"] = "QA";
653
607
  /** Réunion. */
654
- CountryCode["Re"] = "RE";
608
+ ShopifyCountryCode["Re"] = "RE";
655
609
  /** Romania. */
656
- CountryCode["Ro"] = "RO";
610
+ ShopifyCountryCode["Ro"] = "RO";
657
611
  /** Serbia. */
658
- CountryCode["Rs"] = "RS";
612
+ ShopifyCountryCode["Rs"] = "RS";
659
613
  /** Russia. */
660
- CountryCode["Ru"] = "RU";
614
+ ShopifyCountryCode["Ru"] = "RU";
661
615
  /** Rwanda. */
662
- CountryCode["Rw"] = "RW";
616
+ ShopifyCountryCode["Rw"] = "RW";
663
617
  /** Saudi Arabia. */
664
- CountryCode["Sa"] = "SA";
618
+ ShopifyCountryCode["Sa"] = "SA";
665
619
  /** Solomon Islands. */
666
- CountryCode["Sb"] = "SB";
620
+ ShopifyCountryCode["Sb"] = "SB";
667
621
  /** Seychelles. */
668
- CountryCode["Sc"] = "SC";
622
+ ShopifyCountryCode["Sc"] = "SC";
669
623
  /** Sudan. */
670
- CountryCode["Sd"] = "SD";
624
+ ShopifyCountryCode["Sd"] = "SD";
671
625
  /** Sweden. */
672
- CountryCode["Se"] = "SE";
626
+ ShopifyCountryCode["Se"] = "SE";
673
627
  /** Singapore. */
674
- CountryCode["Sg"] = "SG";
628
+ ShopifyCountryCode["Sg"] = "SG";
675
629
  /** St. Helena. */
676
- CountryCode["Sh"] = "SH";
630
+ ShopifyCountryCode["Sh"] = "SH";
677
631
  /** Slovenia. */
678
- CountryCode["Si"] = "SI";
632
+ ShopifyCountryCode["Si"] = "SI";
679
633
  /** Svalbard & Jan Mayen. */
680
- CountryCode["Sj"] = "SJ";
634
+ ShopifyCountryCode["Sj"] = "SJ";
681
635
  /** Slovakia. */
682
- CountryCode["Sk"] = "SK";
636
+ ShopifyCountryCode["Sk"] = "SK";
683
637
  /** Sierra Leone. */
684
- CountryCode["Sl"] = "SL";
638
+ ShopifyCountryCode["Sl"] = "SL";
685
639
  /** San Marino. */
686
- CountryCode["Sm"] = "SM";
640
+ ShopifyCountryCode["Sm"] = "SM";
687
641
  /** Senegal. */
688
- CountryCode["Sn"] = "SN";
642
+ ShopifyCountryCode["Sn"] = "SN";
689
643
  /** Somalia. */
690
- CountryCode["So"] = "SO";
644
+ ShopifyCountryCode["So"] = "SO";
691
645
  /** Suriname. */
692
- CountryCode["Sr"] = "SR";
646
+ ShopifyCountryCode["Sr"] = "SR";
693
647
  /** South Sudan. */
694
- CountryCode["Ss"] = "SS";
648
+ ShopifyCountryCode["Ss"] = "SS";
695
649
  /** São Tomé & Príncipe. */
696
- CountryCode["St"] = "ST";
650
+ ShopifyCountryCode["St"] = "ST";
697
651
  /** El Salvador. */
698
- CountryCode["Sv"] = "SV";
652
+ ShopifyCountryCode["Sv"] = "SV";
699
653
  /** Sint Maarten. */
700
- CountryCode["Sx"] = "SX";
654
+ ShopifyCountryCode["Sx"] = "SX";
701
655
  /** Syria. */
702
- CountryCode["Sy"] = "SY";
656
+ ShopifyCountryCode["Sy"] = "SY";
703
657
  /** Eswatini. */
704
- CountryCode["Sz"] = "SZ";
658
+ ShopifyCountryCode["Sz"] = "SZ";
705
659
  /** Tristan da Cunha. */
706
- CountryCode["Ta"] = "TA";
660
+ ShopifyCountryCode["Ta"] = "TA";
707
661
  /** Turks & Caicos Islands. */
708
- CountryCode["Tc"] = "TC";
662
+ ShopifyCountryCode["Tc"] = "TC";
709
663
  /** Chad. */
710
- CountryCode["Td"] = "TD";
664
+ ShopifyCountryCode["Td"] = "TD";
711
665
  /** French Southern Territories. */
712
- CountryCode["Tf"] = "TF";
666
+ ShopifyCountryCode["Tf"] = "TF";
713
667
  /** Togo. */
714
- CountryCode["Tg"] = "TG";
668
+ ShopifyCountryCode["Tg"] = "TG";
715
669
  /** Thailand. */
716
- CountryCode["Th"] = "TH";
670
+ ShopifyCountryCode["Th"] = "TH";
717
671
  /** Tajikistan. */
718
- CountryCode["Tj"] = "TJ";
672
+ ShopifyCountryCode["Tj"] = "TJ";
719
673
  /** Tokelau. */
720
- CountryCode["Tk"] = "TK";
674
+ ShopifyCountryCode["Tk"] = "TK";
721
675
  /** Timor-Leste. */
722
- CountryCode["Tl"] = "TL";
676
+ ShopifyCountryCode["Tl"] = "TL";
723
677
  /** Turkmenistan. */
724
- CountryCode["Tm"] = "TM";
678
+ ShopifyCountryCode["Tm"] = "TM";
725
679
  /** Tunisia. */
726
- CountryCode["Tn"] = "TN";
680
+ ShopifyCountryCode["Tn"] = "TN";
727
681
  /** Tonga. */
728
- CountryCode["To"] = "TO";
682
+ ShopifyCountryCode["To"] = "TO";
729
683
  /** Türkiye. */
730
- CountryCode["Tr"] = "TR";
684
+ ShopifyCountryCode["Tr"] = "TR";
731
685
  /** Trinidad & Tobago. */
732
- CountryCode["Tt"] = "TT";
686
+ ShopifyCountryCode["Tt"] = "TT";
733
687
  /** Tuvalu. */
734
- CountryCode["Tv"] = "TV";
688
+ ShopifyCountryCode["Tv"] = "TV";
735
689
  /** Taiwan. */
736
- CountryCode["Tw"] = "TW";
690
+ ShopifyCountryCode["Tw"] = "TW";
737
691
  /** Tanzania. */
738
- CountryCode["Tz"] = "TZ";
692
+ ShopifyCountryCode["Tz"] = "TZ";
739
693
  /** Ukraine. */
740
- CountryCode["Ua"] = "UA";
694
+ ShopifyCountryCode["Ua"] = "UA";
741
695
  /** Uganda. */
742
- CountryCode["Ug"] = "UG";
696
+ ShopifyCountryCode["Ug"] = "UG";
743
697
  /** U.S. Outlying Islands. */
744
- CountryCode["Um"] = "UM";
698
+ ShopifyCountryCode["Um"] = "UM";
745
699
  /** United States. */
746
- CountryCode["Us"] = "US";
700
+ ShopifyCountryCode["Us"] = "US";
747
701
  /** Uruguay. */
748
- CountryCode["Uy"] = "UY";
702
+ ShopifyCountryCode["Uy"] = "UY";
749
703
  /** Uzbekistan. */
750
- CountryCode["Uz"] = "UZ";
704
+ ShopifyCountryCode["Uz"] = "UZ";
751
705
  /** Vatican City. */
752
- CountryCode["Va"] = "VA";
706
+ ShopifyCountryCode["Va"] = "VA";
753
707
  /** St. Vincent & Grenadines. */
754
- CountryCode["Vc"] = "VC";
708
+ ShopifyCountryCode["Vc"] = "VC";
755
709
  /** Venezuela. */
756
- CountryCode["Ve"] = "VE";
710
+ ShopifyCountryCode["Ve"] = "VE";
757
711
  /** British Virgin Islands. */
758
- CountryCode["Vg"] = "VG";
712
+ ShopifyCountryCode["Vg"] = "VG";
759
713
  /** Vietnam. */
760
- CountryCode["Vn"] = "VN";
714
+ ShopifyCountryCode["Vn"] = "VN";
761
715
  /** Vanuatu. */
762
- CountryCode["Vu"] = "VU";
716
+ ShopifyCountryCode["Vu"] = "VU";
763
717
  /** Wallis & Futuna. */
764
- CountryCode["Wf"] = "WF";
718
+ ShopifyCountryCode["Wf"] = "WF";
765
719
  /** Samoa. */
766
- CountryCode["Ws"] = "WS";
720
+ ShopifyCountryCode["Ws"] = "WS";
767
721
  /** Kosovo. */
768
- CountryCode["Xk"] = "XK";
722
+ ShopifyCountryCode["Xk"] = "XK";
769
723
  /** Yemen. */
770
- CountryCode["Ye"] = "YE";
724
+ ShopifyCountryCode["Ye"] = "YE";
771
725
  /** Mayotte. */
772
- CountryCode["Yt"] = "YT";
726
+ ShopifyCountryCode["Yt"] = "YT";
773
727
  /** South Africa. */
774
- CountryCode["Za"] = "ZA";
728
+ ShopifyCountryCode["Za"] = "ZA";
775
729
  /** Zambia. */
776
- CountryCode["Zm"] = "ZM";
730
+ ShopifyCountryCode["Zm"] = "ZM";
777
731
  /** Zimbabwe. */
778
- CountryCode["Zw"] = "ZW";
732
+ ShopifyCountryCode["Zw"] = "ZW";
779
733
  /** Unknown Region. */
780
- CountryCode["Zz"] = "ZZ";
781
- })(CountryCode || (CountryCode = {}));
734
+ ShopifyCountryCode["Zz"] = "ZZ";
735
+ })(ShopifyCountryCode || (ShopifyCountryCode = {}));
782
736
  /** The part of the image that should remain after cropping. */
783
- var CropRegion;
784
- (function (CropRegion) {
737
+ var ShopifyCropRegion;
738
+ (function (ShopifyCropRegion) {
785
739
  /** Keep the bottom of the image. */
786
- CropRegion["Bottom"] = "BOTTOM";
740
+ ShopifyCropRegion["Bottom"] = "BOTTOM";
787
741
  /** Keep the center of the image. */
788
- CropRegion["Center"] = "CENTER";
742
+ ShopifyCropRegion["Center"] = "CENTER";
789
743
  /** Keep the left of the image. */
790
- CropRegion["Left"] = "LEFT";
744
+ ShopifyCropRegion["Left"] = "LEFT";
791
745
  /** Keep the right of the image. */
792
- CropRegion["Right"] = "RIGHT";
746
+ ShopifyCropRegion["Right"] = "RIGHT";
793
747
  /** Keep the top of the image. */
794
- CropRegion["Top"] = "TOP";
795
- })(CropRegion || (CropRegion = {}));
748
+ ShopifyCropRegion["Top"] = "TOP";
749
+ })(ShopifyCropRegion || (ShopifyCropRegion = {}));
796
750
  /**
797
751
  * The three-letter currency codes that represent the world currencies used in
798
752
  * stores. These include standard ISO 4217 codes, legacy codes,
799
753
  * and non-standard codes.
800
754
  *
801
755
  */
802
- var CurrencyCode;
803
- (function (CurrencyCode) {
756
+ var ShopifyCurrencyCode;
757
+ (function (ShopifyCurrencyCode) {
804
758
  /** United Arab Emirates Dirham (AED). */
805
- CurrencyCode["Aed"] = "AED";
759
+ ShopifyCurrencyCode["Aed"] = "AED";
806
760
  /** Afghan Afghani (AFN). */
807
- CurrencyCode["Afn"] = "AFN";
761
+ ShopifyCurrencyCode["Afn"] = "AFN";
808
762
  /** Albanian Lek (ALL). */
809
- CurrencyCode["All"] = "ALL";
763
+ ShopifyCurrencyCode["All"] = "ALL";
810
764
  /** Armenian Dram (AMD). */
811
- CurrencyCode["Amd"] = "AMD";
765
+ ShopifyCurrencyCode["Amd"] = "AMD";
812
766
  /** Netherlands Antillean Guilder. */
813
- CurrencyCode["Ang"] = "ANG";
767
+ ShopifyCurrencyCode["Ang"] = "ANG";
814
768
  /** Angolan Kwanza (AOA). */
815
- CurrencyCode["Aoa"] = "AOA";
769
+ ShopifyCurrencyCode["Aoa"] = "AOA";
816
770
  /** Argentine Pesos (ARS). */
817
- CurrencyCode["Ars"] = "ARS";
771
+ ShopifyCurrencyCode["Ars"] = "ARS";
818
772
  /** Australian Dollars (AUD). */
819
- CurrencyCode["Aud"] = "AUD";
773
+ ShopifyCurrencyCode["Aud"] = "AUD";
820
774
  /** Aruban Florin (AWG). */
821
- CurrencyCode["Awg"] = "AWG";
775
+ ShopifyCurrencyCode["Awg"] = "AWG";
822
776
  /** Azerbaijani Manat (AZN). */
823
- CurrencyCode["Azn"] = "AZN";
777
+ ShopifyCurrencyCode["Azn"] = "AZN";
824
778
  /** Bosnia and Herzegovina Convertible Mark (BAM). */
825
- CurrencyCode["Bam"] = "BAM";
779
+ ShopifyCurrencyCode["Bam"] = "BAM";
826
780
  /** Barbadian Dollar (BBD). */
827
- CurrencyCode["Bbd"] = "BBD";
781
+ ShopifyCurrencyCode["Bbd"] = "BBD";
828
782
  /** Bangladesh Taka (BDT). */
829
- CurrencyCode["Bdt"] = "BDT";
783
+ ShopifyCurrencyCode["Bdt"] = "BDT";
830
784
  /** Bulgarian Lev (BGN). */
831
- CurrencyCode["Bgn"] = "BGN";
785
+ ShopifyCurrencyCode["Bgn"] = "BGN";
832
786
  /** Bahraini Dinar (BHD). */
833
- CurrencyCode["Bhd"] = "BHD";
787
+ ShopifyCurrencyCode["Bhd"] = "BHD";
834
788
  /** Burundian Franc (BIF). */
835
- CurrencyCode["Bif"] = "BIF";
789
+ ShopifyCurrencyCode["Bif"] = "BIF";
836
790
  /** Bermudian Dollar (BMD). */
837
- CurrencyCode["Bmd"] = "BMD";
791
+ ShopifyCurrencyCode["Bmd"] = "BMD";
838
792
  /** Brunei Dollar (BND). */
839
- CurrencyCode["Bnd"] = "BND";
793
+ ShopifyCurrencyCode["Bnd"] = "BND";
840
794
  /** Bolivian Boliviano (BOB). */
841
- CurrencyCode["Bob"] = "BOB";
795
+ ShopifyCurrencyCode["Bob"] = "BOB";
842
796
  /** Brazilian Real (BRL). */
843
- CurrencyCode["Brl"] = "BRL";
797
+ ShopifyCurrencyCode["Brl"] = "BRL";
844
798
  /** Bahamian Dollar (BSD). */
845
- CurrencyCode["Bsd"] = "BSD";
799
+ ShopifyCurrencyCode["Bsd"] = "BSD";
846
800
  /** Bhutanese Ngultrum (BTN). */
847
- CurrencyCode["Btn"] = "BTN";
801
+ ShopifyCurrencyCode["Btn"] = "BTN";
848
802
  /** Botswana Pula (BWP). */
849
- CurrencyCode["Bwp"] = "BWP";
803
+ ShopifyCurrencyCode["Bwp"] = "BWP";
850
804
  /** Belarusian Ruble (BYN). */
851
- CurrencyCode["Byn"] = "BYN";
805
+ ShopifyCurrencyCode["Byn"] = "BYN";
852
806
  /**
853
807
  * Belarusian Ruble (BYR).
854
- * @deprecated `BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead. Deprecated in version 0.82.0. Will be removed in version 0.85.0.
808
+ * @deprecated `BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead. Deprecated in version 0.92.0. Will be removed in version 0.95.0.
855
809
  */
856
- CurrencyCode["Byr"] = "BYR";
810
+ ShopifyCurrencyCode["Byr"] = "BYR";
857
811
  /** Belize Dollar (BZD). */
858
- CurrencyCode["Bzd"] = "BZD";
812
+ ShopifyCurrencyCode["Bzd"] = "BZD";
859
813
  /** Canadian Dollars (CAD). */
860
- CurrencyCode["Cad"] = "CAD";
814
+ ShopifyCurrencyCode["Cad"] = "CAD";
861
815
  /** Congolese franc (CDF). */
862
- CurrencyCode["Cdf"] = "CDF";
816
+ ShopifyCurrencyCode["Cdf"] = "CDF";
863
817
  /** Swiss Francs (CHF). */
864
- CurrencyCode["Chf"] = "CHF";
818
+ ShopifyCurrencyCode["Chf"] = "CHF";
865
819
  /** Chilean Peso (CLP). */
866
- CurrencyCode["Clp"] = "CLP";
820
+ ShopifyCurrencyCode["Clp"] = "CLP";
867
821
  /** Chinese Yuan Renminbi (CNY). */
868
- CurrencyCode["Cny"] = "CNY";
822
+ ShopifyCurrencyCode["Cny"] = "CNY";
869
823
  /** Colombian Peso (COP). */
870
- CurrencyCode["Cop"] = "COP";
824
+ ShopifyCurrencyCode["Cop"] = "COP";
871
825
  /** Costa Rican Colones (CRC). */
872
- CurrencyCode["Crc"] = "CRC";
826
+ ShopifyCurrencyCode["Crc"] = "CRC";
873
827
  /** Cape Verdean escudo (CVE). */
874
- CurrencyCode["Cve"] = "CVE";
828
+ ShopifyCurrencyCode["Cve"] = "CVE";
875
829
  /** Czech Koruny (CZK). */
876
- CurrencyCode["Czk"] = "CZK";
830
+ ShopifyCurrencyCode["Czk"] = "CZK";
877
831
  /** Djiboutian Franc (DJF). */
878
- CurrencyCode["Djf"] = "DJF";
832
+ ShopifyCurrencyCode["Djf"] = "DJF";
879
833
  /** Danish Kroner (DKK). */
880
- CurrencyCode["Dkk"] = "DKK";
834
+ ShopifyCurrencyCode["Dkk"] = "DKK";
881
835
  /** Dominican Peso (DOP). */
882
- CurrencyCode["Dop"] = "DOP";
836
+ ShopifyCurrencyCode["Dop"] = "DOP";
883
837
  /** Algerian Dinar (DZD). */
884
- CurrencyCode["Dzd"] = "DZD";
838
+ ShopifyCurrencyCode["Dzd"] = "DZD";
885
839
  /** Egyptian Pound (EGP). */
886
- CurrencyCode["Egp"] = "EGP";
840
+ ShopifyCurrencyCode["Egp"] = "EGP";
887
841
  /** Eritrean Nakfa (ERN). */
888
- CurrencyCode["Ern"] = "ERN";
842
+ ShopifyCurrencyCode["Ern"] = "ERN";
889
843
  /** Ethiopian Birr (ETB). */
890
- CurrencyCode["Etb"] = "ETB";
844
+ ShopifyCurrencyCode["Etb"] = "ETB";
891
845
  /** Euro (EUR). */
892
- CurrencyCode["Eur"] = "EUR";
846
+ ShopifyCurrencyCode["Eur"] = "EUR";
893
847
  /** Fijian Dollars (FJD). */
894
- CurrencyCode["Fjd"] = "FJD";
848
+ ShopifyCurrencyCode["Fjd"] = "FJD";
895
849
  /** Falkland Islands Pounds (FKP). */
896
- CurrencyCode["Fkp"] = "FKP";
850
+ ShopifyCurrencyCode["Fkp"] = "FKP";
897
851
  /** United Kingdom Pounds (GBP). */
898
- CurrencyCode["Gbp"] = "GBP";
852
+ ShopifyCurrencyCode["Gbp"] = "GBP";
899
853
  /** Georgian Lari (GEL). */
900
- CurrencyCode["Gel"] = "GEL";
854
+ ShopifyCurrencyCode["Gel"] = "GEL";
901
855
  /** Ghanaian Cedi (GHS). */
902
- CurrencyCode["Ghs"] = "GHS";
856
+ ShopifyCurrencyCode["Ghs"] = "GHS";
903
857
  /** Gibraltar Pounds (GIP). */
904
- CurrencyCode["Gip"] = "GIP";
858
+ ShopifyCurrencyCode["Gip"] = "GIP";
905
859
  /** Gambian Dalasi (GMD). */
906
- CurrencyCode["Gmd"] = "GMD";
860
+ ShopifyCurrencyCode["Gmd"] = "GMD";
907
861
  /** Guinean Franc (GNF). */
908
- CurrencyCode["Gnf"] = "GNF";
862
+ ShopifyCurrencyCode["Gnf"] = "GNF";
909
863
  /** Guatemalan Quetzal (GTQ). */
910
- CurrencyCode["Gtq"] = "GTQ";
864
+ ShopifyCurrencyCode["Gtq"] = "GTQ";
911
865
  /** Guyanese Dollar (GYD). */
912
- CurrencyCode["Gyd"] = "GYD";
866
+ ShopifyCurrencyCode["Gyd"] = "GYD";
913
867
  /** Hong Kong Dollars (HKD). */
914
- CurrencyCode["Hkd"] = "HKD";
868
+ ShopifyCurrencyCode["Hkd"] = "HKD";
915
869
  /** Honduran Lempira (HNL). */
916
- CurrencyCode["Hnl"] = "HNL";
870
+ ShopifyCurrencyCode["Hnl"] = "HNL";
917
871
  /** Croatian Kuna (HRK). */
918
- CurrencyCode["Hrk"] = "HRK";
872
+ ShopifyCurrencyCode["Hrk"] = "HRK";
919
873
  /** Haitian Gourde (HTG). */
920
- CurrencyCode["Htg"] = "HTG";
874
+ ShopifyCurrencyCode["Htg"] = "HTG";
921
875
  /** Hungarian Forint (HUF). */
922
- CurrencyCode["Huf"] = "HUF";
876
+ ShopifyCurrencyCode["Huf"] = "HUF";
923
877
  /** Indonesian Rupiah (IDR). */
924
- CurrencyCode["Idr"] = "IDR";
878
+ ShopifyCurrencyCode["Idr"] = "IDR";
925
879
  /** Israeli New Shekel (NIS). */
926
- CurrencyCode["Ils"] = "ILS";
880
+ ShopifyCurrencyCode["Ils"] = "ILS";
927
881
  /** Indian Rupees (INR). */
928
- CurrencyCode["Inr"] = "INR";
882
+ ShopifyCurrencyCode["Inr"] = "INR";
929
883
  /** Iraqi Dinar (IQD). */
930
- CurrencyCode["Iqd"] = "IQD";
884
+ ShopifyCurrencyCode["Iqd"] = "IQD";
931
885
  /** Iranian Rial (IRR). */
932
- CurrencyCode["Irr"] = "IRR";
886
+ ShopifyCurrencyCode["Irr"] = "IRR";
933
887
  /** Icelandic Kronur (ISK). */
934
- CurrencyCode["Isk"] = "ISK";
888
+ ShopifyCurrencyCode["Isk"] = "ISK";
935
889
  /** Jersey Pound. */
936
- CurrencyCode["Jep"] = "JEP";
890
+ ShopifyCurrencyCode["Jep"] = "JEP";
937
891
  /** Jamaican Dollars (JMD). */
938
- CurrencyCode["Jmd"] = "JMD";
892
+ ShopifyCurrencyCode["Jmd"] = "JMD";
939
893
  /** Jordanian Dinar (JOD). */
940
- CurrencyCode["Jod"] = "JOD";
894
+ ShopifyCurrencyCode["Jod"] = "JOD";
941
895
  /** Japanese Yen (JPY). */
942
- CurrencyCode["Jpy"] = "JPY";
896
+ ShopifyCurrencyCode["Jpy"] = "JPY";
943
897
  /** Kenyan Shilling (KES). */
944
- CurrencyCode["Kes"] = "KES";
898
+ ShopifyCurrencyCode["Kes"] = "KES";
945
899
  /** Kyrgyzstani Som (KGS). */
946
- CurrencyCode["Kgs"] = "KGS";
900
+ ShopifyCurrencyCode["Kgs"] = "KGS";
947
901
  /** Cambodian Riel. */
948
- CurrencyCode["Khr"] = "KHR";
902
+ ShopifyCurrencyCode["Khr"] = "KHR";
949
903
  /** Kiribati Dollar (KID). */
950
- CurrencyCode["Kid"] = "KID";
904
+ ShopifyCurrencyCode["Kid"] = "KID";
951
905
  /** Comorian Franc (KMF). */
952
- CurrencyCode["Kmf"] = "KMF";
906
+ ShopifyCurrencyCode["Kmf"] = "KMF";
953
907
  /** South Korean Won (KRW). */
954
- CurrencyCode["Krw"] = "KRW";
908
+ ShopifyCurrencyCode["Krw"] = "KRW";
955
909
  /** Kuwaiti Dinar (KWD). */
956
- CurrencyCode["Kwd"] = "KWD";
910
+ ShopifyCurrencyCode["Kwd"] = "KWD";
957
911
  /** Cayman Dollars (KYD). */
958
- CurrencyCode["Kyd"] = "KYD";
912
+ ShopifyCurrencyCode["Kyd"] = "KYD";
959
913
  /** Kazakhstani Tenge (KZT). */
960
- CurrencyCode["Kzt"] = "KZT";
914
+ ShopifyCurrencyCode["Kzt"] = "KZT";
961
915
  /** Laotian Kip (LAK). */
962
- CurrencyCode["Lak"] = "LAK";
916
+ ShopifyCurrencyCode["Lak"] = "LAK";
963
917
  /** Lebanese Pounds (LBP). */
964
- CurrencyCode["Lbp"] = "LBP";
918
+ ShopifyCurrencyCode["Lbp"] = "LBP";
965
919
  /** Sri Lankan Rupees (LKR). */
966
- CurrencyCode["Lkr"] = "LKR";
920
+ ShopifyCurrencyCode["Lkr"] = "LKR";
967
921
  /** Liberian Dollar (LRD). */
968
- CurrencyCode["Lrd"] = "LRD";
922
+ ShopifyCurrencyCode["Lrd"] = "LRD";
969
923
  /** Lesotho Loti (LSL). */
970
- CurrencyCode["Lsl"] = "LSL";
924
+ ShopifyCurrencyCode["Lsl"] = "LSL";
971
925
  /** Lithuanian Litai (LTL). */
972
- CurrencyCode["Ltl"] = "LTL";
926
+ ShopifyCurrencyCode["Ltl"] = "LTL";
973
927
  /** Latvian Lati (LVL). */
974
- CurrencyCode["Lvl"] = "LVL";
928
+ ShopifyCurrencyCode["Lvl"] = "LVL";
975
929
  /** Libyan Dinar (LYD). */
976
- CurrencyCode["Lyd"] = "LYD";
930
+ ShopifyCurrencyCode["Lyd"] = "LYD";
977
931
  /** Moroccan Dirham. */
978
- CurrencyCode["Mad"] = "MAD";
932
+ ShopifyCurrencyCode["Mad"] = "MAD";
979
933
  /** Moldovan Leu (MDL). */
980
- CurrencyCode["Mdl"] = "MDL";
934
+ ShopifyCurrencyCode["Mdl"] = "MDL";
981
935
  /** Malagasy Ariary (MGA). */
982
- CurrencyCode["Mga"] = "MGA";
936
+ ShopifyCurrencyCode["Mga"] = "MGA";
983
937
  /** Macedonia Denar (MKD). */
984
- CurrencyCode["Mkd"] = "MKD";
938
+ ShopifyCurrencyCode["Mkd"] = "MKD";
985
939
  /** Burmese Kyat (MMK). */
986
- CurrencyCode["Mmk"] = "MMK";
940
+ ShopifyCurrencyCode["Mmk"] = "MMK";
987
941
  /** Mongolian Tugrik. */
988
- CurrencyCode["Mnt"] = "MNT";
942
+ ShopifyCurrencyCode["Mnt"] = "MNT";
989
943
  /** Macanese Pataca (MOP). */
990
- CurrencyCode["Mop"] = "MOP";
944
+ ShopifyCurrencyCode["Mop"] = "MOP";
991
945
  /** Mauritanian Ouguiya (MRU). */
992
- CurrencyCode["Mru"] = "MRU";
946
+ ShopifyCurrencyCode["Mru"] = "MRU";
993
947
  /** Mauritian Rupee (MUR). */
994
- CurrencyCode["Mur"] = "MUR";
948
+ ShopifyCurrencyCode["Mur"] = "MUR";
995
949
  /** Maldivian Rufiyaa (MVR). */
996
- CurrencyCode["Mvr"] = "MVR";
950
+ ShopifyCurrencyCode["Mvr"] = "MVR";
997
951
  /** Malawian Kwacha (MWK). */
998
- CurrencyCode["Mwk"] = "MWK";
952
+ ShopifyCurrencyCode["Mwk"] = "MWK";
999
953
  /** Mexican Pesos (MXN). */
1000
- CurrencyCode["Mxn"] = "MXN";
954
+ ShopifyCurrencyCode["Mxn"] = "MXN";
1001
955
  /** Malaysian Ringgits (MYR). */
1002
- CurrencyCode["Myr"] = "MYR";
956
+ ShopifyCurrencyCode["Myr"] = "MYR";
1003
957
  /** Mozambican Metical. */
1004
- CurrencyCode["Mzn"] = "MZN";
958
+ ShopifyCurrencyCode["Mzn"] = "MZN";
1005
959
  /** Namibian Dollar. */
1006
- CurrencyCode["Nad"] = "NAD";
960
+ ShopifyCurrencyCode["Nad"] = "NAD";
1007
961
  /** Nigerian Naira (NGN). */
1008
- CurrencyCode["Ngn"] = "NGN";
962
+ ShopifyCurrencyCode["Ngn"] = "NGN";
1009
963
  /** Nicaraguan Córdoba (NIO). */
1010
- CurrencyCode["Nio"] = "NIO";
964
+ ShopifyCurrencyCode["Nio"] = "NIO";
1011
965
  /** Norwegian Kroner (NOK). */
1012
- CurrencyCode["Nok"] = "NOK";
966
+ ShopifyCurrencyCode["Nok"] = "NOK";
1013
967
  /** Nepalese Rupee (NPR). */
1014
- CurrencyCode["Npr"] = "NPR";
968
+ ShopifyCurrencyCode["Npr"] = "NPR";
1015
969
  /** New Zealand Dollars (NZD). */
1016
- CurrencyCode["Nzd"] = "NZD";
970
+ ShopifyCurrencyCode["Nzd"] = "NZD";
1017
971
  /** Omani Rial (OMR). */
1018
- CurrencyCode["Omr"] = "OMR";
972
+ ShopifyCurrencyCode["Omr"] = "OMR";
1019
973
  /** Panamian Balboa (PAB). */
1020
- CurrencyCode["Pab"] = "PAB";
974
+ ShopifyCurrencyCode["Pab"] = "PAB";
1021
975
  /** Peruvian Nuevo Sol (PEN). */
1022
- CurrencyCode["Pen"] = "PEN";
976
+ ShopifyCurrencyCode["Pen"] = "PEN";
1023
977
  /** Papua New Guinean Kina (PGK). */
1024
- CurrencyCode["Pgk"] = "PGK";
978
+ ShopifyCurrencyCode["Pgk"] = "PGK";
1025
979
  /** Philippine Peso (PHP). */
1026
- CurrencyCode["Php"] = "PHP";
980
+ ShopifyCurrencyCode["Php"] = "PHP";
1027
981
  /** Pakistani Rupee (PKR). */
1028
- CurrencyCode["Pkr"] = "PKR";
982
+ ShopifyCurrencyCode["Pkr"] = "PKR";
1029
983
  /** Polish Zlotych (PLN). */
1030
- CurrencyCode["Pln"] = "PLN";
984
+ ShopifyCurrencyCode["Pln"] = "PLN";
1031
985
  /** Paraguayan Guarani (PYG). */
1032
- CurrencyCode["Pyg"] = "PYG";
986
+ ShopifyCurrencyCode["Pyg"] = "PYG";
1033
987
  /** Qatari Rial (QAR). */
1034
- CurrencyCode["Qar"] = "QAR";
988
+ ShopifyCurrencyCode["Qar"] = "QAR";
1035
989
  /** Romanian Lei (RON). */
1036
- CurrencyCode["Ron"] = "RON";
990
+ ShopifyCurrencyCode["Ron"] = "RON";
1037
991
  /** Serbian dinar (RSD). */
1038
- CurrencyCode["Rsd"] = "RSD";
992
+ ShopifyCurrencyCode["Rsd"] = "RSD";
1039
993
  /** Russian Rubles (RUB). */
1040
- CurrencyCode["Rub"] = "RUB";
994
+ ShopifyCurrencyCode["Rub"] = "RUB";
1041
995
  /** Rwandan Franc (RWF). */
1042
- CurrencyCode["Rwf"] = "RWF";
996
+ ShopifyCurrencyCode["Rwf"] = "RWF";
1043
997
  /** Saudi Riyal (SAR). */
1044
- CurrencyCode["Sar"] = "SAR";
998
+ ShopifyCurrencyCode["Sar"] = "SAR";
1045
999
  /** Solomon Islands Dollar (SBD). */
1046
- CurrencyCode["Sbd"] = "SBD";
1000
+ ShopifyCurrencyCode["Sbd"] = "SBD";
1047
1001
  /** Seychellois Rupee (SCR). */
1048
- CurrencyCode["Scr"] = "SCR";
1002
+ ShopifyCurrencyCode["Scr"] = "SCR";
1049
1003
  /** Sudanese Pound (SDG). */
1050
- CurrencyCode["Sdg"] = "SDG";
1004
+ ShopifyCurrencyCode["Sdg"] = "SDG";
1051
1005
  /** Swedish Kronor (SEK). */
1052
- CurrencyCode["Sek"] = "SEK";
1006
+ ShopifyCurrencyCode["Sek"] = "SEK";
1053
1007
  /** Singapore Dollars (SGD). */
1054
- CurrencyCode["Sgd"] = "SGD";
1008
+ ShopifyCurrencyCode["Sgd"] = "SGD";
1055
1009
  /** Saint Helena Pounds (SHP). */
1056
- CurrencyCode["Shp"] = "SHP";
1010
+ ShopifyCurrencyCode["Shp"] = "SHP";
1057
1011
  /** Sierra Leonean Leone (SLL). */
1058
- CurrencyCode["Sll"] = "SLL";
1012
+ ShopifyCurrencyCode["Sll"] = "SLL";
1059
1013
  /** Somali Shilling (SOS). */
1060
- CurrencyCode["Sos"] = "SOS";
1014
+ ShopifyCurrencyCode["Sos"] = "SOS";
1061
1015
  /** Surinamese Dollar (SRD). */
1062
- CurrencyCode["Srd"] = "SRD";
1016
+ ShopifyCurrencyCode["Srd"] = "SRD";
1063
1017
  /** South Sudanese Pound (SSP). */
1064
- CurrencyCode["Ssp"] = "SSP";
1018
+ ShopifyCurrencyCode["Ssp"] = "SSP";
1065
1019
  /**
1066
1020
  * Sao Tome And Principe Dobra (STD).
1067
- * @deprecated `STD` is deprecated. Use `STN` available from version `2022-07` onwards instead. Deprecated in version 0.82.0. Will be removed in version 0.85.0.
1021
+ * @deprecated `STD` is deprecated. Use `STN` available from version `2022-07` onwards instead. Deprecated in version 0.92.0. Will be removed in version 0.95.0.
1068
1022
  */
1069
- CurrencyCode["Std"] = "STD";
1023
+ ShopifyCurrencyCode["Std"] = "STD";
1070
1024
  /** Sao Tome And Principe Dobra (STN). */
1071
- CurrencyCode["Stn"] = "STN";
1025
+ ShopifyCurrencyCode["Stn"] = "STN";
1072
1026
  /** Syrian Pound (SYP). */
1073
- CurrencyCode["Syp"] = "SYP";
1027
+ ShopifyCurrencyCode["Syp"] = "SYP";
1074
1028
  /** Swazi Lilangeni (SZL). */
1075
- CurrencyCode["Szl"] = "SZL";
1029
+ ShopifyCurrencyCode["Szl"] = "SZL";
1076
1030
  /** Thai baht (THB). */
1077
- CurrencyCode["Thb"] = "THB";
1031
+ ShopifyCurrencyCode["Thb"] = "THB";
1078
1032
  /** Tajikistani Somoni (TJS). */
1079
- CurrencyCode["Tjs"] = "TJS";
1033
+ ShopifyCurrencyCode["Tjs"] = "TJS";
1080
1034
  /** Turkmenistani Manat (TMT). */
1081
- CurrencyCode["Tmt"] = "TMT";
1035
+ ShopifyCurrencyCode["Tmt"] = "TMT";
1082
1036
  /** Tunisian Dinar (TND). */
1083
- CurrencyCode["Tnd"] = "TND";
1037
+ ShopifyCurrencyCode["Tnd"] = "TND";
1084
1038
  /** Tongan Pa'anga (TOP). */
1085
- CurrencyCode["Top"] = "TOP";
1039
+ ShopifyCurrencyCode["Top"] = "TOP";
1086
1040
  /** Turkish Lira (TRY). */
1087
- CurrencyCode["Try"] = "TRY";
1041
+ ShopifyCurrencyCode["Try"] = "TRY";
1088
1042
  /** Trinidad and Tobago Dollars (TTD). */
1089
- CurrencyCode["Ttd"] = "TTD";
1043
+ ShopifyCurrencyCode["Ttd"] = "TTD";
1090
1044
  /** Taiwan Dollars (TWD). */
1091
- CurrencyCode["Twd"] = "TWD";
1045
+ ShopifyCurrencyCode["Twd"] = "TWD";
1092
1046
  /** Tanzanian Shilling (TZS). */
1093
- CurrencyCode["Tzs"] = "TZS";
1047
+ ShopifyCurrencyCode["Tzs"] = "TZS";
1094
1048
  /** Ukrainian Hryvnia (UAH). */
1095
- CurrencyCode["Uah"] = "UAH";
1049
+ ShopifyCurrencyCode["Uah"] = "UAH";
1096
1050
  /** Ugandan Shilling (UGX). */
1097
- CurrencyCode["Ugx"] = "UGX";
1051
+ ShopifyCurrencyCode["Ugx"] = "UGX";
1098
1052
  /** United States Dollars (USD). */
1099
- CurrencyCode["Usd"] = "USD";
1053
+ ShopifyCurrencyCode["Usd"] = "USD";
1100
1054
  /** Uruguayan Pesos (UYU). */
1101
- CurrencyCode["Uyu"] = "UYU";
1055
+ ShopifyCurrencyCode["Uyu"] = "UYU";
1102
1056
  /** Uzbekistan som (UZS). */
1103
- CurrencyCode["Uzs"] = "UZS";
1057
+ ShopifyCurrencyCode["Uzs"] = "UZS";
1104
1058
  /** Venezuelan Bolivares (VED). */
1105
- CurrencyCode["Ved"] = "VED";
1059
+ ShopifyCurrencyCode["Ved"] = "VED";
1106
1060
  /**
1107
1061
  * Venezuelan Bolivares (VEF).
1108
- * @deprecated `VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead. Deprecated in version 0.82.0. Will be removed in version 0.85.0.
1062
+ * @deprecated `VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead. Deprecated in version 0.92.0. Will be removed in version 0.95.0.
1109
1063
  */
1110
- CurrencyCode["Vef"] = "VEF";
1064
+ ShopifyCurrencyCode["Vef"] = "VEF";
1111
1065
  /** Venezuelan Bolivares Soberanos (VES). */
1112
- CurrencyCode["Ves"] = "VES";
1066
+ ShopifyCurrencyCode["Ves"] = "VES";
1113
1067
  /** Vietnamese đồng (VND). */
1114
- CurrencyCode["Vnd"] = "VND";
1068
+ ShopifyCurrencyCode["Vnd"] = "VND";
1115
1069
  /** Vanuatu Vatu (VUV). */
1116
- CurrencyCode["Vuv"] = "VUV";
1070
+ ShopifyCurrencyCode["Vuv"] = "VUV";
1117
1071
  /** Samoan Tala (WST). */
1118
- CurrencyCode["Wst"] = "WST";
1072
+ ShopifyCurrencyCode["Wst"] = "WST";
1119
1073
  /** Central African CFA Franc (XAF). */
1120
- CurrencyCode["Xaf"] = "XAF";
1074
+ ShopifyCurrencyCode["Xaf"] = "XAF";
1121
1075
  /** East Caribbean Dollar (XCD). */
1122
- CurrencyCode["Xcd"] = "XCD";
1076
+ ShopifyCurrencyCode["Xcd"] = "XCD";
1123
1077
  /** West African CFA franc (XOF). */
1124
- CurrencyCode["Xof"] = "XOF";
1078
+ ShopifyCurrencyCode["Xof"] = "XOF";
1125
1079
  /** CFP Franc (XPF). */
1126
- CurrencyCode["Xpf"] = "XPF";
1080
+ ShopifyCurrencyCode["Xpf"] = "XPF";
1127
1081
  /** Unrecognized currency. */
1128
- CurrencyCode["Xxx"] = "XXX";
1082
+ ShopifyCurrencyCode["Xxx"] = "XXX";
1129
1083
  /** Yemeni Rial (YER). */
1130
- CurrencyCode["Yer"] = "YER";
1084
+ ShopifyCurrencyCode["Yer"] = "YER";
1131
1085
  /** South African Rand (ZAR). */
1132
- CurrencyCode["Zar"] = "ZAR";
1086
+ ShopifyCurrencyCode["Zar"] = "ZAR";
1133
1087
  /** Zambian Kwacha (ZMW). */
1134
- CurrencyCode["Zmw"] = "ZMW";
1135
- })(CurrencyCode || (CurrencyCode = {}));
1136
- /** Possible error codes that can be returned by `CustomerUserError`. */
1137
- var CustomerErrorCode;
1138
- (function (CustomerErrorCode) {
1088
+ ShopifyCurrencyCode["Zmw"] = "ZMW";
1089
+ })(ShopifyCurrencyCode || (ShopifyCurrencyCode = {}));
1090
+ /**
1091
+ * Error codes returned by the [`CustomerUserError`](https://shopify.dev/docs/api/storefront/current/objects/CustomerUserError) object. These codes identify specific validation and processing failures for customer-related mutations, including account creation, updates, password resets, and address management.
1092
+ *
1093
+ */
1094
+ var ShopifyCustomerErrorCode;
1095
+ (function (ShopifyCustomerErrorCode) {
1139
1096
  /** Customer already enabled. */
1140
- CustomerErrorCode["AlreadyEnabled"] = "ALREADY_ENABLED";
1097
+ ShopifyCustomerErrorCode["AlreadyEnabled"] = "ALREADY_ENABLED";
1141
1098
  /** Input email contains an invalid domain name. */
1142
- CustomerErrorCode["BadDomain"] = "BAD_DOMAIN";
1099
+ ShopifyCustomerErrorCode["BadDomain"] = "BAD_DOMAIN";
1143
1100
  /** The input value is blank. */
1144
- CustomerErrorCode["Blank"] = "BLANK";
1101
+ ShopifyCustomerErrorCode["Blank"] = "BLANK";
1145
1102
  /** Input contains HTML tags. */
1146
- CustomerErrorCode["ContainsHtmlTags"] = "CONTAINS_HTML_TAGS";
1103
+ ShopifyCustomerErrorCode["ContainsHtmlTags"] = "CONTAINS_HTML_TAGS";
1147
1104
  /** Input contains URL. */
1148
- CustomerErrorCode["ContainsUrl"] = "CONTAINS_URL";
1105
+ ShopifyCustomerErrorCode["ContainsUrl"] = "CONTAINS_URL";
1149
1106
  /** Customer is disabled. */
1150
- CustomerErrorCode["CustomerDisabled"] = "CUSTOMER_DISABLED";
1107
+ ShopifyCustomerErrorCode["CustomerDisabled"] = "CUSTOMER_DISABLED";
1151
1108
  /** The input value is invalid. */
1152
- CustomerErrorCode["Invalid"] = "INVALID";
1109
+ ShopifyCustomerErrorCode["Invalid"] = "INVALID";
1153
1110
  /** Multipass token is not valid. */
1154
- CustomerErrorCode["InvalidMultipassRequest"] = "INVALID_MULTIPASS_REQUEST";
1111
+ ShopifyCustomerErrorCode["InvalidMultipassRequest"] = "INVALID_MULTIPASS_REQUEST";
1155
1112
  /** Address does not exist. */
1156
- CustomerErrorCode["NotFound"] = "NOT_FOUND";
1113
+ ShopifyCustomerErrorCode["NotFound"] = "NOT_FOUND";
1157
1114
  /** Input password starts or ends with whitespace. */
1158
- CustomerErrorCode["PasswordStartsOrEndsWithWhitespace"] = "PASSWORD_STARTS_OR_ENDS_WITH_WHITESPACE";
1115
+ ShopifyCustomerErrorCode["PasswordStartsOrEndsWithWhitespace"] = "PASSWORD_STARTS_OR_ENDS_WITH_WHITESPACE";
1159
1116
  /** The input value is already taken. */
1160
- CustomerErrorCode["Taken"] = "TAKEN";
1117
+ ShopifyCustomerErrorCode["Taken"] = "TAKEN";
1161
1118
  /** Invalid activation token. */
1162
- CustomerErrorCode["TokenInvalid"] = "TOKEN_INVALID";
1119
+ ShopifyCustomerErrorCode["TokenInvalid"] = "TOKEN_INVALID";
1163
1120
  /** The input value is too long. */
1164
- CustomerErrorCode["TooLong"] = "TOO_LONG";
1121
+ ShopifyCustomerErrorCode["TooLong"] = "TOO_LONG";
1165
1122
  /** The input value is too short. */
1166
- CustomerErrorCode["TooShort"] = "TOO_SHORT";
1123
+ ShopifyCustomerErrorCode["TooShort"] = "TOO_SHORT";
1167
1124
  /** Unidentified customer. */
1168
- CustomerErrorCode["UnidentifiedCustomer"] = "UNIDENTIFIED_CUSTOMER";
1169
- })(CustomerErrorCode || (CustomerErrorCode = {}));
1125
+ ShopifyCustomerErrorCode["UnidentifiedCustomer"] = "UNIDENTIFIED_CUSTOMER";
1126
+ })(ShopifyCustomerErrorCode || (ShopifyCustomerErrorCode = {}));
1170
1127
  /**
1171
- * Defines the types of available validation strategies for delivery addresses.
1128
+ * Controls how delivery addresses are validated during cart operations. The default validation checks only the country code, while strict validation verifies all address fields against Shopify's checkout rules and rejects invalid addresses.
1129
+ *
1130
+ * Used by [`DeliveryAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/DeliveryAddressInput) when setting buyer identity preferences, and by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput) when managing cart delivery addresses.
1172
1131
  *
1173
1132
  */
1174
- var DeliveryAddressValidationStrategy;
1175
- (function (DeliveryAddressValidationStrategy) {
1133
+ var ShopifyDeliveryAddressValidationStrategy;
1134
+ (function (ShopifyDeliveryAddressValidationStrategy) {
1176
1135
  /** Only the country code is validated. */
1177
- DeliveryAddressValidationStrategy["CountryCodeOnly"] = "COUNTRY_CODE_ONLY";
1136
+ ShopifyDeliveryAddressValidationStrategy["CountryCodeOnly"] = "COUNTRY_CODE_ONLY";
1178
1137
  /**
1179
1138
  * Strict validation is performed, i.e. all fields in the address are validated
1180
1139
  * according to Shopify's checkout rules. If the address fails validation, the cart will not be updated.
1181
1140
  *
1182
1141
  */
1183
- DeliveryAddressValidationStrategy["Strict"] = "STRICT";
1184
- })(DeliveryAddressValidationStrategy || (DeliveryAddressValidationStrategy = {}));
1142
+ ShopifyDeliveryAddressValidationStrategy["Strict"] = "STRICT";
1143
+ })(ShopifyDeliveryAddressValidationStrategy || (ShopifyDeliveryAddressValidationStrategy = {}));
1185
1144
  /** List of different delivery method types. */
1186
- var DeliveryMethodType;
1187
- (function (DeliveryMethodType) {
1145
+ var ShopifyDeliveryMethodType;
1146
+ (function (ShopifyDeliveryMethodType) {
1188
1147
  /** Local Delivery. */
1189
- DeliveryMethodType["Local"] = "LOCAL";
1148
+ ShopifyDeliveryMethodType["Local"] = "LOCAL";
1190
1149
  /** None. */
1191
- DeliveryMethodType["None"] = "NONE";
1150
+ ShopifyDeliveryMethodType["None"] = "NONE";
1192
1151
  /** Shipping to a Pickup Point. */
1193
- DeliveryMethodType["PickupPoint"] = "PICKUP_POINT";
1152
+ ShopifyDeliveryMethodType["PickupPoint"] = "PICKUP_POINT";
1194
1153
  /** Local Pickup. */
1195
- DeliveryMethodType["PickUp"] = "PICK_UP";
1154
+ ShopifyDeliveryMethodType["PickUp"] = "PICK_UP";
1196
1155
  /** Retail. */
1197
- DeliveryMethodType["Retail"] = "RETAIL";
1156
+ ShopifyDeliveryMethodType["Retail"] = "RETAIL";
1198
1157
  /** Shipping. */
1199
- DeliveryMethodType["Shipping"] = "SHIPPING";
1200
- })(DeliveryMethodType || (DeliveryMethodType = {}));
1158
+ ShopifyDeliveryMethodType["Shipping"] = "SHIPPING";
1159
+ })(ShopifyDeliveryMethodType || (ShopifyDeliveryMethodType = {}));
1201
1160
  /** Digital wallet, such as Apple Pay, which can be used for accelerated checkouts. */
1202
- var DigitalWallet;
1203
- (function (DigitalWallet) {
1161
+ var ShopifyDigitalWallet;
1162
+ (function (ShopifyDigitalWallet) {
1204
1163
  /** Android Pay. */
1205
- DigitalWallet["AndroidPay"] = "ANDROID_PAY";
1164
+ ShopifyDigitalWallet["AndroidPay"] = "ANDROID_PAY";
1206
1165
  /** Apple Pay. */
1207
- DigitalWallet["ApplePay"] = "APPLE_PAY";
1166
+ ShopifyDigitalWallet["ApplePay"] = "APPLE_PAY";
1208
1167
  /** Google Pay. */
1209
- DigitalWallet["GooglePay"] = "GOOGLE_PAY";
1168
+ ShopifyDigitalWallet["GooglePay"] = "GOOGLE_PAY";
1210
1169
  /** Shopify Pay. */
1211
- DigitalWallet["ShopifyPay"] = "SHOPIFY_PAY";
1212
- })(DigitalWallet || (DigitalWallet = {}));
1213
- /** The method by which the discount's value is allocated onto its entitled lines. */
1214
- var DiscountApplicationAllocationMethod;
1215
- (function (DiscountApplicationAllocationMethod) {
1170
+ ShopifyDigitalWallet["ShopifyPay"] = "SHOPIFY_PAY";
1171
+ })(ShopifyDigitalWallet || (ShopifyDigitalWallet = {}));
1172
+ /**
1173
+ * Controls how a discount's value is distributed across entitled lines. A discount can either spread its value across all entitled lines or apply the full value to each line individually.
1174
+ *
1175
+ * Used by the [`DiscountApplication`](https://shopify.dev/docs/api/storefront/current/interfaces/DiscountApplication) interface and its implementations to capture the intentions of a discount source at the time of application.
1176
+ *
1177
+ */
1178
+ var ShopifyDiscountApplicationAllocationMethod;
1179
+ (function (ShopifyDiscountApplicationAllocationMethod) {
1216
1180
  /** The value is spread across all entitled lines. */
1217
- DiscountApplicationAllocationMethod["Across"] = "ACROSS";
1181
+ ShopifyDiscountApplicationAllocationMethod["Across"] = "ACROSS";
1218
1182
  /** The value is applied onto every entitled line. */
1219
- DiscountApplicationAllocationMethod["Each"] = "EACH";
1183
+ ShopifyDiscountApplicationAllocationMethod["Each"] = "EACH";
1220
1184
  /**
1221
1185
  * The value is specifically applied onto a particular line.
1222
- * @deprecated Use ACROSS instead. Deprecated in version 0.82.0. Will be removed in version 0.85.0.
1186
+ * @deprecated Use ACROSS instead. Deprecated in version 0.92.0. Will be removed in version 0.95.0.
1223
1187
  */
1224
- DiscountApplicationAllocationMethod["One"] = "ONE";
1225
- })(DiscountApplicationAllocationMethod || (DiscountApplicationAllocationMethod = {}));
1188
+ ShopifyDiscountApplicationAllocationMethod["One"] = "ONE";
1189
+ })(ShopifyDiscountApplicationAllocationMethod || (ShopifyDiscountApplicationAllocationMethod = {}));
1226
1190
  /**
1227
1191
  * The lines on the order to which the discount is applied, of the type defined by
1228
1192
  * the discount application's `targetType`. For example, the value `ENTITLED`, combined with a `targetType` of
@@ -1230,39 +1194,39 @@ var DiscountApplicationAllocationMethod;
1230
1194
  * The value `ALL`, combined with a `targetType` of `SHIPPING_LINE`, applies the discount on all shipping lines.
1231
1195
  *
1232
1196
  */
1233
- var DiscountApplicationTargetSelection;
1234
- (function (DiscountApplicationTargetSelection) {
1197
+ var ShopifyDiscountApplicationTargetSelection;
1198
+ (function (ShopifyDiscountApplicationTargetSelection) {
1235
1199
  /** The discount is allocated onto all the lines. */
1236
- DiscountApplicationTargetSelection["All"] = "ALL";
1200
+ ShopifyDiscountApplicationTargetSelection["All"] = "ALL";
1237
1201
  /** The discount is allocated onto only the lines that it's entitled for. */
1238
- DiscountApplicationTargetSelection["Entitled"] = "ENTITLED";
1202
+ ShopifyDiscountApplicationTargetSelection["Entitled"] = "ENTITLED";
1239
1203
  /** The discount is allocated onto explicitly chosen lines. */
1240
- DiscountApplicationTargetSelection["Explicit"] = "EXPLICIT";
1241
- })(DiscountApplicationTargetSelection || (DiscountApplicationTargetSelection = {}));
1204
+ ShopifyDiscountApplicationTargetSelection["Explicit"] = "EXPLICIT";
1205
+ })(ShopifyDiscountApplicationTargetSelection || (ShopifyDiscountApplicationTargetSelection = {}));
1242
1206
  /**
1243
1207
  * The type of line (i.e. line item or shipping line) on an order that the discount is applicable towards.
1244
1208
  *
1245
1209
  */
1246
- var DiscountApplicationTargetType;
1247
- (function (DiscountApplicationTargetType) {
1210
+ var ShopifyDiscountApplicationTargetType;
1211
+ (function (ShopifyDiscountApplicationTargetType) {
1248
1212
  /** The discount applies onto line items. */
1249
- DiscountApplicationTargetType["LineItem"] = "LINE_ITEM";
1213
+ ShopifyDiscountApplicationTargetType["LineItem"] = "LINE_ITEM";
1250
1214
  /** The discount applies onto shipping lines. */
1251
- DiscountApplicationTargetType["ShippingLine"] = "SHIPPING_LINE";
1252
- })(DiscountApplicationTargetType || (DiscountApplicationTargetType = {}));
1215
+ ShopifyDiscountApplicationTargetType["ShippingLine"] = "SHIPPING_LINE";
1216
+ })(ShopifyDiscountApplicationTargetType || (ShopifyDiscountApplicationTargetType = {}));
1253
1217
  /**
1254
1218
  * Defines how to present the filter values, specifies the presentation of the filter.
1255
1219
  *
1256
1220
  */
1257
- var FilterPresentation;
1258
- (function (FilterPresentation) {
1221
+ var ShopifyFilterPresentation;
1222
+ (function (ShopifyFilterPresentation) {
1259
1223
  /** Image presentation, filter values display an image. */
1260
- FilterPresentation["Image"] = "IMAGE";
1224
+ ShopifyFilterPresentation["Image"] = "IMAGE";
1261
1225
  /** Swatch presentation, filter values display color or image patterns. */
1262
- FilterPresentation["Swatch"] = "SWATCH";
1226
+ ShopifyFilterPresentation["Swatch"] = "SWATCH";
1263
1227
  /** Text presentation, no additional visual display for filter values. */
1264
- FilterPresentation["Text"] = "TEXT";
1265
- })(FilterPresentation || (FilterPresentation = {}));
1228
+ ShopifyFilterPresentation["Text"] = "TEXT";
1229
+ })(ShopifyFilterPresentation || (ShopifyFilterPresentation = {}));
1266
1230
  /**
1267
1231
  * The type of data that the filter group represents.
1268
1232
  *
@@ -1270,1041 +1234,1172 @@ var FilterPresentation;
1270
1234
  * (https://shopify.dev/custom-storefronts/products-collections/filter-products).
1271
1235
  *
1272
1236
  */
1273
- var FilterType;
1274
- (function (FilterType) {
1237
+ var ShopifyFilterType;
1238
+ (function (ShopifyFilterType) {
1275
1239
  /** A boolean value. */
1276
- FilterType["Boolean"] = "BOOLEAN";
1240
+ ShopifyFilterType["Boolean"] = "BOOLEAN";
1277
1241
  /** A list of selectable values. */
1278
- FilterType["List"] = "LIST";
1242
+ ShopifyFilterType["List"] = "LIST";
1279
1243
  /** A range of prices. */
1280
- FilterType["PriceRange"] = "PRICE_RANGE";
1281
- })(FilterType || (FilterType = {}));
1244
+ ShopifyFilterType["PriceRange"] = "PRICE_RANGE";
1245
+ })(ShopifyFilterType || (ShopifyFilterType = {}));
1282
1246
  /** List of supported image content types. */
1283
- var ImageContentType;
1284
- (function (ImageContentType) {
1247
+ var ShopifyImageContentType;
1248
+ (function (ShopifyImageContentType) {
1285
1249
  /** A JPG image. */
1286
- ImageContentType["Jpg"] = "JPG";
1250
+ ShopifyImageContentType["Jpg"] = "JPG";
1287
1251
  /** A PNG image. */
1288
- ImageContentType["Png"] = "PNG";
1252
+ ShopifyImageContentType["Png"] = "PNG";
1289
1253
  /** A WEBP image. */
1290
- ImageContentType["Webp"] = "WEBP";
1291
- })(ImageContentType || (ImageContentType = {}));
1292
- /** Language codes supported by Shopify. */
1293
- var LanguageCode;
1294
- (function (LanguageCode) {
1254
+ ShopifyImageContentType["Webp"] = "WEBP";
1255
+ })(ShopifyImageContentType || (ShopifyImageContentType = {}));
1256
+ /**
1257
+ * Supported languages for retrieving translated storefront content. Pass a language code to the [`@inContext`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context) directive to return product titles, descriptions, and other translatable fields in that language.
1258
+ *
1259
+ * The [`Localization`](https://shopify.dev/docs/api/storefront/current/objects/Localization) object provides the list of available languages for the active country, and each [`Country`](https://shopify.dev/docs/api/storefront/current/objects/Country) in [`availableCountries`](https://shopify.dev/docs/api/storefront/current/objects/Localization#field-Localization.fields.availableCountries) includes its own available languages.
1260
+ *
1261
+ */
1262
+ var ShopifyLanguageCode;
1263
+ (function (ShopifyLanguageCode) {
1295
1264
  /** Afrikaans. */
1296
- LanguageCode["Af"] = "AF";
1265
+ ShopifyLanguageCode["Af"] = "AF";
1297
1266
  /** Akan. */
1298
- LanguageCode["Ak"] = "AK";
1267
+ ShopifyLanguageCode["Ak"] = "AK";
1299
1268
  /** Amharic. */
1300
- LanguageCode["Am"] = "AM";
1269
+ ShopifyLanguageCode["Am"] = "AM";
1301
1270
  /** Arabic. */
1302
- LanguageCode["Ar"] = "AR";
1271
+ ShopifyLanguageCode["Ar"] = "AR";
1303
1272
  /** Assamese. */
1304
- LanguageCode["As"] = "AS";
1273
+ ShopifyLanguageCode["As"] = "AS";
1305
1274
  /** Azerbaijani. */
1306
- LanguageCode["Az"] = "AZ";
1275
+ ShopifyLanguageCode["Az"] = "AZ";
1307
1276
  /** Belarusian. */
1308
- LanguageCode["Be"] = "BE";
1277
+ ShopifyLanguageCode["Be"] = "BE";
1309
1278
  /** Bulgarian. */
1310
- LanguageCode["Bg"] = "BG";
1279
+ ShopifyLanguageCode["Bg"] = "BG";
1311
1280
  /** Bambara. */
1312
- LanguageCode["Bm"] = "BM";
1281
+ ShopifyLanguageCode["Bm"] = "BM";
1313
1282
  /** Bangla. */
1314
- LanguageCode["Bn"] = "BN";
1283
+ ShopifyLanguageCode["Bn"] = "BN";
1315
1284
  /** Tibetan. */
1316
- LanguageCode["Bo"] = "BO";
1285
+ ShopifyLanguageCode["Bo"] = "BO";
1317
1286
  /** Breton. */
1318
- LanguageCode["Br"] = "BR";
1287
+ ShopifyLanguageCode["Br"] = "BR";
1319
1288
  /** Bosnian. */
1320
- LanguageCode["Bs"] = "BS";
1289
+ ShopifyLanguageCode["Bs"] = "BS";
1321
1290
  /** Catalan. */
1322
- LanguageCode["Ca"] = "CA";
1291
+ ShopifyLanguageCode["Ca"] = "CA";
1323
1292
  /** Chechen. */
1324
- LanguageCode["Ce"] = "CE";
1293
+ ShopifyLanguageCode["Ce"] = "CE";
1325
1294
  /** Central Kurdish. */
1326
- LanguageCode["Ckb"] = "CKB";
1295
+ ShopifyLanguageCode["Ckb"] = "CKB";
1327
1296
  /** Czech. */
1328
- LanguageCode["Cs"] = "CS";
1297
+ ShopifyLanguageCode["Cs"] = "CS";
1329
1298
  /** Church Slavic. */
1330
- LanguageCode["Cu"] = "CU";
1299
+ ShopifyLanguageCode["Cu"] = "CU";
1331
1300
  /** Welsh. */
1332
- LanguageCode["Cy"] = "CY";
1301
+ ShopifyLanguageCode["Cy"] = "CY";
1333
1302
  /** Danish. */
1334
- LanguageCode["Da"] = "DA";
1303
+ ShopifyLanguageCode["Da"] = "DA";
1335
1304
  /** German. */
1336
- LanguageCode["De"] = "DE";
1305
+ ShopifyLanguageCode["De"] = "DE";
1337
1306
  /** Dzongkha. */
1338
- LanguageCode["Dz"] = "DZ";
1307
+ ShopifyLanguageCode["Dz"] = "DZ";
1339
1308
  /** Ewe. */
1340
- LanguageCode["Ee"] = "EE";
1309
+ ShopifyLanguageCode["Ee"] = "EE";
1341
1310
  /** Greek. */
1342
- LanguageCode["El"] = "EL";
1311
+ ShopifyLanguageCode["El"] = "EL";
1343
1312
  /** English. */
1344
- LanguageCode["En"] = "EN";
1313
+ ShopifyLanguageCode["En"] = "EN";
1345
1314
  /** Esperanto. */
1346
- LanguageCode["Eo"] = "EO";
1315
+ ShopifyLanguageCode["Eo"] = "EO";
1347
1316
  /** Spanish. */
1348
- LanguageCode["Es"] = "ES";
1317
+ ShopifyLanguageCode["Es"] = "ES";
1349
1318
  /** Estonian. */
1350
- LanguageCode["Et"] = "ET";
1319
+ ShopifyLanguageCode["Et"] = "ET";
1351
1320
  /** Basque. */
1352
- LanguageCode["Eu"] = "EU";
1321
+ ShopifyLanguageCode["Eu"] = "EU";
1353
1322
  /** Persian. */
1354
- LanguageCode["Fa"] = "FA";
1323
+ ShopifyLanguageCode["Fa"] = "FA";
1355
1324
  /** Fulah. */
1356
- LanguageCode["Ff"] = "FF";
1325
+ ShopifyLanguageCode["Ff"] = "FF";
1357
1326
  /** Finnish. */
1358
- LanguageCode["Fi"] = "FI";
1327
+ ShopifyLanguageCode["Fi"] = "FI";
1359
1328
  /** Filipino. */
1360
- LanguageCode["Fil"] = "FIL";
1329
+ ShopifyLanguageCode["Fil"] = "FIL";
1361
1330
  /** Faroese. */
1362
- LanguageCode["Fo"] = "FO";
1331
+ ShopifyLanguageCode["Fo"] = "FO";
1363
1332
  /** French. */
1364
- LanguageCode["Fr"] = "FR";
1333
+ ShopifyLanguageCode["Fr"] = "FR";
1365
1334
  /** Western Frisian. */
1366
- LanguageCode["Fy"] = "FY";
1335
+ ShopifyLanguageCode["Fy"] = "FY";
1367
1336
  /** Irish. */
1368
- LanguageCode["Ga"] = "GA";
1337
+ ShopifyLanguageCode["Ga"] = "GA";
1369
1338
  /** Scottish Gaelic. */
1370
- LanguageCode["Gd"] = "GD";
1339
+ ShopifyLanguageCode["Gd"] = "GD";
1371
1340
  /** Galician. */
1372
- LanguageCode["Gl"] = "GL";
1341
+ ShopifyLanguageCode["Gl"] = "GL";
1373
1342
  /** Gujarati. */
1374
- LanguageCode["Gu"] = "GU";
1343
+ ShopifyLanguageCode["Gu"] = "GU";
1375
1344
  /** Manx. */
1376
- LanguageCode["Gv"] = "GV";
1345
+ ShopifyLanguageCode["Gv"] = "GV";
1377
1346
  /** Hausa. */
1378
- LanguageCode["Ha"] = "HA";
1347
+ ShopifyLanguageCode["Ha"] = "HA";
1379
1348
  /** Hebrew. */
1380
- LanguageCode["He"] = "HE";
1349
+ ShopifyLanguageCode["He"] = "HE";
1381
1350
  /** Hindi. */
1382
- LanguageCode["Hi"] = "HI";
1351
+ ShopifyLanguageCode["Hi"] = "HI";
1383
1352
  /** Croatian. */
1384
- LanguageCode["Hr"] = "HR";
1353
+ ShopifyLanguageCode["Hr"] = "HR";
1385
1354
  /** Hungarian. */
1386
- LanguageCode["Hu"] = "HU";
1355
+ ShopifyLanguageCode["Hu"] = "HU";
1387
1356
  /** Armenian. */
1388
- LanguageCode["Hy"] = "HY";
1357
+ ShopifyLanguageCode["Hy"] = "HY";
1389
1358
  /** Interlingua. */
1390
- LanguageCode["Ia"] = "IA";
1359
+ ShopifyLanguageCode["Ia"] = "IA";
1391
1360
  /** Indonesian. */
1392
- LanguageCode["Id"] = "ID";
1361
+ ShopifyLanguageCode["Id"] = "ID";
1393
1362
  /** Igbo. */
1394
- LanguageCode["Ig"] = "IG";
1363
+ ShopifyLanguageCode["Ig"] = "IG";
1395
1364
  /** Sichuan Yi. */
1396
- LanguageCode["Ii"] = "II";
1365
+ ShopifyLanguageCode["Ii"] = "II";
1397
1366
  /** Icelandic. */
1398
- LanguageCode["Is"] = "IS";
1367
+ ShopifyLanguageCode["Is"] = "IS";
1399
1368
  /** Italian. */
1400
- LanguageCode["It"] = "IT";
1369
+ ShopifyLanguageCode["It"] = "IT";
1401
1370
  /** Japanese. */
1402
- LanguageCode["Ja"] = "JA";
1371
+ ShopifyLanguageCode["Ja"] = "JA";
1403
1372
  /** Javanese. */
1404
- LanguageCode["Jv"] = "JV";
1373
+ ShopifyLanguageCode["Jv"] = "JV";
1405
1374
  /** Georgian. */
1406
- LanguageCode["Ka"] = "KA";
1375
+ ShopifyLanguageCode["Ka"] = "KA";
1407
1376
  /** Kikuyu. */
1408
- LanguageCode["Ki"] = "KI";
1377
+ ShopifyLanguageCode["Ki"] = "KI";
1409
1378
  /** Kazakh. */
1410
- LanguageCode["Kk"] = "KK";
1379
+ ShopifyLanguageCode["Kk"] = "KK";
1411
1380
  /** Kalaallisut. */
1412
- LanguageCode["Kl"] = "KL";
1381
+ ShopifyLanguageCode["Kl"] = "KL";
1413
1382
  /** Khmer. */
1414
- LanguageCode["Km"] = "KM";
1383
+ ShopifyLanguageCode["Km"] = "KM";
1415
1384
  /** Kannada. */
1416
- LanguageCode["Kn"] = "KN";
1385
+ ShopifyLanguageCode["Kn"] = "KN";
1417
1386
  /** Korean. */
1418
- LanguageCode["Ko"] = "KO";
1387
+ ShopifyLanguageCode["Ko"] = "KO";
1419
1388
  /** Kashmiri. */
1420
- LanguageCode["Ks"] = "KS";
1389
+ ShopifyLanguageCode["Ks"] = "KS";
1421
1390
  /** Kurdish. */
1422
- LanguageCode["Ku"] = "KU";
1391
+ ShopifyLanguageCode["Ku"] = "KU";
1423
1392
  /** Cornish. */
1424
- LanguageCode["Kw"] = "KW";
1393
+ ShopifyLanguageCode["Kw"] = "KW";
1425
1394
  /** Kyrgyz. */
1426
- LanguageCode["Ky"] = "KY";
1395
+ ShopifyLanguageCode["Ky"] = "KY";
1427
1396
  /** Latin. */
1428
- LanguageCode["La"] = "LA";
1397
+ ShopifyLanguageCode["La"] = "LA";
1429
1398
  /** Luxembourgish. */
1430
- LanguageCode["Lb"] = "LB";
1399
+ ShopifyLanguageCode["Lb"] = "LB";
1431
1400
  /** Ganda. */
1432
- LanguageCode["Lg"] = "LG";
1401
+ ShopifyLanguageCode["Lg"] = "LG";
1433
1402
  /** Lingala. */
1434
- LanguageCode["Ln"] = "LN";
1403
+ ShopifyLanguageCode["Ln"] = "LN";
1435
1404
  /** Lao. */
1436
- LanguageCode["Lo"] = "LO";
1405
+ ShopifyLanguageCode["Lo"] = "LO";
1437
1406
  /** Lithuanian. */
1438
- LanguageCode["Lt"] = "LT";
1407
+ ShopifyLanguageCode["Lt"] = "LT";
1439
1408
  /** Luba-Katanga. */
1440
- LanguageCode["Lu"] = "LU";
1409
+ ShopifyLanguageCode["Lu"] = "LU";
1441
1410
  /** Latvian. */
1442
- LanguageCode["Lv"] = "LV";
1411
+ ShopifyLanguageCode["Lv"] = "LV";
1443
1412
  /** Malagasy. */
1444
- LanguageCode["Mg"] = "MG";
1413
+ ShopifyLanguageCode["Mg"] = "MG";
1445
1414
  /** Māori. */
1446
- LanguageCode["Mi"] = "MI";
1415
+ ShopifyLanguageCode["Mi"] = "MI";
1447
1416
  /** Macedonian. */
1448
- LanguageCode["Mk"] = "MK";
1417
+ ShopifyLanguageCode["Mk"] = "MK";
1449
1418
  /** Malayalam. */
1450
- LanguageCode["Ml"] = "ML";
1419
+ ShopifyLanguageCode["Ml"] = "ML";
1451
1420
  /** Mongolian. */
1452
- LanguageCode["Mn"] = "MN";
1421
+ ShopifyLanguageCode["Mn"] = "MN";
1453
1422
  /** Moldavian. */
1454
- LanguageCode["Mo"] = "MO";
1423
+ ShopifyLanguageCode["Mo"] = "MO";
1455
1424
  /** Marathi. */
1456
- LanguageCode["Mr"] = "MR";
1425
+ ShopifyLanguageCode["Mr"] = "MR";
1457
1426
  /** Malay. */
1458
- LanguageCode["Ms"] = "MS";
1427
+ ShopifyLanguageCode["Ms"] = "MS";
1459
1428
  /** Maltese. */
1460
- LanguageCode["Mt"] = "MT";
1429
+ ShopifyLanguageCode["Mt"] = "MT";
1461
1430
  /** Burmese. */
1462
- LanguageCode["My"] = "MY";
1431
+ ShopifyLanguageCode["My"] = "MY";
1463
1432
  /** Norwegian (Bokmål). */
1464
- LanguageCode["Nb"] = "NB";
1433
+ ShopifyLanguageCode["Nb"] = "NB";
1465
1434
  /** North Ndebele. */
1466
- LanguageCode["Nd"] = "ND";
1435
+ ShopifyLanguageCode["Nd"] = "ND";
1467
1436
  /** Nepali. */
1468
- LanguageCode["Ne"] = "NE";
1437
+ ShopifyLanguageCode["Ne"] = "NE";
1469
1438
  /** Dutch. */
1470
- LanguageCode["Nl"] = "NL";
1439
+ ShopifyLanguageCode["Nl"] = "NL";
1471
1440
  /** Norwegian Nynorsk. */
1472
- LanguageCode["Nn"] = "NN";
1441
+ ShopifyLanguageCode["Nn"] = "NN";
1473
1442
  /** Norwegian. */
1474
- LanguageCode["No"] = "NO";
1443
+ ShopifyLanguageCode["No"] = "NO";
1475
1444
  /** Oromo. */
1476
- LanguageCode["Om"] = "OM";
1445
+ ShopifyLanguageCode["Om"] = "OM";
1477
1446
  /** Odia. */
1478
- LanguageCode["Or"] = "OR";
1447
+ ShopifyLanguageCode["Or"] = "OR";
1479
1448
  /** Ossetic. */
1480
- LanguageCode["Os"] = "OS";
1449
+ ShopifyLanguageCode["Os"] = "OS";
1481
1450
  /** Punjabi. */
1482
- LanguageCode["Pa"] = "PA";
1451
+ ShopifyLanguageCode["Pa"] = "PA";
1483
1452
  /** Polish. */
1484
- LanguageCode["Pl"] = "PL";
1453
+ ShopifyLanguageCode["Pl"] = "PL";
1485
1454
  /** Pashto. */
1486
- LanguageCode["Ps"] = "PS";
1455
+ ShopifyLanguageCode["Ps"] = "PS";
1487
1456
  /** Portuguese. */
1488
- LanguageCode["Pt"] = "PT";
1457
+ ShopifyLanguageCode["Pt"] = "PT";
1489
1458
  /** Portuguese (Brazil). */
1490
- LanguageCode["PtBr"] = "PT_BR";
1459
+ ShopifyLanguageCode["PtBr"] = "PT_BR";
1491
1460
  /** Portuguese (Portugal). */
1492
- LanguageCode["PtPt"] = "PT_PT";
1461
+ ShopifyLanguageCode["PtPt"] = "PT_PT";
1493
1462
  /** Quechua. */
1494
- LanguageCode["Qu"] = "QU";
1463
+ ShopifyLanguageCode["Qu"] = "QU";
1495
1464
  /** Romansh. */
1496
- LanguageCode["Rm"] = "RM";
1465
+ ShopifyLanguageCode["Rm"] = "RM";
1497
1466
  /** Rundi. */
1498
- LanguageCode["Rn"] = "RN";
1467
+ ShopifyLanguageCode["Rn"] = "RN";
1499
1468
  /** Romanian. */
1500
- LanguageCode["Ro"] = "RO";
1469
+ ShopifyLanguageCode["Ro"] = "RO";
1501
1470
  /** Russian. */
1502
- LanguageCode["Ru"] = "RU";
1471
+ ShopifyLanguageCode["Ru"] = "RU";
1503
1472
  /** Kinyarwanda. */
1504
- LanguageCode["Rw"] = "RW";
1473
+ ShopifyLanguageCode["Rw"] = "RW";
1505
1474
  /** Sanskrit. */
1506
- LanguageCode["Sa"] = "SA";
1475
+ ShopifyLanguageCode["Sa"] = "SA";
1507
1476
  /** Sardinian. */
1508
- LanguageCode["Sc"] = "SC";
1477
+ ShopifyLanguageCode["Sc"] = "SC";
1509
1478
  /** Sindhi. */
1510
- LanguageCode["Sd"] = "SD";
1479
+ ShopifyLanguageCode["Sd"] = "SD";
1511
1480
  /** Northern Sami. */
1512
- LanguageCode["Se"] = "SE";
1481
+ ShopifyLanguageCode["Se"] = "SE";
1513
1482
  /** Sango. */
1514
- LanguageCode["Sg"] = "SG";
1483
+ ShopifyLanguageCode["Sg"] = "SG";
1515
1484
  /** Serbo-Croatian. */
1516
- LanguageCode["Sh"] = "SH";
1485
+ ShopifyLanguageCode["Sh"] = "SH";
1517
1486
  /** Sinhala. */
1518
- LanguageCode["Si"] = "SI";
1487
+ ShopifyLanguageCode["Si"] = "SI";
1519
1488
  /** Slovak. */
1520
- LanguageCode["Sk"] = "SK";
1489
+ ShopifyLanguageCode["Sk"] = "SK";
1521
1490
  /** Slovenian. */
1522
- LanguageCode["Sl"] = "SL";
1491
+ ShopifyLanguageCode["Sl"] = "SL";
1523
1492
  /** Shona. */
1524
- LanguageCode["Sn"] = "SN";
1493
+ ShopifyLanguageCode["Sn"] = "SN";
1525
1494
  /** Somali. */
1526
- LanguageCode["So"] = "SO";
1495
+ ShopifyLanguageCode["So"] = "SO";
1527
1496
  /** Albanian. */
1528
- LanguageCode["Sq"] = "SQ";
1497
+ ShopifyLanguageCode["Sq"] = "SQ";
1529
1498
  /** Serbian. */
1530
- LanguageCode["Sr"] = "SR";
1499
+ ShopifyLanguageCode["Sr"] = "SR";
1531
1500
  /** Sundanese. */
1532
- LanguageCode["Su"] = "SU";
1501
+ ShopifyLanguageCode["Su"] = "SU";
1533
1502
  /** Swedish. */
1534
- LanguageCode["Sv"] = "SV";
1503
+ ShopifyLanguageCode["Sv"] = "SV";
1535
1504
  /** Swahili. */
1536
- LanguageCode["Sw"] = "SW";
1505
+ ShopifyLanguageCode["Sw"] = "SW";
1537
1506
  /** Tamil. */
1538
- LanguageCode["Ta"] = "TA";
1507
+ ShopifyLanguageCode["Ta"] = "TA";
1539
1508
  /** Telugu. */
1540
- LanguageCode["Te"] = "TE";
1509
+ ShopifyLanguageCode["Te"] = "TE";
1541
1510
  /** Tajik. */
1542
- LanguageCode["Tg"] = "TG";
1511
+ ShopifyLanguageCode["Tg"] = "TG";
1543
1512
  /** Thai. */
1544
- LanguageCode["Th"] = "TH";
1513
+ ShopifyLanguageCode["Th"] = "TH";
1545
1514
  /** Tigrinya. */
1546
- LanguageCode["Ti"] = "TI";
1515
+ ShopifyLanguageCode["Ti"] = "TI";
1547
1516
  /** Turkmen. */
1548
- LanguageCode["Tk"] = "TK";
1517
+ ShopifyLanguageCode["Tk"] = "TK";
1549
1518
  /** Tongan. */
1550
- LanguageCode["To"] = "TO";
1519
+ ShopifyLanguageCode["To"] = "TO";
1551
1520
  /** Turkish. */
1552
- LanguageCode["Tr"] = "TR";
1521
+ ShopifyLanguageCode["Tr"] = "TR";
1553
1522
  /** Tatar. */
1554
- LanguageCode["Tt"] = "TT";
1523
+ ShopifyLanguageCode["Tt"] = "TT";
1555
1524
  /** Uyghur. */
1556
- LanguageCode["Ug"] = "UG";
1525
+ ShopifyLanguageCode["Ug"] = "UG";
1557
1526
  /** Ukrainian. */
1558
- LanguageCode["Uk"] = "UK";
1527
+ ShopifyLanguageCode["Uk"] = "UK";
1559
1528
  /** Urdu. */
1560
- LanguageCode["Ur"] = "UR";
1529
+ ShopifyLanguageCode["Ur"] = "UR";
1561
1530
  /** Uzbek. */
1562
- LanguageCode["Uz"] = "UZ";
1531
+ ShopifyLanguageCode["Uz"] = "UZ";
1563
1532
  /** Vietnamese. */
1564
- LanguageCode["Vi"] = "VI";
1533
+ ShopifyLanguageCode["Vi"] = "VI";
1565
1534
  /** Volapük. */
1566
- LanguageCode["Vo"] = "VO";
1535
+ ShopifyLanguageCode["Vo"] = "VO";
1567
1536
  /** Wolof. */
1568
- LanguageCode["Wo"] = "WO";
1537
+ ShopifyLanguageCode["Wo"] = "WO";
1569
1538
  /** Xhosa. */
1570
- LanguageCode["Xh"] = "XH";
1539
+ ShopifyLanguageCode["Xh"] = "XH";
1571
1540
  /** Yiddish. */
1572
- LanguageCode["Yi"] = "YI";
1541
+ ShopifyLanguageCode["Yi"] = "YI";
1573
1542
  /** Yoruba. */
1574
- LanguageCode["Yo"] = "YO";
1543
+ ShopifyLanguageCode["Yo"] = "YO";
1575
1544
  /** Chinese. */
1576
- LanguageCode["Zh"] = "ZH";
1545
+ ShopifyLanguageCode["Zh"] = "ZH";
1577
1546
  /** Chinese (Simplified). */
1578
- LanguageCode["ZhCn"] = "ZH_CN";
1547
+ ShopifyLanguageCode["ZhCn"] = "ZH_CN";
1579
1548
  /** Chinese (Traditional). */
1580
- LanguageCode["ZhTw"] = "ZH_TW";
1549
+ ShopifyLanguageCode["ZhTw"] = "ZH_TW";
1581
1550
  /** Zulu. */
1582
- LanguageCode["Zu"] = "ZU";
1583
- })(LanguageCode || (LanguageCode = {}));
1551
+ ShopifyLanguageCode["Zu"] = "ZU";
1552
+ })(ShopifyLanguageCode || (ShopifyLanguageCode = {}));
1584
1553
  /** The set of valid sort keys for the Location query. */
1585
- var LocationSortKeys;
1586
- (function (LocationSortKeys) {
1554
+ var ShopifyLocationSortKeys;
1555
+ (function (ShopifyLocationSortKeys) {
1587
1556
  /** Sort by the `city` value. */
1588
- LocationSortKeys["City"] = "CITY";
1557
+ ShopifyLocationSortKeys["City"] = "CITY";
1589
1558
  /** Sort by the `distance` value. */
1590
- LocationSortKeys["Distance"] = "DISTANCE";
1559
+ ShopifyLocationSortKeys["Distance"] = "DISTANCE";
1591
1560
  /** Sort by the `id` value. */
1592
- LocationSortKeys["Id"] = "ID";
1561
+ ShopifyLocationSortKeys["Id"] = "ID";
1593
1562
  /** Sort by the `name` value. */
1594
- LocationSortKeys["Name"] = "NAME";
1595
- })(LocationSortKeys || (LocationSortKeys = {}));
1563
+ ShopifyLocationSortKeys["Name"] = "NAME";
1564
+ })(ShopifyLocationSortKeys || (ShopifyLocationSortKeys = {}));
1596
1565
  /** The possible content types for a media object. */
1597
- var MediaContentType;
1598
- (function (MediaContentType) {
1566
+ var ShopifyMediaContentType;
1567
+ (function (ShopifyMediaContentType) {
1599
1568
  /** An externally hosted video. */
1600
- MediaContentType["ExternalVideo"] = "EXTERNAL_VIDEO";
1569
+ ShopifyMediaContentType["ExternalVideo"] = "EXTERNAL_VIDEO";
1601
1570
  /** A Shopify hosted image. */
1602
- MediaContentType["Image"] = "IMAGE";
1571
+ ShopifyMediaContentType["Image"] = "IMAGE";
1603
1572
  /** A 3d model. */
1604
- MediaContentType["Model_3D"] = "MODEL_3D";
1573
+ ShopifyMediaContentType["Model_3D"] = "MODEL_3D";
1605
1574
  /** A Shopify hosted video. */
1606
- MediaContentType["Video"] = "VIDEO";
1607
- })(MediaContentType || (MediaContentType = {}));
1575
+ ShopifyMediaContentType["Video"] = "VIDEO";
1576
+ })(ShopifyMediaContentType || (ShopifyMediaContentType = {}));
1608
1577
  /** Host for a Media Resource. */
1609
- var MediaHost;
1610
- (function (MediaHost) {
1578
+ var ShopifyMediaHost;
1579
+ (function (ShopifyMediaHost) {
1611
1580
  /** Host for Vimeo embedded videos. */
1612
- MediaHost["Vimeo"] = "VIMEO";
1581
+ ShopifyMediaHost["Vimeo"] = "VIMEO";
1613
1582
  /** Host for YouTube embedded videos. */
1614
- MediaHost["Youtube"] = "YOUTUBE";
1615
- })(MediaHost || (MediaHost = {}));
1583
+ ShopifyMediaHost["Youtube"] = "YOUTUBE";
1584
+ })(ShopifyMediaHost || (ShopifyMediaHost = {}));
1616
1585
  /** The possible formats for a media presentation. */
1617
- var MediaPresentationFormat;
1618
- (function (MediaPresentationFormat) {
1586
+ var ShopifyMediaPresentationFormat;
1587
+ (function (ShopifyMediaPresentationFormat) {
1619
1588
  /** A media image presentation. */
1620
- MediaPresentationFormat["Image"] = "IMAGE";
1589
+ ShopifyMediaPresentationFormat["Image"] = "IMAGE";
1621
1590
  /** A model viewer presentation. */
1622
- MediaPresentationFormat["ModelViewer"] = "MODEL_VIEWER";
1623
- })(MediaPresentationFormat || (MediaPresentationFormat = {}));
1591
+ ShopifyMediaPresentationFormat["ModelViewer"] = "MODEL_VIEWER";
1592
+ })(ShopifyMediaPresentationFormat || (ShopifyMediaPresentationFormat = {}));
1624
1593
  /** A menu item type. */
1625
- var MenuItemType;
1626
- (function (MenuItemType) {
1594
+ var ShopifyMenuItemType;
1595
+ (function (ShopifyMenuItemType) {
1627
1596
  /** An article link. */
1628
- MenuItemType["Article"] = "ARTICLE";
1597
+ ShopifyMenuItemType["Article"] = "ARTICLE";
1629
1598
  /** A blog link. */
1630
- MenuItemType["Blog"] = "BLOG";
1599
+ ShopifyMenuItemType["Blog"] = "BLOG";
1631
1600
  /** A catalog link. */
1632
- MenuItemType["Catalog"] = "CATALOG";
1601
+ ShopifyMenuItemType["Catalog"] = "CATALOG";
1633
1602
  /** A collection link. */
1634
- MenuItemType["Collection"] = "COLLECTION";
1603
+ ShopifyMenuItemType["Collection"] = "COLLECTION";
1635
1604
  /** A collection link. */
1636
- MenuItemType["Collections"] = "COLLECTIONS";
1605
+ ShopifyMenuItemType["Collections"] = "COLLECTIONS";
1606
+ /** A customer account page link. */
1607
+ ShopifyMenuItemType["CustomerAccountPage"] = "CUSTOMER_ACCOUNT_PAGE";
1637
1608
  /** A frontpage link. */
1638
- MenuItemType["Frontpage"] = "FRONTPAGE";
1609
+ ShopifyMenuItemType["Frontpage"] = "FRONTPAGE";
1639
1610
  /** An http link. */
1640
- MenuItemType["Http"] = "HTTP";
1611
+ ShopifyMenuItemType["Http"] = "HTTP";
1641
1612
  /** A metaobject page link. */
1642
- MenuItemType["Metaobject"] = "METAOBJECT";
1613
+ ShopifyMenuItemType["Metaobject"] = "METAOBJECT";
1643
1614
  /** A page link. */
1644
- MenuItemType["Page"] = "PAGE";
1615
+ ShopifyMenuItemType["Page"] = "PAGE";
1645
1616
  /** A product link. */
1646
- MenuItemType["Product"] = "PRODUCT";
1617
+ ShopifyMenuItemType["Product"] = "PRODUCT";
1647
1618
  /** A search link. */
1648
- MenuItemType["Search"] = "SEARCH";
1619
+ ShopifyMenuItemType["Search"] = "SEARCH";
1649
1620
  /** A shop policy link. */
1650
- MenuItemType["ShopPolicy"] = "SHOP_POLICY";
1651
- })(MenuItemType || (MenuItemType = {}));
1621
+ ShopifyMenuItemType["ShopPolicy"] = "SHOP_POLICY";
1622
+ })(ShopifyMenuItemType || (ShopifyMenuItemType = {}));
1652
1623
  /** Possible error codes that can be returned by `MetafieldDeleteUserError`. */
1653
- var MetafieldDeleteErrorCode;
1654
- (function (MetafieldDeleteErrorCode) {
1624
+ var ShopifyMetafieldDeleteErrorCode;
1625
+ (function (ShopifyMetafieldDeleteErrorCode) {
1626
+ /** The current app is not authorized to perform this action. */
1627
+ ShopifyMetafieldDeleteErrorCode["AppNotAuthorized"] = "APP_NOT_AUTHORIZED";
1655
1628
  /** The owner ID is invalid. */
1656
- MetafieldDeleteErrorCode["InvalidOwner"] = "INVALID_OWNER";
1629
+ ShopifyMetafieldDeleteErrorCode["InvalidOwner"] = "INVALID_OWNER";
1657
1630
  /** Metafield not found. */
1658
- MetafieldDeleteErrorCode["MetafieldDoesNotExist"] = "METAFIELD_DOES_NOT_EXIST";
1659
- })(MetafieldDeleteErrorCode || (MetafieldDeleteErrorCode = {}));
1631
+ ShopifyMetafieldDeleteErrorCode["MetafieldDoesNotExist"] = "METAFIELD_DOES_NOT_EXIST";
1632
+ })(ShopifyMetafieldDeleteErrorCode || (ShopifyMetafieldDeleteErrorCode = {}));
1660
1633
  /** Possible error codes that can be returned by `MetafieldsSetUserError`. */
1661
- var MetafieldsSetUserErrorCode;
1662
- (function (MetafieldsSetUserErrorCode) {
1634
+ var ShopifyMetafieldsSetUserErrorCode;
1635
+ (function (ShopifyMetafieldsSetUserErrorCode) {
1636
+ /** The current app is not authorized to perform this action. */
1637
+ ShopifyMetafieldsSetUserErrorCode["AppNotAuthorized"] = "APP_NOT_AUTHORIZED";
1663
1638
  /** The input value is blank. */
1664
- MetafieldsSetUserErrorCode["Blank"] = "BLANK";
1639
+ ShopifyMetafieldsSetUserErrorCode["Blank"] = "BLANK";
1665
1640
  /** The input value isn't included in the list. */
1666
- MetafieldsSetUserErrorCode["Inclusion"] = "INCLUSION";
1641
+ ShopifyMetafieldsSetUserErrorCode["Inclusion"] = "INCLUSION";
1667
1642
  /** The owner ID is invalid. */
1668
- MetafieldsSetUserErrorCode["InvalidOwner"] = "INVALID_OWNER";
1643
+ ShopifyMetafieldsSetUserErrorCode["InvalidOwner"] = "INVALID_OWNER";
1669
1644
  /** The type is invalid. */
1670
- MetafieldsSetUserErrorCode["InvalidType"] = "INVALID_TYPE";
1645
+ ShopifyMetafieldsSetUserErrorCode["InvalidType"] = "INVALID_TYPE";
1671
1646
  /** The value is invalid for metafield type or for definition options. */
1672
- MetafieldsSetUserErrorCode["InvalidValue"] = "INVALID_VALUE";
1647
+ ShopifyMetafieldsSetUserErrorCode["InvalidValue"] = "INVALID_VALUE";
1673
1648
  /** The input value should be less than or equal to the maximum value allowed. */
1674
- MetafieldsSetUserErrorCode["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
1649
+ ShopifyMetafieldsSetUserErrorCode["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
1675
1650
  /** The input value needs to be blank. */
1676
- MetafieldsSetUserErrorCode["Present"] = "PRESENT";
1651
+ ShopifyMetafieldsSetUserErrorCode["Present"] = "PRESENT";
1677
1652
  /** The input value is too long. */
1678
- MetafieldsSetUserErrorCode["TooLong"] = "TOO_LONG";
1653
+ ShopifyMetafieldsSetUserErrorCode["TooLong"] = "TOO_LONG";
1679
1654
  /** The input value is too short. */
1680
- MetafieldsSetUserErrorCode["TooShort"] = "TOO_SHORT";
1681
- })(MetafieldsSetUserErrorCode || (MetafieldsSetUserErrorCode = {}));
1655
+ ShopifyMetafieldsSetUserErrorCode["TooShort"] = "TOO_SHORT";
1656
+ })(ShopifyMetafieldsSetUserErrorCode || (ShopifyMetafieldsSetUserErrorCode = {}));
1682
1657
  /** Represents the reason for the order's cancellation. */
1683
- var OrderCancelReason;
1684
- (function (OrderCancelReason) {
1658
+ var ShopifyOrderCancelReason;
1659
+ (function (ShopifyOrderCancelReason) {
1685
1660
  /** The customer wanted to cancel the order. */
1686
- OrderCancelReason["Customer"] = "CUSTOMER";
1661
+ ShopifyOrderCancelReason["Customer"] = "CUSTOMER";
1687
1662
  /** Payment was declined. */
1688
- OrderCancelReason["Declined"] = "DECLINED";
1663
+ ShopifyOrderCancelReason["Declined"] = "DECLINED";
1689
1664
  /** The order was fraudulent. */
1690
- OrderCancelReason["Fraud"] = "FRAUD";
1665
+ ShopifyOrderCancelReason["Fraud"] = "FRAUD";
1691
1666
  /** There was insufficient inventory. */
1692
- OrderCancelReason["Inventory"] = "INVENTORY";
1667
+ ShopifyOrderCancelReason["Inventory"] = "INVENTORY";
1693
1668
  /** The order was canceled for an unlisted reason. */
1694
- OrderCancelReason["Other"] = "OTHER";
1669
+ ShopifyOrderCancelReason["Other"] = "OTHER";
1695
1670
  /** Staff made an error. */
1696
- OrderCancelReason["Staff"] = "STAFF";
1697
- })(OrderCancelReason || (OrderCancelReason = {}));
1671
+ ShopifyOrderCancelReason["Staff"] = "STAFF";
1672
+ })(ShopifyOrderCancelReason || (ShopifyOrderCancelReason = {}));
1698
1673
  /** Represents the order's current financial status. */
1699
- var OrderFinancialStatus;
1700
- (function (OrderFinancialStatus) {
1674
+ var ShopifyOrderFinancialStatus;
1675
+ (function (ShopifyOrderFinancialStatus) {
1701
1676
  /** Displayed as **Authorized**. */
1702
- OrderFinancialStatus["Authorized"] = "AUTHORIZED";
1677
+ ShopifyOrderFinancialStatus["Authorized"] = "AUTHORIZED";
1703
1678
  /** Displayed as **Paid**. */
1704
- OrderFinancialStatus["Paid"] = "PAID";
1679
+ ShopifyOrderFinancialStatus["Paid"] = "PAID";
1705
1680
  /** Displayed as **Partially paid**. */
1706
- OrderFinancialStatus["PartiallyPaid"] = "PARTIALLY_PAID";
1681
+ ShopifyOrderFinancialStatus["PartiallyPaid"] = "PARTIALLY_PAID";
1707
1682
  /** Displayed as **Partially refunded**. */
1708
- OrderFinancialStatus["PartiallyRefunded"] = "PARTIALLY_REFUNDED";
1683
+ ShopifyOrderFinancialStatus["PartiallyRefunded"] = "PARTIALLY_REFUNDED";
1709
1684
  /** Displayed as **Pending**. */
1710
- OrderFinancialStatus["Pending"] = "PENDING";
1685
+ ShopifyOrderFinancialStatus["Pending"] = "PENDING";
1711
1686
  /** Displayed as **Refunded**. */
1712
- OrderFinancialStatus["Refunded"] = "REFUNDED";
1687
+ ShopifyOrderFinancialStatus["Refunded"] = "REFUNDED";
1713
1688
  /** Displayed as **Voided**. */
1714
- OrderFinancialStatus["Voided"] = "VOIDED";
1715
- })(OrderFinancialStatus || (OrderFinancialStatus = {}));
1716
- /** Represents the order's aggregated fulfillment status for display purposes. */
1717
- var OrderFulfillmentStatus;
1718
- (function (OrderFulfillmentStatus) {
1689
+ ShopifyOrderFinancialStatus["Voided"] = "VOIDED";
1690
+ })(ShopifyOrderFinancialStatus || (ShopifyOrderFinancialStatus = {}));
1691
+ /**
1692
+ * The aggregated fulfillment status of an [`Order`](https://shopify.dev/docs/api/storefront/current/objects/Order), summarizing the state of all line items. Used for display purposes.
1693
+ *
1694
+ * Statuses range from unfulfilled to fully fulfilled, with intermediate states such as in progress and on hold.
1695
+ *
1696
+ * Learn more about [order statuses](https://help.shopify.com/manual/fulfillment/managing-orders/order-status).
1697
+ *
1698
+ */
1699
+ var ShopifyOrderFulfillmentStatus;
1700
+ (function (ShopifyOrderFulfillmentStatus) {
1719
1701
  /** Displayed as **Fulfilled**. All of the items in the order have been fulfilled. */
1720
- OrderFulfillmentStatus["Fulfilled"] = "FULFILLED";
1702
+ ShopifyOrderFulfillmentStatus["Fulfilled"] = "FULFILLED";
1721
1703
  /** Displayed as **In progress**. Some of the items in the order have been fulfilled, or a request for fulfillment has been sent to the fulfillment service. */
1722
- OrderFulfillmentStatus["InProgress"] = "IN_PROGRESS";
1704
+ ShopifyOrderFulfillmentStatus["InProgress"] = "IN_PROGRESS";
1723
1705
  /** Displayed as **On hold**. All of the unfulfilled items in this order are on hold. */
1724
- OrderFulfillmentStatus["OnHold"] = "ON_HOLD";
1706
+ ShopifyOrderFulfillmentStatus["OnHold"] = "ON_HOLD";
1725
1707
  /** Displayed as **Open**. None of the items in the order have been fulfilled. Replaced by "UNFULFILLED" status. */
1726
- OrderFulfillmentStatus["Open"] = "OPEN";
1708
+ ShopifyOrderFulfillmentStatus["Open"] = "OPEN";
1727
1709
  /** Displayed as **Partially fulfilled**. Some of the items in the order have been fulfilled. */
1728
- OrderFulfillmentStatus["PartiallyFulfilled"] = "PARTIALLY_FULFILLED";
1710
+ ShopifyOrderFulfillmentStatus["PartiallyFulfilled"] = "PARTIALLY_FULFILLED";
1729
1711
  /** Displayed as **Pending fulfillment**. A request for fulfillment of some items awaits a response from the fulfillment service. Replaced by "IN_PROGRESS" status. */
1730
- OrderFulfillmentStatus["PendingFulfillment"] = "PENDING_FULFILLMENT";
1712
+ ShopifyOrderFulfillmentStatus["PendingFulfillment"] = "PENDING_FULFILLMENT";
1731
1713
  /** Displayed as **Restocked**. All of the items in the order have been restocked. Replaced by "UNFULFILLED" status. */
1732
- OrderFulfillmentStatus["Restocked"] = "RESTOCKED";
1714
+ ShopifyOrderFulfillmentStatus["Restocked"] = "RESTOCKED";
1733
1715
  /** Displayed as **Scheduled**. All of the unfulfilled items in this order are scheduled for fulfillment at later time. */
1734
- OrderFulfillmentStatus["Scheduled"] = "SCHEDULED";
1716
+ ShopifyOrderFulfillmentStatus["Scheduled"] = "SCHEDULED";
1735
1717
  /** Displayed as **Unfulfilled**. None of the items in the order have been fulfilled. */
1736
- OrderFulfillmentStatus["Unfulfilled"] = "UNFULFILLED";
1737
- })(OrderFulfillmentStatus || (OrderFulfillmentStatus = {}));
1718
+ ShopifyOrderFulfillmentStatus["Unfulfilled"] = "UNFULFILLED";
1719
+ })(ShopifyOrderFulfillmentStatus || (ShopifyOrderFulfillmentStatus = {}));
1738
1720
  /** The set of valid sort keys for the Order query. */
1739
- var OrderSortKeys;
1740
- (function (OrderSortKeys) {
1721
+ var ShopifyOrderSortKeys;
1722
+ (function (ShopifyOrderSortKeys) {
1741
1723
  /** Sort by the `id` value. */
1742
- OrderSortKeys["Id"] = "ID";
1724
+ ShopifyOrderSortKeys["Id"] = "ID";
1743
1725
  /** Sort by the `processed_at` value. */
1744
- OrderSortKeys["ProcessedAt"] = "PROCESSED_AT";
1726
+ ShopifyOrderSortKeys["ProcessedAt"] = "PROCESSED_AT";
1745
1727
  /**
1746
1728
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
1747
1729
  * Don't use this sort key when no search query is specified.
1748
1730
  *
1749
1731
  */
1750
- OrderSortKeys["Relevance"] = "RELEVANCE";
1732
+ ShopifyOrderSortKeys["Relevance"] = "RELEVANCE";
1751
1733
  /** Sort by the `total_price` value. */
1752
- OrderSortKeys["TotalPrice"] = "TOTAL_PRICE";
1753
- })(OrderSortKeys || (OrderSortKeys = {}));
1734
+ ShopifyOrderSortKeys["TotalPrice"] = "TOTAL_PRICE";
1735
+ })(ShopifyOrderSortKeys || (ShopifyOrderSortKeys = {}));
1754
1736
  /** The set of valid sort keys for the Page query. */
1755
- var PageSortKeys;
1756
- (function (PageSortKeys) {
1737
+ var ShopifyPageSortKeys;
1738
+ (function (ShopifyPageSortKeys) {
1757
1739
  /** Sort by the `id` value. */
1758
- PageSortKeys["Id"] = "ID";
1740
+ ShopifyPageSortKeys["Id"] = "ID";
1759
1741
  /**
1760
1742
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
1761
1743
  * Don't use this sort key when no search query is specified.
1762
1744
  *
1763
1745
  */
1764
- PageSortKeys["Relevance"] = "RELEVANCE";
1746
+ ShopifyPageSortKeys["Relevance"] = "RELEVANCE";
1765
1747
  /** Sort by the `title` value. */
1766
- PageSortKeys["Title"] = "TITLE";
1748
+ ShopifyPageSortKeys["Title"] = "TITLE";
1767
1749
  /** Sort by the `updated_at` value. */
1768
- PageSortKeys["UpdatedAt"] = "UPDATED_AT";
1769
- })(PageSortKeys || (PageSortKeys = {}));
1770
- /** The valid values for the types of payment token. */
1771
- var PaymentTokenType;
1772
- (function (PaymentTokenType) {
1773
- /** Apple Pay token type. */
1774
- PaymentTokenType["ApplePay"] = "APPLE_PAY";
1775
- /** Google Pay token type. */
1776
- PaymentTokenType["GooglePay"] = "GOOGLE_PAY";
1777
- /** Shopify Pay token type. */
1778
- PaymentTokenType["ShopifyPay"] = "SHOPIFY_PAY";
1779
- /** Stripe token type. */
1780
- PaymentTokenType["StripeVaultToken"] = "STRIPE_VAULT_TOKEN";
1781
- /** Vault payment token type. */
1782
- PaymentTokenType["Vault"] = "VAULT";
1783
- })(PaymentTokenType || (PaymentTokenType = {}));
1750
+ ShopifyPageSortKeys["UpdatedAt"] = "UPDATED_AT";
1751
+ })(ShopifyPageSortKeys || (ShopifyPageSortKeys = {}));
1784
1752
  /** Decides the distribution of results. */
1785
- var PredictiveSearchLimitScope;
1786
- (function (PredictiveSearchLimitScope) {
1753
+ var ShopifyPredictiveSearchLimitScope;
1754
+ (function (ShopifyPredictiveSearchLimitScope) {
1787
1755
  /** Return results up to limit across all types. */
1788
- PredictiveSearchLimitScope["All"] = "ALL";
1756
+ ShopifyPredictiveSearchLimitScope["All"] = "ALL";
1789
1757
  /** Return results up to limit per type. */
1790
- PredictiveSearchLimitScope["Each"] = "EACH";
1791
- })(PredictiveSearchLimitScope || (PredictiveSearchLimitScope = {}));
1758
+ ShopifyPredictiveSearchLimitScope["Each"] = "EACH";
1759
+ })(ShopifyPredictiveSearchLimitScope || (ShopifyPredictiveSearchLimitScope = {}));
1792
1760
  /** The types of search items to perform predictive search on. */
1793
- var PredictiveSearchType;
1794
- (function (PredictiveSearchType) {
1761
+ var ShopifyPredictiveSearchType;
1762
+ (function (ShopifyPredictiveSearchType) {
1795
1763
  /** Returns matching articles. */
1796
- PredictiveSearchType["Article"] = "ARTICLE";
1764
+ ShopifyPredictiveSearchType["Article"] = "ARTICLE";
1797
1765
  /** Returns matching collections. */
1798
- PredictiveSearchType["Collection"] = "COLLECTION";
1766
+ ShopifyPredictiveSearchType["Collection"] = "COLLECTION";
1799
1767
  /** Returns matching pages. */
1800
- PredictiveSearchType["Page"] = "PAGE";
1768
+ ShopifyPredictiveSearchType["Page"] = "PAGE";
1801
1769
  /** Returns matching products. */
1802
- PredictiveSearchType["Product"] = "PRODUCT";
1770
+ ShopifyPredictiveSearchType["Product"] = "PRODUCT";
1803
1771
  /** Returns matching query strings. */
1804
- PredictiveSearchType["Query"] = "QUERY";
1805
- })(PredictiveSearchType || (PredictiveSearchType = {}));
1772
+ ShopifyPredictiveSearchType["Query"] = "QUERY";
1773
+ })(ShopifyPredictiveSearchType || (ShopifyPredictiveSearchType = {}));
1806
1774
  /** The preferred delivery methods such as shipping, local pickup or through pickup points. */
1807
- var PreferenceDeliveryMethodType;
1808
- (function (PreferenceDeliveryMethodType) {
1775
+ var ShopifyPreferenceDeliveryMethodType;
1776
+ (function (ShopifyPreferenceDeliveryMethodType) {
1809
1777
  /** A delivery method used to let buyers collect purchases at designated locations like parcel lockers. */
1810
- PreferenceDeliveryMethodType["PickupPoint"] = "PICKUP_POINT";
1778
+ ShopifyPreferenceDeliveryMethodType["PickupPoint"] = "PICKUP_POINT";
1811
1779
  /** A delivery method used to let buyers receive items directly from a specific location within an area. */
1812
- PreferenceDeliveryMethodType["PickUp"] = "PICK_UP";
1780
+ ShopifyPreferenceDeliveryMethodType["PickUp"] = "PICK_UP";
1813
1781
  /** A delivery method used to send items directly to a buyer’s specified address. */
1814
- PreferenceDeliveryMethodType["Shipping"] = "SHIPPING";
1815
- })(PreferenceDeliveryMethodType || (PreferenceDeliveryMethodType = {}));
1816
- /** The set of valid sort keys for the ProductCollection query. */
1817
- var ProductCollectionSortKeys;
1818
- (function (ProductCollectionSortKeys) {
1782
+ ShopifyPreferenceDeliveryMethodType["Shipping"] = "SHIPPING";
1783
+ })(ShopifyPreferenceDeliveryMethodType || (ShopifyPreferenceDeliveryMethodType = {}));
1784
+ /**
1785
+ * Sort options for products within a [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection). Used by the [`products`](https://shopify.dev/docs/api/storefront/current/objects/Collection#field-Collection.fields.products) connection to order results by best-selling, price, title, creation date, or the collection's default and manual ordering.
1786
+ *
1787
+ * > Note: The [`RELEVANCE`](https://shopify.dev/docs/api/storefront/current/enums/ProductCollectionSortKeys#enums-RELEVANCE) key applies only when you specify a search query.
1788
+ *
1789
+ */
1790
+ var ShopifyProductCollectionSortKeys;
1791
+ (function (ShopifyProductCollectionSortKeys) {
1819
1792
  /** Sort by the `best-selling` value. */
1820
- ProductCollectionSortKeys["BestSelling"] = "BEST_SELLING";
1793
+ ShopifyProductCollectionSortKeys["BestSelling"] = "BEST_SELLING";
1821
1794
  /** Sort by the `collection-default` value. */
1822
- ProductCollectionSortKeys["CollectionDefault"] = "COLLECTION_DEFAULT";
1795
+ ShopifyProductCollectionSortKeys["CollectionDefault"] = "COLLECTION_DEFAULT";
1823
1796
  /** Sort by the `created` value. */
1824
- ProductCollectionSortKeys["Created"] = "CREATED";
1797
+ ShopifyProductCollectionSortKeys["Created"] = "CREATED";
1825
1798
  /** Sort by the `id` value. */
1826
- ProductCollectionSortKeys["Id"] = "ID";
1799
+ ShopifyProductCollectionSortKeys["Id"] = "ID";
1827
1800
  /** Sort by the `manual` value. */
1828
- ProductCollectionSortKeys["Manual"] = "MANUAL";
1801
+ ShopifyProductCollectionSortKeys["Manual"] = "MANUAL";
1829
1802
  /** Sort by the `price` value. */
1830
- ProductCollectionSortKeys["Price"] = "PRICE";
1803
+ ShopifyProductCollectionSortKeys["Price"] = "PRICE";
1831
1804
  /**
1832
1805
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
1833
1806
  * Don't use this sort key when no search query is specified.
1834
1807
  *
1835
1808
  */
1836
- ProductCollectionSortKeys["Relevance"] = "RELEVANCE";
1809
+ ShopifyProductCollectionSortKeys["Relevance"] = "RELEVANCE";
1837
1810
  /** Sort by the `title` value. */
1838
- ProductCollectionSortKeys["Title"] = "TITLE";
1839
- })(ProductCollectionSortKeys || (ProductCollectionSortKeys = {}));
1811
+ ShopifyProductCollectionSortKeys["Title"] = "TITLE";
1812
+ })(ShopifyProductCollectionSortKeys || (ShopifyProductCollectionSortKeys = {}));
1840
1813
  /** The set of valid sort keys for the ProductImage query. */
1841
- var ProductImageSortKeys;
1842
- (function (ProductImageSortKeys) {
1814
+ var ShopifyProductImageSortKeys;
1815
+ (function (ShopifyProductImageSortKeys) {
1843
1816
  /** Sort by the `created_at` value. */
1844
- ProductImageSortKeys["CreatedAt"] = "CREATED_AT";
1817
+ ShopifyProductImageSortKeys["CreatedAt"] = "CREATED_AT";
1845
1818
  /** Sort by the `id` value. */
1846
- ProductImageSortKeys["Id"] = "ID";
1819
+ ShopifyProductImageSortKeys["Id"] = "ID";
1847
1820
  /** Sort by the `position` value. */
1848
- ProductImageSortKeys["Position"] = "POSITION";
1821
+ ShopifyProductImageSortKeys["Position"] = "POSITION";
1849
1822
  /**
1850
1823
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
1851
1824
  * Don't use this sort key when no search query is specified.
1852
1825
  *
1853
1826
  */
1854
- ProductImageSortKeys["Relevance"] = "RELEVANCE";
1855
- })(ProductImageSortKeys || (ProductImageSortKeys = {}));
1827
+ ShopifyProductImageSortKeys["Relevance"] = "RELEVANCE";
1828
+ })(ShopifyProductImageSortKeys || (ShopifyProductImageSortKeys = {}));
1856
1829
  /** The set of valid sort keys for the ProductMedia query. */
1857
- var ProductMediaSortKeys;
1858
- (function (ProductMediaSortKeys) {
1830
+ var ShopifyProductMediaSortKeys;
1831
+ (function (ShopifyProductMediaSortKeys) {
1859
1832
  /** Sort by the `id` value. */
1860
- ProductMediaSortKeys["Id"] = "ID";
1833
+ ShopifyProductMediaSortKeys["Id"] = "ID";
1861
1834
  /** Sort by the `position` value. */
1862
- ProductMediaSortKeys["Position"] = "POSITION";
1835
+ ShopifyProductMediaSortKeys["Position"] = "POSITION";
1863
1836
  /**
1864
1837
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
1865
1838
  * Don't use this sort key when no search query is specified.
1866
1839
  *
1867
1840
  */
1868
- ProductMediaSortKeys["Relevance"] = "RELEVANCE";
1869
- })(ProductMediaSortKeys || (ProductMediaSortKeys = {}));
1841
+ ShopifyProductMediaSortKeys["Relevance"] = "RELEVANCE";
1842
+ })(ShopifyProductMediaSortKeys || (ShopifyProductMediaSortKeys = {}));
1870
1843
  /**
1871
1844
  * The recommendation intent that is used to generate product recommendations.
1872
1845
  * You can use intent to generate product recommendations according to different strategies.
1873
1846
  *
1874
1847
  */
1875
- var ProductRecommendationIntent;
1876
- (function (ProductRecommendationIntent) {
1848
+ var ShopifyProductRecommendationIntent;
1849
+ (function (ShopifyProductRecommendationIntent) {
1877
1850
  /** Offer customers products that are complementary to a product for which recommendations are to be fetched. An example is add-on products that display in a Pair it with section. */
1878
- ProductRecommendationIntent["Complementary"] = "COMPLEMENTARY";
1851
+ ShopifyProductRecommendationIntent["Complementary"] = "COMPLEMENTARY";
1879
1852
  /** Offer customers a mix of products that are similar or complementary to a product for which recommendations are to be fetched. An example is substitutable products that display in a You may also like section. */
1880
- ProductRecommendationIntent["Related"] = "RELATED";
1881
- })(ProductRecommendationIntent || (ProductRecommendationIntent = {}));
1882
- /** The set of valid sort keys for the Product query. */
1883
- var ProductSortKeys;
1884
- (function (ProductSortKeys) {
1853
+ ShopifyProductRecommendationIntent["Related"] = "RELATED";
1854
+ })(ShopifyProductRecommendationIntent || (ShopifyProductRecommendationIntent = {}));
1855
+ /**
1856
+ * Sorting options for the [`products`](https://shopify.dev/docs/api/storefront/current/queries/products) query. Supports sorting products by criteria such as best-selling and price, and by product attributes such as type, and vendor.
1857
+ *
1858
+ * > Note: Use the [`RELEVANCE`](https://shopify.dev/docs/api/storefront/current/enums/ProductSortKeys#enums-RELEVANCE) key only when a search query is specified.
1859
+ *
1860
+ */
1861
+ var ShopifyProductSortKeys;
1862
+ (function (ShopifyProductSortKeys) {
1885
1863
  /** Sort by the `best_selling` value. */
1886
- ProductSortKeys["BestSelling"] = "BEST_SELLING";
1864
+ ShopifyProductSortKeys["BestSelling"] = "BEST_SELLING";
1887
1865
  /** Sort by the `created_at` value. */
1888
- ProductSortKeys["CreatedAt"] = "CREATED_AT";
1866
+ ShopifyProductSortKeys["CreatedAt"] = "CREATED_AT";
1889
1867
  /** Sort by the `id` value. */
1890
- ProductSortKeys["Id"] = "ID";
1868
+ ShopifyProductSortKeys["Id"] = "ID";
1891
1869
  /** Sort by the `price` value. */
1892
- ProductSortKeys["Price"] = "PRICE";
1870
+ ShopifyProductSortKeys["Price"] = "PRICE";
1893
1871
  /** Sort by the `product_type` value. */
1894
- ProductSortKeys["ProductType"] = "PRODUCT_TYPE";
1872
+ ShopifyProductSortKeys["ProductType"] = "PRODUCT_TYPE";
1895
1873
  /**
1896
1874
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
1897
1875
  * Don't use this sort key when no search query is specified.
1898
1876
  *
1899
1877
  */
1900
- ProductSortKeys["Relevance"] = "RELEVANCE";
1878
+ ShopifyProductSortKeys["Relevance"] = "RELEVANCE";
1901
1879
  /** Sort by the `title` value. */
1902
- ProductSortKeys["Title"] = "TITLE";
1880
+ ShopifyProductSortKeys["Title"] = "TITLE";
1903
1881
  /** Sort by the `updated_at` value. */
1904
- ProductSortKeys["UpdatedAt"] = "UPDATED_AT";
1882
+ ShopifyProductSortKeys["UpdatedAt"] = "UPDATED_AT";
1905
1883
  /** Sort by the `vendor` value. */
1906
- ProductSortKeys["Vendor"] = "VENDOR";
1907
- })(ProductSortKeys || (ProductSortKeys = {}));
1884
+ ShopifyProductSortKeys["Vendor"] = "VENDOR";
1885
+ })(ShopifyProductSortKeys || (ShopifyProductSortKeys = {}));
1908
1886
  /** The set of valid sort keys for the ProductVariant query. */
1909
- var ProductVariantSortKeys;
1910
- (function (ProductVariantSortKeys) {
1887
+ var ShopifyProductVariantSortKeys;
1888
+ (function (ShopifyProductVariantSortKeys) {
1911
1889
  /** Sort by the `id` value. */
1912
- ProductVariantSortKeys["Id"] = "ID";
1890
+ ShopifyProductVariantSortKeys["Id"] = "ID";
1913
1891
  /** Sort by the `position` value. */
1914
- ProductVariantSortKeys["Position"] = "POSITION";
1892
+ ShopifyProductVariantSortKeys["Position"] = "POSITION";
1915
1893
  /**
1916
1894
  * Sort by relevance to the search terms when the `query` parameter is specified on the connection.
1917
1895
  * Don't use this sort key when no search query is specified.
1918
1896
  *
1919
1897
  */
1920
- ProductVariantSortKeys["Relevance"] = "RELEVANCE";
1898
+ ShopifyProductVariantSortKeys["Relevance"] = "RELEVANCE";
1921
1899
  /** Sort by the `sku` value. */
1922
- ProductVariantSortKeys["Sku"] = "SKU";
1900
+ ShopifyProductVariantSortKeys["Sku"] = "SKU";
1923
1901
  /** Sort by the `title` value. */
1924
- ProductVariantSortKeys["Title"] = "TITLE";
1925
- })(ProductVariantSortKeys || (ProductVariantSortKeys = {}));
1902
+ ShopifyProductVariantSortKeys["Title"] = "TITLE";
1903
+ })(ShopifyProductVariantSortKeys || (ShopifyProductVariantSortKeys = {}));
1926
1904
  /** Specifies whether to perform a partial word match on the last search term. */
1927
- var SearchPrefixQueryType;
1928
- (function (SearchPrefixQueryType) {
1905
+ var ShopifySearchPrefixQueryType;
1906
+ (function (ShopifySearchPrefixQueryType) {
1929
1907
  /** Perform a partial word match on the last search term. */
1930
- SearchPrefixQueryType["Last"] = "LAST";
1908
+ ShopifySearchPrefixQueryType["Last"] = "LAST";
1931
1909
  /** Don't perform a partial word match on the last search term. */
1932
- SearchPrefixQueryType["None"] = "NONE";
1933
- })(SearchPrefixQueryType || (SearchPrefixQueryType = {}));
1910
+ ShopifySearchPrefixQueryType["None"] = "NONE";
1911
+ })(ShopifySearchPrefixQueryType || (ShopifySearchPrefixQueryType = {}));
1934
1912
  /** The set of valid sort keys for the search query. */
1935
- var SearchSortKeys;
1936
- (function (SearchSortKeys) {
1913
+ var ShopifySearchSortKeys;
1914
+ (function (ShopifySearchSortKeys) {
1937
1915
  /** Sort by the `price` value. */
1938
- SearchSortKeys["Price"] = "PRICE";
1916
+ ShopifySearchSortKeys["Price"] = "PRICE";
1939
1917
  /** Sort by relevance to the search terms. */
1940
- SearchSortKeys["Relevance"] = "RELEVANCE";
1941
- })(SearchSortKeys || (SearchSortKeys = {}));
1918
+ ShopifySearchSortKeys["Relevance"] = "RELEVANCE";
1919
+ })(ShopifySearchSortKeys || (ShopifySearchSortKeys = {}));
1942
1920
  /** The types of search items to perform search within. */
1943
- var SearchType;
1944
- (function (SearchType) {
1921
+ var ShopifySearchType;
1922
+ (function (ShopifySearchType) {
1945
1923
  /** Returns matching articles. */
1946
- SearchType["Article"] = "ARTICLE";
1924
+ ShopifySearchType["Article"] = "ARTICLE";
1947
1925
  /** Returns matching pages. */
1948
- SearchType["Page"] = "PAGE";
1926
+ ShopifySearchType["Page"] = "PAGE";
1949
1927
  /** Returns matching products. */
1950
- SearchType["Product"] = "PRODUCT";
1951
- })(SearchType || (SearchType = {}));
1928
+ ShopifySearchType["Product"] = "PRODUCT";
1929
+ })(ShopifySearchType || (ShopifySearchType = {}));
1952
1930
  /** Specifies whether to display results for unavailable products. */
1953
- var SearchUnavailableProductsType;
1954
- (function (SearchUnavailableProductsType) {
1931
+ var ShopifySearchUnavailableProductsType;
1932
+ (function (ShopifySearchUnavailableProductsType) {
1955
1933
  /** Exclude unavailable products. */
1956
- SearchUnavailableProductsType["Hide"] = "HIDE";
1934
+ ShopifySearchUnavailableProductsType["Hide"] = "HIDE";
1957
1935
  /** Show unavailable products after all other matching results. This is the default. */
1958
- SearchUnavailableProductsType["Last"] = "LAST";
1936
+ ShopifySearchUnavailableProductsType["Last"] = "LAST";
1959
1937
  /** Show unavailable products in the order that they're found. */
1960
- SearchUnavailableProductsType["Show"] = "SHOW";
1961
- })(SearchUnavailableProductsType || (SearchUnavailableProductsType = {}));
1938
+ ShopifySearchUnavailableProductsType["Show"] = "SHOW";
1939
+ })(ShopifySearchUnavailableProductsType || (ShopifySearchUnavailableProductsType = {}));
1962
1940
  /** Specifies the list of resource fields to search. */
1963
- var SearchableField;
1964
- (function (SearchableField) {
1941
+ var ShopifySearchableField;
1942
+ (function (ShopifySearchableField) {
1965
1943
  /** Author of the page or article. */
1966
- SearchableField["Author"] = "AUTHOR";
1944
+ ShopifySearchableField["Author"] = "AUTHOR";
1967
1945
  /** Body of the page or article or product description or collection description. */
1968
- SearchableField["Body"] = "BODY";
1946
+ ShopifySearchableField["Body"] = "BODY";
1969
1947
  /** Product type. */
1970
- SearchableField["ProductType"] = "PRODUCT_TYPE";
1948
+ ShopifySearchableField["ProductType"] = "PRODUCT_TYPE";
1971
1949
  /** Tag associated with the product or article. */
1972
- SearchableField["Tag"] = "TAG";
1950
+ ShopifySearchableField["Tag"] = "TAG";
1973
1951
  /** Title of the page or article or product title or collection title. */
1974
- SearchableField["Title"] = "TITLE";
1952
+ ShopifySearchableField["Title"] = "TITLE";
1975
1953
  /** Variant barcode. */
1976
- SearchableField["VariantsBarcode"] = "VARIANTS_BARCODE";
1954
+ ShopifySearchableField["VariantsBarcode"] = "VARIANTS_BARCODE";
1977
1955
  /** Variant SKU. */
1978
- SearchableField["VariantsSku"] = "VARIANTS_SKU";
1956
+ ShopifySearchableField["VariantsSku"] = "VARIANTS_SKU";
1979
1957
  /** Variant title. */
1980
- SearchableField["VariantsTitle"] = "VARIANTS_TITLE";
1958
+ ShopifySearchableField["VariantsTitle"] = "VARIANTS_TITLE";
1981
1959
  /** Product vendor. */
1982
- SearchableField["Vendor"] = "VENDOR";
1983
- })(SearchableField || (SearchableField = {}));
1960
+ ShopifySearchableField["Vendor"] = "VENDOR";
1961
+ })(ShopifySearchableField || (ShopifySearchableField = {}));
1984
1962
  /** The checkout charge when the full amount isn't charged at checkout. */
1985
- var SellingPlanCheckoutChargeType;
1986
- (function (SellingPlanCheckoutChargeType) {
1963
+ var ShopifySellingPlanCheckoutChargeType;
1964
+ (function (ShopifySellingPlanCheckoutChargeType) {
1987
1965
  /** The checkout charge is a percentage of the product or variant price. */
1988
- SellingPlanCheckoutChargeType["Percentage"] = "PERCENTAGE";
1966
+ ShopifySellingPlanCheckoutChargeType["Percentage"] = "PERCENTAGE";
1989
1967
  /** The checkout charge is a fixed price amount. */
1990
- SellingPlanCheckoutChargeType["Price"] = "PRICE";
1991
- })(SellingPlanCheckoutChargeType || (SellingPlanCheckoutChargeType = {}));
1992
- /** The code of the error that occurred during cart submit for completion. */
1993
- var SubmissionErrorCode;
1994
- (function (SubmissionErrorCode) {
1995
- SubmissionErrorCode["BuyerIdentityEmailIsInvalid"] = "BUYER_IDENTITY_EMAIL_IS_INVALID";
1996
- SubmissionErrorCode["BuyerIdentityEmailRequired"] = "BUYER_IDENTITY_EMAIL_REQUIRED";
1997
- SubmissionErrorCode["BuyerIdentityPhoneIsInvalid"] = "BUYER_IDENTITY_PHONE_IS_INVALID";
1998
- SubmissionErrorCode["DeliveryAddress1Invalid"] = "DELIVERY_ADDRESS1_INVALID";
1999
- SubmissionErrorCode["DeliveryAddress1Required"] = "DELIVERY_ADDRESS1_REQUIRED";
2000
- SubmissionErrorCode["DeliveryAddress1TooLong"] = "DELIVERY_ADDRESS1_TOO_LONG";
2001
- SubmissionErrorCode["DeliveryAddress2Invalid"] = "DELIVERY_ADDRESS2_INVALID";
2002
- SubmissionErrorCode["DeliveryAddress2Required"] = "DELIVERY_ADDRESS2_REQUIRED";
2003
- SubmissionErrorCode["DeliveryAddress2TooLong"] = "DELIVERY_ADDRESS2_TOO_LONG";
2004
- SubmissionErrorCode["DeliveryAddressRequired"] = "DELIVERY_ADDRESS_REQUIRED";
2005
- SubmissionErrorCode["DeliveryCityInvalid"] = "DELIVERY_CITY_INVALID";
2006
- SubmissionErrorCode["DeliveryCityRequired"] = "DELIVERY_CITY_REQUIRED";
2007
- SubmissionErrorCode["DeliveryCityTooLong"] = "DELIVERY_CITY_TOO_LONG";
2008
- SubmissionErrorCode["DeliveryCompanyInvalid"] = "DELIVERY_COMPANY_INVALID";
2009
- SubmissionErrorCode["DeliveryCompanyRequired"] = "DELIVERY_COMPANY_REQUIRED";
2010
- SubmissionErrorCode["DeliveryCompanyTooLong"] = "DELIVERY_COMPANY_TOO_LONG";
2011
- SubmissionErrorCode["DeliveryCountryRequired"] = "DELIVERY_COUNTRY_REQUIRED";
2012
- SubmissionErrorCode["DeliveryFirstNameInvalid"] = "DELIVERY_FIRST_NAME_INVALID";
2013
- SubmissionErrorCode["DeliveryFirstNameRequired"] = "DELIVERY_FIRST_NAME_REQUIRED";
2014
- SubmissionErrorCode["DeliveryFirstNameTooLong"] = "DELIVERY_FIRST_NAME_TOO_LONG";
2015
- SubmissionErrorCode["DeliveryInvalidPostalCodeForCountry"] = "DELIVERY_INVALID_POSTAL_CODE_FOR_COUNTRY";
2016
- SubmissionErrorCode["DeliveryInvalidPostalCodeForZone"] = "DELIVERY_INVALID_POSTAL_CODE_FOR_ZONE";
2017
- SubmissionErrorCode["DeliveryLastNameInvalid"] = "DELIVERY_LAST_NAME_INVALID";
2018
- SubmissionErrorCode["DeliveryLastNameRequired"] = "DELIVERY_LAST_NAME_REQUIRED";
2019
- SubmissionErrorCode["DeliveryLastNameTooLong"] = "DELIVERY_LAST_NAME_TOO_LONG";
2020
- SubmissionErrorCode["DeliveryNoDeliveryAvailable"] = "DELIVERY_NO_DELIVERY_AVAILABLE";
2021
- SubmissionErrorCode["DeliveryNoDeliveryAvailableForMerchandiseLine"] = "DELIVERY_NO_DELIVERY_AVAILABLE_FOR_MERCHANDISE_LINE";
2022
- SubmissionErrorCode["DeliveryOptionsPhoneNumberInvalid"] = "DELIVERY_OPTIONS_PHONE_NUMBER_INVALID";
2023
- SubmissionErrorCode["DeliveryOptionsPhoneNumberRequired"] = "DELIVERY_OPTIONS_PHONE_NUMBER_REQUIRED";
2024
- SubmissionErrorCode["DeliveryPhoneNumberInvalid"] = "DELIVERY_PHONE_NUMBER_INVALID";
2025
- SubmissionErrorCode["DeliveryPhoneNumberRequired"] = "DELIVERY_PHONE_NUMBER_REQUIRED";
2026
- SubmissionErrorCode["DeliveryPostalCodeInvalid"] = "DELIVERY_POSTAL_CODE_INVALID";
2027
- SubmissionErrorCode["DeliveryPostalCodeRequired"] = "DELIVERY_POSTAL_CODE_REQUIRED";
2028
- SubmissionErrorCode["DeliveryZoneNotFound"] = "DELIVERY_ZONE_NOT_FOUND";
2029
- SubmissionErrorCode["DeliveryZoneRequiredForCountry"] = "DELIVERY_ZONE_REQUIRED_FOR_COUNTRY";
2030
- SubmissionErrorCode["Error"] = "ERROR";
2031
- SubmissionErrorCode["MerchandiseLineLimitReached"] = "MERCHANDISE_LINE_LIMIT_REACHED";
2032
- SubmissionErrorCode["MerchandiseNotApplicable"] = "MERCHANDISE_NOT_APPLICABLE";
2033
- SubmissionErrorCode["MerchandiseNotEnoughStockAvailable"] = "MERCHANDISE_NOT_ENOUGH_STOCK_AVAILABLE";
2034
- SubmissionErrorCode["MerchandiseOutOfStock"] = "MERCHANDISE_OUT_OF_STOCK";
2035
- SubmissionErrorCode["MerchandiseProductNotPublished"] = "MERCHANDISE_PRODUCT_NOT_PUBLISHED";
2036
- SubmissionErrorCode["NoDeliveryGroupSelected"] = "NO_DELIVERY_GROUP_SELECTED";
2037
- SubmissionErrorCode["PaymentsAddress1Invalid"] = "PAYMENTS_ADDRESS1_INVALID";
2038
- SubmissionErrorCode["PaymentsAddress1Required"] = "PAYMENTS_ADDRESS1_REQUIRED";
2039
- SubmissionErrorCode["PaymentsAddress1TooLong"] = "PAYMENTS_ADDRESS1_TOO_LONG";
2040
- SubmissionErrorCode["PaymentsAddress2Invalid"] = "PAYMENTS_ADDRESS2_INVALID";
2041
- SubmissionErrorCode["PaymentsAddress2Required"] = "PAYMENTS_ADDRESS2_REQUIRED";
2042
- SubmissionErrorCode["PaymentsAddress2TooLong"] = "PAYMENTS_ADDRESS2_TOO_LONG";
2043
- SubmissionErrorCode["PaymentsBillingAddressZoneNotFound"] = "PAYMENTS_BILLING_ADDRESS_ZONE_NOT_FOUND";
2044
- SubmissionErrorCode["PaymentsBillingAddressZoneRequiredForCountry"] = "PAYMENTS_BILLING_ADDRESS_ZONE_REQUIRED_FOR_COUNTRY";
2045
- SubmissionErrorCode["PaymentsCityInvalid"] = "PAYMENTS_CITY_INVALID";
2046
- SubmissionErrorCode["PaymentsCityRequired"] = "PAYMENTS_CITY_REQUIRED";
2047
- SubmissionErrorCode["PaymentsCityTooLong"] = "PAYMENTS_CITY_TOO_LONG";
2048
- SubmissionErrorCode["PaymentsCompanyInvalid"] = "PAYMENTS_COMPANY_INVALID";
2049
- SubmissionErrorCode["PaymentsCompanyRequired"] = "PAYMENTS_COMPANY_REQUIRED";
2050
- SubmissionErrorCode["PaymentsCompanyTooLong"] = "PAYMENTS_COMPANY_TOO_LONG";
2051
- SubmissionErrorCode["PaymentsCountryRequired"] = "PAYMENTS_COUNTRY_REQUIRED";
2052
- SubmissionErrorCode["PaymentsCreditCardBaseExpired"] = "PAYMENTS_CREDIT_CARD_BASE_EXPIRED";
2053
- SubmissionErrorCode["PaymentsCreditCardBaseGatewayNotSupported"] = "PAYMENTS_CREDIT_CARD_BASE_GATEWAY_NOT_SUPPORTED";
2054
- SubmissionErrorCode["PaymentsCreditCardBaseInvalidStartDateOrIssueNumberForDebit"] = "PAYMENTS_CREDIT_CARD_BASE_INVALID_START_DATE_OR_ISSUE_NUMBER_FOR_DEBIT";
2055
- SubmissionErrorCode["PaymentsCreditCardBrandNotSupported"] = "PAYMENTS_CREDIT_CARD_BRAND_NOT_SUPPORTED";
2056
- SubmissionErrorCode["PaymentsCreditCardFirstNameBlank"] = "PAYMENTS_CREDIT_CARD_FIRST_NAME_BLANK";
2057
- SubmissionErrorCode["PaymentsCreditCardGeneric"] = "PAYMENTS_CREDIT_CARD_GENERIC";
2058
- SubmissionErrorCode["PaymentsCreditCardLastNameBlank"] = "PAYMENTS_CREDIT_CARD_LAST_NAME_BLANK";
2059
- SubmissionErrorCode["PaymentsCreditCardMonthInclusion"] = "PAYMENTS_CREDIT_CARD_MONTH_INCLUSION";
2060
- SubmissionErrorCode["PaymentsCreditCardNameInvalid"] = "PAYMENTS_CREDIT_CARD_NAME_INVALID";
2061
- SubmissionErrorCode["PaymentsCreditCardNumberInvalid"] = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID";
2062
- SubmissionErrorCode["PaymentsCreditCardNumberInvalidFormat"] = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID_FORMAT";
2063
- SubmissionErrorCode["PaymentsCreditCardSessionId"] = "PAYMENTS_CREDIT_CARD_SESSION_ID";
2064
- SubmissionErrorCode["PaymentsCreditCardVerificationValueBlank"] = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_BLANK";
2065
- SubmissionErrorCode["PaymentsCreditCardVerificationValueInvalidForCardType"] = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_INVALID_FOR_CARD_TYPE";
2066
- SubmissionErrorCode["PaymentsCreditCardYearExpired"] = "PAYMENTS_CREDIT_CARD_YEAR_EXPIRED";
2067
- SubmissionErrorCode["PaymentsCreditCardYearInvalidExpiryYear"] = "PAYMENTS_CREDIT_CARD_YEAR_INVALID_EXPIRY_YEAR";
2068
- SubmissionErrorCode["PaymentsFirstNameInvalid"] = "PAYMENTS_FIRST_NAME_INVALID";
2069
- SubmissionErrorCode["PaymentsFirstNameRequired"] = "PAYMENTS_FIRST_NAME_REQUIRED";
2070
- SubmissionErrorCode["PaymentsFirstNameTooLong"] = "PAYMENTS_FIRST_NAME_TOO_LONG";
2071
- SubmissionErrorCode["PaymentsInvalidPostalCodeForCountry"] = "PAYMENTS_INVALID_POSTAL_CODE_FOR_COUNTRY";
2072
- SubmissionErrorCode["PaymentsInvalidPostalCodeForZone"] = "PAYMENTS_INVALID_POSTAL_CODE_FOR_ZONE";
2073
- SubmissionErrorCode["PaymentsLastNameInvalid"] = "PAYMENTS_LAST_NAME_INVALID";
2074
- SubmissionErrorCode["PaymentsLastNameRequired"] = "PAYMENTS_LAST_NAME_REQUIRED";
2075
- SubmissionErrorCode["PaymentsLastNameTooLong"] = "PAYMENTS_LAST_NAME_TOO_LONG";
2076
- SubmissionErrorCode["PaymentsMethodRequired"] = "PAYMENTS_METHOD_REQUIRED";
2077
- SubmissionErrorCode["PaymentsMethodUnavailable"] = "PAYMENTS_METHOD_UNAVAILABLE";
2078
- SubmissionErrorCode["PaymentsPhoneNumberInvalid"] = "PAYMENTS_PHONE_NUMBER_INVALID";
2079
- SubmissionErrorCode["PaymentsPhoneNumberRequired"] = "PAYMENTS_PHONE_NUMBER_REQUIRED";
2080
- SubmissionErrorCode["PaymentsPostalCodeInvalid"] = "PAYMENTS_POSTAL_CODE_INVALID";
2081
- SubmissionErrorCode["PaymentsPostalCodeRequired"] = "PAYMENTS_POSTAL_CODE_REQUIRED";
2082
- SubmissionErrorCode["PaymentsShopifyPaymentsRequired"] = "PAYMENTS_SHOPIFY_PAYMENTS_REQUIRED";
2083
- SubmissionErrorCode["PaymentsUnacceptablePaymentAmount"] = "PAYMENTS_UNACCEPTABLE_PAYMENT_AMOUNT";
2084
- SubmissionErrorCode["PaymentsWalletContentMissing"] = "PAYMENTS_WALLET_CONTENT_MISSING";
2085
- SubmissionErrorCode["TaxesDeliveryGroupIdNotFound"] = "TAXES_DELIVERY_GROUP_ID_NOT_FOUND";
2086
- SubmissionErrorCode["TaxesLineIdNotFound"] = "TAXES_LINE_ID_NOT_FOUND";
2087
- SubmissionErrorCode["TaxesMustBeDefined"] = "TAXES_MUST_BE_DEFINED";
2088
- })(SubmissionErrorCode || (SubmissionErrorCode = {}));
2089
- /** The different kinds of order transactions. */
2090
- var TransactionKind;
2091
- (function (TransactionKind) {
1968
+ ShopifySellingPlanCheckoutChargeType["Price"] = "PRICE";
1969
+ })(ShopifySellingPlanCheckoutChargeType || (ShopifySellingPlanCheckoutChargeType = {}));
1970
+ /** Represents a valid selling plan interval. */
1971
+ var ShopifySellingPlanInterval;
1972
+ (function (ShopifySellingPlanInterval) {
1973
+ /** Day interval. */
1974
+ ShopifySellingPlanInterval["Day"] = "DAY";
1975
+ /** Month interval. */
1976
+ ShopifySellingPlanInterval["Month"] = "MONTH";
1977
+ /** Week interval. */
1978
+ ShopifySellingPlanInterval["Week"] = "WEEK";
1979
+ /** Year interval. */
1980
+ ShopifySellingPlanInterval["Year"] = "YEAR";
1981
+ })(ShopifySellingPlanInterval || (ShopifySellingPlanInterval = {}));
1982
+ /** The payment frequency for a Shop Pay Installments Financing Plan. */
1983
+ var ShopifyShopPayInstallmentsFinancingPlanFrequency;
1984
+ (function (ShopifyShopPayInstallmentsFinancingPlanFrequency) {
1985
+ /** Monthly payment frequency. */
1986
+ ShopifyShopPayInstallmentsFinancingPlanFrequency["Monthly"] = "MONTHLY";
1987
+ /** Weekly payment frequency. */
1988
+ ShopifyShopPayInstallmentsFinancingPlanFrequency["Weekly"] = "WEEKLY";
1989
+ })(ShopifyShopPayInstallmentsFinancingPlanFrequency || (ShopifyShopPayInstallmentsFinancingPlanFrequency = {}));
1990
+ /** The loan type for a Shop Pay Installments Financing Plan Term. */
1991
+ var ShopifyShopPayInstallmentsLoan;
1992
+ (function (ShopifyShopPayInstallmentsLoan) {
1993
+ /** An interest-bearing loan type. */
1994
+ ShopifyShopPayInstallmentsLoan["Interest"] = "INTEREST";
1995
+ /** A split-pay loan type. */
1996
+ ShopifyShopPayInstallmentsLoan["SplitPay"] = "SPLIT_PAY";
1997
+ /** A zero-percent loan type. */
1998
+ ShopifyShopPayInstallmentsLoan["ZeroPercent"] = "ZERO_PERCENT";
1999
+ })(ShopifyShopPayInstallmentsLoan || (ShopifyShopPayInstallmentsLoan = {}));
2000
+ /** Represents the delivery method type for a Shop Pay payment request. */
2001
+ var ShopifyShopPayPaymentRequestDeliveryMethodType;
2002
+ (function (ShopifyShopPayPaymentRequestDeliveryMethodType) {
2003
+ /** The delivery method type is pickup. */
2004
+ ShopifyShopPayPaymentRequestDeliveryMethodType["Pickup"] = "PICKUP";
2005
+ /** The delivery method type is shipping. */
2006
+ ShopifyShopPayPaymentRequestDeliveryMethodType["Shipping"] = "SHIPPING";
2007
+ })(ShopifyShopPayPaymentRequestDeliveryMethodType || (ShopifyShopPayPaymentRequestDeliveryMethodType = {}));
2008
+ /** The types of resources potentially present in a sitemap. */
2009
+ var ShopifySitemapType;
2010
+ (function (ShopifySitemapType) {
2011
+ /** Articles present in the sitemap. */
2012
+ ShopifySitemapType["Article"] = "ARTICLE";
2013
+ /** Blogs present in the sitemap. */
2014
+ ShopifySitemapType["Blog"] = "BLOG";
2015
+ /** Collections present in the sitemap. */
2016
+ ShopifySitemapType["Collection"] = "COLLECTION";
2092
2017
  /**
2093
- * An amount reserved against the cardholder's funding source.
2094
- * Money does not change hands until the authorization is captured.
2018
+ * Metaobjects present in the sitemap. Only metaobject types with the
2019
+ * [`renderable` capability](https://shopify.dev/docs/apps/build/custom-data/metaobjects/use-metaobject-capabilities#render-metaobjects-as-web-pages)
2020
+ * are included in sitemap.
2095
2021
  *
2096
2022
  */
2097
- TransactionKind["Authorization"] = "AUTHORIZATION";
2098
- /** A transfer of the money that was reserved during the authorization stage. */
2099
- TransactionKind["Capture"] = "CAPTURE";
2100
- /** Money returned to the customer when they have paid too much. */
2101
- TransactionKind["Change"] = "CHANGE";
2102
- /** An authorization for a payment taken with an EMV credit card reader. */
2103
- TransactionKind["EmvAuthorization"] = "EMV_AUTHORIZATION";
2104
- /** An authorization and capture performed together in a single step. */
2105
- TransactionKind["Sale"] = "SALE";
2106
- })(TransactionKind || (TransactionKind = {}));
2107
- /** Transaction statuses describe the status of a transaction. */
2108
- var TransactionStatus;
2109
- (function (TransactionStatus) {
2110
- /** There was an error while processing the transaction. */
2111
- TransactionStatus["Error"] = "ERROR";
2112
- /** The transaction failed. */
2113
- TransactionStatus["Failure"] = "FAILURE";
2114
- /** The transaction is pending. */
2115
- TransactionStatus["Pending"] = "PENDING";
2116
- /** The transaction succeeded. */
2117
- TransactionStatus["Success"] = "SUCCESS";
2118
- })(TransactionStatus || (TransactionStatus = {}));
2023
+ ShopifySitemapType["Metaobject"] = "METAOBJECT";
2024
+ /** Pages present in the sitemap. */
2025
+ ShopifySitemapType["Page"] = "PAGE";
2026
+ /** Products present in the sitemap. */
2027
+ ShopifySitemapType["Product"] = "PRODUCT";
2028
+ })(ShopifySitemapType || (ShopifySitemapType = {}));
2029
+ /** The code of the error that occurred during cart submit for completion. */
2030
+ var ShopifySubmissionErrorCode;
2031
+ (function (ShopifySubmissionErrorCode) {
2032
+ ShopifySubmissionErrorCode["BuyerIdentityEmailIsInvalid"] = "BUYER_IDENTITY_EMAIL_IS_INVALID";
2033
+ ShopifySubmissionErrorCode["BuyerIdentityEmailRequired"] = "BUYER_IDENTITY_EMAIL_REQUIRED";
2034
+ ShopifySubmissionErrorCode["BuyerIdentityPhoneIsInvalid"] = "BUYER_IDENTITY_PHONE_IS_INVALID";
2035
+ ShopifySubmissionErrorCode["DeliveryAddress1Invalid"] = "DELIVERY_ADDRESS1_INVALID";
2036
+ ShopifySubmissionErrorCode["DeliveryAddress1Required"] = "DELIVERY_ADDRESS1_REQUIRED";
2037
+ ShopifySubmissionErrorCode["DeliveryAddress1TooLong"] = "DELIVERY_ADDRESS1_TOO_LONG";
2038
+ ShopifySubmissionErrorCode["DeliveryAddress2Invalid"] = "DELIVERY_ADDRESS2_INVALID";
2039
+ ShopifySubmissionErrorCode["DeliveryAddress2Required"] = "DELIVERY_ADDRESS2_REQUIRED";
2040
+ ShopifySubmissionErrorCode["DeliveryAddress2TooLong"] = "DELIVERY_ADDRESS2_TOO_LONG";
2041
+ ShopifySubmissionErrorCode["DeliveryAddressRequired"] = "DELIVERY_ADDRESS_REQUIRED";
2042
+ ShopifySubmissionErrorCode["DeliveryCityInvalid"] = "DELIVERY_CITY_INVALID";
2043
+ ShopifySubmissionErrorCode["DeliveryCityRequired"] = "DELIVERY_CITY_REQUIRED";
2044
+ ShopifySubmissionErrorCode["DeliveryCityTooLong"] = "DELIVERY_CITY_TOO_LONG";
2045
+ ShopifySubmissionErrorCode["DeliveryCompanyInvalid"] = "DELIVERY_COMPANY_INVALID";
2046
+ ShopifySubmissionErrorCode["DeliveryCompanyRequired"] = "DELIVERY_COMPANY_REQUIRED";
2047
+ ShopifySubmissionErrorCode["DeliveryCompanyTooLong"] = "DELIVERY_COMPANY_TOO_LONG";
2048
+ ShopifySubmissionErrorCode["DeliveryCountryRequired"] = "DELIVERY_COUNTRY_REQUIRED";
2049
+ ShopifySubmissionErrorCode["DeliveryFirstNameInvalid"] = "DELIVERY_FIRST_NAME_INVALID";
2050
+ ShopifySubmissionErrorCode["DeliveryFirstNameRequired"] = "DELIVERY_FIRST_NAME_REQUIRED";
2051
+ ShopifySubmissionErrorCode["DeliveryFirstNameTooLong"] = "DELIVERY_FIRST_NAME_TOO_LONG";
2052
+ ShopifySubmissionErrorCode["DeliveryInvalidPostalCodeForCountry"] = "DELIVERY_INVALID_POSTAL_CODE_FOR_COUNTRY";
2053
+ ShopifySubmissionErrorCode["DeliveryInvalidPostalCodeForZone"] = "DELIVERY_INVALID_POSTAL_CODE_FOR_ZONE";
2054
+ ShopifySubmissionErrorCode["DeliveryLastNameInvalid"] = "DELIVERY_LAST_NAME_INVALID";
2055
+ ShopifySubmissionErrorCode["DeliveryLastNameRequired"] = "DELIVERY_LAST_NAME_REQUIRED";
2056
+ ShopifySubmissionErrorCode["DeliveryLastNameTooLong"] = "DELIVERY_LAST_NAME_TOO_LONG";
2057
+ ShopifySubmissionErrorCode["DeliveryNoDeliveryAvailable"] = "DELIVERY_NO_DELIVERY_AVAILABLE";
2058
+ ShopifySubmissionErrorCode["DeliveryNoDeliveryAvailableForMerchandiseLine"] = "DELIVERY_NO_DELIVERY_AVAILABLE_FOR_MERCHANDISE_LINE";
2059
+ ShopifySubmissionErrorCode["DeliveryOptionsPhoneNumberInvalid"] = "DELIVERY_OPTIONS_PHONE_NUMBER_INVALID";
2060
+ ShopifySubmissionErrorCode["DeliveryOptionsPhoneNumberRequired"] = "DELIVERY_OPTIONS_PHONE_NUMBER_REQUIRED";
2061
+ ShopifySubmissionErrorCode["DeliveryPhoneNumberInvalid"] = "DELIVERY_PHONE_NUMBER_INVALID";
2062
+ ShopifySubmissionErrorCode["DeliveryPhoneNumberRequired"] = "DELIVERY_PHONE_NUMBER_REQUIRED";
2063
+ ShopifySubmissionErrorCode["DeliveryPostalCodeInvalid"] = "DELIVERY_POSTAL_CODE_INVALID";
2064
+ ShopifySubmissionErrorCode["DeliveryPostalCodeRequired"] = "DELIVERY_POSTAL_CODE_REQUIRED";
2065
+ ShopifySubmissionErrorCode["DeliveryZoneNotFound"] = "DELIVERY_ZONE_NOT_FOUND";
2066
+ ShopifySubmissionErrorCode["DeliveryZoneRequiredForCountry"] = "DELIVERY_ZONE_REQUIRED_FOR_COUNTRY";
2067
+ ShopifySubmissionErrorCode["Error"] = "ERROR";
2068
+ ShopifySubmissionErrorCode["MerchandiseLineLimitReached"] = "MERCHANDISE_LINE_LIMIT_REACHED";
2069
+ ShopifySubmissionErrorCode["MerchandiseNotApplicable"] = "MERCHANDISE_NOT_APPLICABLE";
2070
+ ShopifySubmissionErrorCode["MerchandiseNotEnoughStockAvailable"] = "MERCHANDISE_NOT_ENOUGH_STOCK_AVAILABLE";
2071
+ ShopifySubmissionErrorCode["MerchandiseOutOfStock"] = "MERCHANDISE_OUT_OF_STOCK";
2072
+ ShopifySubmissionErrorCode["MerchandiseProductNotPublished"] = "MERCHANDISE_PRODUCT_NOT_PUBLISHED";
2073
+ ShopifySubmissionErrorCode["NoDeliveryGroupSelected"] = "NO_DELIVERY_GROUP_SELECTED";
2074
+ ShopifySubmissionErrorCode["PaymentsAddress1Invalid"] = "PAYMENTS_ADDRESS1_INVALID";
2075
+ ShopifySubmissionErrorCode["PaymentsAddress1Required"] = "PAYMENTS_ADDRESS1_REQUIRED";
2076
+ ShopifySubmissionErrorCode["PaymentsAddress1TooLong"] = "PAYMENTS_ADDRESS1_TOO_LONG";
2077
+ ShopifySubmissionErrorCode["PaymentsAddress2Invalid"] = "PAYMENTS_ADDRESS2_INVALID";
2078
+ ShopifySubmissionErrorCode["PaymentsAddress2Required"] = "PAYMENTS_ADDRESS2_REQUIRED";
2079
+ ShopifySubmissionErrorCode["PaymentsAddress2TooLong"] = "PAYMENTS_ADDRESS2_TOO_LONG";
2080
+ ShopifySubmissionErrorCode["PaymentsBillingAddressZoneNotFound"] = "PAYMENTS_BILLING_ADDRESS_ZONE_NOT_FOUND";
2081
+ ShopifySubmissionErrorCode["PaymentsBillingAddressZoneRequiredForCountry"] = "PAYMENTS_BILLING_ADDRESS_ZONE_REQUIRED_FOR_COUNTRY";
2082
+ ShopifySubmissionErrorCode["PaymentsCityInvalid"] = "PAYMENTS_CITY_INVALID";
2083
+ ShopifySubmissionErrorCode["PaymentsCityRequired"] = "PAYMENTS_CITY_REQUIRED";
2084
+ ShopifySubmissionErrorCode["PaymentsCityTooLong"] = "PAYMENTS_CITY_TOO_LONG";
2085
+ ShopifySubmissionErrorCode["PaymentsCompanyInvalid"] = "PAYMENTS_COMPANY_INVALID";
2086
+ ShopifySubmissionErrorCode["PaymentsCompanyRequired"] = "PAYMENTS_COMPANY_REQUIRED";
2087
+ ShopifySubmissionErrorCode["PaymentsCompanyTooLong"] = "PAYMENTS_COMPANY_TOO_LONG";
2088
+ ShopifySubmissionErrorCode["PaymentsCountryRequired"] = "PAYMENTS_COUNTRY_REQUIRED";
2089
+ ShopifySubmissionErrorCode["PaymentsCreditCardBaseExpired"] = "PAYMENTS_CREDIT_CARD_BASE_EXPIRED";
2090
+ ShopifySubmissionErrorCode["PaymentsCreditCardBaseGatewayNotSupported"] = "PAYMENTS_CREDIT_CARD_BASE_GATEWAY_NOT_SUPPORTED";
2091
+ ShopifySubmissionErrorCode["PaymentsCreditCardBaseInvalidStartDateOrIssueNumberForDebit"] = "PAYMENTS_CREDIT_CARD_BASE_INVALID_START_DATE_OR_ISSUE_NUMBER_FOR_DEBIT";
2092
+ ShopifySubmissionErrorCode["PaymentsCreditCardBrandNotSupported"] = "PAYMENTS_CREDIT_CARD_BRAND_NOT_SUPPORTED";
2093
+ ShopifySubmissionErrorCode["PaymentsCreditCardFirstNameBlank"] = "PAYMENTS_CREDIT_CARD_FIRST_NAME_BLANK";
2094
+ ShopifySubmissionErrorCode["PaymentsCreditCardGeneric"] = "PAYMENTS_CREDIT_CARD_GENERIC";
2095
+ ShopifySubmissionErrorCode["PaymentsCreditCardLastNameBlank"] = "PAYMENTS_CREDIT_CARD_LAST_NAME_BLANK";
2096
+ ShopifySubmissionErrorCode["PaymentsCreditCardMonthInclusion"] = "PAYMENTS_CREDIT_CARD_MONTH_INCLUSION";
2097
+ ShopifySubmissionErrorCode["PaymentsCreditCardNameInvalid"] = "PAYMENTS_CREDIT_CARD_NAME_INVALID";
2098
+ ShopifySubmissionErrorCode["PaymentsCreditCardNumberInvalid"] = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID";
2099
+ ShopifySubmissionErrorCode["PaymentsCreditCardNumberInvalidFormat"] = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID_FORMAT";
2100
+ ShopifySubmissionErrorCode["PaymentsCreditCardSessionId"] = "PAYMENTS_CREDIT_CARD_SESSION_ID";
2101
+ ShopifySubmissionErrorCode["PaymentsCreditCardVerificationValueBlank"] = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_BLANK";
2102
+ ShopifySubmissionErrorCode["PaymentsCreditCardVerificationValueInvalidForCardType"] = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_INVALID_FOR_CARD_TYPE";
2103
+ ShopifySubmissionErrorCode["PaymentsCreditCardYearExpired"] = "PAYMENTS_CREDIT_CARD_YEAR_EXPIRED";
2104
+ ShopifySubmissionErrorCode["PaymentsCreditCardYearInvalidExpiryYear"] = "PAYMENTS_CREDIT_CARD_YEAR_INVALID_EXPIRY_YEAR";
2105
+ ShopifySubmissionErrorCode["PaymentsFirstNameInvalid"] = "PAYMENTS_FIRST_NAME_INVALID";
2106
+ ShopifySubmissionErrorCode["PaymentsFirstNameRequired"] = "PAYMENTS_FIRST_NAME_REQUIRED";
2107
+ ShopifySubmissionErrorCode["PaymentsFirstNameTooLong"] = "PAYMENTS_FIRST_NAME_TOO_LONG";
2108
+ ShopifySubmissionErrorCode["PaymentsInvalidPostalCodeForCountry"] = "PAYMENTS_INVALID_POSTAL_CODE_FOR_COUNTRY";
2109
+ ShopifySubmissionErrorCode["PaymentsInvalidPostalCodeForZone"] = "PAYMENTS_INVALID_POSTAL_CODE_FOR_ZONE";
2110
+ ShopifySubmissionErrorCode["PaymentsLastNameInvalid"] = "PAYMENTS_LAST_NAME_INVALID";
2111
+ ShopifySubmissionErrorCode["PaymentsLastNameRequired"] = "PAYMENTS_LAST_NAME_REQUIRED";
2112
+ ShopifySubmissionErrorCode["PaymentsLastNameTooLong"] = "PAYMENTS_LAST_NAME_TOO_LONG";
2113
+ ShopifySubmissionErrorCode["PaymentsMethodRequired"] = "PAYMENTS_METHOD_REQUIRED";
2114
+ ShopifySubmissionErrorCode["PaymentsMethodUnavailable"] = "PAYMENTS_METHOD_UNAVAILABLE";
2115
+ ShopifySubmissionErrorCode["PaymentsPhoneNumberInvalid"] = "PAYMENTS_PHONE_NUMBER_INVALID";
2116
+ ShopifySubmissionErrorCode["PaymentsPhoneNumberRequired"] = "PAYMENTS_PHONE_NUMBER_REQUIRED";
2117
+ ShopifySubmissionErrorCode["PaymentsPostalCodeInvalid"] = "PAYMENTS_POSTAL_CODE_INVALID";
2118
+ ShopifySubmissionErrorCode["PaymentsPostalCodeRequired"] = "PAYMENTS_POSTAL_CODE_REQUIRED";
2119
+ ShopifySubmissionErrorCode["PaymentsShopifyPaymentsRequired"] = "PAYMENTS_SHOPIFY_PAYMENTS_REQUIRED";
2120
+ ShopifySubmissionErrorCode["PaymentsUnacceptablePaymentAmount"] = "PAYMENTS_UNACCEPTABLE_PAYMENT_AMOUNT";
2121
+ ShopifySubmissionErrorCode["PaymentsWalletContentMissing"] = "PAYMENTS_WALLET_CONTENT_MISSING";
2122
+ /** Redirect to checkout required to complete this action. */
2123
+ ShopifySubmissionErrorCode["RedirectToCheckoutRequired"] = "REDIRECT_TO_CHECKOUT_REQUIRED";
2124
+ ShopifySubmissionErrorCode["TaxesDeliveryGroupIdNotFound"] = "TAXES_DELIVERY_GROUP_ID_NOT_FOUND";
2125
+ ShopifySubmissionErrorCode["TaxesLineIdNotFound"] = "TAXES_LINE_ID_NOT_FOUND";
2126
+ ShopifySubmissionErrorCode["TaxesMustBeDefined"] = "TAXES_MUST_BE_DEFINED";
2127
+ /** Validation failed. */
2128
+ ShopifySubmissionErrorCode["ValidationCustom"] = "VALIDATION_CUSTOM";
2129
+ })(ShopifySubmissionErrorCode || (ShopifySubmissionErrorCode = {}));
2119
2130
  /** The accepted types of unit of measurement. */
2120
- var UnitPriceMeasurementMeasuredType;
2121
- (function (UnitPriceMeasurementMeasuredType) {
2131
+ var ShopifyUnitPriceMeasurementMeasuredType;
2132
+ (function (ShopifyUnitPriceMeasurementMeasuredType) {
2122
2133
  /** Unit of measurements representing areas. */
2123
- UnitPriceMeasurementMeasuredType["Area"] = "AREA";
2134
+ ShopifyUnitPriceMeasurementMeasuredType["Area"] = "AREA";
2124
2135
  /** Unit of measurements representing lengths. */
2125
- UnitPriceMeasurementMeasuredType["Length"] = "LENGTH";
2136
+ ShopifyUnitPriceMeasurementMeasuredType["Length"] = "LENGTH";
2126
2137
  /** Unit of measurements representing volumes. */
2127
- UnitPriceMeasurementMeasuredType["Volume"] = "VOLUME";
2138
+ ShopifyUnitPriceMeasurementMeasuredType["Volume"] = "VOLUME";
2128
2139
  /** Unit of measurements representing weights. */
2129
- UnitPriceMeasurementMeasuredType["Weight"] = "WEIGHT";
2130
- })(UnitPriceMeasurementMeasuredType || (UnitPriceMeasurementMeasuredType = {}));
2140
+ ShopifyUnitPriceMeasurementMeasuredType["Weight"] = "WEIGHT";
2141
+ })(ShopifyUnitPriceMeasurementMeasuredType || (ShopifyUnitPriceMeasurementMeasuredType = {}));
2131
2142
  /** The valid units of measurement for a unit price measurement. */
2132
- var UnitPriceMeasurementMeasuredUnit;
2133
- (function (UnitPriceMeasurementMeasuredUnit) {
2143
+ var ShopifyUnitPriceMeasurementMeasuredUnit;
2144
+ (function (ShopifyUnitPriceMeasurementMeasuredUnit) {
2134
2145
  /** 100 centiliters equals 1 liter. */
2135
- UnitPriceMeasurementMeasuredUnit["Cl"] = "CL";
2146
+ ShopifyUnitPriceMeasurementMeasuredUnit["Cl"] = "CL";
2136
2147
  /** 100 centimeters equals 1 meter. */
2137
- UnitPriceMeasurementMeasuredUnit["Cm"] = "CM";
2148
+ ShopifyUnitPriceMeasurementMeasuredUnit["Cm"] = "CM";
2138
2149
  /** Metric system unit of weight. */
2139
- UnitPriceMeasurementMeasuredUnit["G"] = "G";
2150
+ ShopifyUnitPriceMeasurementMeasuredUnit["G"] = "G";
2140
2151
  /** 1 kilogram equals 1000 grams. */
2141
- UnitPriceMeasurementMeasuredUnit["Kg"] = "KG";
2152
+ ShopifyUnitPriceMeasurementMeasuredUnit["Kg"] = "KG";
2142
2153
  /** Metric system unit of volume. */
2143
- UnitPriceMeasurementMeasuredUnit["L"] = "L";
2154
+ ShopifyUnitPriceMeasurementMeasuredUnit["L"] = "L";
2144
2155
  /** Metric system unit of length. */
2145
- UnitPriceMeasurementMeasuredUnit["M"] = "M";
2156
+ ShopifyUnitPriceMeasurementMeasuredUnit["M"] = "M";
2146
2157
  /** Metric system unit of area. */
2147
- UnitPriceMeasurementMeasuredUnit["M2"] = "M2";
2158
+ ShopifyUnitPriceMeasurementMeasuredUnit["M2"] = "M2";
2148
2159
  /** 1 cubic meter equals 1000 liters. */
2149
- UnitPriceMeasurementMeasuredUnit["M3"] = "M3";
2160
+ ShopifyUnitPriceMeasurementMeasuredUnit["M3"] = "M3";
2150
2161
  /** 1000 milligrams equals 1 gram. */
2151
- UnitPriceMeasurementMeasuredUnit["Mg"] = "MG";
2162
+ ShopifyUnitPriceMeasurementMeasuredUnit["Mg"] = "MG";
2152
2163
  /** 1000 milliliters equals 1 liter. */
2153
- UnitPriceMeasurementMeasuredUnit["Ml"] = "ML";
2164
+ ShopifyUnitPriceMeasurementMeasuredUnit["Ml"] = "ML";
2154
2165
  /** 1000 millimeters equals 1 meter. */
2155
- UnitPriceMeasurementMeasuredUnit["Mm"] = "MM";
2156
- })(UnitPriceMeasurementMeasuredUnit || (UnitPriceMeasurementMeasuredUnit = {}));
2166
+ ShopifyUnitPriceMeasurementMeasuredUnit["Mm"] = "MM";
2167
+ })(ShopifyUnitPriceMeasurementMeasuredUnit || (ShopifyUnitPriceMeasurementMeasuredUnit = {}));
2157
2168
  /** Systems of weights and measures. */
2158
- var UnitSystem;
2159
- (function (UnitSystem) {
2169
+ var ShopifyUnitSystem;
2170
+ (function (ShopifyUnitSystem) {
2160
2171
  /** Imperial system of weights and measures. */
2161
- UnitSystem["ImperialSystem"] = "IMPERIAL_SYSTEM";
2172
+ ShopifyUnitSystem["ImperialSystem"] = "IMPERIAL_SYSTEM";
2162
2173
  /** Metric system of weights and measures. */
2163
- UnitSystem["MetricSystem"] = "METRIC_SYSTEM";
2164
- })(UnitSystem || (UnitSystem = {}));
2165
- /** Units of measurement for weight. */
2166
- var WeightUnit;
2167
- (function (WeightUnit) {
2174
+ ShopifyUnitSystem["MetricSystem"] = "METRIC_SYSTEM";
2175
+ })(ShopifyUnitSystem || (ShopifyUnitSystem = {}));
2176
+ /** Possible error codes that can be returned by `ShopPayPaymentRequestSessionUserErrors`. */
2177
+ var ShopifyUserErrorsShopPayPaymentRequestSessionUserErrorsCode;
2178
+ (function (ShopifyUserErrorsShopPayPaymentRequestSessionUserErrorsCode) {
2179
+ /** Idempotency key has already been used. */
2180
+ ShopifyUserErrorsShopPayPaymentRequestSessionUserErrorsCode["IdempotencyKeyAlreadyUsed"] = "IDEMPOTENCY_KEY_ALREADY_USED";
2181
+ /** Payment request input is invalid. */
2182
+ ShopifyUserErrorsShopPayPaymentRequestSessionUserErrorsCode["PaymentRequestInvalidInput"] = "PAYMENT_REQUEST_INVALID_INPUT";
2183
+ /** Payment request not found. */
2184
+ ShopifyUserErrorsShopPayPaymentRequestSessionUserErrorsCode["PaymentRequestNotFound"] = "PAYMENT_REQUEST_NOT_FOUND";
2185
+ })(ShopifyUserErrorsShopPayPaymentRequestSessionUserErrorsCode || (ShopifyUserErrorsShopPayPaymentRequestSessionUserErrorsCode = {}));
2186
+ /**
2187
+ * Units of measurement for weight, supporting both metric and imperial systems. Used by [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) to specify the unit for the variant's weight value.
2188
+ *
2189
+ */
2190
+ var ShopifyWeightUnit;
2191
+ (function (ShopifyWeightUnit) {
2168
2192
  /** Metric system unit of mass. */
2169
- WeightUnit["Grams"] = "GRAMS";
2193
+ ShopifyWeightUnit["Grams"] = "GRAMS";
2170
2194
  /** 1 kilogram equals 1000 grams. */
2171
- WeightUnit["Kilograms"] = "KILOGRAMS";
2195
+ ShopifyWeightUnit["Kilograms"] = "KILOGRAMS";
2172
2196
  /** Imperial system unit of mass. */
2173
- WeightUnit["Ounces"] = "OUNCES";
2197
+ ShopifyWeightUnit["Ounces"] = "OUNCES";
2174
2198
  /** 1 pound equals 16 ounces. */
2175
- WeightUnit["Pounds"] = "POUNDS";
2176
- })(WeightUnit || (WeightUnit = {}));
2177
- const ShopifyGetAllProductsDocument = gql `
2178
- query ShopifyGetAllProducts($length: Int) {
2179
- products(first: $length) {
2180
- nodes {
2181
- handle
2182
- onlineStoreUrl
2183
- availableForSale
2184
- priceRange {
2185
- maxVariantPrice {
2186
- amount
2187
- currencyCode
2188
- }
2189
- minVariantPrice {
2190
- amount
2191
- currencyCode
2199
+ ShopifyWeightUnit["Pounds"] = "POUNDS";
2200
+ })(ShopifyWeightUnit || (ShopifyWeightUnit = {}));
2201
+
2202
+ /**
2203
+ * Apollo GraphQL client name identifier for the Shopify driver.
2204
+ * Used to distinguish this client instance from other Apollo clients in the application.
2205
+ */
2206
+ const APOLLO_CLIENT_NAME = 'shopify';
2207
+
2208
+ /**
2209
+ * Transforms a DaffIdentifiable id and object type into a Shopify object id
2210
+ *
2211
+ * @param id - numerical code that represents a shopify object id
2212
+ * @param type - Shopify type (e.g. Product, Collection, CollectionImage, etc.)
2213
+ * @returns Shopify-readable url (e.g. gid://shopify/Product/777172771721)
2214
+ */
2215
+ const shopifyIdTransformer = (id, type) => {
2216
+ const shopifyProductId = `gid://shopify/${type}/${id}`;
2217
+ return shopifyProductId;
2218
+ };
2219
+
2220
+ /**
2221
+ * Transforms a faker-js generated object name to a valid shopify handle (lowercase chars with hyphens instead of spaces)
2222
+ *
2223
+ * @param title - name of a product
2224
+ * @returns shopify-readable handle
2225
+ */
2226
+ const shopifyHandleTransformer = (title) => {
2227
+ const noSpaces = title.replace(/ /g, '-');
2228
+ const handle = noSpaces.toLowerCase();
2229
+ return handle;
2230
+ };
2231
+
2232
+ /**
2233
+ * Transforms a DaffLocatable url into a Shopify handle string
2234
+ *
2235
+ * See {@link DaffLocatable} for more information on the requirements for the url argument.
2236
+ *
2237
+ * @param url - DaffLocatable url (e.g. /coffee-pot.html)
2238
+ * @returns shopify-readable handle
2239
+ */
2240
+ const shopifyUrlTransformer = (url) => {
2241
+ const noLeadingSlashes = url.split('/').pop() || '';
2242
+ const noTrailingExtension = noLeadingSlashes.split('.')[0];
2243
+ const handle = noTrailingExtension;
2244
+ return handle;
2245
+ };
2246
+
2247
+ /**
2248
+ * Transforms an abstract {@link ShopifyImageNode} into a concrete type (e.g. ShopifyProductImageNode) by modifying the Shopify id
2249
+ *
2250
+ * See {@link ShopifyObjectTypes} for more information on the requirements for the type argument.
2251
+ *
2252
+ * @param node - default ShopifyImageNode created by factory (id initially left empty)
2253
+ * @param type - name of Shopify image object (e.g. CollectionImage, ProductImage)
2254
+ */
2255
+ const shopifyImageTransformer = (node, type) => ({
2256
+ id: shopifyIdTransformer(`${faker.number.int({ min: 10000000000 })}`, type),
2257
+ altText: node.altText,
2258
+ url: node.url,
2259
+ });
2260
+
2261
+ /**
2262
+ * Generates a route path based on the Shopify resource type and handle.
2263
+ *
2264
+ * @param type The Shopify resource type (COLLECTION, PRODUCT, PAGE, etc.)
2265
+ * @param handle The resource handle/slug
2266
+ * @returns The formatted route path
2267
+ * @throws Error if type is empty
2268
+ */
2269
+ const getShopifyRoutePath = (type, handle) => {
2270
+ if (!type) {
2271
+ throw new Error('Type cannot be empty');
2272
+ }
2273
+ switch (type) {
2274
+ case ShopifyMenuItemType.Collection:
2275
+ return `/collections/${handle}`;
2276
+ case ShopifyMenuItemType.Product:
2277
+ return `/products/${handle}`;
2278
+ case ShopifyMenuItemType.Page:
2279
+ return `/pages/${handle}`;
2280
+ default:
2281
+ return `/${type.toLowerCase()}s/${handle}`;
2282
+ }
2283
+ };
2284
+
2285
+ /**
2286
+ * Returns whether a ShopifyFilter['values'][number]['input'] {@link ShopifyFilter} JSON string is applied in a given Shopify Collection query request.
2287
+ */
2288
+ const daffShopifyIsFilterApplied = (shopifyFilterJSONInput, shopifyProductFilters) => {
2289
+ const visited = {};
2290
+ const parsedData = JSON.parse(shopifyFilterJSONInput);
2291
+ const filterName = Object.keys(parsedData)[0];
2292
+ const filterValue = parsedData[filterName];
2293
+ for (const queryFilter of shopifyProductFilters) {
2294
+ if (isValidVisit(visited, filterName, queryFilter[filterName]) && JSON.stringify(queryFilter[filterName]) === JSON.stringify(filterValue)) {
2295
+ return true;
2192
2296
  }
2193
- }
2194
- id
2195
- title
2196
- description
2197
- images(first: 1) {
2198
- nodes {
2199
- id
2200
- url
2201
- altText
2297
+ if (filterName === 'available' || filterName === 'price') {
2298
+ if (queryFilter[filterName] !== null) {
2299
+ visited[filterName] = true;
2300
+ }
2202
2301
  }
2203
- }
2204
2302
  }
2205
- }
2206
- }
2207
- `;
2208
- class ShopifyGetAllProductsGQL extends i1.Query {
2209
- constructor(apollo) {
2210
- super(apollo);
2211
- this.document = ShopifyGetAllProductsDocument;
2303
+ return false;
2304
+ };
2305
+ /**
2306
+ * Checks if the visit on a filter is valid, i.e., it is not null. For the 'available' and 'price' filters, we must also check that they have not been
2307
+ * previously visited, since Shopify only considers the first occurrence.
2308
+ */
2309
+ function isValidVisit(visited, filterName, filterValue) {
2310
+ if (filterName === 'available' || filterName === 'price') {
2311
+ return !(visited[filterName]) && filterValue !== null;
2212
2312
  }
2213
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetAllProductsGQL, deps: [{ token: i1.Apollo }], target: i0.ɵɵFactoryTarget.Injectable }); }
2214
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetAllProductsGQL, providedIn: 'root' }); }
2313
+ return filterValue !== null;
2215
2314
  }
2216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetAllProductsGQL, decorators: [{
2217
- type: Injectable,
2218
- args: [{
2219
- providedIn: 'root'
2220
- }]
2221
- }], ctorParameters: () => [{ type: i1.Apollo }] });
2222
- const ShopifyGetProductByUrlDocument = gql `
2223
- query ShopifyGetProductByURL($handle: String!) {
2224
- product(handle: $handle) {
2225
- handle
2226
- id
2227
- title
2228
- description
2229
- availableForSale
2230
- priceRange {
2231
- maxVariantPrice {
2232
- amount
2233
- currencyCode
2234
- }
2235
- minVariantPrice {
2236
- amount
2237
- currencyCode
2238
- }
2239
- }
2240
- images(first: 1) {
2241
- nodes {
2242
- id
2243
- url
2244
- altText
2245
- }
2315
+
2316
+ /**
2317
+ * Transforms a shopifyFilterJSONInput string {@link ShopifyFilter} into a JSON object that can later be parsed for useful filtering information.
2318
+ */
2319
+ const daffShopifyFilterJSONInputResultTransformer = (shopifyFilterJSONInput) => {
2320
+ const parsedData = JSON.parse(shopifyFilterJSONInput);
2321
+ return parsedData;
2322
+ };
2323
+
2324
+ /**
2325
+ * Transforms a ShopifyFilter['values'] {@link ShopifyFilter} object into daffodil-readable filter options
2326
+ */
2327
+ const daffShopifyFilterOptionsTransformer = (shopifyFilterValues, appliedFilters) => {
2328
+ const filterOptions = {};
2329
+ for (const option of shopifyFilterValues) {
2330
+ filterOptions[option.label] = {
2331
+ label: option.label,
2332
+ value: option.input,
2333
+ count: undefined,
2334
+ applied: daffShopifyIsFilterApplied(option.input, appliedFilters),
2335
+ };
2246
2336
  }
2247
- onlineStoreUrl
2337
+ return filterOptions;
2338
+ };
2339
+
2340
+ /**
2341
+ * Checks if a string is a valid, and coerces it into a {@link ShopifyProductCollectionSortKeys} object, or returns the CollectionDefault sortkey
2342
+ */
2343
+ const shopifyProductCollectionSortKeyCoercer = (sortkey) => {
2344
+ const validSortKeys = Object.fromEntries(Object.values(ShopifyProductCollectionSortKeys).map(key => [key, true]));
2345
+ return validSortKeys[sortkey] ? sortkey : ShopifyProductCollectionSortKeys.CollectionDefault;
2346
+ };
2347
+
2348
+ const shopifyCollectionFiltersFragment = gql `
2349
+ fragment collectionFiltersFragment on Filter {
2350
+ id
2351
+ label
2352
+ presentation
2353
+ type
2354
+ values {
2355
+ count
2356
+ id
2357
+ label
2358
+ input
2359
+ }
2360
+ }
2361
+ `;
2362
+
2363
+ const shopifyProductCoreFragment = gql `
2364
+ fragment productCoreFragment on Product {
2365
+ handle
2366
+ title
2367
+ id
2368
+ description
2369
+ onlineStoreUrl
2370
+ availableForSale
2248
2371
  }
2249
- }
2250
- `;
2251
- class ShopifyGetProductByUrlGQL extends i1.Query {
2252
- constructor(apollo) {
2253
- super(apollo);
2254
- this.document = ShopifyGetProductByUrlDocument;
2255
- }
2256
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetProductByUrlGQL, deps: [{ token: i1.Apollo }], target: i0.ɵɵFactoryTarget.Injectable }); }
2257
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetProductByUrlGQL, providedIn: 'root' }); }
2258
- }
2259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetProductByUrlGQL, decorators: [{
2260
- type: Injectable,
2261
- args: [{
2262
- providedIn: 'root'
2263
- }]
2264
- }], ctorParameters: () => [{ type: i1.Apollo }] });
2265
- const ShopifyGetAProductDocument = gql `
2266
- query ShopifyGetAProduct($id: ID!) {
2267
- product(id: $id) {
2268
- handle
2269
- id
2270
- title
2271
- description
2272
- availableForSale
2273
- priceRange {
2274
- maxVariantPrice {
2275
- amount
2276
- currencyCode
2277
- }
2278
- minVariantPrice {
2279
- amount
2280
- currencyCode
2281
- }
2282
- }
2283
- images(first: 1) {
2284
- nodes {
2285
- id
2286
- url
2287
- altText
2288
- }
2289
- }
2290
- onlineStoreUrl
2372
+ `;
2373
+ const shopifyCollectionCoreFragment = gql `
2374
+ fragment collectionCoreFragment on Collection {
2375
+ handle
2376
+ title
2377
+ id
2378
+ description
2379
+ onlineStoreUrl
2291
2380
  }
2292
- }
2293
- `;
2294
- class ShopifyGetAProductGQL extends i1.Query {
2295
- constructor(apollo) {
2296
- super(apollo);
2297
- this.document = ShopifyGetAProductDocument;
2298
- }
2299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetAProductGQL, deps: [{ token: i1.Apollo }], target: i0.ɵɵFactoryTarget.Injectable }); }
2300
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetAProductGQL, providedIn: 'root' }); }
2301
- }
2302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShopifyGetAProductGQL, decorators: [{
2303
- type: Injectable,
2304
- args: [{
2305
- providedIn: 'root'
2306
- }]
2307
- }], ctorParameters: () => [{ type: i1.Apollo }] });
2381
+ `;
2382
+
2383
+ const shopifyImageFragment = gql `
2384
+ fragment imageFragment on Image {
2385
+ altText
2386
+ id
2387
+ url
2388
+ }
2389
+ `;
2390
+
2391
+ const shopifyProductPriceRangeFragment = gql `
2392
+ fragment productPriceRangeFragment on ProductPriceRange {
2393
+ maxVariantPrice {
2394
+ amount
2395
+ currencyCode
2396
+ }
2397
+ minVariantPrice {
2398
+ amount
2399
+ currencyCode
2400
+ }
2401
+ }
2402
+ `;
2308
2403
 
2309
2404
  /**
2310
2405
  * Creates an Apollo authentication link that adds the Shopify Storefront API (public) access token to requests.
@@ -2367,12 +2462,6 @@ function createHttpLink(url) {
2367
2462
  });
2368
2463
  }
2369
2464
 
2370
- /**
2371
- * Apollo GraphQL client name identifier for the Shopify driver.
2372
- * Used to distinguish this client instance from other Apollo clients in the application.
2373
- */
2374
- const APOLLO_CLIENT_NAME = 'shopify';
2375
-
2376
2465
  /**
2377
2466
  * Provides an Apollo client configuration for Shopify's Storefront API.
2378
2467
  *
@@ -2394,90 +2483,9 @@ const provideShopifyDriver = (config) => provideNamedApollo(() => {
2394
2483
  };
2395
2484
  });
2396
2485
 
2397
- /**
2398
- * Provides an Apollo client configuration for Shopify's Storefront API.
2399
- *
2400
- * @deprecated, prefer using provideShopifyDriver Deprecated in version 0.89.0. Will be removed in version 0.92.0.
2401
- *
2402
- * @param domain - The Shopify store domain (e.g. "https://daffodil-demo-alpha.myshopify.com")
2403
- * @param accessToken - The Shopify Storefront API access token.
2404
- * @returns An Apollo client provider configured with a Shopify store domain and Storefront API access token.
2405
- */
2406
- function provideShopifyApolloDriver(domain, accessToken) {
2407
- return provideShopifyDriver({
2408
- domain,
2409
- accessToken,
2410
- });
2411
- }
2412
-
2413
- /**
2414
- * Transforms a DaffIdentifiable id and object type into a Shopify object id
2415
- *
2416
- * See {@link DaffIdentifiable} for more information on the requirements for the id argument.
2417
- *
2418
- * @param id - string
2419
- * @param type - string
2420
- * @returns string
2421
- */
2422
- const shopifyIdTransformer = (id, type) => {
2423
- const shopifyProductId = `gid://shopify/${type}/${id}`;
2424
- return shopifyProductId;
2425
- };
2426
-
2427
- /**
2428
- * Transforms a faker-js generated object name to a valid shopify handle (lowercase chars with hyphens instead of spaces)
2429
- *
2430
- * @param title - string
2431
- * @returns string
2432
- */
2433
- const shopifyHandleTransformer = (title) => {
2434
- const noSpaces = title.replace(/ /g, '-');
2435
- const handle = noSpaces.toLowerCase();
2436
- return handle;
2437
- };
2438
-
2439
- /**
2440
- * Transforms a DaffLocatable url into a Shopify handle string
2441
- *
2442
- * See {@link DaffLocatable} for more information on the requirements for the url argument.
2443
- *
2444
- * @param url - string
2445
- * @returns string
2446
- */
2447
- const shopifyUrlTransformer = (url) => {
2448
- const noLeadingSlashes = url.split('/').pop() || '';
2449
- const noTrailingExtension = noLeadingSlashes.split('.')[0];
2450
- const handle = noTrailingExtension;
2451
- return handle;
2452
- };
2453
-
2454
- /**
2455
- * Generates a route path based on the Shopify resource type and handle.
2456
- *
2457
- * @param type The Shopify resource type (COLLECTION, PRODUCT, PAGE, etc.)
2458
- * @param handle The resource handle/slug
2459
- * @returns The formatted route path
2460
- * @throws Error if type is empty
2461
- */
2462
- const getShopifyRoutePath = (type, handle) => {
2463
- if (!type) {
2464
- throw new Error('Type cannot be empty');
2465
- }
2466
- switch (type) {
2467
- case MenuItemType.Collection:
2468
- return `/collections/${handle}`;
2469
- case MenuItemType.Product:
2470
- return `/products/${handle}`;
2471
- case MenuItemType.Page:
2472
- return `/pages/${handle}`;
2473
- default:
2474
- return `/${type.toLowerCase()}s/${handle}`;
2475
- }
2476
- };
2477
-
2478
2486
  /**
2479
2487
  * Generated bundle index. Do not edit.
2480
2488
  */
2481
2489
 
2482
- export { APOLLO_CLIENT_NAME, ArticleSortKeys, BlogSortKeys, CardBrand, CartCardSource, CartDeliveryGroupType, CartErrorCode, CheckoutErrorCode, CollectionSortKeys, CompletionErrorCode, CountryCode, CropRegion, CurrencyCode, CustomerErrorCode, DeliveryAddressValidationStrategy, DeliveryMethodType, DigitalWallet, DiscountApplicationAllocationMethod, DiscountApplicationTargetSelection, DiscountApplicationTargetType, FilterPresentation, FilterType, ImageContentType, LanguageCode, LocationSortKeys, MediaContentType, MediaHost, MediaPresentationFormat, MenuItemType, MetafieldDeleteErrorCode, MetafieldsSetUserErrorCode, OrderCancelReason, OrderFinancialStatus, OrderFulfillmentStatus, OrderSortKeys, PageSortKeys, PaymentTokenType, PredictiveSearchLimitScope, PredictiveSearchType, PreferenceDeliveryMethodType, ProductCollectionSortKeys, ProductImageSortKeys, ProductMediaSortKeys, ProductRecommendationIntent, ProductSortKeys, ProductVariantSortKeys, SearchPrefixQueryType, SearchSortKeys, SearchType, SearchUnavailableProductsType, SearchableField, SellingPlanCheckoutChargeType, ShopifyGetAProductDocument, ShopifyGetAProductGQL, ShopifyGetAllProductsDocument, ShopifyGetAllProductsGQL, ShopifyGetProductByUrlDocument, ShopifyGetProductByUrlGQL, SubmissionErrorCode, TransactionKind, TransactionStatus, UnitPriceMeasurementMeasuredType, UnitPriceMeasurementMeasuredUnit, UnitSystem, WeightUnit, getShopifyRoutePath, provideShopifyApolloDriver, provideShopifyDriver, shopifyHandleTransformer, shopifyIdTransformer, shopifyUrlTransformer };
2490
+ export { APOLLO_CLIENT_NAME, ShopifyArticleSortKeys, ShopifyBlogSortKeys, ShopifyCardBrand, ShopifyCartCardSource, ShopifyCartDeliveryGroupType, ShopifyCartErrorCode, ShopifyCartWarningCode, ShopifyCollectionSortKeys, ShopifyCompletionErrorCode, ShopifyCountPrecision, ShopifyCountryCode, ShopifyCropRegion, ShopifyCurrencyCode, ShopifyCustomerErrorCode, ShopifyDeliveryAddressValidationStrategy, ShopifyDeliveryMethodType, ShopifyDigitalWallet, ShopifyDiscountApplicationAllocationMethod, ShopifyDiscountApplicationTargetSelection, ShopifyDiscountApplicationTargetType, ShopifyFilterPresentation, ShopifyFilterType, ShopifyImageContentType, ShopifyLanguageCode, ShopifyLocationSortKeys, ShopifyMediaContentType, ShopifyMediaHost, ShopifyMediaPresentationFormat, ShopifyMenuItemType, ShopifyMetafieldDeleteErrorCode, ShopifyMetafieldsSetUserErrorCode, ShopifyOrderCancelReason, ShopifyOrderFinancialStatus, ShopifyOrderFulfillmentStatus, ShopifyOrderSortKeys, ShopifyPageSortKeys, ShopifyPredictiveSearchLimitScope, ShopifyPredictiveSearchType, ShopifyPreferenceDeliveryMethodType, ShopifyProductCollectionSortKeys, ShopifyProductImageSortKeys, ShopifyProductMediaSortKeys, ShopifyProductRecommendationIntent, ShopifyProductSortKeys, ShopifyProductVariantSortKeys, ShopifySearchPrefixQueryType, ShopifySearchSortKeys, ShopifySearchType, ShopifySearchUnavailableProductsType, ShopifySearchableField, ShopifySellingPlanCheckoutChargeType, ShopifySellingPlanInterval, ShopifyShopPayInstallmentsFinancingPlanFrequency, ShopifyShopPayInstallmentsLoan, ShopifyShopPayPaymentRequestDeliveryMethodType, ShopifySitemapType, ShopifySubmissionErrorCode, ShopifyUnitPriceMeasurementMeasuredType, ShopifyUnitPriceMeasurementMeasuredUnit, ShopifyUnitSystem, ShopifyUserErrorsShopPayPaymentRequestSessionUserErrorsCode, ShopifyWeightUnit, daffShopifyFilterJSONInputResultTransformer, daffShopifyFilterOptionsTransformer, daffShopifyIsFilterApplied, getShopifyRoutePath, provideShopifyDriver, shopifyCollectionCoreFragment, shopifyCollectionFiltersFragment, shopifyHandleTransformer, shopifyIdTransformer, shopifyImageFragment, shopifyImageTransformer, shopifyProductCollectionSortKeyCoercer, shopifyProductCoreFragment, shopifyProductPriceRangeFragment, shopifyUrlTransformer };
2483
2491
  //# sourceMappingURL=daffodil-driver-shopify.mjs.map