@things-factory/integration-marketplace 4.3.99 → 4.3.100

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,11 +7,13 @@ function getStoreProductCategories() {
7
7
  method: 'get',
8
8
  path: '/products/categories',
9
9
  denormalize(req) {
10
- return { payload: {} };
10
+ return { payload: {
11
+ per_page: 100
12
+ } };
11
13
  },
12
14
  normalize(res, { store }) {
13
15
  const { items, totalItems } = res;
14
- return { results: items, total: totalItems };
16
+ return { results: items, total: parseInt(totalItems) };
15
17
  }
16
18
  };
17
19
  }
@@ -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,EAAE,EAAE,CAAA;QACxB,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,UAAU,EAAE,CAAA;QAC9C,CAAC;KACF,CAAA;AACH,CAAC;AAbD,8DAaC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-marketplace",
3
- "version": "4.3.99",
3
+ "version": "4.3.100",
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": "01f43a1b95b1573e8f2f3e134d950a0bbbe16324"
55
+ "gitHead": "1b1d640b6e91ae9e15a158c13ff08cca19e02a83"
56
56
  }
@@ -5,12 +5,14 @@ export function getStoreProductCategories() {
5
5
  method: 'get',
6
6
  path: '/products/categories',
7
7
  denormalize(req) {
8
- return { payload: {} }
8
+ return { payload: {
9
+ per_page: 100
10
+ } }
9
11
  },
10
12
  normalize(res, { store }) {
11
13
  const { items, totalItems } = res
12
14
 
13
- return { results: items, total: totalItems }
15
+ return { results: items, total: parseInt(totalItems) }
14
16
  }
15
17
  }
16
18
  }