@ikas/storefront-api 4.15.0-beta.13 → 4.15.0-beta.130
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/build/__api/models/Campaign.d.ts +2 -0
- package/build/__api/models/CampaignTieredDiscount.d.ts +14 -0
- package/build/__api/models/CampaignTieredDiscountRule.d.ts +12 -0
- package/build/__api/models/CheckoutSettings.d.ts +2 -1
- package/build/__api/models/CreateAdyenPlatformSessionResponse.d.ts +13 -0
- package/build/__api/models/CreateCustomerReviewInput.d.ts +1 -0
- package/build/__api/models/CreateKlarnaTokenResponse.d.ts +1 -0
- package/build/__api/models/CreatePaypalOrderResponse.d.ts +1 -0
- package/build/__api/models/CreateStripePaymentIntentResponse.d.ts +1 -0
- package/build/__api/models/Customer.d.ts +8 -1
- package/build/__api/models/CustomerRegisterSubscriptionInput.d.ts +11 -0
- package/build/__api/models/GetAvailableStockLocationAddress.d.ts +2 -1
- package/build/__api/models/GetAvailableStockLocationAddressCountry.d.ts +13 -0
- package/build/__api/models/SaveCustomerFormDataInput.d.ts +19 -0
- package/build/__api/models/SaveMyCustomerInput.d.ts +5 -1
- package/build/__api/models/SaveMyCustomerInput.js +1 -1
- package/build/__api/models/SearchProductCampaign.d.ts +4 -1
- package/build/__api/models/SearchProductCampaignMinMaxRangeField.d.ts +10 -0
- package/build/__api/models/SearchProductCampaignTieredDiscount.d.ts +14 -0
- package/build/__api/models/SearchProductCampaignTieredDiscountRule.d.ts +12 -0
- package/build/__api/models/SearchProductGroup.d.ts +2 -0
- package/build/__api/models/SearchProductGroupOrder.d.ts +10 -0
- package/build/__api/models/StorefrontPopup.d.ts +27 -0
- package/build/__api/models/StorefrontPopupAnalytics.d.ts +11 -0
- package/build/__api/models/StorefrontPopupDateFilter.d.ts +10 -0
- package/build/__api/models/StorefrontPopupDisplayFilter.d.ts +12 -0
- package/build/__api/models/StorefrontPopupDisplaySettings.d.ts +12 -0
- package/build/__api/models/StorefrontPopupPageFilter.d.ts +12 -0
- package/build/__api/models/StorefrontPopupPageFilterData.d.ts +11 -0
- package/build/__api/models/StorefrontPopupRouting.d.ts +10 -0
- package/build/__api/mutations/createAdyenBalancePlatformPaymentSession.d.ts +14 -0
- package/build/__api/mutations/createAdyenBalancePlatformPaymentSession.js +1 -0
- package/build/__api/mutations/createAdyenPaymentSession.d.ts +1 -1
- package/build/__api/mutations/createCustomerReview.d.ts +1 -0
- package/build/__api/mutations/createCustomerReview.js +1 -1
- package/build/__api/mutations/createKlarnaClientToken.d.ts +1 -0
- package/build/__api/mutations/createKlarnaClientToken.js +1 -1
- package/build/__api/mutations/createPaypalOrder.d.ts +1 -0
- package/build/__api/mutations/createPaypalOrder.js +1 -1
- package/build/__api/mutations/createStripePaymentIntent.d.ts +2 -1
- package/build/__api/mutations/createStripePaymentIntent.js +1 -1
- package/build/__api/mutations/customerLogin.d.ts +9 -0
- package/build/__api/mutations/customerLogin.js +1 -1
- package/build/__api/mutations/saveCustomerFormData.d.ts +7 -0
- package/build/__api/mutations/saveCustomerFormData.js +1 -0
- package/build/__api/mutations/saveMyCustomer.d.ts +9 -0
- package/build/__api/mutations/saveMyCustomer.js +1 -1
- package/build/__api/queries/customerSocialLogin.d.ts +9 -0
- package/build/__api/queries/customerSocialLogin.js +1 -1
- package/build/__api/queries/getAvailableStockLocations.d.ts +2 -0
- package/build/__api/queries/getAvailableStockLocations.js +1 -1
- package/build/__api/queries/getMyCustomer.d.ts +9 -0
- package/build/__api/queries/getMyCustomer.js +1 -1
- package/build/__api/queries/getSuggestedProducts.d.ts +3 -0
- package/build/__api/queries/getSuggestedProducts.js +1 -1
- package/build/__api/queries/listCheckoutSettings.d.ts +1 -0
- package/build/__api/queries/listCheckoutSettings.js +1 -1
- package/build/__api/queries/listCustomerReviews.d.ts +1 -0
- package/build/__api/queries/listCustomerReviews.js +1 -1
- package/build/__api/queries/listStorefrontPopup.d.ts +34 -0
- package/build/__api/queries/listStorefrontPopup.js +1 -0
- package/build/__api/queries/searchProducts.d.ts +12 -0
- package/build/__api/queries/searchProducts.js +1 -1
- package/build/__api/types/index.d.ts +195 -1
- package/build/__api/types/index.js +1 -1
- package/build/api/checkout/index.d.ts +3 -3
- package/build/api/checkout/index.js +1 -1
- package/build/api/customer/index.d.ts +19 -2
- package/build/api/customer/index.js +1 -1
- package/build/api/product/index.d.ts +1 -1
- package/build/api/product/index.js +1 -1
- package/build/api/storefront/index.d.ts +2 -1
- package/build/api/storefront-popup/index.d.ts +5 -0
- package/build/api/storefront-popup/index.js +1 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +1 -1
- package/build/index2.js +1 -1
- package/package.json +5 -5
- package/build/__api/mutations/createAdyenPaymentSession.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,u){return e(void 0,void 0,void 0,(function(){var e,o,d,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S({operationName:"customerLogin",config:u,variables:E,allReturnFields:T,fields:r,query:function(e){return"\n\t\t\t\tmutation customerLogin (\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String!,\n\t\t\t\t\t$password: String!,\n\t\t\t\t) {\n\t\t\t\t\tcustomerLogin (\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),o=e.data,d=e.errors,[2,new s(null==o?void 0:o.customerLogin,d)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__BIRTH_DATE="customer.birthDate",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__GENDER="customer.gender",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",e.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",e.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",e.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",e.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",e.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
import { SaveCustomerFormDataInput } from "../types";
|
|
3
|
+
declare const saveCustomerFormData: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<boolean> | APIResponse<undefined>>;
|
|
4
|
+
export default saveCustomerFormData;
|
|
5
|
+
export declare type QueryParams = {
|
|
6
|
+
input: SaveCustomerFormDataInput;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as a,fetchQuery as n}from"@ikas/fe-api-client";var o=function(o,s){return t(void 0,void 0,void 0,(function(){var t,u,i,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"saveCustomerFormData",config:s,variables:o,query:"\n\t\t\t\tmutation saveCustomerFormData (\n\t\t\t\t\t$input: SaveCustomerFormDataInput!,\n\t\t\t\t) {\n\t\t\t\t\tsaveCustomerFormData (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t"})];case 1:return t=e.sent(),u=t.data,i=t.errors,[2,new a(null==u?void 0:u.saveCustomerFormData,i)];case 2:return m=e.sent(),[2,r(m)];case 3:return[2]}}))}))};export{o as default};
|
|
@@ -49,14 +49,17 @@ export declare enum ResponseField {
|
|
|
49
49
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "attributes.customerAttributeId",
|
|
50
50
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "attributes.customerAttributeOptionId",
|
|
51
51
|
ATTRIBUTES__VALUE = "attributes.value",
|
|
52
|
+
BIRTH_DATE = "birthDate",
|
|
52
53
|
CREATED_AT = "createdAt",
|
|
53
54
|
CUSTOMER_GROUP_IDS = "customerGroupIds",
|
|
55
|
+
CUSTOMER_SEGMENT_IDS = "customerSegmentIds",
|
|
54
56
|
CUSTOMER_SEQUENCE = "customerSequence",
|
|
55
57
|
DELETED = "deleted",
|
|
56
58
|
EMAIL = "email",
|
|
57
59
|
EMAIL_VERIFIED_DATE = "emailVerifiedDate",
|
|
58
60
|
FIRST_NAME = "firstName",
|
|
59
61
|
FULL_NAME = "fullName",
|
|
62
|
+
GENDER = "gender",
|
|
60
63
|
ID = "id",
|
|
61
64
|
IS_EMAIL_VERIFIED = "isEmailVerified",
|
|
62
65
|
IS_PHONE_VERIFIED = "isPhoneVerified",
|
|
@@ -65,15 +68,21 @@ export declare enum ResponseField {
|
|
|
65
68
|
ORDER_COUNT = "orderCount",
|
|
66
69
|
PASSWORD_UPDATE_DATE = "passwordUpdateDate",
|
|
67
70
|
PHONE = "phone",
|
|
71
|
+
PHONE_SUBSCRIPTION_STATUS = "phoneSubscriptionStatus",
|
|
72
|
+
PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "phoneSubscriptionStatusUpdatedAt",
|
|
68
73
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
69
74
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
70
75
|
PRICE_LIST_ID = "priceListId",
|
|
76
|
+
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
71
77
|
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
72
78
|
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
79
|
+
PRICE_LIST_RULES__PRICE_LIST_ID = "priceListRules.priceListId",
|
|
73
80
|
PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "priceListRules.shouldMatchAllFilters",
|
|
74
81
|
PRICE_LIST_RULES__VALUE = "priceListRules.value",
|
|
75
82
|
PRICE_LIST_RULES__VALUE_TYPE = "priceListRules.valueType",
|
|
76
83
|
REGISTRATION_SOURCE = "registrationSource",
|
|
84
|
+
SMS_SUBSCRIPTION_STATUS = "smsSubscriptionStatus",
|
|
85
|
+
SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "smsSubscriptionStatusUpdatedAt",
|
|
77
86
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
78
87
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
79
88
|
TAG_IDS = "tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as S,fetchQuery as _}from"@ikas/fe-api-client";var E,d=function(E,d,a){return e(void 0,void 0,void 0,(function(){var e,i,D,A;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,_({operationName:"saveMyCustomer",config:a,variables:E,allReturnFields:r,fields:d,query:function(e){return"\n\t\t\t\tmutation saveMyCustomer (\n\t\t\t\t\t$input: SaveMyCustomerInput!,\n\t\t\t\t) {\n\t\t\t\t\tsaveMyCustomer (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),i=e.data,D=e.errors,[2,new S(null==i?void 0:i.saveMyCustomer,D)];case 2:return A=t.sent(),[2,s(A)];case 3:return[2]}}))}))},r="{accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt }";!function(e){e.ACCOUNT_STATUS="accountStatus",e.ACCOUNT_STATUS_UPDATED_AT="accountStatusUpdatedAt",e.ADDRESSES__ADDRESS_LINE1="addresses.addressLine1",e.ADDRESSES__ADDRESS_LINE2="addresses.addressLine2",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="addresses.attributes.customerAttributeId",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="addresses.attributes.customerAttributeOptionId",e.ADDRESSES__ATTRIBUTES__VALUE="addresses.attributes.value",e.ADDRESSES__CITY__CODE="addresses.city.code",e.ADDRESSES__CITY__ID="addresses.city.id",e.ADDRESSES__CITY__NAME="addresses.city.name",e.ADDRESSES__COMPANY="addresses.company",e.ADDRESSES__COUNTRY__CODE="addresses.country.code",e.ADDRESSES__COUNTRY__ID="addresses.country.id",e.ADDRESSES__COUNTRY__ISO2="addresses.country.iso2",e.ADDRESSES__COUNTRY__ISO3="addresses.country.iso3",e.ADDRESSES__COUNTRY__NAME="addresses.country.name",e.ADDRESSES__CREATED_AT="addresses.createdAt",e.ADDRESSES__DELETED="addresses.deleted",e.ADDRESSES__DISTRICT__CODE="addresses.district.code",e.ADDRESSES__DISTRICT__ID="addresses.district.id",e.ADDRESSES__DISTRICT__NAME="addresses.district.name",e.ADDRESSES__FIRST_NAME="addresses.firstName",e.ADDRESSES__ID="addresses.id",e.ADDRESSES__IDENTITY_NUMBER="addresses.identityNumber",e.ADDRESSES__IS_DEFAULT="addresses.isDefault",e.ADDRESSES__LAST_NAME="addresses.lastName",e.ADDRESSES__PHONE="addresses.phone",e.ADDRESSES__POSTAL_CODE="addresses.postalCode",e.ADDRESSES__REGION__CREATED_AT="addresses.region.createdAt",e.ADDRESSES__REGION__DELETED="addresses.region.deleted",e.ADDRESSES__REGION__ID="addresses.region.id",e.ADDRESSES__REGION__NAME="addresses.region.name",e.ADDRESSES__REGION__UPDATED_AT="addresses.region.updatedAt",e.ADDRESSES__STATE__CODE="addresses.state.code",e.ADDRESSES__STATE__ID="addresses.state.id",e.ADDRESSES__STATE__NAME="addresses.state.name",e.ADDRESSES__TAX_NUMBER="addresses.taxNumber",e.ADDRESSES__TAX_OFFICE="addresses.taxOffice",e.ADDRESSES__TITLE="addresses.title",e.ADDRESSES__UPDATED_AT="addresses.updatedAt",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="attributes.customerAttributeId",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="attributes.customerAttributeOptionId",e.ATTRIBUTES__VALUE="attributes.value",e.BIRTH_DATE="birthDate",e.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEGMENT_IDS="customerSegmentIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",e.GENDER="gender",e.ID="id",e.IS_EMAIL_VERIFIED="isEmailVerified",e.IS_PHONE_VERIFIED="isPhoneVerified",e.LAST_NAME="lastName",e.NOTE="note",e.ORDER_COUNT="orderCount",e.PASSWORD_UPDATE_DATE="passwordUpdateDate",e.PHONE="phone",e.PHONE_SUBSCRIPTION_STATUS="phoneSubscriptionStatus",e.PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="phoneSubscriptionStatusUpdatedAt",e.PHONE_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__DISCOUNT_RATE="priceListRules.discountRate",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",e.PRICE_LIST_RULES__PRICE_LIST_ID="priceListRules.priceListId",e.PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="priceListRules.shouldMatchAllFilters",e.PRICE_LIST_RULES__VALUE="priceListRules.value",e.PRICE_LIST_RULES__VALUE_TYPE="priceListRules.valueType",e.REGISTRATION_SOURCE="registrationSource",e.SMS_SUBSCRIPTION_STATUS="smsSubscriptionStatus",e.SMS_SUBSCRIPTION_STATUS_UPDATED_AT="smsSubscriptionStatusUpdatedAt",e.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(E||(E={}));export{E as ResponseField,d as default};
|
|
@@ -49,14 +49,17 @@ export declare enum ResponseField {
|
|
|
49
49
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.attributes.customerAttributeId",
|
|
50
50
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.attributes.customerAttributeOptionId",
|
|
51
51
|
CUSTOMER__ATTRIBUTES__VALUE = "customer.attributes.value",
|
|
52
|
+
CUSTOMER__BIRTH_DATE = "customer.birthDate",
|
|
52
53
|
CUSTOMER__CREATED_AT = "customer.createdAt",
|
|
53
54
|
CUSTOMER__CUSTOMER_GROUP_IDS = "customer.customerGroupIds",
|
|
55
|
+
CUSTOMER__CUSTOMER_SEGMENT_IDS = "customer.customerSegmentIds",
|
|
54
56
|
CUSTOMER__CUSTOMER_SEQUENCE = "customer.customerSequence",
|
|
55
57
|
CUSTOMER__DELETED = "customer.deleted",
|
|
56
58
|
CUSTOMER__EMAIL = "customer.email",
|
|
57
59
|
CUSTOMER__EMAIL_VERIFIED_DATE = "customer.emailVerifiedDate",
|
|
58
60
|
CUSTOMER__FIRST_NAME = "customer.firstName",
|
|
59
61
|
CUSTOMER__FULL_NAME = "customer.fullName",
|
|
62
|
+
CUSTOMER__GENDER = "customer.gender",
|
|
60
63
|
CUSTOMER__ID = "customer.id",
|
|
61
64
|
CUSTOMER__IS_EMAIL_VERIFIED = "customer.isEmailVerified",
|
|
62
65
|
CUSTOMER__IS_PHONE_VERIFIED = "customer.isPhoneVerified",
|
|
@@ -65,15 +68,21 @@ export declare enum ResponseField {
|
|
|
65
68
|
CUSTOMER__ORDER_COUNT = "customer.orderCount",
|
|
66
69
|
CUSTOMER__PASSWORD_UPDATE_DATE = "customer.passwordUpdateDate",
|
|
67
70
|
CUSTOMER__PHONE = "customer.phone",
|
|
71
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS = "customer.phoneSubscriptionStatus",
|
|
72
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.phoneSubscriptionStatusUpdatedAt",
|
|
68
73
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
69
74
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
70
75
|
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
76
|
+
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
71
77
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
72
78
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
79
|
+
CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID = "customer.priceListRules.priceListId",
|
|
73
80
|
CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
|
|
74
81
|
CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
|
|
75
82
|
CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
|
|
76
83
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
84
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS = "customer.smsSubscriptionStatus",
|
|
85
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.smsSubscriptionStatusUpdatedAt",
|
|
77
86
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
78
87
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
79
88
|
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,u){return e(void 0,void 0,void 0,(function(){var e,o,d,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S({operationName:"customerSocialLogin",config:u,variables:E,allReturnFields:T,fields:r,query:function(e){return"\n\t\t\t\tquery customerSocialLogin (\n\t\t\t\t\t$code: String!,\n\t\t\t\t) {\n\t\t\t\t\tcustomerSocialLogin (\n\t\t\t\t\t\tcode: $code,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),o=e.data,d=e.errors,[2,new s(null==o?void 0:o.customerSocialLogin,d)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__BIRTH_DATE="customer.birthDate",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__GENDER="customer.gender",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",e.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",e.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",e.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",e.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",e.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r as default};
|
|
@@ -13,6 +13,8 @@ export declare enum ResponseField {
|
|
|
13
13
|
STOCK_LOCATIONS__ADDRESS__CITY__NAME = "stockLocations.address.city.name",
|
|
14
14
|
STOCK_LOCATIONS__ADDRESS__COUNTRY__CODE = "stockLocations.address.country.code",
|
|
15
15
|
STOCK_LOCATIONS__ADDRESS__COUNTRY__ID = "stockLocations.address.country.id",
|
|
16
|
+
STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO2 = "stockLocations.address.country.iso2",
|
|
17
|
+
STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO3 = "stockLocations.address.country.iso3",
|
|
16
18
|
STOCK_LOCATIONS__ADDRESS__COUNTRY__NAME = "stockLocations.address.country.name",
|
|
17
19
|
STOCK_LOCATIONS__ADDRESS__DISTRICT__CODE = "stockLocations.address.district.code",
|
|
18
20
|
STOCK_LOCATIONS__ADDRESS__DISTRICT__ID = "stockLocations.address.district.id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as s}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as o,APIResponse as _,fetchQuery as
|
|
1
|
+
import{__awaiter as t,__generator as s}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as o,APIResponse as _,fetchQuery as c}from"@ikas/fe-api-client";var e,a=function(e,a,i){return t(void 0,void 0,void 0,(function(){var t,n,d,O;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,c({operationName:"getAvailableStockLocations",config:i,variables:e,allReturnFields:S,fields:a,query:function(t){return"\n\t\t\t\tquery getAvailableStockLocations (\n\t\t\t\t\t$lines: [CheckStocksLineInput!]!,\n\t\t\t\t\t$stockLocationIdList: [String!],\n\t\t\t\t) {\n\t\t\t\t\tgetAvailableStockLocations (\n\t\t\t\t\t\tlines: $lines,\n\t\t\t\t\t\tstockLocationIdList: $stockLocationIdList,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=s.sent(),n=t.data,d=t.errors,[2,new _(null==n?void 0:n.getAvailableStockLocations,d)];case 2:return O=s.sent(),[2,o(O)];case 3:return[2]}}))}))},S="{stockLocations {address {address city {code id name } country {code id iso2 iso3 name } district {code id name } phone postalCode state {code id name } } id name type } }";!function(t){t.STOCK_LOCATIONS__ADDRESS__ADDRESS="stockLocations.address.address",t.STOCK_LOCATIONS__ADDRESS__CITY__CODE="stockLocations.address.city.code",t.STOCK_LOCATIONS__ADDRESS__CITY__ID="stockLocations.address.city.id",t.STOCK_LOCATIONS__ADDRESS__CITY__NAME="stockLocations.address.city.name",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__CODE="stockLocations.address.country.code",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ID="stockLocations.address.country.id",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO2="stockLocations.address.country.iso2",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO3="stockLocations.address.country.iso3",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__NAME="stockLocations.address.country.name",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__CODE="stockLocations.address.district.code",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__ID="stockLocations.address.district.id",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__NAME="stockLocations.address.district.name",t.STOCK_LOCATIONS__ADDRESS__PHONE="stockLocations.address.phone",t.STOCK_LOCATIONS__ADDRESS__POSTAL_CODE="stockLocations.address.postalCode",t.STOCK_LOCATIONS__ADDRESS__STATE__CODE="stockLocations.address.state.code",t.STOCK_LOCATIONS__ADDRESS__STATE__ID="stockLocations.address.state.id",t.STOCK_LOCATIONS__ADDRESS__STATE__NAME="stockLocations.address.state.name",t.STOCK_LOCATIONS__ID="stockLocations.id",t.STOCK_LOCATIONS__NAME="stockLocations.name",t.STOCK_LOCATIONS__TYPE="stockLocations.type"}(e||(e={}));export{e as ResponseField,a as default};
|
|
@@ -46,14 +46,17 @@ export declare enum ResponseField {
|
|
|
46
46
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "attributes.customerAttributeId",
|
|
47
47
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "attributes.customerAttributeOptionId",
|
|
48
48
|
ATTRIBUTES__VALUE = "attributes.value",
|
|
49
|
+
BIRTH_DATE = "birthDate",
|
|
49
50
|
CREATED_AT = "createdAt",
|
|
50
51
|
CUSTOMER_GROUP_IDS = "customerGroupIds",
|
|
52
|
+
CUSTOMER_SEGMENT_IDS = "customerSegmentIds",
|
|
51
53
|
CUSTOMER_SEQUENCE = "customerSequence",
|
|
52
54
|
DELETED = "deleted",
|
|
53
55
|
EMAIL = "email",
|
|
54
56
|
EMAIL_VERIFIED_DATE = "emailVerifiedDate",
|
|
55
57
|
FIRST_NAME = "firstName",
|
|
56
58
|
FULL_NAME = "fullName",
|
|
59
|
+
GENDER = "gender",
|
|
57
60
|
ID = "id",
|
|
58
61
|
IS_EMAIL_VERIFIED = "isEmailVerified",
|
|
59
62
|
IS_PHONE_VERIFIED = "isPhoneVerified",
|
|
@@ -62,15 +65,21 @@ export declare enum ResponseField {
|
|
|
62
65
|
ORDER_COUNT = "orderCount",
|
|
63
66
|
PASSWORD_UPDATE_DATE = "passwordUpdateDate",
|
|
64
67
|
PHONE = "phone",
|
|
68
|
+
PHONE_SUBSCRIPTION_STATUS = "phoneSubscriptionStatus",
|
|
69
|
+
PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "phoneSubscriptionStatusUpdatedAt",
|
|
65
70
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
66
71
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
67
72
|
PRICE_LIST_ID = "priceListId",
|
|
73
|
+
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
68
74
|
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
69
75
|
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
76
|
+
PRICE_LIST_RULES__PRICE_LIST_ID = "priceListRules.priceListId",
|
|
70
77
|
PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "priceListRules.shouldMatchAllFilters",
|
|
71
78
|
PRICE_LIST_RULES__VALUE = "priceListRules.value",
|
|
72
79
|
PRICE_LIST_RULES__VALUE_TYPE = "priceListRules.valueType",
|
|
73
80
|
REGISTRATION_SOURCE = "registrationSource",
|
|
81
|
+
SMS_SUBSCRIPTION_STATUS = "smsSubscriptionStatus",
|
|
82
|
+
SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "smsSubscriptionStatusUpdatedAt",
|
|
74
83
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
75
84
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
76
85
|
TAG_IDS = "tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as S,fetchQuery as _}from"@ikas/fe-api-client";var E,d=function(E,d){return e(void 0,void 0,void 0,(function(){var e,a,i,D;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,_({operationName:"getMyCustomer",config:d,allReturnFields:r,fields:E,query:function(e){return"\n\t\t\t\tquery getMyCustomer {\n\t\t\t\t\tgetMyCustomer ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),a=e.data,i=e.errors,[2,new S(null==a?void 0:a.getMyCustomer,i)];case 2:return D=t.sent(),[2,s(D)];case 3:return[2]}}))}))},r="{accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt }";!function(e){e.ACCOUNT_STATUS="accountStatus",e.ACCOUNT_STATUS_UPDATED_AT="accountStatusUpdatedAt",e.ADDRESSES__ADDRESS_LINE1="addresses.addressLine1",e.ADDRESSES__ADDRESS_LINE2="addresses.addressLine2",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="addresses.attributes.customerAttributeId",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="addresses.attributes.customerAttributeOptionId",e.ADDRESSES__ATTRIBUTES__VALUE="addresses.attributes.value",e.ADDRESSES__CITY__CODE="addresses.city.code",e.ADDRESSES__CITY__ID="addresses.city.id",e.ADDRESSES__CITY__NAME="addresses.city.name",e.ADDRESSES__COMPANY="addresses.company",e.ADDRESSES__COUNTRY__CODE="addresses.country.code",e.ADDRESSES__COUNTRY__ID="addresses.country.id",e.ADDRESSES__COUNTRY__ISO2="addresses.country.iso2",e.ADDRESSES__COUNTRY__ISO3="addresses.country.iso3",e.ADDRESSES__COUNTRY__NAME="addresses.country.name",e.ADDRESSES__CREATED_AT="addresses.createdAt",e.ADDRESSES__DELETED="addresses.deleted",e.ADDRESSES__DISTRICT__CODE="addresses.district.code",e.ADDRESSES__DISTRICT__ID="addresses.district.id",e.ADDRESSES__DISTRICT__NAME="addresses.district.name",e.ADDRESSES__FIRST_NAME="addresses.firstName",e.ADDRESSES__ID="addresses.id",e.ADDRESSES__IDENTITY_NUMBER="addresses.identityNumber",e.ADDRESSES__IS_DEFAULT="addresses.isDefault",e.ADDRESSES__LAST_NAME="addresses.lastName",e.ADDRESSES__PHONE="addresses.phone",e.ADDRESSES__POSTAL_CODE="addresses.postalCode",e.ADDRESSES__REGION__CREATED_AT="addresses.region.createdAt",e.ADDRESSES__REGION__DELETED="addresses.region.deleted",e.ADDRESSES__REGION__ID="addresses.region.id",e.ADDRESSES__REGION__NAME="addresses.region.name",e.ADDRESSES__REGION__UPDATED_AT="addresses.region.updatedAt",e.ADDRESSES__STATE__CODE="addresses.state.code",e.ADDRESSES__STATE__ID="addresses.state.id",e.ADDRESSES__STATE__NAME="addresses.state.name",e.ADDRESSES__TAX_NUMBER="addresses.taxNumber",e.ADDRESSES__TAX_OFFICE="addresses.taxOffice",e.ADDRESSES__TITLE="addresses.title",e.ADDRESSES__UPDATED_AT="addresses.updatedAt",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="attributes.customerAttributeId",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="attributes.customerAttributeOptionId",e.ATTRIBUTES__VALUE="attributes.value",e.BIRTH_DATE="birthDate",e.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEGMENT_IDS="customerSegmentIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",e.GENDER="gender",e.ID="id",e.IS_EMAIL_VERIFIED="isEmailVerified",e.IS_PHONE_VERIFIED="isPhoneVerified",e.LAST_NAME="lastName",e.NOTE="note",e.ORDER_COUNT="orderCount",e.PASSWORD_UPDATE_DATE="passwordUpdateDate",e.PHONE="phone",e.PHONE_SUBSCRIPTION_STATUS="phoneSubscriptionStatus",e.PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="phoneSubscriptionStatusUpdatedAt",e.PHONE_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__DISCOUNT_RATE="priceListRules.discountRate",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",e.PRICE_LIST_RULES__PRICE_LIST_ID="priceListRules.priceListId",e.PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="priceListRules.shouldMatchAllFilters",e.PRICE_LIST_RULES__VALUE="priceListRules.value",e.PRICE_LIST_RULES__VALUE_TYPE="priceListRules.valueType",e.REGISTRATION_SOURCE="registrationSource",e.SMS_SUBSCRIPTION_STATUS="smsSubscriptionStatus",e.SMS_SUBSCRIPTION_STATUS_UPDATED_AT="smsSubscriptionStatusUpdatedAt",e.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(E||(E={}));export{E as ResponseField,d as default};
|
|
@@ -56,6 +56,7 @@ export declare enum ResponseField {
|
|
|
56
56
|
CAMPAIGNS__DATE_RANGE__END = "campaigns.dateRange.end",
|
|
57
57
|
CAMPAIGNS__DATE_RANGE__START = "campaigns.dateRange.start",
|
|
58
58
|
CAMPAIGNS__FIXED_DISCOUNT__AMOUNT = "campaigns.fixedDiscount.amount",
|
|
59
|
+
CAMPAIGNS__ID = "campaigns.id",
|
|
59
60
|
CAMPAIGNS__SALES_CHANNEL_IDS = "campaigns.salesChannelIds",
|
|
60
61
|
CAMPAIGNS__TITLE = "campaigns.title",
|
|
61
62
|
CAMPAIGNS__TYPE = "campaigns.type",
|
|
@@ -166,6 +167,8 @@ export declare enum ResponseField {
|
|
|
166
167
|
VARIANTS__IMAGES__ORDER = "variants.images.order",
|
|
167
168
|
VARIANTS__IS_ACTIVE = "variants.isActive",
|
|
168
169
|
VARIANTS__PRICES__BUY_PRICE = "variants.prices.buyPrice",
|
|
170
|
+
VARIANTS__PRICES__CAMPAIGN_PRICE__CAMPAIGN_ID = "variants.prices.campaignPrice.campaignId",
|
|
171
|
+
VARIANTS__PRICES__CAMPAIGN_PRICE__CAMPAIGN_PRICE = "variants.prices.campaignPrice.campaignPrice",
|
|
169
172
|
VARIANTS__PRICES__CURRENCY = "variants.prices.currency",
|
|
170
173
|
VARIANTS__PRICES__CURRENCY_CODE = "variants.prices.currencyCode",
|
|
171
174
|
VARIANTS__PRICES__CURRENCY_SYMBOL = "variants.prices.currencySymbol",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as _}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as a,APIResponse as T,fetchQuery as e}from"@ikas/fe-api-client";var A,i=function(A,i,s){return t(void 0,void 0,void 0,(function(){var t,r,I,S;return _(this,(function(_){switch(_.label){case 0:return _.trys.push([0,2,,3]),[4,e({operationName:"getSuggestedProducts",config:s,variables:A,allReturnFields:n,fields:i,query:function(t){return"\n\t\t\t\tquery getSuggestedProducts (\n\t\t\t\t\t$brandIds: [String!],\n\t\t\t\t\t$categoryIds: [String!],\n\t\t\t\t\t$dynamicCurrencySettings: SearchDynamicCurrencySettings,\n\t\t\t\t\t$limit: Float,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$method: GetSuggestedProductsMethodEnum,\n\t\t\t\t\t$priceListId: String,\n\t\t\t\t\t$productId: String,\n\t\t\t\t\t$productIds: [String!],\n\t\t\t\t\t$salesChannelId: String,\n\t\t\t\t\t$tagIds: [String!],\n\t\t\t\t) {\n\t\t\t\t\tgetSuggestedProducts (\n\t\t\t\t\t\tbrandIds: $brandIds,\n\t\t\t\t\t\tcategoryIds: $categoryIds,\n\t\t\t\t\t\tdynamicCurrencySettings: $dynamicCurrencySettings,\n\t\t\t\t\t\tlimit: $limit,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\tmethod: $method,\n\t\t\t\t\t\tpriceListId: $priceListId,\n\t\t\t\t\t\tproductId: $productId,\n\t\t\t\t\t\tproductIds: $productIds,\n\t\t\t\t\t\tsalesChannelId: $salesChannelId,\n\t\t\t\t\t\ttagIds: $tagIds,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=_.sent(),r=t.data,I=t.errors,[2,new T(null==r?void 0:r.getSuggestedProducts,I)];case 2:return S=_.sent(),[2,a(S)];case 3:return[2]}}))}))},n="{attributes {imageIds productAttribute {id name tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type } productAttributeOption {id name } value } averageRating baseUnit {baseAmount type unit {id name translations {description locale name } } } brand {id name slug translations {description locale name slug } } campaigns {buyXThenGetY {buyX {amount applyByQuantity } getY {amount discountRatio } maxUsagePerOrder } currencyCodes dateRange {end start } fixedDiscount {amount } salesChannelIds title type } categories {id name path {id name slug translations {description locale name slug } } slug translations {description locale name slug } } createdAt customerReviewSummaries {averageRating reviewCount stars {count star } storefrontId } deleted description groupVariantsByVariantTypeId hiddenSalesChannelIds id metaData {canonicals description disableIndex metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug translations {description locale pageTitle slug } } name productOptionSetId productVariantTypes {order variantType {id name selectionType translations {locale name values {id name } } values {colorCode id name thumbnailImageId } } variantValueIds } reviewCount salesChannelIds shortDescription stars {count star } tags {id name translations {description locale name } } translations {description locale name } type updatedAt variants {attributes {imageIds productAttribute {id name tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type } productAttributeOption {id name } value } barcodeList bundleSettings {maxBundleQuantity minBundleQuantity products {addToBundleBasePrice discountRatio filteredVariantIds id maxQuantity minQuantity order productId quantity } } deleted id images {fileName id isMain isVideo order } isActive prices {buyPrice currency currencyCode currencySymbol discountPrice priceListId sellPrice unitPrice } sellIfOutOfStock sku stocks {stockCount stockLocationId } unit {amount type } variantValues {variantTypeId variantValueId } weight } weight }";!function(t){t.ATTRIBUTES__IMAGE_IDS="attributes.imageIds",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__ID="attributes.productAttribute.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__NAME="attributes.productAttribute.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__ID="attributes.productAttribute.tableTemplate.columns.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__NAME="attributes.productAttribute.tableTemplate.columns.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__ID="attributes.productAttribute.tableTemplate.rows.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__NAME="attributes.productAttribute.tableTemplate.rows.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__DESCRIPTION="attributes.productAttribute.translations.description",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__LOCALE="attributes.productAttribute.translations.locale",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__NAME="attributes.productAttribute.translations.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__ID="attributes.productAttribute.translations.options.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__NAME="attributes.productAttribute.translations.options.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TYPE="attributes.productAttribute.type",t.ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__ID="attributes.productAttributeOption.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__NAME="attributes.productAttributeOption.name",t.ATTRIBUTES__VALUE="attributes.value",t.AVERAGE_RATING="averageRating",t.BASE_UNIT__BASE_AMOUNT="baseUnit.baseAmount",t.BASE_UNIT__TYPE="baseUnit.type",t.BASE_UNIT__UNIT__ID="baseUnit.unit.id",t.BASE_UNIT__UNIT__NAME="baseUnit.unit.name",t.BASE_UNIT__UNIT__TRANSLATIONS__DESCRIPTION="baseUnit.unit.translations.description",t.BASE_UNIT__UNIT__TRANSLATIONS__LOCALE="baseUnit.unit.translations.locale",t.BASE_UNIT__UNIT__TRANSLATIONS__NAME="baseUnit.unit.translations.name",t.BRAND__ID="brand.id",t.BRAND__NAME="brand.name",t.BRAND__SLUG="brand.slug",t.BRAND__TRANSLATIONS__DESCRIPTION="brand.translations.description",t.BRAND__TRANSLATIONS__LOCALE="brand.translations.locale",t.BRAND__TRANSLATIONS__NAME="brand.translations.name",t.BRAND__TRANSLATIONS__SLUG="brand.translations.slug",t.CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__AMOUNT="campaigns.buyXThenGetY.buyX.amount",t.CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__APPLY_BY_QUANTITY="campaigns.buyXThenGetY.buyX.applyByQuantity",t.CAMPAIGNS__BUY_X_THEN_GET_Y__GET_Y__AMOUNT="campaigns.buyXThenGetY.getY.amount",t.CAMPAIGNS__BUY_X_THEN_GET_Y__GET_Y__DISCOUNT_RATIO="campaigns.buyXThenGetY.getY.discountRatio",t.CAMPAIGNS__BUY_X_THEN_GET_Y__MAX_USAGE_PER_ORDER="campaigns.buyXThenGetY.maxUsagePerOrder",t.CAMPAIGNS__CURRENCY_CODES="campaigns.currencyCodes",t.CAMPAIGNS__DATE_RANGE__END="campaigns.dateRange.end",t.CAMPAIGNS__DATE_RANGE__START="campaigns.dateRange.start",t.CAMPAIGNS__FIXED_DISCOUNT__AMOUNT="campaigns.fixedDiscount.amount",t.CAMPAIGNS__SALES_CHANNEL_IDS="campaigns.salesChannelIds",t.CAMPAIGNS__TITLE="campaigns.title",t.CAMPAIGNS__TYPE="campaigns.type",t.CATEGORIES__ID="categories.id",t.CATEGORIES__NAME="categories.name",t.CATEGORIES__PATH__ID="categories.path.id",t.CATEGORIES__PATH__NAME="categories.path.name",t.CATEGORIES__PATH__SLUG="categories.path.slug",t.CATEGORIES__PATH__TRANSLATIONS__DESCRIPTION="categories.path.translations.description",t.CATEGORIES__PATH__TRANSLATIONS__LOCALE="categories.path.translations.locale",t.CATEGORIES__PATH__TRANSLATIONS__NAME="categories.path.translations.name",t.CATEGORIES__PATH__TRANSLATIONS__SLUG="categories.path.translations.slug",t.CATEGORIES__SLUG="categories.slug",t.CATEGORIES__TRANSLATIONS__DESCRIPTION="categories.translations.description",t.CATEGORIES__TRANSLATIONS__LOCALE="categories.translations.locale",t.CATEGORIES__TRANSLATIONS__NAME="categories.translations.name",t.CATEGORIES__TRANSLATIONS__SLUG="categories.translations.slug",t.CREATED_AT="createdAt",t.CUSTOMER_REVIEW_SUMMARIES__AVERAGE_RATING="customerReviewSummaries.averageRating",t.CUSTOMER_REVIEW_SUMMARIES__REVIEW_COUNT="customerReviewSummaries.reviewCount",t.CUSTOMER_REVIEW_SUMMARIES__STARS__COUNT="customerReviewSummaries.stars.count",t.CUSTOMER_REVIEW_SUMMARIES__STARS__STAR="customerReviewSummaries.stars.star",t.CUSTOMER_REVIEW_SUMMARIES__STOREFRONT_ID="customerReviewSummaries.storefrontId",t.DELETED="deleted",t.DESCRIPTION="description",t.GROUP_VARIANTS_BY_VARIANT_TYPE_ID="groupVariantsByVariantTypeId",t.HIDDEN_SALES_CHANNEL_IDS="hiddenSalesChannelIds",t.ID="id",t.META_DATA__CANONICALS="metaData.canonicals",t.META_DATA__DESCRIPTION="metaData.description",t.META_DATA__DISABLE_INDEX="metaData.disableIndex",t.META_DATA__METADATA_OVERRIDES__DESCRIPTION="metaData.metadataOverrides.description",t.META_DATA__METADATA_OVERRIDES__LANGUAGE="metaData.metadataOverrides.language",t.META_DATA__METADATA_OVERRIDES__PAGE_TITLE="metaData.metadataOverrides.pageTitle",t.META_DATA__METADATA_OVERRIDES__STOREFRONT_ID="metaData.metadataOverrides.storefrontId",t.META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID="metaData.metadataOverrides.storefrontRegionId",t.META_DATA__PAGE_TITLE="metaData.pageTitle",t.META_DATA__REDIRECT_TO="metaData.redirectTo",t.META_DATA__SLUG="metaData.slug",t.META_DATA__TRANSLATIONS__DESCRIPTION="metaData.translations.description",t.META_DATA__TRANSLATIONS__LOCALE="metaData.translations.locale",t.META_DATA__TRANSLATIONS__PAGE_TITLE="metaData.translations.pageTitle",t.META_DATA__TRANSLATIONS__SLUG="metaData.translations.slug",t.NAME="name",t.PRODUCT_OPTION_SET_ID="productOptionSetId",t.PRODUCT_VARIANT_TYPES__ORDER="productVariantTypes.order",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__ID="productVariantTypes.variantType.id",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__NAME="productVariantTypes.variantType.name",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__SELECTION_TYPE="productVariantTypes.variantType.selectionType",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__LOCALE="productVariantTypes.variantType.translations.locale",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__NAME="productVariantTypes.variantType.translations.name",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__VALUES__ID="productVariantTypes.variantType.translations.values.id",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__VALUES__NAME="productVariantTypes.variantType.translations.values.name",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__COLOR_CODE="productVariantTypes.variantType.values.colorCode",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__ID="productVariantTypes.variantType.values.id",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__NAME="productVariantTypes.variantType.values.name",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__THUMBNAIL_IMAGE_ID="productVariantTypes.variantType.values.thumbnailImageId",t.PRODUCT_VARIANT_TYPES__VARIANT_VALUE_IDS="productVariantTypes.variantValueIds",t.REVIEW_COUNT="reviewCount",t.SALES_CHANNEL_IDS="salesChannelIds",t.SHORT_DESCRIPTION="shortDescription",t.STARS__COUNT="stars.count",t.STARS__STAR="stars.star",t.TAGS__ID="tags.id",t.TAGS__NAME="tags.name",t.TAGS__TRANSLATIONS__DESCRIPTION="tags.translations.description",t.TAGS__TRANSLATIONS__LOCALE="tags.translations.locale",t.TAGS__TRANSLATIONS__NAME="tags.translations.name",t.TRANSLATIONS__DESCRIPTION="translations.description",t.TRANSLATIONS__LOCALE="translations.locale",t.TRANSLATIONS__NAME="translations.name",t.TYPE="type",t.UPDATED_AT="updatedAt",t.VARIANTS__ATTRIBUTES__IMAGE_IDS="variants.attributes.imageIds",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__ID="variants.attributes.productAttribute.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__NAME="variants.attributes.productAttribute.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__ID="variants.attributes.productAttribute.tableTemplate.columns.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__NAME="variants.attributes.productAttribute.tableTemplate.columns.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__ID="variants.attributes.productAttribute.tableTemplate.rows.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__NAME="variants.attributes.productAttribute.tableTemplate.rows.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__DESCRIPTION="variants.attributes.productAttribute.translations.description",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__LOCALE="variants.attributes.productAttribute.translations.locale",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__NAME="variants.attributes.productAttribute.translations.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__ID="variants.attributes.productAttribute.translations.options.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__NAME="variants.attributes.productAttribute.translations.options.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TYPE="variants.attributes.productAttribute.type",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__ID="variants.attributes.productAttributeOption.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__NAME="variants.attributes.productAttributeOption.name",t.VARIANTS__ATTRIBUTES__VALUE="variants.attributes.value",t.VARIANTS__BARCODE_LIST="variants.barcodeList",t.VARIANTS__BUNDLE_SETTINGS__MAX_BUNDLE_QUANTITY="variants.bundleSettings.maxBundleQuantity",t.VARIANTS__BUNDLE_SETTINGS__MIN_BUNDLE_QUANTITY="variants.bundleSettings.minBundleQuantity",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ADD_TO_BUNDLE_BASE_PRICE="variants.bundleSettings.products.addToBundleBasePrice",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__DISCOUNT_RATIO="variants.bundleSettings.products.discountRatio",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__FILTERED_VARIANT_IDS="variants.bundleSettings.products.filteredVariantIds",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ID="variants.bundleSettings.products.id",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__MAX_QUANTITY="variants.bundleSettings.products.maxQuantity",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__MIN_QUANTITY="variants.bundleSettings.products.minQuantity",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ORDER="variants.bundleSettings.products.order",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__PRODUCT_ID="variants.bundleSettings.products.productId",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__QUANTITY="variants.bundleSettings.products.quantity",t.VARIANTS__DELETED="variants.deleted",t.VARIANTS__ID="variants.id",t.VARIANTS__IMAGES__FILE_NAME="variants.images.fileName",t.VARIANTS__IMAGES__ID="variants.images.id",t.VARIANTS__IMAGES__IS_MAIN="variants.images.isMain",t.VARIANTS__IMAGES__IS_VIDEO="variants.images.isVideo",t.VARIANTS__IMAGES__ORDER="variants.images.order",t.VARIANTS__IS_ACTIVE="variants.isActive",t.VARIANTS__PRICES__BUY_PRICE="variants.prices.buyPrice",t.VARIANTS__PRICES__CURRENCY="variants.prices.currency",t.VARIANTS__PRICES__CURRENCY_CODE="variants.prices.currencyCode",t.VARIANTS__PRICES__CURRENCY_SYMBOL="variants.prices.currencySymbol",t.VARIANTS__PRICES__DISCOUNT_PRICE="variants.prices.discountPrice",t.VARIANTS__PRICES__PRICE_LIST_ID="variants.prices.priceListId",t.VARIANTS__PRICES__SELL_PRICE="variants.prices.sellPrice",t.VARIANTS__PRICES__UNIT_PRICE="variants.prices.unitPrice",t.VARIANTS__SELL_IF_OUT_OF_STOCK="variants.sellIfOutOfStock",t.VARIANTS__SKU="variants.sku",t.VARIANTS__STOCKS__STOCK_COUNT="variants.stocks.stockCount",t.VARIANTS__STOCKS__STOCK_LOCATION_ID="variants.stocks.stockLocationId",t.VARIANTS__UNIT__AMOUNT="variants.unit.amount",t.VARIANTS__UNIT__TYPE="variants.unit.type",t.VARIANTS__VARIANT_VALUES__VARIANT_TYPE_ID="variants.variantValues.variantTypeId",t.VARIANTS__VARIANT_VALUES__VARIANT_VALUE_ID="variants.variantValues.variantValueId",t.VARIANTS__WEIGHT="variants.weight",t.WEIGHT="weight"}(A||(A={}));export{A as ResponseField,i as default};
|
|
1
|
+
import{__awaiter as t,__generator as _}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as a,APIResponse as T,fetchQuery as e}from"@ikas/fe-api-client";var A,i=function(A,i,s){return t(void 0,void 0,void 0,(function(){var t,r,I,S;return _(this,(function(_){switch(_.label){case 0:return _.trys.push([0,2,,3]),[4,e({operationName:"getSuggestedProducts",config:s,variables:A,allReturnFields:n,fields:i,query:function(t){return"\n\t\t\t\tquery getSuggestedProducts (\n\t\t\t\t\t$brandIds: [String!],\n\t\t\t\t\t$categoryIds: [String!],\n\t\t\t\t\t$dynamicCurrencySettings: SearchDynamicCurrencySettings,\n\t\t\t\t\t$limit: Float,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$method: GetSuggestedProductsMethodEnum,\n\t\t\t\t\t$priceListId: String,\n\t\t\t\t\t$productId: String,\n\t\t\t\t\t$productIds: [String!],\n\t\t\t\t\t$salesChannelId: String,\n\t\t\t\t\t$tagIds: [String!],\n\t\t\t\t) {\n\t\t\t\t\tgetSuggestedProducts (\n\t\t\t\t\t\tbrandIds: $brandIds,\n\t\t\t\t\t\tcategoryIds: $categoryIds,\n\t\t\t\t\t\tdynamicCurrencySettings: $dynamicCurrencySettings,\n\t\t\t\t\t\tlimit: $limit,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\tmethod: $method,\n\t\t\t\t\t\tpriceListId: $priceListId,\n\t\t\t\t\t\tproductId: $productId,\n\t\t\t\t\t\tproductIds: $productIds,\n\t\t\t\t\t\tsalesChannelId: $salesChannelId,\n\t\t\t\t\t\ttagIds: $tagIds,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=_.sent(),r=t.data,I=t.errors,[2,new T(null==r?void 0:r.getSuggestedProducts,I)];case 2:return S=_.sent(),[2,a(S)];case 3:return[2]}}))}))},n="{attributes {imageIds productAttribute {id name tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type } productAttributeOption {id name } value } averageRating baseUnit {baseAmount type unit {id name translations {description locale name } } } brand {id name slug translations {description locale name slug } } campaigns {buyXThenGetY {buyX {amount applyByQuantity } getY {amount discountRatio } maxUsagePerOrder } currencyCodes dateRange {end start } fixedDiscount {amount } id salesChannelIds title type } categories {id name path {id name slug translations {description locale name slug } } slug translations {description locale name slug } } createdAt customerReviewSummaries {averageRating reviewCount stars {count star } storefrontId } deleted description groupVariantsByVariantTypeId hiddenSalesChannelIds id metaData {canonicals description disableIndex metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug translations {description locale pageTitle slug } } name productOptionSetId productVariantTypes {order variantType {id name selectionType translations {locale name values {id name } } values {colorCode id name thumbnailImageId } } variantValueIds } reviewCount salesChannelIds shortDescription stars {count star } tags {id name translations {description locale name } } translations {description locale name } type updatedAt variants {attributes {imageIds productAttribute {id name tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type } productAttributeOption {id name } value } barcodeList bundleSettings {maxBundleQuantity minBundleQuantity products {addToBundleBasePrice discountRatio filteredVariantIds id maxQuantity minQuantity order productId quantity } } deleted id images {fileName id isMain isVideo order } isActive prices {buyPrice campaignPrice {campaignId campaignPrice } currency currencyCode currencySymbol discountPrice priceListId sellPrice unitPrice } sellIfOutOfStock sku stocks {stockCount stockLocationId } unit {amount type } variantValues {variantTypeId variantValueId } weight } weight }";!function(t){t.ATTRIBUTES__IMAGE_IDS="attributes.imageIds",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__ID="attributes.productAttribute.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__NAME="attributes.productAttribute.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__ID="attributes.productAttribute.tableTemplate.columns.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__NAME="attributes.productAttribute.tableTemplate.columns.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__ID="attributes.productAttribute.tableTemplate.rows.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__NAME="attributes.productAttribute.tableTemplate.rows.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__DESCRIPTION="attributes.productAttribute.translations.description",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__LOCALE="attributes.productAttribute.translations.locale",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__NAME="attributes.productAttribute.translations.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__ID="attributes.productAttribute.translations.options.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__NAME="attributes.productAttribute.translations.options.name",t.ATTRIBUTES__PRODUCT_ATTRIBUTE__TYPE="attributes.productAttribute.type",t.ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__ID="attributes.productAttributeOption.id",t.ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__NAME="attributes.productAttributeOption.name",t.ATTRIBUTES__VALUE="attributes.value",t.AVERAGE_RATING="averageRating",t.BASE_UNIT__BASE_AMOUNT="baseUnit.baseAmount",t.BASE_UNIT__TYPE="baseUnit.type",t.BASE_UNIT__UNIT__ID="baseUnit.unit.id",t.BASE_UNIT__UNIT__NAME="baseUnit.unit.name",t.BASE_UNIT__UNIT__TRANSLATIONS__DESCRIPTION="baseUnit.unit.translations.description",t.BASE_UNIT__UNIT__TRANSLATIONS__LOCALE="baseUnit.unit.translations.locale",t.BASE_UNIT__UNIT__TRANSLATIONS__NAME="baseUnit.unit.translations.name",t.BRAND__ID="brand.id",t.BRAND__NAME="brand.name",t.BRAND__SLUG="brand.slug",t.BRAND__TRANSLATIONS__DESCRIPTION="brand.translations.description",t.BRAND__TRANSLATIONS__LOCALE="brand.translations.locale",t.BRAND__TRANSLATIONS__NAME="brand.translations.name",t.BRAND__TRANSLATIONS__SLUG="brand.translations.slug",t.CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__AMOUNT="campaigns.buyXThenGetY.buyX.amount",t.CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__APPLY_BY_QUANTITY="campaigns.buyXThenGetY.buyX.applyByQuantity",t.CAMPAIGNS__BUY_X_THEN_GET_Y__GET_Y__AMOUNT="campaigns.buyXThenGetY.getY.amount",t.CAMPAIGNS__BUY_X_THEN_GET_Y__GET_Y__DISCOUNT_RATIO="campaigns.buyXThenGetY.getY.discountRatio",t.CAMPAIGNS__BUY_X_THEN_GET_Y__MAX_USAGE_PER_ORDER="campaigns.buyXThenGetY.maxUsagePerOrder",t.CAMPAIGNS__CURRENCY_CODES="campaigns.currencyCodes",t.CAMPAIGNS__DATE_RANGE__END="campaigns.dateRange.end",t.CAMPAIGNS__DATE_RANGE__START="campaigns.dateRange.start",t.CAMPAIGNS__FIXED_DISCOUNT__AMOUNT="campaigns.fixedDiscount.amount",t.CAMPAIGNS__ID="campaigns.id",t.CAMPAIGNS__SALES_CHANNEL_IDS="campaigns.salesChannelIds",t.CAMPAIGNS__TITLE="campaigns.title",t.CAMPAIGNS__TYPE="campaigns.type",t.CATEGORIES__ID="categories.id",t.CATEGORIES__NAME="categories.name",t.CATEGORIES__PATH__ID="categories.path.id",t.CATEGORIES__PATH__NAME="categories.path.name",t.CATEGORIES__PATH__SLUG="categories.path.slug",t.CATEGORIES__PATH__TRANSLATIONS__DESCRIPTION="categories.path.translations.description",t.CATEGORIES__PATH__TRANSLATIONS__LOCALE="categories.path.translations.locale",t.CATEGORIES__PATH__TRANSLATIONS__NAME="categories.path.translations.name",t.CATEGORIES__PATH__TRANSLATIONS__SLUG="categories.path.translations.slug",t.CATEGORIES__SLUG="categories.slug",t.CATEGORIES__TRANSLATIONS__DESCRIPTION="categories.translations.description",t.CATEGORIES__TRANSLATIONS__LOCALE="categories.translations.locale",t.CATEGORIES__TRANSLATIONS__NAME="categories.translations.name",t.CATEGORIES__TRANSLATIONS__SLUG="categories.translations.slug",t.CREATED_AT="createdAt",t.CUSTOMER_REVIEW_SUMMARIES__AVERAGE_RATING="customerReviewSummaries.averageRating",t.CUSTOMER_REVIEW_SUMMARIES__REVIEW_COUNT="customerReviewSummaries.reviewCount",t.CUSTOMER_REVIEW_SUMMARIES__STARS__COUNT="customerReviewSummaries.stars.count",t.CUSTOMER_REVIEW_SUMMARIES__STARS__STAR="customerReviewSummaries.stars.star",t.CUSTOMER_REVIEW_SUMMARIES__STOREFRONT_ID="customerReviewSummaries.storefrontId",t.DELETED="deleted",t.DESCRIPTION="description",t.GROUP_VARIANTS_BY_VARIANT_TYPE_ID="groupVariantsByVariantTypeId",t.HIDDEN_SALES_CHANNEL_IDS="hiddenSalesChannelIds",t.ID="id",t.META_DATA__CANONICALS="metaData.canonicals",t.META_DATA__DESCRIPTION="metaData.description",t.META_DATA__DISABLE_INDEX="metaData.disableIndex",t.META_DATA__METADATA_OVERRIDES__DESCRIPTION="metaData.metadataOverrides.description",t.META_DATA__METADATA_OVERRIDES__LANGUAGE="metaData.metadataOverrides.language",t.META_DATA__METADATA_OVERRIDES__PAGE_TITLE="metaData.metadataOverrides.pageTitle",t.META_DATA__METADATA_OVERRIDES__STOREFRONT_ID="metaData.metadataOverrides.storefrontId",t.META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID="metaData.metadataOverrides.storefrontRegionId",t.META_DATA__PAGE_TITLE="metaData.pageTitle",t.META_DATA__REDIRECT_TO="metaData.redirectTo",t.META_DATA__SLUG="metaData.slug",t.META_DATA__TRANSLATIONS__DESCRIPTION="metaData.translations.description",t.META_DATA__TRANSLATIONS__LOCALE="metaData.translations.locale",t.META_DATA__TRANSLATIONS__PAGE_TITLE="metaData.translations.pageTitle",t.META_DATA__TRANSLATIONS__SLUG="metaData.translations.slug",t.NAME="name",t.PRODUCT_OPTION_SET_ID="productOptionSetId",t.PRODUCT_VARIANT_TYPES__ORDER="productVariantTypes.order",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__ID="productVariantTypes.variantType.id",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__NAME="productVariantTypes.variantType.name",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__SELECTION_TYPE="productVariantTypes.variantType.selectionType",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__LOCALE="productVariantTypes.variantType.translations.locale",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__NAME="productVariantTypes.variantType.translations.name",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__VALUES__ID="productVariantTypes.variantType.translations.values.id",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__TRANSLATIONS__VALUES__NAME="productVariantTypes.variantType.translations.values.name",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__COLOR_CODE="productVariantTypes.variantType.values.colorCode",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__ID="productVariantTypes.variantType.values.id",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__NAME="productVariantTypes.variantType.values.name",t.PRODUCT_VARIANT_TYPES__VARIANT_TYPE__VALUES__THUMBNAIL_IMAGE_ID="productVariantTypes.variantType.values.thumbnailImageId",t.PRODUCT_VARIANT_TYPES__VARIANT_VALUE_IDS="productVariantTypes.variantValueIds",t.REVIEW_COUNT="reviewCount",t.SALES_CHANNEL_IDS="salesChannelIds",t.SHORT_DESCRIPTION="shortDescription",t.STARS__COUNT="stars.count",t.STARS__STAR="stars.star",t.TAGS__ID="tags.id",t.TAGS__NAME="tags.name",t.TAGS__TRANSLATIONS__DESCRIPTION="tags.translations.description",t.TAGS__TRANSLATIONS__LOCALE="tags.translations.locale",t.TAGS__TRANSLATIONS__NAME="tags.translations.name",t.TRANSLATIONS__DESCRIPTION="translations.description",t.TRANSLATIONS__LOCALE="translations.locale",t.TRANSLATIONS__NAME="translations.name",t.TYPE="type",t.UPDATED_AT="updatedAt",t.VARIANTS__ATTRIBUTES__IMAGE_IDS="variants.attributes.imageIds",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__ID="variants.attributes.productAttribute.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__NAME="variants.attributes.productAttribute.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__ID="variants.attributes.productAttribute.tableTemplate.columns.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__COLUMNS__NAME="variants.attributes.productAttribute.tableTemplate.columns.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__ID="variants.attributes.productAttribute.tableTemplate.rows.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TABLE_TEMPLATE__ROWS__NAME="variants.attributes.productAttribute.tableTemplate.rows.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__DESCRIPTION="variants.attributes.productAttribute.translations.description",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__LOCALE="variants.attributes.productAttribute.translations.locale",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__NAME="variants.attributes.productAttribute.translations.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__ID="variants.attributes.productAttribute.translations.options.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TRANSLATIONS__OPTIONS__NAME="variants.attributes.productAttribute.translations.options.name",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE__TYPE="variants.attributes.productAttribute.type",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__ID="variants.attributes.productAttributeOption.id",t.VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION__NAME="variants.attributes.productAttributeOption.name",t.VARIANTS__ATTRIBUTES__VALUE="variants.attributes.value",t.VARIANTS__BARCODE_LIST="variants.barcodeList",t.VARIANTS__BUNDLE_SETTINGS__MAX_BUNDLE_QUANTITY="variants.bundleSettings.maxBundleQuantity",t.VARIANTS__BUNDLE_SETTINGS__MIN_BUNDLE_QUANTITY="variants.bundleSettings.minBundleQuantity",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ADD_TO_BUNDLE_BASE_PRICE="variants.bundleSettings.products.addToBundleBasePrice",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__DISCOUNT_RATIO="variants.bundleSettings.products.discountRatio",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__FILTERED_VARIANT_IDS="variants.bundleSettings.products.filteredVariantIds",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ID="variants.bundleSettings.products.id",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__MAX_QUANTITY="variants.bundleSettings.products.maxQuantity",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__MIN_QUANTITY="variants.bundleSettings.products.minQuantity",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__ORDER="variants.bundleSettings.products.order",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__PRODUCT_ID="variants.bundleSettings.products.productId",t.VARIANTS__BUNDLE_SETTINGS__PRODUCTS__QUANTITY="variants.bundleSettings.products.quantity",t.VARIANTS__DELETED="variants.deleted",t.VARIANTS__ID="variants.id",t.VARIANTS__IMAGES__FILE_NAME="variants.images.fileName",t.VARIANTS__IMAGES__ID="variants.images.id",t.VARIANTS__IMAGES__IS_MAIN="variants.images.isMain",t.VARIANTS__IMAGES__IS_VIDEO="variants.images.isVideo",t.VARIANTS__IMAGES__ORDER="variants.images.order",t.VARIANTS__IS_ACTIVE="variants.isActive",t.VARIANTS__PRICES__BUY_PRICE="variants.prices.buyPrice",t.VARIANTS__PRICES__CAMPAIGN_PRICE__CAMPAIGN_ID="variants.prices.campaignPrice.campaignId",t.VARIANTS__PRICES__CAMPAIGN_PRICE__CAMPAIGN_PRICE="variants.prices.campaignPrice.campaignPrice",t.VARIANTS__PRICES__CURRENCY="variants.prices.currency",t.VARIANTS__PRICES__CURRENCY_CODE="variants.prices.currencyCode",t.VARIANTS__PRICES__CURRENCY_SYMBOL="variants.prices.currencySymbol",t.VARIANTS__PRICES__DISCOUNT_PRICE="variants.prices.discountPrice",t.VARIANTS__PRICES__PRICE_LIST_ID="variants.prices.priceListId",t.VARIANTS__PRICES__SELL_PRICE="variants.prices.sellPrice",t.VARIANTS__PRICES__UNIT_PRICE="variants.prices.unitPrice",t.VARIANTS__SELL_IF_OUT_OF_STOCK="variants.sellIfOutOfStock",t.VARIANTS__SKU="variants.sku",t.VARIANTS__STOCKS__STOCK_COUNT="variants.stocks.stockCount",t.VARIANTS__STOCKS__STOCK_LOCATION_ID="variants.stocks.stockLocationId",t.VARIANTS__UNIT__AMOUNT="variants.unit.amount",t.VARIANTS__UNIT__TYPE="variants.unit.type",t.VARIANTS__VARIANT_VALUES__VARIANT_TYPE_ID="variants.variantValues.variantTypeId",t.VARIANTS__VARIANT_VALUES__VARIANT_VALUE_ID="variants.variantValues.variantValueId",t.VARIANTS__WEIGHT="variants.weight",t.WEIGHT="weight"}(A||(A={}));export{A as ResponseField,i as default};
|
|
@@ -8,6 +8,7 @@ export declare type QueryParams = {
|
|
|
8
8
|
storefrontId?: StringFilterInput | null;
|
|
9
9
|
};
|
|
10
10
|
export declare enum ResponseField {
|
|
11
|
+
CORPORATE_INVOICE_REQUIREMENT = "corporateInvoiceRequirement",
|
|
11
12
|
COUPON_CODE_REQUIREMENT = "couponCodeRequirement",
|
|
12
13
|
CREATED_AT = "createdAt",
|
|
13
14
|
DELETED = "deleted",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as i,APIResponse as n,fetchQuery as o}from"@ikas/fe-api-client";var r,s=function(r,s,
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as i,APIResponse as n,fetchQuery as o}from"@ikas/fe-api-client";var r,s=function(r,s,E){return t(void 0,void 0,void 0,(function(){var t,c,_,u;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o({operationName:"listCheckoutSettings",config:E,variables:r,allReturnFields:d,fields:s,query:function(t){return"\n\t\t\t\tquery listCheckoutSettings (\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$includeDeleted: Boolean,\n\t\t\t\t\t$storefrontId: StringFilterInput,\n\t\t\t\t) {\n\t\t\t\t\tlistCheckoutSettings (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tincludeDeleted: $includeDeleted,\n\t\t\t\t\t\tstorefrontId: $storefrontId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),c=t.data,_=t.errors,[2,new n(null==c?void 0:c.listCheckoutSettings,_)];case 2:return u=e.sent(),[2,i(u)];case 3:return[2]}}))}))},d="{corporateInvoiceRequirement couponCodeRequirement createdAt deleted giftPackagePriceList {currencyCode currencySymbol price priceListId } id identityNumberRequirement isAccountRequired isGiftPackageEnabled isQuickRegistrationEnabled isShowPostalCode isTermsAndConditionsDefaultChecked options {name required } phoneRequirement postalCodeRequirement showCheckoutNote showTermsAndConditionsCheckbox storefrontId updatedAt }";!function(t){t.CORPORATE_INVOICE_REQUIREMENT="corporateInvoiceRequirement",t.COUPON_CODE_REQUIREMENT="couponCodeRequirement",t.CREATED_AT="createdAt",t.DELETED="deleted",t.GIFT_PACKAGE_PRICE_LIST__CURRENCY_CODE="giftPackagePriceList.currencyCode",t.GIFT_PACKAGE_PRICE_LIST__CURRENCY_SYMBOL="giftPackagePriceList.currencySymbol",t.GIFT_PACKAGE_PRICE_LIST__PRICE="giftPackagePriceList.price",t.GIFT_PACKAGE_PRICE_LIST__PRICE_LIST_ID="giftPackagePriceList.priceListId",t.ID="id",t.IDENTITY_NUMBER_REQUIREMENT="identityNumberRequirement",t.IS_ACCOUNT_REQUIRED="isAccountRequired",t.IS_GIFT_PACKAGE_ENABLED="isGiftPackageEnabled",t.IS_QUICK_REGISTRATION_ENABLED="isQuickRegistrationEnabled",t.IS_SHOW_POSTAL_CODE="isShowPostalCode",t.IS_TERMS_AND_CONDITIONS_DEFAULT_CHECKED="isTermsAndConditionsDefaultChecked",t.OPTIONS__NAME="options.name",t.OPTIONS__REQUIRED="options.required",t.PHONE_REQUIREMENT="phoneRequirement",t.POSTAL_CODE_REQUIREMENT="postalCodeRequirement",t.SHOW_CHECKOUT_NOTE="showCheckoutNote",t.SHOW_TERMS_AND_CONDITIONS_CHECKBOX="showTermsAndConditionsCheckbox",t.STOREFRONT_ID="storefrontId",t.UPDATED_AT="updatedAt"}(r||(r={}));export{r as ResponseField,s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as a,APIResponse as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as a,APIResponse as d,fetchQuery as n}from"@ikas/fe-api-client";var r,i=function(r,i,o){return t(void 0,void 0,void 0,(function(){var t,A,_,l;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"listCustomerReviews",config:o,variables:r,allReturnFields:s,fields:i,query:function(t){return"\n\t\t\t\tquery listCustomerReviews (\n\t\t\t\t\t$hasImage: Boolean,\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$includeDeleted: Boolean,\n\t\t\t\t\t$input: ListCustomerReviewInput!,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$pagination: PaginationInput,\n\t\t\t\t\t$productId: String,\n\t\t\t\t\t$productIds: [String!],\n\t\t\t\t) {\n\t\t\t\t\tlistCustomerReviews (\n\t\t\t\t\t\thasImage: $hasImage,\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tincludeDeleted: $includeDeleted,\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\tpagination: $pagination,\n\t\t\t\t\t\tproductId: $productId,\n\t\t\t\t\t\tproductIds: $productIds,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),A=t.data,_=t.errors,[2,new d(null==A?void 0:A.listCustomerReviews,_)];case 2:return l=e.sent(),[2,a(l)];case 3:return[2]}}))}))},s="{count data {comment createdAt customerId deleted email firstName id imageIds lastName locale orderId orderNumber productId reply salesChannelId star status storefrontId title updatedAt } hasNext limit page }";!function(t){t.COUNT="count",t.DATA__COMMENT="data.comment",t.DATA__CREATED_AT="data.createdAt",t.DATA__CUSTOMER_ID="data.customerId",t.DATA__DELETED="data.deleted",t.DATA__EMAIL="data.email",t.DATA__FIRST_NAME="data.firstName",t.DATA__ID="data.id",t.DATA__IMAGE_IDS="data.imageIds",t.DATA__LAST_NAME="data.lastName",t.DATA__LOCALE="data.locale",t.DATA__ORDER_ID="data.orderId",t.DATA__ORDER_NUMBER="data.orderNumber",t.DATA__PRODUCT_ID="data.productId",t.DATA__REPLY="data.reply",t.DATA__SALES_CHANNEL_ID="data.salesChannelId",t.DATA__STAR="data.star",t.DATA__STATUS="data.status",t.DATA__STOREFRONT_ID="data.storefrontId",t.DATA__TITLE="data.title",t.DATA__UPDATED_AT="data.updatedAt",t.HAS_NEXT="hasNext",t.LIMIT="limit",t.PAGE="page"}(r||(r={}));export{r as ResponseField,i as default};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
import { StorefrontPopup } from "../types";
|
|
3
|
+
declare const listStorefrontPopup: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<StorefrontPopup[]> | APIResponse<undefined>>;
|
|
4
|
+
export default listStorefrontPopup;
|
|
5
|
+
export declare type QueryParams = {
|
|
6
|
+
idList: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare enum ResponseField {
|
|
9
|
+
ANALYTICS__CLICK = "analytics.click",
|
|
10
|
+
ANALYTICS__DISPLAY = "analytics.display",
|
|
11
|
+
ANALYTICS__SUBMISSION = "analytics.submission",
|
|
12
|
+
CONTENT_JSON = "contentJson",
|
|
13
|
+
CREATED_AT = "createdAt",
|
|
14
|
+
DATE_FILTER__END_DATE = "dateFilter.endDate",
|
|
15
|
+
DATE_FILTER__START_DATE = "dateFilter.startDate",
|
|
16
|
+
DELETED = "deleted",
|
|
17
|
+
DISPLAY_FILTERS__OPERATOR = "displayFilters.operator",
|
|
18
|
+
DISPLAY_FILTERS__TYPE = "displayFilters.type",
|
|
19
|
+
DISPLAY_FILTERS__VALUE = "displayFilters.value",
|
|
20
|
+
DISPLAY_SETTINGS__FREQUENCY = "displaySettings.frequency",
|
|
21
|
+
DISPLAY_SETTINGS__TRIGGER_TYPE = "displaySettings.triggerType",
|
|
22
|
+
DISPLAY_SETTINGS__TRIGGER_VALUE = "displaySettings.triggerValue",
|
|
23
|
+
ID = "id",
|
|
24
|
+
NAME = "name",
|
|
25
|
+
PAGE_FILTERS__FILTERS__TYPE = "pageFilters.filters.type",
|
|
26
|
+
PAGE_FILTERS__FILTERS__VALUE = "pageFilters.filters.value",
|
|
27
|
+
PAGE_FILTERS__PAGE_TYPE = "pageFilters.pageType",
|
|
28
|
+
STATUS = "status",
|
|
29
|
+
STOREFRONT_ROUTINGS__STOREFRONT_ID = "storefrontRoutings.storefrontId",
|
|
30
|
+
STOREFRONT_ROUTINGS__STOREFRONT_ROUTING_ID = "storefrontRoutings.storefrontRoutingId",
|
|
31
|
+
TYPE = "type",
|
|
32
|
+
UPDATED_AT = "updatedAt",
|
|
33
|
+
VISIBLE_DEVICE = "visibleDevice"
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as i,APIResponse as r,fetchQuery as s}from"@ikas/fe-api-client";var n,a=function(n,a,_){return t(void 0,void 0,void 0,(function(){var t,l,T,E;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,s({operationName:"listStorefrontPopup",config:_,variables:n,allReturnFields:o,fields:a,query:function(t){return"\n\t\t\t\tquery listStorefrontPopup (\n\t\t\t\t\t$idList: [String!]!,\n\t\t\t\t) {\n\t\t\t\t\tlistStorefrontPopup (\n\t\t\t\t\t\tidList: $idList,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),l=t.data,T=t.errors,[2,new r(null==l?void 0:l.listStorefrontPopup,T)];case 2:return E=e.sent(),[2,i(E)];case 3:return[2]}}))}))},o="{analytics {click display submission } contentJson createdAt dateFilter {endDate startDate } deleted displayFilters {operator type value } displaySettings {frequency triggerType triggerValue } id name pageFilters {filters {type value } pageType } status storefrontRoutings {storefrontId storefrontRoutingId } type updatedAt visibleDevice }";!function(t){t.ANALYTICS__CLICK="analytics.click",t.ANALYTICS__DISPLAY="analytics.display",t.ANALYTICS__SUBMISSION="analytics.submission",t.CONTENT_JSON="contentJson",t.CREATED_AT="createdAt",t.DATE_FILTER__END_DATE="dateFilter.endDate",t.DATE_FILTER__START_DATE="dateFilter.startDate",t.DELETED="deleted",t.DISPLAY_FILTERS__OPERATOR="displayFilters.operator",t.DISPLAY_FILTERS__TYPE="displayFilters.type",t.DISPLAY_FILTERS__VALUE="displayFilters.value",t.DISPLAY_SETTINGS__FREQUENCY="displaySettings.frequency",t.DISPLAY_SETTINGS__TRIGGER_TYPE="displaySettings.triggerType",t.DISPLAY_SETTINGS__TRIGGER_VALUE="displaySettings.triggerValue",t.ID="id",t.NAME="name",t.PAGE_FILTERS__FILTERS__TYPE="pageFilters.filters.type",t.PAGE_FILTERS__FILTERS__VALUE="pageFilters.filters.value",t.PAGE_FILTERS__PAGE_TYPE="pageFilters.pageType",t.STATUS="status",t.STOREFRONT_ROUTINGS__STOREFRONT_ID="storefrontRoutings.storefrontId",t.STOREFRONT_ROUTINGS__STOREFRONT_ROUTING_ID="storefrontRoutings.storefrontRoutingId",t.TYPE="type",t.UPDATED_AT="updatedAt",t.VISIBLE_DEVICE="visibleDevice"}(n||(n={}));export{n as ResponseField,a as default};
|
|
@@ -45,6 +45,7 @@ export declare enum ResponseField {
|
|
|
45
45
|
RESULTS__BRAND__TRANSLATIONS__LOCALE = "results.brand.translations.locale",
|
|
46
46
|
RESULTS__BRAND__TRANSLATIONS__NAME = "results.brand.translations.name",
|
|
47
47
|
RESULTS__BRAND__TRANSLATIONS__SLUG = "results.brand.translations.slug",
|
|
48
|
+
RESULTS__CAMPAIGNS__APPLICABLE_PRICE = "results.campaigns.applicablePrice",
|
|
48
49
|
RESULTS__CAMPAIGN_OFFERS__ID = "results.campaignOffers.id",
|
|
49
50
|
RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__AMOUNT = "results.campaigns.buyXThenGetY.buyX.amount",
|
|
50
51
|
RESULTS__CAMPAIGNS__BUY_X_THEN_GET_Y__BUY_X__APPLY_BY_QUANTITY = "results.campaigns.buyXThenGetY.buyX.applyByQuantity",
|
|
@@ -57,6 +58,15 @@ export declare enum ResponseField {
|
|
|
57
58
|
RESULTS__CAMPAIGNS__FIXED_DISCOUNT__AMOUNT = "results.campaigns.fixedDiscount.amount",
|
|
58
59
|
RESULTS__CAMPAIGNS__ID = "results.campaigns.id",
|
|
59
60
|
RESULTS__CAMPAIGNS__SALES_CHANNEL_IDS = "results.campaigns.salesChannelIds",
|
|
61
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__FILTERS__ID_LIST = "results.campaigns.tieredDiscount.filters.idList",
|
|
62
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__FILTERS__TYPE = "results.campaigns.tieredDiscount.filters.type",
|
|
63
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__IS_APPLY_BY_CART_AMOUNT = "results.campaigns.tieredDiscount.isApplyByCartAmount",
|
|
64
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__RULES__AMOUNT = "results.campaigns.tieredDiscount.rules.amount",
|
|
65
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__RULES__LINE_ITEM_QUANTITY_RANGE__MAX = "results.campaigns.tieredDiscount.rules.lineItemQuantityRange.max",
|
|
66
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__RULES__LINE_ITEM_QUANTITY_RANGE__MIN = "results.campaigns.tieredDiscount.rules.lineItemQuantityRange.min",
|
|
67
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__RULES__PRICE_RANGE__MAX = "results.campaigns.tieredDiscount.rules.priceRange.max",
|
|
68
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__RULES__PRICE_RANGE__MIN = "results.campaigns.tieredDiscount.rules.priceRange.min",
|
|
69
|
+
RESULTS__CAMPAIGNS__TIERED_DISCOUNT__SHOULD_MATCH_ALL_CONDITIONS = "results.campaigns.tieredDiscount.shouldMatchAllConditions",
|
|
60
70
|
RESULTS__CAMPAIGNS__TITLE = "results.campaigns.title",
|
|
61
71
|
RESULTS__CAMPAIGNS__TYPE = "results.campaigns.type",
|
|
62
72
|
RESULTS__CATEGORIES__ID = "results.categories.id",
|
|
@@ -104,6 +114,8 @@ export declare enum ResponseField {
|
|
|
104
114
|
RESULTS__PRODUCT_GROUP__GROUP_KEY = "results.productGroup.groupKey",
|
|
105
115
|
RESULTS__PRODUCT_GROUP__ID = "results.productGroup.id",
|
|
106
116
|
RESULTS__PRODUCT_GROUP__NAME = "results.productGroup.name",
|
|
117
|
+
RESULTS__PRODUCT_GROUP__ORDER__ORDER_ATTRIBUTE_ID = "results.productGroup.order.orderAttributeId",
|
|
118
|
+
RESULTS__PRODUCT_GROUP__ORDER__VALUE = "results.productGroup.order.value",
|
|
107
119
|
RESULTS__PRODUCT_GROUP__TRANSLATIONS__LOCALE = "results.productGroup.translations.locale",
|
|
108
120
|
RESULTS__PRODUCT_GROUP__TRANSLATIONS__VALUES__ID = "results.productGroup.translations.values.id",
|
|
109
121
|
RESULTS__PRODUCT_GROUP__TRANSLATIONS__VALUES__NAME = "results.productGroup.translations.values.name",
|