@ikas/storefront-api 4.15.0-beta.78 → 4.15.0-beta.79
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/Customer.d.ts +8 -1
- package/build/__api/models/CustomerRegisterSubscriptionInput.d.ts +11 -0
- package/build/__api/models/SaveCustomerFormDataInput.d.ts +19 -0
- package/build/__api/models/SaveMyCustomerInput.d.ts +5 -1
- package/build/__api/models/SaveMyCustomerInput.js +1 -1
- package/build/__api/mutations/customerLogin.d.ts +9 -0
- package/build/__api/mutations/customerLogin.js +1 -1
- package/build/__api/mutations/saveCustomerFormData.d.ts +7 -0
- package/build/__api/mutations/saveCustomerFormData.js +1 -0
- package/build/__api/mutations/saveMyCustomer.d.ts +9 -0
- package/build/__api/mutations/saveMyCustomer.js +1 -1
- package/build/__api/queries/customerSocialLogin.d.ts +9 -0
- package/build/__api/queries/customerSocialLogin.js +1 -1
- package/build/__api/queries/getMyCustomer.d.ts +9 -0
- package/build/__api/queries/getMyCustomer.js +1 -1
- package/build/__api/types/index.d.ts +32 -0
- package/build/__api/types/index.js +1 -1
- package/build/api/customer/index.d.ts +17 -1
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
2
|
import BaseModelData from "./_base";
|
|
3
|
-
import { CustomerAccountStatusEnum,
|
|
3
|
+
import { CustomerAccountStatusEnum, CustomerGenderTypeEnum, CustomerEmailSubscriptionStatusesEnum, CustomerRegistrationSourceEnum } from "../types";
|
|
4
4
|
import { CustomerAddressData } from "./CustomerAddress";
|
|
5
5
|
import { CustomerAttributeValueData } from "./CustomerAttributeValue";
|
|
6
6
|
import { CustomerPriceListRuleData } from "./CustomerPriceListRule";
|
|
@@ -9,12 +9,15 @@ export declare class CustomerData extends BaseModelData {
|
|
|
9
9
|
accountStatusUpdatedAt: any | null;
|
|
10
10
|
addresses: CustomerAddressData[] | null;
|
|
11
11
|
attributes: CustomerAttributeValueData[] | null;
|
|
12
|
+
birthDate: any | null;
|
|
12
13
|
customerGroupIds: string[] | null;
|
|
14
|
+
customerSegmentIds: string[] | null;
|
|
13
15
|
customerSequence: number | null;
|
|
14
16
|
email: string | null;
|
|
15
17
|
emailVerifiedDate: any | null;
|
|
16
18
|
firstName: string;
|
|
17
19
|
fullName: string | null;
|
|
20
|
+
gender: CustomerGenderTypeEnum | null;
|
|
18
21
|
isEmailVerified: boolean | null;
|
|
19
22
|
isPhoneVerified: boolean | null;
|
|
20
23
|
lastName: string | null;
|
|
@@ -22,11 +25,15 @@ export declare class CustomerData extends BaseModelData {
|
|
|
22
25
|
orderCount: number | null;
|
|
23
26
|
passwordUpdateDate: any | null;
|
|
24
27
|
phone: string | null;
|
|
28
|
+
phoneSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
29
|
+
phoneSubscriptionStatusUpdatedAt: any | null;
|
|
25
30
|
phoneVerifiedDate: any | null;
|
|
26
31
|
preferredLanguage: string | null;
|
|
27
32
|
priceListId: string | null;
|
|
28
33
|
priceListRules: CustomerPriceListRuleData[] | null;
|
|
29
34
|
registrationSource: CustomerRegistrationSourceEnum | null;
|
|
35
|
+
smsSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
36
|
+
smsSubscriptionStatusUpdatedAt: any | null;
|
|
30
37
|
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
31
38
|
subscriptionStatusUpdatedAt: any | null;
|
|
32
39
|
tagIds: string[] | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class CustomerRegisterSubscriptionInputData {
|
|
3
|
+
email: boolean;
|
|
4
|
+
phone: boolean;
|
|
5
|
+
sms: boolean;
|
|
6
|
+
constructor(data?: Partial<CustomerRegisterSubscriptionInputData>);
|
|
7
|
+
}
|
|
8
|
+
export declare class CustomerRegisterSubscriptionInput extends CustomerRegisterSubscriptionInputData {
|
|
9
|
+
}
|
|
10
|
+
export declare type PartialCustomerRegisterSubscriptionInput = Partial<CustomerRegisterSubscriptionInput>;
|
|
11
|
+
export declare type ReadOnlyCustomerRegisterSubscriptionInput = DeepReadonly<CustomerRegisterSubscriptionInput>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerGenderTypeEnum } from "../types";
|
|
3
|
+
import { CustomerRegisterSubscriptionInputData } from "./CustomerRegisterSubscriptionInput";
|
|
4
|
+
export declare class SaveCustomerFormDataInputData {
|
|
5
|
+
birthDate: any | null;
|
|
6
|
+
captchaToken: string | null;
|
|
7
|
+
email: string;
|
|
8
|
+
firstName: string | null;
|
|
9
|
+
gender: CustomerGenderTypeEnum | null;
|
|
10
|
+
lastName: string | null;
|
|
11
|
+
phone: string | null;
|
|
12
|
+
storefrontPopupId: string | null;
|
|
13
|
+
subscriptions: CustomerRegisterSubscriptionInputData | null;
|
|
14
|
+
constructor(data?: Partial<SaveCustomerFormDataInputData>);
|
|
15
|
+
}
|
|
16
|
+
export declare class SaveCustomerFormDataInput extends SaveCustomerFormDataInputData {
|
|
17
|
+
}
|
|
18
|
+
export declare type PartialSaveCustomerFormDataInput = Partial<SaveCustomerFormDataInput>;
|
|
19
|
+
export declare type ReadOnlySaveCustomerFormDataInput = DeepReadonly<SaveCustomerFormDataInput>;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
|
-
import { CustomerEmailSubscriptionStatusesEnum } from "../types";
|
|
2
|
+
import { CustomerGenderTypeEnum, CustomerEmailSubscriptionStatusesEnum } from "../types";
|
|
3
3
|
import { SaveMyCustomerAddressInputData } from "./SaveMyCustomerAddressInput";
|
|
4
4
|
import { CustomerAttributeValueInputData } from "./CustomerAttributeValueInput";
|
|
5
5
|
export declare class SaveMyCustomerInputData {
|
|
6
6
|
addresses: SaveMyCustomerAddressInputData[] | null;
|
|
7
7
|
attributes: CustomerAttributeValueInputData[] | null;
|
|
8
|
+
birthDate: any | null;
|
|
8
9
|
firstName: string;
|
|
10
|
+
gender: CustomerGenderTypeEnum | null;
|
|
9
11
|
lastName: string;
|
|
10
12
|
phone: string | null;
|
|
13
|
+
phoneSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
14
|
+
smsSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
11
15
|
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
12
16
|
constructor(data?: Partial<SaveMyCustomerInputData>);
|
|
13
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as t}from'./../../ext/tslib/tslib.es6.js';import{SaveMyCustomerAddressInputData as s}from"./SaveMyCustomerAddressInput.js";import{CustomerAttributeValueInputData as
|
|
1
|
+
import{__extends as t}from'./../../ext/tslib/tslib.es6.js';import{SaveMyCustomerAddressInputData as s}from"./SaveMyCustomerAddressInput.js";import{CustomerAttributeValueInputData as i}from"./CustomerAttributeValueInput.js";var n=function(t){void 0===t&&(t={}),this.addresses=t.addresses?t.addresses.map((function(t){return new s(t)})):null,this.attributes=t.attributes?t.attributes.map((function(t){return new i(t)})):null,this.birthDate=t.birthDate||null,this.firstName=t.firstName||"",this.gender=t.gender||null,this.lastName=t.lastName||"",this.phone=t.phone||null,this.phoneSubscriptionStatus=t.phoneSubscriptionStatus||null,this.smsSubscriptionStatus=t.smsSubscriptionStatus||null,this.subscriptionStatus=t.subscriptionStatus||null},u=function(s){function i(){return null!==s&&s.apply(this,arguments)||this}return t(i,s),i}(n);export{u as SaveMyCustomerInput,n as SaveMyCustomerInputData};
|
|
@@ -51,14 +51,17 @@ export declare enum ResponseField {
|
|
|
51
51
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.attributes.customerAttributeId",
|
|
52
52
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.attributes.customerAttributeOptionId",
|
|
53
53
|
CUSTOMER__ATTRIBUTES__VALUE = "customer.attributes.value",
|
|
54
|
+
CUSTOMER__BIRTH_DATE = "customer.birthDate",
|
|
54
55
|
CUSTOMER__CREATED_AT = "customer.createdAt",
|
|
55
56
|
CUSTOMER__CUSTOMER_GROUP_IDS = "customer.customerGroupIds",
|
|
57
|
+
CUSTOMER__CUSTOMER_SEGMENT_IDS = "customer.customerSegmentIds",
|
|
56
58
|
CUSTOMER__CUSTOMER_SEQUENCE = "customer.customerSequence",
|
|
57
59
|
CUSTOMER__DELETED = "customer.deleted",
|
|
58
60
|
CUSTOMER__EMAIL = "customer.email",
|
|
59
61
|
CUSTOMER__EMAIL_VERIFIED_DATE = "customer.emailVerifiedDate",
|
|
60
62
|
CUSTOMER__FIRST_NAME = "customer.firstName",
|
|
61
63
|
CUSTOMER__FULL_NAME = "customer.fullName",
|
|
64
|
+
CUSTOMER__GENDER = "customer.gender",
|
|
62
65
|
CUSTOMER__ID = "customer.id",
|
|
63
66
|
CUSTOMER__IS_EMAIL_VERIFIED = "customer.isEmailVerified",
|
|
64
67
|
CUSTOMER__IS_PHONE_VERIFIED = "customer.isPhoneVerified",
|
|
@@ -67,15 +70,21 @@ export declare enum ResponseField {
|
|
|
67
70
|
CUSTOMER__ORDER_COUNT = "customer.orderCount",
|
|
68
71
|
CUSTOMER__PASSWORD_UPDATE_DATE = "customer.passwordUpdateDate",
|
|
69
72
|
CUSTOMER__PHONE = "customer.phone",
|
|
73
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS = "customer.phoneSubscriptionStatus",
|
|
74
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.phoneSubscriptionStatusUpdatedAt",
|
|
70
75
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
71
76
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
72
77
|
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
78
|
+
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
73
79
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
74
80
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
81
|
+
CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID = "customer.priceListRules.priceListId",
|
|
75
82
|
CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
|
|
76
83
|
CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
|
|
77
84
|
CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
|
|
78
85
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
86
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS = "customer.smsSubscriptionStatus",
|
|
87
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.smsSubscriptionStatusUpdatedAt",
|
|
79
88
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
80
89
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
81
90
|
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,u){return e(void 0,void 0,void 0,(function(){var e,o,d,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S({operationName:"customerLogin",config:u,variables:E,allReturnFields:T,fields:r,query:function(e){return"\n\t\t\t\tmutation customerLogin (\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String!,\n\t\t\t\t\t$password: String!,\n\t\t\t\t) {\n\t\t\t\t\tcustomerLogin (\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),o=e.data,d=e.errors,[2,new s(null==o?void 0:o.customerLogin,d)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__BIRTH_DATE="customer.birthDate",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__GENDER="customer.gender",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",e.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",e.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",e.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",e.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",e.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
import { SaveCustomerFormDataInput } from "../types";
|
|
3
|
+
declare const saveCustomerFormData: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<boolean> | APIResponse<undefined>>;
|
|
4
|
+
export default saveCustomerFormData;
|
|
5
|
+
export declare type QueryParams = {
|
|
6
|
+
input: SaveCustomerFormDataInput;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as a,fetchQuery as n}from"@ikas/fe-api-client";var o=function(o,s){return t(void 0,void 0,void 0,(function(){var t,u,i,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"saveCustomerFormData",config:s,variables:o,query:"\n\t\t\t\tmutation saveCustomerFormData (\n\t\t\t\t\t$input: SaveCustomerFormDataInput!,\n\t\t\t\t) {\n\t\t\t\t\tsaveCustomerFormData (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t"})];case 1:return t=e.sent(),u=t.data,i=t.errors,[2,new a(null==u?void 0:u.saveCustomerFormData,i)];case 2:return m=e.sent(),[2,r(m)];case 3:return[2]}}))}))};export{o as default};
|
|
@@ -49,14 +49,17 @@ export declare enum ResponseField {
|
|
|
49
49
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "attributes.customerAttributeId",
|
|
50
50
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "attributes.customerAttributeOptionId",
|
|
51
51
|
ATTRIBUTES__VALUE = "attributes.value",
|
|
52
|
+
BIRTH_DATE = "birthDate",
|
|
52
53
|
CREATED_AT = "createdAt",
|
|
53
54
|
CUSTOMER_GROUP_IDS = "customerGroupIds",
|
|
55
|
+
CUSTOMER_SEGMENT_IDS = "customerSegmentIds",
|
|
54
56
|
CUSTOMER_SEQUENCE = "customerSequence",
|
|
55
57
|
DELETED = "deleted",
|
|
56
58
|
EMAIL = "email",
|
|
57
59
|
EMAIL_VERIFIED_DATE = "emailVerifiedDate",
|
|
58
60
|
FIRST_NAME = "firstName",
|
|
59
61
|
FULL_NAME = "fullName",
|
|
62
|
+
GENDER = "gender",
|
|
60
63
|
ID = "id",
|
|
61
64
|
IS_EMAIL_VERIFIED = "isEmailVerified",
|
|
62
65
|
IS_PHONE_VERIFIED = "isPhoneVerified",
|
|
@@ -65,15 +68,21 @@ export declare enum ResponseField {
|
|
|
65
68
|
ORDER_COUNT = "orderCount",
|
|
66
69
|
PASSWORD_UPDATE_DATE = "passwordUpdateDate",
|
|
67
70
|
PHONE = "phone",
|
|
71
|
+
PHONE_SUBSCRIPTION_STATUS = "phoneSubscriptionStatus",
|
|
72
|
+
PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "phoneSubscriptionStatusUpdatedAt",
|
|
68
73
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
69
74
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
70
75
|
PRICE_LIST_ID = "priceListId",
|
|
76
|
+
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
71
77
|
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
72
78
|
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
79
|
+
PRICE_LIST_RULES__PRICE_LIST_ID = "priceListRules.priceListId",
|
|
73
80
|
PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "priceListRules.shouldMatchAllFilters",
|
|
74
81
|
PRICE_LIST_RULES__VALUE = "priceListRules.value",
|
|
75
82
|
PRICE_LIST_RULES__VALUE_TYPE = "priceListRules.valueType",
|
|
76
83
|
REGISTRATION_SOURCE = "registrationSource",
|
|
84
|
+
SMS_SUBSCRIPTION_STATUS = "smsSubscriptionStatus",
|
|
85
|
+
SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "smsSubscriptionStatusUpdatedAt",
|
|
77
86
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
78
87
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
79
88
|
TAG_IDS = "tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as S,fetchQuery as _}from"@ikas/fe-api-client";var E,d=function(E,d,a){return e(void 0,void 0,void 0,(function(){var e,i,D,A;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,_({operationName:"saveMyCustomer",config:a,variables:E,allReturnFields:r,fields:d,query:function(e){return"\n\t\t\t\tmutation saveMyCustomer (\n\t\t\t\t\t$input: SaveMyCustomerInput!,\n\t\t\t\t) {\n\t\t\t\t\tsaveMyCustomer (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),i=e.data,D=e.errors,[2,new S(null==i?void 0:i.saveMyCustomer,D)];case 2:return A=t.sent(),[2,s(A)];case 3:return[2]}}))}))},r="{accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt }";!function(e){e.ACCOUNT_STATUS="accountStatus",e.ACCOUNT_STATUS_UPDATED_AT="accountStatusUpdatedAt",e.ADDRESSES__ADDRESS_LINE1="addresses.addressLine1",e.ADDRESSES__ADDRESS_LINE2="addresses.addressLine2",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="addresses.attributes.customerAttributeId",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="addresses.attributes.customerAttributeOptionId",e.ADDRESSES__ATTRIBUTES__VALUE="addresses.attributes.value",e.ADDRESSES__CITY__CODE="addresses.city.code",e.ADDRESSES__CITY__ID="addresses.city.id",e.ADDRESSES__CITY__NAME="addresses.city.name",e.ADDRESSES__COMPANY="addresses.company",e.ADDRESSES__COUNTRY__CODE="addresses.country.code",e.ADDRESSES__COUNTRY__ID="addresses.country.id",e.ADDRESSES__COUNTRY__ISO2="addresses.country.iso2",e.ADDRESSES__COUNTRY__ISO3="addresses.country.iso3",e.ADDRESSES__COUNTRY__NAME="addresses.country.name",e.ADDRESSES__CREATED_AT="addresses.createdAt",e.ADDRESSES__DELETED="addresses.deleted",e.ADDRESSES__DISTRICT__CODE="addresses.district.code",e.ADDRESSES__DISTRICT__ID="addresses.district.id",e.ADDRESSES__DISTRICT__NAME="addresses.district.name",e.ADDRESSES__FIRST_NAME="addresses.firstName",e.ADDRESSES__ID="addresses.id",e.ADDRESSES__IDENTITY_NUMBER="addresses.identityNumber",e.ADDRESSES__IS_DEFAULT="addresses.isDefault",e.ADDRESSES__LAST_NAME="addresses.lastName",e.ADDRESSES__PHONE="addresses.phone",e.ADDRESSES__POSTAL_CODE="addresses.postalCode",e.ADDRESSES__REGION__CREATED_AT="addresses.region.createdAt",e.ADDRESSES__REGION__DELETED="addresses.region.deleted",e.ADDRESSES__REGION__ID="addresses.region.id",e.ADDRESSES__REGION__NAME="addresses.region.name",e.ADDRESSES__REGION__UPDATED_AT="addresses.region.updatedAt",e.ADDRESSES__STATE__CODE="addresses.state.code",e.ADDRESSES__STATE__ID="addresses.state.id",e.ADDRESSES__STATE__NAME="addresses.state.name",e.ADDRESSES__TAX_NUMBER="addresses.taxNumber",e.ADDRESSES__TAX_OFFICE="addresses.taxOffice",e.ADDRESSES__TITLE="addresses.title",e.ADDRESSES__UPDATED_AT="addresses.updatedAt",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="attributes.customerAttributeId",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="attributes.customerAttributeOptionId",e.ATTRIBUTES__VALUE="attributes.value",e.BIRTH_DATE="birthDate",e.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEGMENT_IDS="customerSegmentIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",e.GENDER="gender",e.ID="id",e.IS_EMAIL_VERIFIED="isEmailVerified",e.IS_PHONE_VERIFIED="isPhoneVerified",e.LAST_NAME="lastName",e.NOTE="note",e.ORDER_COUNT="orderCount",e.PASSWORD_UPDATE_DATE="passwordUpdateDate",e.PHONE="phone",e.PHONE_SUBSCRIPTION_STATUS="phoneSubscriptionStatus",e.PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="phoneSubscriptionStatusUpdatedAt",e.PHONE_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__DISCOUNT_RATE="priceListRules.discountRate",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",e.PRICE_LIST_RULES__PRICE_LIST_ID="priceListRules.priceListId",e.PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="priceListRules.shouldMatchAllFilters",e.PRICE_LIST_RULES__VALUE="priceListRules.value",e.PRICE_LIST_RULES__VALUE_TYPE="priceListRules.valueType",e.REGISTRATION_SOURCE="registrationSource",e.SMS_SUBSCRIPTION_STATUS="smsSubscriptionStatus",e.SMS_SUBSCRIPTION_STATUS_UPDATED_AT="smsSubscriptionStatusUpdatedAt",e.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(E||(E={}));export{E as ResponseField,d as default};
|
|
@@ -49,14 +49,17 @@ export declare enum ResponseField {
|
|
|
49
49
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.attributes.customerAttributeId",
|
|
50
50
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.attributes.customerAttributeOptionId",
|
|
51
51
|
CUSTOMER__ATTRIBUTES__VALUE = "customer.attributes.value",
|
|
52
|
+
CUSTOMER__BIRTH_DATE = "customer.birthDate",
|
|
52
53
|
CUSTOMER__CREATED_AT = "customer.createdAt",
|
|
53
54
|
CUSTOMER__CUSTOMER_GROUP_IDS = "customer.customerGroupIds",
|
|
55
|
+
CUSTOMER__CUSTOMER_SEGMENT_IDS = "customer.customerSegmentIds",
|
|
54
56
|
CUSTOMER__CUSTOMER_SEQUENCE = "customer.customerSequence",
|
|
55
57
|
CUSTOMER__DELETED = "customer.deleted",
|
|
56
58
|
CUSTOMER__EMAIL = "customer.email",
|
|
57
59
|
CUSTOMER__EMAIL_VERIFIED_DATE = "customer.emailVerifiedDate",
|
|
58
60
|
CUSTOMER__FIRST_NAME = "customer.firstName",
|
|
59
61
|
CUSTOMER__FULL_NAME = "customer.fullName",
|
|
62
|
+
CUSTOMER__GENDER = "customer.gender",
|
|
60
63
|
CUSTOMER__ID = "customer.id",
|
|
61
64
|
CUSTOMER__IS_EMAIL_VERIFIED = "customer.isEmailVerified",
|
|
62
65
|
CUSTOMER__IS_PHONE_VERIFIED = "customer.isPhoneVerified",
|
|
@@ -65,15 +68,21 @@ export declare enum ResponseField {
|
|
|
65
68
|
CUSTOMER__ORDER_COUNT = "customer.orderCount",
|
|
66
69
|
CUSTOMER__PASSWORD_UPDATE_DATE = "customer.passwordUpdateDate",
|
|
67
70
|
CUSTOMER__PHONE = "customer.phone",
|
|
71
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS = "customer.phoneSubscriptionStatus",
|
|
72
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.phoneSubscriptionStatusUpdatedAt",
|
|
68
73
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
69
74
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
70
75
|
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
76
|
+
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
71
77
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
72
78
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
79
|
+
CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID = "customer.priceListRules.priceListId",
|
|
73
80
|
CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
|
|
74
81
|
CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
|
|
75
82
|
CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
|
|
76
83
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
84
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS = "customer.smsSubscriptionStatus",
|
|
85
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.smsSubscriptionStatusUpdatedAt",
|
|
77
86
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
78
87
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
79
88
|
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,u){return e(void 0,void 0,void 0,(function(){var e,o,d,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S({operationName:"customerSocialLogin",config:u,variables:E,allReturnFields:T,fields:r,query:function(e){return"\n\t\t\t\tquery customerSocialLogin (\n\t\t\t\t\t$code: String!,\n\t\t\t\t) {\n\t\t\t\t\tcustomerSocialLogin (\n\t\t\t\t\t\tcode: $code,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),o=e.data,d=e.errors,[2,new s(null==o?void 0:o.customerSocialLogin,d)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__BIRTH_DATE="customer.birthDate",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__GENDER="customer.gender",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",e.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",e.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",e.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",e.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",e.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r as default};
|
|
@@ -46,14 +46,17 @@ export declare enum ResponseField {
|
|
|
46
46
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "attributes.customerAttributeId",
|
|
47
47
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "attributes.customerAttributeOptionId",
|
|
48
48
|
ATTRIBUTES__VALUE = "attributes.value",
|
|
49
|
+
BIRTH_DATE = "birthDate",
|
|
49
50
|
CREATED_AT = "createdAt",
|
|
50
51
|
CUSTOMER_GROUP_IDS = "customerGroupIds",
|
|
52
|
+
CUSTOMER_SEGMENT_IDS = "customerSegmentIds",
|
|
51
53
|
CUSTOMER_SEQUENCE = "customerSequence",
|
|
52
54
|
DELETED = "deleted",
|
|
53
55
|
EMAIL = "email",
|
|
54
56
|
EMAIL_VERIFIED_DATE = "emailVerifiedDate",
|
|
55
57
|
FIRST_NAME = "firstName",
|
|
56
58
|
FULL_NAME = "fullName",
|
|
59
|
+
GENDER = "gender",
|
|
57
60
|
ID = "id",
|
|
58
61
|
IS_EMAIL_VERIFIED = "isEmailVerified",
|
|
59
62
|
IS_PHONE_VERIFIED = "isPhoneVerified",
|
|
@@ -62,15 +65,21 @@ export declare enum ResponseField {
|
|
|
62
65
|
ORDER_COUNT = "orderCount",
|
|
63
66
|
PASSWORD_UPDATE_DATE = "passwordUpdateDate",
|
|
64
67
|
PHONE = "phone",
|
|
68
|
+
PHONE_SUBSCRIPTION_STATUS = "phoneSubscriptionStatus",
|
|
69
|
+
PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "phoneSubscriptionStatusUpdatedAt",
|
|
65
70
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
66
71
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
67
72
|
PRICE_LIST_ID = "priceListId",
|
|
73
|
+
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
68
74
|
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
69
75
|
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
76
|
+
PRICE_LIST_RULES__PRICE_LIST_ID = "priceListRules.priceListId",
|
|
70
77
|
PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "priceListRules.shouldMatchAllFilters",
|
|
71
78
|
PRICE_LIST_RULES__VALUE = "priceListRules.value",
|
|
72
79
|
PRICE_LIST_RULES__VALUE_TYPE = "priceListRules.valueType",
|
|
73
80
|
REGISTRATION_SOURCE = "registrationSource",
|
|
81
|
+
SMS_SUBSCRIPTION_STATUS = "smsSubscriptionStatus",
|
|
82
|
+
SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "smsSubscriptionStatusUpdatedAt",
|
|
74
83
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
75
84
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
76
85
|
TAG_IDS = "tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as S,fetchQuery as _}from"@ikas/fe-api-client";var E,d=function(E,d){return e(void 0,void 0,void 0,(function(){var e,a,i,D;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,_({operationName:"getMyCustomer",config:d,allReturnFields:r,fields:E,query:function(e){return"\n\t\t\t\tquery getMyCustomer {\n\t\t\t\t\tgetMyCustomer ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),a=e.data,i=e.errors,[2,new S(null==a?void 0:a.getMyCustomer,i)];case 2:return D=t.sent(),[2,s(D)];case 3:return[2]}}))}))},r="{accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt }";!function(e){e.ACCOUNT_STATUS="accountStatus",e.ACCOUNT_STATUS_UPDATED_AT="accountStatusUpdatedAt",e.ADDRESSES__ADDRESS_LINE1="addresses.addressLine1",e.ADDRESSES__ADDRESS_LINE2="addresses.addressLine2",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="addresses.attributes.customerAttributeId",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="addresses.attributes.customerAttributeOptionId",e.ADDRESSES__ATTRIBUTES__VALUE="addresses.attributes.value",e.ADDRESSES__CITY__CODE="addresses.city.code",e.ADDRESSES__CITY__ID="addresses.city.id",e.ADDRESSES__CITY__NAME="addresses.city.name",e.ADDRESSES__COMPANY="addresses.company",e.ADDRESSES__COUNTRY__CODE="addresses.country.code",e.ADDRESSES__COUNTRY__ID="addresses.country.id",e.ADDRESSES__COUNTRY__ISO2="addresses.country.iso2",e.ADDRESSES__COUNTRY__ISO3="addresses.country.iso3",e.ADDRESSES__COUNTRY__NAME="addresses.country.name",e.ADDRESSES__CREATED_AT="addresses.createdAt",e.ADDRESSES__DELETED="addresses.deleted",e.ADDRESSES__DISTRICT__CODE="addresses.district.code",e.ADDRESSES__DISTRICT__ID="addresses.district.id",e.ADDRESSES__DISTRICT__NAME="addresses.district.name",e.ADDRESSES__FIRST_NAME="addresses.firstName",e.ADDRESSES__ID="addresses.id",e.ADDRESSES__IDENTITY_NUMBER="addresses.identityNumber",e.ADDRESSES__IS_DEFAULT="addresses.isDefault",e.ADDRESSES__LAST_NAME="addresses.lastName",e.ADDRESSES__PHONE="addresses.phone",e.ADDRESSES__POSTAL_CODE="addresses.postalCode",e.ADDRESSES__REGION__CREATED_AT="addresses.region.createdAt",e.ADDRESSES__REGION__DELETED="addresses.region.deleted",e.ADDRESSES__REGION__ID="addresses.region.id",e.ADDRESSES__REGION__NAME="addresses.region.name",e.ADDRESSES__REGION__UPDATED_AT="addresses.region.updatedAt",e.ADDRESSES__STATE__CODE="addresses.state.code",e.ADDRESSES__STATE__ID="addresses.state.id",e.ADDRESSES__STATE__NAME="addresses.state.name",e.ADDRESSES__TAX_NUMBER="addresses.taxNumber",e.ADDRESSES__TAX_OFFICE="addresses.taxOffice",e.ADDRESSES__TITLE="addresses.title",e.ADDRESSES__UPDATED_AT="addresses.updatedAt",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="attributes.customerAttributeId",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="attributes.customerAttributeOptionId",e.ATTRIBUTES__VALUE="attributes.value",e.BIRTH_DATE="birthDate",e.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEGMENT_IDS="customerSegmentIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",e.GENDER="gender",e.ID="id",e.IS_EMAIL_VERIFIED="isEmailVerified",e.IS_PHONE_VERIFIED="isPhoneVerified",e.LAST_NAME="lastName",e.NOTE="note",e.ORDER_COUNT="orderCount",e.PASSWORD_UPDATE_DATE="passwordUpdateDate",e.PHONE="phone",e.PHONE_SUBSCRIPTION_STATUS="phoneSubscriptionStatus",e.PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="phoneSubscriptionStatusUpdatedAt",e.PHONE_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__DISCOUNT_RATE="priceListRules.discountRate",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",e.PRICE_LIST_RULES__PRICE_LIST_ID="priceListRules.priceListId",e.PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="priceListRules.shouldMatchAllFilters",e.PRICE_LIST_RULES__VALUE="priceListRules.value",e.PRICE_LIST_RULES__VALUE_TYPE="priceListRules.valueType",e.REGISTRATION_SOURCE="registrationSource",e.SMS_SUBSCRIPTION_STATUS="smsSubscriptionStatus",e.SMS_SUBSCRIPTION_STATUS_UPDATED_AT="smsSubscriptionStatusUpdatedAt",e.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(E||(E={}));export{E as ResponseField,d as default};
|
|
@@ -1161,14 +1161,17 @@ export interface Customer {
|
|
|
1161
1161
|
accountStatusUpdatedAt: any | null;
|
|
1162
1162
|
addresses: CustomerAddress[] | null;
|
|
1163
1163
|
attributes: CustomerAttributeValue[] | null;
|
|
1164
|
+
birthDate: any | null;
|
|
1164
1165
|
createdAt: any | null;
|
|
1165
1166
|
customerGroupIds: string[] | null;
|
|
1167
|
+
customerSegmentIds: string[] | null;
|
|
1166
1168
|
customerSequence: number | null;
|
|
1167
1169
|
deleted: boolean;
|
|
1168
1170
|
email: string | null;
|
|
1169
1171
|
emailVerifiedDate: any | null;
|
|
1170
1172
|
firstName: string;
|
|
1171
1173
|
fullName: string | null;
|
|
1174
|
+
gender: CustomerGenderTypeEnum | null;
|
|
1172
1175
|
id: string;
|
|
1173
1176
|
isEmailVerified: boolean | null;
|
|
1174
1177
|
isPhoneVerified: boolean | null;
|
|
@@ -1177,11 +1180,15 @@ export interface Customer {
|
|
|
1177
1180
|
orderCount: number | null;
|
|
1178
1181
|
passwordUpdateDate: any | null;
|
|
1179
1182
|
phone: string | null;
|
|
1183
|
+
phoneSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
1184
|
+
phoneSubscriptionStatusUpdatedAt: any | null;
|
|
1180
1185
|
phoneVerifiedDate: any | null;
|
|
1181
1186
|
preferredLanguage: string | null;
|
|
1182
1187
|
priceListId: string | null;
|
|
1183
1188
|
priceListRules: CustomerPriceListRule[] | null;
|
|
1184
1189
|
registrationSource: CustomerRegistrationSourceEnum | null;
|
|
1190
|
+
smsSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
1191
|
+
smsSubscriptionStatusUpdatedAt: any | null;
|
|
1185
1192
|
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
1186
1193
|
subscriptionStatusUpdatedAt: any | null;
|
|
1187
1194
|
tagIds: string[] | null;
|
|
@@ -3250,9 +3257,13 @@ export interface SaveMyCustomerAddressInput {
|
|
|
3250
3257
|
export interface SaveMyCustomerInput {
|
|
3251
3258
|
addresses?: SaveMyCustomerAddressInput[] | null;
|
|
3252
3259
|
attributes?: CustomerAttributeValueInput[] | null;
|
|
3260
|
+
birthDate?: any | null;
|
|
3253
3261
|
firstName: string;
|
|
3262
|
+
gender?: CustomerGenderTypeEnum | null;
|
|
3254
3263
|
lastName: string;
|
|
3255
3264
|
phone?: string | null;
|
|
3265
|
+
phoneSubscriptionStatus?: CustomerEmailSubscriptionStatusesEnum | null;
|
|
3266
|
+
smsSubscriptionStatus?: CustomerEmailSubscriptionStatusesEnum | null;
|
|
3256
3267
|
subscriptionStatus?: CustomerEmailSubscriptionStatusesEnum | null;
|
|
3257
3268
|
}
|
|
3258
3269
|
export interface SearchDynamicCurrencySettings {
|
|
@@ -3415,3 +3426,24 @@ export interface StorefrontPopupRouting {
|
|
|
3415
3426
|
storefrontId: string;
|
|
3416
3427
|
storefrontRoutingId: string;
|
|
3417
3428
|
}
|
|
3429
|
+
export interface CustomerRegisterSubscriptionInput {
|
|
3430
|
+
email: boolean;
|
|
3431
|
+
phone: boolean;
|
|
3432
|
+
sms: boolean;
|
|
3433
|
+
}
|
|
3434
|
+
export interface SaveCustomerFormDataInput {
|
|
3435
|
+
birthDate?: any | null;
|
|
3436
|
+
captchaToken?: string | null;
|
|
3437
|
+
email: string;
|
|
3438
|
+
firstName?: string | null;
|
|
3439
|
+
gender?: CustomerGenderTypeEnum | null;
|
|
3440
|
+
lastName?: string | null;
|
|
3441
|
+
phone?: string | null;
|
|
3442
|
+
storefrontPopupId?: string | null;
|
|
3443
|
+
subscriptions?: CustomerRegisterSubscriptionInput | null;
|
|
3444
|
+
}
|
|
3445
|
+
export declare enum CustomerGenderTypeEnum {
|
|
3446
|
+
FEMALE = "FEMALE",
|
|
3447
|
+
MALE = "MALE",
|
|
3448
|
+
OTHER = "OTHER"
|
|
3449
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var E,R,T,A,_,I,O,C,D,N,L,S,U,P,M,F,n,H,G,V,Y,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,OE,CE,DE,NE,LE,SE,UE,PE,ME,FE,nE,HE,GE,VE,YE,BE,oE,cE,fE,tE,iE,uE,WE,KE,QE,XE,JE,eE,aE,gE,lE,ZE,pE,bE;!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"}(O||(O={})),function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(C||(C={})),function(E){E.CHECKOUT="CHECKOUT",E.POST_CHECKOUT="POST_CHECKOUT",E.PRODUCT="PRODUCT"}(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",E.UPSELL="UPSELL"}(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"}(V||(V={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(Y||(Y={})),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"}(OE||(OE={})),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"}(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.HIDDEN="HIDDEN",E.PASSIVE="PASSIVE",E.VISIBLE="VISIBLE"}(SE||(SE={})),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"}(UE||(UE={})),function(E){E.ASC="ASC",E.DESC="DESC"}(PE||(PE={})),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"}(ME||(ME={})),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"}(FE||(FE={})),function(E){E.PHYSICAL="PHYSICAL",E.VIRTUAL="VIRTUAL"}(nE||(nE={})),function(E){E.ALWAYS="ALWAYS",E.NEVER="NEVER",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(HE||(HE={})),function(E){E.ALWAYS="ALWAYS",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(GE||(GE={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY",E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.CUSTOM="CUSTOM",E.PRODUCT="PRODUCT"}(VE||(VE={})),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"}(BE||(BE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(oE||(oE={})),function(E){E.B2B_STOREFRONT="B2B_STOREFRONT",E.STOREFRONT="STOREFRONT"}(cE||(cE={})),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"}(fE||(fE={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(tE||(tE={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(iE||(iE={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(uE||(uE={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(WE||(WE={})),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"}(KE||(KE={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(QE||(QE={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(XE||(XE={})),function(E){E.ALL="ALL",E.DESKTOP="DESKTOP",E.MOBILE="MOBILE"}(JE||(JE={})),function(E){E.CART_TOTAL="CART_TOTAL",E.CUSTOMER_SEGMENT="CUSTOMER_SEGMENT"}(eE||(eE={})),function(E){E.EVERY_TIME="EVERY_TIME",E.ONCE_PER_SESSION="ONCE_PER_SESSION"}(aE||(aE={})),function(E){E.EXIT_INTENT="EXIT_INTENT",E.ON_PAGE_LOAD="ON_PAGE_LOAD",E.SCROLL_DOWN="SCROLL_DOWN"}(gE||(gE={})),function(E){E.CONTAINS="CONTAINS",E.DOES_NOT_CONTAIN="DOES_NOT_CONTAIN",E.EXACT_MATCH="EXACT_MATCH",E.ID_LIST="ID_LIST"}(lE||(lE={})),function(E){E.ACCOUNT="ACCOUNT",E.CART="CART",E.CATEGORY="CATEGORY",E.CUSTOM="CUSTOM",E.HOME="HOME",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND"}(ZE||(ZE={})),function(E){E.ACTIVE="ACTIVE",E.DRAFT="DRAFT",E.PASSIVE="PASSIVE"}(pE||(pE={})),function(E){E.FORM="FORM",E.NOTIFICATION="NOTIFICATION",E.NOTIFICATION_BAR="NOTIFICATION_BAR",E.PAGE_OVERLAY="PAGE_OVERLAY",E.POPUP="POPUP"}(bE||(bE={}));export{E as AbandonedCartSettingsNotificationTypeEnum,R as BlogMetadataTargetTypeEnum,T as CampaignApplicablePriceEnum,A as CampaignCreatedForEnum,_ as CampaignFilterTypeEnum,I as CampaignOfferFollowUpActionTypeEnum,O as CampaignOfferProductApplicablePriceEnum,C 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,V as CheckoutRecoveryEmailStatusEnum,Y 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,OE as ProductOptionTypeEnum,CE as ProductSearchShowStockOptionEnum,DE as ProductUnitTypeEnum,NE as RaffleMetadataTargetTypeEnum,LE as RaffleParticipantStatusEnum,UE as SFAnalyticsTrafficSourceEnum,SE as SalesChannelStatusEnum,PE as SortByDirectionEnum,ME as SortByTypeEnum,FE as StockLocationDeliveryTimeEnum,nE as StockLocationTypeEnum,HE as StorefrontB2BShowPricesEnum,GE as StorefrontB2BShowProductsEnum,VE as StorefrontPageTypesEnum,JE as StorefrontPopupDeviceTypeEnum,eE as StorefrontPopupDisplayFilterTypeEnum,aE as StorefrontPopupDisplayFrequencyEnum,gE as StorefrontPopupDisplayTriggerTypeEnum,lE as StorefrontPopupPageFilterDataTypeEnum,ZE as StorefrontPopupPageFilterTypeEnum,pE as StorefrontPopupStatusEnum,bE as StorefrontPopupTypeEnum,YE as StorefrontRegisterSettingsCheckboxType,BE as StorefrontStatusTypes,oE as StorefrontThemeStatus,cE as StorefrontTypeEnum,fE as TemplateEnum,tE as TransactionCardAssociationEnum,iE as TransactionCardTypeEnum,uE as TransactionStatusEnum,WE as TransactionTypeEnum,KE as UserAgentDeviceType,QE as VariantSelectionTypeEnum,XE as VerificationTypeEnum};
|
|
1
|
+
var E,R,T,A,_,I,O,C,D,N,L,S,U,P,M,F,n,H,G,V,Y,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,OE,CE,DE,NE,LE,SE,UE,PE,ME,FE,nE,HE,GE,VE,YE,BE,oE,cE,fE,tE,iE,uE,WE,KE,QE,XE,JE,eE,aE,gE,lE,ZE,pE,bE,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"}(O||(O={})),function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(C||(C={})),function(E){E.CHECKOUT="CHECKOUT",E.POST_CHECKOUT="POST_CHECKOUT",E.PRODUCT="PRODUCT"}(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",E.UPSELL="UPSELL"}(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"}(V||(V={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(Y||(Y={})),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"}(OE||(OE={})),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"}(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.HIDDEN="HIDDEN",E.PASSIVE="PASSIVE",E.VISIBLE="VISIBLE"}(SE||(SE={})),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"}(UE||(UE={})),function(E){E.ASC="ASC",E.DESC="DESC"}(PE||(PE={})),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"}(ME||(ME={})),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"}(FE||(FE={})),function(E){E.PHYSICAL="PHYSICAL",E.VIRTUAL="VIRTUAL"}(nE||(nE={})),function(E){E.ALWAYS="ALWAYS",E.NEVER="NEVER",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(HE||(HE={})),function(E){E.ALWAYS="ALWAYS",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(GE||(GE={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY",E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.CUSTOM="CUSTOM",E.PRODUCT="PRODUCT"}(VE||(VE={})),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"}(BE||(BE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(oE||(oE={})),function(E){E.B2B_STOREFRONT="B2B_STOREFRONT",E.STOREFRONT="STOREFRONT"}(cE||(cE={})),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"}(fE||(fE={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(tE||(tE={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(iE||(iE={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(uE||(uE={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(WE||(WE={})),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"}(KE||(KE={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(QE||(QE={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(XE||(XE={})),function(E){E.ALL="ALL",E.DESKTOP="DESKTOP",E.MOBILE="MOBILE"}(JE||(JE={})),function(E){E.CART_TOTAL="CART_TOTAL",E.CUSTOMER_SEGMENT="CUSTOMER_SEGMENT"}(eE||(eE={})),function(E){E.EVERY_TIME="EVERY_TIME",E.ONCE_PER_SESSION="ONCE_PER_SESSION"}(aE||(aE={})),function(E){E.EXIT_INTENT="EXIT_INTENT",E.ON_PAGE_LOAD="ON_PAGE_LOAD",E.SCROLL_DOWN="SCROLL_DOWN"}(gE||(gE={})),function(E){E.CONTAINS="CONTAINS",E.DOES_NOT_CONTAIN="DOES_NOT_CONTAIN",E.EXACT_MATCH="EXACT_MATCH",E.ID_LIST="ID_LIST"}(lE||(lE={})),function(E){E.ACCOUNT="ACCOUNT",E.CART="CART",E.CATEGORY="CATEGORY",E.CUSTOM="CUSTOM",E.HOME="HOME",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND"}(ZE||(ZE={})),function(E){E.ACTIVE="ACTIVE",E.DRAFT="DRAFT",E.PASSIVE="PASSIVE"}(pE||(pE={})),function(E){E.FORM="FORM",E.NOTIFICATION="NOTIFICATION",E.NOTIFICATION_BAR="NOTIFICATION_BAR",E.PAGE_OVERLAY="PAGE_OVERLAY",E.POPUP="POPUP"}(bE||(bE={})),function(E){E.FEMALE="FEMALE",E.MALE="MALE",E.OTHER="OTHER"}(kE||(kE={}));export{E as AbandonedCartSettingsNotificationTypeEnum,R as BlogMetadataTargetTypeEnum,T as CampaignApplicablePriceEnum,A as CampaignCreatedForEnum,_ as CampaignFilterTypeEnum,I as CampaignOfferFollowUpActionTypeEnum,O as CampaignOfferProductApplicablePriceEnum,C 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,V as CheckoutRecoveryEmailStatusEnum,Y 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,kE as CustomerGenderTypeEnum,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,OE as ProductOptionTypeEnum,CE as ProductSearchShowStockOptionEnum,DE as ProductUnitTypeEnum,NE as RaffleMetadataTargetTypeEnum,LE as RaffleParticipantStatusEnum,UE as SFAnalyticsTrafficSourceEnum,SE as SalesChannelStatusEnum,PE as SortByDirectionEnum,ME as SortByTypeEnum,FE as StockLocationDeliveryTimeEnum,nE as StockLocationTypeEnum,HE as StorefrontB2BShowPricesEnum,GE as StorefrontB2BShowProductsEnum,VE as StorefrontPageTypesEnum,JE as StorefrontPopupDeviceTypeEnum,eE as StorefrontPopupDisplayFilterTypeEnum,aE as StorefrontPopupDisplayFrequencyEnum,gE as StorefrontPopupDisplayTriggerTypeEnum,lE as StorefrontPopupPageFilterDataTypeEnum,ZE as StorefrontPopupPageFilterTypeEnum,pE as StorefrontPopupStatusEnum,bE as StorefrontPopupTypeEnum,YE as StorefrontRegisterSettingsCheckboxType,BE as StorefrontStatusTypes,oE as StorefrontThemeStatus,cE as StorefrontTypeEnum,fE as TemplateEnum,tE as TransactionCardAssociationEnum,iE as TransactionCardTypeEnum,uE as TransactionStatusEnum,WE as TransactionTypeEnum,KE as UserAgentDeviceType,QE as VariantSelectionTypeEnum,XE as VerificationTypeEnum};
|
|
@@ -26,9 +26,10 @@ import { QueryParams as ActivateCustomerQueryParams } from "../../__api/mutation
|
|
|
26
26
|
import { QueryParams as ResendCustomerActivationMailQueryParams } from "../../__api/mutations/resendCustomerActivationMail";
|
|
27
27
|
import { QueryParams as ValidateCustomerPhoneVerificationCodeQueryParams } from "../../__api/mutations/validateCustomerPhoneVerificationCode";
|
|
28
28
|
import { QueryParams as ResendCustomerPhoneVerificationCodeQueryParams } from "../../__api/mutations/resendCustomerPhoneVerificationCode";
|
|
29
|
+
import { QueryParams as SaveCustomerFormDataQueryParams } from "../../__api/mutations/saveCustomerFormData";
|
|
29
30
|
import { CustomerAttributeValueInput } from "../../__api/types";
|
|
30
31
|
import { IkasCustomer, IkasCustomerAttribute, IkasCustomerReview, IkasCustomerReviewSummary, IkasFavoriteProduct, IkasLastViewedProduct, IkasOrder, IkasOrderRefundSettings, IkasOrderTransaction, IkasCustomerSettings } from "@ikas/storefront-models";
|
|
31
|
-
export type { CustomerLoginQueryParams, CustomerSocialLoginQueryParams, RegisterCustomerQueryParams, CustomerRefreshTokenQueryParams, CustomerForgotPasswordQueryParams, CustomerRecoverPasswordQueryParams, CheckCustomerEmailQueryParams, SaveMyCustomerQueryParams, GetCustomerOrdersQueryParams, GetOrderByEmailQueryParams, ListOrderTransactionsQueryParams, CreateOrderRefundRequestQueryParams, SubscribeToMarketingNotificationsQueryParams, GetLastViewedProductsQueryParams, SaveLastViewedProductsQueryParams, ListOrderRefundSettingsQueryParams, SendContactFormToMerchantQueryParams, SaveFavoriteProductQueryParams, IsFavoriteProductQueryParams, CreateCustomerReviewQueryParams, ListCustomerReviewsQueryParams, ListCustomerReviewSummaryQueryParams, CustomerAttributeValueInput, ActivateCustomerQueryParams, ResendCustomerActivationMailQueryParams, ValidateCustomerPhoneVerificationCodeQueryParams, ResendCustomerPhoneVerificationCodeQueryParams, };
|
|
32
|
+
export type { CustomerLoginQueryParams, CustomerSocialLoginQueryParams, RegisterCustomerQueryParams, CustomerRefreshTokenQueryParams, CustomerForgotPasswordQueryParams, CustomerRecoverPasswordQueryParams, CheckCustomerEmailQueryParams, SaveMyCustomerQueryParams, GetCustomerOrdersQueryParams, GetOrderByEmailQueryParams, ListOrderTransactionsQueryParams, CreateOrderRefundRequestQueryParams, SubscribeToMarketingNotificationsQueryParams, GetLastViewedProductsQueryParams, SaveLastViewedProductsQueryParams, ListOrderRefundSettingsQueryParams, SendContactFormToMerchantQueryParams, SaveFavoriteProductQueryParams, IsFavoriteProductQueryParams, CreateCustomerReviewQueryParams, ListCustomerReviewsQueryParams, ListCustomerReviewSummaryQueryParams, CustomerAttributeValueInput, ActivateCustomerQueryParams, ResendCustomerActivationMailQueryParams, ValidateCustomerPhoneVerificationCodeQueryParams, ResendCustomerPhoneVerificationCodeQueryParams, SaveCustomerFormDataQueryParams, };
|
|
32
33
|
export declare enum IkasRegisterError {
|
|
33
34
|
EMAIL_IS_NOT_VERIFIED = "EMAIL_IS_NOT_VERIFIED",
|
|
34
35
|
CUSTOMER_EMAIL_ALREADY_EXISTS = "CUSTOMER_EMAIL_ALREADY_EXISTS",
|
|
@@ -70,14 +71,17 @@ export declare function getCustomer(): Promise<APIResponse<{
|
|
|
70
71
|
accountStatusUpdatedAt: any;
|
|
71
72
|
addresses: import("../../__api/types").CustomerAddress[] | null;
|
|
72
73
|
attributes: import("../../__api/types").CustomerAttributeValue[] | null;
|
|
74
|
+
birthDate: any;
|
|
73
75
|
createdAt: any;
|
|
74
76
|
customerGroupIds: string[] | null;
|
|
77
|
+
customerSegmentIds: string[] | null;
|
|
75
78
|
customerSequence: number | null;
|
|
76
79
|
deleted: boolean;
|
|
77
80
|
email: string | null;
|
|
78
81
|
emailVerifiedDate: any;
|
|
79
82
|
firstName: string;
|
|
80
83
|
fullName: string | null;
|
|
84
|
+
gender: import("../../__api/types").CustomerGenderTypeEnum | null;
|
|
81
85
|
id: string;
|
|
82
86
|
isEmailVerified: boolean | null;
|
|
83
87
|
isPhoneVerified: boolean | null;
|
|
@@ -86,11 +90,15 @@ export declare function getCustomer(): Promise<APIResponse<{
|
|
|
86
90
|
orderCount: number | null;
|
|
87
91
|
passwordUpdateDate: any;
|
|
88
92
|
phone: string | null;
|
|
93
|
+
phoneSubscriptionStatus: import("../../__api/types").CustomerEmailSubscriptionStatusesEnum | null;
|
|
94
|
+
phoneSubscriptionStatusUpdatedAt: any;
|
|
89
95
|
phoneVerifiedDate: any;
|
|
90
96
|
preferredLanguage: string | null;
|
|
91
97
|
priceListId: string | null;
|
|
92
98
|
priceListRules: import("../../__api/types").CustomerPriceListRule[] | null;
|
|
93
99
|
registrationSource: import("../../__api/types").CustomerRegistrationSourceEnum | null;
|
|
100
|
+
smsSubscriptionStatus: import("../../__api/types").CustomerEmailSubscriptionStatusesEnum | null;
|
|
101
|
+
smsSubscriptionStatusUpdatedAt: any;
|
|
94
102
|
subscriptionStatus: import("../../__api/types").CustomerEmailSubscriptionStatusesEnum | null;
|
|
95
103
|
subscriptionStatusUpdatedAt: any;
|
|
96
104
|
tagIds: string[] | null;
|
|
@@ -102,14 +110,17 @@ export declare function saveCustomer(params: SaveMyCustomerQueryParams): Promise
|
|
|
102
110
|
accountStatusUpdatedAt: any;
|
|
103
111
|
addresses: import("../../__api/types").CustomerAddress[] | null;
|
|
104
112
|
attributes: import("../../__api/types").CustomerAttributeValue[] | null;
|
|
113
|
+
birthDate: any;
|
|
105
114
|
createdAt: any;
|
|
106
115
|
customerGroupIds: string[] | null;
|
|
116
|
+
customerSegmentIds: string[] | null;
|
|
107
117
|
customerSequence: number | null;
|
|
108
118
|
deleted: boolean;
|
|
109
119
|
email: string | null;
|
|
110
120
|
emailVerifiedDate: any;
|
|
111
121
|
firstName: string;
|
|
112
122
|
fullName: string | null;
|
|
123
|
+
gender: import("../../__api/types").CustomerGenderTypeEnum | null;
|
|
113
124
|
id: string;
|
|
114
125
|
isEmailVerified: boolean | null;
|
|
115
126
|
isPhoneVerified: boolean | null;
|
|
@@ -118,16 +129,21 @@ export declare function saveCustomer(params: SaveMyCustomerQueryParams): Promise
|
|
|
118
129
|
orderCount: number | null;
|
|
119
130
|
passwordUpdateDate: any;
|
|
120
131
|
phone: string | null;
|
|
132
|
+
phoneSubscriptionStatus: import("../../__api/types").CustomerEmailSubscriptionStatusesEnum | null;
|
|
133
|
+
phoneSubscriptionStatusUpdatedAt: any;
|
|
121
134
|
phoneVerifiedDate: any;
|
|
122
135
|
preferredLanguage: string | null;
|
|
123
136
|
priceListId: string | null;
|
|
124
137
|
priceListRules: import("../../__api/types").CustomerPriceListRule[] | null;
|
|
125
138
|
registrationSource: import("../../__api/types").CustomerRegistrationSourceEnum | null;
|
|
139
|
+
smsSubscriptionStatus: import("../../__api/types").CustomerEmailSubscriptionStatusesEnum | null;
|
|
140
|
+
smsSubscriptionStatusUpdatedAt: any;
|
|
126
141
|
subscriptionStatus: import("../../__api/types").CustomerEmailSubscriptionStatusesEnum | null;
|
|
127
142
|
subscriptionStatusUpdatedAt: any;
|
|
128
143
|
tagIds: string[] | null;
|
|
129
144
|
updatedAt: any;
|
|
130
145
|
} | null>>;
|
|
146
|
+
export declare function saveCustomerFormData(params: SaveCustomerFormDataQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
131
147
|
export declare function getOrders(params: GetCustomerOrdersQueryParams): Promise<APIResponse<IkasOrder[]>>;
|
|
132
148
|
export declare function getOrderByEmail(params: GetOrderByEmailQueryParams): Promise<APIResponse<IkasOrder>>;
|
|
133
149
|
export declare function listOrderTransactions(params: ListOrderTransactionsQueryParams): Promise<APIResponse<IkasOrderTransaction[]>>;
|
|
@@ -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 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/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,G()];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,G()];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,I()];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,I()];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,I()];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 I(){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 T(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 N(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 C(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 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/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 j(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 U(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 P(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 M(){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 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/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 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/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 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/resendCustomerPhoneVerificationCode.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function y(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/validateCustomerPhoneVerificationCode.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",t.PHONE_IS_NOT_VERIFIED="PHONE_IS_NOT_VERIFIED"}(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",t.PHONE_IS_NOT_VERIFIED="PHONE_IS_NOT_VERIFIED",t.WRONG_PASSWORD="WRONG_PASSWORD"}(o||(o={}));export{o as IkasLoginError,a as IkasRegisterError,F as activateCustomer,h as checkEmail,U as createCustomerReview,O as createOrderRefundRequest,E as forgotPassword,p as getCustomer,A as getLastViewedProducts,D as getOrderByEmail,S as getOrders,j as isFavoriteProduct,M as listCustomerAttribute,P as listCustomerReviewSummary,g as listCustomerReviews,B as listCustomerSettings,L as listFavoriteProducts,N as listOrderRefundSettings,R as listOrderTransactions,c as login,v as recoverPassword,f as refreshToken,_ as register,Q as resendCustomerActivationMail,q as resendCustomerPhoneVerificationCode,m as saveCustomer,b as saveFavoriteProduct,w as saveLastViewedProducts,C as sendContactFormToMerchant,d as socialLogin,T as subscribeToMarketingNotifications,y as validateCustomerPhoneVerificationCode};
|
|
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,F()];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,F()];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(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveCustomerFormData.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}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/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 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,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 O(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 I(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 A(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 w(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 C(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 N(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 b(){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 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 g(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 P(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 F(){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 y(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/resendCustomerPhoneVerificationCode.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/validateCustomerPhoneVerificationCode.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",t.PHONE_IS_NOT_VERIFIED="PHONE_IS_NOT_VERIFIED"}(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",t.PHONE_IS_NOT_VERIFIED="PHONE_IS_NOT_VERIFIED",t.WRONG_PASSWORD="WRONG_PASSWORD"}(o||(o={}));export{o as IkasLoginError,a as IkasRegisterError,Q as activateCustomer,h as checkEmail,g as createCustomerReview,I as createOrderRefundRequest,v as forgotPassword,p as getCustomer,w as getLastViewedProducts,R as getOrderByEmail,D as getOrders,U as isFavoriteProduct,G as listCustomerAttribute,M as listCustomerReviewSummary,P as listCustomerReviews,B as listCustomerSettings,b as listFavoriteProducts,N as listOrderRefundSettings,O as listOrderTransactions,c as login,E as recoverPassword,f as refreshToken,_ as register,q as resendCustomerActivationMail,y as resendCustomerPhoneVerificationCode,m as saveCustomer,S as saveCustomerFormData,j as saveFavoriteProduct,C as saveLastViewedProducts,L as sendContactFormToMerchant,d as socialLogin,A as subscribeToMarketingNotifications,V as validateCustomerPhoneVerificationCode};
|
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,TransactionCardAssociationEnum}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,createAdyenBalancePlatformPaymentSession,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}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,listCampaignOffer,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";export{listStorefrontPopup}from"./api/storefront-popup/index.js";
|
|
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,TransactionCardAssociationEnum}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,createAdyenBalancePlatformPaymentSession,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}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,listCampaignOffer,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";export{listStorefrontPopup}from"./api/storefront-popup/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{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}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,TransactionCardAssociationEnum}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};
|
|
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{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}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,TransactionCardAssociationEnum}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.15.0-beta.
|
|
3
|
+
"version": "4.15.0-beta.79",
|
|
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.15.0-beta.
|
|
21
|
-
"@ikas/storefront-models": "^4.15.0-beta.
|
|
20
|
+
"@ikas/storefront-config": "^4.15.0-beta.79",
|
|
21
|
+
"@ikas/storefront-models": "^4.15.0-beta.79",
|
|
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.15.0-beta.
|
|
38
|
-
"@ikas/storefront-models": "^4.15.0-beta.
|
|
37
|
+
"@ikas/storefront-config": "^4.15.0-beta.79",
|
|
38
|
+
"@ikas/storefront-models": "^4.15.0-beta.79",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|