@ikas/storefront 0.0.168-alpha.3 → 0.0.168-alpha.6
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/analytics/analytics.d.ts +23 -10
- package/build/analytics/events.d.ts +34 -0
- package/build/assets/translations/checkout/en.js +1 -0
- package/build/assets/translations/checkout/tr.js +1 -0
- package/build/index.es.js +1988 -1543
- package/build/index.js +1988 -1542
- package/build/models/data/checkout-settings/index.d.ts +1 -0
- package/build/models/data/customer/address/index.d.ts +0 -1
- package/build/models/data/customer/index.d.ts +7 -0
- package/build/models/data/order/address/index.d.ts +0 -1
- package/build/models/ui/product-list/index.d.ts +2 -1
- package/build/store/customer.d.ts +2 -3
- package/build/utils/helper.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export declare class IkasCheckoutSettings {
|
|
|
11
11
|
storefrontId: string;
|
|
12
12
|
giftPackagePriceList: IkasCheckoutSettingsPrice[] | null;
|
|
13
13
|
isGiftPackageEnabled: boolean;
|
|
14
|
+
isShowPostalCode: boolean;
|
|
14
15
|
constructor(data?: Partial<IkasCheckoutSettings>);
|
|
15
16
|
}
|
|
16
17
|
export declare enum IkasCheckoutRequirementEnum {
|
|
@@ -12,6 +12,13 @@ export declare class IkasCustomer {
|
|
|
12
12
|
subscriptionStatus: IkasCustomerEmailSubscriptionStatus | null;
|
|
13
13
|
constructor(data: Partial<IkasCustomer>);
|
|
14
14
|
get isSubscribed(): boolean;
|
|
15
|
+
get basicInfo(): {
|
|
16
|
+
id: string;
|
|
17
|
+
firstName: string;
|
|
18
|
+
lastName: string;
|
|
19
|
+
email: string;
|
|
20
|
+
phone: string | null | undefined;
|
|
21
|
+
};
|
|
15
22
|
}
|
|
16
23
|
export declare enum IkasCustomerAccountStatus {
|
|
17
24
|
ACTIVE_ACCOUNT = "ACTIVE_ACCOUNT",
|
|
@@ -89,8 +89,9 @@ export declare class IkasProductList {
|
|
|
89
89
|
private getQueryParams;
|
|
90
90
|
private isBrowser;
|
|
91
91
|
private waitForCustomerStoreInit;
|
|
92
|
+
private handleViewSearchResults;
|
|
92
93
|
private searchDebouncer;
|
|
93
|
-
private
|
|
94
|
+
private searchAnalyticsDebouncer;
|
|
94
95
|
}
|
|
95
96
|
export declare type IkasProductListParams = {
|
|
96
97
|
data?: IkasProductDetail[];
|
|
@@ -16,7 +16,7 @@ export declare class IkasCustomerStore {
|
|
|
16
16
|
get customerConsentGranted(): boolean;
|
|
17
17
|
login: (email: string, password: string) => Promise<boolean>;
|
|
18
18
|
register: (firstName: string, lastName: string, email: string, password: string, isMarketingAccepted?: boolean | undefined) => Promise<boolean>;
|
|
19
|
-
saveContactForm: (input:
|
|
19
|
+
saveContactForm: (input: IkasContactForm) => Promise<boolean | undefined>;
|
|
20
20
|
checkEmail: (email: string) => Promise<boolean>;
|
|
21
21
|
forgotPassword: (email: string) => Promise<boolean>;
|
|
22
22
|
recoverPassword: (password: string, passwordAgain: string, token: string) => Promise<boolean>;
|
|
@@ -56,10 +56,9 @@ export declare class IkasCustomerStore {
|
|
|
56
56
|
private clearLocalTokenData;
|
|
57
57
|
private clearLocalData;
|
|
58
58
|
}
|
|
59
|
-
declare type
|
|
59
|
+
export declare type IkasContactForm = {
|
|
60
60
|
firstName: string;
|
|
61
61
|
lastName: string;
|
|
62
62
|
email: string;
|
|
63
63
|
message: string;
|
|
64
64
|
};
|
|
65
|
-
export {};
|
package/build/utils/helper.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare const decodeBase64: (base64: string) => string;
|
|
|
5
5
|
export declare function stringSorter(atitle: string, btitle: string): number;
|
|
6
6
|
export declare function findAllIndexes(str: string, pattern: string): number[];
|
|
7
7
|
export declare function formatDate(date: Date): string;
|
|
8
|
+
export declare function tryForEach(items: Array<any>, callback: (item: any, index: number) => void, printErrors?: boolean): void;
|