@ikas/storefront 2.0.29 → 2.0.30
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/_virtual/index.js_commonjs-proxy2.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/api/blog/__generated__/getBlog.d.ts +1 -5
- package/build/api/blog/__generated__/listBlog.d.ts +1 -5
- package/build/api/blog/__generated__/listBlogCategory.d.ts +1 -5
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +1 -5
- package/build/api/cart/__generated__/getCart.d.ts +2 -4
- package/build/api/cart/__generated__/saveItemToCart.d.ts +2 -4
- 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 +1 -2
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +1 -2
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +5 -11
- package/build/api/customer/__generated__/getMyCustomer.d.ts +1 -2
- package/build/api/customer/__generated__/registerCustomer.d.ts +1 -2
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +1 -2
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +1 -5
- package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +6 -0
- package/build/api/product-search/__generated__/getRelatedProducts.d.ts +14 -0
- package/build/api/product-search/index.d.ts +19 -1
- package/build/api/product-search/index.js +1 -1
- package/build/api/raffle/__generated__/listRaffle.d.ts +1 -5
- package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -6
- package/build/ikas.js +7 -7
- package/build/index.js +1 -1
- package/build/models/theme/page/component/prop-value/product-list.d.ts +2 -1
- package/build/models/theme/page/component/prop-value/product-list.js +1 -1
- package/build/models/ui/index.d.ts +1 -1
- package/build/models/ui/product-list/index.d.ts +10 -1
- package/build/models/ui/product-list/index.js +1 -1
- package/build/providers/prop-value/product-list.d.ts +6 -0
- package/build/providers/prop-value/product-list.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'../ext/
|
|
1
|
+
import e from'../ext/strict-uri-encode/index.js';export{default}from"../node_modules/strict-uri-encode/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'../ext/
|
|
1
|
+
import e from'../ext/decode-uri-component/index.js';export{default}from"../node_modules/decode-uri-component/index.js";
|
|
@@ -75,11 +75,7 @@ export interface getBlog_listBlog {
|
|
|
75
75
|
count: number;
|
|
76
76
|
data: getBlog_listBlog_data[];
|
|
77
77
|
/**
|
|
78
|
-
* In the records returned as Response, it shows whether there are any more
|
|
79
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
80
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
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.**
|
|
78
|
+
* 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.**
|
|
83
79
|
*/
|
|
84
80
|
hasNext: boolean;
|
|
85
81
|
/**
|
|
@@ -75,11 +75,7 @@ export interface listBlog_listBlog {
|
|
|
75
75
|
count: number;
|
|
76
76
|
data: listBlog_listBlog_data[];
|
|
77
77
|
/**
|
|
78
|
-
* In the records returned as Response, it shows whether there are any more
|
|
79
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
80
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
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.**
|
|
78
|
+
* 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.**
|
|
83
79
|
*/
|
|
84
80
|
hasNext: boolean;
|
|
85
81
|
/**
|
|
@@ -31,11 +31,7 @@ export interface listBlogCategory_listBlogCategory {
|
|
|
31
31
|
count: number;
|
|
32
32
|
data: listBlogCategory_listBlogCategory_data[];
|
|
33
33
|
/**
|
|
34
|
-
* In the records returned as Response, it shows whether there are any more
|
|
35
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
36
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
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.**
|
|
34
|
+
* 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.**
|
|
39
35
|
*/
|
|
40
36
|
hasNext: boolean;
|
|
41
37
|
/**
|
|
@@ -21,11 +21,7 @@ export interface listBlogMetaData_listBlogMetadata {
|
|
|
21
21
|
count: number;
|
|
22
22
|
data: listBlogMetaData_listBlogMetadata_data[];
|
|
23
23
|
/**
|
|
24
|
-
* In the records returned as Response, it shows whether there are any more
|
|
25
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
26
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
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.**
|
|
24
|
+
* 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.**
|
|
29
25
|
*/
|
|
30
26
|
hasNext: boolean;
|
|
31
27
|
/**
|
|
@@ -105,8 +105,7 @@ export interface getCart_getCart_items {
|
|
|
105
105
|
*/
|
|
106
106
|
discountPrice: number | null;
|
|
107
107
|
/**
|
|
108
|
-
* It is the final price of the order line item. If the discount price is less
|
|
109
|
-
* than the sell price, the final price is equal to the discount price.
|
|
108
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
110
109
|
*/
|
|
111
110
|
finalPrice: number | null;
|
|
112
111
|
id: string;
|
|
@@ -115,8 +114,7 @@ export interface getCart_getCart_items {
|
|
|
115
114
|
*/
|
|
116
115
|
options: getCart_getCart_items_options[] | null;
|
|
117
116
|
/**
|
|
118
|
-
* It is the original order line item id of the line item. If the line item is
|
|
119
|
-
* derived from another line item, this field is filled.
|
|
117
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
120
118
|
*/
|
|
121
119
|
originalOrderLineItemId: string | null;
|
|
122
120
|
/**
|
|
@@ -117,8 +117,7 @@ export interface saveItemToCart_saveItemToCart_items {
|
|
|
117
117
|
*/
|
|
118
118
|
discountPrice: number | null;
|
|
119
119
|
/**
|
|
120
|
-
* It is the final price of the order line item. If the discount price is less
|
|
121
|
-
* than the sell price, the final price is equal to the discount price.
|
|
120
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
122
121
|
*/
|
|
123
122
|
finalPrice: number | null;
|
|
124
123
|
id: string;
|
|
@@ -127,8 +126,7 @@ export interface saveItemToCart_saveItemToCart_items {
|
|
|
127
126
|
*/
|
|
128
127
|
options: saveItemToCart_saveItemToCart_items_options[] | null;
|
|
129
128
|
/**
|
|
130
|
-
* It is the original order line item id of the line item. If the line item is
|
|
131
|
-
* derived from another line item, this field is filled.
|
|
129
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
132
130
|
*/
|
|
133
131
|
originalOrderLineItemId: string | null;
|
|
134
132
|
/**
|
|
@@ -425,14 +425,12 @@ export interface getCheckoutById_getCheckoutById_cart_items {
|
|
|
425
425
|
*/
|
|
426
426
|
discountPrice: number | null;
|
|
427
427
|
/**
|
|
428
|
-
* It is the final price of the order line item. If the discount price is less
|
|
429
|
-
* than the sell price, the final price is equal to the discount price.
|
|
428
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
430
429
|
*/
|
|
431
430
|
finalPrice: number | null;
|
|
432
431
|
id: string;
|
|
433
432
|
/**
|
|
434
|
-
* It is the original order line item id of the line item. If the line item is
|
|
435
|
-
* derived from another line item, this field is filled.
|
|
433
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
436
434
|
*/
|
|
437
435
|
originalOrderLineItemId: string | null;
|
|
438
436
|
/**
|
|
@@ -276,14 +276,12 @@ export interface getOrder_getOrder_orderLineItems {
|
|
|
276
276
|
*/
|
|
277
277
|
discountPrice: number | null;
|
|
278
278
|
/**
|
|
279
|
-
* It is the final price of the order line item. If the discount price is less
|
|
280
|
-
* than the sell price, the final price is equal to the discount price.
|
|
279
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
281
280
|
*/
|
|
282
281
|
finalPrice: number | null;
|
|
283
282
|
id: string;
|
|
284
283
|
/**
|
|
285
|
-
* It is the original order line item id of the line item. If the line item is
|
|
286
|
-
* derived from another line item, this field is filled.
|
|
284
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
287
285
|
*/
|
|
288
286
|
originalOrderLineItemId: string | null;
|
|
289
287
|
/**
|
|
@@ -331,8 +329,7 @@ export interface getOrder_getOrder_orderPackages_trackingInfo {
|
|
|
331
329
|
*/
|
|
332
330
|
trackingLink: string | null;
|
|
333
331
|
/**
|
|
334
|
-
* Indicates whether the notification is sent to the customer after the cargo is
|
|
335
|
-
* delivered. **isSendNotification** returns true if the notification is sent.
|
|
332
|
+
* Indicates whether the notification is sent to the customer after the cargo is delivered. **isSendNotification** returns true if the notification is sent.
|
|
336
333
|
*/
|
|
337
334
|
isSendNotification: boolean | null;
|
|
338
335
|
/**
|
|
@@ -537,8 +534,7 @@ export interface getOrder_getOrder {
|
|
|
537
534
|
*/
|
|
538
535
|
currencyRates: getOrder_getOrder_currencyRates[];
|
|
539
536
|
/**
|
|
540
|
-
* Information about the customer. The order does not have to be a customer
|
|
541
|
-
* information. If the order was created by ikasPOS, the customer information may be null.
|
|
537
|
+
* Information about the customer. The order does not have to be a customer information. If the order was created by ikasPOS, the customer information may be null.
|
|
542
538
|
*/
|
|
543
539
|
customer: getOrder_getOrder_customer | null;
|
|
544
540
|
deleted: boolean | null;
|
|
@@ -601,9 +597,7 @@ export interface getOrder_getOrder {
|
|
|
601
597
|
*/
|
|
602
598
|
taxLines: getOrder_getOrder_taxLines[] | null;
|
|
603
599
|
/**
|
|
604
|
-
* The total final price of the order resulting from the apply of
|
|
605
|
-
* `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the
|
|
606
|
-
* order total price.
|
|
600
|
+
* The total final price of the order resulting from the apply of `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the order total price.
|
|
607
601
|
*/
|
|
608
602
|
totalFinalPrice: number;
|
|
609
603
|
/**
|
|
@@ -250,14 +250,12 @@ export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItem
|
|
|
250
250
|
*/
|
|
251
251
|
discountPrice: number | null;
|
|
252
252
|
/**
|
|
253
|
-
* It is the final price of the order line item. If the discount price is less
|
|
254
|
-
* than the sell price, the final price is equal to the discount price.
|
|
253
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
255
254
|
*/
|
|
256
255
|
finalPrice: number | null;
|
|
257
256
|
id: string;
|
|
258
257
|
/**
|
|
259
|
-
* It is the original order line item id of the line item. If the line item is
|
|
260
|
-
* derived from another line item, this field is filled.
|
|
258
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
261
259
|
*/
|
|
262
260
|
originalOrderLineItemId: string | null;
|
|
263
261
|
/**
|
|
@@ -301,8 +299,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest_orderPackages
|
|
|
301
299
|
*/
|
|
302
300
|
trackingLink: string | null;
|
|
303
301
|
/**
|
|
304
|
-
* Indicates whether the notification is sent to the customer after the cargo is
|
|
305
|
-
* delivered. **isSendNotification** returns true if the notification is sent.
|
|
302
|
+
* Indicates whether the notification is sent to the customer after the cargo is delivered. **isSendNotification** returns true if the notification is sent.
|
|
306
303
|
*/
|
|
307
304
|
isSendNotification: boolean | null;
|
|
308
305
|
/**
|
|
@@ -507,8 +504,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest {
|
|
|
507
504
|
*/
|
|
508
505
|
currencyRates: createOrderRefundRequest_createOrderRefundRequest_currencyRates[];
|
|
509
506
|
/**
|
|
510
|
-
* Information about the customer. The order does not have to be a customer
|
|
511
|
-
* information. If the order was created by ikasPOS, the customer information may be null.
|
|
507
|
+
* Information about the customer. The order does not have to be a customer information. If the order was created by ikasPOS, the customer information may be null.
|
|
512
508
|
*/
|
|
513
509
|
customer: createOrderRefundRequest_createOrderRefundRequest_customer | null;
|
|
514
510
|
deleted: boolean | null;
|
|
@@ -571,9 +567,7 @@ export interface createOrderRefundRequest_createOrderRefundRequest {
|
|
|
571
567
|
*/
|
|
572
568
|
taxLines: createOrderRefundRequest_createOrderRefundRequest_taxLines[] | null;
|
|
573
569
|
/**
|
|
574
|
-
* The total final price of the order resulting from the apply of
|
|
575
|
-
* `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the
|
|
576
|
-
* order total price.
|
|
570
|
+
* The total final price of the order resulting from the apply of `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the order total price.
|
|
577
571
|
*/
|
|
578
572
|
totalFinalPrice: number;
|
|
579
573
|
/**
|
|
@@ -135,8 +135,7 @@ export interface customerLogin_customerLogin_customer {
|
|
|
135
135
|
*/
|
|
136
136
|
accountStatus: CustomerAccountStatusEnum | null;
|
|
137
137
|
/**
|
|
138
|
-
* The unique email address of the customer. Attempting to assign the same email
|
|
139
|
-
* address to multiple customers returns an error.
|
|
138
|
+
* The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
|
|
140
139
|
*/
|
|
141
140
|
email: string | null;
|
|
142
141
|
/**
|
|
@@ -135,8 +135,7 @@ export interface customerSocialLogin_customerSocialLogin_customer {
|
|
|
135
135
|
*/
|
|
136
136
|
accountStatus: CustomerAccountStatusEnum | null;
|
|
137
137
|
/**
|
|
138
|
-
* The unique email address of the customer. Attempting to assign the same email
|
|
139
|
-
* address to multiple customers returns an error.
|
|
138
|
+
* The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
|
|
140
139
|
*/
|
|
141
140
|
email: string | null;
|
|
142
141
|
/**
|
|
@@ -276,14 +276,12 @@ export interface getCustomerOrders_getCustomerOrders_orderLineItems {
|
|
|
276
276
|
*/
|
|
277
277
|
discountPrice: number | null;
|
|
278
278
|
/**
|
|
279
|
-
* It is the final price of the order line item. If the discount price is less
|
|
280
|
-
* than the sell price, the final price is equal to the discount price.
|
|
279
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
281
280
|
*/
|
|
282
281
|
finalPrice: number | null;
|
|
283
282
|
id: string;
|
|
284
283
|
/**
|
|
285
|
-
* It is the original order line item id of the line item. If the line item is
|
|
286
|
-
* derived from another line item, this field is filled.
|
|
284
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
287
285
|
*/
|
|
288
286
|
originalOrderLineItemId: string | null;
|
|
289
287
|
/**
|
|
@@ -331,8 +329,7 @@ export interface getCustomerOrders_getCustomerOrders_orderPackages_trackingInfo
|
|
|
331
329
|
*/
|
|
332
330
|
trackingLink: string | null;
|
|
333
331
|
/**
|
|
334
|
-
* Indicates whether the notification is sent to the customer after the cargo is
|
|
335
|
-
* delivered. **isSendNotification** returns true if the notification is sent.
|
|
332
|
+
* Indicates whether the notification is sent to the customer after the cargo is delivered. **isSendNotification** returns true if the notification is sent.
|
|
336
333
|
*/
|
|
337
334
|
isSendNotification: boolean | null;
|
|
338
335
|
/**
|
|
@@ -537,8 +534,7 @@ export interface getCustomerOrders_getCustomerOrders {
|
|
|
537
534
|
*/
|
|
538
535
|
currencyRates: getCustomerOrders_getCustomerOrders_currencyRates[];
|
|
539
536
|
/**
|
|
540
|
-
* Information about the customer. The order does not have to be a customer
|
|
541
|
-
* information. If the order was created by ikasPOS, the customer information may be null.
|
|
537
|
+
* Information about the customer. The order does not have to be a customer information. If the order was created by ikasPOS, the customer information may be null.
|
|
542
538
|
*/
|
|
543
539
|
customer: getCustomerOrders_getCustomerOrders_customer | null;
|
|
544
540
|
deleted: boolean | null;
|
|
@@ -601,9 +597,7 @@ export interface getCustomerOrders_getCustomerOrders {
|
|
|
601
597
|
*/
|
|
602
598
|
taxLines: getCustomerOrders_getCustomerOrders_taxLines[] | null;
|
|
603
599
|
/**
|
|
604
|
-
* The total final price of the order resulting from the apply of
|
|
605
|
-
* `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the
|
|
606
|
-
* order total price.
|
|
600
|
+
* The total final price of the order resulting from the apply of `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the order total price.
|
|
607
601
|
*/
|
|
608
602
|
totalFinalPrice: number;
|
|
609
603
|
/**
|
|
@@ -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
|
/**
|
|
@@ -131,8 +131,7 @@ export interface registerCustomer_registerCustomer_customer {
|
|
|
131
131
|
*/
|
|
132
132
|
accountStatus: CustomerAccountStatusEnum | null;
|
|
133
133
|
/**
|
|
134
|
-
* The unique email address of the customer. Attempting to assign the same email
|
|
135
|
-
* 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.
|
|
136
135
|
*/
|
|
137
136
|
email: string | null;
|
|
138
137
|
/**
|
|
@@ -139,8 +139,7 @@ export interface saveMyCustomer_saveMyCustomer {
|
|
|
139
139
|
*/
|
|
140
140
|
accountStatus: CustomerAccountStatusEnum | null;
|
|
141
141
|
/**
|
|
142
|
-
* The unique email address of the customer. Attempting to assign the same email
|
|
143
|
-
* 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.
|
|
144
143
|
*/
|
|
145
144
|
email: string | null;
|
|
146
145
|
/**
|
|
@@ -18,11 +18,7 @@ export interface listCustomerReviews_listCustomerReviews {
|
|
|
18
18
|
count: number;
|
|
19
19
|
data: listCustomerReviews_listCustomerReviews_data[];
|
|
20
20
|
/**
|
|
21
|
-
* In the records returned as Response, it shows whether there are any more
|
|
22
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
23
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
24
|
-
* `true` despite these records, **it means there are more records.** If hasNext
|
|
25
|
-
* is `false`, it means there are a total of **90 records.**
|
|
21
|
+
* 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.**
|
|
26
22
|
*/
|
|
27
23
|
hasNext: boolean;
|
|
28
24
|
/**
|
|
@@ -17,6 +17,11 @@ export interface ListProductOptionSet_listProductOptionSet_options_otherPrices {
|
|
|
17
17
|
currencyCode: string;
|
|
18
18
|
price: number;
|
|
19
19
|
}
|
|
20
|
+
export interface ListProductOptionSet_listProductOptionSet_options_selectSettings_values_otherPrices {
|
|
21
|
+
__typename: "ProductOptionSelectValueOtherPrice";
|
|
22
|
+
currencyCode: string;
|
|
23
|
+
price: number;
|
|
24
|
+
}
|
|
20
25
|
export interface ListProductOptionSet_listProductOptionSet_options_selectSettings_values {
|
|
21
26
|
__typename: "ProductOptionSelectValue";
|
|
22
27
|
createdAt: any | null;
|
|
@@ -24,6 +29,7 @@ export interface ListProductOptionSet_listProductOptionSet_options_selectSetting
|
|
|
24
29
|
id: string;
|
|
25
30
|
order: number;
|
|
26
31
|
price: number | null;
|
|
32
|
+
otherPrices: ListProductOptionSet_listProductOptionSet_options_selectSettings_values_otherPrices[] | null;
|
|
27
33
|
updatedAt: any | null;
|
|
28
34
|
value: string;
|
|
29
35
|
thumbnailImageId: string | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SearchDynamicCurrencySettings } from "./../../../__generated__/global-types";
|
|
2
|
+
export interface getRelatedProducts {
|
|
3
|
+
getRelatedProducts: any;
|
|
4
|
+
}
|
|
5
|
+
export interface getRelatedProductsVariables {
|
|
6
|
+
brandIds?: string[] | null;
|
|
7
|
+
categoryIds?: string[] | null;
|
|
8
|
+
dynamicCurrencySettings?: SearchDynamicCurrencySettings | null;
|
|
9
|
+
limit?: number | null;
|
|
10
|
+
priceListId?: string | null;
|
|
11
|
+
productId: string;
|
|
12
|
+
salesChannelId?: string | null;
|
|
13
|
+
tagIds?: string[] | null;
|
|
14
|
+
}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { SearchInput } from "../../__generated__/global-types";
|
|
1
|
+
import { SearchDynamicCurrencySettings, SearchInput } from "../../__generated__/global-types";
|
|
2
2
|
import { IkasProduct } from "../../models";
|
|
3
3
|
import * as SearchProductTypes from "./__generated__/searchProducts";
|
|
4
4
|
import { IkasProductFilter } from "../../models/data/product-filter";
|
|
5
5
|
import { IkasFilterCategory } from "../../models/data/category";
|
|
6
|
+
export declare type IkasGetRelatedProductsParams = {
|
|
7
|
+
brandIds?: string[] | null;
|
|
8
|
+
categoryIds?: string[] | null;
|
|
9
|
+
dynamicCurrencySettings?: SearchDynamicCurrencySettings | null;
|
|
10
|
+
limit?: number | null;
|
|
11
|
+
priceListId?: string | null;
|
|
12
|
+
productId: string;
|
|
13
|
+
salesChannelId?: string | null;
|
|
14
|
+
tagIds?: string[] | null;
|
|
15
|
+
};
|
|
6
16
|
export declare class IkasProductSearchAPI {
|
|
7
17
|
static searchProducts(input: SearchInput, useStockFilter?: boolean): Promise<{
|
|
8
18
|
data: IkasProduct[];
|
|
@@ -17,4 +27,12 @@ export declare class IkasProductSearchAPI {
|
|
|
17
27
|
filters: IkasProductFilter[];
|
|
18
28
|
categories: IkasFilterCategory[] | null;
|
|
19
29
|
} | undefined>;
|
|
30
|
+
static getRelatedProducts(params: IkasGetRelatedProductsParams): Promise<{
|
|
31
|
+
data: IkasProduct[];
|
|
32
|
+
count: any;
|
|
33
|
+
facets: null;
|
|
34
|
+
limit: number;
|
|
35
|
+
page: number;
|
|
36
|
+
totalCount: any;
|
|
37
|
+
} | undefined>;
|
|
20
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__assign as i,__makeTemplateObject as o}from'../../ext/tslib/tslib.es6.js';import n from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.js";import"../../models/data/blog/index.js";import{IkasBrand as a}from"../../models/data/brand/index.js";import{IkasCategory as d,IkasCategoryPath as s,IkasFilterCategory as l}from"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import{IkasHTMLMetaData as u}from"../../models/data/html-meta-data/index.js";import{IkasImage as m}from"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../product-option-file/index.js";import{IkasProduct as p}from"../../models/data/product/index.js";import{IkasProductVariantType as c}from"../../models/data/product/variant-type/index.js";import{IkasProductVariant as v}from"../../models/data/product/variant/index.js";import{IkasProductPrice as f}from"../../models/data/product/variant/price/index.js";import{IkasProductAttribute as g}from"../../models/data/product-attribute/index.js";import{IkasProductAttributeValue as y}from"../../models/data/product/attribute-value/index.js";import{IkasProductFilter as b,IkasApplicableProductFilterValue as j,IkasProductFilterSettings as x}from"../../models/data/product-filter/index.js";import{IkasVariantType as h}from"../../models/data/variant-type/index.js";import{IkasVariantValue as I}from"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasThemeStockPreference as w}from"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasProductTag as T}from"../../models/data/product-tag/index.js";import{IkasStorefrontConfig as A}from"../../storefront/index.js";import{IkasProductAttributeTableTemplate as C}from"../../models/data/product-attribute/product-attribute-table-template/index.js";var D,k,P=function(){function P(){}return P.searchProducts=function(l,b){var j;return void 0===b&&(b=!1),t(this,void 0,void 0,(function(){var t,x,k,P,O;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=n(D||(D=o(["\n query searchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n count\n data\n facets {\n id\n values {\n count\n id\n }\n }\n limit\n page\n totalCount\n }\n }\n "],["\n query searchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n count\n data\n facets {\n id\n values {\n count\n id\n }\n }\n limit\n page\n totalCount\n }\n }\n "]))),[4,r.getClient().query({query:t,variables:{input:i(i({},l),{showStockOption:b?A.stockPreference:w.SHOW_ALL,locale:A.getCurrentLocale(),dynamicCurrencySettings:(null===(j=A.getCurrentRouting())||void 0===j?void 0:j.dynamicCurrencySettings)||null})}})];case 1:return x=e.sent(),k=x.data,(P=x.errors)&&P.length?(console.log(P),[2]):[2,i(i({},k.searchProducts),{data:k.searchProducts.data.map((function(t){return function(t){var e,i,o,n,r,l,b="local"===process.env.NEXT_PUBLIC_ENV;return new p({id:t.id,attributes:null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,i,o,n,r,a;return new y({value:t.value,productAttributeId:null===(e=t.productAttribute)||void 0===e?void 0:e.id,productAttributeOptionId:null===(i=t.productAttributeOption)||void 0===i?void 0:i.id,productAttribute:new g({id:null===(o=t.productAttribute)||void 0===o?void 0:o.id,name:null===(n=t.productAttribute)||void 0===n?void 0:n.name,type:null===(r=t.productAttribute)||void 0===r?void 0:r.type,tableTemplate:(null===(a=t.productAttribute)||void 0===a?void 0:a.tableTemplate)?new C(t.productAttribute.tableTemplate):null}),productAttributeOption:t.productAttributeOption})})),brand:new a({id:null===(i=t.brand)||void 0===i?void 0:i.id,name:null===(o=t.brand)||void 0===o?void 0:o.name,metaData:new u({slug:(null===(n=t.brand)||void 0===n?void 0:n.slug)||""})}),categories:null===(r=t.categories)||void 0===r?void 0:r.map((function(t){return new d({id:t.id,name:t.name,path:t.path.map((function(t){return new s(t)})),metaData:new u({slug:t.slug||""})})})),tags:null===(l=t.tags)||void 0===l?void 0:l.map((function(t){return new T({id:t.id,name:t.name})})),description:t.description||void 0,metaData:new u(t.metaData||void 0),name:t.name,shortDescription:t.shortDescription||void 0,productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return new c({variantType:new h({id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return new I({id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id})})).filter((function(e){return t.variantValueIds.includes(e.id)}))}),variantValueIds:t.variantValueIds})})),variants:t.variants.map((function(e){var i,o,n,r;return new v({id:e.id,productId:t.id,attributes:null===(i=e.attributes)||void 0===i?void 0:i.map((function(t){var e,i,o,n,r,a;return new y({value:t.value,productAttributeId:null===(e=t.productAttribute)||void 0===e?void 0:e.id,productAttributeOptionId:null===(i=t.productAttributeOption)||void 0===i?void 0:i.id,productAttribute:new g({id:null===(o=t.productAttribute)||void 0===o?void 0:o.id,name:null===(n=t.productAttribute)||void 0===n?void 0:n.name,type:null===(r=t.productAttribute)||void 0===r?void 0:r.type,tableTemplate:(null===(a=t.productAttribute)||void 0===a?void 0:a.tableTemplate)?new C(t.productAttribute.tableTemplate):null}),productAttributeOption:t.productAttributeOption})})),sku:e.sku,barcodeList:e.barcodeList||void 0,images:null===(o=e.images)||void 0===o?void 0:o.map((function(t){return new m(t.id)})),price:new f(null===(n=e.prices)||void 0===n?void 0:n.find((function(t){return A.priceListId?t.priceListId===A.priceListId:null===t.priceListId}))),stock:e.stocks.filter((function(t){var e;return b||A.isEditor||(null===(e=A.stockLocationIds)||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0)||0,variantValues:null===(r=e.variantValues)||void 0===r?void 0:r.map((function(e){var i=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),o=null==i?void 0:i.variantType.values.find((function(t){return t.id===e.variantValueId}));return new I({id:e.variantValueId,name:null==o?void 0:o.name,colorCode:null==o?void 0:o.colorCode,thumbnailImageId:null==o?void 0:o.thumbnailImageId,variantTypeId:null==i?void 0:i.variantType.id})})),isActive:e.isActive})}))})}(t)}))})];case 2:return O=e.sent(),console.log(O),[3,3];case 3:return[2]}}))}))},P.getProductFilterData=function(a){return t(this,void 0,void 0,(function(){var t,d,s,u,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=n(k||(k=o(["\n query getProductFilterData($categoryId: String, $locale: String) {\n getProductFilterData(categoryId: $categoryId, locale: $locale) {\n filters {\n customValues\n displayType\n id\n isMultiSelect\n isFacetFilter\n key\n name\n order\n type\n values {\n colorCode\n id\n key\n name\n thumbnailImageId\n }\n settings {\n showCollapsedOnDesktop\n showCollapsedOnMobile\n sortType\n useAndFilter\n }\n }\n categories {\n id\n name\n metaData {\n slug\n }\n }\n }\n }\n "],["\n query getProductFilterData($categoryId: String, $locale: String) {\n getProductFilterData(categoryId: $categoryId, locale: $locale) {\n filters {\n customValues\n displayType\n id\n isMultiSelect\n isFacetFilter\n key\n name\n order\n type\n values {\n colorCode\n id\n key\n name\n thumbnailImageId\n }\n settings {\n showCollapsedOnDesktop\n showCollapsedOnMobile\n sortType\n useAndFilter\n }\n }\n categories {\n id\n name\n metaData {\n slug\n }\n }\n }\n }\n "]))),[4,r.getClient().query({query:t,variables:{categoryId:a||null,locale:A.getCurrentLocale()}})];case 1:return d=e.sent(),s=d.data,(u=d.errors)&&u.length?(console.log(u),[2]):[2,{filters:s.getProductFilterData.filters.map((function(t){var e;return new b(i(i({},t),{displayType:t.displayType,type:t.type,values:null===(e=t.values)||void 0===e?void 0:e.map((function(t){return new j(t)})),settings:t.settings?new x(i(i({},t.settings),{sortType:t.settings.sortType})):null}))})),categories:s.getProductFilterData.categories?s.getProductFilterData.categories.map((function(t){var e;return new l({id:t.id,name:t.name,slug:null===(e=t.metaData)||void 0===e?void 0:e.slug})})):null}];case 2:return m=e.sent(),console.log(m),[3,3];case 3:return[2]}}))}))},P}();export{P as IkasProductSearchAPI};
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as n,__makeTemplateObject as i}from'../../ext/tslib/tslib.es6.js';import r from'../../ext/graphql-tag/src/index.js';import{apollo as o}from"../apollo.js";import"../../models/data/blog/index.js";import{IkasBrand as a}from"../../models/data/brand/index.js";import{IkasCategory as d,IkasCategoryPath as s,IkasFilterCategory as l}from"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import{IkasHTMLMetaData as u}from"../../models/data/html-meta-data/index.js";import{IkasImage as c}from"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../product-option-file/index.js";import{IkasProduct as m}from"../../models/data/product/index.js";import{IkasProductVariantType as p}from"../../models/data/product/variant-type/index.js";import{IkasProductVariant as v}from"../../models/data/product/variant/index.js";import{IkasProductPrice as g}from"../../models/data/product/variant/price/index.js";import{IkasProductAttribute as y}from"../../models/data/product-attribute/index.js";import{IkasProductAttributeValue as f}from"../../models/data/product/attribute-value/index.js";import{IkasProductFilter as I,IkasApplicableProductFilterValue as b,IkasProductFilterSettings as h}from"../../models/data/product-filter/index.js";import{IkasVariantType as j}from"../../models/data/variant-type/index.js";import{IkasVariantValue as x}from"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasThemeStockPreference as $}from"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasProductTag as C}from"../../models/data/product-tag/index.js";import{IkasStorefrontConfig as w}from"../../storefront/index.js";import{IkasProductAttributeTableTemplate as S}from"../../models/data/product-attribute/product-attribute-table-template/index.js";var T,A,P,D=function(){function a(){}return a.searchProducts=function(a,d){var s;return void 0===d&&(d=!1),t(this,void 0,void 0,(function(){var t,l,u,c,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=r(T||(T=i(["\n query searchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n count\n data\n facets {\n id\n values {\n count\n id\n }\n }\n limit\n page\n totalCount\n }\n }\n "],["\n query searchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n count\n data\n facets {\n id\n values {\n count\n id\n }\n }\n limit\n page\n totalCount\n }\n }\n "]))),[4,o.getClient().query({query:t,variables:{input:n(n({},a),{showStockOption:d?w.stockPreference:$.SHOW_ALL,locale:w.getCurrentLocale(),dynamicCurrencySettings:(null===(s=w.getCurrentRouting())||void 0===s?void 0:s.dynamicCurrencySettings)||null})}})];case 1:return l=e.sent(),u=l.data,(c=l.errors)&&c.length?(console.log(c),[2]):[2,n(n({},u.searchProducts),{data:u.searchProducts.data.map((function(t){return L(t)}))})];case 2:return m=e.sent(),console.log(m),[3,3];case 3:return[2]}}))}))},a.getProductFilterData=function(a){return t(this,void 0,void 0,(function(){var t,d,s,u,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=r(A||(A=i(["\n query getProductFilterData($categoryId: String, $locale: String) {\n getProductFilterData(categoryId: $categoryId, locale: $locale) {\n filters {\n customValues\n displayType\n id\n isMultiSelect\n isFacetFilter\n key\n name\n order\n type\n values {\n colorCode\n id\n key\n name\n thumbnailImageId\n }\n settings {\n showCollapsedOnDesktop\n showCollapsedOnMobile\n sortType\n useAndFilter\n }\n }\n categories {\n id\n name\n metaData {\n slug\n }\n }\n }\n }\n "],["\n query getProductFilterData($categoryId: String, $locale: String) {\n getProductFilterData(categoryId: $categoryId, locale: $locale) {\n filters {\n customValues\n displayType\n id\n isMultiSelect\n isFacetFilter\n key\n name\n order\n type\n values {\n colorCode\n id\n key\n name\n thumbnailImageId\n }\n settings {\n showCollapsedOnDesktop\n showCollapsedOnMobile\n sortType\n useAndFilter\n }\n }\n categories {\n id\n name\n metaData {\n slug\n }\n }\n }\n }\n "]))),[4,o.getClient().query({query:t,variables:{categoryId:a||null,locale:w.getCurrentLocale()}})];case 1:return d=e.sent(),s=d.data,(u=d.errors)&&u.length?(console.log(u),[2]):[2,{filters:s.getProductFilterData.filters.map((function(t){var e;return new I(n(n({},t),{displayType:t.displayType,type:t.type,values:null===(e=t.values)||void 0===e?void 0:e.map((function(t){return new b(t)})),settings:t.settings?new h(n(n({},t.settings),{sortType:t.settings.sortType})):null}))})),categories:s.getProductFilterData.categories?s.getProductFilterData.categories.map((function(t){var e;return new l({id:t.id,name:t.name,slug:null===(e=t.metaData)||void 0===e?void 0:e.slug})})):null}];case 2:return c=e.sent(),console.log(c),[3,3];case 3:return[2]}}))}))},a.getRelatedProducts=function(a){var d;return t(this,void 0,void 0,(function(){var t,s,l,u,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=r(P||(P=i(["\n query getRelatedProducts(\n $brandIds: [String!]\n $categoryIds: [String!]\n $dynamicCurrencySettings: SearchDynamicCurrencySettings\n $limit: Float\n $priceListId: String\n $productId: String!\n $salesChannelId: String\n $tagIds: [String!]\n ) {\n getRelatedProducts(\n brandIds: $brandIds\n categoryIds: $categoryIds\n dynamicCurrencySettings: $dynamicCurrencySettings\n limit: $limit\n priceListId: $priceListId\n productId: $productId\n salesChannelId: $salesChannelId\n tagIds: $tagIds\n )\n }\n "],["\n query getRelatedProducts(\n $brandIds: [String!]\n $categoryIds: [String!]\n $dynamicCurrencySettings: SearchDynamicCurrencySettings\n $limit: Float\n $priceListId: String\n $productId: String!\n $salesChannelId: String\n $tagIds: [String!]\n ) {\n getRelatedProducts(\n brandIds: $brandIds\n categoryIds: $categoryIds\n dynamicCurrencySettings: $dynamicCurrencySettings\n limit: $limit\n priceListId: $priceListId\n productId: $productId\n salesChannelId: $salesChannelId\n tagIds: $tagIds\n )\n }\n "]))),[4,o.getClient().query({query:t,variables:n(n({},a),{limit:a.limit?a.limit:20,tagIds:a.tagIds?a.tagIds:null,dynamicCurrencySettings:(null===(d=w.getCurrentRouting())||void 0===d?void 0:d.dynamicCurrencySettings)||null})})];case 1:return s=e.sent(),l=s.data,(u=s.errors)&&u.length?(console.log(u),[2]):[2,{data:l.getRelatedProducts.map((function(t){return L(t)})),count:l.getRelatedProducts.length,facets:null,limit:20,page:1,totalCount:l.getRelatedProducts.length}];case 2:return c=e.sent(),console.log(c),[3,3];case 3:return[2]}}))}))},a}();function L(t){var e,n,i,r,o,l,I="local"===process.env.NEXT_PUBLIC_ENV;return new m({id:t.id,attributes:null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,n,i,r,o,a;return new f({value:t.value,productAttributeId:null===(e=t.productAttribute)||void 0===e?void 0:e.id,productAttributeOptionId:null===(n=t.productAttributeOption)||void 0===n?void 0:n.id,productAttribute:new y({id:null===(i=t.productAttribute)||void 0===i?void 0:i.id,name:null===(r=t.productAttribute)||void 0===r?void 0:r.name,type:null===(o=t.productAttribute)||void 0===o?void 0:o.type,tableTemplate:(null===(a=t.productAttribute)||void 0===a?void 0:a.tableTemplate)?new S(t.productAttribute.tableTemplate):null}),productAttributeOption:t.productAttributeOption})})),brand:new a({id:null===(n=t.brand)||void 0===n?void 0:n.id,name:null===(i=t.brand)||void 0===i?void 0:i.name,metaData:new u({slug:(null===(r=t.brand)||void 0===r?void 0:r.slug)||""})}),categories:null===(o=t.categories)||void 0===o?void 0:o.map((function(t){return new d({id:t.id,name:t.name,path:t.path.map((function(t){return new s(t)})),metaData:new u({slug:t.slug||""})})})),tags:null===(l=t.tags)||void 0===l?void 0:l.map((function(t){return new C({id:t.id,name:t.name})})),description:t.description||void 0,metaData:new u(t.metaData||void 0),name:t.name,shortDescription:t.shortDescription||void 0,productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return new p({variantType:new j({id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return new x({id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id})})).filter((function(e){return t.variantValueIds.includes(e.id)}))}),variantValueIds:t.variantValueIds})})),variants:t.variants.map((function(e){var n,i,r,o;return new v({id:e.id,productId:t.id,attributes:null===(n=e.attributes)||void 0===n?void 0:n.map((function(t){var e,n,i,r,o,a;return new f({value:t.value,productAttributeId:null===(e=t.productAttribute)||void 0===e?void 0:e.id,productAttributeOptionId:null===(n=t.productAttributeOption)||void 0===n?void 0:n.id,productAttribute:new y({id:null===(i=t.productAttribute)||void 0===i?void 0:i.id,name:null===(r=t.productAttribute)||void 0===r?void 0:r.name,type:null===(o=t.productAttribute)||void 0===o?void 0:o.type,tableTemplate:(null===(a=t.productAttribute)||void 0===a?void 0:a.tableTemplate)?new S(t.productAttribute.tableTemplate):null}),productAttributeOption:t.productAttributeOption})})),sku:e.sku,barcodeList:e.barcodeList||void 0,images:null===(i=e.images)||void 0===i?void 0:i.map((function(t){return new c(t.id)})),price:new g(null===(r=e.prices)||void 0===r?void 0:r.find((function(t){return w.priceListId?t.priceListId===w.priceListId:null===t.priceListId}))),stock:e.stocks.filter((function(t){var e;return I||w.isEditor||(null===(e=w.stockLocationIds)||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0)||0,variantValues:null===(o=e.variantValues)||void 0===o?void 0:o.map((function(e){var n=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),i=null==n?void 0:n.variantType.values.find((function(t){return t.id===e.variantValueId}));return new x({id:e.variantValueId,name:null==i?void 0:i.name,colorCode:null==i?void 0:i.colorCode,thumbnailImageId:null==i?void 0:i.thumbnailImageId,variantTypeId:null==n?void 0:n.variantType.id})})),isActive:e.isActive})}))})}export{D as IkasProductSearchAPI};
|
|
@@ -45,11 +45,7 @@ export interface listRaffle_listRaffle {
|
|
|
45
45
|
*/
|
|
46
46
|
count: number;
|
|
47
47
|
/**
|
|
48
|
-
* In the records returned as Response, it shows whether there are any more
|
|
49
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
50
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
51
|
-
* `true` despite these records, **it means there are more records.** If hasNext
|
|
52
|
-
* is `false`, it means there are a total of **90 records.**
|
|
48
|
+
* 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.**
|
|
53
49
|
*/
|
|
54
50
|
hasNext: boolean;
|
|
55
51
|
/**
|
|
@@ -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
|
/**
|
|
@@ -58,9 +56,7 @@ export interface listVariantType_listVariantType {
|
|
|
58
56
|
*/
|
|
59
57
|
selectionType: VariantSelectionTypeEnum;
|
|
60
58
|
/**
|
|
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
|
-
* 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
|
/**
|