@daffodil/driver 0.81.0 → 0.82.0

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