@things-factory/integration-marketplace 4.3.100 → 4.3.101

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.
@@ -7,8 +7,11 @@ function getStoreProductCategories() {
7
7
  method: 'get',
8
8
  path: '/products/categories',
9
9
  denormalize(req) {
10
+ var { pagination } = req || {};
11
+ var { page = 1, limitCategory = 100 } = pagination || {};
10
12
  return { payload: {
11
- per_page: 100
13
+ per_page: limitCategory,
14
+ page
12
15
  } };
13
16
  },
14
17
  normalize(res, { store }) {
@@ -1 +1 @@
1
- {"version":3,"file":"get-store-product-categories.js","sourceRoot":"","sources":["../../../../server/controllers/woocommerce/apis/get-store-product-categories.ts"],"names":[],"mappings":";AAAA,uHAAuH;;;AAEvH,SAAgB,yBAAyB;IACvC,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,sBAAsB;QAC5B,WAAW,CAAC,GAAG;YACb,OAAO,EAAE,OAAO,EAAE;oBAChB,QAAQ,EAAE,GAAG;iBACd,EAAE,CAAA;QACL,CAAC;QACD,SAAS,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE;YACtB,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,GAAG,CAAA;YAEjC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAA;QACxD,CAAC;KACF,CAAA;AACH,CAAC;AAfD,8DAeC"}
1
+ {"version":3,"file":"get-store-product-categories.js","sourceRoot":"","sources":["../../../../server/controllers/woocommerce/apis/get-store-product-categories.ts"],"names":[],"mappings":";AAAA,uHAAuH;;;AAEvH,SAAgB,yBAAyB;IACvC,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,sBAAsB;QAC5B,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,UAAU,EAAE,GAAG,GAAG,IAAI,EAAE,CAAA;YAC9B,IAAI,EAAE,IAAI,GAAG,CAAC,EAAE,aAAa,GAAG,GAAG,EAAE,GAAG,UAAU,IAAI,EAAE,CAAA;YACxD,OAAO,EAAE,OAAO,EAAE;oBAChB,QAAQ,EAAE,aAAa;oBACvB,IAAI;iBACL,EAAE,CAAA;QACL,CAAC;QACD,SAAS,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE;YACtB,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,GAAG,CAAA;YAEjC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAA;QACxD,CAAC;KACF,CAAA;AACH,CAAC;AAlBD,8DAkBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-marketplace",
3
- "version": "4.3.100",
3
+ "version": "4.3.101",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -52,5 +52,5 @@
52
52
  "nock": "^13.0.2",
53
53
  "should": "^13.2.3"
54
54
  },
55
- "gitHead": "1b1d640b6e91ae9e15a158c13ff08cca19e02a83"
55
+ "gitHead": "650a69693c312b14afb2c243fde629d9eb0f5fc8"
56
56
  }
@@ -5,8 +5,11 @@ export function getStoreProductCategories() {
5
5
  method: 'get',
6
6
  path: '/products/categories',
7
7
  denormalize(req) {
8
+ var { pagination } = req || {}
9
+ var { page = 1, limitCategory = 100 } = pagination || {}
8
10
  return { payload: {
9
- per_page: 100
11
+ per_page: limitCategory,
12
+ page
10
13
  } }
11
14
  },
12
15
  normalize(res, { store }) {