@ikas/storefront-api 4.10.0-beta.25 → 4.10.0-beta.26
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 +3 -0
- package/build/__api/models/CustomerPriceListRule.d.ts +11 -0
- package/build/__api/models/CustomerPriceListRuleFilter.d.ts +11 -0
- package/build/__api/models/Storefront.d.ts +4 -1
- package/build/__api/models/StorefrontB2BSettings.d.ts +12 -0
- package/build/__api/mutations/customerLogin.d.ts +4 -0
- package/build/__api/mutations/customerLogin.js +1 -1
- package/build/__api/mutations/registerCustomer.d.ts +5 -0
- package/build/__api/mutations/registerCustomer.js +1 -1
- package/build/__api/mutations/saveMyCustomer.d.ts +4 -0
- package/build/__api/mutations/saveMyCustomer.js +1 -1
- package/build/__api/queries/customerSocialLogin.d.ts +4 -0
- package/build/__api/queries/customerSocialLogin.js +1 -1
- package/build/__api/queries/getMyCustomer.d.ts +4 -0
- package/build/__api/queries/getMyCustomer.js +1 -1
- package/build/__api/queries/getStorefront.d.ts +4 -0
- package/build/__api/types/index.d.ts +24 -0
- package/build/__api/types/index.js +1 -1
- package/build/api/product/index.js +1 -1
- package/package.json +5 -5
|
@@ -3,6 +3,7 @@ import BaseModelData from "./_base";
|
|
|
3
3
|
import { CustomerAccountStatusEnum, CustomerRegistrationSourceEnum, CustomerEmailSubscriptionStatusesEnum } from "../types";
|
|
4
4
|
import { CustomerAddressData } from "./CustomerAddress";
|
|
5
5
|
import { CustomerAttributeValueData } from "./CustomerAttributeValue";
|
|
6
|
+
import { CustomerPriceListRuleData } from "./CustomerPriceListRule";
|
|
6
7
|
export declare class CustomerData extends BaseModelData {
|
|
7
8
|
accountStatus: CustomerAccountStatusEnum | null;
|
|
8
9
|
accountStatusUpdatedAt: any | null;
|
|
@@ -23,6 +24,8 @@ export declare class CustomerData extends BaseModelData {
|
|
|
23
24
|
phone: string | null;
|
|
24
25
|
phoneVerifiedDate: any | null;
|
|
25
26
|
preferredLanguage: string | null;
|
|
27
|
+
priceListId: string | null;
|
|
28
|
+
priceListRules: CustomerPriceListRuleData[] | null;
|
|
26
29
|
registrationSource: CustomerRegistrationSourceEnum | null;
|
|
27
30
|
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
28
31
|
subscriptionStatusUpdatedAt: any | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerPriceListRuleFilterData } from "./CustomerPriceListRuleFilter";
|
|
3
|
+
export declare class CustomerPriceListRuleData {
|
|
4
|
+
discountRate: number;
|
|
5
|
+
filters: CustomerPriceListRuleFilterData[] | null;
|
|
6
|
+
constructor(data?: Partial<CustomerPriceListRuleData>);
|
|
7
|
+
}
|
|
8
|
+
export declare class CustomerPriceListRule extends CustomerPriceListRuleData {
|
|
9
|
+
}
|
|
10
|
+
export declare type PartialCustomerPriceListRule = Partial<CustomerPriceListRule>;
|
|
11
|
+
export declare type ReadOnlyCustomerPriceListRule = DeepReadonly<CustomerPriceListRule>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerPriceListRuleFilterTypeEnum } from "../types";
|
|
3
|
+
export declare class CustomerPriceListRuleFilterData {
|
|
4
|
+
type: CustomerPriceListRuleFilterTypeEnum;
|
|
5
|
+
valueList: string[];
|
|
6
|
+
constructor(data?: Partial<CustomerPriceListRuleFilterData>);
|
|
7
|
+
}
|
|
8
|
+
export declare class CustomerPriceListRuleFilter extends CustomerPriceListRuleFilterData {
|
|
9
|
+
}
|
|
10
|
+
export declare type PartialCustomerPriceListRuleFilter = Partial<CustomerPriceListRuleFilter>;
|
|
11
|
+
export declare type ReadOnlyCustomerPriceListRuleFilter = DeepReadonly<CustomerPriceListRuleFilter>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
2
|
import BaseModelData from "./_base";
|
|
3
|
-
import { StorefrontStatusTypes } from "../types";
|
|
3
|
+
import { StorefrontStatusTypes, StorefrontTypeEnum } from "../types";
|
|
4
|
+
import { StorefrontB2BSettingsData } from "./StorefrontB2BSettings";
|
|
4
5
|
import { StorefrontDomainData } from "./StorefrontDomain";
|
|
5
6
|
import { IndexPageSeoSettingData } from "./IndexPageSeoSetting";
|
|
6
7
|
import { StorefrontLocalizationData } from "./StorefrontLocalization";
|
|
@@ -10,6 +11,7 @@ import { SocialLoginSettingsData } from "./SocialLoginSettings";
|
|
|
10
11
|
import { StorefrontThemeData } from "./StorefrontTheme";
|
|
11
12
|
export declare class StorefrontData extends BaseModelData {
|
|
12
13
|
analytics4Id: string | null;
|
|
14
|
+
b2bSettings: StorefrontB2BSettingsData | null;
|
|
13
15
|
domains: StorefrontDomainData[] | null;
|
|
14
16
|
emailSettingsId: string | null;
|
|
15
17
|
fbAccessToken: string | null;
|
|
@@ -29,6 +31,7 @@ export declare class StorefrontData extends BaseModelData {
|
|
|
29
31
|
themes: StorefrontThemeData[];
|
|
30
32
|
tiktokPixelId: string | null;
|
|
31
33
|
token: string | null;
|
|
34
|
+
type: StorefrontTypeEnum;
|
|
32
35
|
universalAnalyticsId: string | null;
|
|
33
36
|
constructor(data?: Partial<StorefrontData>);
|
|
34
37
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { StorefrontB2BShowPricesEnum, StorefrontB2BShowProductsEnum } from "../types";
|
|
3
|
+
export declare class StorefrontB2BSettingsData {
|
|
4
|
+
allowOnlyApprovedCustomersToLogin: boolean;
|
|
5
|
+
showPrices: StorefrontB2BShowPricesEnum;
|
|
6
|
+
showProducts: StorefrontB2BShowProductsEnum;
|
|
7
|
+
constructor(data?: Partial<StorefrontB2BSettingsData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class StorefrontB2BSettings extends StorefrontB2BSettingsData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialStorefrontB2BSettings = Partial<StorefrontB2BSettings>;
|
|
12
|
+
export declare type ReadOnlyStorefrontB2BSettings = DeepReadonly<StorefrontB2BSettings>;
|
|
@@ -69,6 +69,10 @@ export declare enum ResponseField {
|
|
|
69
69
|
CUSTOMER__PHONE = "customer.phone",
|
|
70
70
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
71
71
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
72
|
+
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
73
|
+
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
74
|
+
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
75
|
+
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
72
76
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
73
77
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
74
78
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,T){return e(void 0,void 0,void 0,(function(){var e,o,a,u;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,E({operationName:"customerLogin",config:T,variables:S,allReturnFields:d,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,a=e.errors,[2,new s(null==o?void 0:o.customerLogin,a)];case 2:return u=t.sent(),[2,_(u)];case 3:return[2]}}))}))},d="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } } registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__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__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(S||(S={}));export{S as ResponseField,r as default};
|
|
@@ -13,6 +13,7 @@ export declare type QueryParams = {
|
|
|
13
13
|
orderId?: string | null;
|
|
14
14
|
password: string;
|
|
15
15
|
phone?: string | null;
|
|
16
|
+
preferredLanguage?: string | null;
|
|
16
17
|
};
|
|
17
18
|
export declare enum ResponseField {
|
|
18
19
|
CUSTOMER__ACCOUNT_STATUS = "customer.accountStatus",
|
|
@@ -76,6 +77,10 @@ export declare enum ResponseField {
|
|
|
76
77
|
CUSTOMER__PHONE = "customer.phone",
|
|
77
78
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
78
79
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
80
|
+
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
81
|
+
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
82
|
+
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
83
|
+
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
79
84
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
80
85
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
81
86
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as r}from"@ikas/fe-api-client";var S,E=function(S,E,a){return t(void 0,void 0,void 0,(function(){var t,o,T,u;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r({operationName:"registerCustomer",config:a,variables:S,allReturnFields:d,fields:E,query:function(t){return"\n\t\t\t\tmutation registerCustomer (\n\t\t\t\t\t$attributes: [CustomerAttributeValueInput!],\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String!,\n\t\t\t\t\t$firstName: String!,\n\t\t\t\t\t$isAcceptMarketing: Boolean,\n\t\t\t\t\t$lastName: String!,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$orderId: String,\n\t\t\t\t\t$password: String!,\n\t\t\t\t\t$phone: String,\n\t\t\t\t\t$preferredLanguage: String,\n\t\t\t\t) {\n\t\t\t\t\tregisterCustomer (\n\t\t\t\t\t\tattributes: $attributes,\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tfirstName: $firstName,\n\t\t\t\t\t\tisAcceptMarketing: $isAcceptMarketing,\n\t\t\t\t\t\tlastName: $lastName,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\torderId: $orderId,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t\tphone: $phone,\n\t\t\t\t\t\tpreferredLanguage: $preferredLanguage,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),o=t.data,T=t.errors,[2,new s(null==o?void 0:o.registerCustomer,T)];case 2:return u=e.sent(),[2,_(u)];case 3:return[2]}}))}))},d="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } } registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(t){t.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",t.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",t.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",t.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",t.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",t.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",t.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",t.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",t.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",t.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",t.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",t.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",t.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",t.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",t.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",t.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",t.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",t.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",t.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",t.CUSTOMER__ADDRESSES__ID="customer.addresses.id",t.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",t.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",t.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",t.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",t.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",t.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",t.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",t.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",t.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",t.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",t.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",t.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",t.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",t.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",t.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",t.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",t.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",t.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",t.CUSTOMER__CREATED_AT="customer.createdAt",t.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",t.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",t.CUSTOMER__DELETED="customer.deleted",t.CUSTOMER__EMAIL="customer.email",t.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",t.CUSTOMER__FIRST_NAME="customer.firstName",t.CUSTOMER__FULL_NAME="customer.fullName",t.CUSTOMER__ID="customer.id",t.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",t.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",t.CUSTOMER__LAST_NAME="customer.lastName",t.CUSTOMER__NOTE="customer.note",t.CUSTOMER__ORDER_COUNT="customer.orderCount",t.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",t.CUSTOMER__PHONE="customer.phone",t.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",t.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",t.CUSTOMER__PRICE_LIST_ID="customer.priceListId",t.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",t.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",t.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",t.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",t.CUSTOMER__TAG_IDS="customer.tagIds",t.CUSTOMER__UPDATED_AT="customer.updatedAt",t.TOKEN="token",t.TOKEN_EXPIRY="tokenExpiry"}(S||(S={}));export{S as ResponseField,E as default};
|
|
@@ -67,6 +67,10 @@ export declare enum ResponseField {
|
|
|
67
67
|
PHONE = "phone",
|
|
68
68
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
69
69
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
70
|
+
PRICE_LIST_ID = "priceListId",
|
|
71
|
+
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
72
|
+
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
73
|
+
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
70
74
|
REGISTRATION_SOURCE = "registrationSource",
|
|
71
75
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
72
76
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as _,fetchQuery as d}from"@ikas/fe-api-client";var E,S=function(E,S,a){return e(void 0,void 0,void 0,(function(){var e,i,D,A;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,d({operationName:"saveMyCustomer",config:a,variables:E,allReturnFields:r,fields:S,query:function(e){return"\n\t\t\t\tmutation saveMyCustomer (\n\t\t\t\t\t$input: SaveMyCustomerInput!,\n\t\t\t\t) {\n\t\t\t\t\tsaveMyCustomer (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),i=e.data,D=e.errors,[2,new _(null==i?void 0:i.saveMyCustomer,D)];case 2:return A=t.sent(),[2,s(A)];case 3:return[2]}}))}))},r="{accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } } registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt }";!function(e){e.ACCOUNT_STATUS="accountStatus",e.ACCOUNT_STATUS_UPDATED_AT="accountStatusUpdatedAt",e.ADDRESSES__ADDRESS_LINE1="addresses.addressLine1",e.ADDRESSES__ADDRESS_LINE2="addresses.addressLine2",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="addresses.attributes.customerAttributeId",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="addresses.attributes.customerAttributeOptionId",e.ADDRESSES__ATTRIBUTES__VALUE="addresses.attributes.value",e.ADDRESSES__CITY__CODE="addresses.city.code",e.ADDRESSES__CITY__ID="addresses.city.id",e.ADDRESSES__CITY__NAME="addresses.city.name",e.ADDRESSES__COMPANY="addresses.company",e.ADDRESSES__COUNTRY__CODE="addresses.country.code",e.ADDRESSES__COUNTRY__ID="addresses.country.id",e.ADDRESSES__COUNTRY__ISO2="addresses.country.iso2",e.ADDRESSES__COUNTRY__ISO3="addresses.country.iso3",e.ADDRESSES__COUNTRY__NAME="addresses.country.name",e.ADDRESSES__CREATED_AT="addresses.createdAt",e.ADDRESSES__DELETED="addresses.deleted",e.ADDRESSES__DISTRICT__CODE="addresses.district.code",e.ADDRESSES__DISTRICT__ID="addresses.district.id",e.ADDRESSES__DISTRICT__NAME="addresses.district.name",e.ADDRESSES__FIRST_NAME="addresses.firstName",e.ADDRESSES__ID="addresses.id",e.ADDRESSES__IDENTITY_NUMBER="addresses.identityNumber",e.ADDRESSES__IS_DEFAULT="addresses.isDefault",e.ADDRESSES__LAST_NAME="addresses.lastName",e.ADDRESSES__PHONE="addresses.phone",e.ADDRESSES__POSTAL_CODE="addresses.postalCode",e.ADDRESSES__REGION__CREATED_AT="addresses.region.createdAt",e.ADDRESSES__REGION__DELETED="addresses.region.deleted",e.ADDRESSES__REGION__ID="addresses.region.id",e.ADDRESSES__REGION__NAME="addresses.region.name",e.ADDRESSES__REGION__UPDATED_AT="addresses.region.updatedAt",e.ADDRESSES__STATE__CODE="addresses.state.code",e.ADDRESSES__STATE__ID="addresses.state.id",e.ADDRESSES__STATE__NAME="addresses.state.name",e.ADDRESSES__TAX_NUMBER="addresses.taxNumber",e.ADDRESSES__TAX_OFFICE="addresses.taxOffice",e.ADDRESSES__TITLE="addresses.title",e.ADDRESSES__UPDATED_AT="addresses.updatedAt",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="attributes.customerAttributeId",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="attributes.customerAttributeOptionId",e.ATTRIBUTES__VALUE="attributes.value",e.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",e.ID="id",e.IS_EMAIL_VERIFIED="isEmailVerified",e.IS_PHONE_VERIFIED="isPhoneVerified",e.LAST_NAME="lastName",e.NOTE="note",e.ORDER_COUNT="orderCount",e.PASSWORD_UPDATE_DATE="passwordUpdateDate",e.PHONE="phone",e.PHONE_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__DISCOUNT_RATE="priceListRules.discountRate",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",e.REGISTRATION_SOURCE="registrationSource",e.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(E||(E={}));export{E as ResponseField,S as default};
|
|
@@ -67,6 +67,10 @@ export declare enum ResponseField {
|
|
|
67
67
|
CUSTOMER__PHONE = "customer.phone",
|
|
68
68
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
69
69
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
70
|
+
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
71
|
+
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
72
|
+
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
73
|
+
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
70
74
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
71
75
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
72
76
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,T){return e(void 0,void 0,void 0,(function(){var e,o,u,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,E({operationName:"customerSocialLogin",config:T,variables:S,allReturnFields:d,fields:r,query:function(e){return"\n\t\t\t\tquery customerSocialLogin (\n\t\t\t\t\t$code: String!,\n\t\t\t\t) {\n\t\t\t\t\tcustomerSocialLogin (\n\t\t\t\t\t\tcode: $code,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),o=e.data,u=e.errors,[2,new s(null==o?void 0:o.customerSocialLogin,u)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},d="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } } registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__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__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(S||(S={}));export{S as ResponseField,r as default};
|
|
@@ -64,6 +64,10 @@ export declare enum ResponseField {
|
|
|
64
64
|
PHONE = "phone",
|
|
65
65
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
66
66
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
67
|
+
PRICE_LIST_ID = "priceListId",
|
|
68
|
+
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
69
|
+
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
70
|
+
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
67
71
|
REGISTRATION_SOURCE = "registrationSource",
|
|
68
72
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
69
73
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as _,fetchQuery as d}from"@ikas/fe-api-client";var E,S=function(E,S){return e(void 0,void 0,void 0,(function(){var e,a,i,D;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,d({operationName:"getMyCustomer",config:S,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 _(null==a?void 0:a.getMyCustomer,i)];case 2:return D=t.sent(),[2,s(D)];case 3:return[2]}}))}))},r="{accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } } registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt }";!function(e){e.ACCOUNT_STATUS="accountStatus",e.ACCOUNT_STATUS_UPDATED_AT="accountStatusUpdatedAt",e.ADDRESSES__ADDRESS_LINE1="addresses.addressLine1",e.ADDRESSES__ADDRESS_LINE2="addresses.addressLine2",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="addresses.attributes.customerAttributeId",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="addresses.attributes.customerAttributeOptionId",e.ADDRESSES__ATTRIBUTES__VALUE="addresses.attributes.value",e.ADDRESSES__CITY__CODE="addresses.city.code",e.ADDRESSES__CITY__ID="addresses.city.id",e.ADDRESSES__CITY__NAME="addresses.city.name",e.ADDRESSES__COMPANY="addresses.company",e.ADDRESSES__COUNTRY__CODE="addresses.country.code",e.ADDRESSES__COUNTRY__ID="addresses.country.id",e.ADDRESSES__COUNTRY__ISO2="addresses.country.iso2",e.ADDRESSES__COUNTRY__ISO3="addresses.country.iso3",e.ADDRESSES__COUNTRY__NAME="addresses.country.name",e.ADDRESSES__CREATED_AT="addresses.createdAt",e.ADDRESSES__DELETED="addresses.deleted",e.ADDRESSES__DISTRICT__CODE="addresses.district.code",e.ADDRESSES__DISTRICT__ID="addresses.district.id",e.ADDRESSES__DISTRICT__NAME="addresses.district.name",e.ADDRESSES__FIRST_NAME="addresses.firstName",e.ADDRESSES__ID="addresses.id",e.ADDRESSES__IDENTITY_NUMBER="addresses.identityNumber",e.ADDRESSES__IS_DEFAULT="addresses.isDefault",e.ADDRESSES__LAST_NAME="addresses.lastName",e.ADDRESSES__PHONE="addresses.phone",e.ADDRESSES__POSTAL_CODE="addresses.postalCode",e.ADDRESSES__REGION__CREATED_AT="addresses.region.createdAt",e.ADDRESSES__REGION__DELETED="addresses.region.deleted",e.ADDRESSES__REGION__ID="addresses.region.id",e.ADDRESSES__REGION__NAME="addresses.region.name",e.ADDRESSES__REGION__UPDATED_AT="addresses.region.updatedAt",e.ADDRESSES__STATE__CODE="addresses.state.code",e.ADDRESSES__STATE__ID="addresses.state.id",e.ADDRESSES__STATE__NAME="addresses.state.name",e.ADDRESSES__TAX_NUMBER="addresses.taxNumber",e.ADDRESSES__TAX_OFFICE="addresses.taxOffice",e.ADDRESSES__TITLE="addresses.title",e.ADDRESSES__UPDATED_AT="addresses.updatedAt",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="attributes.customerAttributeId",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="attributes.customerAttributeOptionId",e.ATTRIBUTES__VALUE="attributes.value",e.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",e.ID="id",e.IS_EMAIL_VERIFIED="isEmailVerified",e.IS_PHONE_VERIFIED="isPhoneVerified",e.LAST_NAME="lastName",e.NOTE="note",e.ORDER_COUNT="orderCount",e.PASSWORD_UPDATE_DATE="passwordUpdateDate",e.PHONE="phone",e.PHONE_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__DISCOUNT_RATE="priceListRules.discountRate",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",e.REGISTRATION_SOURCE="registrationSource",e.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(E||(E={}));export{E as ResponseField,S as default};
|
|
@@ -7,6 +7,9 @@ export declare type QueryParams = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare enum ResponseField {
|
|
9
9
|
ANALYTICS4_ID = "analytics4Id",
|
|
10
|
+
B2B_SETTINGS__ALLOW_ONLY_APPROVED_CUSTOMERS_TO_LOGIN = "b2bSettings.allowOnlyApprovedCustomersToLogin",
|
|
11
|
+
B2B_SETTINGS__SHOW_PRICES = "b2bSettings.showPrices",
|
|
12
|
+
B2B_SETTINGS__SHOW_PRODUCTS = "b2bSettings.showProducts",
|
|
10
13
|
CREATED_AT = "createdAt",
|
|
11
14
|
DELETED = "deleted",
|
|
12
15
|
DOMAINS__CREATED_AT = "domains.createdAt",
|
|
@@ -80,6 +83,7 @@ export declare enum ResponseField {
|
|
|
80
83
|
THEMES__UPDATED_AT = "themes.updatedAt",
|
|
81
84
|
TIKTOK_PIXEL_ID = "tiktokPixelId",
|
|
82
85
|
TOKEN = "token",
|
|
86
|
+
TYPE = "type",
|
|
83
87
|
UNIVERSAL_ANALYTICS_ID = "universalAnalyticsId",
|
|
84
88
|
UPDATED_AT = "updatedAt"
|
|
85
89
|
}
|
|
@@ -160,6 +160,12 @@ export declare enum CustomerEmailSubscriptionStatusesEnum {
|
|
|
160
160
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
161
161
|
SUBSCRIBED = "SUBSCRIBED"
|
|
162
162
|
}
|
|
163
|
+
export declare enum CustomerPriceListRuleFilterTypeEnum {
|
|
164
|
+
CATEGORY = "CATEGORY",
|
|
165
|
+
PRODUCT = "PRODUCT",
|
|
166
|
+
PRODUCT_BRAND = "PRODUCT_BRAND",
|
|
167
|
+
PRODUCT_TAG = "PRODUCT_TAG"
|
|
168
|
+
}
|
|
163
169
|
export declare enum CustomerRegistrationSourceEnum {
|
|
164
170
|
apple = "apple",
|
|
165
171
|
credentials = "credentials",
|
|
@@ -448,6 +454,15 @@ export declare enum StockLocationTypeEnum {
|
|
|
448
454
|
PHYSICAL = "PHYSICAL",
|
|
449
455
|
VIRTUAL = "VIRTUAL"
|
|
450
456
|
}
|
|
457
|
+
export declare enum StorefrontB2BShowPricesEnum {
|
|
458
|
+
ALWAYS = "ALWAYS",
|
|
459
|
+
NEVER = "NEVER",
|
|
460
|
+
ONLY_TO_CUSTOMERS = "ONLY_TO_CUSTOMERS"
|
|
461
|
+
}
|
|
462
|
+
export declare enum StorefrontB2BShowProductsEnum {
|
|
463
|
+
ALWAYS = "ALWAYS",
|
|
464
|
+
ONLY_TO_CUSTOMERS = "ONLY_TO_CUSTOMERS"
|
|
465
|
+
}
|
|
451
466
|
export declare enum StorefrontPageTypesEnum {
|
|
452
467
|
BLOG = "BLOG",
|
|
453
468
|
BLOG_CATEGORY = "BLOG_CATEGORY",
|
|
@@ -474,6 +489,10 @@ export declare enum StorefrontThemeStatus {
|
|
|
474
489
|
READY = "READY",
|
|
475
490
|
WAITING = "WAITING"
|
|
476
491
|
}
|
|
492
|
+
export declare enum StorefrontTypeEnum {
|
|
493
|
+
B2B_STOREFRONT = "B2B_STOREFRONT",
|
|
494
|
+
STOREFRONT = "STOREFRONT"
|
|
495
|
+
}
|
|
477
496
|
export declare enum TemplateEnum {
|
|
478
497
|
ABANDONED_CHECKOUT = "ABANDONED_CHECKOUT",
|
|
479
498
|
CONTACT_FORM_MERCHANT = "CONTACT_FORM_MERCHANT",
|
|
@@ -2447,6 +2466,11 @@ export interface Storefront {
|
|
|
2447
2466
|
universalAnalyticsId: string | null;
|
|
2448
2467
|
updatedAt: any | null;
|
|
2449
2468
|
}
|
|
2469
|
+
export interface StorefrontB2BSettings {
|
|
2470
|
+
allowOnlyApprovedCustomersToLogin: boolean;
|
|
2471
|
+
showPrices: StorefrontB2BShowPricesEnum;
|
|
2472
|
+
showProducts: StorefrontB2BShowProductsEnum;
|
|
2473
|
+
}
|
|
2450
2474
|
export interface StorefrontDomain {
|
|
2451
2475
|
createdAt: any | null;
|
|
2452
2476
|
deleted: boolean | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var E,R,T,A,_,I,C,O,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,CE,OE,DE,NE,LE,SE,UE,PE,ME,FE,nE,HE,GE,VE,YE,BE,oE,cE,fE,tE;!function(E){E.EMAIL="EMAIL",E.SMS="SMS"}(E||(E={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(T||(T={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CART="CART",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW"}(A||(A={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(_||(_={})),function(E){E.DO_NOTHING="DO_NOTHING",E.OPEN_CART="OPEN_CART",E.OPEN_CHECKOUT="OPEN_CHECKOUT"}(I||(I={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(C||(C={})),function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(O||(O={})),function(E){E.CHECKOUT="CHECKOUT",E.POST_CHECKOUT="POST_CHECKOUT"}(D||(D={})),function(E){E.ALL_PRODUCTS="ALL_PRODUCTS",E.CATEGORY="CATEGORY",E.MIN_CART_AMOUNT="MIN_CART_AMOUNT",E.PRODUCT="PRODUCT",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(N||(N={})),function(E){E.CROSS_SELL="CROSS_SELL",E.UPSELL="UPSELL"}(L||(L={})),function(E){E.BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO"}(S||(S={})),function(E){E.ACCEPTED="ACCEPTED",E.REJECTED="REJECTED",E.REMOVED="REMOVED",E.WAITING_FOR_ACTION="WAITING_FOR_ACTION"}(U||(U={})),function(E){E.ADMIN="ADMIN",E.CUSTOMER="CUSTOMER"}(P||(P={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(M||(M={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(F||(F={})),function(E){E.IN="IN",E.NOT_IN="NOT_IN"}(n||(n={})),function(E){E.CAMPAIGN="CAMPAIGN",E.CATEGORY="CATEGORY",E.CREATED_AT="CREATED_AT",E.DISCOUNTED_PRODUCTS="DISCOUNTED_PRODUCTS",E.PRICE_RANGE="PRICE_RANGE",E.PRODUCT_ATTRIBUTE="PRODUCT_ATTRIBUTE",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT_VALUE="VARIANT_VALUE"}(H||(H={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(G||(G={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(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.apple="apple",E.credentials="credentials",E.facebook="facebook",E.google="google"}(Q||(Q={})),function(E){E.APPROVED="APPROVED",E.REJECTED="REJECTED",E.WAITING="WAITING"}(X||(X={})),function(E){E.facebook="facebook",E.google="google"}(J||(J={})),function(E){E.PURCHASED_TOGETHER="PURCHASED_TOGETHER",E.SAMPLING="SAMPLING",E.VIEWED_TOGETHER="VIEWED_TOGETHER"}(e||(e={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(a||(a={})),function(E){E.COMPANY="COMPANY",E.INDIVIDUAL="INDIVIDUAL",E.OTHER="OTHER"}(g||(g={})),function(E){E.DAY="DAY",E.HOUR="HOUR",E.MINUTE="MINUTE"}(l||(l={})),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"}(Z||(Z={})),function(E){E.CORPORATE="CORPORATE",E.INDIVIDUAL="INDIVIDUAL"}(p||(p={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(b||(b={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(k||(k={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(r||(r={})),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"}(d||(d={})),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"}(s||(s={})),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"}(v||(v={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(x||(x={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.DIGITAL_DELIVERY="DIGITAL_DELIVERY",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(h||(h={})),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"}(j||(j={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(m||(m={})),function(E){E.BOOLEAN="BOOLEAN",E.NUMBER="NUMBER",E.PASSWORD="PASSWORD",E.TEXT="TEXT"}(q||(q={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(w||(w={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(y||(y={})),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"}(z||(z={})),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"}($||($={})),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"}(EE||(EE={})),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"}(RE||(RE={})),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"}(TE||(TE={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(AE||(AE={})),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"}(_E||(_E={})),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"}(IE||(IE={})),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"}(CE||(CE={})),function(E){E.RAFFLE="RAFFLE"}(OE||(OE={})),function(E){E.COMPLETED="COMPLETED",E.IN_PROGRESS="IN_PROGRESS",E.LOSER="LOSER",E.WINNER="WINNER"}(DE||(DE={})),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"}(NE||(NE={})),function(E){E.ASC="ASC",E.DESC="DESC"}(LE||(LE={})),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"}(SE||(SE={})),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"}(UE||(UE={})),function(E){E.PHYSICAL="PHYSICAL",E.VIRTUAL="VIRTUAL"}(PE||(PE={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY",E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.CUSTOM="CUSTOM",E.PRODUCT="PRODUCT"}(ME||(ME={})),function(E){E.APPROVED="APPROVED",E.MARKETING_PERMISSION="MARKETING_PERMISSION",E.REQUIRED="REQUIRED",E.SHOW="SHOW"}(FE||(FE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(nE||(nE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(HE||(HE={})),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"}(GE||(GE={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(VE||(VE={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(YE||(YE={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(BE||(BE={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(oE||(oE={})),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"}(cE||(cE={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(fE||(fE={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(tE||(tE={}));export{E as AbandonedCartSettingsNotificationTypeEnum,R as BlogMetadataTargetTypeEnum,T as CampaignApplicablePriceEnum,A as CampaignCreatedForEnum,_ as CampaignFilterTypeEnum,I as CampaignOfferFollowUpActionTypeEnum,C as CampaignOfferProductApplicablePriceEnum,O as CampaignOfferProductShowCriteriaEnum,D as CampaignOfferTargetPageTypeEnum,N as CampaignOfferTriggerFilterTypeEnum,L as CampaignOfferTypeEnum,S as CampaignTypeEnum,U as CartCampaignOfferStatus,P as CartCreatedByEnum,M as CartStatusEnum,F as CartV2StatusEnum,n as CategoryConditionMethodEnum,H as CategoryConditionTypeEnum,G as CategoryProductsOrderTypeEnum,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 CustomerRegistrationSourceEnum,X as CustomerReviewStatusEnum,J as CustomerSocialLoginProviderEnum,e as GetSuggestedProductsMethodEnum,a as HTMLMetaDataTargetTypeEnum,g as InvoiceTypeEnum,l as LocalDeliverySettingsDeliveryTimeType,Z as MasterPassOperationTypeEnum,p as MerchantSettingsAddressTypeEnum,b as OrderAdjustmentEnum,k as OrderAmountTypeEnum,r as OrderCancelledReasonEnum,d as OrderLineItemStatusEnum,s as OrderPackageFulfillStatusEnum,v as OrderPackageStatusEnum,x as OrderPaymentStatusEnum,h as OrderShippingMethodEnum,j as OrderStatusEnum,m as PaymentGatewayAdditionalPriceTypeEnum,q as PaymentGatewaySettingsTypeEnum,w as PaymentGatewayTransactionFeeTypeEnum,y as PaymentGatewayTypeEnum,z as PaymentMethodTypeEnum,$ as ProductAttributeTypeEnum,EE as ProductFilterDisplayTypeEnum,RE as ProductFilterSortTypeEnum,TE as ProductFilterTypeEnum,AE as ProductOptionSelectTypeEnum,_E as ProductOptionTypeEnum,IE as ProductSearchShowStockOptionEnum,CE as ProductUnitTypeEnum,OE as RaffleMetadataTargetTypeEnum,DE as RaffleParticipantStatusEnum,NE as SFAnalyticsTrafficSourceEnum,LE as SortByDirectionEnum,SE as SortByTypeEnum,UE as StockLocationDeliveryTimeEnum,PE as StockLocationTypeEnum,ME as StorefrontPageTypesEnum,FE as StorefrontRegisterSettingsCheckboxType,nE as StorefrontStatusTypes,HE as StorefrontThemeStatus,GE as TemplateEnum,VE as TransactionCardAssociationEnum,YE as TransactionCardTypeEnum,BE as TransactionStatusEnum,oE as TransactionTypeEnum,cE as UserAgentDeviceType,fE as VariantSelectionTypeEnum,tE as VerificationTypeEnum};
|
|
1
|
+
var E,R,T,A,_,I,C,O,D,N,L,S,U,P,M,F,n,H,G,Y,V,B,o,c,f,t,i,u,W,K,Q,X,J,e,a,g,l,Z,p,b,k,r,d,s,v,x,h,j,m,q,w,y,z,$,EE,RE,TE,AE,_E,IE,CE,OE,DE,NE,LE,SE,UE,PE,ME,FE,nE,HE,GE,YE,VE,BE,oE,cE,fE,tE,iE,uE,WE,KE;!function(E){E.EMAIL="EMAIL",E.SMS="SMS"}(E||(E={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(T||(T={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CART="CART",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW"}(A||(A={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(_||(_={})),function(E){E.DO_NOTHING="DO_NOTHING",E.OPEN_CART="OPEN_CART",E.OPEN_CHECKOUT="OPEN_CHECKOUT"}(I||(I={})),function(E){E.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(C||(C={})),function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(O||(O={})),function(E){E.CHECKOUT="CHECKOUT",E.POST_CHECKOUT="POST_CHECKOUT"}(D||(D={})),function(E){E.ALL_PRODUCTS="ALL_PRODUCTS",E.CATEGORY="CATEGORY",E.MIN_CART_AMOUNT="MIN_CART_AMOUNT",E.PRODUCT="PRODUCT",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(N||(N={})),function(E){E.CROSS_SELL="CROSS_SELL",E.UPSELL="UPSELL"}(L||(L={})),function(E){E.BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO"}(S||(S={})),function(E){E.ACCEPTED="ACCEPTED",E.REJECTED="REJECTED",E.REMOVED="REMOVED",E.WAITING_FOR_ACTION="WAITING_FOR_ACTION"}(U||(U={})),function(E){E.ADMIN="ADMIN",E.CUSTOMER="CUSTOMER"}(P||(P={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(M||(M={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(F||(F={})),function(E){E.IN="IN",E.NOT_IN="NOT_IN"}(n||(n={})),function(E){E.CAMPAIGN="CAMPAIGN",E.CATEGORY="CATEGORY",E.CREATED_AT="CREATED_AT",E.DISCOUNTED_PRODUCTS="DISCOUNTED_PRODUCTS",E.PRICE_RANGE="PRICE_RANGE",E.PRODUCT_ATTRIBUTE="PRODUCT_ATTRIBUTE",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT_VALUE="VARIANT_VALUE"}(H||(H={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(G||(G={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(Y||(Y={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(V||(V={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(B||(B={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(o||(o={})),function(E){E.DEFAULT="DEFAULT",E.INVISIBLE="INVISIBLE",E.OPEN="OPEN"}(c||(c={})),function(E){E.LEFT="LEFT",E.RIGHT="RIGHT"}(f||(f={})),function(E){E.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",E.DECLINED_ACCOUNT_INVITATION="DECLINED_ACCOUNT_INVITATION",E.DISABLED_ACCOUNT="DISABLED_ACCOUNT",E.INVITED_TO_CREATE_ACCOUNT="INVITED_TO_CREATE_ACCOUNT"}(t||(t={})),function(E){E.INVISIBLE="INVISIBLE",E.READ="READ",E.WRITE="WRITE"}(i||(i={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(u||(u={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.TEXT="TEXT"}(W||(W={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(K||(K={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG"}(Q||(Q={})),function(E){E.apple="apple",E.credentials="credentials",E.facebook="facebook",E.google="google"}(X||(X={})),function(E){E.APPROVED="APPROVED",E.REJECTED="REJECTED",E.WAITING="WAITING"}(J||(J={})),function(E){E.facebook="facebook",E.google="google"}(e||(e={})),function(E){E.PURCHASED_TOGETHER="PURCHASED_TOGETHER",E.SAMPLING="SAMPLING",E.VIEWED_TOGETHER="VIEWED_TOGETHER"}(a||(a={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(g||(g={})),function(E){E.COMPANY="COMPANY",E.INDIVIDUAL="INDIVIDUAL",E.OTHER="OTHER"}(l||(l={})),function(E){E.DAY="DAY",E.HOUR="HOUR",E.MINUTE="MINUTE"}(Z||(Z={})),function(E){E.CHECK_MASTER_PASS_USER="CHECK_MASTER_PASS_USER",E.DELETE_CARD="DELETE_CARD",E.DIRECT_PURCHASE="DIRECT_PURCHASE",E.FORGOT_PASSWORD="FORGOT_PASSWORD",E.LIST_CARDS="LIST_CARDS",E.PURCHASE="PURCHASE",E.REGISTER_CARD="REGISTER_CARD"}(p||(p={})),function(E){E.CORPORATE="CORPORATE",E.INDIVIDUAL="INDIVIDUAL"}(b||(b={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(k||(k={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(r||(r={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(d||(d={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNFULFILLED="UNFULFILLED"}(s||(s={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER"}(v||(v={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_DELIVERED="PARTIALLY_DELIVERED",E.PARTIALLY_FULFILLED="PARTIALLY_FULFILLED",E.PARTIALLY_READY_FOR_SHIPMENT="PARTIALLY_READY_FOR_SHIPMENT",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER",E.UNFULFILLED="UNFULFILLED"}(x||(x={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(h||(h={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.DIGITAL_DELIVERY="DIGITAL_DELIVERY",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(j||(j={})),function(E){E.CANCELLED="CANCELLED",E.CREATED="CREATED",E.DRAFT="DRAFT",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED"}(m||(m={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(q||(q={})),function(E){E.BOOLEAN="BOOLEAN",E.NUMBER="NUMBER",E.PASSWORD="PASSWORD",E.TEXT="TEXT"}(w||(w={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(y||(y={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(z||(z={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BANK_REDIRECT="BANK_REDIRECT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.DIRECT_DEBIT="DIRECT_DEBIT",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.PAY_LATER="PAY_LATER",E.SLICE_IT="SLICE_IT",E.WALLET="WALLET"}($||($={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.HTML="HTML",E.IMAGE="IMAGE",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.PRODUCT="PRODUCT",E.TABLE="TABLE",E.TEXT="TEXT"}(EE||(EE={})),function(E){E.BOX="BOX",E.DATE_RANGE="DATE_RANGE",E.LIST="LIST",E.NUMBER_RANGE="NUMBER_RANGE",E.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",E.SWATCH="SWATCH"}(RE||(RE={})),function(E){E.ALPHABETICAL_ASC="ALPHABETICAL_ASC",E.ALPHABETICAL_DESC="ALPHABETICAL_DESC",E.CUSTOM_SORT="CUSTOM_SORT",E.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",E.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(TE||(TE={})),function(E){E.ATTRIBUTE="ATTRIBUTE",E.AVAILABLE_VARIANT_VALUE="AVAILABLE_VARIANT_VALUE",E.BRAND="BRAND",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.PRICE="PRICE",E.STOCK_STATUS="STOCK_STATUS",E.TAG="TAG",E.VARIANT_TYPE="VARIANT_TYPE"}(AE||(AE={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(_E||(_E={})),function(E){E.CHECKBOX="CHECKBOX",E.CHOICE="CHOICE",E.COLOR_PICKER="COLOR_PICKER",E.DATE_PICKER="DATE_PICKER",E.FILE="FILE",E.IMAGE="IMAGE",E.TEXT="TEXT",E.TEXT_AREA="TEXT_AREA"}(IE||(IE={})),function(E){E.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",E.SHOW_ALL="SHOW_ALL",E.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(CE||(CE={})),function(E){E.CENTILITER="CENTILITER",E.CENTIMETER="CENTIMETER",E.CUBIC_METERS="CUBIC_METERS",E.CUSTOM="CUSTOM",E.GRAM="GRAM",E.KILOGRAM="KILOGRAM",E.LITER="LITER",E.METER="METER",E.MILLIGRAM="MILLIGRAM",E.MILLILITER="MILLILITER",E.MILLIMETER="MILLIMETER",E.SQUARE_METERS="SQUARE_METERS"}(OE||(OE={})),function(E){E.RAFFLE="RAFFLE"}(DE||(DE={})),function(E){E.COMPLETED="COMPLETED",E.IN_PROGRESS="IN_PROGRESS",E.LOSER="LOSER",E.WINNER="WINNER"}(NE||(NE={})),function(E){E.ADS_OTHER="ADS_OTHER",E.AFFILIATE="AFFILIATE",E.BING_ADS="BING_ADS",E.DIRECT="DIRECT",E.DISPLAY="DISPLAY",E.EMAIL="EMAIL",E.FACEBOOK_ADS="FACEBOOK_ADS",E.GOOGLE_ADS="GOOGLE_ADS",E.INSTAGRAM_ADS="INSTAGRAM_ADS",E.ORGANIC_SEARCH="ORGANIC_SEARCH",E.OTHER="OTHER",E.PAID_TRAFFIC="PAID_TRAFFIC",E.REFERRAL="REFERRAL",E.SOCIAL="SOCIAL"}(LE||(LE={})),function(E){E.ASC="ASC",E.DESC="DESC"}(SE||(SE={})),function(E){E.AVERAGE_RATING="AVERAGE_RATING",E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE",E.REVIEW_COUNT="REVIEW_COUNT",E.SALE_COUNT="SALE_COUNT"}(UE||(UE={})),function(E){E.TWO_IN_FOUR_DAYS="TWO_IN_FOUR_DAYS",E.WITHIN_FOUR_HOURS="WITHIN_FOUR_HOURS",E.WITHIN_ONE_HOUR="WITHIN_ONE_HOUR",E.WITHIN_PLUS_FIVE_DAYS="WITHIN_PLUS_FIVE_DAYS",E.WITHIN_TWENTY_FOUR_HOURS="WITHIN_TWENTY_FOUR_HOURS",E.WITHIN_TWO_HOURS="WITHIN_TWO_HOURS"}(PE||(PE={})),function(E){E.PHYSICAL="PHYSICAL",E.VIRTUAL="VIRTUAL"}(ME||(ME={})),function(E){E.ALWAYS="ALWAYS",E.NEVER="NEVER",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(FE||(FE={})),function(E){E.ALWAYS="ALWAYS",E.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS"}(nE||(nE={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY",E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.CUSTOM="CUSTOM",E.PRODUCT="PRODUCT"}(HE||(HE={})),function(E){E.APPROVED="APPROVED",E.MARKETING_PERMISSION="MARKETING_PERMISSION",E.REQUIRED="REQUIRED",E.SHOW="SHOW"}(GE||(GE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(YE||(YE={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(VE||(VE={})),function(E){E.B2B_STOREFRONT="B2B_STOREFRONT",E.STOREFRONT="STOREFRONT"}(BE||(BE={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CONTACT_FORM_MERCHANT="CONTACT_FORM_MERCHANT",E.CUSTOMER_ACCOUNT_INVITATION="CUSTOMER_ACCOUNT_INVITATION",E.CUSTOMER_RESET_PASSWORD="CUSTOMER_RESET_PASSWORD",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW",E.CUSTOMER_REVIEW_REPLY="CUSTOMER_REVIEW_REPLY",E.CUSTOM_MAIL="CUSTOM_MAIL",E.CUSTOM_TRANSACTION_VERIFICATION="CUSTOM_TRANSACTION_VERIFICATION",E.MERCHANT_CUSTOMER_REVIEW="MERCHANT_CUSTOMER_REVIEW",E.MERCHANT_LICENCE_E_INVOICE="MERCHANT_LICENCE_E_INVOICE",E.MERCHANT_RESET_PASSWORD="MERCHANT_RESET_PASSWORD",E.MERCHANT_WELCOME="MERCHANT_WELCOME",E.MONEY_TRANSFER_REMINDER="MONEY_TRANSFER_REMINDER",E.ORDER_CANCELLED="ORDER_CANCELLED",E.ORDER_CLICK_AND_COLLECT="ORDER_CLICK_AND_COLLECT",E.ORDER_CREATED="ORDER_CREATED",E.ORDER_CREATED_MERCHANT="ORDER_CREATED_MERCHANT",E.ORDER_CREATED_MONEY_TRANSFER="ORDER_CREATED_MONEY_TRANSFER",E.ORDER_E_INVOICE="ORDER_E_INVOICE",E.ORDER_FULFILLED="ORDER_FULFILLED",E.ORDER_PACKAGE_DELIVERED="ORDER_PACKAGE_DELIVERED",E.ORDER_READY_FOR_PICK_UP="ORDER_READY_FOR_PICK_UP",E.ORDER_READY_FOR_SHIPMENT="ORDER_READY_FOR_SHIPMENT",E.ORDER_REFUNDED="ORDER_REFUNDED",E.ORDER_REFUND_REQUEST="ORDER_REFUND_REQUEST",E.ORDER_REFUND_REQUEST_APPROVE="ORDER_REFUND_REQUEST_APPROVE",E.ORDER_REFUND_REQUEST_MERCHANT="ORDER_REFUND_REQUEST_MERCHANT",E.ORDER_REFUND_REQUEST_REJECT="ORDER_REFUND_REQUEST_REJECT",E.PARTNER_MERCHANT_OPEN="PARTNER_MERCHANT_OPEN",E.PARTNER_STAFF_INVITE="PARTNER_STAFF_INVITE",E.PRODUCT_BACK_IN_STOCK_REMINDER="PRODUCT_BACK_IN_STOCK_REMINDER",E.PRODUCT_OUT_OF_STOCK_REMINDER="PRODUCT_OUT_OF_STOCK_REMINDER",E.RAFFLE_PARTICIPANT_CREATED="RAFFLE_PARTICIPANT_CREATED",E.RAFFLE_PARTICIPANT_WINNER="RAFFLE_PARTICIPANT_WINNER",E.STAFF_INVITE="STAFF_INVITE",E.UPDATE_TRACKING_INFO="UPDATE_TRACKING_INFO",E.WELCOME="WELCOME",E.WRONG_EXCEL_IMPORT="WRONG_EXCEL_IMPORT"}(oE||(oE={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(cE||(cE={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(fE||(fE={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(tE||(tE={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(iE||(iE={})),function(E){E.CAMERA="CAMERA",E.CAR="CAR",E.CONSOLE="CONSOLE",E.DESKTOP="DESKTOP",E.FEATURE_PHONE="FEATURE_PHONE",E.OTHER="OTHER",E.PERIPHERAL="PERIPHERAL",E.PHABLET="PHABLET",E.PORTABLE_MEDIA_PLAYER="PORTABLE_MEDIA_PLAYER",E.SMARTPHONE="SMARTPHONE",E.SMART_DISPLAY="SMART_DISPLAY",E.SMART_SPEAKER="SMART_SPEAKER",E.TABLET="TABLET",E.TELEVISION="TELEVISION",E.WEARABLE="WEARABLE"}(uE||(uE={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(WE||(WE={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(KE||(KE={}));export{E as AbandonedCartSettingsNotificationTypeEnum,R as BlogMetadataTargetTypeEnum,T as CampaignApplicablePriceEnum,A as CampaignCreatedForEnum,_ as CampaignFilterTypeEnum,I as CampaignOfferFollowUpActionTypeEnum,C as CampaignOfferProductApplicablePriceEnum,O as CampaignOfferProductShowCriteriaEnum,D as CampaignOfferTargetPageTypeEnum,N as CampaignOfferTriggerFilterTypeEnum,L as CampaignOfferTypeEnum,S as CampaignTypeEnum,U as CartCampaignOfferStatus,P as CartCreatedByEnum,M as CartStatusEnum,F as CartV2StatusEnum,n as CategoryConditionMethodEnum,H as CategoryConditionTypeEnum,G as CategoryProductsOrderTypeEnum,Y as CheckoutRecoveryEmailStatusEnum,V as CheckoutRecoveryStatusEnum,B as CheckoutRequirementEnum,o as CheckoutStatusEnum,c as CouponCodeRequirementEnum,f as CurrencyFormatSymbolPosition,t as CustomerAccountStatusEnum,i as CustomerAttributePermissionEnum,u as CustomerAttributeRegisterPageRequirementEnum,W as CustomerAttributeTypeEnum,K as CustomerEmailSubscriptionStatusesEnum,Q as CustomerPriceListRuleFilterTypeEnum,X as CustomerRegistrationSourceEnum,J as CustomerReviewStatusEnum,e as CustomerSocialLoginProviderEnum,a as GetSuggestedProductsMethodEnum,g as HTMLMetaDataTargetTypeEnum,l as InvoiceTypeEnum,Z as LocalDeliverySettingsDeliveryTimeType,p as MasterPassOperationTypeEnum,b as MerchantSettingsAddressTypeEnum,k as OrderAdjustmentEnum,r as OrderAmountTypeEnum,d as OrderCancelledReasonEnum,s as OrderLineItemStatusEnum,v as OrderPackageFulfillStatusEnum,x as OrderPackageStatusEnum,h as OrderPaymentStatusEnum,j as OrderShippingMethodEnum,m as OrderStatusEnum,q as PaymentGatewayAdditionalPriceTypeEnum,w as PaymentGatewaySettingsTypeEnum,y as PaymentGatewayTransactionFeeTypeEnum,z as PaymentGatewayTypeEnum,$ as PaymentMethodTypeEnum,EE as ProductAttributeTypeEnum,RE as ProductFilterDisplayTypeEnum,TE as ProductFilterSortTypeEnum,AE as ProductFilterTypeEnum,_E as ProductOptionSelectTypeEnum,IE as ProductOptionTypeEnum,CE as ProductSearchShowStockOptionEnum,OE as ProductUnitTypeEnum,DE as RaffleMetadataTargetTypeEnum,NE as RaffleParticipantStatusEnum,LE as SFAnalyticsTrafficSourceEnum,SE as SortByDirectionEnum,UE as SortByTypeEnum,PE as StockLocationDeliveryTimeEnum,ME as StockLocationTypeEnum,FE as StorefrontB2BShowPricesEnum,nE as StorefrontB2BShowProductsEnum,HE as StorefrontPageTypesEnum,GE as StorefrontRegisterSettingsCheckboxType,YE as StorefrontStatusTypes,VE as StorefrontThemeStatus,BE as StorefrontTypeEnum,oE as TemplateEnum,cE as TransactionCardAssociationEnum,fE as TransactionCardTypeEnum,tE as TransactionStatusEnum,iE as TransactionTypeEnum,uE as UserAgentDeviceType,WE as VariantSelectionTypeEnum,KE as VerificationTypeEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__assign as n,__spreadArray as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as i}from"@ikas/fe-api-client";import{IkasStorefrontConfig as a}from"@ikas/storefront-config";import{initIkasProduct as u,IkasBrandOrderType as o,IkasCategoryProductsOrderType as d,initIkasProductAttribute as l,initIkasProductOptionSet as s}from"@ikas/storefront-models";function c(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function p(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function v(r,o){var d,l;return t(this,void 0,void 0,(function(){var t,s,c,p,v,m;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().default,s=null===(d=a.getCurrentRouting())||void 0===d?void 0:d.dynamicCurrencySettings,p=t,v=[{input:n({locale:a.getCurrentLocale(),dynamicCurrencySettings:s?{roundingFormat:s.roundingFormat,targetCurrencyCode:s.targetCurrencyCode}:void 0},r.input)}],[4,C(o)];case 2:return[4,p.apply(void 0,v.concat([e.sent()]))];case 3:return c=e.sent(),null==(m=null===(l=c.data)||void 0===l?void 0:l.results.map(L))||m.forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(c.data?n(n({},c.data),{data:m}):null,c.graphQLErrors)]}}))}))}function m(n){var r,a;return t(this,void 0,void 0,(function(){var t,u,o;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductFilterData.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),u=null===(r=t.data)||void 0===r?void 0:r.filters,o=(null===(a=t.data)||void 0===a?void 0:a.categories)||null,[2,new i(t.data?{filters:u,categories:o}:null,t.graphQLErrors)]}}))}))}function f(r){var o,d;return t(this,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getRelatedProducts.js")];case 1:return t=e.sent().default,l=null===(o=a.getCurrentRouting())||void 0===o?void 0:o.dynamicCurrencySettings,[4,t(n({locale:a.getCurrentLocale(),dynamicCurrencySettings:l?{roundingFormat:l.roundingFormat,targetCurrencyCode:l.targetCurrencyCode}:void 0},r))];case 2:return s=e.sent(),(c=(null===(d=null==s?void 0:s.data)||void 0===d?void 0:d.map((function(t){return L(t)})))||[]).forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(s.data?{data:c,count:s.data.length,facets:null,limit:20,page:1,totalCount:s.data.length}:null,s.graphQLErrors)]}}))}))}function g(r){var o,d;return t(this,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getSuggestedProducts.js")];case 1:return t=e.sent().default,l=null===(o=a.getCurrentRouting())||void 0===o?void 0:o.dynamicCurrencySettings,[4,t(n({locale:a.getCurrentLocale(),dynamicCurrencySettings:l?{roundingFormat:l.roundingFormat,targetCurrencyCode:l.targetCurrencyCode}:void 0},r))];case 2:return s=e.sent(),(c=(null===(d=null==s?void 0:s.data)||void 0===d?void 0:d.map((function(t){return L(t)})))||[]).forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(s.data?{data:c,count:s.data.length,facets:null,limit:20,page:1,totalCount:s.data.length}:null,s.graphQLErrors)]}}))}))}function b(n){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductAttribute.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),null==(r=t.data)||r.forEach((function(t){return l(t,a.getCurrentLocale())})),[2,new i(r,t.graphQLErrors)]}}))}))}function h(n){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductCampaigns.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new i(null===(r=t.data)||void 0===r?void 0:r.map((function(t){return t})),t.graphQLErrors)]}}))}))}function y(n){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getVariantStockLocations.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new i(null===(r=t.data)||void 0===r?void 0:r.stockLocations.map((function(t){return t})),t.graphQLErrors)]}}))}))}function I(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/getOrderLineFile.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function A(n){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductOptionSet.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),null==(r=t.data)||r.forEach((function(t){return s(t,a.getCurrentLocale())})),[2,new i(r,t.graphQLErrors)]}}))}))}function C(n){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().ResponseField,i=["DATA"],n&&n.length&&n.map((function(e){var n=Object.keys(t).filter((function(t){return t.startsWith(e)}));i=r(r([],i,!0),n,!0)})),[2,Object.entries(t).filter((function(t){var e=t[0];return!i.includes(e)})).map((function(t){return t[1]}))]}}))}))}function L(t){var e,r,i,u,l="local"===process.env.NEXT_PUBLIC_ENV;return{id:t.id,type:t.type,groupVariantsByVariantTypeId:t.groupVariantsByVariantTypeId,deleted:t.deleted,attributes:(null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,r,i,a,u,o;return n(n({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(r=t.productAttributeOption)||void 0===r?void 0:r.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:null,type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],brand:t.brand?n(n({},t.brand),{id:t.brand.id,name:t.brand.name,createdAt:0,updatedAt:0,description:null,imageId:t.brand.imageId,orderType:o.BEST_SELLER,metaData:{id:"",createdAt:0,updatedAt:0,slug:t.brand.slug||""}}):null,campaigns:null===(r=t.campaigns)||void 0===r?void 0:r.map((function(t){return{campaign:t,variantIds:[]}})),categories:(null===(i=t.categories)||void 0===i?void 0:i.map((function(t){return n(n({},t),{categoryPath:t.path.map((function(t){return t.name})),description:null,imageId:null,parentId:null,metaData:t.slug?{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug}:null,categoryPathItems:t.path.map((function(t){return{metaData:{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug||""},description:null,name:t.name,translations:t.translations,imageId:null,id:t.id,createdAt:0,updatedAt:0}})),createdAt:0,updatedAt:0,orderType:d.BEST_SELLER,conditions:null,conditionValues:null})})))||[],tags:t.tags||[],description:t.description||"",averageRating:t.averageRating,reviewCount:t.reviewCount,stars:t.stars,baseUnit:t.baseUnit,metaData:n(n({},t.metaData),{id:"",createdAt:0,updatedAt:0,slug:(null===(u=t.metaData)||void 0===u?void 0:u.slug)||""})||null,name:t.name,shortDescription:t.shortDescription||"",productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return{order:t.order,variantType:{id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return{id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id}})).filter((function(e){return t.variantValueIds.includes(e.id)}))},variantValueIds:t.variantValueIds}})),variants:t.variants.map((function(e){var r,i,u,o,d;return n(n({},e),{id:e.id,productId:t.id,images:(null===(r=e.images)||void 0===r?void 0:r.map((function(t){return{imageId:t.id,isMain:t.isMain||!1,isVideo:t.isVideo,order:t.order,fileName:t.fileName}})))||null,sellIfOutOfStock:e.sellIfOutOfStock||!1,unit:e.unit,attributes:(null===(i=e.attributes)||void 0===i?void 0:i.map((function(t){var e,r,i,a,u,o;return n(n({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(r=t.productAttributeOption)||void 0===r?void 0:r.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:"",type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],sku:e.sku,barcodeList:e.barcodeList||null,price:null===(u=e.prices)||void 0===u?void 0:u.find((function(t){return a.getPriceListId()?t.priceListId===a.getPriceListId():null===t.priceListId})),stock:(null===(o=e.stocks)||void 0===o?void 0:o.filter((function(t){var e;return l||a.getIsEditor()||(null===(e=a.getStockLocationIds())||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0))||0,variantValues:(null===(d=e.variantValues)||void 0===d?void 0:d.map((function(e){var n=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),r=null==n?void 0:n.variantType.values.find((function(t){return t.id===e.variantValueId}));return{id:e.variantValueId,name:(null==r?void 0:r.name)||"",colorCode:(null==r?void 0:r.colorCode)||"",thumbnailImageId:(null==r?void 0:r.thumbnailImageId)||"",variantTypeId:(null==n?void 0:n.variantType.id)||""}})))||[],isActive:e.isActive||!1,bundleSettings:e.bundleSettings||null})}))}}export{I as getOrderLineFile,h as getProductCampaigns,m as getProductFilterData,f as getRelatedProducts,g as getSuggestedProducts,y as getVariantStockLocations,b as listProductAttribute,c as listProductBackInStockRemind,A as listProductOptionSet,p as saveProductBackInStockRemind,v as searchProducts};
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as n,__spreadArray as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as i}from"@ikas/fe-api-client";import{IkasStorefrontConfig as a}from"@ikas/storefront-config";import{initIkasProduct as u,IkasBrandOrderType as o,IkasCategoryProductsOrderType as d,initIkasProductAttribute as l,initIkasProductOptionSet as s}from"@ikas/storefront-models";function c(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function p(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function v(r,o){var d,l;return t(this,void 0,void 0,(function(){var t,s,c,p,v,m;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().default,s=null===(d=a.getCurrentRouting())||void 0===d?void 0:d.dynamicCurrencySettings,p=t,v=[{input:n({locale:a.getCurrentLocale(),dynamicCurrencySettings:s?{roundingFormat:s.roundingFormat,targetCurrencyCode:s.targetCurrencyCode}:void 0},r.input)}],[4,C(o)];case 2:return[4,p.apply(void 0,v.concat([e.sent()]))];case 3:return c=e.sent(),null==(m=null===(l=c.data)||void 0===l?void 0:l.results.map(T))||m.forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(c.data?n(n({},c.data),{data:m}):null,c.graphQLErrors)]}}))}))}function m(n){var r,a;return t(this,void 0,void 0,(function(){var t,u,o;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductFilterData.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),u=null===(r=t.data)||void 0===r?void 0:r.filters,o=(null===(a=t.data)||void 0===a?void 0:a.categories)||null,[2,new i(t.data?{filters:u,categories:o}:null,t.graphQLErrors)]}}))}))}function f(r){var o,d;return t(this,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getRelatedProducts.js")];case 1:return t=e.sent().default,l=null===(o=a.getCurrentRouting())||void 0===o?void 0:o.dynamicCurrencySettings,[4,t(n({locale:a.getCurrentLocale(),dynamicCurrencySettings:l?{roundingFormat:l.roundingFormat,targetCurrencyCode:l.targetCurrencyCode}:void 0},r))];case 2:return s=e.sent(),(c=(null===(d=null==s?void 0:s.data)||void 0===d?void 0:d.map((function(t){return T(t)})))||[]).forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(s.data?{data:c,count:s.data.length,facets:null,limit:20,page:1,totalCount:s.data.length}:null,s.graphQLErrors)]}}))}))}function g(r){var o,d;return t(this,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getSuggestedProducts.js")];case 1:return t=e.sent().default,l=null===(o=a.getCurrentRouting())||void 0===o?void 0:o.dynamicCurrencySettings,[4,t(n({locale:a.getCurrentLocale(),dynamicCurrencySettings:l?{roundingFormat:l.roundingFormat,targetCurrencyCode:l.targetCurrencyCode}:void 0},r))];case 2:return s=e.sent(),(c=(null===(d=null==s?void 0:s.data)||void 0===d?void 0:d.map((function(t){return T(t)})))||[]).forEach((function(t){return u(t,a.getCurrentLocale())})),[2,new i(s.data?{data:c,count:s.data.length,facets:null,limit:20,page:1,totalCount:s.data.length}:null,s.graphQLErrors)]}}))}))}function b(n){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductAttribute.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),null==(r=t.data)||r.forEach((function(t){return l(t,a.getCurrentLocale())})),[2,new i(r,t.graphQLErrors)]}}))}))}function h(n){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductCampaigns.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new i(null===(r=t.data)||void 0===r?void 0:r.map((function(t){return t})),t.graphQLErrors)]}}))}))}function y(n){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getVariantStockLocations.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new i(null===(r=t.data)||void 0===r?void 0:r.stockLocations.map((function(t){return t})),t.graphQLErrors)]}}))}))}function A(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/getOrderLineFile.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function I(n){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductOptionSet.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),null==(r=t.data)||r.forEach((function(t){return s(t,a.getCurrentLocale())})),[2,new i(r,t.graphQLErrors)]}}))}))}function C(n){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().ResponseField,i=["DATA"],n&&n.length&&n.map((function(e){var n=Object.keys(t).filter((function(t){return t.startsWith(e)}));i=r(r([],i,!0),n,!0)})),[2,Object.entries(t).filter((function(t){var e=t[0];return!i.includes(e)})).map((function(t){return t[1]}))]}}))}))}function T(t){var e,r,i,u,l="local"===process.env.NEXT_PUBLIC_ENV;return{id:t.id,type:t.type,groupVariantsByVariantTypeId:t.groupVariantsByVariantTypeId,deleted:t.deleted,attributes:(null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,r,i,a,u,o;return n(n({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(r=t.productAttributeOption)||void 0===r?void 0:r.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:null,type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],brand:t.brand?n(n({},t.brand),{id:t.brand.id,name:t.brand.name,createdAt:0,updatedAt:0,description:null,imageId:t.brand.imageId,orderType:o.BEST_SELLER,metaData:{id:"",createdAt:0,updatedAt:0,slug:t.brand.slug||""}}):null,campaigns:null===(r=t.campaigns)||void 0===r?void 0:r.map((function(t){return{campaign:t,variantIds:[]}})),categories:(null===(i=t.categories)||void 0===i?void 0:i.map((function(t){return n(n({},t),{categoryPath:t.path.map((function(t){return t.name})),description:null,imageId:null,parentId:null,metaData:t.slug?{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug}:null,categoryPathItems:t.path.map((function(t){return{metaData:{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug||""},description:null,name:t.name,translations:t.translations,imageId:null,id:t.id,createdAt:0,updatedAt:0}})),createdAt:0,updatedAt:0,orderType:d.BEST_SELLER,conditions:null,conditionValues:null})})))||[],tags:t.tags||[],description:t.description||"",averageRating:t.averageRating,reviewCount:t.reviewCount,stars:t.stars,baseUnit:t.baseUnit,metaData:n(n({},t.metaData),{id:"",createdAt:0,updatedAt:0,slug:(null===(u=t.metaData)||void 0===u?void 0:u.slug)||""})||null,name:t.name,shortDescription:t.shortDescription||"",productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return{order:t.order,variantType:{id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return{id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id}})).filter((function(e){return t.variantValueIds.includes(e.id)}))},variantValueIds:t.variantValueIds}})),variants:t.variants.map((function(e){var r,i,u,o;return n(n({},e),{id:e.id,productId:t.id,images:(null===(r=e.images)||void 0===r?void 0:r.map((function(t){return{imageId:t.id,isMain:t.isMain||!1,isVideo:t.isVideo,order:t.order,fileName:t.fileName}})))||null,sellIfOutOfStock:e.sellIfOutOfStock||!1,unit:e.unit,attributes:(null===(i=e.attributes)||void 0===i?void 0:i.map((function(t){var e,r,i,a,u,o;return n(n({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(r=t.productAttributeOption)||void 0===r?void 0:r.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:"",type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],sku:e.sku,barcodeList:e.barcodeList||null,prices:e.prices||[],stock:(null===(u=e.stocks)||void 0===u?void 0:u.filter((function(t){var e;return l||a.getIsEditor()||(null===(e=a.getStockLocationIds())||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0))||0,variantValues:(null===(o=e.variantValues)||void 0===o?void 0:o.map((function(e){var n=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),r=null==n?void 0:n.variantType.values.find((function(t){return t.id===e.variantValueId}));return{id:e.variantValueId,name:(null==r?void 0:r.name)||"",colorCode:(null==r?void 0:r.colorCode)||"",thumbnailImageId:(null==r?void 0:r.thumbnailImageId)||"",variantTypeId:(null==n?void 0:n.variantType.id)||""}})))||[],isActive:e.isActive||!1,bundleSettings:e.bundleSettings||null})}))}}export{A as getOrderLineFile,h as getProductCampaigns,m as getProductFilterData,f as getRelatedProducts,g as getSuggestedProducts,y as getVariantStockLocations,b as listProductAttribute,c as listProductBackInStockRemind,I as listProductOptionSet,p as saveProductBackInStockRemind,v as searchProducts};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "4.10.0-beta.
|
|
3
|
+
"version": "4.10.0-beta.26",
|
|
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.10.0-beta.
|
|
21
|
-
"@ikas/storefront-models": "^4.10.0-beta.
|
|
20
|
+
"@ikas/storefront-config": "^4.10.0-beta.26",
|
|
21
|
+
"@ikas/storefront-models": "^4.10.0-beta.26",
|
|
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.10.0-beta.
|
|
38
|
-
"@ikas/storefront-models": "^4.10.0-beta.
|
|
37
|
+
"@ikas/storefront-config": "^4.10.0-beta.26",
|
|
38
|
+
"@ikas/storefront-models": "^4.10.0-beta.26",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|