@things-factory/integration-marketplace 4.0.35 → 4.0.39
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.
- package/dist-server/controllers/woocommerce/apis/update-store-product-variation-stock.js +3 -0
- package/dist-server/controllers/woocommerce/apis/update-store-product-variation-stock.js.map +1 -1
- package/package.json +15 -16
- package/server/controllers/woocommerce/apis/update-store-product-variation-stock.ts +3 -0
|
@@ -8,6 +8,9 @@ function updateStoreProductVariationStock(req) {
|
|
|
8
8
|
method: 'put',
|
|
9
9
|
path: '/products/{itemId}/variations/{variationId}',
|
|
10
10
|
denormalize(req) {
|
|
11
|
+
if (Array.isArray(req)) {
|
|
12
|
+
req = req[0];
|
|
13
|
+
}
|
|
11
14
|
var { qty, itemId, variationId } = req || {};
|
|
12
15
|
return {
|
|
13
16
|
resource: { itemId: parseInt(itemId), variationId: parseInt(variationId) },
|
package/dist-server/controllers/woocommerce/apis/update-store-product-variation-stock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-store-product-variation-stock.js","sourceRoot":"","sources":["../../../../server/controllers/woocommerce/apis/update-store-product-variation-stock.ts"],"names":[],"mappings":";AAAA,oGAAoG;AACpG,0DAA0D;;;AAE1D,SAAgB,gCAAgC,CAAC,GAAG;IAClD,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,6CAA6C;QACnD,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,IAAI,EAAE,CAAA;YAE5C,OAAO;gBACL,QAAQ,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,EAAE;gBAC1E,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE;aACrD,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;
|
|
1
|
+
{"version":3,"file":"update-store-product-variation-stock.js","sourceRoot":"","sources":["../../../../server/controllers/woocommerce/apis/update-store-product-variation-stock.ts"],"names":[],"mappings":";AAAA,oGAAoG;AACpG,0DAA0D;;;AAE1D,SAAgB,gCAAgC,CAAC,GAAG;IAClD,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,6CAA6C;QACnD,WAAW,CAAC,GAAG;YACb,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACtB,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAA;aACb;YACD,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,IAAI,EAAE,CAAA;YAE5C,OAAO;gBACL,QAAQ,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,EAAE;gBAC1E,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE;aACrD,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AAnBD,4EAmBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-marketplace",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.39",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"test": "DEBUG=things-factory:* NODE_ENV=development npx mocha -r ts-node/register ./test/**/*spec.ts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@things-factory/apptool-ui": "^4.0.
|
|
29
|
-
"@things-factory/auth-ui": "^4.0.
|
|
30
|
-
"@things-factory/biz-base": "^4.0.
|
|
31
|
-
"@things-factory/code-ui": "^4.0.
|
|
32
|
-
"@things-factory/context-ui": "^4.0.
|
|
33
|
-
"@things-factory/grist-ui": "^4.0.
|
|
34
|
-
"@things-factory/i18n-ui": "^4.0.
|
|
35
|
-
"@things-factory/integration-lmd": "^4.0.
|
|
36
|
-
"@things-factory/integration-ui": "^4.0.
|
|
37
|
-
"@things-factory/more-ui": "^4.0.
|
|
38
|
-
"@things-factory/resource-ui": "^4.0.
|
|
39
|
-
"@things-factory/setting-ui": "^4.0.
|
|
40
|
-
"@things-factory/system-ui": "^4.0.
|
|
28
|
+
"@things-factory/apptool-ui": "^4.0.39",
|
|
29
|
+
"@things-factory/auth-ui": "^4.0.39",
|
|
30
|
+
"@things-factory/biz-base": "^4.0.39",
|
|
31
|
+
"@things-factory/code-ui": "^4.0.39",
|
|
32
|
+
"@things-factory/context-ui": "^4.0.39",
|
|
33
|
+
"@things-factory/grist-ui": "^4.0.39",
|
|
34
|
+
"@things-factory/i18n-ui": "^4.0.39",
|
|
35
|
+
"@things-factory/integration-lmd": "^4.0.39",
|
|
36
|
+
"@things-factory/integration-ui": "^4.0.39",
|
|
37
|
+
"@things-factory/more-ui": "^4.0.39",
|
|
38
|
+
"@things-factory/resource-ui": "^4.0.39",
|
|
39
|
+
"@things-factory/setting-ui": "^4.0.39",
|
|
40
|
+
"@things-factory/system-ui": "^4.0.39",
|
|
41
41
|
"debug": "^4.1.1",
|
|
42
42
|
"node-fetch": "^2.6.0",
|
|
43
43
|
"querystring": "^0.2.1"
|
|
@@ -47,11 +47,10 @@
|
|
|
47
47
|
"@types/chai": "^4.2.11",
|
|
48
48
|
"@types/mocha": "^8.0.0",
|
|
49
49
|
"@types/node": "^17.0.8",
|
|
50
|
-
"@types/should": "^13.0.0",
|
|
51
50
|
"chai": "^4.2.0",
|
|
52
51
|
"mocha": "^8.0.1",
|
|
53
52
|
"nock": "^13.0.2",
|
|
54
53
|
"should": "^13.2.3"
|
|
55
54
|
},
|
|
56
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "a4f93ea85a26cf70ae0aa2fcd298aa59b55dd039"
|
|
57
56
|
}
|