@ikas/storefront-api 5.0.12 → 5.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/__api/models/Campaign.d.ts +2 -0
- package/build/__api/models/CampaignTieredDiscount.d.ts +14 -0
- package/build/__api/models/CampaignTieredDiscountRule.d.ts +12 -0
- package/build/__api/models/CheckoutSettings.d.ts +2 -1
- package/build/__api/models/Customer.d.ts +8 -1
- package/build/__api/models/CustomerRegisterSubscriptionInput.d.ts +11 -0
- package/build/__api/models/SaveCustomerFormDataInput.d.ts +19 -0
- package/build/__api/models/SaveMyCustomerInput.d.ts +5 -1
- package/build/__api/models/SaveMyCustomerInput.js +1 -1
- package/build/__api/models/SearchProductCampaign.d.ts +2 -0
- package/build/__api/models/SearchProductCampaignMinMaxRangeField.d.ts +10 -0
- package/build/__api/models/SearchProductCampaignTieredDiscount.d.ts +14 -0
- package/build/__api/models/SearchProductCampaignTieredDiscountRule.d.ts +12 -0
- package/build/__api/models/StorefrontPopup.d.ts +27 -0
- package/build/__api/models/StorefrontPopupAnalytics.d.ts +11 -0
- package/build/__api/models/StorefrontPopupDateFilter.d.ts +10 -0
- package/build/__api/models/StorefrontPopupDisplayFilter.d.ts +12 -0
- package/build/__api/models/StorefrontPopupDisplaySettings.d.ts +12 -0
- package/build/__api/models/StorefrontPopupPageFilter.d.ts +12 -0
- package/build/__api/models/StorefrontPopupPageFilterData.d.ts +11 -0
- package/build/__api/models/StorefrontPopupRouting.d.ts +10 -0
- package/build/__api/mutations/customerLogin.d.ts +9 -0
- package/build/__api/mutations/customerLogin.js +1 -1
- package/build/__api/mutations/saveCustomerFormData.d.ts +7 -0
- package/build/__api/mutations/saveCustomerFormData.js +1 -0
- package/build/__api/mutations/saveMyCustomer.d.ts +9 -0
- package/build/__api/mutations/saveMyCustomer.js +1 -1
- package/build/__api/queries/customerSocialLogin.d.ts +9 -0
- package/build/__api/queries/customerSocialLogin.js +1 -1
- package/build/__api/queries/getMyCustomer.d.ts +9 -0
- package/build/__api/queries/getMyCustomer.js +1 -1
- package/build/__api/queries/getSuggestedProducts.d.ts +3 -0
- package/build/__api/queries/getSuggestedProducts.js +1 -1
- package/build/__api/queries/listCheckoutSettings.d.ts +1 -0
- package/build/__api/queries/listCheckoutSettings.js +1 -1
- package/build/__api/queries/listCustomerReviews.d.ts +1 -0
- package/build/__api/queries/listCustomerReviews.js +1 -1
- package/build/__api/queries/listStorefrontPopup.d.ts +34 -0
- package/build/__api/queries/listStorefrontPopup.js +1 -0
- package/build/__api/queries/searchProducts.d.ts +9 -0
- package/build/__api/queries/searchProducts.js +1 -1
- package/build/__api/types/index.d.ts +167 -0
- package/build/__api/types/index.js +1 -1
- package/build/api/customer/index.d.ts +17 -1
- package/build/api/customer/index.js +1 -1
- package/build/api/storefront/index.d.ts +2 -1
- package/build/api/storefront-popup/index.d.ts +5 -0
- package/build/api/storefront-popup/index.js +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -1
- package/build/index2.js +1 -1
- package/package.json +5 -5
|
@@ -4,6 +4,7 @@ import { CampaignApplicablePriceEnum, CampaignCreatedForEnum, CampaignTypeEnum }
|
|
|
4
4
|
import { BuyXThenGetYData } from "./BuyXThenGetY";
|
|
5
5
|
import { CampaignDateRangeFieldData } from "./CampaignDateRangeField";
|
|
6
6
|
import { FixedDiscountData } from "./FixedDiscount";
|
|
7
|
+
import { CampaignTieredDiscountData } from "./CampaignTieredDiscount";
|
|
7
8
|
import { CampaignTranslationData } from "./CampaignTranslation";
|
|
8
9
|
export declare class CampaignData extends BaseModelData {
|
|
9
10
|
applicableCustomerGroupIds: string[] | null;
|
|
@@ -20,6 +21,7 @@ export declare class CampaignData extends BaseModelData {
|
|
|
20
21
|
isFreeShipping: boolean | null;
|
|
21
22
|
onlyUseCustomer: boolean | null;
|
|
22
23
|
salesChannelIds: string[] | null;
|
|
24
|
+
tieredDiscount: CampaignTieredDiscountData | null;
|
|
23
25
|
title: string;
|
|
24
26
|
translations: CampaignTranslationData[] | null;
|
|
25
27
|
type: CampaignTypeEnum;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CampaignFilterData } from "./CampaignFilter";
|
|
3
|
+
import { CampaignTieredDiscountRuleData } from "./CampaignTieredDiscountRule";
|
|
4
|
+
export declare class CampaignTieredDiscountData {
|
|
5
|
+
filters: CampaignFilterData[] | null;
|
|
6
|
+
isApplyByCartAmount: boolean | null;
|
|
7
|
+
rules: CampaignTieredDiscountRuleData[];
|
|
8
|
+
shouldMatchAllConditions: boolean | null;
|
|
9
|
+
constructor(data?: Partial<CampaignTieredDiscountData>);
|
|
10
|
+
}
|
|
11
|
+
export declare class CampaignTieredDiscount extends CampaignTieredDiscountData {
|
|
12
|
+
}
|
|
13
|
+
export declare type PartialCampaignTieredDiscount = Partial<CampaignTieredDiscount>;
|
|
14
|
+
export declare type ReadOnlyCampaignTieredDiscount = DeepReadonly<CampaignTieredDiscount>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CampaignMinMaxRangeFieldData } from "./CampaignMinMaxRangeField";
|
|
3
|
+
export declare class CampaignTieredDiscountRuleData {
|
|
4
|
+
amount: number;
|
|
5
|
+
lineItemQuantityRange: CampaignMinMaxRangeFieldData | null;
|
|
6
|
+
priceRange: CampaignMinMaxRangeFieldData | null;
|
|
7
|
+
constructor(data?: Partial<CampaignTieredDiscountRuleData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class CampaignTieredDiscountRule extends CampaignTieredDiscountRuleData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialCampaignTieredDiscountRule = Partial<CampaignTieredDiscountRule>;
|
|
12
|
+
export declare type ReadOnlyCampaignTieredDiscountRule = DeepReadonly<CampaignTieredDiscountRule>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
2
|
import BaseModelData from "./_base";
|
|
3
|
-
import { CouponCodeRequirementEnum, CheckoutRequirementEnum } from "../types";
|
|
3
|
+
import { CorporateInvoiceRequirementEnum, CouponCodeRequirementEnum, CheckoutRequirementEnum } from "../types";
|
|
4
4
|
import { CheckoutSettingsPriceData } from "./CheckoutSettingsPrice";
|
|
5
5
|
import { CheckoutOptionData } from "./CheckoutOption";
|
|
6
6
|
export declare class CheckoutSettingsData extends BaseModelData {
|
|
7
|
+
corporateInvoiceRequirement: CorporateInvoiceRequirementEnum | null;
|
|
7
8
|
couponCodeRequirement: CouponCodeRequirementEnum | null;
|
|
8
9
|
giftPackagePriceList: CheckoutSettingsPriceData[] | null;
|
|
9
10
|
identityNumberRequirement: CheckoutRequirementEnum | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
2
|
import BaseModelData from "./_base";
|
|
3
|
-
import { CustomerAccountStatusEnum,
|
|
3
|
+
import { CustomerAccountStatusEnum, CustomerGenderTypeEnum, CustomerEmailSubscriptionStatusesEnum, CustomerRegistrationSourceEnum } from "../types";
|
|
4
4
|
import { CustomerAddressData } from "./CustomerAddress";
|
|
5
5
|
import { CustomerAttributeValueData } from "./CustomerAttributeValue";
|
|
6
6
|
import { CustomerPriceListRuleData } from "./CustomerPriceListRule";
|
|
@@ -9,12 +9,15 @@ export declare class CustomerData extends BaseModelData {
|
|
|
9
9
|
accountStatusUpdatedAt: any | null;
|
|
10
10
|
addresses: CustomerAddressData[] | null;
|
|
11
11
|
attributes: CustomerAttributeValueData[] | null;
|
|
12
|
+
birthDate: any | null;
|
|
12
13
|
customerGroupIds: string[] | null;
|
|
14
|
+
customerSegmentIds: string[] | null;
|
|
13
15
|
customerSequence: number | null;
|
|
14
16
|
email: string | null;
|
|
15
17
|
emailVerifiedDate: any | null;
|
|
16
18
|
firstName: string;
|
|
17
19
|
fullName: string | null;
|
|
20
|
+
gender: CustomerGenderTypeEnum | null;
|
|
18
21
|
isEmailVerified: boolean | null;
|
|
19
22
|
isPhoneVerified: boolean | null;
|
|
20
23
|
lastName: string | null;
|
|
@@ -22,11 +25,15 @@ export declare class CustomerData extends BaseModelData {
|
|
|
22
25
|
orderCount: number | null;
|
|
23
26
|
passwordUpdateDate: any | null;
|
|
24
27
|
phone: string | null;
|
|
28
|
+
phoneSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
29
|
+
phoneSubscriptionStatusUpdatedAt: any | null;
|
|
25
30
|
phoneVerifiedDate: any | null;
|
|
26
31
|
preferredLanguage: string | null;
|
|
27
32
|
priceListId: string | null;
|
|
28
33
|
priceListRules: CustomerPriceListRuleData[] | null;
|
|
29
34
|
registrationSource: CustomerRegistrationSourceEnum | null;
|
|
35
|
+
smsSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
36
|
+
smsSubscriptionStatusUpdatedAt: any | null;
|
|
30
37
|
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
31
38
|
subscriptionStatusUpdatedAt: any | null;
|
|
32
39
|
tagIds: string[] | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class CustomerRegisterSubscriptionInputData {
|
|
3
|
+
email: boolean;
|
|
4
|
+
phone: boolean;
|
|
5
|
+
sms: boolean;
|
|
6
|
+
constructor(data?: Partial<CustomerRegisterSubscriptionInputData>);
|
|
7
|
+
}
|
|
8
|
+
export declare class CustomerRegisterSubscriptionInput extends CustomerRegisterSubscriptionInputData {
|
|
9
|
+
}
|
|
10
|
+
export declare type PartialCustomerRegisterSubscriptionInput = Partial<CustomerRegisterSubscriptionInput>;
|
|
11
|
+
export declare type ReadOnlyCustomerRegisterSubscriptionInput = DeepReadonly<CustomerRegisterSubscriptionInput>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerGenderTypeEnum } from "../types";
|
|
3
|
+
import { CustomerRegisterSubscriptionInputData } from "./CustomerRegisterSubscriptionInput";
|
|
4
|
+
export declare class SaveCustomerFormDataInputData {
|
|
5
|
+
birthDate: any | null;
|
|
6
|
+
captchaToken: string | null;
|
|
7
|
+
email: string;
|
|
8
|
+
firstName: string | null;
|
|
9
|
+
gender: CustomerGenderTypeEnum | null;
|
|
10
|
+
lastName: string | null;
|
|
11
|
+
phone: string | null;
|
|
12
|
+
storefrontPopupId: string | null;
|
|
13
|
+
subscriptions: CustomerRegisterSubscriptionInputData | null;
|
|
14
|
+
constructor(data?: Partial<SaveCustomerFormDataInputData>);
|
|
15
|
+
}
|
|
16
|
+
export declare class SaveCustomerFormDataInput extends SaveCustomerFormDataInputData {
|
|
17
|
+
}
|
|
18
|
+
export declare type PartialSaveCustomerFormDataInput = Partial<SaveCustomerFormDataInput>;
|
|
19
|
+
export declare type ReadOnlySaveCustomerFormDataInput = DeepReadonly<SaveCustomerFormDataInput>;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
|
-
import { CustomerEmailSubscriptionStatusesEnum } from "../types";
|
|
2
|
+
import { CustomerGenderTypeEnum, CustomerEmailSubscriptionStatusesEnum } from "../types";
|
|
3
3
|
import { SaveMyCustomerAddressInputData } from "./SaveMyCustomerAddressInput";
|
|
4
4
|
import { CustomerAttributeValueInputData } from "./CustomerAttributeValueInput";
|
|
5
5
|
export declare class SaveMyCustomerInputData {
|
|
6
6
|
addresses: SaveMyCustomerAddressInputData[] | null;
|
|
7
7
|
attributes: CustomerAttributeValueInputData[] | null;
|
|
8
|
+
birthDate: any | null;
|
|
8
9
|
firstName: string;
|
|
10
|
+
gender: CustomerGenderTypeEnum | null;
|
|
9
11
|
lastName: string;
|
|
10
12
|
phone: string | null;
|
|
13
|
+
phoneSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
14
|
+
smsSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
11
15
|
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
12
16
|
constructor(data?: Partial<SaveMyCustomerInputData>);
|
|
13
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as t}from'./../../ext/tslib/tslib.es6.js';import{SaveMyCustomerAddressInputData as s}from"./SaveMyCustomerAddressInput.js";import{CustomerAttributeValueInputData as
|
|
1
|
+
import{__extends as t}from'./../../ext/tslib/tslib.es6.js';import{SaveMyCustomerAddressInputData as s}from"./SaveMyCustomerAddressInput.js";import{CustomerAttributeValueInputData as i}from"./CustomerAttributeValueInput.js";var n=function(t){void 0===t&&(t={}),this.addresses=t.addresses?t.addresses.map((function(t){return new s(t)})):null,this.attributes=t.attributes?t.attributes.map((function(t){return new i(t)})):null,this.birthDate=t.birthDate||null,this.firstName=t.firstName||"",this.gender=t.gender||null,this.lastName=t.lastName||"",this.phone=t.phone||null,this.phoneSubscriptionStatus=t.phoneSubscriptionStatus||null,this.smsSubscriptionStatus=t.smsSubscriptionStatus||null,this.subscriptionStatus=t.subscriptionStatus||null},u=function(s){function i(){return null!==s&&s.apply(this,arguments)||this}return t(i,s),i}(n);export{u as SaveMyCustomerInput,n as SaveMyCustomerInputData};
|
|
@@ -3,12 +3,14 @@ import { CampaignTypeEnum } from "../types";
|
|
|
3
3
|
import { SearchProductCampaignBuyXThenGetYData } from "./SearchProductCampaignBuyXThenGetY";
|
|
4
4
|
import { SearchProductCampaignDateRangeFieldData } from "./SearchProductCampaignDateRangeField";
|
|
5
5
|
import { SearchProductCampaignFixedDiscountData } from "./SearchProductCampaignFixedDiscount";
|
|
6
|
+
import { SearchProductCampaignTieredDiscountData } from "./SearchProductCampaignTieredDiscount";
|
|
6
7
|
export declare class SearchProductCampaignData {
|
|
7
8
|
buyXThenGetY: SearchProductCampaignBuyXThenGetYData | null;
|
|
8
9
|
currencyCodes: string[] | null;
|
|
9
10
|
dateRange: SearchProductCampaignDateRangeFieldData | null;
|
|
10
11
|
fixedDiscount: SearchProductCampaignFixedDiscountData | null;
|
|
11
12
|
salesChannelIds: string[] | null;
|
|
13
|
+
tieredDiscount: SearchProductCampaignTieredDiscountData | null;
|
|
12
14
|
title: string;
|
|
13
15
|
type: CampaignTypeEnum;
|
|
14
16
|
constructor(data?: Partial<SearchProductCampaignData>);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class SearchProductCampaignMinMaxRangeFieldData {
|
|
3
|
+
max: number | null;
|
|
4
|
+
min: number | null;
|
|
5
|
+
constructor(data?: Partial<SearchProductCampaignMinMaxRangeFieldData>);
|
|
6
|
+
}
|
|
7
|
+
export declare class SearchProductCampaignMinMaxRangeField extends SearchProductCampaignMinMaxRangeFieldData {
|
|
8
|
+
}
|
|
9
|
+
export declare type PartialSearchProductCampaignMinMaxRangeField = Partial<SearchProductCampaignMinMaxRangeField>;
|
|
10
|
+
export declare type ReadOnlySearchProductCampaignMinMaxRangeField = DeepReadonly<SearchProductCampaignMinMaxRangeField>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { SearchProductCampaignFilterData } from "./SearchProductCampaignFilter";
|
|
3
|
+
import { SearchProductCampaignTieredDiscountRuleData } from "./SearchProductCampaignTieredDiscountRule";
|
|
4
|
+
export declare class SearchProductCampaignTieredDiscountData {
|
|
5
|
+
filters: SearchProductCampaignFilterData[] | null;
|
|
6
|
+
isApplyByCartAmount: boolean | null;
|
|
7
|
+
rules: SearchProductCampaignTieredDiscountRuleData[];
|
|
8
|
+
shouldMatchAllConditions: boolean | null;
|
|
9
|
+
constructor(data?: Partial<SearchProductCampaignTieredDiscountData>);
|
|
10
|
+
}
|
|
11
|
+
export declare class SearchProductCampaignTieredDiscount extends SearchProductCampaignTieredDiscountData {
|
|
12
|
+
}
|
|
13
|
+
export declare type PartialSearchProductCampaignTieredDiscount = Partial<SearchProductCampaignTieredDiscount>;
|
|
14
|
+
export declare type ReadOnlySearchProductCampaignTieredDiscount = DeepReadonly<SearchProductCampaignTieredDiscount>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { SearchProductCampaignMinMaxRangeFieldData } from "./SearchProductCampaignMinMaxRangeField";
|
|
3
|
+
export declare class SearchProductCampaignTieredDiscountRuleData {
|
|
4
|
+
amount: number;
|
|
5
|
+
lineItemQuantityRange: SearchProductCampaignMinMaxRangeFieldData | null;
|
|
6
|
+
priceRange: SearchProductCampaignMinMaxRangeFieldData | null;
|
|
7
|
+
constructor(data?: Partial<SearchProductCampaignTieredDiscountRuleData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class SearchProductCampaignTieredDiscountRule extends SearchProductCampaignTieredDiscountRuleData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialSearchProductCampaignTieredDiscountRule = Partial<SearchProductCampaignTieredDiscountRule>;
|
|
12
|
+
export declare type ReadOnlySearchProductCampaignTieredDiscountRule = DeepReadonly<SearchProductCampaignTieredDiscountRule>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { StorefrontPopupStatusEnum, StorefrontPopupTypeEnum, StorefrontPopupDeviceTypeEnum } from "../types";
|
|
4
|
+
import { StorefrontPopupAnalyticsData } from "./StorefrontPopupAnalytics";
|
|
5
|
+
import { StorefrontPopupDateFilterData } from "./StorefrontPopupDateFilter";
|
|
6
|
+
import { StorefrontPopupDisplayFilterData } from "./StorefrontPopupDisplayFilter";
|
|
7
|
+
import { StorefrontPopupDisplaySettingsData } from "./StorefrontPopupDisplaySettings";
|
|
8
|
+
import { StorefrontPopupPageFilterData } from "./StorefrontPopupPageFilter";
|
|
9
|
+
import { StorefrontPopupRoutingData } from "./StorefrontPopupRouting";
|
|
10
|
+
export declare class StorefrontPopupData extends BaseModelData {
|
|
11
|
+
analytics: StorefrontPopupAnalyticsData | null;
|
|
12
|
+
contentJson: any | null;
|
|
13
|
+
dateFilter: StorefrontPopupDateFilterData | null;
|
|
14
|
+
displayFilters: StorefrontPopupDisplayFilterData[] | null;
|
|
15
|
+
displaySettings: StorefrontPopupDisplaySettingsData;
|
|
16
|
+
name: string;
|
|
17
|
+
pageFilters: StorefrontPopupPageFilterData[] | null;
|
|
18
|
+
status: StorefrontPopupStatusEnum;
|
|
19
|
+
storefrontRoutings: StorefrontPopupRoutingData[];
|
|
20
|
+
type: StorefrontPopupTypeEnum;
|
|
21
|
+
visibleDevice: StorefrontPopupDeviceTypeEnum;
|
|
22
|
+
constructor(data?: Partial<StorefrontPopupData>);
|
|
23
|
+
}
|
|
24
|
+
export declare class StorefrontPopup extends StorefrontPopupData {
|
|
25
|
+
}
|
|
26
|
+
export declare type PartialStorefrontPopup = Partial<StorefrontPopup>;
|
|
27
|
+
export declare type ReadOnlyStorefrontPopup = DeepReadonly<StorefrontPopup>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class StorefrontPopupAnalyticsData {
|
|
3
|
+
click: number;
|
|
4
|
+
display: number;
|
|
5
|
+
submission: number;
|
|
6
|
+
constructor(data?: Partial<StorefrontPopupAnalyticsData>);
|
|
7
|
+
}
|
|
8
|
+
export declare class StorefrontPopupAnalytics extends StorefrontPopupAnalyticsData {
|
|
9
|
+
}
|
|
10
|
+
export declare type PartialStorefrontPopupAnalytics = Partial<StorefrontPopupAnalytics>;
|
|
11
|
+
export declare type ReadOnlyStorefrontPopupAnalytics = DeepReadonly<StorefrontPopupAnalytics>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class StorefrontPopupDateFilterData {
|
|
3
|
+
endDate: any | null;
|
|
4
|
+
startDate: any | null;
|
|
5
|
+
constructor(data?: Partial<StorefrontPopupDateFilterData>);
|
|
6
|
+
}
|
|
7
|
+
export declare class StorefrontPopupDateFilter extends StorefrontPopupDateFilterData {
|
|
8
|
+
}
|
|
9
|
+
export declare type PartialStorefrontPopupDateFilter = Partial<StorefrontPopupDateFilter>;
|
|
10
|
+
export declare type ReadOnlyStorefrontPopupDateFilter = DeepReadonly<StorefrontPopupDateFilter>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { StorefrontPopupDisplayFilterTypeEnum } from "../types";
|
|
3
|
+
export declare class StorefrontPopupDisplayFilterData {
|
|
4
|
+
operator: string;
|
|
5
|
+
type: StorefrontPopupDisplayFilterTypeEnum;
|
|
6
|
+
value: string;
|
|
7
|
+
constructor(data?: Partial<StorefrontPopupDisplayFilterData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class StorefrontPopupDisplayFilter extends StorefrontPopupDisplayFilterData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialStorefrontPopupDisplayFilter = Partial<StorefrontPopupDisplayFilter>;
|
|
12
|
+
export declare type ReadOnlyStorefrontPopupDisplayFilter = DeepReadonly<StorefrontPopupDisplayFilter>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { StorefrontPopupDisplayFrequencyEnum, StorefrontPopupDisplayTriggerTypeEnum } from "../types";
|
|
3
|
+
export declare class StorefrontPopupDisplaySettingsData {
|
|
4
|
+
frequency: StorefrontPopupDisplayFrequencyEnum;
|
|
5
|
+
triggerType: StorefrontPopupDisplayTriggerTypeEnum;
|
|
6
|
+
triggerValue: number | null;
|
|
7
|
+
constructor(data?: Partial<StorefrontPopupDisplaySettingsData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class StorefrontPopupDisplaySettings extends StorefrontPopupDisplaySettingsData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialStorefrontPopupDisplaySettings = Partial<StorefrontPopupDisplaySettings>;
|
|
12
|
+
export declare type ReadOnlyStorefrontPopupDisplaySettings = DeepReadonly<StorefrontPopupDisplaySettings>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { StorefrontPopupPageFilterTypeEnum } from "../types";
|
|
3
|
+
import { StorefrontPopupPageFilterDataData } from "./StorefrontPopupPageFilterData";
|
|
4
|
+
export declare class StorefrontPopupPageFilterData {
|
|
5
|
+
filters: StorefrontPopupPageFilterDataData[] | null;
|
|
6
|
+
pageType: StorefrontPopupPageFilterTypeEnum;
|
|
7
|
+
constructor(data?: Partial<StorefrontPopupPageFilterData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class StorefrontPopupPageFilter extends StorefrontPopupPageFilterData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialStorefrontPopupPageFilter = Partial<StorefrontPopupPageFilter>;
|
|
12
|
+
export declare type ReadOnlyStorefrontPopupPageFilter = DeepReadonly<StorefrontPopupPageFilter>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { StorefrontPopupPageFilterDataTypeEnum } from "../types";
|
|
3
|
+
export declare class StorefrontPopupPageFilterDataData {
|
|
4
|
+
type: StorefrontPopupPageFilterDataTypeEnum;
|
|
5
|
+
value: string;
|
|
6
|
+
constructor(data?: Partial<StorefrontPopupPageFilterDataData>);
|
|
7
|
+
}
|
|
8
|
+
export declare class StorefrontPopupPageFilterData extends StorefrontPopupPageFilterDataData {
|
|
9
|
+
}
|
|
10
|
+
export declare type PartialStorefrontPopupPageFilterData = Partial<StorefrontPopupPageFilterData>;
|
|
11
|
+
export declare type ReadOnlyStorefrontPopupPageFilterData = DeepReadonly<StorefrontPopupPageFilterData>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class StorefrontPopupRoutingData {
|
|
3
|
+
storefrontId: string;
|
|
4
|
+
storefrontRoutingId: string;
|
|
5
|
+
constructor(data?: Partial<StorefrontPopupRoutingData>);
|
|
6
|
+
}
|
|
7
|
+
export declare class StorefrontPopupRouting extends StorefrontPopupRoutingData {
|
|
8
|
+
}
|
|
9
|
+
export declare type PartialStorefrontPopupRouting = Partial<StorefrontPopupRouting>;
|
|
10
|
+
export declare type ReadOnlyStorefrontPopupRouting = DeepReadonly<StorefrontPopupRouting>;
|
|
@@ -51,14 +51,17 @@ export declare enum ResponseField {
|
|
|
51
51
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.attributes.customerAttributeId",
|
|
52
52
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.attributes.customerAttributeOptionId",
|
|
53
53
|
CUSTOMER__ATTRIBUTES__VALUE = "customer.attributes.value",
|
|
54
|
+
CUSTOMER__BIRTH_DATE = "customer.birthDate",
|
|
54
55
|
CUSTOMER__CREATED_AT = "customer.createdAt",
|
|
55
56
|
CUSTOMER__CUSTOMER_GROUP_IDS = "customer.customerGroupIds",
|
|
57
|
+
CUSTOMER__CUSTOMER_SEGMENT_IDS = "customer.customerSegmentIds",
|
|
56
58
|
CUSTOMER__CUSTOMER_SEQUENCE = "customer.customerSequence",
|
|
57
59
|
CUSTOMER__DELETED = "customer.deleted",
|
|
58
60
|
CUSTOMER__EMAIL = "customer.email",
|
|
59
61
|
CUSTOMER__EMAIL_VERIFIED_DATE = "customer.emailVerifiedDate",
|
|
60
62
|
CUSTOMER__FIRST_NAME = "customer.firstName",
|
|
61
63
|
CUSTOMER__FULL_NAME = "customer.fullName",
|
|
64
|
+
CUSTOMER__GENDER = "customer.gender",
|
|
62
65
|
CUSTOMER__ID = "customer.id",
|
|
63
66
|
CUSTOMER__IS_EMAIL_VERIFIED = "customer.isEmailVerified",
|
|
64
67
|
CUSTOMER__IS_PHONE_VERIFIED = "customer.isPhoneVerified",
|
|
@@ -67,15 +70,21 @@ export declare enum ResponseField {
|
|
|
67
70
|
CUSTOMER__ORDER_COUNT = "customer.orderCount",
|
|
68
71
|
CUSTOMER__PASSWORD_UPDATE_DATE = "customer.passwordUpdateDate",
|
|
69
72
|
CUSTOMER__PHONE = "customer.phone",
|
|
73
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS = "customer.phoneSubscriptionStatus",
|
|
74
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.phoneSubscriptionStatusUpdatedAt",
|
|
70
75
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
71
76
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
72
77
|
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
78
|
+
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
73
79
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
74
80
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
81
|
+
CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID = "customer.priceListRules.priceListId",
|
|
75
82
|
CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
|
|
76
83
|
CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
|
|
77
84
|
CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
|
|
78
85
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
86
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS = "customer.smsSubscriptionStatus",
|
|
87
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.smsSubscriptionStatusUpdatedAt",
|
|
79
88
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
80
89
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
81
90
|
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,u){return e(void 0,void 0,void 0,(function(){var e,o,d,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S({operationName:"customerLogin",config:u,variables:E,allReturnFields:T,fields:r,query:function(e){return"\n\t\t\t\tmutation customerLogin (\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String!,\n\t\t\t\t\t$password: String!,\n\t\t\t\t) {\n\t\t\t\t\tcustomerLogin (\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),o=e.data,d=e.errors,[2,new s(null==o?void 0:o.customerLogin,d)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__BIRTH_DATE="customer.birthDate",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__GENDER="customer.gender",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",e.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",e.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",e.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",e.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",e.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
import { SaveCustomerFormDataInput } from "../types";
|
|
3
|
+
declare const saveCustomerFormData: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<boolean> | APIResponse<undefined>>;
|
|
4
|
+
export default saveCustomerFormData;
|
|
5
|
+
export declare type QueryParams = {
|
|
6
|
+
input: SaveCustomerFormDataInput;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as a,fetchQuery as n}from"@ikas/fe-api-client";var o=function(o,s){return t(void 0,void 0,void 0,(function(){var t,u,i,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"saveCustomerFormData",config:s,variables:o,query:"\n\t\t\t\tmutation saveCustomerFormData (\n\t\t\t\t\t$input: SaveCustomerFormDataInput!,\n\t\t\t\t) {\n\t\t\t\t\tsaveCustomerFormData (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t"})];case 1:return t=e.sent(),u=t.data,i=t.errors,[2,new a(null==u?void 0:u.saveCustomerFormData,i)];case 2:return m=e.sent(),[2,r(m)];case 3:return[2]}}))}))};export{o as default};
|
|
@@ -49,14 +49,17 @@ export declare enum ResponseField {
|
|
|
49
49
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "attributes.customerAttributeId",
|
|
50
50
|
ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "attributes.customerAttributeOptionId",
|
|
51
51
|
ATTRIBUTES__VALUE = "attributes.value",
|
|
52
|
+
BIRTH_DATE = "birthDate",
|
|
52
53
|
CREATED_AT = "createdAt",
|
|
53
54
|
CUSTOMER_GROUP_IDS = "customerGroupIds",
|
|
55
|
+
CUSTOMER_SEGMENT_IDS = "customerSegmentIds",
|
|
54
56
|
CUSTOMER_SEQUENCE = "customerSequence",
|
|
55
57
|
DELETED = "deleted",
|
|
56
58
|
EMAIL = "email",
|
|
57
59
|
EMAIL_VERIFIED_DATE = "emailVerifiedDate",
|
|
58
60
|
FIRST_NAME = "firstName",
|
|
59
61
|
FULL_NAME = "fullName",
|
|
62
|
+
GENDER = "gender",
|
|
60
63
|
ID = "id",
|
|
61
64
|
IS_EMAIL_VERIFIED = "isEmailVerified",
|
|
62
65
|
IS_PHONE_VERIFIED = "isPhoneVerified",
|
|
@@ -65,15 +68,21 @@ export declare enum ResponseField {
|
|
|
65
68
|
ORDER_COUNT = "orderCount",
|
|
66
69
|
PASSWORD_UPDATE_DATE = "passwordUpdateDate",
|
|
67
70
|
PHONE = "phone",
|
|
71
|
+
PHONE_SUBSCRIPTION_STATUS = "phoneSubscriptionStatus",
|
|
72
|
+
PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "phoneSubscriptionStatusUpdatedAt",
|
|
68
73
|
PHONE_VERIFIED_DATE = "phoneVerifiedDate",
|
|
69
74
|
PREFERRED_LANGUAGE = "preferredLanguage",
|
|
70
75
|
PRICE_LIST_ID = "priceListId",
|
|
76
|
+
PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
|
|
71
77
|
PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
|
|
72
78
|
PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
|
|
79
|
+
PRICE_LIST_RULES__PRICE_LIST_ID = "priceListRules.priceListId",
|
|
73
80
|
PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "priceListRules.shouldMatchAllFilters",
|
|
74
81
|
PRICE_LIST_RULES__VALUE = "priceListRules.value",
|
|
75
82
|
PRICE_LIST_RULES__VALUE_TYPE = "priceListRules.valueType",
|
|
76
83
|
REGISTRATION_SOURCE = "registrationSource",
|
|
84
|
+
SMS_SUBSCRIPTION_STATUS = "smsSubscriptionStatus",
|
|
85
|
+
SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "smsSubscriptionStatusUpdatedAt",
|
|
77
86
|
SUBSCRIPTION_STATUS = "subscriptionStatus",
|
|
78
87
|
SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
|
|
79
88
|
TAG_IDS = "tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as S,fetchQuery as _}from"@ikas/fe-api-client";var E,d=function(E,d,a){return e(void 0,void 0,void 0,(function(){var e,i,D,A;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,_({operationName:"saveMyCustomer",config:a,variables:E,allReturnFields:r,fields:d,query:function(e){return"\n\t\t\t\tmutation saveMyCustomer (\n\t\t\t\t\t$input: SaveMyCustomerInput!,\n\t\t\t\t) {\n\t\t\t\t\tsaveMyCustomer (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),i=e.data,D=e.errors,[2,new S(null==i?void 0:i.saveMyCustomer,D)];case 2:return A=t.sent(),[2,s(A)];case 3:return[2]}}))}))},r="{accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt }";!function(e){e.ACCOUNT_STATUS="accountStatus",e.ACCOUNT_STATUS_UPDATED_AT="accountStatusUpdatedAt",e.ADDRESSES__ADDRESS_LINE1="addresses.addressLine1",e.ADDRESSES__ADDRESS_LINE2="addresses.addressLine2",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="addresses.attributes.customerAttributeId",e.ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="addresses.attributes.customerAttributeOptionId",e.ADDRESSES__ATTRIBUTES__VALUE="addresses.attributes.value",e.ADDRESSES__CITY__CODE="addresses.city.code",e.ADDRESSES__CITY__ID="addresses.city.id",e.ADDRESSES__CITY__NAME="addresses.city.name",e.ADDRESSES__COMPANY="addresses.company",e.ADDRESSES__COUNTRY__CODE="addresses.country.code",e.ADDRESSES__COUNTRY__ID="addresses.country.id",e.ADDRESSES__COUNTRY__ISO2="addresses.country.iso2",e.ADDRESSES__COUNTRY__ISO3="addresses.country.iso3",e.ADDRESSES__COUNTRY__NAME="addresses.country.name",e.ADDRESSES__CREATED_AT="addresses.createdAt",e.ADDRESSES__DELETED="addresses.deleted",e.ADDRESSES__DISTRICT__CODE="addresses.district.code",e.ADDRESSES__DISTRICT__ID="addresses.district.id",e.ADDRESSES__DISTRICT__NAME="addresses.district.name",e.ADDRESSES__FIRST_NAME="addresses.firstName",e.ADDRESSES__ID="addresses.id",e.ADDRESSES__IDENTITY_NUMBER="addresses.identityNumber",e.ADDRESSES__IS_DEFAULT="addresses.isDefault",e.ADDRESSES__LAST_NAME="addresses.lastName",e.ADDRESSES__PHONE="addresses.phone",e.ADDRESSES__POSTAL_CODE="addresses.postalCode",e.ADDRESSES__REGION__CREATED_AT="addresses.region.createdAt",e.ADDRESSES__REGION__DELETED="addresses.region.deleted",e.ADDRESSES__REGION__ID="addresses.region.id",e.ADDRESSES__REGION__NAME="addresses.region.name",e.ADDRESSES__REGION__UPDATED_AT="addresses.region.updatedAt",e.ADDRESSES__STATE__CODE="addresses.state.code",e.ADDRESSES__STATE__ID="addresses.state.id",e.ADDRESSES__STATE__NAME="addresses.state.name",e.ADDRESSES__TAX_NUMBER="addresses.taxNumber",e.ADDRESSES__TAX_OFFICE="addresses.taxOffice",e.ADDRESSES__TITLE="addresses.title",e.ADDRESSES__UPDATED_AT="addresses.updatedAt",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="attributes.customerAttributeId",e.ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="attributes.customerAttributeOptionId",e.ATTRIBUTES__VALUE="attributes.value",e.BIRTH_DATE="birthDate",e.CREATED_AT="createdAt",e.CUSTOMER_GROUP_IDS="customerGroupIds",e.CUSTOMER_SEGMENT_IDS="customerSegmentIds",e.CUSTOMER_SEQUENCE="customerSequence",e.DELETED="deleted",e.EMAIL="email",e.EMAIL_VERIFIED_DATE="emailVerifiedDate",e.FIRST_NAME="firstName",e.FULL_NAME="fullName",e.GENDER="gender",e.ID="id",e.IS_EMAIL_VERIFIED="isEmailVerified",e.IS_PHONE_VERIFIED="isPhoneVerified",e.LAST_NAME="lastName",e.NOTE="note",e.ORDER_COUNT="orderCount",e.PASSWORD_UPDATE_DATE="passwordUpdateDate",e.PHONE="phone",e.PHONE_SUBSCRIPTION_STATUS="phoneSubscriptionStatus",e.PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="phoneSubscriptionStatusUpdatedAt",e.PHONE_VERIFIED_DATE="phoneVerifiedDate",e.PREFERRED_LANGUAGE="preferredLanguage",e.PRICE_LIST_ID="priceListId",e.PRICE_LIST_RULES__DISCOUNT_RATE="priceListRules.discountRate",e.PRICE_LIST_RULES__FILTERS__TYPE="priceListRules.filters.type",e.PRICE_LIST_RULES__FILTERS__VALUE_LIST="priceListRules.filters.valueList",e.PRICE_LIST_RULES__PRICE_LIST_ID="priceListRules.priceListId",e.PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="priceListRules.shouldMatchAllFilters",e.PRICE_LIST_RULES__VALUE="priceListRules.value",e.PRICE_LIST_RULES__VALUE_TYPE="priceListRules.valueType",e.REGISTRATION_SOURCE="registrationSource",e.SMS_SUBSCRIPTION_STATUS="smsSubscriptionStatus",e.SMS_SUBSCRIPTION_STATUS_UPDATED_AT="smsSubscriptionStatusUpdatedAt",e.SUBSCRIPTION_STATUS="subscriptionStatus",e.SUBSCRIPTION_STATUS_UPDATED_AT="subscriptionStatusUpdatedAt",e.TAG_IDS="tagIds",e.UPDATED_AT="updatedAt"}(E||(E={}));export{E as ResponseField,d as default};
|
|
@@ -49,14 +49,17 @@ export declare enum ResponseField {
|
|
|
49
49
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.attributes.customerAttributeId",
|
|
50
50
|
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.attributes.customerAttributeOptionId",
|
|
51
51
|
CUSTOMER__ATTRIBUTES__VALUE = "customer.attributes.value",
|
|
52
|
+
CUSTOMER__BIRTH_DATE = "customer.birthDate",
|
|
52
53
|
CUSTOMER__CREATED_AT = "customer.createdAt",
|
|
53
54
|
CUSTOMER__CUSTOMER_GROUP_IDS = "customer.customerGroupIds",
|
|
55
|
+
CUSTOMER__CUSTOMER_SEGMENT_IDS = "customer.customerSegmentIds",
|
|
54
56
|
CUSTOMER__CUSTOMER_SEQUENCE = "customer.customerSequence",
|
|
55
57
|
CUSTOMER__DELETED = "customer.deleted",
|
|
56
58
|
CUSTOMER__EMAIL = "customer.email",
|
|
57
59
|
CUSTOMER__EMAIL_VERIFIED_DATE = "customer.emailVerifiedDate",
|
|
58
60
|
CUSTOMER__FIRST_NAME = "customer.firstName",
|
|
59
61
|
CUSTOMER__FULL_NAME = "customer.fullName",
|
|
62
|
+
CUSTOMER__GENDER = "customer.gender",
|
|
60
63
|
CUSTOMER__ID = "customer.id",
|
|
61
64
|
CUSTOMER__IS_EMAIL_VERIFIED = "customer.isEmailVerified",
|
|
62
65
|
CUSTOMER__IS_PHONE_VERIFIED = "customer.isPhoneVerified",
|
|
@@ -65,15 +68,21 @@ export declare enum ResponseField {
|
|
|
65
68
|
CUSTOMER__ORDER_COUNT = "customer.orderCount",
|
|
66
69
|
CUSTOMER__PASSWORD_UPDATE_DATE = "customer.passwordUpdateDate",
|
|
67
70
|
CUSTOMER__PHONE = "customer.phone",
|
|
71
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS = "customer.phoneSubscriptionStatus",
|
|
72
|
+
CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.phoneSubscriptionStatusUpdatedAt",
|
|
68
73
|
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
69
74
|
CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
|
|
70
75
|
CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
|
|
76
|
+
CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
|
|
71
77
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
|
|
72
78
|
CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
|
|
79
|
+
CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID = "customer.priceListRules.priceListId",
|
|
73
80
|
CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
|
|
74
81
|
CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
|
|
75
82
|
CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
|
|
76
83
|
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
84
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS = "customer.smsSubscriptionStatus",
|
|
85
|
+
CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.smsSubscriptionStatusUpdatedAt",
|
|
77
86
|
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
78
87
|
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
79
88
|
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,u){return e(void 0,void 0,void 0,(function(){var e,o,d,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S({operationName:"customerSocialLogin",config:u,variables:E,allReturnFields:T,fields:r,query:function(e){return"\n\t\t\t\tquery customerSocialLogin (\n\t\t\t\t\t$code: String!,\n\t\t\t\t) {\n\t\t\t\t\tcustomerSocialLogin (\n\t\t\t\t\t\tcode: $code,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),o=e.data,d=e.errors,[2,new s(null==o?void 0:o.customerSocialLogin,d)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__BIRTH_DATE="customer.birthDate",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__GENDER="customer.gender",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",e.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",e.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",e.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",e.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",e.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r as default};
|