@ikas/storefront-api 4.12.0-beta.65 → 4.12.0-beta.67

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.
@@ -2,7 +2,7 @@ import { APIResponse } from "@ikas/fe-api-client";
2
2
  import { IkasCategory } from "@ikas/storefront-models";
3
3
  import { QueryParams as ListCategoryQueryParams } from "../../__api/queries/listCategory";
4
4
  export type { ListCategoryQueryParams };
5
- export declare function listCategory(params: ListCategoryQueryParams): Promise<APIResponse<{
5
+ export declare function listCategory(params: ListCategoryQueryParams, excludedFieldsCategory?: string[] | null): Promise<APIResponse<{
6
6
  data: IkasCategory[] | undefined;
7
7
  count?: number | undefined;
8
8
  hasNext?: boolean | undefined;
@@ -1 +1 @@
1
- import{__awaiter as r,__generator as t,__assign as o}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as e}from"@ikas/fe-api-client";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";import{initIkasCategory as n}from"@ikas/storefront-models";function a(a){var s;return r(this,void 0,void 0,(function(){var r,u;return t(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listCategory.js")];case 1:return[4,(0,t.sent().default)(a)];case 2:return r=t.sent(),null==(u=null===(s=r.data)||void 0===s?void 0:s.data)||u.forEach((function(r){return n(r,i.getCurrentLocale())})),[2,new e(o(o({},r.data),{data:u}),r.graphQLErrors)]}}))}))}export{a as listCategory};
1
+ import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";import{initIkasCategory as o}from"@ikas/storefront-models";function s(s,u){var c;return t(this,void 0,void 0,(function(){var t,f,l,d,p;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCategory.js")];case 1:return t=r.sent().default,l=t,d=[s],[4,a(u)];case 2:return[4,l.apply(void 0,d.concat([r.sent()]))];case 3:return f=r.sent(),null==(p=null===(c=f.data)||void 0===c?void 0:c.data)||p.forEach((function(t){return o(t,i.getCurrentLocale())})),[2,new n(e(e({},f.data),{data:p}),f.graphQLErrors)]}}))}))}function a(e){return t(this,void 0,void 0,(function(){var t,n;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCategory.js")];case 1:return t=r.sent().ResponseField,n=[],e&&e.length&&e.map((function(r){var e=Object.keys(t).filter((function(t){return t.startsWith(r)}));n=e})),[2,Object.entries(t).filter((function(t){var r=t[0];return!n.includes(r)})).map((function(t){return t[1]}))]}}))}))}export{s as listCategory};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "4.12.0-beta.65",
3
+ "version": "4.12.0-beta.67",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "API functions that returns models from the ikas-storefront-models package.",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-commonjs": "^22.0.0",
20
- "@ikas/storefront-config": "^4.12.0-beta.65",
21
- "@ikas/storefront-models": "^4.12.0-beta.65",
20
+ "@ikas/storefront-config": "^4.12.0-beta.67",
21
+ "@ikas/storefront-models": "^4.12.0-beta.67",
22
22
  "@rollup/plugin-node-resolve": "^13.3.0",
23
23
  "rollup-plugin-rename-node-modules": "^1.2.0",
24
24
  "prettier": "^2.2.1",
@@ -34,8 +34,8 @@
34
34
  "@ikas/fe-api-client": "^1.0.19"
35
35
  },
36
36
  "peerDependencies": {
37
- "@ikas/storefront-config": "^4.12.0-beta.65",
38
- "@ikas/storefront-models": "^4.12.0-beta.65",
37
+ "@ikas/storefront-config": "^4.12.0-beta.67",
38
+ "@ikas/storefront-models": "^4.12.0-beta.67",
39
39
  "@ikas/fe-api-client": "^1.0.18",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"