@ikas/storefront 1.0.13 → 1.0.14-alpha.1
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 +3 -0
- package/build/api/blog/__generated__/getBlog.d.ts +14 -16
- package/build/api/blog/__generated__/listBlog.d.ts +14 -16
- package/build/api/blog/__generated__/listBlogCategory.d.ts +14 -16
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +14 -16
- package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
- package/build/api/cart/__generated__/getCart.d.ts +2 -4
- package/build/api/cart/__generated__/saveItemToCart.d.ts +2 -4
- package/build/api/category/__generated__/listCategory.d.ts +3 -3
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +2 -4
- package/build/api/checkout/__generated__/getOrder.d.ts +5 -11
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +5 -11
- package/build/api/customer/__generated__/customerLogin.d.ts +12 -5
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +161 -0
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +5 -11
- package/build/api/customer/__generated__/getMyCustomer.d.ts +4 -5
- package/build/api/customer/__generated__/registerCustomer.d.ts +12 -5
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +12 -5
- package/build/api/customer/index.d.ts +5 -0
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +14 -16
- package/build/api/variant-type/__generated__/listVariantType.d.ts +3 -7
- package/build/index.es.js +172 -59
- package/build/index.js +172 -59
- package/build/store/customer.d.ts +19 -0
- package/build/storefront/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -73,7 +73,7 @@ export interface getMyCustomer_getMyCustomer_addresses {
|
|
|
73
73
|
*/
|
|
74
74
|
firstName: string;
|
|
75
75
|
/**
|
|
76
|
-
* Whether this address is the default address for the customer. Returns
|
|
76
|
+
* Whether this address is the default address for the customer. Returns `true` for each default address.
|
|
77
77
|
*/
|
|
78
78
|
isDefault: boolean | null;
|
|
79
79
|
/**
|
|
@@ -103,11 +103,11 @@ export interface getMyCustomer_getMyCustomer {
|
|
|
103
103
|
__typename: "Customer";
|
|
104
104
|
id: string;
|
|
105
105
|
/**
|
|
106
|
-
* Email verification status.
|
|
106
|
+
* Email verification status. **isEmailVerified** returns `true` if the email is verified.
|
|
107
107
|
*/
|
|
108
108
|
isEmailVerified: boolean | null;
|
|
109
109
|
/**
|
|
110
|
-
* Phone verification status.
|
|
110
|
+
* Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
|
|
111
111
|
*/
|
|
112
112
|
isPhoneVerified: boolean | null;
|
|
113
113
|
/**
|
|
@@ -127,8 +127,7 @@ export interface getMyCustomer_getMyCustomer {
|
|
|
127
127
|
*/
|
|
128
128
|
accountStatus: CustomerAccountStatusEnum | null;
|
|
129
129
|
/**
|
|
130
|
-
* The unique email address of the customer. Attempting to assign the same email
|
|
131
|
-
* address to multiple customers returns an error.
|
|
130
|
+
* The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
|
|
132
131
|
*/
|
|
133
132
|
email: string | null;
|
|
134
133
|
/**
|
|
@@ -22,6 +22,14 @@ export interface registerCustomer_registerCustomer_customer_addresses_country {
|
|
|
22
22
|
* The customer's normalized country name.
|
|
23
23
|
*/
|
|
24
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;
|
|
25
33
|
}
|
|
26
34
|
export interface registerCustomer_registerCustomer_customer_addresses_district {
|
|
27
35
|
__typename: "CustomerAddressDistrict";
|
|
@@ -73,7 +81,7 @@ export interface registerCustomer_registerCustomer_customer_addresses {
|
|
|
73
81
|
*/
|
|
74
82
|
firstName: string;
|
|
75
83
|
/**
|
|
76
|
-
* Whether this address is the default address for the customer. Returns
|
|
84
|
+
* Whether this address is the default address for the customer. Returns `true` for each default address.
|
|
77
85
|
*/
|
|
78
86
|
isDefault: boolean | null;
|
|
79
87
|
/**
|
|
@@ -99,11 +107,11 @@ export interface registerCustomer_registerCustomer_customer {
|
|
|
99
107
|
__typename: "Customer";
|
|
100
108
|
id: string;
|
|
101
109
|
/**
|
|
102
|
-
* Email verification status.
|
|
110
|
+
* Email verification status. **isEmailVerified** returns `true` if the email is verified.
|
|
103
111
|
*/
|
|
104
112
|
isEmailVerified: boolean | null;
|
|
105
113
|
/**
|
|
106
|
-
* Phone verification status.
|
|
114
|
+
* Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
|
|
107
115
|
*/
|
|
108
116
|
isPhoneVerified: boolean | null;
|
|
109
117
|
/**
|
|
@@ -123,8 +131,7 @@ export interface registerCustomer_registerCustomer_customer {
|
|
|
123
131
|
*/
|
|
124
132
|
accountStatus: CustomerAccountStatusEnum | null;
|
|
125
133
|
/**
|
|
126
|
-
* The unique email address of the customer. Attempting to assign the same email
|
|
127
|
-
* address to multiple customers returns an error.
|
|
134
|
+
* The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
|
|
128
135
|
*/
|
|
129
136
|
email: string | null;
|
|
130
137
|
/**
|
|
@@ -22,6 +22,14 @@ export interface saveMyCustomer_saveMyCustomer_addresses_country {
|
|
|
22
22
|
* The customer's normalized country name.
|
|
23
23
|
*/
|
|
24
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;
|
|
25
33
|
}
|
|
26
34
|
export interface saveMyCustomer_saveMyCustomer_addresses_district {
|
|
27
35
|
__typename: "CustomerAddressDistrict";
|
|
@@ -73,7 +81,7 @@ export interface saveMyCustomer_saveMyCustomer_addresses {
|
|
|
73
81
|
*/
|
|
74
82
|
firstName: string;
|
|
75
83
|
/**
|
|
76
|
-
* Whether this address is the default address for the customer. Returns
|
|
84
|
+
* Whether this address is the default address for the customer. Returns `true` for each default address.
|
|
77
85
|
*/
|
|
78
86
|
isDefault: boolean | null;
|
|
79
87
|
/**
|
|
@@ -107,11 +115,11 @@ export interface saveMyCustomer_saveMyCustomer {
|
|
|
107
115
|
__typename: "Customer";
|
|
108
116
|
id: string;
|
|
109
117
|
/**
|
|
110
|
-
* Email verification status.
|
|
118
|
+
* Email verification status. **isEmailVerified** returns `true` if the email is verified.
|
|
111
119
|
*/
|
|
112
120
|
isEmailVerified: boolean | null;
|
|
113
121
|
/**
|
|
114
|
-
* Phone verification status.
|
|
122
|
+
* Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
|
|
115
123
|
*/
|
|
116
124
|
isPhoneVerified: boolean | null;
|
|
117
125
|
/**
|
|
@@ -131,8 +139,7 @@ export interface saveMyCustomer_saveMyCustomer {
|
|
|
131
139
|
*/
|
|
132
140
|
accountStatus: CustomerAccountStatusEnum | null;
|
|
133
141
|
/**
|
|
134
|
-
* The unique email address of the customer. Attempting to assign the same email
|
|
135
|
-
* address to multiple customers returns an error.
|
|
142
|
+
* The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
|
|
136
143
|
*/
|
|
137
144
|
email: string | null;
|
|
138
145
|
/**
|
|
@@ -9,6 +9,11 @@ export declare class IkasCustomerAPI {
|
|
|
9
9
|
token: string;
|
|
10
10
|
tokenExpiry: number;
|
|
11
11
|
} | undefined>;
|
|
12
|
+
static socialLogin(code: string): Promise<{
|
|
13
|
+
customer: IkasCustomer;
|
|
14
|
+
token: string;
|
|
15
|
+
tokenExpiry: number;
|
|
16
|
+
} | undefined>;
|
|
12
17
|
static register(email: string, password: string, firstName: string, lastName: string, isAcceptMarketing?: boolean): Promise<{
|
|
13
18
|
customer: IkasCustomer;
|
|
14
19
|
__typename: "CustomerLoginResponse";
|
|
@@ -10,33 +10,31 @@ export interface listCustomerReviews_listCustomerReviews_data {
|
|
|
10
10
|
export interface listCustomerReviews_listCustomerReviews {
|
|
11
11
|
__typename: "CustomerReviewSFPaginationResponse";
|
|
12
12
|
/**
|
|
13
|
-
* Returns the first three records of each page in the records returned as a
|
|
14
|
-
*
|
|
15
|
-
* records that will return as a response are the records
|
|
13
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
14
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
15
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
16
16
|
*/
|
|
17
17
|
count: number;
|
|
18
18
|
data: listCustomerReviews_listCustomerReviews_data[];
|
|
19
19
|
/**
|
|
20
|
-
* In the records returned as Response, it shows whether there are any more
|
|
21
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
22
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
23
|
-
* ```true``` despite these records, ***it means there are more records.*** If
|
|
24
|
-
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
20
|
+
* In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
|
|
25
21
|
*/
|
|
26
22
|
hasNext: boolean;
|
|
27
23
|
/**
|
|
28
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* given. If no value is entered, default 50 is accepted
|
|
24
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
25
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
26
|
+
* :::note
|
|
27
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
28
|
+
* :::
|
|
32
29
|
*/
|
|
33
30
|
limit: number;
|
|
34
31
|
/**
|
|
35
32
|
* The number of the page you want to see in the records that return as response.
|
|
36
|
-
* For example: We entered the page field as
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
33
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
34
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
35
|
+
* :::note
|
|
36
|
+
* If no value is entered, default 1 is accepted.
|
|
37
|
+
* :::
|
|
40
38
|
*/
|
|
41
39
|
page: number;
|
|
42
40
|
}
|
|
@@ -6,9 +6,7 @@ export interface listVariantType_listVariantType_values {
|
|
|
6
6
|
updatedAt: any | null;
|
|
7
7
|
deleted: boolean | null;
|
|
8
8
|
/**
|
|
9
|
-
* It is the name information of the values used in the Variant type. Value
|
|
10
|
-
* information of Variant type is unique according to name.It can be a maximum of
|
|
11
|
-
* 100 characters.
|
|
9
|
+
* It is the name information of the values used in the Variant type. Value information of Variant type is unique according to name.It can be a maximum of 100 characters.
|
|
12
10
|
*/
|
|
13
11
|
name: string;
|
|
14
12
|
/**
|
|
@@ -50,7 +48,7 @@ export interface listVariantType_listVariantType {
|
|
|
50
48
|
updatedAt: any | null;
|
|
51
49
|
deleted: boolean | null;
|
|
52
50
|
/**
|
|
53
|
-
* Product variant type name information.
|
|
51
|
+
* Product variant type name information. **For example: Size, Color, Number etc.**.It can be a maximum of 100 characters.
|
|
54
52
|
*/
|
|
55
53
|
name: string;
|
|
56
54
|
/**
|
|
@@ -58,9 +56,7 @@ export interface listVariantType_listVariantType {
|
|
|
58
56
|
*/
|
|
59
57
|
selectionType: VariantSelectionTypeEnum;
|
|
60
58
|
/**
|
|
61
|
-
* Variant values used in Variant type.
|
|
62
|
-
* Variant values can be thought of as S, M, L, XL. ***It is unique according to
|
|
63
|
-
* the value name.Values array size must have at least one element.
|
|
59
|
+
* Variant values used in Variant type. ** For example, variant type: Size. Variant values can be thought of as S, M, L, XL. **It is unique according to the value name.Values array size must have at least one element.
|
|
64
60
|
*/
|
|
65
61
|
values: listVariantType_listVariantType_values[];
|
|
66
62
|
/**
|