@ikas/storefront-api 4.11.4 → 4.12.0-beta.1
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/CustomerFavoriteProduct.d.ts +2 -0
- package/build/__api/models/CustomerPriceListRule.d.ts +4 -1
- package/build/__api/mutations/customerLogin.d.ts +3 -1
- package/build/__api/mutations/customerLogin.js +1 -1
- package/build/__api/mutations/registerCustomer.d.ts +3 -1
- package/build/__api/mutations/registerCustomer.js +1 -1
- package/build/__api/mutations/saveMyCustomer.d.ts +3 -1
- package/build/__api/mutations/saveMyCustomer.js +1 -1
- package/build/__api/queries/customerSocialLogin.d.ts +3 -1
- package/build/__api/queries/customerSocialLogin.js +1 -1
- package/build/__api/queries/getMyCustomer.d.ts +3 -1
- package/build/__api/queries/getMyCustomer.js +1 -1
- package/build/__api/queries/listFavoriteProducts.d.ts +2 -0
- package/build/__api/queries/listFavoriteProducts.js +1 -1
- package/build/__api/types/index.d.ts +21 -2
- package/build/__api/types/index.js +1 -1
- package/build/api/customer/index.d.ts +6 -10
- package/build/api/customer/index.js +1 -1
- package/build/index.js +1 -1
- package/build/index2.js +1 -1
- package/package.json +5 -5
|
@@ -2,6 +2,8 @@ import { DeepReadonly } from "ts-essentials";
|
|
|
2
2
|
import BaseModelData from "./_base";
|
|
3
3
|
export declare class CustomerFavoriteProductData extends BaseModelData {
|
|
4
4
|
customerId: string;
|
|
5
|
+
price: number | null;
|
|
6
|
+
priceListId: string | null;
|
|
5
7
|
productId: string;
|
|
6
8
|
constructor(data?: Partial<CustomerFavoriteProductData>);
|
|
7
9
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerPriceListRuleValueTypeEnum } from "../types";
|
|
2
3
|
import { CustomerPriceListRuleFilterData } from "./CustomerPriceListRuleFilter";
|
|
3
4
|
export declare class CustomerPriceListRuleData {
|
|
4
|
-
discountRate: number;
|
|
5
5
|
filters: CustomerPriceListRuleFilterData[] | null;
|
|
6
|
+
shouldMatchAllFilters: boolean | null;
|
|
7
|
+
value: number;
|
|
8
|
+
valueType: CustomerPriceListRuleValueTypeEnum;
|
|
6
9
|
constructor(data?: Partial<CustomerPriceListRuleData>);
|
|
7
10
|
}
|
|
8
11
|
export declare class CustomerPriceListRule extends CustomerPriceListRuleData {
|
|
@@ -70,9 +70,11 @@ export declare enum ResponseField {
|
|
|
70
70
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
71
71
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
72
72
|
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
73
|
-
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
74
73
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
75
74
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
75
|
+
CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
|
|
76
|
+
CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
|
|
77
|
+
CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
|
|
76
78
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
77
79
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
78
80
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,d){return e(void 0,void 0,void 0,(function(){var e,o,u,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,E({operationName:"customerLogin",config:d,variables:S,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,u=e.errors,[2,new s(null==o?void 0:o.customerLogin,u)];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 } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {filters {type valueList } shouldMatchAllFilters value valueType } registrationSource 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__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",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__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_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",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__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__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"}(S||(S={}));export{S as ResponseField,r as default};
|
|
@@ -78,9 +78,11 @@ export declare enum ResponseField {
|
|
|
78
78
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
79
79
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
80
80
|
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
81
|
-
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
82
81
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
83
82
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
83
|
+
CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
|
|
84
|
+
CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
|
|
85
|
+
CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
|
|
84
86
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
85
87
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
86
88
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as r}from"@ikas/fe-api-client";var S
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as r}from"@ikas/fe-api-client";var E,S=function(E,S,d){return t(void 0,void 0,void 0,(function(){var t,T,o,u;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r({operationName:"registerCustomer",config:d,variables:E,allReturnFields:a,fields:S,query:function(t){return"\n\t\t\t\tmutation registerCustomer (\n\t\t\t\t\t$attributes: [CustomerAttributeValueInput!],\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String!,\n\t\t\t\t\t$firstName: String!,\n\t\t\t\t\t$isAcceptMarketing: Boolean,\n\t\t\t\t\t$lastName: String!,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$orderId: String,\n\t\t\t\t\t$password: String!,\n\t\t\t\t\t$phone: String,\n\t\t\t\t\t$preferredLanguage: String,\n\t\t\t\t) {\n\t\t\t\t\tregisterCustomer (\n\t\t\t\t\t\tattributes: $attributes,\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tfirstName: $firstName,\n\t\t\t\t\t\tisAcceptMarketing: $isAcceptMarketing,\n\t\t\t\t\t\tlastName: $lastName,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\torderId: $orderId,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t\tphone: $phone,\n\t\t\t\t\t\tpreferredLanguage: $preferredLanguage,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),T=t.data,o=t.errors,[2,new s(null==T?void 0:T.registerCustomer,o)];case 2:return u=e.sent(),[2,_(u)];case 3:return[2]}}))}))},a="{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 } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {filters {type valueList } shouldMatchAllFilters value valueType } registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(t){t.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",t.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",t.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",t.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",t.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",t.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",t.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",t.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",t.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",t.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",t.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",t.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",t.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",t.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",t.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",t.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",t.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",t.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",t.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",t.CUSTOMER__ADDRESSES__ID="customer.addresses.id",t.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",t.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",t.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",t.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",t.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",t.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",t.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",t.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",t.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",t.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",t.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",t.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",t.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",t.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",t.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",t.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",t.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",t.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",t.CUSTOMER__CREATED_AT="customer.createdAt",t.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",t.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",t.CUSTOMER__DELETED="customer.deleted",t.CUSTOMER__EMAIL="customer.email",t.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",t.CUSTOMER__FIRST_NAME="customer.firstName",t.CUSTOMER__FULL_NAME="customer.fullName",t.CUSTOMER__ID="customer.id",t.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",t.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",t.CUSTOMER__LAST_NAME="customer.lastName",t.CUSTOMER__NOTE="customer.note",t.CUSTOMER__ORDER_COUNT="customer.orderCount",t.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",t.CUSTOMER__PHONE="customer.phone",t.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",t.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",t.CUSTOMER__PRICE_LIST_ID="customer.priceListId",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",t.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",t.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",t.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",t.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",t.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",t.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",t.CUSTOMER__TAG_IDS="customer.tagIds",t.CUSTOMER__UPDATED_AT="customer.updatedAt",t.TOKEN="token",t.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,S as default};
|
|
@@ -68,9 +68,11 @@ export declare enum ResponseField {
|
|
|
68
68
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
69
69
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
70
70
|
PRICE_LIST_ID = "priceListId",
|
|
71
|
-
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
72
71
|
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
73
72
|
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
73
|
+
PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "priceListRules.shouldMatchAllFilters",
|
|
74
|
+
PRICE_LIST_RULES__VALUE = "priceListRules.value",
|
|
75
|
+
PRICE_LIST_RULES__VALUE_TYPE = "priceListRules.valueType",
|
|
74
76
|
REGISTRATION_SOURCE = "registrationSource",
|
|
75
77
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
76
78
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as _,fetchQuery as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as _,fetchQuery as E}from"@ikas/fe-api-client";var d,S=function(d,S,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,E({operationName:"saveMyCustomer",config:a,variables:d,allReturnFields:r,fields:S,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 _(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 } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {filters {type valueList } shouldMatchAllFilters value valueType } registrationSource 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.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",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_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",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.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(d||(d={}));export{d as ResponseField,S as default};
|
|
@@ -68,9 +68,11 @@ export declare enum ResponseField {
|
|
|
68
68
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
69
69
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
70
70
|
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
71
|
-
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
72
71
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
73
72
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
73
|
+
CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
|
|
74
|
+
CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
|
|
75
|
+
CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
|
|
74
76
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
75
77
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
76
78
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,T){return e(void 0,void 0,void 0,(function(){var e,o,u,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,E({operationName:"customerSocialLogin",config:T,variables:S,allReturnFields:d,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,u=e.errors,[2,new s(null==o?void 0:o.customerSocialLogin,u)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},d="{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 } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,T){return e(void 0,void 0,void 0,(function(){var e,o,u,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,E({operationName:"customerSocialLogin",config:T,variables:S,allReturnFields:d,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,u=e.errors,[2,new s(null==o?void 0:o.customerSocialLogin,u)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},d="{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 } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {filters {type valueList } shouldMatchAllFilters value valueType } registrationSource 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__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",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__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_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",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__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__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"}(S||(S={}));export{S as ResponseField,r as default};
|
|
@@ -65,9 +65,11 @@ export declare enum ResponseField {
|
|
|
65
65
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
66
66
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
67
67
|
PRICE_LIST_ID = "priceListId",
|
|
68
|
-
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
69
68
|
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
70
69
|
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
70
|
+
PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "priceListRules.shouldMatchAllFilters",
|
|
71
|
+
PRICE_LIST_RULES__VALUE = "priceListRules.value",
|
|
72
|
+
PRICE_LIST_RULES__VALUE_TYPE = "priceListRules.valueType",
|
|
71
73
|
REGISTRATION_SOURCE = "registrationSource",
|
|
72
74
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
73
75
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as _,fetchQuery as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as _,fetchQuery as E}from"@ikas/fe-api-client";var d,S=function(d,S){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,E({operationName:"getMyCustomer",config:S,allReturnFields:r,fields:d,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 _(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 } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {filters {type valueList } shouldMatchAllFilters value valueType } registrationSource 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.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",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_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",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.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(d||(d={}));export{d as ResponseField,S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as i,fetchQuery as d}from"@ikas/fe-api-client";var o,s=function(o,s){return t(void 0,void 0,void 0,(function(){var t,u,c,a;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d({operationName:"listFavoriteProducts",config:s,allReturnFields:n,fields:o,query:function(t){return"\n\t\t\t\tquery listFavoriteProducts {\n\t\t\t\t\tlistFavoriteProducts ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),u=t.data,c=t.errors,[2,new i(null==u?void 0:u.listFavoriteProducts,c)];case 2:return a=e.sent(),[2,r(a)];case 3:return[2]}}))}))},n="{createdAt customerId deleted id price priceListId productId updatedAt }";!function(t){t.CREATED_AT="createdAt",t.CUSTOMER_ID="customerId",t.DELETED="deleted",t.ID="id",t.PRICE="price",t.PRICE_LIST_ID="priceListId",t.PRODUCT_ID="productId",t.UPDATED_AT="updatedAt"}(o||(o={}));export{o as ResponseField,s as default};
|
|
@@ -166,6 +166,11 @@ export declare enum CustomerPriceListRuleFilterTypeEnum {
|
|
|
166
166
|
PRODUCT_BRAND = "PRODUCT_BRAND",
|
|
167
167
|
PRODUCT_TAG = "PRODUCT_TAG"
|
|
168
168
|
}
|
|
169
|
+
export declare enum CustomerPriceListRuleValueTypeEnum {
|
|
170
|
+
DISCOUNT_AMOUNT = "DISCOUNT_AMOUNT",
|
|
171
|
+
DISCOUNT_RATE = "DISCOUNT_RATE",
|
|
172
|
+
FIXED_PRICE = "FIXED_PRICE"
|
|
173
|
+
}
|
|
169
174
|
export declare enum CustomerRegistrationSourceEnum {
|
|
170
175
|
apple = "apple",
|
|
171
176
|
credentials = "credentials",
|
|
@@ -1132,7 +1137,7 @@ export interface Customer {
|
|
|
1132
1137
|
createdAt: any | null;
|
|
1133
1138
|
customerGroupIds: string[] | null;
|
|
1134
1139
|
customerSequence: number | null;
|
|
1135
|
-
deleted: boolean
|
|
1140
|
+
deleted: boolean;
|
|
1136
1141
|
email: string | null;
|
|
1137
1142
|
emailVerifiedDate: any | null;
|
|
1138
1143
|
firstName: string;
|
|
@@ -1147,6 +1152,8 @@ export interface Customer {
|
|
|
1147
1152
|
phone: string | null;
|
|
1148
1153
|
phoneVerifiedDate: any | null;
|
|
1149
1154
|
preferredLanguage: string | null;
|
|
1155
|
+
priceListId: string | null;
|
|
1156
|
+
priceListRules: CustomerPriceListRule[] | null;
|
|
1150
1157
|
registrationSource: CustomerRegistrationSourceEnum | null;
|
|
1151
1158
|
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
1152
1159
|
subscriptionStatusUpdatedAt: any | null;
|
|
@@ -1254,11 +1261,23 @@ export interface CustomerCheckResponse {
|
|
|
1254
1261
|
export interface CustomerFavoriteProduct {
|
|
1255
1262
|
createdAt: any | null;
|
|
1256
1263
|
customerId: string;
|
|
1257
|
-
deleted: boolean
|
|
1264
|
+
deleted: boolean;
|
|
1258
1265
|
id: string;
|
|
1266
|
+
price: number | null;
|
|
1267
|
+
priceListId: string | null;
|
|
1259
1268
|
productId: string;
|
|
1260
1269
|
updatedAt: any | null;
|
|
1261
1270
|
}
|
|
1271
|
+
export interface CustomerPriceListRule {
|
|
1272
|
+
filters: CustomerPriceListRuleFilter[] | null;
|
|
1273
|
+
shouldMatchAllFilters: boolean | null;
|
|
1274
|
+
value: number;
|
|
1275
|
+
valueType: CustomerPriceListRuleValueTypeEnum;
|
|
1276
|
+
}
|
|
1277
|
+
export interface CustomerPriceListRuleFilter {
|
|
1278
|
+
type: CustomerPriceListRuleFilterTypeEnum;
|
|
1279
|
+
valueList: string[];
|
|
1280
|
+
}
|
|
1262
1281
|
export interface CustomerLoginResponse {
|
|
1263
1282
|
customer: Customer | null;
|
|
1264
1283
|
token: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var E,R,T,A,_,I,C,O,D,N,L,S,U,P,M,F,n,H,G,Y,V,B,o,c,f,t,i,u,W,K,Q,X,J,e,a,g,l,Z,p,b,k,r,d,s,v,x,h,j,m,q,w,y,z,$,EE,RE,TE,AE,_E,IE,CE,OE,DE,NE,LE,SE,UE,PE,ME,FE,nE,HE,GE,YE,VE,BE,oE,cE,fE,tE,iE,uE,WE,KE;!function(E){E.EMAIL="EMAIL",E.SMS="SMS"}(E||(E={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(T||(T={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CART="CART",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW"}(A||(A={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(_||(_={})),function(E){E.DO_NOTHING="DO_NOTHING",E.OPEN_CART="OPEN_CART",E.OPEN_CHECKOUT="OPEN_CHECKOUT"}(I||(I={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(C||(C={})),function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(O||(O={})),function(E){E.CHECKOUT="CHECKOUT",E.POST_CHECKOUT="POST_CHECKOUT"}(D||(D={})),function(E){E.ALL_PRODUCTS="ALL_PRODUCTS",E.CATEGORY="CATEGORY",E.MIN_CART_AMOUNT="MIN_CART_AMOUNT",E.PRODUCT="PRODUCT",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(N||(N={})),function(E){E.CROSS_SELL="CROSS_SELL",E.UPSELL="UPSELL"}(L||(L={})),function(E){E.BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO"}(S||(S={})),function(E){E.ACCEPTED="ACCEPTED",E.REJECTED="REJECTED",E.REMOVED="REMOVED",E.WAITING_FOR_ACTION="WAITING_FOR_ACTION"}(U||(U={})),function(E){E.ADMIN="ADMIN",E.CUSTOMER="CUSTOMER"}(P||(P={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(M||(M={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(F||(F={})),function(E){E.IN="IN",E.NOT_IN="NOT_IN"}(n||(n={})),function(E){E.CAMPAIGN="CAMPAIGN",E.CATEGORY="CATEGORY",E.CREATED_AT="CREATED_AT",E.DISCOUNTED_PRODUCTS="DISCOUNTED_PRODUCTS",E.PRICE_RANGE="PRICE_RANGE",E.PRODUCT_ATTRIBUTE="PRODUCT_ATTRIBUTE",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT_VALUE="VARIANT_VALUE"}(H||(H={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(G||(G={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(Y||(Y={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(V||(V={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(B||(B={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(o||(o={})),function(E){E.DEFAULT="DEFAULT",E.INVISIBLE="INVISIBLE",E.OPEN="OPEN"}(c||(c={})),function(E){E.LEFT="LEFT",E.RIGHT="RIGHT"}(f||(f={})),function(E){E.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",E.DECLINED_ACCOUNT_INVITATION="DECLINED_ACCOUNT_INVITATION",E.DISABLED_ACCOUNT="DISABLED_ACCOUNT",E.INVITED_TO_CREATE_ACCOUNT="INVITED_TO_CREATE_ACCOUNT"}(t||(t={})),function(E){E.INVISIBLE="INVISIBLE",E.READ="READ",E.WRITE="WRITE"}(i||(i={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(u||(u={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.TEXT="TEXT"}(W||(W={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(K||(K={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG"}(Q||(Q={})),function(E){E.apple="apple",E.credentials="credentials",E.facebook="facebook",E.google="google"}(X||(X={})),function(E){E.APPROVED="APPROVED",E.REJECTED="REJECTED",E.WAITING="WAITING"}(J||(J={})),function(E){E.facebook="facebook",E.google="google"}(e||(e={})),function(E){E.PURCHASED_TOGETHER="PURCHASED_TOGETHER",E.SAMPLING="SAMPLING",E.VIEWED_TOGETHER="VIEWED_TOGETHER"}(a||(a={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(g||(g={})),function(E){E.COMPANY="COMPANY",E.INDIVIDUAL="INDIVIDUAL",E.OTHER="OTHER"}(l||(l={})),function(E){E.DAY="DAY",E.HOUR="HOUR",E.MINUTE="MINUTE"}(Z||(Z={})),function(E){E.CHECK_MASTER_PASS_USER="CHECK_MASTER_PASS_USER",E.DELETE_CARD="DELETE_CARD",E.DIRECT_PURCHASE="DIRECT_PURCHASE",E.FORGOT_PASSWORD="FORGOT_PASSWORD",E.LIST_CARDS="LIST_CARDS",E.PURCHASE="PURCHASE",E.REGISTER_CARD="REGISTER_CARD"}(p||(p={})),function(E){E.CORPORATE="CORPORATE",E.INDIVIDUAL="INDIVIDUAL"}(b||(b={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(k||(k={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(r||(r={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(d||(d={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNFULFILLED="UNFULFILLED"}(s||(s={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER"}(v||(v={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_DELIVERED="PARTIALLY_DELIVERED",E.PARTIALLY_FULFILLED="PARTIALLY_FULFILLED",E.PARTIALLY_READY_FOR_SHIPMENT="PARTIALLY_READY_FOR_SHIPMENT",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER",E.UNFULFILLED="UNFULFILLED"}(x||(x={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(h||(h={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.DIGITAL_DELIVERY="DIGITAL_DELIVERY",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(j||(j={})),function(E){E.CANCELLED="CANCELLED",E.CREATED="CREATED",E.DRAFT="DRAFT",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED"}(m||(m={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(q||(q={})),function(E){E.BOOLEAN="BOOLEAN",E.NUMBER="NUMBER",E.PASSWORD="PASSWORD",E.TEXT="TEXT"}(w||(w={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(y||(y={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(z||(z={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BANK_REDIRECT="BANK_REDIRECT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.DIRECT_DEBIT="DIRECT_DEBIT",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.PAY_LATER="PAY_LATER",E.SLICE_IT="SLICE_IT",E.WALLET="WALLET"}($||($={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.HTML="HTML",E.IMAGE="IMAGE",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.PRODUCT="PRODUCT",E.TABLE="TABLE",E.TEXT="TEXT"}(EE||(EE={})),function(E){E.BOX="BOX",E.DATE_RANGE="DATE_RANGE",E.LIST="LIST",E.NUMBER_RANGE="NUMBER_RANGE",E.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",E.SWATCH="SWATCH"}(RE||(RE={})),function(E){E.ALPHABETICAL_ASC="ALPHABETICAL_ASC",E.ALPHABETICAL_DESC="ALPHABETICAL_DESC",E.CUSTOM_SORT="CUSTOM_SORT",E.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",E.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(TE||(TE={})),function(E){E.ATTRIBUTE="ATTRIBUTE",E.AVAILABLE_VARIANT_VALUE="AVAILABLE_VARIANT_VALUE",E.BRAND="BRAND",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.PRICE="PRICE",E.STOCK_STATUS="STOCK_STATUS",E.TAG="TAG",E.VARIANT_TYPE="VARIANT_TYPE"}(AE||(AE={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(_E||(_E={})),function(E){E.CHECKBOX="CHECKBOX",E.CHOICE="CHOICE",E.COLOR_PICKER="COLOR_PICKER",E.DATE_PICKER="DATE_PICKER",E.FILE="FILE",E.IMAGE="IMAGE",E.TEXT="TEXT",E.TEXT_AREA="TEXT_AREA"}(IE||(IE={})),function(E){E.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",E.SHOW_ALL="SHOW_ALL",E.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(CE||(CE={})),function(E){E.CENTILITER="CENTILITER",E.CENTIMETER="CENTIMETER",E.CUBIC_METERS="CUBIC_METERS",E.CUSTOM="CUSTOM",E.GRAM="GRAM",E.KILOGRAM="KILOGRAM",E.LITER="LITER",E.METER="METER",E.MILLIGRAM="MILLIGRAM",E.MILLILITER="MILLILITER",E.MILLIMETER="MILLIMETER",E.SQUARE_METERS="SQUARE_METERS"}(OE||(OE={})),function(E){E.RAFFLE="RAFFLE"}(DE||(DE={})),function(E){E.COMPLETED="COMPLETED",E.IN_PROGRESS="IN_PROGRESS",E.LOSER="LOSER",E.WINNER="WINNER"}(NE||(NE={})),function(E){E.ADS_OTHER="ADS_OTHER",E.AFFILIATE="AFFILIATE",E.BING_ADS="BING_ADS",E.DIRECT="DIRECT",E.DISPLAY="DISPLAY",E.EMAIL="EMAIL",E.FACEBOOK_ADS="FACEBOOK_ADS",E.GOOGLE_ADS="GOOGLE_ADS",E.INSTAGRAM_ADS="INSTAGRAM_ADS",E.ORGANIC_SEARCH="ORGANIC_SEARCH",E.OTHER="OTHER",E.PAID_TRAFFIC="PAID_TRAFFIC",E.REFERRAL="REFERRAL",E.SOCIAL="SOCIAL"}(LE||(LE={})),function(E){E.ASC="ASC",E.DESC="DESC"}(SE||(SE={})),function(E){E.AVERAGE_RATING="AVERAGE_RATING",E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE",E.REVIEW_COUNT="REVIEW_COUNT",E.SALE_COUNT="SALE_COUNT"}(UE||(UE={})),function(E){E.TWO_IN_FOUR_DAYS="TWO_IN_FOUR_DAYS",E.WITHIN_FOUR_HOURS="WITHIN_FOUR_HOURS",E.WITHIN_ONE_HOUR="WITHIN_ONE_HOUR",E.WITHIN_PLUS_FIVE_DAYS="WITHIN_PLUS_FIVE_DAYS",E.WITHIN_TWENTY_FOUR_HOURS="WITHIN_TWENTY_FOUR_HOURS",E.WITHIN_TWO_HOURS="WITHIN_TWO_HOURS"}(PE||(PE={})),function(E){E.PHYSICAL="PHYSICAL",E.VIRTUAL="VIRTUAL"}(ME||(ME={})),function(E){E.ALWAYS="ALWAYS",E.NEVER="NEVER",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(FE||(FE={})),function(E){E.ALWAYS="ALWAYS",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(nE||(nE={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY",E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.CUSTOM="CUSTOM",E.PRODUCT="PRODUCT"}(HE||(HE={})),function(E){E.APPROVED="APPROVED",E.MARKETING_PERMISSION="MARKETING_PERMISSION",E.REQUIRED="REQUIRED",E.SHOW="SHOW"}(GE||(GE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(YE||(YE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(VE||(VE={})),function(E){E.B2B_STOREFRONT="B2B_STOREFRONT",E.STOREFRONT="STOREFRONT"}(BE||(BE={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CONTACT_FORM_MERCHANT="CONTACT_FORM_MERCHANT",E.CUSTOMER_ACCOUNT_INVITATION="CUSTOMER_ACCOUNT_INVITATION",E.CUSTOMER_RESET_PASSWORD="CUSTOMER_RESET_PASSWORD",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW",E.CUSTOMER_REVIEW_REPLY="CUSTOMER_REVIEW_REPLY",E.CUSTOM_MAIL="CUSTOM_MAIL",E.CUSTOM_TRANSACTION_VERIFICATION="CUSTOM_TRANSACTION_VERIFICATION",E.MERCHANT_CUSTOMER_REVIEW="MERCHANT_CUSTOMER_REVIEW",E.MERCHANT_LICENCE_E_INVOICE="MERCHANT_LICENCE_E_INVOICE",E.MERCHANT_RESET_PASSWORD="MERCHANT_RESET_PASSWORD",E.MERCHANT_WELCOME="MERCHANT_WELCOME",E.MONEY_TRANSFER_REMINDER="MONEY_TRANSFER_REMINDER",E.ORDER_CANCELLED="ORDER_CANCELLED",E.ORDER_CLICK_AND_COLLECT="ORDER_CLICK_AND_COLLECT",E.ORDER_CREATED="ORDER_CREATED",E.ORDER_CREATED_MERCHANT="ORDER_CREATED_MERCHANT",E.ORDER_CREATED_MONEY_TRANSFER="ORDER_CREATED_MONEY_TRANSFER",E.ORDER_E_INVOICE="ORDER_E_INVOICE",E.ORDER_FULFILLED="ORDER_FULFILLED",E.ORDER_PACKAGE_DELIVERED="ORDER_PACKAGE_DELIVERED",E.ORDER_READY_FOR_PICK_UP="ORDER_READY_FOR_PICK_UP",E.ORDER_READY_FOR_SHIPMENT="ORDER_READY_FOR_SHIPMENT",E.ORDER_REFUNDED="ORDER_REFUNDED",E.ORDER_REFUND_REQUEST="ORDER_REFUND_REQUEST",E.ORDER_REFUND_REQUEST_APPROVE="ORDER_REFUND_REQUEST_APPROVE",E.ORDER_REFUND_REQUEST_MERCHANT="ORDER_REFUND_REQUEST_MERCHANT",E.ORDER_REFUND_REQUEST_REJECT="ORDER_REFUND_REQUEST_REJECT",E.PARTNER_MERCHANT_OPEN="PARTNER_MERCHANT_OPEN",E.PARTNER_STAFF_INVITE="PARTNER_STAFF_INVITE",E.PRODUCT_BACK_IN_STOCK_REMINDER="PRODUCT_BACK_IN_STOCK_REMINDER",E.PRODUCT_OUT_OF_STOCK_REMINDER="PRODUCT_OUT_OF_STOCK_REMINDER",E.RAFFLE_PARTICIPANT_CREATED="RAFFLE_PARTICIPANT_CREATED",E.RAFFLE_PARTICIPANT_WINNER="RAFFLE_PARTICIPANT_WINNER",E.STAFF_INVITE="STAFF_INVITE",E.UPDATE_TRACKING_INFO="UPDATE_TRACKING_INFO",E.WELCOME="WELCOME",E.WRONG_EXCEL_IMPORT="WRONG_EXCEL_IMPORT"}(oE||(oE={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(cE||(cE={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(fE||(fE={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(tE||(tE={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(iE||(iE={})),function(E){E.CAMERA="CAMERA",E.CAR="CAR",E.CONSOLE="CONSOLE",E.DESKTOP="DESKTOP",E.FEATURE_PHONE="FEATURE_PHONE",E.OTHER="OTHER",E.PERIPHERAL="PERIPHERAL",E.PHABLET="PHABLET",E.PORTABLE_MEDIA_PLAYER="PORTABLE_MEDIA_PLAYER",E.SMARTPHONE="SMARTPHONE",E.SMART_DISPLAY="SMART_DISPLAY",E.SMART_SPEAKER="SMART_SPEAKER",E.TABLET="TABLET",E.TELEVISION="TELEVISION",E.WEARABLE="WEARABLE"}(uE||(uE={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(WE||(WE={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(KE||(KE={}));export{E as AbandonedCartSettingsNotificationTypeEnum,R as BlogMetadataTargetTypeEnum,T as CampaignApplicablePriceEnum,A as CampaignCreatedForEnum,_ as CampaignFilterTypeEnum,I as CampaignOfferFollowUpActionTypeEnum,C as CampaignOfferProductApplicablePriceEnum,O as CampaignOfferProductShowCriteriaEnum,D as CampaignOfferTargetPageTypeEnum,N as CampaignOfferTriggerFilterTypeEnum,L as CampaignOfferTypeEnum,S as CampaignTypeEnum,U as CartCampaignOfferStatus,P as CartCreatedByEnum,M as CartStatusEnum,F as CartV2StatusEnum,n as CategoryConditionMethodEnum,H as CategoryConditionTypeEnum,G as CategoryProductsOrderTypeEnum,Y as CheckoutRecoveryEmailStatusEnum,V as CheckoutRecoveryStatusEnum,B as CheckoutRequirementEnum,o as CheckoutStatusEnum,c as CouponCodeRequirementEnum,f as CurrencyFormatSymbolPosition,t as CustomerAccountStatusEnum,i as CustomerAttributePermissionEnum,u as CustomerAttributeRegisterPageRequirementEnum,W as CustomerAttributeTypeEnum,K as CustomerEmailSubscriptionStatusesEnum,Q as CustomerPriceListRuleFilterTypeEnum,X as CustomerRegistrationSourceEnum,J as CustomerReviewStatusEnum,e as CustomerSocialLoginProviderEnum,a as GetSuggestedProductsMethodEnum,g as HTMLMetaDataTargetTypeEnum,l as InvoiceTypeEnum,Z as LocalDeliverySettingsDeliveryTimeType,p as MasterPassOperationTypeEnum,b as MerchantSettingsAddressTypeEnum,k as OrderAdjustmentEnum,r as OrderAmountTypeEnum,d as OrderCancelledReasonEnum,s as OrderLineItemStatusEnum,v as OrderPackageFulfillStatusEnum,x as OrderPackageStatusEnum,h as OrderPaymentStatusEnum,j as OrderShippingMethodEnum,m as OrderStatusEnum,q as PaymentGatewayAdditionalPriceTypeEnum,w as PaymentGatewaySettingsTypeEnum,y as PaymentGatewayTransactionFeeTypeEnum,z as PaymentGatewayTypeEnum,$ as PaymentMethodTypeEnum,EE as ProductAttributeTypeEnum,RE as ProductFilterDisplayTypeEnum,TE as ProductFilterSortTypeEnum,AE as ProductFilterTypeEnum,_E as ProductOptionSelectTypeEnum,IE as ProductOptionTypeEnum,CE as ProductSearchShowStockOptionEnum,OE as ProductUnitTypeEnum,DE as RaffleMetadataTargetTypeEnum,NE as RaffleParticipantStatusEnum,LE as SFAnalyticsTrafficSourceEnum,SE as SortByDirectionEnum,UE as SortByTypeEnum,PE as StockLocationDeliveryTimeEnum,ME as StockLocationTypeEnum,FE as StorefrontB2BShowPricesEnum,nE as StorefrontB2BShowProductsEnum,HE as StorefrontPageTypesEnum,GE as StorefrontRegisterSettingsCheckboxType,YE as StorefrontStatusTypes,VE as StorefrontThemeStatus,BE as StorefrontTypeEnum,oE as TemplateEnum,cE as TransactionCardAssociationEnum,fE as TransactionCardTypeEnum,tE as TransactionStatusEnum,iE as TransactionTypeEnum,uE as UserAgentDeviceType,WE as VariantSelectionTypeEnum,KE as VerificationTypeEnum};
|
|
1
|
+
var E,R,T,A,_,I,C,O,D,N,L,S,U,P,M,F,n,H,G,Y,V,B,o,c,f,t,i,u,W,K,Q,X,J,e,a,g,l,Z,p,b,k,r,d,s,v,x,h,j,m,q,w,y,z,$,EE,RE,TE,AE,_E,IE,CE,OE,DE,NE,LE,SE,UE,PE,ME,FE,nE,HE,GE,YE,VE,BE,oE,cE,fE,tE,iE,uE,WE,KE,QE;!function(E){E.EMAIL="EMAIL",E.SMS="SMS"}(E||(E={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(T||(T={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CART="CART",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW"}(A||(A={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(_||(_={})),function(E){E.DO_NOTHING="DO_NOTHING",E.OPEN_CART="OPEN_CART",E.OPEN_CHECKOUT="OPEN_CHECKOUT"}(I||(I={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(C||(C={})),function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(O||(O={})),function(E){E.CHECKOUT="CHECKOUT",E.POST_CHECKOUT="POST_CHECKOUT"}(D||(D={})),function(E){E.ALL_PRODUCTS="ALL_PRODUCTS",E.CATEGORY="CATEGORY",E.MIN_CART_AMOUNT="MIN_CART_AMOUNT",E.PRODUCT="PRODUCT",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(N||(N={})),function(E){E.CROSS_SELL="CROSS_SELL",E.UPSELL="UPSELL"}(L||(L={})),function(E){E.BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO"}(S||(S={})),function(E){E.ACCEPTED="ACCEPTED",E.REJECTED="REJECTED",E.REMOVED="REMOVED",E.WAITING_FOR_ACTION="WAITING_FOR_ACTION"}(U||(U={})),function(E){E.ADMIN="ADMIN",E.CUSTOMER="CUSTOMER"}(P||(P={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(M||(M={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(F||(F={})),function(E){E.IN="IN",E.NOT_IN="NOT_IN"}(n||(n={})),function(E){E.CAMPAIGN="CAMPAIGN",E.CATEGORY="CATEGORY",E.CREATED_AT="CREATED_AT",E.DISCOUNTED_PRODUCTS="DISCOUNTED_PRODUCTS",E.PRICE_RANGE="PRICE_RANGE",E.PRODUCT_ATTRIBUTE="PRODUCT_ATTRIBUTE",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT_VALUE="VARIANT_VALUE"}(H||(H={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(G||(G={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(Y||(Y={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(V||(V={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(B||(B={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(o||(o={})),function(E){E.DEFAULT="DEFAULT",E.INVISIBLE="INVISIBLE",E.OPEN="OPEN"}(c||(c={})),function(E){E.LEFT="LEFT",E.RIGHT="RIGHT"}(f||(f={})),function(E){E.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",E.DECLINED_ACCOUNT_INVITATION="DECLINED_ACCOUNT_INVITATION",E.DISABLED_ACCOUNT="DISABLED_ACCOUNT",E.INVITED_TO_CREATE_ACCOUNT="INVITED_TO_CREATE_ACCOUNT"}(t||(t={})),function(E){E.INVISIBLE="INVISIBLE",E.READ="READ",E.WRITE="WRITE"}(i||(i={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(u||(u={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.TEXT="TEXT"}(W||(W={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(K||(K={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG"}(Q||(Q={})),function(E){E.DISCOUNT_AMOUNT="DISCOUNT_AMOUNT",E.DISCOUNT_RATE="DISCOUNT_RATE",E.FIXED_PRICE="FIXED_PRICE"}(X||(X={})),function(E){E.apple="apple",E.credentials="credentials",E.facebook="facebook",E.google="google"}(J||(J={})),function(E){E.APPROVED="APPROVED",E.REJECTED="REJECTED",E.WAITING="WAITING"}(e||(e={})),function(E){E.facebook="facebook",E.google="google"}(a||(a={})),function(E){E.PURCHASED_TOGETHER="PURCHASED_TOGETHER",E.SAMPLING="SAMPLING",E.VIEWED_TOGETHER="VIEWED_TOGETHER"}(g||(g={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(l||(l={})),function(E){E.COMPANY="COMPANY",E.INDIVIDUAL="INDIVIDUAL",E.OTHER="OTHER"}(Z||(Z={})),function(E){E.DAY="DAY",E.HOUR="HOUR",E.MINUTE="MINUTE"}(p||(p={})),function(E){E.CHECK_MASTER_PASS_USER="CHECK_MASTER_PASS_USER",E.DELETE_CARD="DELETE_CARD",E.DIRECT_PURCHASE="DIRECT_PURCHASE",E.FORGOT_PASSWORD="FORGOT_PASSWORD",E.LIST_CARDS="LIST_CARDS",E.PURCHASE="PURCHASE",E.REGISTER_CARD="REGISTER_CARD"}(b||(b={})),function(E){E.CORPORATE="CORPORATE",E.INDIVIDUAL="INDIVIDUAL"}(k||(k={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(r||(r={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(d||(d={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(s||(s={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNFULFILLED="UNFULFILLED"}(v||(v={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER"}(x||(x={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_DELIVERED="PARTIALLY_DELIVERED",E.PARTIALLY_FULFILLED="PARTIALLY_FULFILLED",E.PARTIALLY_READY_FOR_SHIPMENT="PARTIALLY_READY_FOR_SHIPMENT",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER",E.UNFULFILLED="UNFULFILLED"}(h||(h={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(j||(j={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.DIGITAL_DELIVERY="DIGITAL_DELIVERY",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(m||(m={})),function(E){E.CANCELLED="CANCELLED",E.CREATED="CREATED",E.DRAFT="DRAFT",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED"}(q||(q={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(w||(w={})),function(E){E.BOOLEAN="BOOLEAN",E.NUMBER="NUMBER",E.PASSWORD="PASSWORD",E.TEXT="TEXT"}(y||(y={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(z||(z={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}($||($={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BANK_REDIRECT="BANK_REDIRECT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.DIRECT_DEBIT="DIRECT_DEBIT",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.PAY_LATER="PAY_LATER",E.SLICE_IT="SLICE_IT",E.WALLET="WALLET"}(EE||(EE={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.HTML="HTML",E.IMAGE="IMAGE",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.PRODUCT="PRODUCT",E.TABLE="TABLE",E.TEXT="TEXT"}(RE||(RE={})),function(E){E.BOX="BOX",E.DATE_RANGE="DATE_RANGE",E.LIST="LIST",E.NUMBER_RANGE="NUMBER_RANGE",E.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",E.SWATCH="SWATCH"}(TE||(TE={})),function(E){E.ALPHABETICAL_ASC="ALPHABETICAL_ASC",E.ALPHABETICAL_DESC="ALPHABETICAL_DESC",E.CUSTOM_SORT="CUSTOM_SORT",E.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",E.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(AE||(AE={})),function(E){E.ATTRIBUTE="ATTRIBUTE",E.AVAILABLE_VARIANT_VALUE="AVAILABLE_VARIANT_VALUE",E.BRAND="BRAND",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.PRICE="PRICE",E.STOCK_STATUS="STOCK_STATUS",E.TAG="TAG",E.VARIANT_TYPE="VARIANT_TYPE"}(_E||(_E={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(IE||(IE={})),function(E){E.CHECKBOX="CHECKBOX",E.CHOICE="CHOICE",E.COLOR_PICKER="COLOR_PICKER",E.DATE_PICKER="DATE_PICKER",E.FILE="FILE",E.IMAGE="IMAGE",E.TEXT="TEXT",E.TEXT_AREA="TEXT_AREA"}(CE||(CE={})),function(E){E.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",E.SHOW_ALL="SHOW_ALL",E.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(OE||(OE={})),function(E){E.CENTILITER="CENTILITER",E.CENTIMETER="CENTIMETER",E.CUBIC_METERS="CUBIC_METERS",E.CUSTOM="CUSTOM",E.GRAM="GRAM",E.KILOGRAM="KILOGRAM",E.LITER="LITER",E.METER="METER",E.MILLIGRAM="MILLIGRAM",E.MILLILITER="MILLILITER",E.MILLIMETER="MILLIMETER",E.SQUARE_METERS="SQUARE_METERS"}(DE||(DE={})),function(E){E.RAFFLE="RAFFLE"}(NE||(NE={})),function(E){E.COMPLETED="COMPLETED",E.IN_PROGRESS="IN_PROGRESS",E.LOSER="LOSER",E.WINNER="WINNER"}(LE||(LE={})),function(E){E.ADS_OTHER="ADS_OTHER",E.AFFILIATE="AFFILIATE",E.BING_ADS="BING_ADS",E.DIRECT="DIRECT",E.DISPLAY="DISPLAY",E.EMAIL="EMAIL",E.FACEBOOK_ADS="FACEBOOK_ADS",E.GOOGLE_ADS="GOOGLE_ADS",E.INSTAGRAM_ADS="INSTAGRAM_ADS",E.ORGANIC_SEARCH="ORGANIC_SEARCH",E.OTHER="OTHER",E.PAID_TRAFFIC="PAID_TRAFFIC",E.REFERRAL="REFERRAL",E.SOCIAL="SOCIAL"}(SE||(SE={})),function(E){E.ASC="ASC",E.DESC="DESC"}(UE||(UE={})),function(E){E.AVERAGE_RATING="AVERAGE_RATING",E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE",E.REVIEW_COUNT="REVIEW_COUNT",E.SALE_COUNT="SALE_COUNT"}(PE||(PE={})),function(E){E.TWO_IN_FOUR_DAYS="TWO_IN_FOUR_DAYS",E.WITHIN_FOUR_HOURS="WITHIN_FOUR_HOURS",E.WITHIN_ONE_HOUR="WITHIN_ONE_HOUR",E.WITHIN_PLUS_FIVE_DAYS="WITHIN_PLUS_FIVE_DAYS",E.WITHIN_TWENTY_FOUR_HOURS="WITHIN_TWENTY_FOUR_HOURS",E.WITHIN_TWO_HOURS="WITHIN_TWO_HOURS"}(ME||(ME={})),function(E){E.PHYSICAL="PHYSICAL",E.VIRTUAL="VIRTUAL"}(FE||(FE={})),function(E){E.ALWAYS="ALWAYS",E.NEVER="NEVER",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(nE||(nE={})),function(E){E.ALWAYS="ALWAYS",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(HE||(HE={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY",E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.CUSTOM="CUSTOM",E.PRODUCT="PRODUCT"}(GE||(GE={})),function(E){E.APPROVED="APPROVED",E.MARKETING_PERMISSION="MARKETING_PERMISSION",E.REQUIRED="REQUIRED",E.SHOW="SHOW"}(YE||(YE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(VE||(VE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(BE||(BE={})),function(E){E.B2B_STOREFRONT="B2B_STOREFRONT",E.STOREFRONT="STOREFRONT"}(oE||(oE={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CONTACT_FORM_MERCHANT="CONTACT_FORM_MERCHANT",E.CUSTOMER_ACCOUNT_INVITATION="CUSTOMER_ACCOUNT_INVITATION",E.CUSTOMER_RESET_PASSWORD="CUSTOMER_RESET_PASSWORD",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW",E.CUSTOMER_REVIEW_REPLY="CUSTOMER_REVIEW_REPLY",E.CUSTOM_MAIL="CUSTOM_MAIL",E.CUSTOM_TRANSACTION_VERIFICATION="CUSTOM_TRANSACTION_VERIFICATION",E.MERCHANT_CUSTOMER_REVIEW="MERCHANT_CUSTOMER_REVIEW",E.MERCHANT_LICENCE_E_INVOICE="MERCHANT_LICENCE_E_INVOICE",E.MERCHANT_RESET_PASSWORD="MERCHANT_RESET_PASSWORD",E.MERCHANT_WELCOME="MERCHANT_WELCOME",E.MONEY_TRANSFER_REMINDER="MONEY_TRANSFER_REMINDER",E.ORDER_CANCELLED="ORDER_CANCELLED",E.ORDER_CLICK_AND_COLLECT="ORDER_CLICK_AND_COLLECT",E.ORDER_CREATED="ORDER_CREATED",E.ORDER_CREATED_MERCHANT="ORDER_CREATED_MERCHANT",E.ORDER_CREATED_MONEY_TRANSFER="ORDER_CREATED_MONEY_TRANSFER",E.ORDER_E_INVOICE="ORDER_E_INVOICE",E.ORDER_FULFILLED="ORDER_FULFILLED",E.ORDER_PACKAGE_DELIVERED="ORDER_PACKAGE_DELIVERED",E.ORDER_READY_FOR_PICK_UP="ORDER_READY_FOR_PICK_UP",E.ORDER_READY_FOR_SHIPMENT="ORDER_READY_FOR_SHIPMENT",E.ORDER_REFUNDED="ORDER_REFUNDED",E.ORDER_REFUND_REQUEST="ORDER_REFUND_REQUEST",E.ORDER_REFUND_REQUEST_APPROVE="ORDER_REFUND_REQUEST_APPROVE",E.ORDER_REFUND_REQUEST_MERCHANT="ORDER_REFUND_REQUEST_MERCHANT",E.ORDER_REFUND_REQUEST_REJECT="ORDER_REFUND_REQUEST_REJECT",E.PARTNER_MERCHANT_OPEN="PARTNER_MERCHANT_OPEN",E.PARTNER_STAFF_INVITE="PARTNER_STAFF_INVITE",E.PRODUCT_BACK_IN_STOCK_REMINDER="PRODUCT_BACK_IN_STOCK_REMINDER",E.PRODUCT_OUT_OF_STOCK_REMINDER="PRODUCT_OUT_OF_STOCK_REMINDER",E.RAFFLE_PARTICIPANT_CREATED="RAFFLE_PARTICIPANT_CREATED",E.RAFFLE_PARTICIPANT_WINNER="RAFFLE_PARTICIPANT_WINNER",E.STAFF_INVITE="STAFF_INVITE",E.UPDATE_TRACKING_INFO="UPDATE_TRACKING_INFO",E.WELCOME="WELCOME",E.WRONG_EXCEL_IMPORT="WRONG_EXCEL_IMPORT"}(cE||(cE={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(fE||(fE={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(tE||(tE={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(iE||(iE={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(uE||(uE={})),function(E){E.CAMERA="CAMERA",E.CAR="CAR",E.CONSOLE="CONSOLE",E.DESKTOP="DESKTOP",E.FEATURE_PHONE="FEATURE_PHONE",E.OTHER="OTHER",E.PERIPHERAL="PERIPHERAL",E.PHABLET="PHABLET",E.PORTABLE_MEDIA_PLAYER="PORTABLE_MEDIA_PLAYER",E.SMARTPHONE="SMARTPHONE",E.SMART_DISPLAY="SMART_DISPLAY",E.SMART_SPEAKER="SMART_SPEAKER",E.TABLET="TABLET",E.TELEVISION="TELEVISION",E.WEARABLE="WEARABLE"}(WE||(WE={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(KE||(KE={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(QE||(QE={}));export{E as AbandonedCartSettingsNotificationTypeEnum,R as BlogMetadataTargetTypeEnum,T as CampaignApplicablePriceEnum,A as CampaignCreatedForEnum,_ as CampaignFilterTypeEnum,I as CampaignOfferFollowUpActionTypeEnum,C as CampaignOfferProductApplicablePriceEnum,O as CampaignOfferProductShowCriteriaEnum,D as CampaignOfferTargetPageTypeEnum,N as CampaignOfferTriggerFilterTypeEnum,L as CampaignOfferTypeEnum,S as CampaignTypeEnum,U as CartCampaignOfferStatus,P as CartCreatedByEnum,M as CartStatusEnum,F as CartV2StatusEnum,n as CategoryConditionMethodEnum,H as CategoryConditionTypeEnum,G as CategoryProductsOrderTypeEnum,Y as CheckoutRecoveryEmailStatusEnum,V as CheckoutRecoveryStatusEnum,B as CheckoutRequirementEnum,o as CheckoutStatusEnum,c as CouponCodeRequirementEnum,f as CurrencyFormatSymbolPosition,t as CustomerAccountStatusEnum,i as CustomerAttributePermissionEnum,u as CustomerAttributeRegisterPageRequirementEnum,W as CustomerAttributeTypeEnum,K as CustomerEmailSubscriptionStatusesEnum,Q as CustomerPriceListRuleFilterTypeEnum,X as CustomerPriceListRuleValueTypeEnum,J as CustomerRegistrationSourceEnum,e as CustomerReviewStatusEnum,a as CustomerSocialLoginProviderEnum,g as GetSuggestedProductsMethodEnum,l as HTMLMetaDataTargetTypeEnum,Z as InvoiceTypeEnum,p as LocalDeliverySettingsDeliveryTimeType,b as MasterPassOperationTypeEnum,k as MerchantSettingsAddressTypeEnum,r as OrderAdjustmentEnum,d as OrderAmountTypeEnum,s as OrderCancelledReasonEnum,v as OrderLineItemStatusEnum,x as OrderPackageFulfillStatusEnum,h as OrderPackageStatusEnum,j as OrderPaymentStatusEnum,m as OrderShippingMethodEnum,q as OrderStatusEnum,w as PaymentGatewayAdditionalPriceTypeEnum,y as PaymentGatewaySettingsTypeEnum,z as PaymentGatewayTransactionFeeTypeEnum,$ as PaymentGatewayTypeEnum,EE as PaymentMethodTypeEnum,RE as ProductAttributeTypeEnum,TE as ProductFilterDisplayTypeEnum,AE as ProductFilterSortTypeEnum,_E as ProductFilterTypeEnum,IE as ProductOptionSelectTypeEnum,CE as ProductOptionTypeEnum,OE as ProductSearchShowStockOptionEnum,DE as ProductUnitTypeEnum,NE as RaffleMetadataTargetTypeEnum,LE as RaffleParticipantStatusEnum,SE as SFAnalyticsTrafficSourceEnum,UE as SortByDirectionEnum,PE as SortByTypeEnum,ME as StockLocationDeliveryTimeEnum,FE as StockLocationTypeEnum,nE as StorefrontB2BShowPricesEnum,HE as StorefrontB2BShowProductsEnum,GE as StorefrontPageTypesEnum,YE as StorefrontRegisterSettingsCheckboxType,VE as StorefrontStatusTypes,BE as StorefrontThemeStatus,oE as StorefrontTypeEnum,cE as TemplateEnum,fE as TransactionCardAssociationEnum,tE as TransactionCardTypeEnum,iE as TransactionStatusEnum,uE as TransactionTypeEnum,WE as UserAgentDeviceType,KE as VariantSelectionTypeEnum,QE as VerificationTypeEnum};
|
|
@@ -30,14 +30,6 @@ export type { CustomerLoginQueryParams, CustomerSocialLoginQueryParams, Register
|
|
|
30
30
|
export declare enum IkasRegisterError {
|
|
31
31
|
EMAIL_IS_NOT_VERIFIED = "EMAIL_IS_NOT_VERIFIED",
|
|
32
32
|
CUSTOMER_EMAIL_ALREADY_EXISTS = "CUSTOMER_EMAIL_ALREADY_EXISTS",
|
|
33
|
-
UNKOWN = "UNKOWN",
|
|
34
|
-
B2B_CUSTOMER_ACCOUNT_DISABLED = "B2B_CUSTOMER_ACCOUNT_DISABLED"
|
|
35
|
-
}
|
|
36
|
-
export declare enum IkasLoginError {
|
|
37
|
-
CUSTOMER_ACCOUNT_DISABLED = "CUSTOMER_ACCOUNT_DISABLED",
|
|
38
|
-
EMAIL_IS_NOT_VERIFIED = "EMAIL_IS_NOT_VERIFIED",
|
|
39
|
-
CUSTOMER_NOT_FOUND = "CUSTOMER_NOT_FOUND",
|
|
40
|
-
B2B_CUSTOMER_ACCOUNT_DISABLED = "B2B_CUSTOMER_ACCOUNT_DISABLED",
|
|
41
33
|
UNKOWN = "UNKOWN"
|
|
42
34
|
}
|
|
43
35
|
export declare function login(params: CustomerLoginQueryParams): Promise<APIResponse<{
|
|
@@ -68,7 +60,7 @@ export declare function getCustomer(): Promise<APIResponse<{
|
|
|
68
60
|
createdAt: any;
|
|
69
61
|
customerGroupIds: string[] | null;
|
|
70
62
|
customerSequence: number | null;
|
|
71
|
-
deleted: boolean
|
|
63
|
+
deleted: boolean;
|
|
72
64
|
email: string | null;
|
|
73
65
|
emailVerifiedDate: any;
|
|
74
66
|
firstName: string;
|
|
@@ -83,6 +75,8 @@ export declare function getCustomer(): Promise<APIResponse<{
|
|
|
83
75
|
phone: string | null;
|
|
84
76
|
phoneVerifiedDate: any;
|
|
85
77
|
preferredLanguage: string | null;
|
|
78
|
+
priceListId: string | null;
|
|
79
|
+
priceListRules: import("../../__api/types").CustomerPriceListRule[] | null;
|
|
86
80
|
registrationSource: import("../../__api/types").CustomerRegistrationSourceEnum | null;
|
|
87
81
|
subscriptionStatus: import("../../__api/types").CustomerEmailSubscriptionStatusesEnum | null;
|
|
88
82
|
subscriptionStatusUpdatedAt: any;
|
|
@@ -98,7 +92,7 @@ export declare function saveCustomer(params: SaveMyCustomerQueryParams): Promise
|
|
|
98
92
|
createdAt: any;
|
|
99
93
|
customerGroupIds: string[] | null;
|
|
100
94
|
customerSequence: number | null;
|
|
101
|
-
deleted: boolean
|
|
95
|
+
deleted: boolean;
|
|
102
96
|
email: string | null;
|
|
103
97
|
emailVerifiedDate: any;
|
|
104
98
|
firstName: string;
|
|
@@ -113,6 +107,8 @@ export declare function saveCustomer(params: SaveMyCustomerQueryParams): Promise
|
|
|
113
107
|
phone: string | null;
|
|
114
108
|
phoneVerifiedDate: any;
|
|
115
109
|
preferredLanguage: string | null;
|
|
110
|
+
priceListId: string | null;
|
|
111
|
+
priceListRules: import("../../__api/types").CustomerPriceListRule[] | null;
|
|
116
112
|
registrationSource: import("../../__api/types").CustomerRegistrationSourceEnum | null;
|
|
117
113
|
subscriptionStatus: import("../../__api/types").CustomerEmailSubscriptionStatusesEnum | null;
|
|
118
114
|
subscriptionStatusUpdatedAt: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{initIkasCustomerReview as i,initIkasCustomerAttribute as s}from"@ikas/storefront-models";import{IkasStorefrontConfig as u}from"@ikas/storefront-config";var a,o;function c(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/customerLogin.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function d(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/customerSocialLogin.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function _(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/registerCustomer.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function l(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/customerLogin.js")];case 1:return t=r.sent().ResponseField,e=["CUSTOMER__ADDRESSES__REGION__CREATED_AT","CUSTOMER__ADDRESSES__REGION__DELETED","CUSTOMER__ADDRESSES__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function f(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRefreshToken.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function v(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerForgotPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function E(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRecoverPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function h(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCustomerEmail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function p(){return t(this,void 0,void 0,(function(){var t,i,s,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().default,s=t,[4,P()];case 2:return[4,s.apply(void 0,[r.sent()])];case 3:return i=r.sent(),u=i.data||null,[2,new n(i.data?e(e({},i.data),{customer:u}):null,i.graphQLErrors)]}}))}))}function m(i){return t(this,void 0,void 0,(function(){var t,s,u,a,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveMyCustomer.js")];case 1:return t=r.sent().default,u=t,a=[i],[4,P()];case 2:return[4,u.apply(void 0,a.concat([r.sent()]))];case 3:return s=r.sent(),o=s.data||null,[2,new n(s.data?e(e({},s.data),{customer:o}):null,s.graphQLErrors)]}}))}))}function S(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCustomerOrders.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,T()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),null==(a=i.data)||a.forEach((function(t){var r;(null===(r=t.orderLineItems)||void 0===r?void 0:r.length)&&(t.orderLineItems=t.orderLineItems.filter((function(t){return!t.deleted})))})),[2,new n(a,i.graphQLErrors)]}}))}))}function D(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getOrderByEmail.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,T()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),a=i.data,[2,new n(a,i.graphQLErrors)]}}))}))}function R(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderTransactions.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function O(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createOrderRefundRequest.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,T()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),a=i.data,[2,new n(a,i.graphQLErrors)]}}))}))}function T(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCustomerOrders.js")];case 1:return t=r.sent().ResponseField,e=["BILLING_ADDRESS__REGION__CREATED_AT","BILLING_ADDRESS__REGION__DELETED","BILLING_ADDRESS__REGION__UPDATED_AT","SHIPPING_ADDRESS__REGION__CREATED_AT","SHIPPING_ADDRESS__REGION__DELETED","SHIPPING_ADDRESS__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function I(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/subscribeToMarketingNotifications.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function A(e){var i;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getLastViewedProducts.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.products,t.graphQLErrors)]}}))}))}function w(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveLastViewedProducts.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function C(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderRefundSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.map((function(t){return e({},t)})))||null,[2,new n(u,t.graphQLErrors)]}}))}))}function L(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/sendContactFormToMerchant.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function N(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listFavoriteProducts.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),e=t.data||null,[2,new n(e,t.graphQLErrors)]}}))}))}function b(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function U(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/isFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)({productId:e.productId})];case 2:return[2,t.sent()]}}))}))}function j(e){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createCustomerReview.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),(s=t.data)&&i(s),[2,new n(s,t.graphQLErrors)]}}))}))}function g(s){var u;return t(this,void 0,void 0,(function(){var t,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviews.js")];case 1:return[4,(0,r.sent().default)(s)];case 2:return t=r.sent(),(a=(null===(u=t.data)||void 0===u?void 0:u.data)||[]).forEach(i),[2,new n(t.data?e(e({},t.data),{data:a}):null,t.graphQLErrors)]}}))}))}function M(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviewSummary.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.data)||[],[2,new n(e(e({},t.data),{data:u}),t.graphQLErrors)]}}))}))}function G(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerAttribute.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),(e=t.data||[]).sort((function(t,r){return t.order&&r.order?t.order-r.order:-1})).forEach((function(t){return s(t,u.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}function P(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().ResponseField,e=["NOTE","TAG_IDS","CUSTOMER_GROUP_IDS","PASSWORD_UPDATE_DATE","ORDER_COUNT","REGISTRATION_SOURCE","CUSTOMER_SEQUENCE","ADDRESSES__REGION__CREATED_AT","ADDRESSES__REGION__DELETED","ADDRESSES__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function B(i){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),s=t.data||[],[2,new n(e(e({},t.data),{data:s}),t.graphQLErrors)]}}))}))}function Q(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/activateCustomer.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function q(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/resendCustomerActivationMail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}!function(t){t.EMAIL_IS_NOT_VERIFIED="EMAIL_IS_NOT_VERIFIED",t.CUSTOMER_EMAIL_ALREADY_EXISTS="CUSTOMER_EMAIL_ALREADY_EXISTS",t.UNKOWN="UNKOWN",t.B2B_CUSTOMER_ACCOUNT_DISABLED="B2B_CUSTOMER_ACCOUNT_DISABLED"}(a||(a={})),function(t){t.CUSTOMER_ACCOUNT_DISABLED="CUSTOMER_ACCOUNT_DISABLED",t.EMAIL_IS_NOT_VERIFIED="EMAIL_IS_NOT_VERIFIED",t.CUSTOMER_NOT_FOUND="CUSTOMER_NOT_FOUND",t.B2B_CUSTOMER_ACCOUNT_DISABLED="B2B_CUSTOMER_ACCOUNT_DISABLED",t.UNKOWN="UNKOWN"}(o||(o={}));export{o as IkasLoginError,a as IkasRegisterError,Q as activateCustomer,h as checkEmail,j as createCustomerReview,O as createOrderRefundRequest,v as forgotPassword,p as getCustomer,A as getLastViewedProducts,D as getOrderByEmail,S as getOrders,U as isFavoriteProduct,G as listCustomerAttribute,M as listCustomerReviewSummary,g as listCustomerReviews,B as listCustomerSettings,N as listFavoriteProducts,C as listOrderRefundSettings,R as listOrderTransactions,c as login,E as recoverPassword,f as refreshToken,_ as register,q as resendCustomerActivationMail,m as saveCustomer,b as saveFavoriteProduct,w as saveLastViewedProducts,L as sendContactFormToMerchant,d as socialLogin,I as subscribeToMarketingNotifications};
|
|
1
|
+
import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{initIkasCustomerReview as i,initIkasCustomerAttribute as s}from"@ikas/storefront-models";import{IkasStorefrontConfig as u}from"@ikas/storefront-config";var a;function o(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/customerLogin.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function c(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/customerSocialLogin.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function d(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/registerCustomer.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function l(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/customerLogin.js")];case 1:return t=r.sent().ResponseField,e=["CUSTOMER__ADDRESSES__REGION__CREATED_AT","CUSTOMER__ADDRESSES__REGION__DELETED","CUSTOMER__ADDRESSES__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function f(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRefreshToken.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function _(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerForgotPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function v(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRecoverPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function h(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCustomerEmail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function p(){return t(this,void 0,void 0,(function(){var t,i,s,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().default,s=t,[4,Q()];case 2:return[4,s.apply(void 0,[r.sent()])];case 3:return i=r.sent(),u=i.data||null,[2,new n(i.data?e(e({},i.data),{customer:u}):null,i.graphQLErrors)]}}))}))}function E(i){return t(this,void 0,void 0,(function(){var t,s,u,a,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveMyCustomer.js")];case 1:return t=r.sent().default,u=t,a=[i],[4,Q()];case 2:return[4,u.apply(void 0,a.concat([r.sent()]))];case 3:return s=r.sent(),o=s.data||null,[2,new n(s.data?e(e({},s.data),{customer:o}):null,s.graphQLErrors)]}}))}))}function m(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCustomerOrders.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,D()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),null==(a=i.data)||a.forEach((function(t){var r;(null===(r=t.orderLineItems)||void 0===r?void 0:r.length)&&(t.orderLineItems=t.orderLineItems.filter((function(t){return!t.deleted})))})),[2,new n(a,i.graphQLErrors)]}}))}))}function R(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getOrderByEmail.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,D()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),a=i.data,[2,new n(a,i.graphQLErrors)]}}))}))}function S(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderTransactions.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function w(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createOrderRefundRequest.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,D()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),a=i.data,[2,new n(a,i.graphQLErrors)]}}))}))}function D(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCustomerOrders.js")];case 1:return t=r.sent().ResponseField,e=["BILLING_ADDRESS__REGION__CREATED_AT","BILLING_ADDRESS__REGION__DELETED","BILLING_ADDRESS__REGION__UPDATED_AT","SHIPPING_ADDRESS__REGION__CREATED_AT","SHIPPING_ADDRESS__REGION__DELETED","SHIPPING_ADDRESS__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function I(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/subscribeToMarketingNotifications.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function A(e){var i;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getLastViewedProducts.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.products,t.graphQLErrors)]}}))}))}function L(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveLastViewedProducts.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function T(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderRefundSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.map((function(t){return e({},t)})))||null,[2,new n(u,t.graphQLErrors)]}}))}))}function b(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/sendContactFormToMerchant.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function O(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listFavoriteProducts.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),e=t.data||null,[2,new n(e,t.graphQLErrors)]}}))}))}function j(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function g(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/isFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)({productId:e.productId})];case 2:return[2,t.sent()]}}))}))}function C(e){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createCustomerReview.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),(s=t.data)&&i(s),[2,new n(s,t.graphQLErrors)]}}))}))}function N(s){var u;return t(this,void 0,void 0,(function(){var t,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviews.js")];case 1:return[4,(0,r.sent().default)(s)];case 2:return t=r.sent(),(a=(null===(u=t.data)||void 0===u?void 0:u.data)||[]).forEach(i),[2,new n(t.data?e(e({},t.data),{data:a}):null,t.graphQLErrors)]}}))}))}function G(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviewSummary.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.data)||[],[2,new n(e(e({},t.data),{data:u}),t.graphQLErrors)]}}))}))}function P(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerAttribute.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),(e=t.data||[]).sort((function(t,r){return t.order&&r.order?t.order-r.order:-1})).forEach((function(t){return s(t,u.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}function Q(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().ResponseField,e=["NOTE","TAG_IDS","CUSTOMER_GROUP_IDS","PASSWORD_UPDATE_DATE","ORDER_COUNT","REGISTRATION_SOURCE","CUSTOMER_SEQUENCE","ADDRESSES__REGION__CREATED_AT","ADDRESSES__REGION__DELETED","ADDRESSES__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function U(i){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),s=t.data||[],[2,new n(e(e({},t.data),{data:s}),t.graphQLErrors)]}}))}))}function q(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/activateCustomer.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function M(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/resendCustomerActivationMail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}!function(t){t.EMAIL_IS_NOT_VERIFIED="EMAIL_IS_NOT_VERIFIED",t.CUSTOMER_EMAIL_ALREADY_EXISTS="CUSTOMER_EMAIL_ALREADY_EXISTS",t.UNKOWN="UNKOWN"}(a||(a={}));export{a as IkasRegisterError,q as activateCustomer,h as checkEmail,C as createCustomerReview,w as createOrderRefundRequest,_ as forgotPassword,p as getCustomer,A as getLastViewedProducts,R as getOrderByEmail,m as getOrders,g as isFavoriteProduct,P as listCustomerAttribute,G as listCustomerReviewSummary,N as listCustomerReviews,U as listCustomerSettings,O as listFavoriteProducts,T as listOrderRefundSettings,S as listOrderTransactions,o as login,v as recoverPassword,f as refreshToken,d as register,M as resendCustomerActivationMail,E as saveCustomer,j as saveFavoriteProduct,L as saveLastViewedProducts,b as sendContactFormToMerchant,c as socialLogin,I as subscribeToMarketingNotifications};
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenClientToken,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{
|
|
1
|
+
export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenClientToken,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications}from"./api/customer/index.js";export{getDigitalProductFileDownloadUrl,getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getAvailableShippingZones,getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,getSuggestedProducts,getVariantStockLocations,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";
|
package/build/index2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Config as e,APIErrorCode as t}from"@ikas/fe-api-client";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";import{IkasStorefrontConfig as r}from"@ikas/storefront-config";import"@ikas/storefront-models";export{
|
|
1
|
+
import{Config as e,APIErrorCode as t}from"@ikas/fe-api-client";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";import{IkasStorefrontConfig as r}from"@ikas/storefront-config";import"@ikas/storefront-models";export{IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications}from"./api/customer/index.js";import"axios";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum}from"./__api/types/index.js";function o(){e.URL=r.getApiUrl()||"",e.HEADERS={"x-api-key":r.getApiKey()||"","x-sfid":r.getStorefrontId()||"","x-sfrid":r.getStorefrontRoutingId()||"","x-sid":r.getSessionId()||"","x-vid":r.getVisitorId()||""},e.TOKEN=r.getCustomerToken()||"",r.getLoginRequiredCallback()&&(e.ON_ERROR={errorCodes:[{errorCode:t.LOGIN_REQUIRED,callback:r.getLoginRequiredCallback()}]})}r.addObserver({id:"ikas-storefront-api",callback:o});export{o as setAPIClientConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0-beta.1",
|
|
4
4
|
"author": "ikas",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "API functions that returns models from the ikas-storefront-models package.",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
20
|
-
"@ikas/storefront-config": "^4.
|
|
21
|
-
"@ikas/storefront-models": "^4.
|
|
20
|
+
"@ikas/storefront-config": "^4.12.0-beta.1",
|
|
21
|
+
"@ikas/storefront-models": "^4.12.0-beta.1",
|
|
22
22
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
23
23
|
"rollup-plugin-rename-node-modules": "^1.2.0",
|
|
24
24
|
"prettier": "^2.2.1",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@ikas/fe-api-client": "^1.0.19"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@ikas/storefront-config": "^4.
|
|
38
|
-
"@ikas/storefront-models": "^4.
|
|
37
|
+
"@ikas/storefront-config": "^4.12.0-beta.1",
|
|
38
|
+
"@ikas/storefront-models": "^4.12.0-beta.1",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|