@daffodil/driver 0.94.1 → 0.95.1

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