@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.
- package/fesm2022/daffodil-driver-hubspot-testing.mjs +53 -38
- package/fesm2022/daffodil-driver-hubspot-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-hubspot.mjs +41 -60
- package/fesm2022/daffodil-driver-hubspot.mjs.map +1 -1
- package/fesm2022/daffodil-driver-in-memory.mjs +186 -258
- package/fesm2022/daffodil-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-driver-magento-2.4.7-testing.mjs +139 -0
- package/fesm2022/daffodil-driver-magento-2.4.7-testing.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-2.4.7.mjs +543 -0
- package/fesm2022/daffodil-driver-magento-2.4.7.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-auto-testing.mjs +7 -0
- package/fesm2022/daffodil-driver-magento-auto-testing.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-driver-shopify-testing.mjs +359 -216
- package/fesm2022/daffodil-driver-shopify-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify.mjs +1090 -2289
- package/fesm2022/daffodil-driver-shopify.mjs.map +1 -1
- package/fesm2022/daffodil-driver.mjs +55 -54
- package/fesm2022/daffodil-driver.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-driver-hubspot-testing.d.ts +12 -15
- package/types/daffodil-driver-hubspot.d.ts +44 -52
- package/types/daffodil-driver-in-memory.d.ts +104 -121
- package/types/daffodil-driver-magento-2.4.7-testing.d.ts +18 -0
- package/types/daffodil-driver-magento-2.4.7.d.ts +189 -0
- package/types/daffodil-driver-magento-auto-testing.d.ts +1 -0
- package/types/daffodil-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-driver-shopify-testing.d.ts +112 -121
- package/types/daffodil-driver-shopify.d.ts +6902 -6943
- package/types/daffodil-driver.d.ts +32 -42
- package/fesm2022/daffodil-driver-magento-testing.mjs +0 -79
- package/fesm2022/daffodil-driver-magento-testing.mjs.map +0 -1
- package/fesm2022/daffodil-driver-magento.mjs +0 -998
- package/fesm2022/daffodil-driver-magento.mjs.map +0 -1
- package/types/daffodil-driver-magento-testing.d.ts +0 -23
- package/types/daffodil-driver-magento.d.ts +0 -225
|
@@ -1,2351 +1,1205 @@
|
|
|
1
|
-
import { faker } from
|
|
2
|
-
import { gql, provideNamedApollo } from
|
|
3
|
-
import {
|
|
4
|
-
import { CombinedGraphQLErrors, InMemoryCache
|
|
5
|
-
import { HttpHeaders } from
|
|
6
|
-
import { SetContextLink } from
|
|
7
|
-
import { ErrorLink } from
|
|
8
|
-
import { HttpLink } from
|
|
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
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
|
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
|
|
83
|
-
|
|
84
|
-
|
|
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
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
|
231
|
-
|
|
232
|
-
|
|
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
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
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
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
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
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
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
|
|
1135
|
-
|
|
1136
|
-
|
|
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
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
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
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
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
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
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
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
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
|
|
1212
|
-
|
|
1213
|
-
|
|
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
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
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
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
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
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
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
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
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
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
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
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
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
|
|
1580
|
-
|
|
1581
|
-
|
|
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
|
|
1588
|
-
|
|
1589
|
-
|
|
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
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
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
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
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
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
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
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
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
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
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
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
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
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
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
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
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
|
|
1755
|
-
|
|
1756
|
-
|
|
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
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
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
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
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
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
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
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
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
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
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
|
|
1850
|
-
|
|
1851
|
-
|
|
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
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
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
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
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
|
|
1907
|
-
|
|
1908
|
-
|
|
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
|
|
1915
|
-
|
|
1916
|
-
|
|
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
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
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
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
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
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
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
|
|
1965
|
-
|
|
1966
|
-
|
|
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
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
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
|
|
1985
|
-
|
|
1986
|
-
|
|
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
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
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
|
|
2003
|
-
|
|
2004
|
-
|
|
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
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
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
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
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
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
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
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
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
|
|
2171
|
-
|
|
2172
|
-
|
|
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
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
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
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
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
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
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
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
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
|
-
|
|
2311
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
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
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
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
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
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
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
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
|
-
|
|
1289
|
+
|
|
1290
|
+
//# sourceMappingURL=daffodil-driver-shopify.mjs.map
|