@ikas/storefront 1.0.14-alpha.2 → 1.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/__generated__/global-types.d.ts +0 -3
- package/build/api/blog/__generated__/getBlog.d.ts +16 -14
- package/build/api/blog/__generated__/listBlog.d.ts +16 -14
- package/build/api/blog/__generated__/listBlogCategory.d.ts +16 -14
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +16 -14
- package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
- package/build/api/cart/__generated__/getCart.d.ts +4 -2
- package/build/api/cart/__generated__/saveItemToCart.d.ts +4 -2
- package/build/api/category/__generated__/listCategory.d.ts +3 -3
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -2
- package/build/api/checkout/__generated__/getOrder.d.ts +11 -5
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +11 -5
- package/build/api/customer/__generated__/customerLogin.d.ts +5 -12
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +11 -5
- package/build/api/customer/__generated__/getMyCustomer.d.ts +5 -4
- package/build/api/customer/__generated__/registerCustomer.d.ts +5 -12
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +5 -12
- package/build/api/customer/index.d.ts +0 -5
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +16 -14
- package/build/api/variant-type/__generated__/listVariantType.d.ts +7 -3
- package/build/index.es.js +60 -172
- package/build/index.js +60 -172
- package/build/store/customer.d.ts +0 -19
- package/build/storefront/index.d.ts +1 -3
- package/package.json +1 -1
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +0 -161
|
@@ -15,25 +15,6 @@ export declare class IkasCustomerStore {
|
|
|
15
15
|
get canCreateEmailSubscription(): boolean;
|
|
16
16
|
get customerConsentGranted(): boolean;
|
|
17
17
|
login: (email: string, password: string) => Promise<boolean>;
|
|
18
|
-
/**
|
|
19
|
-
* Call it when click the social login button
|
|
20
|
-
* This will automaticly redirect to matched url.
|
|
21
|
-
* @param provider
|
|
22
|
-
* @returns undefined
|
|
23
|
-
*/
|
|
24
|
-
socialLogin(provider: "facebook" | "google"): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* When user click the social login ex. facebook login. We navigate to backend.
|
|
27
|
-
* and backend navigate to provider. after user login into provider,
|
|
28
|
-
* backend redirect to account/login with following params;
|
|
29
|
-
* socialLoginStatus: success | fail
|
|
30
|
-
* socialLoginError: string
|
|
31
|
-
* socialLoginToken: string
|
|
32
|
-
* if query params includes socialLoginToken call this function to verify
|
|
33
|
-
* @param token
|
|
34
|
-
* @returns boolean
|
|
35
|
-
*/
|
|
36
|
-
socialLoginToken(token: string): Promise<boolean>;
|
|
37
18
|
register: (firstName: string, lastName: string, email: string, password: string, isMarketingAccepted?: boolean | undefined) => Promise<boolean>;
|
|
38
19
|
saveContactForm: (input: IkasContactForm) => Promise<boolean | undefined>;
|
|
39
20
|
checkEmail: (email: string) => Promise<boolean>;
|
|
@@ -5,13 +5,11 @@ import { IkasThemeStockPreference } from "../models/theme/settings/index";
|
|
|
5
5
|
import { IkasThemeFavicon } from "../models/theme/settings/prop/favicon/index";
|
|
6
6
|
import { IkasBaseStore } from "../store/index";
|
|
7
7
|
import { IkasCustomerReviewSettings } from "../models/index";
|
|
8
|
-
import { NextRouter } from "next/router";
|
|
9
8
|
export declare class IkasStorefrontConfig {
|
|
10
9
|
static store: IkasBaseStore;
|
|
11
10
|
static components: any;
|
|
12
11
|
static config: Record<string, any>;
|
|
13
12
|
static apiUrlOverride: string | null;
|
|
14
|
-
static router?: NextRouter;
|
|
15
13
|
static domain: string;
|
|
16
14
|
static storefrontId?: string;
|
|
17
15
|
static storefrontRoutingId?: string;
|
|
@@ -31,7 +29,7 @@ export declare class IkasStorefrontConfig {
|
|
|
31
29
|
static customerReviewSettings: IkasCustomerReviewSettings | null;
|
|
32
30
|
static productBackInStockSettings: IkasProductBackInStockSettings | null;
|
|
33
31
|
static init(store: IkasBaseStore, components: any, config: Record<string, any>, apiUrlOverride?: string): void;
|
|
34
|
-
static initWithJson(json: Record<string, any
|
|
32
|
+
static initWithJson(json: Record<string, any>): void;
|
|
35
33
|
static getCurrentLocale(): string;
|
|
36
34
|
static getJson(): {
|
|
37
35
|
domain: string;
|
package/package.json
CHANGED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { CustomerAccountStatusEnum, CustomerEmailSubscriptionStatusesEnum } from "../../../__generated__/global-types";
|
|
2
|
-
export interface customerSocialLogin_customerSocialLogin_customer_addresses_city {
|
|
3
|
-
__typename: "CustomerAddressCity";
|
|
4
|
-
/**
|
|
5
|
-
* The two-letter country code corresponding to the customer's country.
|
|
6
|
-
*/
|
|
7
|
-
code: string | null;
|
|
8
|
-
id: string | null;
|
|
9
|
-
/**
|
|
10
|
-
* The customer's normalized city name.
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
export interface customerSocialLogin_customerSocialLogin_customer_addresses_country {
|
|
15
|
-
__typename: "CustomerAddressCountry";
|
|
16
|
-
/**
|
|
17
|
-
* The two-letter country code corresponding to the customer's country.
|
|
18
|
-
*/
|
|
19
|
-
code: string | null;
|
|
20
|
-
id: string | null;
|
|
21
|
-
/**
|
|
22
|
-
* The customer's normalized country name.
|
|
23
|
-
*/
|
|
24
|
-
name: string;
|
|
25
|
-
/**
|
|
26
|
-
* The two-letter country code corresponding to the customer's country.
|
|
27
|
-
*/
|
|
28
|
-
iso2: string | null;
|
|
29
|
-
/**
|
|
30
|
-
* The two-letter country code corresponding to the customer's country.
|
|
31
|
-
*/
|
|
32
|
-
iso3: string | null;
|
|
33
|
-
}
|
|
34
|
-
export interface customerSocialLogin_customerSocialLogin_customer_addresses_district {
|
|
35
|
-
__typename: "CustomerAddressDistrict";
|
|
36
|
-
id: string | null;
|
|
37
|
-
/**
|
|
38
|
-
* The customer's normalized district name.
|
|
39
|
-
*/
|
|
40
|
-
name: string | null;
|
|
41
|
-
/**
|
|
42
|
-
* The two-letter district code corresponding to the customer's district.
|
|
43
|
-
*/
|
|
44
|
-
code: string | null;
|
|
45
|
-
}
|
|
46
|
-
export interface customerSocialLogin_customerSocialLogin_customer_addresses_state {
|
|
47
|
-
__typename: "CustomerAddressState";
|
|
48
|
-
name: string | null;
|
|
49
|
-
id: string | null;
|
|
50
|
-
code: string | null;
|
|
51
|
-
}
|
|
52
|
-
export interface customerSocialLogin_customerSocialLogin_customer_addresses {
|
|
53
|
-
__typename: "CustomerAddress";
|
|
54
|
-
/**
|
|
55
|
-
* The customer's mailing address.
|
|
56
|
-
*/
|
|
57
|
-
addressLine1: string;
|
|
58
|
-
/**
|
|
59
|
-
* An additional field for the customer's mailing address.
|
|
60
|
-
*/
|
|
61
|
-
addressLine2: string | null;
|
|
62
|
-
/**
|
|
63
|
-
* The customer's identity numbers.
|
|
64
|
-
*/
|
|
65
|
-
identityNumber: string | null;
|
|
66
|
-
/**
|
|
67
|
-
* The customer's city.
|
|
68
|
-
*/
|
|
69
|
-
city: customerSocialLogin_customerSocialLogin_customer_addresses_city;
|
|
70
|
-
/**
|
|
71
|
-
* The customer's company.
|
|
72
|
-
*/
|
|
73
|
-
company: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* The customer's country.
|
|
76
|
-
*/
|
|
77
|
-
country: customerSocialLogin_customerSocialLogin_customer_addresses_country;
|
|
78
|
-
/**
|
|
79
|
-
* The customer's district in city.
|
|
80
|
-
*/
|
|
81
|
-
district: customerSocialLogin_customerSocialLogin_customer_addresses_district | null;
|
|
82
|
-
id: string;
|
|
83
|
-
/**
|
|
84
|
-
* The customer's first name.
|
|
85
|
-
*/
|
|
86
|
-
firstName: string;
|
|
87
|
-
/**
|
|
88
|
-
* Whether this address is the default address for the customer. Returns `true` for each default address.
|
|
89
|
-
*/
|
|
90
|
-
isDefault: boolean | null;
|
|
91
|
-
/**
|
|
92
|
-
* The customer's last name.
|
|
93
|
-
*/
|
|
94
|
-
lastName: string;
|
|
95
|
-
/**
|
|
96
|
-
* The customer's postal code, also known as zip, postcode, etc.
|
|
97
|
-
*/
|
|
98
|
-
postalCode: string | null;
|
|
99
|
-
state: customerSocialLogin_customerSocialLogin_customer_addresses_state | null;
|
|
100
|
-
/**
|
|
101
|
-
* Tax number that the customer will use for orders
|
|
102
|
-
*/
|
|
103
|
-
taxNumber: string | null;
|
|
104
|
-
/**
|
|
105
|
-
* If customer is corporate, customer can use that field to fill their Tax Office name.
|
|
106
|
-
*/
|
|
107
|
-
taxOffice: string | null;
|
|
108
|
-
title: string;
|
|
109
|
-
}
|
|
110
|
-
export interface customerSocialLogin_customerSocialLogin_customer {
|
|
111
|
-
__typename: "Customer";
|
|
112
|
-
id: string;
|
|
113
|
-
/**
|
|
114
|
-
* Email verification status. **isEmailVerified** returns `true` if the email is verified.
|
|
115
|
-
*/
|
|
116
|
-
isEmailVerified: boolean | null;
|
|
117
|
-
/**
|
|
118
|
-
* Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
|
|
119
|
-
*/
|
|
120
|
-
isPhoneVerified: boolean | null;
|
|
121
|
-
/**
|
|
122
|
-
* The customer's last name.
|
|
123
|
-
*/
|
|
124
|
-
lastName: string | null;
|
|
125
|
-
/**
|
|
126
|
-
* A list of the ten most recently updated addresses for the customer.
|
|
127
|
-
*/
|
|
128
|
-
addresses: customerSocialLogin_customerSocialLogin_customer_addresses[] | null;
|
|
129
|
-
/**
|
|
130
|
-
* The customer's phone number
|
|
131
|
-
*/
|
|
132
|
-
phone: string | null;
|
|
133
|
-
/**
|
|
134
|
-
* CustomerAccountStatusEnum
|
|
135
|
-
*/
|
|
136
|
-
accountStatus: CustomerAccountStatusEnum | null;
|
|
137
|
-
/**
|
|
138
|
-
* The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
|
|
139
|
-
*/
|
|
140
|
-
email: string | null;
|
|
141
|
-
/**
|
|
142
|
-
* The customer's first name.
|
|
143
|
-
*/
|
|
144
|
-
firstName: string;
|
|
145
|
-
/**
|
|
146
|
-
* CustomerEmailSubscriptionStatusesEnum
|
|
147
|
-
*/
|
|
148
|
-
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
149
|
-
}
|
|
150
|
-
export interface customerSocialLogin_customerSocialLogin {
|
|
151
|
-
__typename: "CustomerLoginResponse";
|
|
152
|
-
token: string;
|
|
153
|
-
tokenExpiry: number;
|
|
154
|
-
customer: customerSocialLogin_customerSocialLogin_customer | null;
|
|
155
|
-
}
|
|
156
|
-
export interface customerSocialLogin {
|
|
157
|
-
customerSocialLogin: customerSocialLogin_customerSocialLogin;
|
|
158
|
-
}
|
|
159
|
-
export interface customerSocialLoginVariables {
|
|
160
|
-
code: string;
|
|
161
|
-
}
|