@ikas/storefront 0.0.22 → 0.0.24

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.
@@ -25,6 +25,6 @@ export interface listProductBrand {
25
25
  }
26
26
  export interface listProductBrandVariables {
27
27
  id?: StringFilterInput | null;
28
- paginationInput?: PaginationInput | null;
28
+ pagination?: PaginationInput | null;
29
29
  name?: StringFilterInput | null;
30
30
  }
@@ -29,6 +29,6 @@ export interface listCategory {
29
29
  }
30
30
  export interface listCategoryVariables {
31
31
  id?: StringFilterInput | null;
32
- paginationInput?: PaginationInput | null;
32
+ pagination?: PaginationInput | null;
33
33
  name?: StringFilterInput | null;
34
34
  }
@@ -86,7 +86,7 @@ export interface listProduct {
86
86
  }
87
87
  export interface listProductVariables {
88
88
  id?: StringFilterInput | null;
89
- paginationInput?: PaginationInput | null;
89
+ pagination?: PaginationInput | null;
90
90
  search?: string | null;
91
91
  brandId?: StringFilterInput | null;
92
92
  categoryIds?: CategoryFilterInput | null;
package/build/index.es.js CHANGED
@@ -13006,6 +13006,24 @@ var IkasProductPrice = /** @class */ (function () {
13006
13006
  enumerable: false,
13007
13007
  configurable: true
13008
13008
  });
13009
+ Object.defineProperty(IkasProductPrice.prototype, "discountAmount", {
13010
+ get: function () {
13011
+ if (this.hasDiscount)
13012
+ return this.sellPrice - this.discountPrice;
13013
+ return 0;
13014
+ },
13015
+ enumerable: false,
13016
+ configurable: true
13017
+ });
13018
+ Object.defineProperty(IkasProductPrice.prototype, "discountPercentage", {
13019
+ get: function () {
13020
+ if (this.hasDiscount)
13021
+ return (100 - (this.finalPrice * 100) / this.sellPrice).toFixed(0);
13022
+ return 0;
13023
+ },
13024
+ enumerable: false,
13025
+ configurable: true
13026
+ });
13009
13027
  return IkasProductPrice;
13010
13028
  }());
13011
13029
 
@@ -14596,7 +14614,7 @@ var IkasBrandAPI = /** @class */ (function () {
14596
14614
  return __generator(this, function (_b) {
14597
14615
  switch (_b.label) {
14598
14616
  case 0:
14599
- LIST_QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listProductBrand(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listProductBrand(\n id: $id\n paginationInput: $paginationInput\n name: $name\n ) {\n data {\n id\n name\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listProductBrand(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listProductBrand(\n id: $id\n paginationInput: $paginationInput\n name: $name\n ) {\n data {\n id\n name\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14617
+ LIST_QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listProductBrand(\n $id: StringFilterInput\n $pagination: PaginationInput\n $name: StringFilterInput\n ) {\n listProductBrand(id: $id, pagination: $pagination, name: $name) {\n data {\n id\n name\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listProductBrand(\n $id: StringFilterInput\n $pagination: PaginationInput\n $name: StringFilterInput\n ) {\n listProductBrand(id: $id, pagination: $pagination, name: $name) {\n data {\n id\n name\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14600
14618
  _b.label = 1;
14601
14619
  case 1:
14602
14620
  _b.trys.push([1, 3, , 4]);
@@ -14610,7 +14628,7 @@ var IkasBrandAPI = /** @class */ (function () {
14610
14628
  in: params.idList,
14611
14629
  }
14612
14630
  : undefined,
14613
- paginationInput: (params === null || params === void 0 ? void 0 : params.page) ? {
14631
+ pagination: (params === null || params === void 0 ? void 0 : params.page) ? {
14614
14632
  page: params.page,
14615
14633
  limit: params.limit || 10,
14616
14634
  }
@@ -14746,7 +14764,7 @@ var IkasCategoryAPI = /** @class */ (function () {
14746
14764
  return __generator(this, function (_b) {
14747
14765
  switch (_b.label) {
14748
14766
  case 0:
14749
- LIST_QUERY = src(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n query listCategory(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, paginationInput: $paginationInput, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listCategory(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, paginationInput: $paginationInput, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14767
+ LIST_QUERY = src(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n query listCategory(\n $id: StringFilterInput\n $pagination: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, pagination: $pagination, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listCategory(\n $id: StringFilterInput\n $pagination: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, pagination: $pagination, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14750
14768
  _b.label = 1;
14751
14769
  case 1:
14752
14770
  _b.trys.push([1, 3, , 4]);
@@ -14760,7 +14778,7 @@ var IkasCategoryAPI = /** @class */ (function () {
14760
14778
  in: params.idList,
14761
14779
  }
14762
14780
  : undefined,
14763
- paginationInput: (params === null || params === void 0 ? void 0 : params.page) ? {
14781
+ pagination: (params === null || params === void 0 ? void 0 : params.page) ? {
14764
14782
  page: params.page,
14765
14783
  limit: params.limit || 10,
14766
14784
  }
@@ -19340,7 +19358,7 @@ var IkasProductAPI = /** @class */ (function () {
19340
19358
  return __generator(this, function (_b) {
19341
19359
  switch (_b.label) {
19342
19360
  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: 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 "])));
19361
+ LIST_PRODUCTS = src(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n query listProduct(\n $id: StringFilterInput\n $pagination: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds: CategoryFilterInput\n ) {\n listProduct(\n id: $id\n pagination: $pagination\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 $pagination: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds: CategoryFilterInput\n ) {\n listProduct(\n id: $id\n pagination: $pagination\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
19362
  _b.label = 1;
19345
19363
  case 1:
19346
19364
  _b.trys.push([1, 9, , 10]);
@@ -19353,7 +19371,7 @@ var IkasProductAPI = /** @class */ (function () {
19353
19371
  };
19354
19372
  }
19355
19373
  if (params === null || params === void 0 ? void 0 : params.page) {
19356
- variables.paginationInput = {
19374
+ variables.pagination = {
19357
19375
  page: params.page,
19358
19376
  limit: params.limit || 10,
19359
19377
  };
package/build/index.js CHANGED
@@ -13003,6 +13003,24 @@ var IkasProductPrice = /** @class */ (function () {
13003
13003
  enumerable: false,
13004
13004
  configurable: true
13005
13005
  });
13006
+ Object.defineProperty(IkasProductPrice.prototype, "discountAmount", {
13007
+ get: function () {
13008
+ if (this.hasDiscount)
13009
+ return this.sellPrice - this.discountPrice;
13010
+ return 0;
13011
+ },
13012
+ enumerable: false,
13013
+ configurable: true
13014
+ });
13015
+ Object.defineProperty(IkasProductPrice.prototype, "discountPercentage", {
13016
+ get: function () {
13017
+ if (this.hasDiscount)
13018
+ return (100 - (this.finalPrice * 100) / this.sellPrice).toFixed(0);
13019
+ return 0;
13020
+ },
13021
+ enumerable: false,
13022
+ configurable: true
13023
+ });
13006
13024
  return IkasProductPrice;
13007
13025
  }());
13008
13026
 
@@ -14580,7 +14598,7 @@ var IkasBrandAPI = /** @class */ (function () {
14580
14598
  return __generator(this, function (_b) {
14581
14599
  switch (_b.label) {
14582
14600
  case 0:
14583
- LIST_QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listProductBrand(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listProductBrand(\n id: $id\n paginationInput: $paginationInput\n name: $name\n ) {\n data {\n id\n name\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listProductBrand(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listProductBrand(\n id: $id\n paginationInput: $paginationInput\n name: $name\n ) {\n data {\n id\n name\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14601
+ LIST_QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listProductBrand(\n $id: StringFilterInput\n $pagination: PaginationInput\n $name: StringFilterInput\n ) {\n listProductBrand(id: $id, pagination: $pagination, name: $name) {\n data {\n id\n name\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listProductBrand(\n $id: StringFilterInput\n $pagination: PaginationInput\n $name: StringFilterInput\n ) {\n listProductBrand(id: $id, pagination: $pagination, name: $name) {\n data {\n id\n name\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14584
14602
  _b.label = 1;
14585
14603
  case 1:
14586
14604
  _b.trys.push([1, 3, , 4]);
@@ -14594,7 +14612,7 @@ var IkasBrandAPI = /** @class */ (function () {
14594
14612
  in: params.idList,
14595
14613
  }
14596
14614
  : undefined,
14597
- paginationInput: (params === null || params === void 0 ? void 0 : params.page) ? {
14615
+ pagination: (params === null || params === void 0 ? void 0 : params.page) ? {
14598
14616
  page: params.page,
14599
14617
  limit: params.limit || 10,
14600
14618
  }
@@ -14730,7 +14748,7 @@ var IkasCategoryAPI = /** @class */ (function () {
14730
14748
  return __generator(this, function (_b) {
14731
14749
  switch (_b.label) {
14732
14750
  case 0:
14733
- LIST_QUERY = src(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n query listCategory(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, paginationInput: $paginationInput, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listCategory(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, paginationInput: $paginationInput, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14751
+ LIST_QUERY = src(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n query listCategory(\n $id: StringFilterInput\n $pagination: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, pagination: $pagination, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listCategory(\n $id: StringFilterInput\n $pagination: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, pagination: $pagination, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14734
14752
  _b.label = 1;
14735
14753
  case 1:
14736
14754
  _b.trys.push([1, 3, , 4]);
@@ -14744,7 +14762,7 @@ var IkasCategoryAPI = /** @class */ (function () {
14744
14762
  in: params.idList,
14745
14763
  }
14746
14764
  : undefined,
14747
- paginationInput: (params === null || params === void 0 ? void 0 : params.page) ? {
14765
+ pagination: (params === null || params === void 0 ? void 0 : params.page) ? {
14748
14766
  page: params.page,
14749
14767
  limit: params.limit || 10,
14750
14768
  }
@@ -19324,7 +19342,7 @@ var IkasProductAPI = /** @class */ (function () {
19324
19342
  return __generator(this, function (_b) {
19325
19343
  switch (_b.label) {
19326
19344
  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: 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 "])));
19345
+ LIST_PRODUCTS = src(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n query listProduct(\n $id: StringFilterInput\n $pagination: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds: CategoryFilterInput\n ) {\n listProduct(\n id: $id\n pagination: $pagination\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 $pagination: PaginationInput\n $search: String\n $brandId: StringFilterInput\n $categoryIds: CategoryFilterInput\n ) {\n listProduct(\n id: $id\n pagination: $pagination\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
19346
  _b.label = 1;
19329
19347
  case 1:
19330
19348
  _b.trys.push([1, 9, , 10]);
@@ -19337,7 +19355,7 @@ var IkasProductAPI = /** @class */ (function () {
19337
19355
  };
19338
19356
  }
19339
19357
  if (params === null || params === void 0 ? void 0 : params.page) {
19340
- variables.paginationInput = {
19358
+ variables.pagination = {
19341
19359
  page: params.page,
19342
19360
  limit: params.limit || 10,
19343
19361
  };
@@ -5,4 +5,6 @@ export declare class IkasProductPrice {
5
5
  constructor(data?: Partial<IkasProductPrice>);
6
6
  get finalPrice(): number;
7
7
  get hasDiscount(): boolean;
8
+ get discountAmount(): number;
9
+ get discountPercentage(): string | 0;
8
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",