@ikas/storefront 0.0.20 → 0.0.22
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.
|
@@ -199,6 +199,10 @@ export interface CartLineVariantInput {
|
|
|
199
199
|
id?: string | null;
|
|
200
200
|
name?: string | null;
|
|
201
201
|
}
|
|
202
|
+
export interface CategoryFilterInput {
|
|
203
|
+
eq?: string | null;
|
|
204
|
+
in?: string[] | null;
|
|
205
|
+
}
|
|
202
206
|
export interface CheckStocksLineInput {
|
|
203
207
|
quantity: number;
|
|
204
208
|
stockLocationId?: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StringFilterInput, PaginationInput, ProductTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { StringFilterInput, PaginationInput, CategoryFilterInput, ProductTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listProduct_listProduct_data_metaData {
|
|
3
3
|
__typename: "HTMLMetaData";
|
|
4
4
|
slug: string;
|
|
@@ -89,5 +89,5 @@ export interface listProductVariables {
|
|
|
89
89
|
paginationInput?: PaginationInput | null;
|
|
90
90
|
search?: string | null;
|
|
91
91
|
brandId?: StringFilterInput | null;
|
|
92
|
-
categoryIds?:
|
|
92
|
+
categoryIds?: CategoryFilterInput | null;
|
|
93
93
|
}
|
package/build/index.es.js
CHANGED
|
@@ -19340,7 +19340,7 @@ var IkasProductAPI = /** @class */ (function () {
|
|
|
19340
19340
|
return __generator(this, function (_b) {
|
|
19341
19341
|
switch (_b.label) {
|
|
19342
19342
|
case 0:
|
|
19343
|
-
LIST_PRODUCTS = src(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds:
|
|
19343
|
+
LIST_PRODUCTS = src(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds: CategoryFilterInput\n ) {\n listProduct(\n id: $id\n paginationInput: $paginationInput\n search: $search\n brandId: $brandId\n categoryIds: $categoryIds\n ) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n shortDescription\n description\n taxValue\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n brandId\n categoryIds\n productVariantTypes {\n order\n variantTypeId\n variantValueIds\n }\n variants {\n id\n createdAt\n updatedAt\n deleted\n sku\n barcodeList\n isActive\n variantValueIds {\n variantTypeId\n variantValueId\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n images {\n order\n isMain\n imageId\n }\n prices {\n sellPrice\n discountPrice\n buyPrice\n currency\n }\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n }\n count\n }\n }\n "], ["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds: CategoryFilterInput\n ) {\n listProduct(\n id: $id\n paginationInput: $paginationInput\n search: $search\n brandId: $brandId\n categoryIds: $categoryIds\n ) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n shortDescription\n description\n taxValue\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n brandId\n categoryIds\n productVariantTypes {\n order\n variantTypeId\n variantValueIds\n }\n variants {\n id\n createdAt\n updatedAt\n deleted\n sku\n barcodeList\n isActive\n variantValueIds {\n variantTypeId\n variantValueId\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n images {\n order\n isMain\n imageId\n }\n prices {\n sellPrice\n discountPrice\n buyPrice\n currency\n }\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n }\n count\n }\n }\n "])));
|
|
19344
19344
|
_b.label = 1;
|
|
19345
19345
|
case 1:
|
|
19346
19346
|
_b.trys.push([1, 9, , 10]);
|
|
@@ -19368,7 +19368,6 @@ var IkasProductAPI = /** @class */ (function () {
|
|
|
19368
19368
|
in: params.categoryIds,
|
|
19369
19369
|
};
|
|
19370
19370
|
}
|
|
19371
|
-
console.log(JSON.stringify(params, null, 2));
|
|
19372
19371
|
return [4 /*yield*/, apollo
|
|
19373
19372
|
.getClient()
|
|
19374
19373
|
.query({
|
package/build/index.js
CHANGED
|
@@ -19324,7 +19324,7 @@ var IkasProductAPI = /** @class */ (function () {
|
|
|
19324
19324
|
return __generator(this, function (_b) {
|
|
19325
19325
|
switch (_b.label) {
|
|
19326
19326
|
case 0:
|
|
19327
|
-
LIST_PRODUCTS = src(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds:
|
|
19327
|
+
LIST_PRODUCTS = src(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds: CategoryFilterInput\n ) {\n listProduct(\n id: $id\n paginationInput: $paginationInput\n search: $search\n brandId: $brandId\n categoryIds: $categoryIds\n ) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n shortDescription\n description\n taxValue\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n brandId\n categoryIds\n productVariantTypes {\n order\n variantTypeId\n variantValueIds\n }\n variants {\n id\n createdAt\n updatedAt\n deleted\n sku\n barcodeList\n isActive\n variantValueIds {\n variantTypeId\n variantValueId\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n images {\n order\n isMain\n imageId\n }\n prices {\n sellPrice\n discountPrice\n buyPrice\n currency\n }\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n }\n count\n }\n }\n "], ["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds: CategoryFilterInput\n ) {\n listProduct(\n id: $id\n paginationInput: $paginationInput\n search: $search\n brandId: $brandId\n categoryIds: $categoryIds\n ) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n shortDescription\n description\n taxValue\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n brandId\n categoryIds\n productVariantTypes {\n order\n variantTypeId\n variantValueIds\n }\n variants {\n id\n createdAt\n updatedAt\n deleted\n sku\n barcodeList\n isActive\n variantValueIds {\n variantTypeId\n variantValueId\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n images {\n order\n isMain\n imageId\n }\n prices {\n sellPrice\n discountPrice\n buyPrice\n currency\n }\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n }\n count\n }\n }\n "])));
|
|
19328
19328
|
_b.label = 1;
|
|
19329
19329
|
case 1:
|
|
19330
19330
|
_b.trys.push([1, 9, , 10]);
|
|
@@ -19352,7 +19352,6 @@ var IkasProductAPI = /** @class */ (function () {
|
|
|
19352
19352
|
in: params.categoryIds,
|
|
19353
19353
|
};
|
|
19354
19354
|
}
|
|
19355
|
-
console.log(JSON.stringify(params, null, 2));
|
|
19356
19355
|
return [4 /*yield*/, apollo
|
|
19357
19356
|
.getClient()
|
|
19358
19357
|
.query({
|