@ikas/storefront-api 4.0.0-alpha.39 → 4.0.0-alpha.4

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 (61) hide show
  1. package/package.json +7 -7
  2. package/src/__api/models/Cart.ts +0 -2
  3. package/src/__api/models/CartStorefrontRoutingDynamicCurrencySettings.ts +0 -2
  4. package/src/__api/models/CartV2.ts +0 -2
  5. package/src/__api/models/CheckoutSettingsPrice.ts +0 -2
  6. package/src/__api/models/Country.ts +0 -4
  7. package/src/__api/models/CurrencyRate.ts +0 -4
  8. package/src/__api/models/OrderLineItem.ts +0 -2
  9. package/src/__api/models/OrderLineVariantPrice.ts +0 -2
  10. package/src/__api/models/ProductBackInStockRemind.ts +0 -2
  11. package/src/__api/models/ProductOptionSelectValueOtherPrice.ts +0 -2
  12. package/src/__api/models/ProductPrice.ts +0 -4
  13. package/src/__api/models/{StorefrontRaffle.ts → Raffle.ts} +16 -5
  14. package/src/__api/models/RafflePaginationResponse.ts +3 -5
  15. package/src/__api/models/RaffleParticipants.ts +10 -8
  16. package/src/__api/models/RaffleParticipantsInput.ts +4 -1
  17. package/src/__api/models/RaffleParticipantsUpdateInput.ts +24 -0
  18. package/src/__api/models/SearchProductPrice.ts +0 -4
  19. package/src/__api/models/StorefrontDynamicCurrencySettings.ts +0 -2
  20. package/src/__api/models/StorefrontOrder.ts +0 -2
  21. package/src/__api/models/StorefrontTransaction.ts +0 -2
  22. package/src/__api/models/_base.ts +1 -2
  23. package/src/__api/mutations/addCouponCodeToCheckout.ts +1 -5
  24. package/src/__api/mutations/addItemToCart.ts +1 -4
  25. package/src/__api/mutations/createOrderRefundRequest.ts +1 -4
  26. package/src/__api/mutations/saveCart.ts +1 -4
  27. package/src/__api/mutations/saveCartCouponCode.ts +1 -4
  28. package/src/__api/mutations/saveCheckout.ts +1 -5
  29. package/src/__api/mutations/saveItemToCart.ts +1 -5
  30. package/src/__api/mutations/saveProductBackInStockRemind.ts +1 -2
  31. package/src/__api/mutations/saveRaffleParticipant.ts +3 -25
  32. package/src/__api/mutations/updateCartCampaignOffer.ts +1 -4
  33. package/src/__api/mutations/updateRaffleParticipant.ts +72 -0
  34. package/src/__api/queries/getCart.ts +1 -5
  35. package/src/__api/queries/getCartById.ts +1 -4
  36. package/src/__api/queries/getCheckoutByCartId.ts +1 -5
  37. package/src/__api/queries/getCheckoutById.ts +1 -5
  38. package/src/__api/queries/getCurrencyRate.ts +1 -3
  39. package/src/__api/queries/getCustomerOrders.ts +1 -4
  40. package/src/__api/queries/getOrder.ts +1 -4
  41. package/src/__api/queries/getOrderByEmail.ts +1 -4
  42. package/src/__api/queries/getRaffleParticipants.ts +59 -0
  43. package/src/__api/queries/getRafflesByCustomerId.ts +74 -0
  44. package/src/__api/queries/getStorefront.ts +1 -2
  45. package/src/__api/queries/listCheckoutSettings.ts +1 -2
  46. package/src/__api/queries/listCountry.ts +1 -3
  47. package/src/__api/queries/listOrderTransactions.ts +1 -2
  48. package/src/__api/queries/listProduct.ts +1 -3
  49. package/src/__api/queries/listProductBackInStockRemind.ts +1 -2
  50. package/src/__api/queries/listProductOptionSet.ts +1 -3
  51. package/src/__api/queries/{listStorefrontRaffle.ts → listRaffle.ts} +10 -10
  52. package/src/__api/queries/searchProducts.ts +1 -3
  53. package/src/__api/types/index.ts +35 -43
  54. package/src/api/checkout/index.ts +1 -1
  55. package/src/api/customer/index.ts +0 -9
  56. package/src/api/file-upload/index.ts +29 -35
  57. package/src/api/masterpass/index.ts +7 -7
  58. package/src/api/product/index.ts +0 -1
  59. package/src/api/raffle/index.ts +14 -12
  60. package/src/index.ts +7 -9
  61. package/src/__api/queries/listRaffleParticipants.ts +0 -81
@@ -45,7 +45,7 @@ export type QueryParams = {
45
45
  };
46
46
 
47
47
  const allReturnFields =
48
- "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
48
+ "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
49
49
 
50
50
  export enum ResponseField {
51
51
  ABANDONED_CART_FLOWS__CAMPAIGN_ID = "abandonedCartFlows.campaignId",
@@ -136,7 +136,6 @@ export enum ResponseField {
136
136
  CURRENCY_RATES__CODE = "currencyRates.code",
137
137
  CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
138
138
  CURRENCY_RATES__RATE = "currencyRates.rate",
139
- CURRENCY_SYMBOL = "currencySymbol",
140
139
  CUSTOMER__EMAIL = "customer.email",
141
140
  CUSTOMER__FIRST_NAME = "customer.firstName",
142
141
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -171,7 +170,6 @@ export enum ResponseField {
171
170
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
172
171
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
173
172
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
174
- ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
175
173
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
176
174
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
177
175
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -209,7 +207,6 @@ export enum ResponseField {
209
207
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
210
208
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
211
209
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
212
- ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
213
210
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
214
211
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
215
212
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{abandonedCheckoutFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } adjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cart {campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode currencySymbol customerId deleted dueDate id itemCount items {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode targetCurrencySymbol } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt } cartId couponCode createdAt customer {accountStatus customerGroupIds email firstName id identityNumber lastName notificationsAccepted phone subscriptionStatus } deleted giftPackageLines {price taxValue } giftPackageNote id isGiftPackage merchantId note orderId orderNumber orderedAt recoverEmailStatus recoveryStatus shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId totalFinalPrice updatedAt }";
45
+ "{abandonedCheckoutFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } adjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cart {campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode customerId deleted dueDate id itemCount items {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt } cartId couponCode createdAt customer {accountStatus customerGroupIds email firstName id identityNumber lastName notificationsAccepted phone subscriptionStatus } deleted giftPackageLines {price taxValue } giftPackageNote id isGiftPackage merchantId note orderId orderNumber orderedAt recoverEmailStatus recoveryStatus shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId totalFinalPrice updatedAt }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CHECKOUT_FLOWS__CAMPAIGN_ID = "abandonedCheckoutFlows.campaignId",
@@ -109,7 +109,6 @@ export enum ResponseField {
109
109
  CART__CREATED_AT = "cart.createdAt",
110
110
  CART__CREATED_BY = "cart.createdBy",
111
111
  CART__CURRENCY_CODE = "cart.currencyCode",
112
- CART__CURRENCY_SYMBOL = "cart.currencySymbol",
113
112
  CART__CUSTOMER_ID = "cart.customerId",
114
113
  CART__DELETED = "cart.deleted",
115
114
  CART__DUE_DATE = "cart.dueDate",
@@ -117,7 +116,6 @@ export enum ResponseField {
117
116
  CART__ITEM_COUNT = "cart.itemCount",
118
117
  CART__ITEMS__CREATED_AT = "cart.items.createdAt",
119
118
  CART__ITEMS__CURRENCY_CODE = "cart.items.currencyCode",
120
- CART__ITEMS__CURRENCY_SYMBOL = "cart.items.currencySymbol",
121
119
  CART__ITEMS__DELETED = "cart.items.deleted",
122
120
  CART__ITEMS__DISCOUNT__AMOUNT = "cart.items.discount.amount",
123
121
  CART__ITEMS__DISCOUNT__AMOUNT_TYPE = "cart.items.discount.amountType",
@@ -155,7 +153,6 @@ export enum ResponseField {
155
153
  CART__ITEMS__VARIANT__NAME = "cart.items.variant.name",
156
154
  CART__ITEMS__VARIANT__PRICES__BUY_PRICE = "cart.items.variant.prices.buyPrice",
157
155
  CART__ITEMS__VARIANT__PRICES__CURRENCY = "cart.items.variant.prices.currency",
158
- CART__ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "cart.items.variant.prices.currencySymbol",
159
156
  CART__ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "cart.items.variant.prices.discountPrice",
160
157
  CART__ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "cart.items.variant.prices.priceListId",
161
158
  CART__ITEMS__VARIANT__PRICES__SELL_PRICE = "cart.items.variant.prices.sellPrice",
@@ -179,7 +176,6 @@ export enum ResponseField {
179
176
  CART__STOREFRONT_ROUTING__DOMAIN = "cart.storefrontRouting.domain",
180
177
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT = "cart.storefrontRouting.dynamicCurrencySettings.roundingFormat",
181
178
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_CODE = "cart.storefrontRouting.dynamicCurrencySettings.targetCurrencyCode",
182
- CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_SYMBOL = "cart.storefrontRouting.dynamicCurrencySettings.targetCurrencySymbol",
183
179
  CART__STOREFRONT_ROUTING__ID = "cart.storefrontRouting.id",
184
180
  CART__STOREFRONT_ROUTING__LOCALE = "cart.storefrontRouting.locale",
185
181
  CART__STOREFRONT_ROUTING__PATH = "cart.storefrontRouting.path",
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode currencySymbol customerId deleted dueDate id itemCount items {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode targetCurrencySymbol } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt }";
45
+ "{campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode customerId deleted dueDate id itemCount items {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt }";
46
46
 
47
47
  export enum ResponseField {
48
48
  CAMPAIGN_OFFERS__APPLIED_ORDER_LINE_ID = "campaignOffers.appliedOrderLineId",
@@ -56,7 +56,6 @@ export enum ResponseField {
56
56
  CREATED_AT = "createdAt",
57
57
  CREATED_BY = "createdBy",
58
58
  CURRENCY_CODE = "currencyCode",
59
- CURRENCY_SYMBOL = "currencySymbol",
60
59
  CUSTOMER_ID = "customerId",
61
60
  DELETED = "deleted",
62
61
  DUE_DATE = "dueDate",
@@ -64,7 +63,6 @@ export enum ResponseField {
64
63
  ITEM_COUNT = "itemCount",
65
64
  ITEMS__CREATED_AT = "items.createdAt",
66
65
  ITEMS__CURRENCY_CODE = "items.currencyCode",
67
- ITEMS__CURRENCY_SYMBOL = "items.currencySymbol",
68
66
  ITEMS__DELETED = "items.deleted",
69
67
  ITEMS__DISCOUNT__AMOUNT = "items.discount.amount",
70
68
  ITEMS__DISCOUNT__AMOUNT_TYPE = "items.discount.amountType",
@@ -102,7 +100,6 @@ export enum ResponseField {
102
100
  ITEMS__VARIANT__NAME = "items.variant.name",
103
101
  ITEMS__VARIANT__PRICES__BUY_PRICE = "items.variant.prices.buyPrice",
104
102
  ITEMS__VARIANT__PRICES__CURRENCY = "items.variant.prices.currency",
105
- ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "items.variant.prices.currencySymbol",
106
103
  ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "items.variant.prices.discountPrice",
107
104
  ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "items.variant.prices.priceListId",
108
105
  ITEMS__VARIANT__PRICES__SELL_PRICE = "items.variant.prices.sellPrice",
@@ -126,7 +123,6 @@ export enum ResponseField {
126
123
  STOREFRONT_ROUTING__DOMAIN = "storefrontRouting.domain",
127
124
  STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT = "storefrontRouting.dynamicCurrencySettings.roundingFormat",
128
125
  STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_CODE = "storefrontRouting.dynamicCurrencySettings.targetCurrencyCode",
129
- STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_SYMBOL = "storefrontRouting.dynamicCurrencySettings.targetCurrencySymbol",
130
126
  STOREFRONT_ROUTING__ID = "storefrontRouting.id",
131
127
  STOREFRONT_ROUTING__LOCALE = "storefrontRouting.locale",
132
128
  STOREFRONT_ROUTING__PATH = "storefrontRouting.path",
@@ -48,7 +48,7 @@ export type QueryParams = {
48
48
  };
49
49
 
50
50
  const allReturnFields =
51
- "{createdAt customerId deleted email id productId storefrontId storefrontRoutingId updatedAt variantId }";
51
+ "{createdAt customerId deleted email id productId storefrontId updatedAt variantId }";
52
52
 
53
53
  export enum ResponseField {
54
54
  CREATED_AT = "createdAt",
@@ -58,7 +58,6 @@ export enum ResponseField {
58
58
  ID = "id",
59
59
  PRODUCT_ID = "productId",
60
60
  STOREFRONT_ID = "storefrontId",
61
- STOREFRONT_ROUTING_ID = "storefrontRoutingId",
62
61
  UPDATED_AT = "updatedAt",
63
62
  VARIANT_ID = "variantId",
64
63
  }
@@ -45,7 +45,7 @@ export type QueryParams = {
45
45
  };
46
46
 
47
47
  const allReturnFields =
48
- "{applicationDate appliedProduct {productId variantId } createdAt customerId deleted email extraData firstName fullName id isDeliveredCargo lastName phone raffle {createdAt dateRange {end start } deleted id metadata {canonicals createdAt deleted description disableIndex id pageTitle slug targetId targetType updatedAt } name requiredCustomerAccount status updatedAt variants {productId variantId } verificationType } raffleId status updatedAt }";
48
+ "{applicationDate appliedProduct {productId variantId } createdAt customerId deleted email extraData firstName fullName id isDeliveredCargo isSendEmail isWinner lastName phone raffleId updatedAt }";
49
49
 
50
50
  export enum ResponseField {
51
51
  APPLICATION_DATE = "applicationDate",
@@ -60,32 +60,10 @@ export enum ResponseField {
60
60
  FULL_NAME = "fullName",
61
61
  ID = "id",
62
62
  IS_DELIVERED_CARGO = "isDeliveredCargo",
63
+ IS_SEND_EMAIL = "isSendEmail",
64
+ IS_WINNER = "isWinner",
63
65
  LAST_NAME = "lastName",
64
66
  PHONE = "phone",
65
- RAFFLE__CREATED_AT = "raffle.createdAt",
66
- RAFFLE__DATE_RANGE__END = "raffle.dateRange.end",
67
- RAFFLE__DATE_RANGE__START = "raffle.dateRange.start",
68
- RAFFLE__DELETED = "raffle.deleted",
69
- RAFFLE__ID = "raffle.id",
70
- RAFFLE__METADATA__CANONICALS = "raffle.metadata.canonicals",
71
- RAFFLE__METADATA__CREATED_AT = "raffle.metadata.createdAt",
72
- RAFFLE__METADATA__DELETED = "raffle.metadata.deleted",
73
- RAFFLE__METADATA__DESCRIPTION = "raffle.metadata.description",
74
- RAFFLE__METADATA__DISABLE_INDEX = "raffle.metadata.disableIndex",
75
- RAFFLE__METADATA__ID = "raffle.metadata.id",
76
- RAFFLE__METADATA__PAGE_TITLE = "raffle.metadata.pageTitle",
77
- RAFFLE__METADATA__SLUG = "raffle.metadata.slug",
78
- RAFFLE__METADATA__TARGET_ID = "raffle.metadata.targetId",
79
- RAFFLE__METADATA__TARGET_TYPE = "raffle.metadata.targetType",
80
- RAFFLE__METADATA__UPDATED_AT = "raffle.metadata.updatedAt",
81
- RAFFLE__NAME = "raffle.name",
82
- RAFFLE__REQUIRED_CUSTOMER_ACCOUNT = "raffle.requiredCustomerAccount",
83
- RAFFLE__STATUS = "raffle.status",
84
- RAFFLE__UPDATED_AT = "raffle.updatedAt",
85
- RAFFLE__VARIANTS__PRODUCT_ID = "raffle.variants.productId",
86
- RAFFLE__VARIANTS__VARIANT_ID = "raffle.variants.variantId",
87
- RAFFLE__VERIFICATION_TYPE = "raffle.verificationType",
88
67
  RAFFLE_ID = "raffleId",
89
- STATUS = "status",
90
68
  UPDATED_AT = "updatedAt",
91
69
  }
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
45
+ "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CART_FLOWS__CAMPAIGN_ID = "abandonedCartFlows.campaignId",
@@ -133,7 +133,6 @@ export enum ResponseField {
133
133
  CURRENCY_RATES__CODE = "currencyRates.code",
134
134
  CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
135
135
  CURRENCY_RATES__RATE = "currencyRates.rate",
136
- CURRENCY_SYMBOL = "currencySymbol",
137
136
  CUSTOMER__EMAIL = "customer.email",
138
137
  CUSTOMER__FIRST_NAME = "customer.firstName",
139
138
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -168,7 +167,6 @@ export enum ResponseField {
168
167
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
169
168
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
170
169
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
171
- ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
172
170
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
173
171
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
174
172
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -206,7 +204,6 @@ export enum ResponseField {
206
204
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
207
205
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
208
206
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
209
- ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
210
207
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
211
208
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
212
209
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
@@ -0,0 +1,72 @@
1
+ import {
2
+ fetchQuery,
3
+ ConfigType,
4
+ APIResponse,
5
+ handleAPIError,
6
+ } from "@ikas/fe-api-client";
7
+ import { RaffleParticipantsUpdateInput, RaffleParticipants } from "../types";
8
+
9
+ const updateRaffleParticipant = async (
10
+ variables: QueryParams,
11
+ fields?: string[],
12
+ config?: ConfigType
13
+ ) => {
14
+ try {
15
+ const { data, errors } = await fetchQuery({
16
+ operationName: "updateRaffleParticipant",
17
+ config,
18
+ variables,
19
+ allReturnFields,
20
+ fields,
21
+ query: (returnFields: string) => `
22
+ mutation updateRaffleParticipant (
23
+ $input: RaffleParticipantsUpdateInput!,
24
+ $participantId: String!,
25
+ ) {
26
+ updateRaffleParticipant (
27
+ input: $input,
28
+ participantId: $participantId,
29
+ ) ${returnFields}
30
+ }
31
+ `,
32
+ });
33
+
34
+ return new APIResponse<RaffleParticipants>(
35
+ data?.updateRaffleParticipant,
36
+ errors
37
+ );
38
+ } catch (err) {
39
+ return handleAPIError(err);
40
+ }
41
+ };
42
+
43
+ export default updateRaffleParticipant;
44
+
45
+ export type QueryParams = {
46
+ input: RaffleParticipantsUpdateInput;
47
+ participantId: string;
48
+ };
49
+
50
+ const allReturnFields =
51
+ "{applicationDate appliedProduct {productId variantId } createdAt customerId deleted email extraData firstName fullName id isDeliveredCargo isSendEmail isWinner lastName phone raffleId updatedAt }";
52
+
53
+ export enum ResponseField {
54
+ APPLICATION_DATE = "applicationDate",
55
+ APPLIED_PRODUCT__PRODUCT_ID = "appliedProduct.productId",
56
+ APPLIED_PRODUCT__VARIANT_ID = "appliedProduct.variantId",
57
+ CREATED_AT = "createdAt",
58
+ CUSTOMER_ID = "customerId",
59
+ DELETED = "deleted",
60
+ EMAIL = "email",
61
+ EXTRA_DATA = "extraData",
62
+ FIRST_NAME = "firstName",
63
+ FULL_NAME = "fullName",
64
+ ID = "id",
65
+ IS_DELIVERED_CARGO = "isDeliveredCargo",
66
+ IS_SEND_EMAIL = "isSendEmail",
67
+ IS_WINNER = "isWinner",
68
+ LAST_NAME = "lastName",
69
+ PHONE = "phone",
70
+ RAFFLE_ID = "raffleId",
71
+ UPDATED_AT = "updatedAt",
72
+ }
@@ -48,7 +48,7 @@ export type QueryParams = {
48
48
  };
49
49
 
50
50
  const allReturnFields =
51
- "{campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode currencySymbol customerId deleted dueDate id itemCount items {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode targetCurrencySymbol } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt }";
51
+ "{campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode customerId deleted dueDate id itemCount items {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt }";
52
52
 
53
53
  export enum ResponseField {
54
54
  CAMPAIGN_OFFERS__APPLIED_ORDER_LINE_ID = "campaignOffers.appliedOrderLineId",
@@ -62,7 +62,6 @@ export enum ResponseField {
62
62
  CREATED_AT = "createdAt",
63
63
  CREATED_BY = "createdBy",
64
64
  CURRENCY_CODE = "currencyCode",
65
- CURRENCY_SYMBOL = "currencySymbol",
66
65
  CUSTOMER_ID = "customerId",
67
66
  DELETED = "deleted",
68
67
  DUE_DATE = "dueDate",
@@ -70,7 +69,6 @@ export enum ResponseField {
70
69
  ITEM_COUNT = "itemCount",
71
70
  ITEMS__CREATED_AT = "items.createdAt",
72
71
  ITEMS__CURRENCY_CODE = "items.currencyCode",
73
- ITEMS__CURRENCY_SYMBOL = "items.currencySymbol",
74
72
  ITEMS__DELETED = "items.deleted",
75
73
  ITEMS__DISCOUNT__AMOUNT = "items.discount.amount",
76
74
  ITEMS__DISCOUNT__AMOUNT_TYPE = "items.discount.amountType",
@@ -108,7 +106,6 @@ export enum ResponseField {
108
106
  ITEMS__VARIANT__NAME = "items.variant.name",
109
107
  ITEMS__VARIANT__PRICES__BUY_PRICE = "items.variant.prices.buyPrice",
110
108
  ITEMS__VARIANT__PRICES__CURRENCY = "items.variant.prices.currency",
111
- ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "items.variant.prices.currencySymbol",
112
109
  ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "items.variant.prices.discountPrice",
113
110
  ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "items.variant.prices.priceListId",
114
111
  ITEMS__VARIANT__PRICES__SELL_PRICE = "items.variant.prices.sellPrice",
@@ -132,7 +129,6 @@ export enum ResponseField {
132
129
  STOREFRONT_ROUTING__DOMAIN = "storefrontRouting.domain",
133
130
  STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT = "storefrontRouting.dynamicCurrencySettings.roundingFormat",
134
131
  STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_CODE = "storefrontRouting.dynamicCurrencySettings.targetCurrencyCode",
135
- STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_SYMBOL = "storefrontRouting.dynamicCurrencySettings.targetCurrencySymbol",
136
132
  STOREFRONT_ROUTING__ID = "storefrontRouting.id",
137
133
  STOREFRONT_ROUTING__LOCALE = "storefrontRouting.locale",
138
134
  STOREFRONT_ROUTING__PATH = "storefrontRouting.path",
@@ -45,7 +45,7 @@ export type QueryParams = {
45
45
  };
46
46
 
47
47
  const allReturnFields =
48
- "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
48
+ "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
49
49
 
50
50
  export enum ResponseField {
51
51
  ABANDONED_CART_FLOWS__CAMPAIGN_ID = "abandonedCartFlows.campaignId",
@@ -136,7 +136,6 @@ export enum ResponseField {
136
136
  CURRENCY_RATES__CODE = "currencyRates.code",
137
137
  CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
138
138
  CURRENCY_RATES__RATE = "currencyRates.rate",
139
- CURRENCY_SYMBOL = "currencySymbol",
140
139
  CUSTOMER__EMAIL = "customer.email",
141
140
  CUSTOMER__FIRST_NAME = "customer.firstName",
142
141
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -171,7 +170,6 @@ export enum ResponseField {
171
170
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
172
171
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
173
172
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
174
- ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
175
173
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
176
174
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
177
175
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -209,7 +207,6 @@ export enum ResponseField {
209
207
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
210
208
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
211
209
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
212
- ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
213
210
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
214
211
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
215
212
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{abandonedCheckoutFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } adjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cart {campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode currencySymbol customerId deleted dueDate id itemCount items {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode targetCurrencySymbol } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt } cartId couponCode createdAt customer {accountStatus customerGroupIds email firstName id identityNumber lastName notificationsAccepted phone subscriptionStatus } deleted giftPackageLines {price taxValue } giftPackageNote id isGiftPackage merchantId note orderId orderNumber orderedAt recoverEmailStatus recoveryStatus shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId totalFinalPrice updatedAt }";
45
+ "{abandonedCheckoutFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } adjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cart {campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode customerId deleted dueDate id itemCount items {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt } cartId couponCode createdAt customer {accountStatus customerGroupIds email firstName id identityNumber lastName notificationsAccepted phone subscriptionStatus } deleted giftPackageLines {price taxValue } giftPackageNote id isGiftPackage merchantId note orderId orderNumber orderedAt recoverEmailStatus recoveryStatus shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId totalFinalPrice updatedAt }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CHECKOUT_FLOWS__CAMPAIGN_ID = "abandonedCheckoutFlows.campaignId",
@@ -109,7 +109,6 @@ export enum ResponseField {
109
109
  CART__CREATED_AT = "cart.createdAt",
110
110
  CART__CREATED_BY = "cart.createdBy",
111
111
  CART__CURRENCY_CODE = "cart.currencyCode",
112
- CART__CURRENCY_SYMBOL = "cart.currencySymbol",
113
112
  CART__CUSTOMER_ID = "cart.customerId",
114
113
  CART__DELETED = "cart.deleted",
115
114
  CART__DUE_DATE = "cart.dueDate",
@@ -117,7 +116,6 @@ export enum ResponseField {
117
116
  CART__ITEM_COUNT = "cart.itemCount",
118
117
  CART__ITEMS__CREATED_AT = "cart.items.createdAt",
119
118
  CART__ITEMS__CURRENCY_CODE = "cart.items.currencyCode",
120
- CART__ITEMS__CURRENCY_SYMBOL = "cart.items.currencySymbol",
121
119
  CART__ITEMS__DELETED = "cart.items.deleted",
122
120
  CART__ITEMS__DISCOUNT__AMOUNT = "cart.items.discount.amount",
123
121
  CART__ITEMS__DISCOUNT__AMOUNT_TYPE = "cart.items.discount.amountType",
@@ -155,7 +153,6 @@ export enum ResponseField {
155
153
  CART__ITEMS__VARIANT__NAME = "cart.items.variant.name",
156
154
  CART__ITEMS__VARIANT__PRICES__BUY_PRICE = "cart.items.variant.prices.buyPrice",
157
155
  CART__ITEMS__VARIANT__PRICES__CURRENCY = "cart.items.variant.prices.currency",
158
- CART__ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "cart.items.variant.prices.currencySymbol",
159
156
  CART__ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "cart.items.variant.prices.discountPrice",
160
157
  CART__ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "cart.items.variant.prices.priceListId",
161
158
  CART__ITEMS__VARIANT__PRICES__SELL_PRICE = "cart.items.variant.prices.sellPrice",
@@ -179,7 +176,6 @@ export enum ResponseField {
179
176
  CART__STOREFRONT_ROUTING__DOMAIN = "cart.storefrontRouting.domain",
180
177
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT = "cart.storefrontRouting.dynamicCurrencySettings.roundingFormat",
181
178
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_CODE = "cart.storefrontRouting.dynamicCurrencySettings.targetCurrencyCode",
182
- CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_SYMBOL = "cart.storefrontRouting.dynamicCurrencySettings.targetCurrencySymbol",
183
179
  CART__STOREFRONT_ROUTING__ID = "cart.storefrontRouting.id",
184
180
  CART__STOREFRONT_ROUTING__LOCALE = "cart.storefrontRouting.locale",
185
181
  CART__STOREFRONT_ROUTING__PATH = "cart.storefrontRouting.path",
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{abandonedCheckoutFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } adjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cart {campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode currencySymbol customerId deleted dueDate id itemCount items {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode targetCurrencySymbol } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt } cartId couponCode createdAt customer {accountStatus customerGroupIds email firstName id identityNumber lastName notificationsAccepted phone subscriptionStatus } deleted giftPackageLines {price taxValue } giftPackageNote id isGiftPackage merchantId note orderId orderNumber orderedAt recoverEmailStatus recoveryStatus shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId totalFinalPrice updatedAt }";
45
+ "{abandonedCheckoutFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } adjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cart {campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode customerId deleted dueDate id itemCount items {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt } cartId couponCode createdAt customer {accountStatus customerGroupIds email firstName id identityNumber lastName notificationsAccepted phone subscriptionStatus } deleted giftPackageLines {price taxValue } giftPackageNote id isGiftPackage merchantId note orderId orderNumber orderedAt recoverEmailStatus recoveryStatus shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId totalFinalPrice updatedAt }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CHECKOUT_FLOWS__CAMPAIGN_ID = "abandonedCheckoutFlows.campaignId",
@@ -109,7 +109,6 @@ export enum ResponseField {
109
109
  CART__CREATED_AT = "cart.createdAt",
110
110
  CART__CREATED_BY = "cart.createdBy",
111
111
  CART__CURRENCY_CODE = "cart.currencyCode",
112
- CART__CURRENCY_SYMBOL = "cart.currencySymbol",
113
112
  CART__CUSTOMER_ID = "cart.customerId",
114
113
  CART__DELETED = "cart.deleted",
115
114
  CART__DUE_DATE = "cart.dueDate",
@@ -117,7 +116,6 @@ export enum ResponseField {
117
116
  CART__ITEM_COUNT = "cart.itemCount",
118
117
  CART__ITEMS__CREATED_AT = "cart.items.createdAt",
119
118
  CART__ITEMS__CURRENCY_CODE = "cart.items.currencyCode",
120
- CART__ITEMS__CURRENCY_SYMBOL = "cart.items.currencySymbol",
121
119
  CART__ITEMS__DELETED = "cart.items.deleted",
122
120
  CART__ITEMS__DISCOUNT__AMOUNT = "cart.items.discount.amount",
123
121
  CART__ITEMS__DISCOUNT__AMOUNT_TYPE = "cart.items.discount.amountType",
@@ -155,7 +153,6 @@ export enum ResponseField {
155
153
  CART__ITEMS__VARIANT__NAME = "cart.items.variant.name",
156
154
  CART__ITEMS__VARIANT__PRICES__BUY_PRICE = "cart.items.variant.prices.buyPrice",
157
155
  CART__ITEMS__VARIANT__PRICES__CURRENCY = "cart.items.variant.prices.currency",
158
- CART__ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "cart.items.variant.prices.currencySymbol",
159
156
  CART__ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "cart.items.variant.prices.discountPrice",
160
157
  CART__ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "cart.items.variant.prices.priceListId",
161
158
  CART__ITEMS__VARIANT__PRICES__SELL_PRICE = "cart.items.variant.prices.sellPrice",
@@ -179,7 +176,6 @@ export enum ResponseField {
179
176
  CART__STOREFRONT_ROUTING__DOMAIN = "cart.storefrontRouting.domain",
180
177
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT = "cart.storefrontRouting.dynamicCurrencySettings.roundingFormat",
181
178
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_CODE = "cart.storefrontRouting.dynamicCurrencySettings.targetCurrencyCode",
182
- CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_SYMBOL = "cart.storefrontRouting.dynamicCurrencySettings.targetCurrencySymbol",
183
179
  CART__STOREFRONT_ROUTING__ID = "cart.storefrontRouting.id",
184
180
  CART__STOREFRONT_ROUTING__LOCALE = "cart.storefrontRouting.locale",
185
181
  CART__STOREFRONT_ROUTING__PATH = "cart.storefrontRouting.path",
@@ -42,12 +42,10 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{baseCurrency baseCurrencyCode baseCurrencySymbol createdAt date deleted id rates {code rate } updatedAt }";
45
+ "{baseCurrency createdAt date deleted id rates {code rate } updatedAt }";
46
46
 
47
47
  export enum ResponseField {
48
48
  BASE_CURRENCY = "baseCurrency",
49
- BASE_CURRENCY_CODE = "baseCurrencyCode",
50
- BASE_CURRENCY_SYMBOL = "baseCurrencySymbol",
51
49
  CREATED_AT = "createdAt",
52
50
  DATE = "date",
53
51
  DELETED = "deleted",
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cancelReason cancelledAt createdAt currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted giftPackageLines {price taxValue } giftPackageNote id invoices {appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderPackages {createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo {barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderTagIds orderedAt paymentMethods {paymentGatewayCode paymentGatewayId paymentGatewayName price type } shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod status taxLines {price rate } totalFinalPrice totalPrice updatedAt }";
45
+ "{billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cancelReason cancelledAt createdAt currencyCode currencyRates {code originalRate rate } customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted giftPackageLines {price taxValue } giftPackageNote id invoices {appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderPackages {createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo {barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderTagIds orderedAt paymentMethods {paymentGatewayCode paymentGatewayId paymentGatewayName price type } shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod status taxLines {price rate } totalFinalPrice totalPrice updatedAt }";
46
46
 
47
47
  export enum ResponseField {
48
48
  BILLING_ADDRESS__ADDRESS_LINE1 = "billingAddress.addressLine1",
@@ -78,7 +78,6 @@ export enum ResponseField {
78
78
  CURRENCY_RATES__CODE = "currencyRates.code",
79
79
  CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
80
80
  CURRENCY_RATES__RATE = "currencyRates.rate",
81
- CURRENCY_SYMBOL = "currencySymbol",
82
81
  CUSTOMER__EMAIL = "customer.email",
83
82
  CUSTOMER__FIRST_NAME = "customer.firstName",
84
83
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -117,7 +116,6 @@ export enum ResponseField {
117
116
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
118
117
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
119
118
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
120
- ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
121
119
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
122
120
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
123
121
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -155,7 +153,6 @@ export enum ResponseField {
155
153
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
156
154
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
157
155
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
158
- ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
159
156
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
160
157
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
161
158
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cancelReason cancelledAt createdAt currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted giftPackageLines {price taxValue } giftPackageNote id invoices {appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderPackages {createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo {barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderTagIds orderedAt paymentMethods {paymentGatewayCode paymentGatewayId paymentGatewayName price type } shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod status taxLines {price rate } totalFinalPrice totalPrice updatedAt }";
45
+ "{billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cancelReason cancelledAt createdAt currencyCode currencyRates {code originalRate rate } customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted giftPackageLines {price taxValue } giftPackageNote id invoices {appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderPackages {createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo {barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderTagIds orderedAt paymentMethods {paymentGatewayCode paymentGatewayId paymentGatewayName price type } shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod status taxLines {price rate } totalFinalPrice totalPrice updatedAt }";
46
46
 
47
47
  export enum ResponseField {
48
48
  BILLING_ADDRESS__ADDRESS_LINE1 = "billingAddress.addressLine1",
@@ -78,7 +78,6 @@ export enum ResponseField {
78
78
  CURRENCY_RATES__CODE = "currencyRates.code",
79
79
  CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
80
80
  CURRENCY_RATES__RATE = "currencyRates.rate",
81
- CURRENCY_SYMBOL = "currencySymbol",
82
81
  CUSTOMER__EMAIL = "customer.email",
83
82
  CUSTOMER__FIRST_NAME = "customer.firstName",
84
83
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -117,7 +116,6 @@ export enum ResponseField {
117
116
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
118
117
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
119
118
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
120
- ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
121
119
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
122
120
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
123
121
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -155,7 +153,6 @@ export enum ResponseField {
155
153
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
156
154
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
157
155
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
158
- ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
159
156
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
160
157
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
161
158
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",