@ikas/storefront-api 4.0.0-alpha.43 → 4.0.0-alpha.45

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 (51) hide show
  1. package/package.json +5 -5
  2. package/src/__api/models/CartV2.ts +5 -0
  3. package/src/__api/models/CategoryFilterInput.ts +2 -0
  4. package/src/__api/models/LocationTranslations.ts +2 -0
  5. package/src/__api/models/OrderLineBaseUnit.ts +19 -0
  6. package/src/__api/models/OrderLineItem.ts +10 -0
  7. package/src/__api/models/OrderLineVariant.ts +8 -0
  8. package/src/__api/models/OrderLineVariantPrice.ts +5 -0
  9. package/src/__api/models/OrderLineVariantUnit.ts +16 -0
  10. package/src/__api/models/OrderLineVariantUnitType.ts +16 -0
  11. package/src/__api/models/OrderSessionInfo.ts +49 -0
  12. package/src/__api/models/OrderSessionInfoTrafficSource.ts +18 -0
  13. package/src/__api/models/OrderSessionUTM.ts +21 -0
  14. package/src/__api/models/OrderSessionUserAgent.ts +18 -0
  15. package/src/__api/models/Product.ts +5 -0
  16. package/src/__api/models/ProductBaseUnitModel.ts +21 -0
  17. package/src/__api/models/RaffleParticipants.ts +2 -4
  18. package/src/__api/models/SearchProduct.ts +5 -0
  19. package/src/__api/models/SearchProductPrice.ts +5 -0
  20. package/src/__api/models/SearchVariant.ts +3 -0
  21. package/src/__api/models/StorefrontRouting.ts +4 -0
  22. package/src/__api/models/Variant.ts +3 -0
  23. package/src/__api/models/VariantUnitModel.ts +17 -0
  24. package/src/__api/mutations/addCouponCodeToCheckout.ts +10 -1
  25. package/src/__api/mutations/addItemToCart.ts +31 -1
  26. package/src/__api/mutations/createOrderRefundRequest.ts +10 -1
  27. package/src/__api/mutations/customerForgotPassword.ts +3 -0
  28. package/src/__api/mutations/customerLogin.ts +3 -0
  29. package/src/__api/mutations/customerRecoverPassword.ts +3 -0
  30. package/src/__api/mutations/registerCustomer.ts +3 -0
  31. package/src/__api/mutations/saveCart.ts +31 -1
  32. package/src/__api/mutations/saveCartCouponCode.ts +31 -1
  33. package/src/__api/mutations/saveCheckout.ts +10 -1
  34. package/src/__api/mutations/saveItemToCart.ts +10 -1
  35. package/src/__api/mutations/sendContactFormToMerchant.ts +3 -0
  36. package/src/__api/mutations/updateCartCampaignOffer.ts +31 -1
  37. package/src/__api/queries/checkCustomerEmail.ts +3 -0
  38. package/src/__api/queries/getCart.ts +10 -1
  39. package/src/__api/queries/getCartById.ts +31 -1
  40. package/src/__api/queries/getCheckoutByCartId.ts +10 -1
  41. package/src/__api/queries/getCheckoutById.ts +10 -1
  42. package/src/__api/queries/getCustomerOrders.ts +10 -1
  43. package/src/__api/queries/getOrder.ts +10 -1
  44. package/src/__api/queries/getOrderByEmail.ts +10 -1
  45. package/src/__api/queries/getStorefront.ts +3 -1
  46. package/src/__api/queries/listCountry.ts +5 -1
  47. package/src/__api/queries/listProduct.ts +6 -1
  48. package/src/__api/queries/searchProducts.ts +7 -1
  49. package/src/__api/types/index.ts +130 -1
  50. package/src/api/location/index.ts +13 -4
  51. package/src/api/product/index.ts +4 -0
@@ -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 } 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 finalUnitPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue unitPrice updatedAt variant {barcodeList baseUnit {baseAmount type unit {id name } } brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice unitPrice } productId sku slug tagIds taxValue type unit {amount type } variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId sessionInfo {countryCode durationMS end host ip referer salesChannelId sessionId start storefrontId trafficSource {source type } userAgent {deviceType name os } utm {campaign content medium source term } visitorId } 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",
@@ -178,6 +178,7 @@ export enum ResponseField {
178
178
  ORDER_LINE_ITEMS__DISCOUNT__REASON = "orderLineItems.discount.reason",
179
179
  ORDER_LINE_ITEMS__DISCOUNT_PRICE = "orderLineItems.discountPrice",
180
180
  ORDER_LINE_ITEMS__FINAL_PRICE = "orderLineItems.finalPrice",
181
+ ORDER_LINE_ITEMS__FINAL_UNIT_PRICE = "orderLineItems.finalUnitPrice",
181
182
  ORDER_LINE_ITEMS__ID = "orderLineItems.id",
182
183
  ORDER_LINE_ITEMS__OPTIONS__NAME = "orderLineItems.options.name",
183
184
  ORDER_LINE_ITEMS__OPTIONS__PRODUCT_OPTION_ID = "orderLineItems.options.productOptionId",
@@ -193,8 +194,13 @@ export enum ResponseField {
193
194
  ORDER_LINE_ITEMS__STATUS_UPDATED_AT = "orderLineItems.statusUpdatedAt",
194
195
  ORDER_LINE_ITEMS__STOCK_LOCATION_ID = "orderLineItems.stockLocationId",
195
196
  ORDER_LINE_ITEMS__TAX_VALUE = "orderLineItems.taxValue",
197
+ ORDER_LINE_ITEMS__UNIT_PRICE = "orderLineItems.unitPrice",
196
198
  ORDER_LINE_ITEMS__UPDATED_AT = "orderLineItems.updatedAt",
197
199
  ORDER_LINE_ITEMS__VARIANT__BARCODE_LIST = "orderLineItems.variant.barcodeList",
200
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "orderLineItems.variant.baseUnit.baseAmount",
201
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__TYPE = "orderLineItems.variant.baseUnit.type",
202
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "orderLineItems.variant.baseUnit.unit.id",
203
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "orderLineItems.variant.baseUnit.unit.name",
198
204
  ORDER_LINE_ITEMS__VARIANT__BRAND__ID = "orderLineItems.variant.brand.id",
199
205
  ORDER_LINE_ITEMS__VARIANT__BRAND__NAME = "orderLineItems.variant.brand.name",
200
206
  ORDER_LINE_ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "orderLineItems.variant.categories.categoryPath.id",
@@ -210,12 +216,15 @@ export enum ResponseField {
210
216
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
211
217
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
212
218
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
219
+ ORDER_LINE_ITEMS__VARIANT__PRICES__UNIT_PRICE = "orderLineItems.variant.prices.unitPrice",
213
220
  ORDER_LINE_ITEMS__VARIANT__PRODUCT_ID = "orderLineItems.variant.productId",
214
221
  ORDER_LINE_ITEMS__VARIANT__SKU = "orderLineItems.variant.sku",
215
222
  ORDER_LINE_ITEMS__VARIANT__SLUG = "orderLineItems.variant.slug",
216
223
  ORDER_LINE_ITEMS__VARIANT__TAG_IDS = "orderLineItems.variant.tagIds",
217
224
  ORDER_LINE_ITEMS__VARIANT__TAX_VALUE = "orderLineItems.variant.taxValue",
218
225
  ORDER_LINE_ITEMS__VARIANT__TYPE = "orderLineItems.variant.type",
226
+ ORDER_LINE_ITEMS__VARIANT__UNIT__AMOUNT = "orderLineItems.variant.unit.amount",
227
+ ORDER_LINE_ITEMS__VARIANT__UNIT__TYPE = "orderLineItems.variant.unit.type",
219
228
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__ORDER = "orderLineItems.variant.variantValues.order",
220
229
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "orderLineItems.variant.variantValues.variantTypeId",
221
230
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "orderLineItems.variant.variantValues.variantTypeName",
@@ -229,6 +238,27 @@ export enum ResponseField {
229
238
  RECOVER_EMAIL_STATUS = "recoverEmailStatus",
230
239
  RECOVERY_STATUS = "recoveryStatus",
231
240
  SALES_CHANNEL_ID = "salesChannelId",
241
+ SESSION_INFO__COUNTRY_CODE = "sessionInfo.countryCode",
242
+ SESSION_INFO__DURATION_M_S = "sessionInfo.durationMS",
243
+ SESSION_INFO__END = "sessionInfo.end",
244
+ SESSION_INFO__HOST = "sessionInfo.host",
245
+ SESSION_INFO__IP = "sessionInfo.ip",
246
+ SESSION_INFO__REFERER = "sessionInfo.referer",
247
+ SESSION_INFO__SALES_CHANNEL_ID = "sessionInfo.salesChannelId",
248
+ SESSION_INFO__SESSION_ID = "sessionInfo.sessionId",
249
+ SESSION_INFO__START = "sessionInfo.start",
250
+ SESSION_INFO__STOREFRONT_ID = "sessionInfo.storefrontId",
251
+ SESSION_INFO__TRAFFIC_SOURCE__SOURCE = "sessionInfo.trafficSource.source",
252
+ SESSION_INFO__TRAFFIC_SOURCE__TYPE = "sessionInfo.trafficSource.type",
253
+ SESSION_INFO__USER_AGENT__DEVICE_TYPE = "sessionInfo.userAgent.deviceType",
254
+ SESSION_INFO__USER_AGENT__NAME = "sessionInfo.userAgent.name",
255
+ SESSION_INFO__USER_AGENT__OS = "sessionInfo.userAgent.os",
256
+ SESSION_INFO__UTM__CAMPAIGN = "sessionInfo.utm.campaign",
257
+ SESSION_INFO__UTM__CONTENT = "sessionInfo.utm.content",
258
+ SESSION_INFO__UTM__MEDIUM = "sessionInfo.utm.medium",
259
+ SESSION_INFO__UTM__SOURCE = "sessionInfo.utm.source",
260
+ SESSION_INFO__UTM__TERM = "sessionInfo.utm.term",
261
+ SESSION_INFO__VISITOR_ID = "sessionInfo.visitorId",
232
262
  SHIPPING_ADDRESS__ADDRESS_LINE1 = "shippingAddress.addressLine1",
233
263
  SHIPPING_ADDRESS__ADDRESS_LINE2 = "shippingAddress.addressLine2",
234
264
  SHIPPING_ADDRESS__CITY__CODE = "shippingAddress.city.code",
@@ -45,7 +45,7 @@ export type QueryParams = {
45
45
  };
46
46
 
47
47
  const allReturnFields =
48
- "{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 }";
48
+ "{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 finalUnitPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue unitPrice updatedAt variant {barcodeList baseUnit {baseAmount type unit {id name } } brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice unitPrice } productId sku slug tagIds taxValue type unit {amount 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 }";
49
49
 
50
50
  export enum ResponseField {
51
51
  BILLING_ADDRESS__ADDRESS_LINE1 = "billingAddress.addressLine1",
@@ -130,6 +130,7 @@ export enum ResponseField {
130
130
  ORDER_LINE_ITEMS__DISCOUNT__REASON = "orderLineItems.discount.reason",
131
131
  ORDER_LINE_ITEMS__DISCOUNT_PRICE = "orderLineItems.discountPrice",
132
132
  ORDER_LINE_ITEMS__FINAL_PRICE = "orderLineItems.finalPrice",
133
+ ORDER_LINE_ITEMS__FINAL_UNIT_PRICE = "orderLineItems.finalUnitPrice",
133
134
  ORDER_LINE_ITEMS__ID = "orderLineItems.id",
134
135
  ORDER_LINE_ITEMS__OPTIONS__NAME = "orderLineItems.options.name",
135
136
  ORDER_LINE_ITEMS__OPTIONS__PRODUCT_OPTION_ID = "orderLineItems.options.productOptionId",
@@ -145,8 +146,13 @@ export enum ResponseField {
145
146
  ORDER_LINE_ITEMS__STATUS_UPDATED_AT = "orderLineItems.statusUpdatedAt",
146
147
  ORDER_LINE_ITEMS__STOCK_LOCATION_ID = "orderLineItems.stockLocationId",
147
148
  ORDER_LINE_ITEMS__TAX_VALUE = "orderLineItems.taxValue",
149
+ ORDER_LINE_ITEMS__UNIT_PRICE = "orderLineItems.unitPrice",
148
150
  ORDER_LINE_ITEMS__UPDATED_AT = "orderLineItems.updatedAt",
149
151
  ORDER_LINE_ITEMS__VARIANT__BARCODE_LIST = "orderLineItems.variant.barcodeList",
152
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "orderLineItems.variant.baseUnit.baseAmount",
153
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__TYPE = "orderLineItems.variant.baseUnit.type",
154
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "orderLineItems.variant.baseUnit.unit.id",
155
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "orderLineItems.variant.baseUnit.unit.name",
150
156
  ORDER_LINE_ITEMS__VARIANT__BRAND__ID = "orderLineItems.variant.brand.id",
151
157
  ORDER_LINE_ITEMS__VARIANT__BRAND__NAME = "orderLineItems.variant.brand.name",
152
158
  ORDER_LINE_ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "orderLineItems.variant.categories.categoryPath.id",
@@ -162,12 +168,15 @@ export enum ResponseField {
162
168
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
163
169
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
164
170
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
171
+ ORDER_LINE_ITEMS__VARIANT__PRICES__UNIT_PRICE = "orderLineItems.variant.prices.unitPrice",
165
172
  ORDER_LINE_ITEMS__VARIANT__PRODUCT_ID = "orderLineItems.variant.productId",
166
173
  ORDER_LINE_ITEMS__VARIANT__SKU = "orderLineItems.variant.sku",
167
174
  ORDER_LINE_ITEMS__VARIANT__SLUG = "orderLineItems.variant.slug",
168
175
  ORDER_LINE_ITEMS__VARIANT__TAG_IDS = "orderLineItems.variant.tagIds",
169
176
  ORDER_LINE_ITEMS__VARIANT__TAX_VALUE = "orderLineItems.variant.taxValue",
170
177
  ORDER_LINE_ITEMS__VARIANT__TYPE = "orderLineItems.variant.type",
178
+ ORDER_LINE_ITEMS__VARIANT__UNIT__AMOUNT = "orderLineItems.variant.unit.amount",
179
+ ORDER_LINE_ITEMS__VARIANT__UNIT__TYPE = "orderLineItems.variant.unit.type",
171
180
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__ORDER = "orderLineItems.variant.variantValues.order",
172
181
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "orderLineItems.variant.variantValues.variantTypeId",
173
182
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "orderLineItems.variant.variantValues.variantTypeName",
@@ -16,10 +16,12 @@ const customerForgotPassword = async (
16
16
  variables,
17
17
  query: `
18
18
  mutation customerForgotPassword (
19
+ $captchaToken: String,
19
20
  $email: String!,
20
21
  $locale: String,
21
22
  ) {
22
23
  customerForgotPassword (
24
+ captchaToken: $captchaToken,
23
25
  email: $email,
24
26
  locale: $locale,
25
27
  )
@@ -36,6 +38,7 @@ const customerForgotPassword = async (
36
38
  export default customerForgotPassword;
37
39
 
38
40
  export type QueryParams = {
41
+ captchaToken?: string | null;
39
42
  email: string;
40
43
  locale?: string | null;
41
44
  };
@@ -20,10 +20,12 @@ const customerLogin = async (
20
20
  fields,
21
21
  query: (returnFields: string) => `
22
22
  mutation customerLogin (
23
+ $captchaToken: String,
23
24
  $email: String!,
24
25
  $password: String!,
25
26
  ) {
26
27
  customerLogin (
28
+ captchaToken: $captchaToken,
27
29
  email: $email,
28
30
  password: $password,
29
31
  ) ${returnFields}
@@ -40,6 +42,7 @@ const customerLogin = async (
40
42
  export default customerLogin;
41
43
 
42
44
  export type QueryParams = {
45
+ captchaToken?: string | null;
43
46
  email: string;
44
47
  password: string;
45
48
  };
@@ -16,11 +16,13 @@ const customerRecoverPassword = async (
16
16
  variables,
17
17
  query: `
18
18
  mutation customerRecoverPassword (
19
+ $captchaToken: String,
19
20
  $password: String!,
20
21
  $passwordAgain: String!,
21
22
  $token: String!,
22
23
  ) {
23
24
  customerRecoverPassword (
25
+ captchaToken: $captchaToken,
24
26
  password: $password,
25
27
  passwordAgain: $passwordAgain,
26
28
  token: $token,
@@ -38,6 +40,7 @@ const customerRecoverPassword = async (
38
40
  export default customerRecoverPassword;
39
41
 
40
42
  export type QueryParams = {
43
+ captchaToken?: string | null;
41
44
  password: string;
42
45
  passwordAgain: string;
43
46
  token: string;
@@ -21,6 +21,7 @@ const registerCustomer = async (
21
21
  query: (returnFields: string) => `
22
22
  mutation registerCustomer (
23
23
  $attributes: [CustomerAttributeValueInput!],
24
+ $captchaToken: String,
24
25
  $email: String!,
25
26
  $firstName: String!,
26
27
  $isAcceptMarketing: Boolean,
@@ -30,6 +31,7 @@ const registerCustomer = async (
30
31
  ) {
31
32
  registerCustomer (
32
33
  attributes: $attributes,
34
+ captchaToken: $captchaToken,
33
35
  email: $email,
34
36
  firstName: $firstName,
35
37
  isAcceptMarketing: $isAcceptMarketing,
@@ -54,6 +56,7 @@ export default registerCustomer;
54
56
 
55
57
  export type QueryParams = {
56
58
  attributes?: CustomerAttributeValueInput[] | null;
59
+ captchaToken?: string | null;
57
60
  email: string;
58
61
  firstName: string;
59
62
  isAcceptMarketing?: boolean | null;
@@ -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 } 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 finalUnitPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue unitPrice updatedAt variant {barcodeList baseUnit {baseAmount type unit {id name } } brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice unitPrice } productId sku slug tagIds taxValue type unit {amount type } variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId sessionInfo {countryCode durationMS end host ip referer salesChannelId sessionId start storefrontId trafficSource {source type } userAgent {deviceType name os } utm {campaign content medium source term } visitorId } 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",
@@ -178,6 +178,7 @@ export enum ResponseField {
178
178
  ORDER_LINE_ITEMS__DISCOUNT__REASON = "orderLineItems.discount.reason",
179
179
  ORDER_LINE_ITEMS__DISCOUNT_PRICE = "orderLineItems.discountPrice",
180
180
  ORDER_LINE_ITEMS__FINAL_PRICE = "orderLineItems.finalPrice",
181
+ ORDER_LINE_ITEMS__FINAL_UNIT_PRICE = "orderLineItems.finalUnitPrice",
181
182
  ORDER_LINE_ITEMS__ID = "orderLineItems.id",
182
183
  ORDER_LINE_ITEMS__OPTIONS__NAME = "orderLineItems.options.name",
183
184
  ORDER_LINE_ITEMS__OPTIONS__PRODUCT_OPTION_ID = "orderLineItems.options.productOptionId",
@@ -193,8 +194,13 @@ export enum ResponseField {
193
194
  ORDER_LINE_ITEMS__STATUS_UPDATED_AT = "orderLineItems.statusUpdatedAt",
194
195
  ORDER_LINE_ITEMS__STOCK_LOCATION_ID = "orderLineItems.stockLocationId",
195
196
  ORDER_LINE_ITEMS__TAX_VALUE = "orderLineItems.taxValue",
197
+ ORDER_LINE_ITEMS__UNIT_PRICE = "orderLineItems.unitPrice",
196
198
  ORDER_LINE_ITEMS__UPDATED_AT = "orderLineItems.updatedAt",
197
199
  ORDER_LINE_ITEMS__VARIANT__BARCODE_LIST = "orderLineItems.variant.barcodeList",
200
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "orderLineItems.variant.baseUnit.baseAmount",
201
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__TYPE = "orderLineItems.variant.baseUnit.type",
202
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "orderLineItems.variant.baseUnit.unit.id",
203
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "orderLineItems.variant.baseUnit.unit.name",
198
204
  ORDER_LINE_ITEMS__VARIANT__BRAND__ID = "orderLineItems.variant.brand.id",
199
205
  ORDER_LINE_ITEMS__VARIANT__BRAND__NAME = "orderLineItems.variant.brand.name",
200
206
  ORDER_LINE_ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "orderLineItems.variant.categories.categoryPath.id",
@@ -210,12 +216,15 @@ export enum ResponseField {
210
216
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
211
217
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
212
218
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
219
+ ORDER_LINE_ITEMS__VARIANT__PRICES__UNIT_PRICE = "orderLineItems.variant.prices.unitPrice",
213
220
  ORDER_LINE_ITEMS__VARIANT__PRODUCT_ID = "orderLineItems.variant.productId",
214
221
  ORDER_LINE_ITEMS__VARIANT__SKU = "orderLineItems.variant.sku",
215
222
  ORDER_LINE_ITEMS__VARIANT__SLUG = "orderLineItems.variant.slug",
216
223
  ORDER_LINE_ITEMS__VARIANT__TAG_IDS = "orderLineItems.variant.tagIds",
217
224
  ORDER_LINE_ITEMS__VARIANT__TAX_VALUE = "orderLineItems.variant.taxValue",
218
225
  ORDER_LINE_ITEMS__VARIANT__TYPE = "orderLineItems.variant.type",
226
+ ORDER_LINE_ITEMS__VARIANT__UNIT__AMOUNT = "orderLineItems.variant.unit.amount",
227
+ ORDER_LINE_ITEMS__VARIANT__UNIT__TYPE = "orderLineItems.variant.unit.type",
219
228
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__ORDER = "orderLineItems.variant.variantValues.order",
220
229
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "orderLineItems.variant.variantValues.variantTypeId",
221
230
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "orderLineItems.variant.variantValues.variantTypeName",
@@ -229,6 +238,27 @@ export enum ResponseField {
229
238
  RECOVER_EMAIL_STATUS = "recoverEmailStatus",
230
239
  RECOVERY_STATUS = "recoveryStatus",
231
240
  SALES_CHANNEL_ID = "salesChannelId",
241
+ SESSION_INFO__COUNTRY_CODE = "sessionInfo.countryCode",
242
+ SESSION_INFO__DURATION_M_S = "sessionInfo.durationMS",
243
+ SESSION_INFO__END = "sessionInfo.end",
244
+ SESSION_INFO__HOST = "sessionInfo.host",
245
+ SESSION_INFO__IP = "sessionInfo.ip",
246
+ SESSION_INFO__REFERER = "sessionInfo.referer",
247
+ SESSION_INFO__SALES_CHANNEL_ID = "sessionInfo.salesChannelId",
248
+ SESSION_INFO__SESSION_ID = "sessionInfo.sessionId",
249
+ SESSION_INFO__START = "sessionInfo.start",
250
+ SESSION_INFO__STOREFRONT_ID = "sessionInfo.storefrontId",
251
+ SESSION_INFO__TRAFFIC_SOURCE__SOURCE = "sessionInfo.trafficSource.source",
252
+ SESSION_INFO__TRAFFIC_SOURCE__TYPE = "sessionInfo.trafficSource.type",
253
+ SESSION_INFO__USER_AGENT__DEVICE_TYPE = "sessionInfo.userAgent.deviceType",
254
+ SESSION_INFO__USER_AGENT__NAME = "sessionInfo.userAgent.name",
255
+ SESSION_INFO__USER_AGENT__OS = "sessionInfo.userAgent.os",
256
+ SESSION_INFO__UTM__CAMPAIGN = "sessionInfo.utm.campaign",
257
+ SESSION_INFO__UTM__CONTENT = "sessionInfo.utm.content",
258
+ SESSION_INFO__UTM__MEDIUM = "sessionInfo.utm.medium",
259
+ SESSION_INFO__UTM__SOURCE = "sessionInfo.utm.source",
260
+ SESSION_INFO__UTM__TERM = "sessionInfo.utm.term",
261
+ SESSION_INFO__VISITOR_ID = "sessionInfo.visitorId",
232
262
  SHIPPING_ADDRESS__ADDRESS_LINE1 = "shippingAddress.addressLine1",
233
263
  SHIPPING_ADDRESS__ADDRESS_LINE2 = "shippingAddress.addressLine2",
234
264
  SHIPPING_ADDRESS__CITY__CODE = "shippingAddress.city.code",
@@ -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 } 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 finalUnitPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue unitPrice updatedAt variant {barcodeList baseUnit {baseAmount type unit {id name } } brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice unitPrice } productId sku slug tagIds taxValue type unit {amount type } variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId sessionInfo {countryCode durationMS end host ip referer salesChannelId sessionId start storefrontId trafficSource {source type } userAgent {deviceType name os } utm {campaign content medium source term } visitorId } 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",
@@ -181,6 +181,7 @@ export enum ResponseField {
181
181
  ORDER_LINE_ITEMS__DISCOUNT__REASON = "orderLineItems.discount.reason",
182
182
  ORDER_LINE_ITEMS__DISCOUNT_PRICE = "orderLineItems.discountPrice",
183
183
  ORDER_LINE_ITEMS__FINAL_PRICE = "orderLineItems.finalPrice",
184
+ ORDER_LINE_ITEMS__FINAL_UNIT_PRICE = "orderLineItems.finalUnitPrice",
184
185
  ORDER_LINE_ITEMS__ID = "orderLineItems.id",
185
186
  ORDER_LINE_ITEMS__OPTIONS__NAME = "orderLineItems.options.name",
186
187
  ORDER_LINE_ITEMS__OPTIONS__PRODUCT_OPTION_ID = "orderLineItems.options.productOptionId",
@@ -196,8 +197,13 @@ export enum ResponseField {
196
197
  ORDER_LINE_ITEMS__STATUS_UPDATED_AT = "orderLineItems.statusUpdatedAt",
197
198
  ORDER_LINE_ITEMS__STOCK_LOCATION_ID = "orderLineItems.stockLocationId",
198
199
  ORDER_LINE_ITEMS__TAX_VALUE = "orderLineItems.taxValue",
200
+ ORDER_LINE_ITEMS__UNIT_PRICE = "orderLineItems.unitPrice",
199
201
  ORDER_LINE_ITEMS__UPDATED_AT = "orderLineItems.updatedAt",
200
202
  ORDER_LINE_ITEMS__VARIANT__BARCODE_LIST = "orderLineItems.variant.barcodeList",
203
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "orderLineItems.variant.baseUnit.baseAmount",
204
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__TYPE = "orderLineItems.variant.baseUnit.type",
205
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "orderLineItems.variant.baseUnit.unit.id",
206
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "orderLineItems.variant.baseUnit.unit.name",
201
207
  ORDER_LINE_ITEMS__VARIANT__BRAND__ID = "orderLineItems.variant.brand.id",
202
208
  ORDER_LINE_ITEMS__VARIANT__BRAND__NAME = "orderLineItems.variant.brand.name",
203
209
  ORDER_LINE_ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "orderLineItems.variant.categories.categoryPath.id",
@@ -213,12 +219,15 @@ export enum ResponseField {
213
219
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
214
220
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
215
221
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
222
+ ORDER_LINE_ITEMS__VARIANT__PRICES__UNIT_PRICE = "orderLineItems.variant.prices.unitPrice",
216
223
  ORDER_LINE_ITEMS__VARIANT__PRODUCT_ID = "orderLineItems.variant.productId",
217
224
  ORDER_LINE_ITEMS__VARIANT__SKU = "orderLineItems.variant.sku",
218
225
  ORDER_LINE_ITEMS__VARIANT__SLUG = "orderLineItems.variant.slug",
219
226
  ORDER_LINE_ITEMS__VARIANT__TAG_IDS = "orderLineItems.variant.tagIds",
220
227
  ORDER_LINE_ITEMS__VARIANT__TAX_VALUE = "orderLineItems.variant.taxValue",
221
228
  ORDER_LINE_ITEMS__VARIANT__TYPE = "orderLineItems.variant.type",
229
+ ORDER_LINE_ITEMS__VARIANT__UNIT__AMOUNT = "orderLineItems.variant.unit.amount",
230
+ ORDER_LINE_ITEMS__VARIANT__UNIT__TYPE = "orderLineItems.variant.unit.type",
222
231
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__ORDER = "orderLineItems.variant.variantValues.order",
223
232
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "orderLineItems.variant.variantValues.variantTypeId",
224
233
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "orderLineItems.variant.variantValues.variantTypeName",
@@ -232,6 +241,27 @@ export enum ResponseField {
232
241
  RECOVER_EMAIL_STATUS = "recoverEmailStatus",
233
242
  RECOVERY_STATUS = "recoveryStatus",
234
243
  SALES_CHANNEL_ID = "salesChannelId",
244
+ SESSION_INFO__COUNTRY_CODE = "sessionInfo.countryCode",
245
+ SESSION_INFO__DURATION_M_S = "sessionInfo.durationMS",
246
+ SESSION_INFO__END = "sessionInfo.end",
247
+ SESSION_INFO__HOST = "sessionInfo.host",
248
+ SESSION_INFO__IP = "sessionInfo.ip",
249
+ SESSION_INFO__REFERER = "sessionInfo.referer",
250
+ SESSION_INFO__SALES_CHANNEL_ID = "sessionInfo.salesChannelId",
251
+ SESSION_INFO__SESSION_ID = "sessionInfo.sessionId",
252
+ SESSION_INFO__START = "sessionInfo.start",
253
+ SESSION_INFO__STOREFRONT_ID = "sessionInfo.storefrontId",
254
+ SESSION_INFO__TRAFFIC_SOURCE__SOURCE = "sessionInfo.trafficSource.source",
255
+ SESSION_INFO__TRAFFIC_SOURCE__TYPE = "sessionInfo.trafficSource.type",
256
+ SESSION_INFO__USER_AGENT__DEVICE_TYPE = "sessionInfo.userAgent.deviceType",
257
+ SESSION_INFO__USER_AGENT__NAME = "sessionInfo.userAgent.name",
258
+ SESSION_INFO__USER_AGENT__OS = "sessionInfo.userAgent.os",
259
+ SESSION_INFO__UTM__CAMPAIGN = "sessionInfo.utm.campaign",
260
+ SESSION_INFO__UTM__CONTENT = "sessionInfo.utm.content",
261
+ SESSION_INFO__UTM__MEDIUM = "sessionInfo.utm.medium",
262
+ SESSION_INFO__UTM__SOURCE = "sessionInfo.utm.source",
263
+ SESSION_INFO__UTM__TERM = "sessionInfo.utm.term",
264
+ SESSION_INFO__VISITOR_ID = "sessionInfo.visitorId",
235
265
  SHIPPING_ADDRESS__ADDRESS_LINE1 = "shippingAddress.addressLine1",
236
266
  SHIPPING_ADDRESS__ADDRESS_LINE2 = "shippingAddress.addressLine2",
237
267
  SHIPPING_ADDRESS__CITY__CODE = "shippingAddress.city.code",
@@ -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 currencySymbol customerId deleted dueDate id itemCount items {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice finalUnitPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue unitPrice updatedAt variant {barcodeList baseUnit {baseAmount type unit {id name } } brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice unitPrice } productId sku slug tagIds taxValue type unit {amount 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 }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CHECKOUT_FLOWS__CAMPAIGN_ID = "abandonedCheckoutFlows.campaignId",
@@ -127,6 +127,7 @@ export enum ResponseField {
127
127
  CART__ITEMS__DISCOUNT__REASON = "cart.items.discount.reason",
128
128
  CART__ITEMS__DISCOUNT_PRICE = "cart.items.discountPrice",
129
129
  CART__ITEMS__FINAL_PRICE = "cart.items.finalPrice",
130
+ CART__ITEMS__FINAL_UNIT_PRICE = "cart.items.finalUnitPrice",
130
131
  CART__ITEMS__ID = "cart.items.id",
131
132
  CART__ITEMS__OPTIONS__NAME = "cart.items.options.name",
132
133
  CART__ITEMS__OPTIONS__PRODUCT_OPTION_ID = "cart.items.options.productOptionId",
@@ -142,8 +143,13 @@ export enum ResponseField {
142
143
  CART__ITEMS__STATUS_UPDATED_AT = "cart.items.statusUpdatedAt",
143
144
  CART__ITEMS__STOCK_LOCATION_ID = "cart.items.stockLocationId",
144
145
  CART__ITEMS__TAX_VALUE = "cart.items.taxValue",
146
+ CART__ITEMS__UNIT_PRICE = "cart.items.unitPrice",
145
147
  CART__ITEMS__UPDATED_AT = "cart.items.updatedAt",
146
148
  CART__ITEMS__VARIANT__BARCODE_LIST = "cart.items.variant.barcodeList",
149
+ CART__ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "cart.items.variant.baseUnit.baseAmount",
150
+ CART__ITEMS__VARIANT__BASE_UNIT__TYPE = "cart.items.variant.baseUnit.type",
151
+ CART__ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "cart.items.variant.baseUnit.unit.id",
152
+ CART__ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "cart.items.variant.baseUnit.unit.name",
147
153
  CART__ITEMS__VARIANT__BRAND__ID = "cart.items.variant.brand.id",
148
154
  CART__ITEMS__VARIANT__BRAND__NAME = "cart.items.variant.brand.name",
149
155
  CART__ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "cart.items.variant.categories.categoryPath.id",
@@ -159,12 +165,15 @@ export enum ResponseField {
159
165
  CART__ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "cart.items.variant.prices.discountPrice",
160
166
  CART__ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "cart.items.variant.prices.priceListId",
161
167
  CART__ITEMS__VARIANT__PRICES__SELL_PRICE = "cart.items.variant.prices.sellPrice",
168
+ CART__ITEMS__VARIANT__PRICES__UNIT_PRICE = "cart.items.variant.prices.unitPrice",
162
169
  CART__ITEMS__VARIANT__PRODUCT_ID = "cart.items.variant.productId",
163
170
  CART__ITEMS__VARIANT__SKU = "cart.items.variant.sku",
164
171
  CART__ITEMS__VARIANT__SLUG = "cart.items.variant.slug",
165
172
  CART__ITEMS__VARIANT__TAG_IDS = "cart.items.variant.tagIds",
166
173
  CART__ITEMS__VARIANT__TAX_VALUE = "cart.items.variant.taxValue",
167
174
  CART__ITEMS__VARIANT__TYPE = "cart.items.variant.type",
175
+ CART__ITEMS__VARIANT__UNIT__AMOUNT = "cart.items.variant.unit.amount",
176
+ CART__ITEMS__VARIANT__UNIT__TYPE = "cart.items.variant.unit.type",
168
177
  CART__ITEMS__VARIANT__VARIANT_VALUES__ORDER = "cart.items.variant.variantValues.order",
169
178
  CART__ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "cart.items.variant.variantValues.variantTypeId",
170
179
  CART__ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "cart.items.variant.variantValues.variantTypeName",
@@ -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 currencySymbol customerId deleted dueDate id itemCount items {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice finalUnitPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue unitPrice updatedAt variant {barcodeList baseUnit {baseAmount type unit {id name } } brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice unitPrice } productId sku slug tagIds taxValue type unit {amount 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 }";
46
46
 
47
47
  export enum ResponseField {
48
48
  CAMPAIGN_OFFERS__APPLIED_ORDER_LINE_ID = "campaignOffers.appliedOrderLineId",
@@ -74,6 +74,7 @@ export enum ResponseField {
74
74
  ITEMS__DISCOUNT__REASON = "items.discount.reason",
75
75
  ITEMS__DISCOUNT_PRICE = "items.discountPrice",
76
76
  ITEMS__FINAL_PRICE = "items.finalPrice",
77
+ ITEMS__FINAL_UNIT_PRICE = "items.finalUnitPrice",
77
78
  ITEMS__ID = "items.id",
78
79
  ITEMS__OPTIONS__NAME = "items.options.name",
79
80
  ITEMS__OPTIONS__PRODUCT_OPTION_ID = "items.options.productOptionId",
@@ -89,8 +90,13 @@ export enum ResponseField {
89
90
  ITEMS__STATUS_UPDATED_AT = "items.statusUpdatedAt",
90
91
  ITEMS__STOCK_LOCATION_ID = "items.stockLocationId",
91
92
  ITEMS__TAX_VALUE = "items.taxValue",
93
+ ITEMS__UNIT_PRICE = "items.unitPrice",
92
94
  ITEMS__UPDATED_AT = "items.updatedAt",
93
95
  ITEMS__VARIANT__BARCODE_LIST = "items.variant.barcodeList",
96
+ ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "items.variant.baseUnit.baseAmount",
97
+ ITEMS__VARIANT__BASE_UNIT__TYPE = "items.variant.baseUnit.type",
98
+ ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "items.variant.baseUnit.unit.id",
99
+ ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "items.variant.baseUnit.unit.name",
94
100
  ITEMS__VARIANT__BRAND__ID = "items.variant.brand.id",
95
101
  ITEMS__VARIANT__BRAND__NAME = "items.variant.brand.name",
96
102
  ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "items.variant.categories.categoryPath.id",
@@ -106,12 +112,15 @@ export enum ResponseField {
106
112
  ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "items.variant.prices.discountPrice",
107
113
  ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "items.variant.prices.priceListId",
108
114
  ITEMS__VARIANT__PRICES__SELL_PRICE = "items.variant.prices.sellPrice",
115
+ ITEMS__VARIANT__PRICES__UNIT_PRICE = "items.variant.prices.unitPrice",
109
116
  ITEMS__VARIANT__PRODUCT_ID = "items.variant.productId",
110
117
  ITEMS__VARIANT__SKU = "items.variant.sku",
111
118
  ITEMS__VARIANT__SLUG = "items.variant.slug",
112
119
  ITEMS__VARIANT__TAG_IDS = "items.variant.tagIds",
113
120
  ITEMS__VARIANT__TAX_VALUE = "items.variant.taxValue",
114
121
  ITEMS__VARIANT__TYPE = "items.variant.type",
122
+ ITEMS__VARIANT__UNIT__AMOUNT = "items.variant.unit.amount",
123
+ ITEMS__VARIANT__UNIT__TYPE = "items.variant.unit.type",
115
124
  ITEMS__VARIANT__VARIANT_VALUES__ORDER = "items.variant.variantValues.order",
116
125
  ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "items.variant.variantValues.variantTypeId",
117
126
  ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "items.variant.variantValues.variantTypeName",
@@ -16,6 +16,7 @@ const sendContactFormToMerchant = async (
16
16
  variables,
17
17
  query: `
18
18
  mutation sendContactFormToMerchant (
19
+ $captchaToken: String,
19
20
  $email: String!,
20
21
  $firstName: String!,
21
22
  $lastName: String!,
@@ -24,6 +25,7 @@ const sendContactFormToMerchant = async (
24
25
  $referer: String,
25
26
  ) {
26
27
  sendContactFormToMerchant (
28
+ captchaToken: $captchaToken,
27
29
  email: $email,
28
30
  firstName: $firstName,
29
31
  lastName: $lastName,
@@ -44,6 +46,7 @@ const sendContactFormToMerchant = async (
44
46
  export default sendContactFormToMerchant;
45
47
 
46
48
  export type QueryParams = {
49
+ captchaToken?: string | null;
47
50
  email: string;
48
51
  firstName: string;
49
52
  lastName: string;
@@ -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 } 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 finalUnitPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue unitPrice updatedAt variant {barcodeList baseUnit {baseAmount type unit {id name } } brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice unitPrice } productId sku slug tagIds taxValue type unit {amount type } variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId sessionInfo {countryCode durationMS end host ip referer salesChannelId sessionId start storefrontId trafficSource {source type } userAgent {deviceType name os } utm {campaign content medium source term } visitorId } 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",
@@ -178,6 +178,7 @@ export enum ResponseField {
178
178
  ORDER_LINE_ITEMS__DISCOUNT__REASON = "orderLineItems.discount.reason",
179
179
  ORDER_LINE_ITEMS__DISCOUNT_PRICE = "orderLineItems.discountPrice",
180
180
  ORDER_LINE_ITEMS__FINAL_PRICE = "orderLineItems.finalPrice",
181
+ ORDER_LINE_ITEMS__FINAL_UNIT_PRICE = "orderLineItems.finalUnitPrice",
181
182
  ORDER_LINE_ITEMS__ID = "orderLineItems.id",
182
183
  ORDER_LINE_ITEMS__OPTIONS__NAME = "orderLineItems.options.name",
183
184
  ORDER_LINE_ITEMS__OPTIONS__PRODUCT_OPTION_ID = "orderLineItems.options.productOptionId",
@@ -193,8 +194,13 @@ export enum ResponseField {
193
194
  ORDER_LINE_ITEMS__STATUS_UPDATED_AT = "orderLineItems.statusUpdatedAt",
194
195
  ORDER_LINE_ITEMS__STOCK_LOCATION_ID = "orderLineItems.stockLocationId",
195
196
  ORDER_LINE_ITEMS__TAX_VALUE = "orderLineItems.taxValue",
197
+ ORDER_LINE_ITEMS__UNIT_PRICE = "orderLineItems.unitPrice",
196
198
  ORDER_LINE_ITEMS__UPDATED_AT = "orderLineItems.updatedAt",
197
199
  ORDER_LINE_ITEMS__VARIANT__BARCODE_LIST = "orderLineItems.variant.barcodeList",
200
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "orderLineItems.variant.baseUnit.baseAmount",
201
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__TYPE = "orderLineItems.variant.baseUnit.type",
202
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "orderLineItems.variant.baseUnit.unit.id",
203
+ ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "orderLineItems.variant.baseUnit.unit.name",
198
204
  ORDER_LINE_ITEMS__VARIANT__BRAND__ID = "orderLineItems.variant.brand.id",
199
205
  ORDER_LINE_ITEMS__VARIANT__BRAND__NAME = "orderLineItems.variant.brand.name",
200
206
  ORDER_LINE_ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "orderLineItems.variant.categories.categoryPath.id",
@@ -210,12 +216,15 @@ export enum ResponseField {
210
216
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
211
217
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
212
218
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
219
+ ORDER_LINE_ITEMS__VARIANT__PRICES__UNIT_PRICE = "orderLineItems.variant.prices.unitPrice",
213
220
  ORDER_LINE_ITEMS__VARIANT__PRODUCT_ID = "orderLineItems.variant.productId",
214
221
  ORDER_LINE_ITEMS__VARIANT__SKU = "orderLineItems.variant.sku",
215
222
  ORDER_LINE_ITEMS__VARIANT__SLUG = "orderLineItems.variant.slug",
216
223
  ORDER_LINE_ITEMS__VARIANT__TAG_IDS = "orderLineItems.variant.tagIds",
217
224
  ORDER_LINE_ITEMS__VARIANT__TAX_VALUE = "orderLineItems.variant.taxValue",
218
225
  ORDER_LINE_ITEMS__VARIANT__TYPE = "orderLineItems.variant.type",
226
+ ORDER_LINE_ITEMS__VARIANT__UNIT__AMOUNT = "orderLineItems.variant.unit.amount",
227
+ ORDER_LINE_ITEMS__VARIANT__UNIT__TYPE = "orderLineItems.variant.unit.type",
219
228
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__ORDER = "orderLineItems.variant.variantValues.order",
220
229
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "orderLineItems.variant.variantValues.variantTypeId",
221
230
  ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "orderLineItems.variant.variantValues.variantTypeName",
@@ -229,6 +238,27 @@ export enum ResponseField {
229
238
  RECOVER_EMAIL_STATUS = "recoverEmailStatus",
230
239
  RECOVERY_STATUS = "recoveryStatus",
231
240
  SALES_CHANNEL_ID = "salesChannelId",
241
+ SESSION_INFO__COUNTRY_CODE = "sessionInfo.countryCode",
242
+ SESSION_INFO__DURATION_M_S = "sessionInfo.durationMS",
243
+ SESSION_INFO__END = "sessionInfo.end",
244
+ SESSION_INFO__HOST = "sessionInfo.host",
245
+ SESSION_INFO__IP = "sessionInfo.ip",
246
+ SESSION_INFO__REFERER = "sessionInfo.referer",
247
+ SESSION_INFO__SALES_CHANNEL_ID = "sessionInfo.salesChannelId",
248
+ SESSION_INFO__SESSION_ID = "sessionInfo.sessionId",
249
+ SESSION_INFO__START = "sessionInfo.start",
250
+ SESSION_INFO__STOREFRONT_ID = "sessionInfo.storefrontId",
251
+ SESSION_INFO__TRAFFIC_SOURCE__SOURCE = "sessionInfo.trafficSource.source",
252
+ SESSION_INFO__TRAFFIC_SOURCE__TYPE = "sessionInfo.trafficSource.type",
253
+ SESSION_INFO__USER_AGENT__DEVICE_TYPE = "sessionInfo.userAgent.deviceType",
254
+ SESSION_INFO__USER_AGENT__NAME = "sessionInfo.userAgent.name",
255
+ SESSION_INFO__USER_AGENT__OS = "sessionInfo.userAgent.os",
256
+ SESSION_INFO__UTM__CAMPAIGN = "sessionInfo.utm.campaign",
257
+ SESSION_INFO__UTM__CONTENT = "sessionInfo.utm.content",
258
+ SESSION_INFO__UTM__MEDIUM = "sessionInfo.utm.medium",
259
+ SESSION_INFO__UTM__SOURCE = "sessionInfo.utm.source",
260
+ SESSION_INFO__UTM__TERM = "sessionInfo.utm.term",
261
+ SESSION_INFO__VISITOR_ID = "sessionInfo.visitorId",
232
262
  SHIPPING_ADDRESS__ADDRESS_LINE1 = "shippingAddress.addressLine1",
233
263
  SHIPPING_ADDRESS__ADDRESS_LINE2 = "shippingAddress.addressLine2",
234
264
  SHIPPING_ADDRESS__CITY__CODE = "shippingAddress.city.code",