@ikas/storefront-api 4.0.0-alpha.42 → 4.0.0-alpha.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/__api/models/CartV2.ts +5 -0
- package/src/__api/models/CategoryFilterInput.ts +2 -0
- package/src/__api/models/LocationTranslations.ts +2 -0
- package/src/__api/models/OrderLineBaseUnit.ts +19 -0
- package/src/__api/models/OrderLineItem.ts +10 -0
- package/src/__api/models/OrderLineVariant.ts +8 -0
- package/src/__api/models/OrderLineVariantPrice.ts +5 -0
- package/src/__api/models/OrderLineVariantUnit.ts +16 -0
- package/src/__api/models/OrderLineVariantUnitType.ts +16 -0
- package/src/__api/models/OrderSessionInfo.ts +49 -0
- package/src/__api/models/OrderSessionInfoTrafficSource.ts +18 -0
- package/src/__api/models/OrderSessionUTM.ts +21 -0
- package/src/__api/models/OrderSessionUserAgent.ts +18 -0
- package/src/__api/models/Product.ts +5 -0
- package/src/__api/models/ProductBaseUnitModel.ts +21 -0
- package/src/__api/models/RaffleParticipants.ts +2 -4
- package/src/__api/models/SearchProduct.ts +5 -0
- package/src/__api/models/SearchProductPrice.ts +5 -0
- package/src/__api/models/SearchVariant.ts +3 -0
- package/src/__api/models/StorefrontRouting.ts +4 -0
- package/src/__api/models/Variant.ts +3 -0
- package/src/__api/models/VariantUnitModel.ts +17 -0
- package/src/__api/mutations/addCouponCodeToCheckout.ts +10 -1
- package/src/__api/mutations/addItemToCart.ts +31 -1
- package/src/__api/mutations/createOrderRefundRequest.ts +10 -1
- package/src/__api/mutations/saveCart.ts +31 -1
- package/src/__api/mutations/saveCartCouponCode.ts +31 -1
- package/src/__api/mutations/saveCheckout.ts +10 -1
- package/src/__api/mutations/saveItemToCart.ts +10 -1
- package/src/__api/mutations/updateCartCampaignOffer.ts +31 -1
- package/src/__api/queries/getCart.ts +10 -1
- package/src/__api/queries/getCartById.ts +31 -1
- package/src/__api/queries/getCheckoutByCartId.ts +10 -1
- package/src/__api/queries/getCheckoutById.ts +10 -1
- package/src/__api/queries/getCustomerOrders.ts +10 -1
- package/src/__api/queries/getOrder.ts +10 -1
- package/src/__api/queries/getOrderByEmail.ts +10 -1
- package/src/__api/queries/getStorefront.ts +3 -1
- package/src/__api/queries/listCountry.ts +5 -1
- package/src/__api/queries/listProduct.ts +6 -1
- package/src/__api/queries/searchProducts.ts +7 -1
- package/src/__api/types/index.ts +130 -1
- package/src/api/location/index.ts +13 -4
- 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",
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -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 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 }";
|
|
52
52
|
|
|
53
53
|
export enum ResponseField {
|
|
54
54
|
CAMPAIGN_OFFERS__APPLIED_ORDER_LINE_ID = "campaignOffers.appliedOrderLineId",
|
|
@@ -80,6 +80,7 @@ export enum ResponseField {
|
|
|
80
80
|
ITEMS__DISCOUNT__REASON = "items.discount.reason",
|
|
81
81
|
ITEMS__DISCOUNT_PRICE = "items.discountPrice",
|
|
82
82
|
ITEMS__FINAL_PRICE = "items.finalPrice",
|
|
83
|
+
ITEMS__FINAL_UNIT_PRICE = "items.finalUnitPrice",
|
|
83
84
|
ITEMS__ID = "items.id",
|
|
84
85
|
ITEMS__OPTIONS__NAME = "items.options.name",
|
|
85
86
|
ITEMS__OPTIONS__PRODUCT_OPTION_ID = "items.options.productOptionId",
|
|
@@ -95,8 +96,13 @@ export enum ResponseField {
|
|
|
95
96
|
ITEMS__STATUS_UPDATED_AT = "items.statusUpdatedAt",
|
|
96
97
|
ITEMS__STOCK_LOCATION_ID = "items.stockLocationId",
|
|
97
98
|
ITEMS__TAX_VALUE = "items.taxValue",
|
|
99
|
+
ITEMS__UNIT_PRICE = "items.unitPrice",
|
|
98
100
|
ITEMS__UPDATED_AT = "items.updatedAt",
|
|
99
101
|
ITEMS__VARIANT__BARCODE_LIST = "items.variant.barcodeList",
|
|
102
|
+
ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "items.variant.baseUnit.baseAmount",
|
|
103
|
+
ITEMS__VARIANT__BASE_UNIT__TYPE = "items.variant.baseUnit.type",
|
|
104
|
+
ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "items.variant.baseUnit.unit.id",
|
|
105
|
+
ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "items.variant.baseUnit.unit.name",
|
|
100
106
|
ITEMS__VARIANT__BRAND__ID = "items.variant.brand.id",
|
|
101
107
|
ITEMS__VARIANT__BRAND__NAME = "items.variant.brand.name",
|
|
102
108
|
ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "items.variant.categories.categoryPath.id",
|
|
@@ -112,12 +118,15 @@ export enum ResponseField {
|
|
|
112
118
|
ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "items.variant.prices.discountPrice",
|
|
113
119
|
ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "items.variant.prices.priceListId",
|
|
114
120
|
ITEMS__VARIANT__PRICES__SELL_PRICE = "items.variant.prices.sellPrice",
|
|
121
|
+
ITEMS__VARIANT__PRICES__UNIT_PRICE = "items.variant.prices.unitPrice",
|
|
115
122
|
ITEMS__VARIANT__PRODUCT_ID = "items.variant.productId",
|
|
116
123
|
ITEMS__VARIANT__SKU = "items.variant.sku",
|
|
117
124
|
ITEMS__VARIANT__SLUG = "items.variant.slug",
|
|
118
125
|
ITEMS__VARIANT__TAG_IDS = "items.variant.tagIds",
|
|
119
126
|
ITEMS__VARIANT__TAX_VALUE = "items.variant.taxValue",
|
|
120
127
|
ITEMS__VARIANT__TYPE = "items.variant.type",
|
|
128
|
+
ITEMS__VARIANT__UNIT__AMOUNT = "items.variant.unit.amount",
|
|
129
|
+
ITEMS__VARIANT__UNIT__TYPE = "items.variant.unit.type",
|
|
121
130
|
ITEMS__VARIANT__VARIANT_VALUES__ORDER = "items.variant.variantValues.order",
|
|
122
131
|
ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "items.variant.variantValues.variantTypeId",
|
|
123
132
|
ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "items.variant.variantValues.variantTypeName",
|