@things-factory/integration-fulfillment 4.3.660 → 4.3.671
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 +13 -13
- package/dist-server/controllers/fulfillment-api/decorators.js +0 -32
- package/dist-server/controllers/fulfillment-api/decorators.js.map +0 -1
- package/dist-server/controllers/fulfillment-api/index.js +0 -121
- package/dist-server/controllers/fulfillment-api/index.js.map +0 -1
- package/dist-server/controllers/fulfillment-api/types.js +0 -1
- package/dist-server/controllers/fulfillment-api/types.js.map +0 -1
- package/dist-server/controllers/index.js +0 -18
- package/dist-server/controllers/index.js.map +0 -1
- package/dist-server/controllers/operato/cancel-release-order.js +0 -22
- package/dist-server/controllers/operato/cancel-release-order.js.map +0 -1
- package/dist-server/controllers/operato/create-inbound-order.js +0 -36
- package/dist-server/controllers/operato/create-inbound-order.js.map +0 -1
- package/dist-server/controllers/operato/create-outbound-order.js +0 -24
- package/dist-server/controllers/operato/create-outbound-order.js.map +0 -1
- package/dist-server/controllers/operato/create-sales-invoice.js +0 -24
- package/dist-server/controllers/operato/create-sales-invoice.js.map +0 -1
- package/dist-server/controllers/operato/echo.js +0 -19
- package/dist-server/controllers/operato/echo.js.map +0 -1
- package/dist-server/controllers/operato/get-center-products.js +0 -23
- package/dist-server/controllers/operato/get-center-products.js.map +0 -1
- package/dist-server/controllers/operato/get-inbound-order.js +0 -27
- package/dist-server/controllers/operato/get-inbound-order.js.map +0 -1
- package/dist-server/controllers/operato/get-inventory-product-group-open-api.js +0 -22
- package/dist-server/controllers/operato/get-inventory-product-group-open-api.js.map +0 -1
- package/dist-server/controllers/operato/get-inventory-product-group.js +0 -22
- package/dist-server/controllers/operato/get-inventory-product-group.js.map +0 -1
- package/dist-server/controllers/operato/get-outbound-order.js +0 -27
- package/dist-server/controllers/operato/get-outbound-order.js.map +0 -1
- package/dist-server/controllers/operato/get-outbound-orders.js +0 -25
- package/dist-server/controllers/operato/get-outbound-orders.js.map +0 -1
- package/dist-server/controllers/operato/index.js +0 -46
- package/dist-server/controllers/operato/index.js.map +0 -1
- package/dist-server/controllers/operato/operato.js +0 -95
- package/dist-server/controllers/operato/operato.js.map +0 -1
- package/dist-server/controllers/operato/platform-action.js +0 -49
- package/dist-server/controllers/operato/platform-action.js.map +0 -1
- package/dist-server/controllers/operato/update-release-order-details.js +0 -21
- package/dist-server/controllers/operato/update-release-order-details.js.map +0 -1
- package/dist-server/entities/fulfillment-center.js +0 -106
- package/dist-server/entities/fulfillment-center.js.map +0 -1
- package/dist-server/entities/index.js +0 -7
- package/dist-server/entities/index.js.map +0 -1
- package/dist-server/graphql/index.js +0 -33
- package/dist-server/graphql/index.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/create-fulfillment-center.js +0 -11
- package/dist-server/graphql/resolvers/fulfillment-center/create-fulfillment-center.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/delete-fulfillment-center.js +0 -12
- package/dist-server/graphql/resolvers/fulfillment-center/delete-fulfillment-center.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/delete-fulfillment-centers.js +0 -15
- package/dist-server/graphql/resolvers/fulfillment-center/delete-fulfillment-centers.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/fulfillment-center.js +0 -15
- package/dist-server/graphql/resolvers/fulfillment-center/fulfillment-center.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/fulfillment-centers.js +0 -19
- package/dist-server/graphql/resolvers/fulfillment-center/fulfillment-centers.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/having-fulfillment-center.js +0 -19
- package/dist-server/graphql/resolvers/fulfillment-center/having-fulfillment-center.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/index.js +0 -38
- package/dist-server/graphql/resolvers/fulfillment-center/index.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/operato/deactivate-operato-center.js +0 -48
- package/dist-server/graphql/resolvers/fulfillment-center/operato/deactivate-operato-center.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/operato/generate-operato-access-token.js +0 -53
- package/dist-server/graphql/resolvers/fulfillment-center/operato/generate-operato-access-token.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/operato/get-operato-auth-url.js +0 -14
- package/dist-server/graphql/resolvers/fulfillment-center/operato/get-operato-auth-url.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/operato/index.js +0 -10
- package/dist-server/graphql/resolvers/fulfillment-center/operato/index.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/operato/refresh-operato-access-token.js +0 -48
- package/dist-server/graphql/resolvers/fulfillment-center/operato/refresh-operato-access-token.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/update-fulfillment-center.js +0 -15
- package/dist-server/graphql/resolvers/fulfillment-center/update-fulfillment-center.js.map +0 -1
- package/dist-server/graphql/resolvers/fulfillment-center/update-multiple-fulfillment-center.js +0 -30
- package/dist-server/graphql/resolvers/fulfillment-center/update-multiple-fulfillment-center.js.map +0 -1
- package/dist-server/graphql/resolvers/index.js +0 -30
- package/dist-server/graphql/resolvers/index.js.map +0 -1
- package/dist-server/graphql/types/fulfillment-center/fulfillment-center-list.js +0 -14
- package/dist-server/graphql/types/fulfillment-center/fulfillment-center-list.js.map +0 -1
- package/dist-server/graphql/types/fulfillment-center/fulfillment-center-patch.js +0 -19
- package/dist-server/graphql/types/fulfillment-center/fulfillment-center-patch.js.map +0 -1
- package/dist-server/graphql/types/fulfillment-center/fulfillment-center.js +0 -25
- package/dist-server/graphql/types/fulfillment-center/fulfillment-center.js.map +0 -1
- package/dist-server/graphql/types/fulfillment-center/index.js +0 -53
- package/dist-server/graphql/types/fulfillment-center/index.js.map +0 -1
- package/dist-server/graphql/types/fulfillment-center/new-fulfillment-center.js +0 -17
- package/dist-server/graphql/types/fulfillment-center/new-fulfillment-center.js.map +0 -1
- package/dist-server/graphql/types/index.js +0 -32
- package/dist-server/graphql/types/index.js.map +0 -1
- package/dist-server/index.js +0 -22
- package/dist-server/index.js.map +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- package/dist-server/routes.js +0 -19
- package/dist-server/routes.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-fulfillment",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.671",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"test": "DEBUG=things-factory:* NODE_ENV=development npx mocha -r ts-node/register ./test/**/*spec.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
28
|
-
"@things-factory/auth-ui": "^4.3.
|
|
29
|
-
"@things-factory/biz-base": "^4.3.
|
|
30
|
-
"@things-factory/context-ui": "^4.3.
|
|
31
|
-
"@things-factory/grist-ui": "^4.3.
|
|
32
|
-
"@things-factory/i18n-base": "^4.3.
|
|
33
|
-
"@things-factory/integration-ui": "^4.3.
|
|
34
|
-
"@things-factory/more-ui": "^4.3.
|
|
35
|
-
"@things-factory/resource-ui": "^4.3.
|
|
36
|
-
"@things-factory/setting-ui": "^4.3.
|
|
37
|
-
"@things-factory/system-ui": "^4.3.
|
|
27
|
+
"@things-factory/apptool-ui": "^4.3.671",
|
|
28
|
+
"@things-factory/auth-ui": "^4.3.671",
|
|
29
|
+
"@things-factory/biz-base": "^4.3.671",
|
|
30
|
+
"@things-factory/context-ui": "^4.3.671",
|
|
31
|
+
"@things-factory/grist-ui": "^4.3.671",
|
|
32
|
+
"@things-factory/i18n-base": "^4.3.671",
|
|
33
|
+
"@things-factory/integration-ui": "^4.3.671",
|
|
34
|
+
"@things-factory/more-ui": "^4.3.671",
|
|
35
|
+
"@things-factory/resource-ui": "^4.3.671",
|
|
36
|
+
"@things-factory/setting-ui": "^4.3.671",
|
|
37
|
+
"@things-factory/system-ui": "^4.3.671",
|
|
38
38
|
"debug": "^4.1.1",
|
|
39
39
|
"node-fetch": "^2.6.0"
|
|
40
40
|
},
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"nock": "^13.0.2",
|
|
49
49
|
"should": "^13.2.3"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ef524cb207378186ec71917d9a8546363d4300b2"
|
|
52
52
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.api = void 0;
|
|
7
|
-
const debug_1 = __importDefault(require("debug"));
|
|
8
|
-
const debug = (0, debug_1.default)('things-factory:integration-fulfillment:fulfillment-api-decorator');
|
|
9
|
-
const NOOP = v => v;
|
|
10
|
-
const api = (target, property, descriptor) => {
|
|
11
|
-
const method = descriptor.value;
|
|
12
|
-
descriptor.value = async function (center, request) {
|
|
13
|
-
const FulfillmentAPI = this;
|
|
14
|
-
var { platform } = center;
|
|
15
|
-
var { action: platformAction, apis } = FulfillmentAPI.getPlatform(platform);
|
|
16
|
-
var m = apis[method.name];
|
|
17
|
-
if (!m) {
|
|
18
|
-
throw Error(`Fulfillment Platform '${platform}' doesn't have API ${method.name}`);
|
|
19
|
-
}
|
|
20
|
-
var { path, method: httpMethod = 'post', denormalize = NOOP, normalize = NOOP, action = platformAction } = m.apply(this, [request]);
|
|
21
|
-
var denormalized = denormalize(request || {});
|
|
22
|
-
debug('request', denormalized);
|
|
23
|
-
var response = await action.apply(this, [
|
|
24
|
-
{ center, method: httpMethod, path, request: denormalized, platformAction }
|
|
25
|
-
]);
|
|
26
|
-
debug('response', response);
|
|
27
|
-
return normalize(response);
|
|
28
|
-
};
|
|
29
|
-
return descriptor;
|
|
30
|
-
};
|
|
31
|
-
exports.api = api;
|
|
32
|
-
//# sourceMappingURL=decorators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../server/controllers/fulfillment-api/decorators.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,kEAAkE,CAAC,CAAA;AAIvF,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAEZ,MAAM,GAAG,GAAG,CAAC,MAAc,EAAE,QAAgB,EAAE,UAAwC,EAAO,EAAE;IACrG,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAA;IAE/B,UAAU,CAAC,KAAK,GAAG,KAAK,WAAW,MAAyB,EAAE,OAAO;QACnE,MAAM,cAAc,GAAG,IAAI,CAAA;QAE3B,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAA;QAEzB,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAE3E,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QACzB,IAAI,CAAC,CAAC,EAAE;YACN,MAAM,KAAK,CAAC,yBAAyB,QAAQ,sBAAsB,MAAM,CAAC,IAAI,EAAE,CAAC,CAAA;SAClF;QAED,IAAI,EACF,IAAI,EACJ,MAAM,EAAE,UAAU,GAAG,MAAM,EAC3B,WAAW,GAAG,IAAI,EAClB,SAAS,GAAG,IAAI,EAChB,MAAM,GAAG,cAAc,EACxB,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;QAE5B,IAAI,YAAY,GAAG,WAAW,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA;QAC7C,KAAK,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;QAE9B,IAAI,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE;YACtC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE;SAC5E,CAAC,CAAA;QAEF,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;QAE3B,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAA;IAC5B,CAAC,CAAA;IAED,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AApCY,QAAA,GAAG,OAoCf"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FulfillmentAPI = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const entities_1 = require("../../entities");
|
|
15
|
-
const decorators_1 = require("./decorators");
|
|
16
|
-
class FulfillmentAPI {
|
|
17
|
-
static registerPlatform(name, action, apis) {
|
|
18
|
-
FulfillmentAPI.platforms[name] = {
|
|
19
|
-
action,
|
|
20
|
-
apis
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
static getPlatform(name) {
|
|
24
|
-
return FulfillmentAPI.platforms[name];
|
|
25
|
-
}
|
|
26
|
-
static async getFulfillmentCenter(id) {
|
|
27
|
-
const repository = (0, typeorm_1.getRepository)(entities_1.FulfillmentCenter);
|
|
28
|
-
// return await repository.find(id)
|
|
29
|
-
return await repository.findOne({
|
|
30
|
-
where: { id },
|
|
31
|
-
relations: ['domain']
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
static echo(center, req) { }
|
|
35
|
-
static getCenterProducts(center, req) { }
|
|
36
|
-
static getInventoryProductGroup(center, req) { }
|
|
37
|
-
static getInventoryProductGroupOpenAPI(center, req) { }
|
|
38
|
-
static getOutboundOrder(center, req) { }
|
|
39
|
-
static getOutboundOrders(center, req) { }
|
|
40
|
-
static getInboundOrder(center, req) { }
|
|
41
|
-
static cancelReleaseOrder(center, req) { }
|
|
42
|
-
static createOutboundOrder(center, req) { }
|
|
43
|
-
static createInboundOrder(center, req) { }
|
|
44
|
-
static createSalesInvoice(center, req) { }
|
|
45
|
-
static updateReleaseGoodDetails(center, req) { }
|
|
46
|
-
}
|
|
47
|
-
FulfillmentAPI.platforms = {};
|
|
48
|
-
__decorate([
|
|
49
|
-
decorators_1.api,
|
|
50
|
-
__metadata("design:type", Function),
|
|
51
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
52
|
-
__metadata("design:returntype", Object)
|
|
53
|
-
], FulfillmentAPI, "echo", null);
|
|
54
|
-
__decorate([
|
|
55
|
-
decorators_1.api,
|
|
56
|
-
__metadata("design:type", Function),
|
|
57
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
58
|
-
__metadata("design:returntype", Object)
|
|
59
|
-
], FulfillmentAPI, "getCenterProducts", null);
|
|
60
|
-
__decorate([
|
|
61
|
-
decorators_1.api,
|
|
62
|
-
__metadata("design:type", Function),
|
|
63
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
64
|
-
__metadata("design:returntype", Object)
|
|
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);
|
|
72
|
-
__decorate([
|
|
73
|
-
decorators_1.api,
|
|
74
|
-
__metadata("design:type", Function),
|
|
75
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
76
|
-
__metadata("design:returntype", Object)
|
|
77
|
-
], FulfillmentAPI, "getOutboundOrder", null);
|
|
78
|
-
__decorate([
|
|
79
|
-
decorators_1.api,
|
|
80
|
-
__metadata("design:type", Function),
|
|
81
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
82
|
-
__metadata("design:returntype", Object)
|
|
83
|
-
], FulfillmentAPI, "getOutboundOrders", null);
|
|
84
|
-
__decorate([
|
|
85
|
-
decorators_1.api,
|
|
86
|
-
__metadata("design:type", Function),
|
|
87
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
88
|
-
__metadata("design:returntype", Object)
|
|
89
|
-
], FulfillmentAPI, "getInboundOrder", null);
|
|
90
|
-
__decorate([
|
|
91
|
-
decorators_1.api,
|
|
92
|
-
__metadata("design:type", Function),
|
|
93
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
94
|
-
__metadata("design:returntype", Object)
|
|
95
|
-
], FulfillmentAPI, "cancelReleaseOrder", null);
|
|
96
|
-
__decorate([
|
|
97
|
-
decorators_1.api,
|
|
98
|
-
__metadata("design:type", Function),
|
|
99
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
100
|
-
__metadata("design:returntype", Object)
|
|
101
|
-
], FulfillmentAPI, "createOutboundOrder", null);
|
|
102
|
-
__decorate([
|
|
103
|
-
decorators_1.api,
|
|
104
|
-
__metadata("design:type", Function),
|
|
105
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
106
|
-
__metadata("design:returntype", Object)
|
|
107
|
-
], FulfillmentAPI, "createInboundOrder", null);
|
|
108
|
-
__decorate([
|
|
109
|
-
decorators_1.api,
|
|
110
|
-
__metadata("design:type", Function),
|
|
111
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
112
|
-
__metadata("design:returntype", Object)
|
|
113
|
-
], FulfillmentAPI, "createSalesInvoice", null);
|
|
114
|
-
__decorate([
|
|
115
|
-
decorators_1.api,
|
|
116
|
-
__metadata("design:type", Function),
|
|
117
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
118
|
-
__metadata("design:returntype", Object)
|
|
119
|
-
], FulfillmentAPI, "updateReleaseGoodDetails", null);
|
|
120
|
-
exports.FulfillmentAPI = FulfillmentAPI;
|
|
121
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/controllers/fulfillment-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuC;AAEvC,6CAAkD;AAClD,6CAAkC;AAElC,MAAa,cAAc;IAGzB,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI;QACxC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG;YAC/B,MAAM;YACN,IAAI;SACL,CAAA;IACH,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAI;QACrB,OAAO,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IACvC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QAClC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,4BAAiB,CAAC,CAAA;QACnD,mCAAmC;QACnC,OAAO,MAAM,UAAU,CAAC,OAAO,CAAC;YAC9B,KAAK,EAAE,EAAE,EAAE,EAAE;YACb,SAAS,EAAE,CAAC,QAAQ,CAAC;SACtB,CAAC,CAAA;IACJ,CAAC;IAGM,AAAP,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGzB,AAAP,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGtC,AAAP,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAG7C,AAAP,MAAM,CAAC,+BAA+B,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGpD,AAAP,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGrC,AAAP,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGtC,AAAP,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGpC,AAAP,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGvC,AAAP,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGxC,AAAP,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGvC,AAAP,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;IAGvC,AAAP,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,IAAQ,CAAC;;AAxD7C,wBAAS,GAAG,EAAE,CAAA;AAuBd;IADN,gBAAG;;;;gCAC4B;AAGzB;IADN,gBAAG;;;;6CACyC;AAGtC;IADN,gBAAG;;;;oDACgD;AAG7C;IADN,gBAAG;;;;2DACuD;AAGpD;IADN,gBAAG;;;;4CACwC;AAGrC;IADN,gBAAG;;;;6CACyC;AAGtC;IADN,gBAAG;;;;2CACuC;AAGpC;IADN,gBAAG;;;;8CAC0C;AAGvC;IADN,gBAAG;;;;+CAC2C;AAGxC;IADN,gBAAG;;;;8CAC0C;AAGvC;IADN,gBAAG;;;;8CAC0C;AAGvC;IADN,gBAAG;;;;oDACgD;AAzDtD,wCA0DC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../server/controllers/fulfillment-api/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./fulfillment-api"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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.cancelReleaseOrder = void 0;
|
|
5
|
-
function cancelReleaseOrder() {
|
|
6
|
-
return {
|
|
7
|
-
method: 'post',
|
|
8
|
-
path: '/unstable/warehouse/{warehouseId}/cancel-release-order',
|
|
9
|
-
denormalize(req) {
|
|
10
|
-
var { customerBizplaceId, releaseOrderId } = req;
|
|
11
|
-
return {
|
|
12
|
-
payload: { releaseOrderId },
|
|
13
|
-
resource: { warehouseId: customerBizplaceId }
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
normalize(res) {
|
|
17
|
-
return res;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
exports.cancelReleaseOrder = cancelReleaseOrder;
|
|
22
|
-
//# sourceMappingURL=cancel-release-order.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-release-order.js","sourceRoot":"","sources":["../../../server/controllers/operato/cancel-release-order.ts"],"names":[],"mappings":";AAAA,2GAA2G;;;AAE3G,SAAgB,kBAAkB;IAChC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,wDAAwD;QAC9D,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,GAAG,CAAA;YAEhD,OAAO;gBACL,OAAO,EAAE,EAAE,cAAc,EAAE;gBAC3B,QAAQ,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;aAC9C,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AAhBD,gDAgBC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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.createInboundOrder = void 0;
|
|
5
|
-
function createInboundOrder() {
|
|
6
|
-
return {
|
|
7
|
-
method: 'post',
|
|
8
|
-
path: '/unstable/warehouse/{warehouseId}/add-inbound-order',
|
|
9
|
-
denormalize(req) {
|
|
10
|
-
var { customerBizplaceId, purchaseOrder } = req;
|
|
11
|
-
return {
|
|
12
|
-
payload: {
|
|
13
|
-
containerNo: purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.containerNo,
|
|
14
|
-
containerSize: purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.containerSize,
|
|
15
|
-
ownTransport: purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.ownTransport,
|
|
16
|
-
crossDocking: false,
|
|
17
|
-
refNo: purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.refNo,
|
|
18
|
-
refNo2: purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.refNo2,
|
|
19
|
-
importCargo: purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.importCargo,
|
|
20
|
-
looseItem: false,
|
|
21
|
-
etaDate: purchaseOrder.etaDate,
|
|
22
|
-
truckNo: purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.truckNo,
|
|
23
|
-
orderProducts: purchaseOrder.orderProducts
|
|
24
|
-
},
|
|
25
|
-
resource: {
|
|
26
|
-
warehouseId: customerBizplaceId
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
normalize(res) {
|
|
31
|
-
return res;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
exports.createInboundOrder = createInboundOrder;
|
|
36
|
-
//# sourceMappingURL=create-inbound-order.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-inbound-order.js","sourceRoot":"","sources":["../../../server/controllers/operato/create-inbound-order.ts"],"names":[],"mappings":";AAAA,2GAA2G;;;AAE3G,SAAgB,kBAAkB;IAChC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,qDAAqD;QAC3D,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,kBAAkB,EAAE,aAAa,EAAE,GAAG,GAAG,CAAA;YAE/C,OAAO;gBACL,OAAO,EAAE;oBACP,WAAW,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW;oBACvC,aAAa,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,aAAa;oBAC3C,YAAY,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY;oBACzC,YAAY,EAAE,KAAK;oBACnB,KAAK,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,KAAK;oBAC3B,MAAM,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM;oBAC7B,WAAW,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW;oBACvC,SAAS,EAAE,KAAK;oBAChB,OAAO,EAAE,aAAa,CAAC,OAAO;oBAC9B,OAAO,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO;oBAC/B,aAAa,EAAE,aAAa,CAAC,aAAa;iBAC3C;gBACD,QAAQ,EAAE;oBACR,WAAW,EAAE,kBAAkB;iBAChC;aACF,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AA9BD,gDA8BC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createOutboundOrder = void 0;
|
|
4
|
-
function createOutboundOrder() {
|
|
5
|
-
return {
|
|
6
|
-
method: 'post',
|
|
7
|
-
path: '/unstable/warehouse/{warehouseId}/add-release-order',
|
|
8
|
-
denormalize(req) {
|
|
9
|
-
var { customerBizplaceId, releaseOrder } = req;
|
|
10
|
-
return {
|
|
11
|
-
payload: Object.assign({}, releaseOrder),
|
|
12
|
-
resource: { warehouseId: customerBizplaceId }
|
|
13
|
-
};
|
|
14
|
-
},
|
|
15
|
-
normalize(res) {
|
|
16
|
-
if (!(res === null || res === void 0 ? void 0 : res.result)) {
|
|
17
|
-
throw new Error(`Error : ${JSON.stringify(res)}`);
|
|
18
|
-
}
|
|
19
|
-
return res.result.addReleaseGood || res.result.createdDraftOrder;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
exports.createOutboundOrder = createOutboundOrder;
|
|
24
|
-
//# sourceMappingURL=create-outbound-order.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-outbound-order.js","sourceRoot":"","sources":["../../../server/controllers/operato/create-outbound-order.ts"],"names":[],"mappings":";;;AAAA,SAAgB,mBAAmB;IACjC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,qDAAqD;QAC3D,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,kBAAkB,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;YAE9C,OAAO;gBACL,OAAO,oBAAO,YAAY,CAAE;gBAC5B,QAAQ,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;aAC9C,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,IAAI,CAAC,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,CAAA,EAAE;gBAChB,MAAM,IAAI,KAAK,CAAC,WAAW,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;aAClD;YAED,OAAO,GAAG,CAAC,MAAM,CAAC,cAAc,IAAI,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAA;QAClE,CAAC;KACF,CAAA;AACH,CAAC;AApBD,kDAoBC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createSalesInvoice = void 0;
|
|
4
|
-
function createSalesInvoice() {
|
|
5
|
-
return {
|
|
6
|
-
method: 'post',
|
|
7
|
-
path: '/unstable/warehouse/{warehouseId}/add-sales-invoice',
|
|
8
|
-
denormalize(req) {
|
|
9
|
-
var { customerBizplaceId, invoice } = req;
|
|
10
|
-
return {
|
|
11
|
-
payload: Object.assign({}, invoice),
|
|
12
|
-
resource: { warehouseId: customerBizplaceId }
|
|
13
|
-
};
|
|
14
|
-
},
|
|
15
|
-
normalize(res) {
|
|
16
|
-
if (!(res === null || res === void 0 ? void 0 : res.result)) {
|
|
17
|
-
throw new Error(`Error : ${JSON.stringify(res)}`);
|
|
18
|
-
}
|
|
19
|
-
return res.result.createInvoice;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
exports.createSalesInvoice = createSalesInvoice;
|
|
24
|
-
//# sourceMappingURL=create-sales-invoice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-sales-invoice.js","sourceRoot":"","sources":["../../../server/controllers/operato/create-sales-invoice.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB;IAChC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,qDAAqD;QAC3D,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;YAEzC,OAAO;gBACL,OAAO,oBAAO,OAAO,CAAE;gBACvB,QAAQ,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;aAC9C,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,IAAI,CAAC,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,CAAA,EAAE;gBAChB,MAAM,IAAI,KAAK,CAAC,WAAW,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;aAClD;YAED,OAAO,GAAG,CAAC,MAAM,CAAC,aAAa,CAAA;QACjC,CAAC;KACF,CAAA;AACH,CAAC;AApBD,gDAoBC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.echo = void 0;
|
|
4
|
-
function echo() {
|
|
5
|
-
return {
|
|
6
|
-
path: '/echo',
|
|
7
|
-
denormalize(req) {
|
|
8
|
-
return Object.assign({}, req);
|
|
9
|
-
},
|
|
10
|
-
normalize(res) {
|
|
11
|
-
return Object.assign({}, res);
|
|
12
|
-
},
|
|
13
|
-
action({ center, method, path, request, platformAction }) {
|
|
14
|
-
return Object.assign({}, request);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
exports.echo = echo;
|
|
19
|
-
//# sourceMappingURL=echo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"echo.js","sourceRoot":"","sources":["../../../server/controllers/operato/echo.ts"],"names":[],"mappings":";;;AAAA,SAAgB,IAAI;IAClB,OAAO;QACL,IAAI,EAAE,OAAO;QACb,WAAW,CAAC,GAAG;YACb,yBAAY,GAAG,EAAE;QACnB,CAAC;QACD,SAAS,CAAC,GAAG;YACX,yBAAY,GAAG,EAAE;QACnB,CAAC;QACD,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE;YACtD,yBAAY,OAAO,EAAE;QACvB,CAAC;KACF,CAAA;AACH,CAAC;AAbD,oBAaC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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.getCenterProducts = void 0;
|
|
5
|
-
function getCenterProducts() {
|
|
6
|
-
return {
|
|
7
|
-
method: 'get',
|
|
8
|
-
path: '/unstable/warehouse/{warehouseId}/get-product-list',
|
|
9
|
-
denormalize(req) {
|
|
10
|
-
var { warehouseId } = req;
|
|
11
|
-
return {
|
|
12
|
-
resource: {
|
|
13
|
-
warehouseId: warehouseId
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
normalize(res) {
|
|
18
|
-
return res;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
exports.getCenterProducts = getCenterProducts;
|
|
23
|
-
//# sourceMappingURL=get-center-products.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-center-products.js","sourceRoot":"","sources":["../../../server/controllers/operato/get-center-products.ts"],"names":[],"mappings":";AAAA,2GAA2G;;;AAE3G,SAAgB,iBAAiB;IAC/B,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,oDAAoD;QAC1D,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,WAAW,EAAE,GAAG,GAAG,CAAA;YAEzB,OAAO;gBACL,QAAQ,EAAE;oBACR,WAAW,EAAE,WAAW;iBACzB;aACF,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AAjBD,8CAiBC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getInboundOrder = void 0;
|
|
4
|
-
function getInboundOrder() {
|
|
5
|
-
return {
|
|
6
|
-
method: 'get',
|
|
7
|
-
path: '/unstable/warehouse/{warehouseId}/get-inbound-order-detail',
|
|
8
|
-
denormalize(req) {
|
|
9
|
-
var { customerBizplaceId, refNo, ganNo } = req;
|
|
10
|
-
let param = {};
|
|
11
|
-
if (ganNo)
|
|
12
|
-
param.ganNo = ganNo;
|
|
13
|
-
if (refNo)
|
|
14
|
-
param.refNo = refNo;
|
|
15
|
-
return {
|
|
16
|
-
resource: { warehouseId: customerBizplaceId },
|
|
17
|
-
payload: Object.assign({}, param)
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
normalize(res) {
|
|
21
|
-
const { arrivalNotice } = res.result;
|
|
22
|
-
return arrivalNotice;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.getInboundOrder = getInboundOrder;
|
|
27
|
-
//# sourceMappingURL=get-inbound-order.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-inbound-order.js","sourceRoot":"","sources":["../../../server/controllers/operato/get-inbound-order.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe;IAC7B,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,4DAA4D;QAClE,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,GAAG,CAAA;YAC9C,IAAI,KAAK,GAAQ,EAAE,CAAA;YAEnB,IAAI,KAAK;gBAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAA;YAC9B,IAAI,KAAK;gBAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAA;YAE9B,OAAO;gBACL,QAAQ,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;gBAC7C,OAAO,oBAAO,KAAK,CAAE;aACtB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,MAAM,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;YACpC,OAAO,aAAa,CAAA;QACtB,CAAC;KACF,CAAA;AACH,CAAC;AArBD,0CAqBC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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.getInventoryProductGroup = void 0;
|
|
5
|
-
function getInventoryProductGroup() {
|
|
6
|
-
return {
|
|
7
|
-
method: 'get',
|
|
8
|
-
path: '/unstable/warehouse/{warehouseId}/get-inventory-product-group',
|
|
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.inventoryProductGroup;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
exports.getInventoryProductGroup = getInventoryProductGroup;
|
|
22
|
-
//# sourceMappingURL=get-inventory-product-group.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-inventory-product-group.js","sourceRoot":"","sources":["../../../server/controllers/operato/get-inventory-product-group.ts"],"names":[],"mappings":";AAAA,2GAA2G;;;AAE3G,SAAgB,wBAAwB;IACtC,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,+DAA+D;QACrE,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,qBAAqB,CAAA;QACzC,CAAC;KACF,CAAA;AACH,CAAC;AAhBD,4DAgBC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getOutboundOrder = void 0;
|
|
4
|
-
function getOutboundOrder() {
|
|
5
|
-
return {
|
|
6
|
-
method: 'get',
|
|
7
|
-
path: '/unstable/warehouse/{warehouseId}/get-release-order-detail',
|
|
8
|
-
denormalize(req) {
|
|
9
|
-
var { customerBizplaceId, refNo, releaseOrderNo } = req;
|
|
10
|
-
let param = {};
|
|
11
|
-
if (releaseOrderNo)
|
|
12
|
-
param.releaseOrderNo = releaseOrderNo;
|
|
13
|
-
if (refNo)
|
|
14
|
-
param.refNo = refNo;
|
|
15
|
-
return {
|
|
16
|
-
resource: { warehouseId: customerBizplaceId },
|
|
17
|
-
payload: Object.assign({}, param)
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
normalize(res) {
|
|
21
|
-
const { releaseGoodDetail } = res.result;
|
|
22
|
-
return releaseGoodDetail;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.getOutboundOrder = getOutboundOrder;
|
|
27
|
-
//# sourceMappingURL=get-outbound-order.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-outbound-order.js","sourceRoot":"","sources":["../../../server/controllers/operato/get-outbound-order.ts"],"names":[],"mappings":";;;AAAA,SAAgB,gBAAgB;IAC9B,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,4DAA4D;QAClE,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,GAAG,CAAA;YACvD,IAAI,KAAK,GAAQ,EAAE,CAAA;YAEnB,IAAI,cAAc;gBAAE,KAAK,CAAC,cAAc,GAAG,cAAc,CAAA;YACzD,IAAI,KAAK;gBAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAA;YAE9B,OAAO;gBACL,QAAQ,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;gBAC7C,OAAO,oBAAO,KAAK,CAAE;aACtB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,MAAM,EAAE,iBAAiB,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;YACxC,OAAO,iBAAiB,CAAA;QAC1B,CAAC;KACF,CAAA;AACH,CAAC;AArBD,4CAqBC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getOutboundOrders = void 0;
|
|
4
|
-
function getOutboundOrders() {
|
|
5
|
-
return {
|
|
6
|
-
method: 'get',
|
|
7
|
-
path: '/unstable/warehouse/{warehouseId}/get-release-order-list',
|
|
8
|
-
denormalize(req) {
|
|
9
|
-
var { customerBizplaceId, refNo } = req;
|
|
10
|
-
let param = {};
|
|
11
|
-
if (refNo)
|
|
12
|
-
param.refNo = refNo;
|
|
13
|
-
return {
|
|
14
|
-
resource: { warehouseId: customerBizplaceId },
|
|
15
|
-
payload: Object.assign({}, param)
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
normalize(res) {
|
|
19
|
-
const { releaseGoods } = res.result;
|
|
20
|
-
return releaseGoods;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
exports.getOutboundOrders = getOutboundOrders;
|
|
25
|
-
//# sourceMappingURL=get-outbound-orders.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-outbound-orders.js","sourceRoot":"","sources":["../../../server/controllers/operato/get-outbound-orders.ts"],"names":[],"mappings":";;;AAAA,SAAgB,iBAAiB;IAC/B,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,0DAA0D;QAChE,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,GAAG,GAAG,CAAA;YACvC,IAAI,KAAK,GAAQ,EAAE,CAAA;YAEnB,IAAI,KAAK;gBAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAA;YAE9B,OAAO;gBACL,QAAQ,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;gBAC7C,OAAO,oBAAO,KAAK,CAAE;aACtB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;YACnC,OAAO,YAAY,CAAA;QACrB,CAAC;KACF,CAAA;AACH,CAAC;AApBD,8CAoBC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
const fulfillment_api_1 = require("../fulfillment-api");
|
|
18
|
-
const cancel_release_order_1 = require("./cancel-release-order");
|
|
19
|
-
const create_inbound_order_1 = require("./create-inbound-order");
|
|
20
|
-
const create_outbound_order_1 = require("./create-outbound-order");
|
|
21
|
-
const create_sales_invoice_1 = require("./create-sales-invoice");
|
|
22
|
-
const echo_1 = require("./echo");
|
|
23
|
-
const get_center_products_1 = require("./get-center-products");
|
|
24
|
-
const get_inbound_order_1 = require("./get-inbound-order");
|
|
25
|
-
const get_inventory_product_group_1 = require("./get-inventory-product-group");
|
|
26
|
-
const get_inventory_product_group_open_api_1 = require("./get-inventory-product-group-open-api");
|
|
27
|
-
const get_outbound_order_1 = require("./get-outbound-order");
|
|
28
|
-
const get_outbound_orders_1 = require("./get-outbound-orders");
|
|
29
|
-
const platform_action_1 = require("./platform-action");
|
|
30
|
-
const update_release_order_details_1 = require("./update-release-order-details");
|
|
31
|
-
__exportStar(require("./operato"), exports);
|
|
32
|
-
fulfillment_api_1.FulfillmentAPI.registerPlatform('operato', platform_action_1.action, {
|
|
33
|
-
echo: echo_1.echo,
|
|
34
|
-
getCenterProducts: get_center_products_1.getCenterProducts,
|
|
35
|
-
getInventoryProductGroup: get_inventory_product_group_1.getInventoryProductGroup,
|
|
36
|
-
getInboundOrder: get_inbound_order_1.getInboundOrder,
|
|
37
|
-
getOutboundOrder: get_outbound_order_1.getOutboundOrder,
|
|
38
|
-
getOutboundOrders: get_outbound_orders_1.getOutboundOrders,
|
|
39
|
-
getInventoryProductGroupOpenAPI: get_inventory_product_group_open_api_1.getInventoryProductGroupOpenAPI,
|
|
40
|
-
createSalesInvoice: create_sales_invoice_1.createSalesInvoice,
|
|
41
|
-
createOutboundOrder: create_outbound_order_1.createOutboundOrder,
|
|
42
|
-
createInboundOrder: create_inbound_order_1.createInboundOrder,
|
|
43
|
-
cancelReleaseOrder: cancel_release_order_1.cancelReleaseOrder,
|
|
44
|
-
updateReleaseGoodDetails: update_release_order_details_1.updateReleaseGoodDetails
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|