@things-factory/operato-hub 4.3.15 → 4.3.16
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-hub",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.16",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@things-factory/pdf": "^4.3.14",
|
|
91
91
|
"@things-factory/product-ui": "^4.3.14",
|
|
92
92
|
"@things-factory/resource-ui": "^4.3.14",
|
|
93
|
-
"@things-factory/sales-base": "^4.3.
|
|
93
|
+
"@things-factory/sales-base": "^4.3.16",
|
|
94
94
|
"@things-factory/scene-data-transform": "^4.3.14",
|
|
95
95
|
"@things-factory/scene-excel": "^4.3.14",
|
|
96
96
|
"@things-factory/scene-firebase": "^4.3.14",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"@things-factory/setting-ui": "^4.3.14",
|
|
106
106
|
"@things-factory/shell": "^4.3.14",
|
|
107
107
|
"@things-factory/system-ui": "^4.3.14",
|
|
108
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
109
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
108
|
+
"@things-factory/warehouse-base": "^4.3.16",
|
|
109
|
+
"@things-factory/worksheet-base": "^4.3.16",
|
|
110
110
|
"koa2-swagger-ui": "^5.0.2",
|
|
111
111
|
"swagger-jsdoc": "^5.0.0",
|
|
112
112
|
"yamljs": "^0.3.0"
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"resolutions": {
|
|
118
118
|
"core-js": "^3.16.0"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "62892327e53288b479a13a53043067c678cd9bfc"
|
|
121
121
|
}
|
|
@@ -14,9 +14,10 @@ import { businessMiddleware } from '../../../../middlewares/business-middleware'
|
|
|
14
14
|
import { warehouseMiddleware } from '../../../../middlewares/warehouse-middleware'
|
|
15
15
|
|
|
16
16
|
const debug = require('debug')('things-factory:operato-hub:restful-api:unstable:add-release-order')
|
|
17
|
+
const apiVersion = 'unstable'
|
|
17
18
|
|
|
18
19
|
router.post(
|
|
19
|
-
|
|
20
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
20
21
|
businessMiddleware,
|
|
21
22
|
warehouseMiddleware,
|
|
22
23
|
async (context, next) => {
|
|
@@ -457,7 +458,7 @@ router.post(
|
|
|
457
458
|
targetInventories = _composeTargetInventories(context, product, orderInventory, inventories)
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
|
-
if (targetInventories?.length) {
|
|
461
|
+
if (!targetInventories?.length) {
|
|
461
462
|
context.throw(404, t(`error.no inventories found`))
|
|
462
463
|
}
|
|
463
464
|
targetInventories.map(item => {
|
|
@@ -722,7 +723,7 @@ router.post(
|
|
|
722
723
|
|
|
723
724
|
createPayloadLog(
|
|
724
725
|
customerBizplaceId,
|
|
725
|
-
|
|
726
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
726
727
|
bodyReq,
|
|
727
728
|
context.body,
|
|
728
729
|
context,
|
|
@@ -731,7 +732,7 @@ router.post(
|
|
|
731
732
|
} catch (error) {
|
|
732
733
|
createPayloadLog(
|
|
733
734
|
customerBizplaceId,
|
|
734
|
-
|
|
735
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
735
736
|
bodyReq,
|
|
736
737
|
error,
|
|
737
738
|
context,
|
|
@@ -14,9 +14,10 @@ import { businessMiddleware } from '../../../../middlewares/business-middleware'
|
|
|
14
14
|
import { warehouseMiddleware } from '../../../../middlewares/warehouse-middleware'
|
|
15
15
|
|
|
16
16
|
const debug = require('debug')('things-factory:operato-hub:restful-api:unstable:add-release-order')
|
|
17
|
+
const apiVersion = 'v1'
|
|
17
18
|
|
|
18
19
|
router.post(
|
|
19
|
-
|
|
20
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
20
21
|
businessMiddleware,
|
|
21
22
|
warehouseMiddleware,
|
|
22
23
|
async (context, next) => {
|
|
@@ -457,7 +458,7 @@ router.post(
|
|
|
457
458
|
targetInventories = _composeTargetInventories(context, product, orderInventory, inventories)
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
|
-
if (targetInventories?.length) {
|
|
461
|
+
if (!targetInventories?.length) {
|
|
461
462
|
context.throw(404, t(`error.no inventories found`))
|
|
462
463
|
}
|
|
463
464
|
targetInventories.map(item => {
|
|
@@ -722,7 +723,7 @@ router.post(
|
|
|
722
723
|
|
|
723
724
|
createPayloadLog(
|
|
724
725
|
customerBizplaceId,
|
|
725
|
-
|
|
726
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
726
727
|
bodyReq,
|
|
727
728
|
context.body,
|
|
728
729
|
context,
|
|
@@ -731,7 +732,7 @@ router.post(
|
|
|
731
732
|
} catch (error) {
|
|
732
733
|
createPayloadLog(
|
|
733
734
|
customerBizplaceId,
|
|
734
|
-
|
|
735
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
735
736
|
bodyReq,
|
|
736
737
|
error,
|
|
737
738
|
context,
|
|
@@ -14,9 +14,10 @@ import { businessMiddleware } from '../../../../middlewares/business-middleware'
|
|
|
14
14
|
import { warehouseMiddleware } from '../../../../middlewares/warehouse-middleware'
|
|
15
15
|
|
|
16
16
|
const debug = require('debug')('things-factory:operato-hub:restful-api:unstable:add-release-order')
|
|
17
|
+
const apiVersion = 'v2'
|
|
17
18
|
|
|
18
19
|
router.post(
|
|
19
|
-
|
|
20
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
20
21
|
businessMiddleware,
|
|
21
22
|
warehouseMiddleware,
|
|
22
23
|
async (context, next) => {
|
|
@@ -457,7 +458,7 @@ router.post(
|
|
|
457
458
|
targetInventories = _composeTargetInventories(context, product, orderInventory, inventories)
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
|
-
if (targetInventories?.length) {
|
|
461
|
+
if (!targetInventories?.length) {
|
|
461
462
|
context.throw(404, t(`error.no inventories found`))
|
|
462
463
|
}
|
|
463
464
|
targetInventories.map(item => {
|
|
@@ -722,7 +723,7 @@ router.post(
|
|
|
722
723
|
|
|
723
724
|
createPayloadLog(
|
|
724
725
|
customerBizplaceId,
|
|
725
|
-
|
|
726
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
726
727
|
bodyReq,
|
|
727
728
|
context.body,
|
|
728
729
|
context,
|
|
@@ -731,7 +732,7 @@ router.post(
|
|
|
731
732
|
} catch (error) {
|
|
732
733
|
createPayloadLog(
|
|
733
734
|
customerBizplaceId,
|
|
734
|
-
|
|
735
|
+
`/${apiVersion}/warehouse/:warehouseId/add-release-order`,
|
|
735
736
|
bodyReq,
|
|
736
737
|
error,
|
|
737
738
|
context,
|