@things-factory/integration-fulfillment 4.1.3 → 4.1.13
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/fulfillment-api/index.js +7 -0
- package/dist-server/controllers/fulfillment-api/index.js.map +1 -1
- package/dist-server/controllers/operato/get-inventory-product-group-open-api.js +22 -0
- package/dist-server/controllers/operato/get-inventory-product-group-open-api.js.map +1 -0
- package/dist-server/controllers/operato/index.js +2 -0
- package/dist-server/controllers/operato/index.js.map +1 -1
- package/package.json +13 -13
- package/server/controllers/fulfillment-api/index.ts +3 -0
- package/server/controllers/operato/get-inventory-product-group-open-api.ts +19 -0
- package/server/controllers/operato/index.ts +2 -0
|
@@ -34,6 +34,7 @@ class FulfillmentAPI {
|
|
|
34
34
|
static echo(center, req) { }
|
|
35
35
|
static getCenterProducts(center, req) { }
|
|
36
36
|
static getInventoryProductGroup(center, req) { }
|
|
37
|
+
static getInventoryProductGroupOpenAPI(center, req) { }
|
|
37
38
|
static getOutboundOrder(center, req) { }
|
|
38
39
|
static getOutboundOrders(center, req) { }
|
|
39
40
|
static getInboundOrder(center, req) { }
|
|
@@ -62,6 +63,12 @@ __decorate([
|
|
|
62
63
|
__metadata("design:paramtypes", [Object, Object]),
|
|
63
64
|
__metadata("design:returntype", Object)
|
|
64
65
|
], FulfillmentAPI, "getInventoryProductGroup", null);
|
|
66
|
+
__decorate([
|
|
67
|
+
decorators_1.api,
|
|
68
|
+
__metadata("design:type", Function),
|
|
69
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
70
|
+
__metadata("design:returntype", Object)
|
|
71
|
+
], FulfillmentAPI, "getInventoryProductGroupOpenAPI", null);
|
|
65
72
|
__decorate([
|
|
66
73
|
decorators_1.api,
|
|
67
74
|
__metadata("design:type", Function),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/controllers/fulfillment-api/index.ts"],"names":[],"mappings":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G3C,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAG9C,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAG/C,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAG9C,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAG9C,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;;AAxD7C,wBAAS,GAAG,EAAE,CAAA;AAuBrB;IADC,gBAAG;;;;gCAC4B;AAGhC;IADC,gBAAG;;;;6CACyC;AAG7C;IADC,gBAAG;;;;oDACgD;AAGpD;IADC,gBAAG;;;;2DACuD;AAG3D;IADC,gBAAG;;;;4CACwC;AAG5C;IADC,gBAAG;;;;6CACyC;AAG7C;IADC,gBAAG;;;;2CACuC;AAG3C;IADC,gBAAG;;;;8CAC0C;AAG9C;IADC,gBAAG;;;;+CAC2C;AAG/C;IADC,gBAAG;;;;8CAC0C;AAG9C;IADC,gBAAG;;;;8CAC0C;AAG9C;IADC,gBAAG;;;;oDACgD;AAzDtD,wCA0DC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://operato.dev/docs/admin-api/rest/reference/products/product?api[version]=2020-07#index-2020-07 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getInventoryProductGroupOpenAPI = void 0;
|
|
5
|
+
function getInventoryProductGroupOpenAPI() {
|
|
6
|
+
return {
|
|
7
|
+
method: 'get',
|
|
8
|
+
path: '/unstable/warehouse/{warehouseId}/get-inventory-product-group-open-api',
|
|
9
|
+
denormalize(req) {
|
|
10
|
+
var { warehouseId, paginationEntriesPerPage, paginationOffset } = req;
|
|
11
|
+
return {
|
|
12
|
+
resource: { warehouseId },
|
|
13
|
+
payload: { paginationEntriesPerPage, paginationOffset }
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
normalize(res) {
|
|
17
|
+
return res.result.inventoryProductGroupOpenAPI;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
exports.getInventoryProductGroupOpenAPI = getInventoryProductGroupOpenAPI;
|
|
22
|
+
//# sourceMappingURL=get-inventory-product-group-open-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-inventory-product-group-open-api.js","sourceRoot":"","sources":["../../../server/controllers/operato/get-inventory-product-group-open-api.ts"],"names":[],"mappings":";AAAA,2GAA2G;;;AAE3G,SAAgB,+BAA+B;IAC7C,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,wEAAwE;QAC9E,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAA;YAErE,OAAO;gBACL,QAAQ,EAAE,EAAE,WAAW,EAAE;gBACzB,OAAO,EAAE,EAAE,wBAAwB,EAAE,gBAAgB,EAAE;aACxD,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAC,MAAM,CAAC,4BAA4B,CAAA;QAChD,CAAC;KACF,CAAA;AACH,CAAC;AAhBD,0EAgBC"}
|
|
@@ -19,6 +19,7 @@ const echo_1 = require("./echo");
|
|
|
19
19
|
const get_center_products_1 = require("./get-center-products");
|
|
20
20
|
const get_inbound_order_1 = require("./get-inbound-order");
|
|
21
21
|
const get_inventory_product_group_1 = require("./get-inventory-product-group");
|
|
22
|
+
const get_inventory_product_group_open_api_1 = require("./get-inventory-product-group-open-api");
|
|
22
23
|
const get_outbound_order_1 = require("./get-outbound-order");
|
|
23
24
|
const get_outbound_orders_1 = require("./get-outbound-orders");
|
|
24
25
|
const platform_action_1 = require("./platform-action");
|
|
@@ -31,6 +32,7 @@ fulfillment_api_1.FulfillmentAPI.registerPlatform('operato', platform_action_1.a
|
|
|
31
32
|
getInboundOrder: get_inbound_order_1.getInboundOrder,
|
|
32
33
|
getOutboundOrder: get_outbound_order_1.getOutboundOrder,
|
|
33
34
|
getOutboundOrders: get_outbound_orders_1.getOutboundOrders,
|
|
35
|
+
getInventoryProductGroupOpenAPI: get_inventory_product_group_open_api_1.getInventoryProductGroupOpenAPI,
|
|
34
36
|
createSalesInvoice: create_sales_invoice_1.createSalesInvoice,
|
|
35
37
|
createOutboundOrder: create_outbound_order_1.createOutboundOrder,
|
|
36
38
|
createInboundOrder: create_inbound_order_1.createInboundOrder,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/controllers/operato/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAmD;AACnD,iEAA2D;AAC3D,iEAA2D;AAC3D,mEAA6D;AAC7D,iEAA2D;AAC3D,iCAA6B;AAC7B,+DAAyD;AACzD,2DAAqD;AACrD,+EAAwE;AACxE,6DAAuD;AACvD,+DAAyD;AACzD,uDAA0C;AAC1C,iFAAyE;AAEzE,4CAAyB;AAEzB,gCAAc,CAAC,gBAAgB,CAAC,SAAS,EAAE,wBAAM,EAAE;IACjD,IAAI,EAAJ,WAAI;IACJ,iBAAiB,EAAjB,uCAAiB;IACjB,wBAAwB,EAAxB,sDAAwB;IACxB,eAAe,EAAf,mCAAe;IACf,gBAAgB,EAAhB,qCAAgB;IAChB,iBAAiB,EAAjB,uCAAiB;IACjB,kBAAkB,EAAlB,yCAAkB;IAClB,mBAAmB,EAAnB,2CAAmB;IACnB,kBAAkB,EAAlB,yCAAkB;IAClB,kBAAkB,EAAlB,yCAAkB;IAClB,wBAAwB,EAAxB,uDAAwB;CACzB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/controllers/operato/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAmD;AACnD,iEAA2D;AAC3D,iEAA2D;AAC3D,mEAA6D;AAC7D,iEAA2D;AAC3D,iCAA6B;AAC7B,+DAAyD;AACzD,2DAAqD;AACrD,+EAAwE;AACxE,iGAAwF;AACxF,6DAAuD;AACvD,+DAAyD;AACzD,uDAA0C;AAC1C,iFAAyE;AAEzE,4CAAyB;AAEzB,gCAAc,CAAC,gBAAgB,CAAC,SAAS,EAAE,wBAAM,EAAE;IACjD,IAAI,EAAJ,WAAI;IACJ,iBAAiB,EAAjB,uCAAiB;IACjB,wBAAwB,EAAxB,sDAAwB;IACxB,eAAe,EAAf,mCAAe;IACf,gBAAgB,EAAhB,qCAAgB;IAChB,iBAAiB,EAAjB,uCAAiB;IACjB,+BAA+B,EAA/B,sEAA+B;IAC/B,kBAAkB,EAAlB,yCAAkB;IAClB,mBAAmB,EAAnB,2CAAmB;IACnB,kBAAkB,EAAlB,yCAAkB;IAClB,kBAAkB,EAAlB,yCAAkB;IAClB,wBAAwB,EAAxB,uDAAwB;CACzB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-fulfillment",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.13",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -25,17 +25,17 @@
|
|
|
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.1.
|
|
29
|
-
"@things-factory/auth-ui": "^4.1.
|
|
30
|
-
"@things-factory/biz-base": "^4.1.
|
|
31
|
-
"@things-factory/context-ui": "^4.1.
|
|
32
|
-
"@things-factory/grist-ui": "^4.1.
|
|
33
|
-
"@things-factory/i18n-base": "^4.1.
|
|
34
|
-
"@things-factory/integration-ui": "^4.1.
|
|
35
|
-
"@things-factory/more-ui": "^4.1.
|
|
36
|
-
"@things-factory/resource-ui": "^4.1.
|
|
37
|
-
"@things-factory/setting-ui": "^4.1.
|
|
38
|
-
"@things-factory/system-ui": "^4.1.
|
|
28
|
+
"@things-factory/apptool-ui": "^4.1.13",
|
|
29
|
+
"@things-factory/auth-ui": "^4.1.13",
|
|
30
|
+
"@things-factory/biz-base": "^4.1.13",
|
|
31
|
+
"@things-factory/context-ui": "^4.1.13",
|
|
32
|
+
"@things-factory/grist-ui": "^4.1.13",
|
|
33
|
+
"@things-factory/i18n-base": "^4.1.13",
|
|
34
|
+
"@things-factory/integration-ui": "^4.1.13",
|
|
35
|
+
"@things-factory/more-ui": "^4.1.13",
|
|
36
|
+
"@things-factory/resource-ui": "^4.1.13",
|
|
37
|
+
"@things-factory/setting-ui": "^4.1.13",
|
|
38
|
+
"@things-factory/system-ui": "^4.1.13",
|
|
39
39
|
"debug": "^4.1.1",
|
|
40
40
|
"node-fetch": "^2.6.0"
|
|
41
41
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"nock": "^13.0.2",
|
|
50
50
|
"should": "^13.2.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "adbf93d0eddd05d209543ed0d08e3aeaab2968b5"
|
|
53
53
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* https://operato.dev/docs/admin-api/rest/reference/products/product?api[version]=2020-07#index-2020-07 */
|
|
2
|
+
|
|
3
|
+
export function getInventoryProductGroupOpenAPI() {
|
|
4
|
+
return {
|
|
5
|
+
method: 'get',
|
|
6
|
+
path: '/unstable/warehouse/{warehouseId}/get-inventory-product-group-open-api',
|
|
7
|
+
denormalize(req) {
|
|
8
|
+
var { warehouseId, paginationEntriesPerPage, paginationOffset } = req
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
resource: { warehouseId },
|
|
12
|
+
payload: { paginationEntriesPerPage, paginationOffset }
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
normalize(res) {
|
|
16
|
+
return res.result.inventoryProductGroupOpenAPI
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -7,6 +7,7 @@ import { echo } from './echo'
|
|
|
7
7
|
import { getCenterProducts } from './get-center-products'
|
|
8
8
|
import { getInboundOrder } from './get-inbound-order'
|
|
9
9
|
import { getInventoryProductGroup } from './get-inventory-product-group'
|
|
10
|
+
import { getInventoryProductGroupOpenAPI } from './get-inventory-product-group-open-api'
|
|
10
11
|
import { getOutboundOrder } from './get-outbound-order'
|
|
11
12
|
import { getOutboundOrders } from './get-outbound-orders'
|
|
12
13
|
import { action } from './platform-action'
|
|
@@ -21,6 +22,7 @@ FulfillmentAPI.registerPlatform('operato', action, {
|
|
|
21
22
|
getInboundOrder,
|
|
22
23
|
getOutboundOrder,
|
|
23
24
|
getOutboundOrders,
|
|
25
|
+
getInventoryProductGroupOpenAPI,
|
|
24
26
|
createSalesInvoice,
|
|
25
27
|
createOutboundOrder,
|
|
26
28
|
createInboundOrder,
|