@ikas/storefront 1.0.16-alpha.2 → 1.0.17
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/index.es.js +4 -1
- package/build/index.js +4 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -38427,6 +38427,9 @@ var IkasProductList = /** @class */ (function () {
|
|
|
38427
38427
|
(idList === null || idList === void 0 ? void 0 : idList.map(function (pID) {
|
|
38428
38428
|
var product = response_1.data.find(function (p) { return p.id === pID.productId; });
|
|
38429
38429
|
var variant = product === null || product === void 0 ? void 0 : product.variants.find(function (v) { return v.id === pID.variantId; });
|
|
38430
|
+
if (!(variant === null || variant === void 0 ? void 0 : variant.isActive)) {
|
|
38431
|
+
variant = product === null || product === void 0 ? void 0 : product.variants.find(function (v) { return v.isActive; });
|
|
38432
|
+
}
|
|
38430
38433
|
if (product && variant)
|
|
38431
38434
|
return new IkasProductDetail(product, variant.variantValues);
|
|
38432
38435
|
}).filter(function (p) { return !!p; })) || [];
|
|
@@ -43950,7 +43953,7 @@ var IkasProductOptionSetAPI = /** @class */ (function () {
|
|
|
43950
43953
|
switch (_b.label) {
|
|
43951
43954
|
case 0:
|
|
43952
43955
|
_b.trys.push([0, 2, , 3]);
|
|
43953
|
-
QUERY = src(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n query ListProductOptionSet(\n $id: StringFilterInput!\n $updatedAt: DateFilterInput\n $includeDeleted: Boolean!\n ) {\n listProductOptionSet(\n updatedAt: $updatedAt\n includeDeleted: $includeDeleted\n id: $id\n ) {\n createdAt\n deleted\n id\n name\n options {\n createdAt\n dateSettings {\n max\n min\n
|
|
43956
|
+
QUERY = src(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n query ListProductOptionSet(\n $id: StringFilterInput!\n $updatedAt: DateFilterInput\n $includeDeleted: Boolean!\n ) {\n listProductOptionSet(\n updatedAt: $updatedAt\n includeDeleted: $includeDeleted\n id: $id\n ) {\n createdAt\n deleted\n id\n name\n options {\n createdAt\n dateSettings {\n max\n min\n }\n deleted\n fileSettings {\n allowedExtensions\n maxQuantity\n minQuantity\n }\n id\n isOptional\n name\n optionalText\n requiredOptionId\n requiredOptionValueIds\n order\n price\n selectSettings {\n maxSelect\n minSelect\n type\n values {\n createdAt\n deleted\n id\n order\n price\n updatedAt\n value\n thumbnailImageId\n colorCode\n }\n }\n textSettings {\n max\n min\n }\n type\n updatedAt\n }\n translations {\n locale\n options {\n id\n name\n optionalText\n values {\n id\n value\n }\n }\n }\n updatedAt\n }\n }\n "], ["\n query ListProductOptionSet(\n $id: StringFilterInput!\n $updatedAt: DateFilterInput\n $includeDeleted: Boolean!\n ) {\n listProductOptionSet(\n updatedAt: $updatedAt\n includeDeleted: $includeDeleted\n id: $id\n ) {\n createdAt\n deleted\n id\n name\n options {\n createdAt\n dateSettings {\n max\n min\n }\n deleted\n fileSettings {\n allowedExtensions\n maxQuantity\n minQuantity\n }\n id\n isOptional\n name\n optionalText\n requiredOptionId\n requiredOptionValueIds\n order\n price\n selectSettings {\n maxSelect\n minSelect\n type\n values {\n createdAt\n deleted\n id\n order\n price\n updatedAt\n value\n thumbnailImageId\n colorCode\n }\n }\n textSettings {\n max\n min\n }\n type\n updatedAt\n }\n translations {\n locale\n options {\n id\n name\n optionalText\n values {\n id\n value\n }\n }\n }\n updatedAt\n }\n }\n "])));
|
|
43954
43957
|
return [4 /*yield*/, apollo
|
|
43955
43958
|
.getClient()
|
|
43956
43959
|
.query({
|
package/build/index.js
CHANGED
|
@@ -38407,6 +38407,9 @@ var IkasProductList = /** @class */ (function () {
|
|
|
38407
38407
|
(idList === null || idList === void 0 ? void 0 : idList.map(function (pID) {
|
|
38408
38408
|
var product = response_1.data.find(function (p) { return p.id === pID.productId; });
|
|
38409
38409
|
var variant = product === null || product === void 0 ? void 0 : product.variants.find(function (v) { return v.id === pID.variantId; });
|
|
38410
|
+
if (!(variant === null || variant === void 0 ? void 0 : variant.isActive)) {
|
|
38411
|
+
variant = product === null || product === void 0 ? void 0 : product.variants.find(function (v) { return v.isActive; });
|
|
38412
|
+
}
|
|
38410
38413
|
if (product && variant)
|
|
38411
38414
|
return new IkasProductDetail(product, variant.variantValues);
|
|
38412
38415
|
}).filter(function (p) { return !!p; })) || [];
|
|
@@ -43927,7 +43930,7 @@ var IkasProductOptionSetAPI = /** @class */ (function () {
|
|
|
43927
43930
|
switch (_b.label) {
|
|
43928
43931
|
case 0:
|
|
43929
43932
|
_b.trys.push([0, 2, , 3]);
|
|
43930
|
-
QUERY = src(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n query ListProductOptionSet(\n $id: StringFilterInput!\n $updatedAt: DateFilterInput\n $includeDeleted: Boolean!\n ) {\n listProductOptionSet(\n updatedAt: $updatedAt\n includeDeleted: $includeDeleted\n id: $id\n ) {\n createdAt\n deleted\n id\n name\n options {\n createdAt\n dateSettings {\n max\n min\n
|
|
43933
|
+
QUERY = src(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n query ListProductOptionSet(\n $id: StringFilterInput!\n $updatedAt: DateFilterInput\n $includeDeleted: Boolean!\n ) {\n listProductOptionSet(\n updatedAt: $updatedAt\n includeDeleted: $includeDeleted\n id: $id\n ) {\n createdAt\n deleted\n id\n name\n options {\n createdAt\n dateSettings {\n max\n min\n }\n deleted\n fileSettings {\n allowedExtensions\n maxQuantity\n minQuantity\n }\n id\n isOptional\n name\n optionalText\n requiredOptionId\n requiredOptionValueIds\n order\n price\n selectSettings {\n maxSelect\n minSelect\n type\n values {\n createdAt\n deleted\n id\n order\n price\n updatedAt\n value\n thumbnailImageId\n colorCode\n }\n }\n textSettings {\n max\n min\n }\n type\n updatedAt\n }\n translations {\n locale\n options {\n id\n name\n optionalText\n values {\n id\n value\n }\n }\n }\n updatedAt\n }\n }\n "], ["\n query ListProductOptionSet(\n $id: StringFilterInput!\n $updatedAt: DateFilterInput\n $includeDeleted: Boolean!\n ) {\n listProductOptionSet(\n updatedAt: $updatedAt\n includeDeleted: $includeDeleted\n id: $id\n ) {\n createdAt\n deleted\n id\n name\n options {\n createdAt\n dateSettings {\n max\n min\n }\n deleted\n fileSettings {\n allowedExtensions\n maxQuantity\n minQuantity\n }\n id\n isOptional\n name\n optionalText\n requiredOptionId\n requiredOptionValueIds\n order\n price\n selectSettings {\n maxSelect\n minSelect\n type\n values {\n createdAt\n deleted\n id\n order\n price\n updatedAt\n value\n thumbnailImageId\n colorCode\n }\n }\n textSettings {\n max\n min\n }\n type\n updatedAt\n }\n translations {\n locale\n options {\n id\n name\n optionalText\n values {\n id\n value\n }\n }\n }\n updatedAt\n }\n }\n "])));
|
|
43931
43934
|
return [4 /*yield*/, apollo
|
|
43932
43935
|
.getClient()
|
|
43933
43936
|
.query({
|