@ikas/storefront 1.0.14 → 1.0.15-alpha.2
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 +6 -1
- package/build/api/blog/__generated__/getBlog.d.ts +15 -13
- package/build/api/blog/__generated__/listBlog.d.ts +15 -13
- package/build/api/blog/__generated__/listBlogCategory.d.ts +15 -13
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +15 -13
- package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
- package/build/api/category/__generated__/listCategory.d.ts +3 -3
- package/build/api/checkout/__generated__/getOrder.d.ts +3 -3
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -1
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +3 -3
- package/build/api/customer/__generated__/customerLogin.d.ts +11 -3
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +3 -3
- package/build/api/customer/__generated__/getMyCustomer.d.ts +3 -3
- package/build/api/customer/__generated__/registerCustomer.d.ts +11 -3
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +11 -3
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +15 -13
- package/build/api/variant-type/__generated__/listVariantType.d.ts +3 -3
- package/build/index.es.js +26 -8
- package/build/index.js +26 -8
- package/build/models/data/checkout-settings/index.d.ts +1 -1
- package/build/models/data/customer/address/index.d.ts +2 -1
- package/build/models/data/order/address/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ export declare enum CancelledReasonEnum {
|
|
|
33
33
|
*/
|
|
34
34
|
export declare enum CartStatusEnum {
|
|
35
35
|
ACTIVE = "ACTIVE",
|
|
36
|
+
FREEZE = "FREEZE",
|
|
36
37
|
PASSIVE = "PASSIVE"
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
@@ -199,7 +200,8 @@ export declare enum PaymentMethodEnum {
|
|
|
199
200
|
CREDIT_CARD_ON_DELIVERY = "CREDIT_CARD_ON_DELIVERY",
|
|
200
201
|
GIFT_CARD = "GIFT_CARD",
|
|
201
202
|
MONEY_ORDER = "MONEY_ORDER",
|
|
202
|
-
OTHER = "OTHER"
|
|
203
|
+
OTHER = "OTHER",
|
|
204
|
+
WALLET = "WALLET"
|
|
203
205
|
}
|
|
204
206
|
/**
|
|
205
207
|
* ProductAttribute Types
|
|
@@ -241,6 +243,7 @@ export declare enum ProductFilterSortTypeEnum {
|
|
|
241
243
|
*/
|
|
242
244
|
export declare enum ProductFilterTypeEnum {
|
|
243
245
|
ATTRIBUTE = "ATTRIBUTE",
|
|
246
|
+
AVAILABLE_VARIANT_VALUE = "AVAILABLE_VARIANT_VALUE",
|
|
244
247
|
BRAND = "BRAND",
|
|
245
248
|
DISCOUNT_RATIO = "DISCOUNT_RATIO",
|
|
246
249
|
PRICE = "PRICE",
|
|
@@ -404,6 +407,8 @@ export interface CustomerAddressCityInput {
|
|
|
404
407
|
export interface CustomerAddressCountryInput {
|
|
405
408
|
code?: string | null;
|
|
406
409
|
id?: string | null;
|
|
410
|
+
iso2?: string | null;
|
|
411
|
+
iso3?: string | null;
|
|
407
412
|
name: string;
|
|
408
413
|
}
|
|
409
414
|
export interface CustomerAddressDistrictInput {
|
|
@@ -68,9 +68,9 @@ export interface getBlog_listBlog_data {
|
|
|
68
68
|
export interface getBlog_listBlog {
|
|
69
69
|
__typename: "BlogPaginationResponse";
|
|
70
70
|
/**
|
|
71
|
-
* Returns the first three records of each page in the records returned as a
|
|
72
|
-
*
|
|
73
|
-
* records that will return as a response are the records
|
|
71
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
72
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
73
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
74
74
|
*/
|
|
75
75
|
count: number;
|
|
76
76
|
data: getBlog_listBlog_data[];
|
|
@@ -78,23 +78,25 @@ export interface getBlog_listBlog {
|
|
|
78
78
|
* In the records returned as Response, it shows whether there are any more
|
|
79
79
|
* records or not. For example, let's say our page field is three and our limit
|
|
80
80
|
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
81
|
-
*
|
|
82
|
-
*
|
|
81
|
+
* `true` despite these records, **it means there are more records.** If hasNext
|
|
82
|
+
* is `false`, it means there are a total of **90 records.**
|
|
83
83
|
*/
|
|
84
84
|
hasNext: boolean;
|
|
85
85
|
/**
|
|
86
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* given. If no value is entered, default 50 is accepted
|
|
86
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
87
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
88
|
+
* :::note
|
|
89
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
90
|
+
* :::
|
|
90
91
|
*/
|
|
91
92
|
limit: number;
|
|
92
93
|
/**
|
|
93
94
|
* The number of the page you want to see in the records that return as response.
|
|
94
|
-
* For example: We entered the page field as
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
95
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
96
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
97
|
+
* :::note
|
|
98
|
+
* If no value is entered, default 1 is accepted.
|
|
99
|
+
* :::
|
|
98
100
|
*/
|
|
99
101
|
page: number;
|
|
100
102
|
}
|
|
@@ -68,9 +68,9 @@ export interface listBlog_listBlog_data {
|
|
|
68
68
|
export interface listBlog_listBlog {
|
|
69
69
|
__typename: "BlogPaginationResponse";
|
|
70
70
|
/**
|
|
71
|
-
* Returns the first three records of each page in the records returned as a
|
|
72
|
-
*
|
|
73
|
-
* records that will return as a response are the records
|
|
71
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
72
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
73
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
74
74
|
*/
|
|
75
75
|
count: number;
|
|
76
76
|
data: listBlog_listBlog_data[];
|
|
@@ -78,23 +78,25 @@ export interface listBlog_listBlog {
|
|
|
78
78
|
* In the records returned as Response, it shows whether there are any more
|
|
79
79
|
* records or not. For example, let's say our page field is three and our limit
|
|
80
80
|
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
81
|
-
*
|
|
82
|
-
*
|
|
81
|
+
* `true` despite these records, **it means there are more records.** If hasNext
|
|
82
|
+
* is `false`, it means there are a total of **90 records.**
|
|
83
83
|
*/
|
|
84
84
|
hasNext: boolean;
|
|
85
85
|
/**
|
|
86
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* given. If no value is entered, default 50 is accepted
|
|
86
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
87
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
88
|
+
* :::note
|
|
89
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
90
|
+
* :::
|
|
90
91
|
*/
|
|
91
92
|
limit: number;
|
|
92
93
|
/**
|
|
93
94
|
* The number of the page you want to see in the records that return as response.
|
|
94
|
-
* For example: We entered the page field as
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
95
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
96
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
97
|
+
* :::note
|
|
98
|
+
* If no value is entered, default 1 is accepted.
|
|
99
|
+
* :::
|
|
98
100
|
*/
|
|
99
101
|
page: number;
|
|
100
102
|
}
|
|
@@ -24,9 +24,9 @@ export interface listBlogCategory_listBlogCategory_data {
|
|
|
24
24
|
export interface listBlogCategory_listBlogCategory {
|
|
25
25
|
__typename: "BlogCategoryPaginationResponse";
|
|
26
26
|
/**
|
|
27
|
-
* Returns the first three records of each page in the records returned as a
|
|
28
|
-
*
|
|
29
|
-
* records that will return as a response are the records
|
|
27
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
28
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
29
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
30
30
|
*/
|
|
31
31
|
count: number;
|
|
32
32
|
data: listBlogCategory_listBlogCategory_data[];
|
|
@@ -34,23 +34,25 @@ export interface listBlogCategory_listBlogCategory {
|
|
|
34
34
|
* In the records returned as Response, it shows whether there are any more
|
|
35
35
|
* records or not. For example, let's say our page field is three and our limit
|
|
36
36
|
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
37
|
-
*
|
|
38
|
-
*
|
|
37
|
+
* `true` despite these records, **it means there are more records.** If hasNext
|
|
38
|
+
* is `false`, it means there are a total of **90 records.**
|
|
39
39
|
*/
|
|
40
40
|
hasNext: boolean;
|
|
41
41
|
/**
|
|
42
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* given. If no value is entered, default 50 is accepted
|
|
42
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
43
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
44
|
+
* :::note
|
|
45
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
46
|
+
* :::
|
|
46
47
|
*/
|
|
47
48
|
limit: number;
|
|
48
49
|
/**
|
|
49
50
|
* The number of the page you want to see in the records that return as response.
|
|
50
|
-
* For example: We entered the page field as
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
51
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
52
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
53
|
+
* :::note
|
|
54
|
+
* If no value is entered, default 1 is accepted.
|
|
55
|
+
* :::
|
|
54
56
|
*/
|
|
55
57
|
page: number;
|
|
56
58
|
}
|
|
@@ -14,9 +14,9 @@ export interface listBlogMetaData_listBlogMetadata_data {
|
|
|
14
14
|
export interface listBlogMetaData_listBlogMetadata {
|
|
15
15
|
__typename: "BlogMetadataPaginationResponse";
|
|
16
16
|
/**
|
|
17
|
-
* Returns the first three records of each page in the records returned as a
|
|
18
|
-
*
|
|
19
|
-
* records that will return as a response are the records
|
|
17
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
18
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
19
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
20
20
|
*/
|
|
21
21
|
count: number;
|
|
22
22
|
data: listBlogMetaData_listBlogMetadata_data[];
|
|
@@ -24,23 +24,25 @@ export interface listBlogMetaData_listBlogMetadata {
|
|
|
24
24
|
* In the records returned as Response, it shows whether there are any more
|
|
25
25
|
* records or not. For example, let's say our page field is three and our limit
|
|
26
26
|
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* `true` despite these records, **it means there are more records.** If hasNext
|
|
28
|
+
* is `false`, it means there are a total of **90 records.**
|
|
29
29
|
*/
|
|
30
30
|
hasNext: boolean;
|
|
31
31
|
/**
|
|
32
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* given. If no value is entered, default 50 is accepted
|
|
32
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
33
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
34
|
+
* :::note
|
|
35
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
36
|
+
* :::
|
|
36
37
|
*/
|
|
37
38
|
limit: number;
|
|
38
39
|
/**
|
|
39
40
|
* The number of the page you want to see in the records that return as response.
|
|
40
|
-
* For example: We entered the page field as
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
42
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
43
|
+
* :::note
|
|
44
|
+
* If no value is entered, default 1 is accepted.
|
|
45
|
+
* :::
|
|
44
46
|
*/
|
|
45
47
|
page: number;
|
|
46
48
|
}
|
|
@@ -71,9 +71,9 @@ export interface listProductBrand_listProductBrand {
|
|
|
71
71
|
__typename: "ProductBrandPaginationResponse";
|
|
72
72
|
data: listProductBrand_listProductBrand_data[];
|
|
73
73
|
/**
|
|
74
|
-
* Returns the first three records of each page in the records returned as a
|
|
75
|
-
*
|
|
76
|
-
* records that will return as a response are the records
|
|
74
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
75
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
76
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
77
77
|
*/
|
|
78
78
|
count: number;
|
|
79
79
|
}
|
|
@@ -82,9 +82,9 @@ export interface listCategory_listCategory {
|
|
|
82
82
|
__typename: "CategoryPaginationResponse";
|
|
83
83
|
data: listCategory_listCategory_data[];
|
|
84
84
|
/**
|
|
85
|
-
* Returns the first three records of each page in the records returned as a
|
|
86
|
-
*
|
|
87
|
-
* records that will return as a response are the records
|
|
85
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
86
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
87
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
88
88
|
*/
|
|
89
89
|
count: number;
|
|
90
90
|
}
|
|
@@ -332,7 +332,7 @@ export interface getOrder_getOrder_orderPackages_trackingInfo {
|
|
|
332
332
|
trackingLink: string | null;
|
|
333
333
|
/**
|
|
334
334
|
* Indicates whether the notification is sent to the customer after the cargo is
|
|
335
|
-
* delivered.
|
|
335
|
+
* delivered. **isSendNotification** returns true if the notification is sent.
|
|
336
336
|
*/
|
|
337
337
|
isSendNotification: boolean | null;
|
|
338
338
|
/**
|
|
@@ -602,8 +602,8 @@ export interface getOrder_getOrder {
|
|
|
602
602
|
taxLines: getOrder_getOrder_taxLines[] | null;
|
|
603
603
|
/**
|
|
604
604
|
* The total final price of the order resulting from the apply of
|
|
605
|
-
*
|
|
606
|
-
*
|
|
605
|
+
* `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the
|
|
606
|
+
* order total price.
|
|
607
607
|
*/
|
|
608
608
|
totalFinalPrice: number;
|
|
609
609
|
/**
|
|
@@ -24,7 +24,7 @@ export interface listCheckoutSettings_listCheckoutSettings {
|
|
|
24
24
|
updatedAt: any | null;
|
|
25
25
|
isGiftPackageEnabled: boolean | null;
|
|
26
26
|
giftPackagePriceList: listCheckoutSettings_listCheckoutSettings_giftPackagePriceList[] | null;
|
|
27
|
-
|
|
27
|
+
postalCodeRequirement: CheckoutRequirementEnum | null;
|
|
28
28
|
}
|
|
29
29
|
export interface listCheckoutSettings {
|
|
30
30
|
listCheckoutSettings: listCheckoutSettings_listCheckoutSettings[];
|
|
@@ -302,7 +302,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest_orderPackages
|
|
|
302
302
|
trackingLink: string | null;
|
|
303
303
|
/**
|
|
304
304
|
* Indicates whether the notification is sent to the customer after the cargo is
|
|
305
|
-
* delivered.
|
|
305
|
+
* delivered. **isSendNotification** returns true if the notification is sent.
|
|
306
306
|
*/
|
|
307
307
|
isSendNotification: boolean | null;
|
|
308
308
|
/**
|
|
@@ -572,8 +572,8 @@ export interface createOrderRefundRequest_createOrderRefundRequest {
|
|
|
572
572
|
taxLines: createOrderRefundRequest_createOrderRefundRequest_taxLines[] | null;
|
|
573
573
|
/**
|
|
574
574
|
* The total final price of the order resulting from the apply of
|
|
575
|
-
*
|
|
576
|
-
*
|
|
575
|
+
* `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the
|
|
576
|
+
* order total price.
|
|
577
577
|
*/
|
|
578
578
|
totalFinalPrice: number;
|
|
579
579
|
/**
|
|
@@ -22,6 +22,14 @@ export interface customerLogin_customerLogin_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 customerLogin_customerLogin_customer_addresses_district {
|
|
27
35
|
__typename: "CustomerAddressDistrict";
|
|
@@ -77,7 +85,7 @@ export interface customerLogin_customerLogin_customer_addresses {
|
|
|
77
85
|
*/
|
|
78
86
|
firstName: string;
|
|
79
87
|
/**
|
|
80
|
-
* Whether this address is the default address for the customer. Returns
|
|
88
|
+
* Whether this address is the default address for the customer. Returns `true` for each default address.
|
|
81
89
|
*/
|
|
82
90
|
isDefault: boolean | null;
|
|
83
91
|
/**
|
|
@@ -103,11 +111,11 @@ export interface customerLogin_customerLogin_customer {
|
|
|
103
111
|
__typename: "Customer";
|
|
104
112
|
id: string;
|
|
105
113
|
/**
|
|
106
|
-
* Email verification status.
|
|
114
|
+
* Email verification status. **isEmailVerified** returns `true` if the email is verified.
|
|
107
115
|
*/
|
|
108
116
|
isEmailVerified: boolean | null;
|
|
109
117
|
/**
|
|
110
|
-
* Phone verification status.
|
|
118
|
+
* Phone verification status. **isPhoneVerified** returns `true` if the email is verified.
|
|
111
119
|
*/
|
|
112
120
|
isPhoneVerified: boolean | null;
|
|
113
121
|
/**
|
|
@@ -332,7 +332,7 @@ export interface getCustomerOrders_getCustomerOrders_orderPackages_trackingInfo
|
|
|
332
332
|
trackingLink: string | null;
|
|
333
333
|
/**
|
|
334
334
|
* Indicates whether the notification is sent to the customer after the cargo is
|
|
335
|
-
* delivered.
|
|
335
|
+
* delivered. **isSendNotification** returns true if the notification is sent.
|
|
336
336
|
*/
|
|
337
337
|
isSendNotification: boolean | null;
|
|
338
338
|
/**
|
|
@@ -602,8 +602,8 @@ export interface getCustomerOrders_getCustomerOrders {
|
|
|
602
602
|
taxLines: getCustomerOrders_getCustomerOrders_taxLines[] | null;
|
|
603
603
|
/**
|
|
604
604
|
* The total final price of the order resulting from the apply of
|
|
605
|
-
*
|
|
606
|
-
*
|
|
605
|
+
* `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the
|
|
606
|
+
* order total price.
|
|
607
607
|
*/
|
|
608
608
|
totalFinalPrice: number;
|
|
609
609
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -10,9 +10,9 @@ 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[];
|
|
@@ -20,23 +20,25 @@ export interface listCustomerReviews_listCustomerReviews {
|
|
|
20
20
|
* In the records returned as Response, it shows whether there are any more
|
|
21
21
|
* records or not. For example, let's say our page field is three and our limit
|
|
22
22
|
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* `true` despite these records, **it means there are more records.** If hasNext
|
|
24
|
+
* is `false`, it means there are a total of **90 records.**
|
|
25
25
|
*/
|
|
26
26
|
hasNext: boolean;
|
|
27
27
|
/**
|
|
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
|
|
28
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
29
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
30
|
+
* :::note
|
|
31
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
32
|
+
* :::
|
|
32
33
|
*/
|
|
33
34
|
limit: number;
|
|
34
35
|
/**
|
|
35
36
|
* 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
|
-
*
|
|
37
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
38
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
39
|
+
* :::note
|
|
40
|
+
* If no value is entered, default 1 is accepted.
|
|
41
|
+
* :::
|
|
40
42
|
*/
|
|
41
43
|
page: number;
|
|
42
44
|
}
|
|
@@ -50,7 +50,7 @@ export interface listVariantType_listVariantType {
|
|
|
50
50
|
updatedAt: any | null;
|
|
51
51
|
deleted: boolean | null;
|
|
52
52
|
/**
|
|
53
|
-
* Product variant type name information.
|
|
53
|
+
* Product variant type name information. **For example: Size, Color, Number etc.**.It can be a maximum of 100 characters.
|
|
54
54
|
*/
|
|
55
55
|
name: string;
|
|
56
56
|
/**
|
|
@@ -58,8 +58,8 @@ export interface listVariantType_listVariantType {
|
|
|
58
58
|
*/
|
|
59
59
|
selectionType: VariantSelectionTypeEnum;
|
|
60
60
|
/**
|
|
61
|
-
* Variant values used in Variant type.
|
|
62
|
-
* Variant values can be thought of as S, M, L, XL.
|
|
61
|
+
* Variant values used in Variant type. ** For example, variant type: Size.
|
|
62
|
+
* Variant values can be thought of as S, M, L, XL. **It is unique according to
|
|
63
63
|
* the value name.Values array size must have at least one element.
|
|
64
64
|
*/
|
|
65
65
|
values: listVariantType_listVariantType_values[];
|
package/build/index.es.js
CHANGED
|
@@ -13992,6 +13992,8 @@ var IkasCheckoutSettings = /** @class */ (function () {
|
|
|
13992
13992
|
this.updatedAt = data.updatedAt || 0;
|
|
13993
13993
|
this.phoneRequirement =
|
|
13994
13994
|
data.phoneRequirement || IkasCheckoutRequirementEnum.OPTIONAL;
|
|
13995
|
+
this.postalCodeRequirement =
|
|
13996
|
+
data.postalCodeRequirement || IkasCheckoutRequirementEnum.OPTIONAL;
|
|
13995
13997
|
this.identityNumberRequirement =
|
|
13996
13998
|
data.identityNumberRequirement || IkasCheckoutRequirementEnum.INVISIBLE;
|
|
13997
13999
|
this.isAccountRequired = data.isAccountRequired || false;
|
|
@@ -14005,7 +14007,6 @@ var IkasCheckoutSettings = /** @class */ (function () {
|
|
|
14005
14007
|
this.storefrontId = data.storefrontId || "";
|
|
14006
14008
|
this.giftPackagePriceList = data.giftPackagePriceList || null;
|
|
14007
14009
|
this.isGiftPackageEnabled = data.isGiftPackageEnabled || false;
|
|
14008
|
-
this.isShowPostalCode = data.isShowPostalCode || false;
|
|
14009
14010
|
}
|
|
14010
14011
|
return IkasCheckoutSettings;
|
|
14011
14012
|
}());
|
|
@@ -14036,6 +14037,8 @@ var IkasOrderAddress = /** @class */ (function () {
|
|
|
14036
14037
|
this.identityNumber = null;
|
|
14037
14038
|
this.taxNumber = null;
|
|
14038
14039
|
this.taxOffice = null;
|
|
14040
|
+
// Extra
|
|
14041
|
+
this.checkoutSettings = null;
|
|
14039
14042
|
this.isDistrictRequired = false;
|
|
14040
14043
|
this.id = data.id || null;
|
|
14041
14044
|
this.title = data.title || null;
|
|
@@ -14082,7 +14085,7 @@ var IkasOrderAddress = /** @class */ (function () {
|
|
|
14082
14085
|
});
|
|
14083
14086
|
Object.defineProperty(IkasOrderAddress.prototype, "validationResult", {
|
|
14084
14087
|
get: function () {
|
|
14085
|
-
var _a, _b, _c, _d;
|
|
14088
|
+
var _a, _b, _c, _d, _e;
|
|
14086
14089
|
var isValidPhone = !!this.phone &&
|
|
14087
14090
|
this.phone.length >= 10 &&
|
|
14088
14091
|
validatePhoneNumber(this.phone);
|
|
@@ -14101,7 +14104,11 @@ var IkasOrderAddress = /** @class */ (function () {
|
|
|
14101
14104
|
this.phone)
|
|
14102
14105
|
? isValidPhone
|
|
14103
14106
|
: true,
|
|
14104
|
-
|
|
14107
|
+
postalCode: ((_d = this.checkoutSettings) === null || _d === void 0 ? void 0 : _d.postalCodeRequirement) ===
|
|
14108
|
+
IkasCheckoutRequirementEnum.MANDATORY
|
|
14109
|
+
? !!this.postalCode
|
|
14110
|
+
: true,
|
|
14111
|
+
identityNumber: ((_e = this.checkoutSettings) === null || _e === void 0 ? void 0 : _e.identityNumberRequirement) ===
|
|
14105
14112
|
IkasCheckoutRequirementEnum.MANDATORY
|
|
14106
14113
|
? !!this.identityNumber
|
|
14107
14114
|
: true,
|
|
@@ -20370,6 +20377,8 @@ var IkasCustomerAddress = /** @class */ (function () {
|
|
|
20370
20377
|
this.identityNumber = null;
|
|
20371
20378
|
this.taxNumber = null;
|
|
20372
20379
|
this.taxOffice = null;
|
|
20380
|
+
// Extra
|
|
20381
|
+
this.checkoutSettings = null;
|
|
20373
20382
|
this.isDistrictRequired = false;
|
|
20374
20383
|
this.id = data.id || null;
|
|
20375
20384
|
this.title = data.title || null;
|
|
@@ -20414,7 +20423,7 @@ var IkasCustomerAddress = /** @class */ (function () {
|
|
|
20414
20423
|
});
|
|
20415
20424
|
Object.defineProperty(IkasCustomerAddress.prototype, "validationResult", {
|
|
20416
20425
|
get: function () {
|
|
20417
|
-
var _a, _b, _c, _d;
|
|
20426
|
+
var _a, _b, _c, _d, _e;
|
|
20418
20427
|
var isValidPhone = !!this.phone &&
|
|
20419
20428
|
this.phone.length >= 10 &&
|
|
20420
20429
|
validatePhoneNumber(this.phone);
|
|
@@ -20433,7 +20442,11 @@ var IkasCustomerAddress = /** @class */ (function () {
|
|
|
20433
20442
|
this.phone)
|
|
20434
20443
|
? isValidPhone
|
|
20435
20444
|
: true,
|
|
20436
|
-
|
|
20445
|
+
postalCode: ((_d = this.checkoutSettings) === null || _d === void 0 ? void 0 : _d.postalCodeRequirement) ===
|
|
20446
|
+
IkasCheckoutRequirementEnum.MANDATORY
|
|
20447
|
+
? !!this.postalCode
|
|
20448
|
+
: true,
|
|
20449
|
+
identityNumber: ((_e = this.checkoutSettings) === null || _e === void 0 ? void 0 : _e.identityNumberRequirement) ===
|
|
20437
20450
|
IkasCheckoutRequirementEnum.MANDATORY
|
|
20438
20451
|
? !!this.identityNumber
|
|
20439
20452
|
: true,
|
|
@@ -37780,6 +37793,7 @@ var CancelledReasonEnum;
|
|
|
37780
37793
|
var CartStatusEnum;
|
|
37781
37794
|
(function (CartStatusEnum) {
|
|
37782
37795
|
CartStatusEnum["ACTIVE"] = "ACTIVE";
|
|
37796
|
+
CartStatusEnum["FREEZE"] = "FREEZE";
|
|
37783
37797
|
CartStatusEnum["PASSIVE"] = "PASSIVE";
|
|
37784
37798
|
})(CartStatusEnum || (CartStatusEnum = {}));
|
|
37785
37799
|
/**
|
|
@@ -37964,6 +37978,7 @@ var PaymentMethodEnum;
|
|
|
37964
37978
|
PaymentMethodEnum["GIFT_CARD"] = "GIFT_CARD";
|
|
37965
37979
|
PaymentMethodEnum["MONEY_ORDER"] = "MONEY_ORDER";
|
|
37966
37980
|
PaymentMethodEnum["OTHER"] = "OTHER";
|
|
37981
|
+
PaymentMethodEnum["WALLET"] = "WALLET";
|
|
37967
37982
|
})(PaymentMethodEnum || (PaymentMethodEnum = {}));
|
|
37968
37983
|
/**
|
|
37969
37984
|
* ProductAttribute Types
|
|
@@ -38009,6 +38024,7 @@ var ProductFilterSortTypeEnum;
|
|
|
38009
38024
|
var ProductFilterTypeEnum;
|
|
38010
38025
|
(function (ProductFilterTypeEnum) {
|
|
38011
38026
|
ProductFilterTypeEnum["ATTRIBUTE"] = "ATTRIBUTE";
|
|
38027
|
+
ProductFilterTypeEnum["AVAILABLE_VARIANT_VALUE"] = "AVAILABLE_VARIANT_VALUE";
|
|
38012
38028
|
ProductFilterTypeEnum["BRAND"] = "BRAND";
|
|
38013
38029
|
ProductFilterTypeEnum["DISCOUNT_RATIO"] = "DISCOUNT_RATIO";
|
|
38014
38030
|
ProductFilterTypeEnum["PRICE"] = "PRICE";
|
|
@@ -42154,7 +42170,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
42154
42170
|
return __generator(this, function (_b) {
|
|
42155
42171
|
switch (_b.label) {
|
|
42156
42172
|
case 0:
|
|
42157
|
-
QUERY = src(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n
|
|
42173
|
+
QUERY = src(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n postalCodeRequirement\n }\n }\n "], ["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n postalCodeRequirement\n }\n }\n "])));
|
|
42158
42174
|
_b.label = 1;
|
|
42159
42175
|
case 1:
|
|
42160
42176
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -70267,7 +70283,8 @@ var AddressForm$1 = observer(function (props) {
|
|
|
70267
70283
|
vm.address.checkoutSettings.identityNumberRequirement !==
|
|
70268
70284
|
IkasCheckoutRequirementEnum.INVISIBLE && (createElement("div", { className: styles$4.RowPB },
|
|
70269
70285
|
createElement(IdentityNumber, __assign({}, props, { vm: vm })))),
|
|
70270
|
-
((_a = vm.address.checkoutSettings) === null || _a === void 0 ? void 0 : _a.
|
|
70286
|
+
((_a = vm.address.checkoutSettings) === null || _a === void 0 ? void 0 : _a.phoneRequirement) !==
|
|
70287
|
+
IkasCheckoutRequirementEnum.INVISIBLE ? (createElement(Fragment$1, null,
|
|
70271
70288
|
createElement("div", { className: styles$4.RowPB },
|
|
70272
70289
|
createElement(AddressFirstLine, __assign({}, props, { vm: vm }))),
|
|
70273
70290
|
createElement("div", { className: [commonStyles.Grid, commonStyles.Grid2].join(" ") },
|
|
@@ -70341,9 +70358,10 @@ var AddressSecondLine = observer(function (_a) {
|
|
|
70341
70358
|
return (createElement(FormItem, { type: FormItemType.TEXT, autocomplete: "address-line2", label: t("checkout-page:addressLine2"), value: vm.address.addressLine2 || "", onChange: vm.onAddressLine2Change }));
|
|
70342
70359
|
});
|
|
70343
70360
|
var PostalCode = observer(function (_a) {
|
|
70361
|
+
var _b;
|
|
70344
70362
|
var vm = _a.vm;
|
|
70345
70363
|
var t = useTranslation().t;
|
|
70346
|
-
return (createElement(FormItem, { type: FormItemType.TEXT, label: t("checkout-page:postalCode"), autocomplete: "postal-code", value: vm.address.postalCode || "", onChange: vm.onAddressPostalCodeChange }));
|
|
70364
|
+
return (createElement(FormItem, { type: FormItemType.TEXT, label: t("checkout-page:postalCode"), autocomplete: "postal-code", value: vm.address.postalCode || "", onChange: vm.onAddressPostalCodeChange, hasError: vm.isErrorsVisible && !((_b = vm.address.validationResult) === null || _b === void 0 ? void 0 : _b.postalCode), errorText: t("checkout-page:postalCodeError") }));
|
|
70347
70365
|
});
|
|
70348
70366
|
var Country = observer(function (_a) {
|
|
70349
70367
|
var _b, _c;
|
package/build/index.js
CHANGED
|
@@ -14007,6 +14007,8 @@ var IkasCheckoutSettings = /** @class */ (function () {
|
|
|
14007
14007
|
this.updatedAt = data.updatedAt || 0;
|
|
14008
14008
|
this.phoneRequirement =
|
|
14009
14009
|
data.phoneRequirement || IkasCheckoutRequirementEnum.OPTIONAL;
|
|
14010
|
+
this.postalCodeRequirement =
|
|
14011
|
+
data.postalCodeRequirement || IkasCheckoutRequirementEnum.OPTIONAL;
|
|
14010
14012
|
this.identityNumberRequirement =
|
|
14011
14013
|
data.identityNumberRequirement || IkasCheckoutRequirementEnum.INVISIBLE;
|
|
14012
14014
|
this.isAccountRequired = data.isAccountRequired || false;
|
|
@@ -14020,7 +14022,6 @@ var IkasCheckoutSettings = /** @class */ (function () {
|
|
|
14020
14022
|
this.storefrontId = data.storefrontId || "";
|
|
14021
14023
|
this.giftPackagePriceList = data.giftPackagePriceList || null;
|
|
14022
14024
|
this.isGiftPackageEnabled = data.isGiftPackageEnabled || false;
|
|
14023
|
-
this.isShowPostalCode = data.isShowPostalCode || false;
|
|
14024
14025
|
}
|
|
14025
14026
|
return IkasCheckoutSettings;
|
|
14026
14027
|
}());
|
|
@@ -14051,6 +14052,8 @@ var IkasOrderAddress = /** @class */ (function () {
|
|
|
14051
14052
|
this.identityNumber = null;
|
|
14052
14053
|
this.taxNumber = null;
|
|
14053
14054
|
this.taxOffice = null;
|
|
14055
|
+
// Extra
|
|
14056
|
+
this.checkoutSettings = null;
|
|
14054
14057
|
this.isDistrictRequired = false;
|
|
14055
14058
|
this.id = data.id || null;
|
|
14056
14059
|
this.title = data.title || null;
|
|
@@ -14097,7 +14100,7 @@ var IkasOrderAddress = /** @class */ (function () {
|
|
|
14097
14100
|
});
|
|
14098
14101
|
Object.defineProperty(IkasOrderAddress.prototype, "validationResult", {
|
|
14099
14102
|
get: function () {
|
|
14100
|
-
var _a, _b, _c, _d;
|
|
14103
|
+
var _a, _b, _c, _d, _e;
|
|
14101
14104
|
var isValidPhone = !!this.phone &&
|
|
14102
14105
|
this.phone.length >= 10 &&
|
|
14103
14106
|
validatePhoneNumber(this.phone);
|
|
@@ -14116,7 +14119,11 @@ var IkasOrderAddress = /** @class */ (function () {
|
|
|
14116
14119
|
this.phone)
|
|
14117
14120
|
? isValidPhone
|
|
14118
14121
|
: true,
|
|
14119
|
-
|
|
14122
|
+
postalCode: ((_d = this.checkoutSettings) === null || _d === void 0 ? void 0 : _d.postalCodeRequirement) ===
|
|
14123
|
+
IkasCheckoutRequirementEnum.MANDATORY
|
|
14124
|
+
? !!this.postalCode
|
|
14125
|
+
: true,
|
|
14126
|
+
identityNumber: ((_e = this.checkoutSettings) === null || _e === void 0 ? void 0 : _e.identityNumberRequirement) ===
|
|
14120
14127
|
IkasCheckoutRequirementEnum.MANDATORY
|
|
14121
14128
|
? !!this.identityNumber
|
|
14122
14129
|
: true,
|
|
@@ -20379,6 +20386,8 @@ var IkasCustomerAddress = /** @class */ (function () {
|
|
|
20379
20386
|
this.identityNumber = null;
|
|
20380
20387
|
this.taxNumber = null;
|
|
20381
20388
|
this.taxOffice = null;
|
|
20389
|
+
// Extra
|
|
20390
|
+
this.checkoutSettings = null;
|
|
20382
20391
|
this.isDistrictRequired = false;
|
|
20383
20392
|
this.id = data.id || null;
|
|
20384
20393
|
this.title = data.title || null;
|
|
@@ -20423,7 +20432,7 @@ var IkasCustomerAddress = /** @class */ (function () {
|
|
|
20423
20432
|
});
|
|
20424
20433
|
Object.defineProperty(IkasCustomerAddress.prototype, "validationResult", {
|
|
20425
20434
|
get: function () {
|
|
20426
|
-
var _a, _b, _c, _d;
|
|
20435
|
+
var _a, _b, _c, _d, _e;
|
|
20427
20436
|
var isValidPhone = !!this.phone &&
|
|
20428
20437
|
this.phone.length >= 10 &&
|
|
20429
20438
|
validatePhoneNumber(this.phone);
|
|
@@ -20442,7 +20451,11 @@ var IkasCustomerAddress = /** @class */ (function () {
|
|
|
20442
20451
|
this.phone)
|
|
20443
20452
|
? isValidPhone
|
|
20444
20453
|
: true,
|
|
20445
|
-
|
|
20454
|
+
postalCode: ((_d = this.checkoutSettings) === null || _d === void 0 ? void 0 : _d.postalCodeRequirement) ===
|
|
20455
|
+
IkasCheckoutRequirementEnum.MANDATORY
|
|
20456
|
+
? !!this.postalCode
|
|
20457
|
+
: true,
|
|
20458
|
+
identityNumber: ((_e = this.checkoutSettings) === null || _e === void 0 ? void 0 : _e.identityNumberRequirement) ===
|
|
20446
20459
|
IkasCheckoutRequirementEnum.MANDATORY
|
|
20447
20460
|
? !!this.identityNumber
|
|
20448
20461
|
: true,
|
|
@@ -37760,6 +37773,7 @@ var CancelledReasonEnum;
|
|
|
37760
37773
|
var CartStatusEnum;
|
|
37761
37774
|
(function (CartStatusEnum) {
|
|
37762
37775
|
CartStatusEnum["ACTIVE"] = "ACTIVE";
|
|
37776
|
+
CartStatusEnum["FREEZE"] = "FREEZE";
|
|
37763
37777
|
CartStatusEnum["PASSIVE"] = "PASSIVE";
|
|
37764
37778
|
})(CartStatusEnum || (CartStatusEnum = {}));
|
|
37765
37779
|
/**
|
|
@@ -37944,6 +37958,7 @@ var PaymentMethodEnum;
|
|
|
37944
37958
|
PaymentMethodEnum["GIFT_CARD"] = "GIFT_CARD";
|
|
37945
37959
|
PaymentMethodEnum["MONEY_ORDER"] = "MONEY_ORDER";
|
|
37946
37960
|
PaymentMethodEnum["OTHER"] = "OTHER";
|
|
37961
|
+
PaymentMethodEnum["WALLET"] = "WALLET";
|
|
37947
37962
|
})(PaymentMethodEnum || (PaymentMethodEnum = {}));
|
|
37948
37963
|
/**
|
|
37949
37964
|
* ProductAttribute Types
|
|
@@ -37989,6 +38004,7 @@ var ProductFilterSortTypeEnum;
|
|
|
37989
38004
|
var ProductFilterTypeEnum;
|
|
37990
38005
|
(function (ProductFilterTypeEnum) {
|
|
37991
38006
|
ProductFilterTypeEnum["ATTRIBUTE"] = "ATTRIBUTE";
|
|
38007
|
+
ProductFilterTypeEnum["AVAILABLE_VARIANT_VALUE"] = "AVAILABLE_VARIANT_VALUE";
|
|
37992
38008
|
ProductFilterTypeEnum["BRAND"] = "BRAND";
|
|
37993
38009
|
ProductFilterTypeEnum["DISCOUNT_RATIO"] = "DISCOUNT_RATIO";
|
|
37994
38010
|
ProductFilterTypeEnum["PRICE"] = "PRICE";
|
|
@@ -42131,7 +42147,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
42131
42147
|
return __generator(this, function (_b) {
|
|
42132
42148
|
switch (_b.label) {
|
|
42133
42149
|
case 0:
|
|
42134
|
-
QUERY = src(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n
|
|
42150
|
+
QUERY = src(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n postalCodeRequirement\n }\n }\n "], ["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n isGiftPackageEnabled\n giftPackagePriceList {\n currencyCode\n price\n }\n postalCodeRequirement\n }\n }\n "])));
|
|
42135
42151
|
_b.label = 1;
|
|
42136
42152
|
case 1:
|
|
42137
42153
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -70244,7 +70260,8 @@ var AddressForm$1 = mobxReactLite.observer(function (props) {
|
|
|
70244
70260
|
vm.address.checkoutSettings.identityNumberRequirement !==
|
|
70245
70261
|
IkasCheckoutRequirementEnum.INVISIBLE && (React.createElement("div", { className: styles$4.RowPB },
|
|
70246
70262
|
React.createElement(IdentityNumber, __assign({}, props, { vm: vm })))),
|
|
70247
|
-
((_a = vm.address.checkoutSettings) === null || _a === void 0 ? void 0 : _a.
|
|
70263
|
+
((_a = vm.address.checkoutSettings) === null || _a === void 0 ? void 0 : _a.phoneRequirement) !==
|
|
70264
|
+
IkasCheckoutRequirementEnum.INVISIBLE ? (React.createElement(React.Fragment, null,
|
|
70248
70265
|
React.createElement("div", { className: styles$4.RowPB },
|
|
70249
70266
|
React.createElement(AddressFirstLine, __assign({}, props, { vm: vm }))),
|
|
70250
70267
|
React.createElement("div", { className: [commonStyles.Grid, commonStyles.Grid2].join(" ") },
|
|
@@ -70318,9 +70335,10 @@ var AddressSecondLine = mobxReactLite.observer(function (_a) {
|
|
|
70318
70335
|
return (React.createElement(FormItem, { type: FormItemType.TEXT, autocomplete: "address-line2", label: t("checkout-page:addressLine2"), value: vm.address.addressLine2 || "", onChange: vm.onAddressLine2Change }));
|
|
70319
70336
|
});
|
|
70320
70337
|
var PostalCode = mobxReactLite.observer(function (_a) {
|
|
70338
|
+
var _b;
|
|
70321
70339
|
var vm = _a.vm;
|
|
70322
70340
|
var t = useTranslation().t;
|
|
70323
|
-
return (React.createElement(FormItem, { type: FormItemType.TEXT, label: t("checkout-page:postalCode"), autocomplete: "postal-code", value: vm.address.postalCode || "", onChange: vm.onAddressPostalCodeChange }));
|
|
70341
|
+
return (React.createElement(FormItem, { type: FormItemType.TEXT, label: t("checkout-page:postalCode"), autocomplete: "postal-code", value: vm.address.postalCode || "", onChange: vm.onAddressPostalCodeChange, hasError: vm.isErrorsVisible && !((_b = vm.address.validationResult) === null || _b === void 0 ? void 0 : _b.postalCode), errorText: t("checkout-page:postalCodeError") }));
|
|
70324
70342
|
});
|
|
70325
70343
|
var Country = mobxReactLite.observer(function (_a) {
|
|
70326
70344
|
var _b, _c;
|
|
@@ -3,6 +3,7 @@ export declare class IkasCheckoutSettings {
|
|
|
3
3
|
createdAt: number;
|
|
4
4
|
updatedAt: number;
|
|
5
5
|
phoneRequirement: IkasCheckoutRequirementEnum | null;
|
|
6
|
+
postalCodeRequirement: IkasCheckoutRequirementEnum | null;
|
|
6
7
|
identityNumberRequirement: IkasCheckoutRequirementEnum | null;
|
|
7
8
|
isAccountRequired: boolean;
|
|
8
9
|
isTermsAndConditionsDefaultChecked: boolean;
|
|
@@ -11,7 +12,6 @@ export declare class IkasCheckoutSettings {
|
|
|
11
12
|
storefrontId: string;
|
|
12
13
|
giftPackagePriceList: IkasCheckoutSettingsPrice[] | null;
|
|
13
14
|
isGiftPackageEnabled: boolean;
|
|
14
|
-
isShowPostalCode: boolean;
|
|
15
15
|
constructor(data?: Partial<IkasCheckoutSettings>);
|
|
16
16
|
}
|
|
17
17
|
export declare enum IkasCheckoutRequirementEnum {
|
|
@@ -17,7 +17,7 @@ export declare class IkasCustomerAddress {
|
|
|
17
17
|
identityNumber?: string | null;
|
|
18
18
|
taxNumber?: string | null;
|
|
19
19
|
taxOffice?: string | null;
|
|
20
|
-
checkoutSettings?: IkasCheckoutSettings;
|
|
20
|
+
checkoutSettings?: IkasCheckoutSettings | null;
|
|
21
21
|
isDistrictRequired?: boolean;
|
|
22
22
|
constructor(data?: Partial<IkasCustomerAddress>);
|
|
23
23
|
get addressText(): string;
|
|
@@ -45,6 +45,7 @@ export declare type IkasAddressValidationResult = {
|
|
|
45
45
|
city: boolean;
|
|
46
46
|
district: boolean;
|
|
47
47
|
phone: boolean;
|
|
48
|
+
postalCode: boolean;
|
|
48
49
|
identityNumber: boolean;
|
|
49
50
|
title: boolean;
|
|
50
51
|
};
|
|
@@ -17,7 +17,7 @@ export declare class IkasOrderAddress {
|
|
|
17
17
|
identityNumber?: string | null;
|
|
18
18
|
taxNumber?: string | null;
|
|
19
19
|
taxOffice?: string | null;
|
|
20
|
-
checkoutSettings?: IkasCheckoutSettings;
|
|
20
|
+
checkoutSettings?: IkasCheckoutSettings | null;
|
|
21
21
|
isDistrictRequired?: boolean;
|
|
22
22
|
constructor(data?: Partial<IkasOrderAddress>);
|
|
23
23
|
get addressText(): string;
|
|
@@ -45,6 +45,7 @@ export declare type IkasAddressValidationResult = {
|
|
|
45
45
|
city: boolean;
|
|
46
46
|
district: boolean;
|
|
47
47
|
phone: boolean;
|
|
48
|
+
postalCode: boolean;
|
|
48
49
|
identityNumber: boolean;
|
|
49
50
|
};
|
|
50
51
|
export {};
|