@things-factory/routing-base 4.0.22
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/CHANGELOG.md +8 -0
- package/LICENSE.md +21 -0
- package/client/actions/main.js +1 -0
- package/client/bootstrap.js +8 -0
- package/client/index.js +1 -0
- package/client/reducers/main.js +17 -0
- package/client/themes/app-theme.css +59 -0
- package/config/config.development.js +1 -0
- package/config/config.production.js +1 -0
- package/dist-server/controllers/index.js +1 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/index.js +17 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.js +8 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/routes.js +25 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/service/index.js +30 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/operation/index.js +9 -0
- package/dist-server/service/operation/index.js.map +1 -0
- package/dist-server/service/operation/operation-mutation.js +120 -0
- package/dist-server/service/operation/operation-mutation.js.map +1 -0
- package/dist-server/service/operation/operation-query.js +87 -0
- package/dist-server/service/operation/operation-query.js.map +1 -0
- package/dist-server/service/operation/operation-type.js +97 -0
- package/dist-server/service/operation/operation-type.js.map +1 -0
- package/dist-server/service/operation/operation.js +127 -0
- package/dist-server/service/operation/operation.js.map +1 -0
- package/dist-server/service/routing/index.js +9 -0
- package/dist-server/service/routing/index.js.map +1 -0
- package/dist-server/service/routing/routing-mutation.js +120 -0
- package/dist-server/service/routing/routing-mutation.js.map +1 -0
- package/dist-server/service/routing/routing-query.js +232 -0
- package/dist-server/service/routing/routing-query.js.map +1 -0
- package/dist-server/service/routing/routing-type.js +81 -0
- package/dist-server/service/routing/routing-type.js.map +1 -0
- package/dist-server/service/routing/routing.js +107 -0
- package/dist-server/service/routing/routing.js.map +1 -0
- package/dist-server/service/routing-item/index.js +9 -0
- package/dist-server/service/routing-item/index.js.map +1 -0
- package/dist-server/service/routing-item/routing-item-mutation.js +120 -0
- package/dist-server/service/routing-item/routing-item-mutation.js.map +1 -0
- package/dist-server/service/routing-item/routing-item-query.js +88 -0
- package/dist-server/service/routing-item/routing-item-query.js.map +1 -0
- package/dist-server/service/routing-item/routing-item-type.js +107 -0
- package/dist-server/service/routing-item/routing-item-type.js.map +1 -0
- package/dist-server/service/routing-item/routing-item.js +136 -0
- package/dist-server/service/routing-item/routing-item.js.map +1 -0
- package/package.json +30 -0
- package/server/controllers/index.ts +0 -0
- package/server/index.ts +5 -0
- package/server/middlewares/index.ts +3 -0
- package/server/migrations/index.ts +9 -0
- package/server/routes.ts +28 -0
- package/server/service/index.ts +28 -0
- package/server/service/operation/index.ts +6 -0
- package/server/service/operation/operation-mutation.ts +109 -0
- package/server/service/operation/operation-query.ts +43 -0
- package/server/service/operation/operation-type.ts +66 -0
- package/server/service/operation/operation.ts +111 -0
- package/server/service/routing/index.ts +6 -0
- package/server/service/routing/routing-mutation.ts +112 -0
- package/server/service/routing/routing-query.ts +211 -0
- package/server/service/routing/routing-type.ts +48 -0
- package/server/service/routing/routing.ts +88 -0
- package/server/service/routing-item/index.ts +6 -0
- package/server/service/routing-item/routing-item-mutation.ts +119 -0
- package/server/service/routing-item/routing-item-query.ts +61 -0
- package/server/service/routing-item/routing-item-type.ts +67 -0
- package/server/service/routing-item/routing-item.ts +118 -0
- package/things-factory.config.js +5 -0
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
var _a, _b, _c;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Routing = exports.RoutingStatus = void 0;
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const type_graphql_1 = require("type-graphql");
|
|
16
|
+
const shell_1 = require("@things-factory/shell");
|
|
17
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
18
|
+
var RoutingStatus;
|
|
19
|
+
(function (RoutingStatus) {
|
|
20
|
+
RoutingStatus["STATUS_A"] = "STATUS_A";
|
|
21
|
+
RoutingStatus["STATUS_B"] = "STATUS_B";
|
|
22
|
+
})(RoutingStatus = exports.RoutingStatus || (exports.RoutingStatus = {}));
|
|
23
|
+
(0, type_graphql_1.registerEnumType)(RoutingStatus, {
|
|
24
|
+
name: 'RoutingStatus',
|
|
25
|
+
description: 'state enumeration of a routing'
|
|
26
|
+
});
|
|
27
|
+
let Routing = class Routing {
|
|
28
|
+
};
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
31
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Routing.prototype, "id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain, { nullable: false }),
|
|
36
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
37
|
+
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
38
|
+
], Routing.prototype, "domain", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.RelationId)((routing) => routing.domain),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Routing.prototype, "domainId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
45
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Routing.prototype, "name", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({
|
|
50
|
+
nullable: true
|
|
51
|
+
}),
|
|
52
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Routing.prototype, "description", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({
|
|
57
|
+
nullable: true
|
|
58
|
+
}),
|
|
59
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], Routing.prototype, "createdLot", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
nullable: true
|
|
65
|
+
}),
|
|
66
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], Routing.prototype, "active", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
71
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], Routing.prototype, "createdAt", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
76
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], Routing.prototype, "updatedAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
81
|
+
nullable: true
|
|
82
|
+
}),
|
|
83
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
84
|
+
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
85
|
+
], Routing.prototype, "creator", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.RelationId)((routing) => routing.creator),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], Routing.prototype, "creatorId", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
92
|
+
nullable: true
|
|
93
|
+
}),
|
|
94
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
95
|
+
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
96
|
+
], Routing.prototype, "updater", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.RelationId)((routing) => routing.creator),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], Routing.prototype, "updaterId", void 0);
|
|
101
|
+
Routing = __decorate([
|
|
102
|
+
(0, typeorm_1.Entity)(),
|
|
103
|
+
(0, typeorm_1.Index)('ix_routing_0', (routing) => [routing.domain, routing.name], { unique: true }),
|
|
104
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for Routing' })
|
|
105
|
+
], Routing);
|
|
106
|
+
exports.Routing = Routing;
|
|
107
|
+
//# sourceMappingURL=routing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.js","sourceRoot":"","sources":["../../../server/service/routing/routing.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCASgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;A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"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const routing_item_1 = require("./routing-item");
|
|
5
|
+
const routing_item_query_1 = require("./routing-item-query");
|
|
6
|
+
const routing_item_mutation_1 = require("./routing-item-mutation");
|
|
7
|
+
exports.entities = [routing_item_1.RoutingItem];
|
|
8
|
+
exports.resolvers = [routing_item_query_1.RoutingItemQuery, routing_item_mutation_1.RoutingItemMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/routing-item/index.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAC5C,6DAAuD;AACvD,mEAA6D;AAEhD,QAAA,QAAQ,GAAG,CAAC,0BAAW,CAAC,CAAA;AACxB,QAAA,SAAS,GAAG,CAAC,qCAAgB,EAAE,2CAAmB,CAAC,CAAA"}
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RoutingItemMutation = void 0;
|
|
16
|
+
const type_graphql_1 = require("type-graphql");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const routing_item_1 = require("./routing-item");
|
|
19
|
+
const routing_item_type_1 = require("./routing-item-type");
|
|
20
|
+
let RoutingItemMutation = class RoutingItemMutation {
|
|
21
|
+
async createRoutingItem(routingItem, context) {
|
|
22
|
+
const { domain, user, tx } = context.state;
|
|
23
|
+
return await tx.getRepository(routing_item_1.RoutingItem).save(Object.assign(Object.assign({}, routingItem), { domain, creator: user, updater: user }));
|
|
24
|
+
}
|
|
25
|
+
async updateRoutingItem(id, patch, context) {
|
|
26
|
+
const { domain, user, tx } = context.state;
|
|
27
|
+
const repository = tx.getRepository(routing_item_1.RoutingItem);
|
|
28
|
+
const routingItem = await repository.findOne({
|
|
29
|
+
where: { domain, id }
|
|
30
|
+
});
|
|
31
|
+
return await repository.save(Object.assign(Object.assign(Object.assign({}, routingItem), patch), { updater: user }));
|
|
32
|
+
}
|
|
33
|
+
async updateMultipleRoutingItem(patches, context) {
|
|
34
|
+
const { domain, user, tx } = context.state;
|
|
35
|
+
let results = [];
|
|
36
|
+
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
37
|
+
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
38
|
+
const routingItemRepo = tx.getRepository(routing_item_1.RoutingItem);
|
|
39
|
+
if (_createRecords.length > 0) {
|
|
40
|
+
for (let i = 0; i < _createRecords.length; i++) {
|
|
41
|
+
const newRecord = _createRecords[i];
|
|
42
|
+
const result = await routingItemRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
43
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (_updateRecords.length > 0) {
|
|
47
|
+
for (let i = 0; i < _updateRecords.length; i++) {
|
|
48
|
+
const newRecord = _updateRecords[i];
|
|
49
|
+
const routingItem = await routingItemRepo.findOne(newRecord.id);
|
|
50
|
+
const result = await routingItemRepo.save(Object.assign(Object.assign(Object.assign({}, routingItem), newRecord), { updater: user }));
|
|
51
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return results;
|
|
55
|
+
}
|
|
56
|
+
async deleteRoutingItem(id, context) {
|
|
57
|
+
const { domain, tx } = context.state;
|
|
58
|
+
await tx.getRepository(routing_item_1.RoutingItem).delete({ domain, id });
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
async deleteRoutingItems(ids, context) {
|
|
62
|
+
const { domain, tx } = context.state;
|
|
63
|
+
await tx.getRepository(routing_item_1.RoutingItem).delete({
|
|
64
|
+
domain,
|
|
65
|
+
id: (0, typeorm_1.In)(ids)
|
|
66
|
+
});
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
72
|
+
(0, type_graphql_1.Mutation)(returns => routing_item_1.RoutingItem, { description: 'To create new RoutingItem' }),
|
|
73
|
+
__param(0, (0, type_graphql_1.Arg)('routingItem')),
|
|
74
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
75
|
+
__metadata("design:type", Function),
|
|
76
|
+
__metadata("design:paramtypes", [routing_item_type_1.NewRoutingItem, Object]),
|
|
77
|
+
__metadata("design:returntype", Promise)
|
|
78
|
+
], RoutingItemMutation.prototype, "createRoutingItem", null);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
81
|
+
(0, type_graphql_1.Mutation)(returns => routing_item_1.RoutingItem, { description: 'To modify RoutingItem information' }),
|
|
82
|
+
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
83
|
+
__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
84
|
+
__param(2, (0, type_graphql_1.Ctx)()),
|
|
85
|
+
__metadata("design:type", Function),
|
|
86
|
+
__metadata("design:paramtypes", [String, routing_item_type_1.RoutingItemPatch, Object]),
|
|
87
|
+
__metadata("design:returntype", Promise)
|
|
88
|
+
], RoutingItemMutation.prototype, "updateRoutingItem", null);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
91
|
+
(0, type_graphql_1.Mutation)(returns => [routing_item_1.RoutingItem], { description: "To modify multiple RoutingItems' information" }),
|
|
92
|
+
__param(0, (0, type_graphql_1.Arg)('patches', type => [routing_item_type_1.RoutingItemPatch])),
|
|
93
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
94
|
+
__metadata("design:type", Function),
|
|
95
|
+
__metadata("design:paramtypes", [Array, Object]),
|
|
96
|
+
__metadata("design:returntype", Promise)
|
|
97
|
+
], RoutingItemMutation.prototype, "updateMultipleRoutingItem", null);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
100
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete RoutingItem' }),
|
|
101
|
+
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
102
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
103
|
+
__metadata("design:type", Function),
|
|
104
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
105
|
+
__metadata("design:returntype", Promise)
|
|
106
|
+
], RoutingItemMutation.prototype, "deleteRoutingItem", null);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
109
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple routingItems' }),
|
|
110
|
+
__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
111
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
112
|
+
__metadata("design:type", Function),
|
|
113
|
+
__metadata("design:paramtypes", [Array, Object]),
|
|
114
|
+
__metadata("design:returntype", Promise)
|
|
115
|
+
], RoutingItemMutation.prototype, "deleteRoutingItems", null);
|
|
116
|
+
RoutingItemMutation = __decorate([
|
|
117
|
+
(0, type_graphql_1.Resolver)(routing_item_1.RoutingItem)
|
|
118
|
+
], RoutingItemMutation);
|
|
119
|
+
exports.RoutingItemMutation = RoutingItemMutation;
|
|
120
|
+
//# sourceMappingURL=routing-item-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing-item-mutation.js","sourceRoot":"","sources":["../../../server/service/routing-item/routing-item-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAMqB;AACrB,qCAA4B;AAE5B,iDAA4C;AAC5C,2DAG4B;AAG5B,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAG9B,KAAK,CAAC,iBAAiB,CAAqB,WAA2B,EAAS,OAAY;QAC1F,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,0BAAW,CAAC,CAAC,IAAI,iCAC1C,WAAW,KACd,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,iBAAiB,CACV,EAAU,EACP,KAAuB,EAC9B,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,0BAAW,CAAC,CAAA;QAChD,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YAC3C,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;QAEF,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,WAAW,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|
+
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var _a;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RoutingItemQuery = void 0;
|
|
17
|
+
const type_graphql_1 = require("type-graphql");
|
|
18
|
+
const typeorm_1 = require("typeorm");
|
|
19
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
20
|
+
const shell_1 = require("@things-factory/shell");
|
|
21
|
+
const routing_item_1 = require("./routing-item");
|
|
22
|
+
const routing_item_type_1 = require("./routing-item-type");
|
|
23
|
+
let RoutingItemQuery = class RoutingItemQuery {
|
|
24
|
+
async routingItem(routing, context) {
|
|
25
|
+
const { domain } = context.state;
|
|
26
|
+
return await (0, typeorm_1.getRepository)(routing_item_1.RoutingItem).findOne({
|
|
27
|
+
relations: ['routing'],
|
|
28
|
+
where: { domain, routing }
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async routingItems(params, context) {
|
|
32
|
+
const { domain } = context.state;
|
|
33
|
+
const convertedParams = (0, shell_1.convertListParams)(params, domain.id);
|
|
34
|
+
const [items, total] = await (0, typeorm_1.getRepository)(routing_item_1.RoutingItem).findAndCount(Object.assign(Object.assign({}, convertedParams), { relations: ['routing', 'operation'] }));
|
|
35
|
+
return { items, total };
|
|
36
|
+
}
|
|
37
|
+
async domain(routingItem) {
|
|
38
|
+
return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(routingItem.domainId);
|
|
39
|
+
}
|
|
40
|
+
async updater(routingItem) {
|
|
41
|
+
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(routingItem.updaterId);
|
|
42
|
+
}
|
|
43
|
+
async creator(routingItem) {
|
|
44
|
+
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(routingItem.creatorId);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, type_graphql_1.Query)(returns => routing_item_1.RoutingItem, { description: 'To fetch a RoutingItem' }),
|
|
49
|
+
__param(0, (0, type_graphql_1.Arg)('routing')),
|
|
50
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
51
|
+
__metadata("design:type", Function),
|
|
52
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
53
|
+
__metadata("design:returntype", Promise)
|
|
54
|
+
], RoutingItemQuery.prototype, "routingItem", null);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, type_graphql_1.Query)(returns => routing_item_type_1.RoutingItemList, { description: 'To fetch multiple RoutingItems' }),
|
|
57
|
+
__param(0, (0, type_graphql_1.Args)()),
|
|
58
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
59
|
+
__metadata("design:type", Function),
|
|
60
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
|
|
61
|
+
__metadata("design:returntype", Promise)
|
|
62
|
+
], RoutingItemQuery.prototype, "routingItems", null);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
65
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
66
|
+
__metadata("design:type", Function),
|
|
67
|
+
__metadata("design:paramtypes", [routing_item_1.RoutingItem]),
|
|
68
|
+
__metadata("design:returntype", Promise)
|
|
69
|
+
], RoutingItemQuery.prototype, "domain", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
72
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
73
|
+
__metadata("design:type", Function),
|
|
74
|
+
__metadata("design:paramtypes", [routing_item_1.RoutingItem]),
|
|
75
|
+
__metadata("design:returntype", Promise)
|
|
76
|
+
], RoutingItemQuery.prototype, "updater", null);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
79
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
80
|
+
__metadata("design:type", Function),
|
|
81
|
+
__metadata("design:paramtypes", [routing_item_1.RoutingItem]),
|
|
82
|
+
__metadata("design:returntype", Promise)
|
|
83
|
+
], RoutingItemQuery.prototype, "creator", null);
|
|
84
|
+
RoutingItemQuery = __decorate([
|
|
85
|
+
(0, type_graphql_1.Resolver)(routing_item_1.RoutingItem)
|
|
86
|
+
], RoutingItemQuery);
|
|
87
|
+
exports.RoutingItemQuery = RoutingItemQuery;
|
|
88
|
+
//# sourceMappingURL=routing-item-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing-item-query.js","sourceRoot":"","sources":["../../../server/service/routing-item/routing-item-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAQqB;AACrB,qCAAuC;AAEvC,yDAAgD;AAChD,iDAI8B;AAE9B,iDAA4C;AAC5C,2DAAqD;AAGrD,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;IAE3B,KAAK,CAAC,WAAW,CAAiB,OAAe,EAAS,OAAY;QACpE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,uBAAa,EAAC,0BAAW,CAAC,C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AGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,mCAAe,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;IACjE,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;oDAU3C;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAc,0BAAW;;8CAE5C;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAc,0BAAW;;+CAE7C;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAc,0BAAW;;+CAE7C;AArCU,gBAAgB;IAD5B,IAAA,uBAAQ,EAAC,0BAAW,CAAC;GACT,gBAAgB,CAsC5B;AAtCY,4CAAgB"}
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
var _a, _b, _c, _d;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RoutingItemList = exports.RoutingItemPatch = exports.NewRoutingItem = void 0;
|
|
14
|
+
const type_graphql_1 = require("type-graphql");
|
|
15
|
+
const shell_1 = require("@things-factory/shell");
|
|
16
|
+
const routing_item_1 = require("./routing-item");
|
|
17
|
+
let NewRoutingItem = class NewRoutingItem {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
21
|
+
__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
|
|
22
|
+
], NewRoutingItem.prototype, "routing", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], NewRoutingItem.prototype, "rank", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
29
|
+
__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
|
|
30
|
+
], NewRoutingItem.prototype, "operation", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], NewRoutingItem.prototype, "startedTransaction", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], NewRoutingItem.prototype, "isStock", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], NewRoutingItem.prototype, "operatorViewId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], NewRoutingItem.prototype, "active", void 0);
|
|
47
|
+
NewRoutingItem = __decorate([
|
|
48
|
+
(0, type_graphql_1.InputType)()
|
|
49
|
+
], NewRoutingItem);
|
|
50
|
+
exports.NewRoutingItem = NewRoutingItem;
|
|
51
|
+
let RoutingItemPatch = class RoutingItemPatch {
|
|
52
|
+
};
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], RoutingItemPatch.prototype, "id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
59
|
+
__metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
|
|
60
|
+
], RoutingItemPatch.prototype, "routing", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], RoutingItemPatch.prototype, "rank", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
67
|
+
__metadata("design:type", typeof (_d = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _d : Object)
|
|
68
|
+
], RoutingItemPatch.prototype, "operation", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], RoutingItemPatch.prototype, "startedTransaction", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], RoutingItemPatch.prototype, "isStock", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], RoutingItemPatch.prototype, "operatorViewId", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], RoutingItemPatch.prototype, "active", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, type_graphql_1.Field)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], RoutingItemPatch.prototype, "cuFlag", void 0);
|
|
89
|
+
RoutingItemPatch = __decorate([
|
|
90
|
+
(0, type_graphql_1.InputType)()
|
|
91
|
+
], RoutingItemPatch);
|
|
92
|
+
exports.RoutingItemPatch = RoutingItemPatch;
|
|
93
|
+
let RoutingItemList = class RoutingItemList {
|
|
94
|
+
};
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, type_graphql_1.Field)(type => [routing_item_1.RoutingItem]),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], RoutingItemList.prototype, "items", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], RoutingItemList.prototype, "total", void 0);
|
|
103
|
+
RoutingItemList = __decorate([
|
|
104
|
+
(0, type_graphql_1.ObjectType)()
|
|
105
|
+
], RoutingItemList);
|
|
106
|
+
exports.RoutingItemList = RoutingItemList;
|
|
107
|
+
//# sourceMappingURL=routing-item-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing-item-type.js","sourceRoot":"","sources":["../../../server/service/routing-item/routing-item-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAsF;AACtF,iDAAiD;AAEjD,iDAA4C;AAG5C,IAAa,cAAc,GAA3B,MAAa,cAAc;CAqB1B,C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AC;kDACjC,iBAAS,oBAAT,iBAAS;mDAAA;AAGrB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACC;AAG3B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACH;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACV;AAGhB;IADC,IAAA,oBAAK,GAAE;;gDACM;AA1BH,gBAAgB;IAD5B,IAAA,wBAAS,GAAE;GACC,gBAAgB,CA2B5B;AA3BY,4CAAgB;AA8B7B,IAAa,eAAe,GAA5B,MAAa,eAAe;CAM3B,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,0BAAW,CAAC,CAAC;;8CACT;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;8CACN;AALF,eAAe;IAD3B,IAAA,yBAAU,GAAE;GACA,eAAe,CAM3B;AANY,0CAAe"}
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
var _a, _b, _c;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RoutingItem = exports.RoutingItemStatus = void 0;
|
|
14
|
+
const type_graphql_1 = require("type-graphql");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
17
|
+
const shell_1 = require("@things-factory/shell");
|
|
18
|
+
const operation_1 = require("../operation/operation");
|
|
19
|
+
const routing_1 = require("../routing/routing");
|
|
20
|
+
var RoutingItemStatus;
|
|
21
|
+
(function (RoutingItemStatus) {
|
|
22
|
+
RoutingItemStatus["STATUS_A"] = "STATUS_A";
|
|
23
|
+
RoutingItemStatus["STATUS_B"] = "STATUS_B";
|
|
24
|
+
})(RoutingItemStatus = exports.RoutingItemStatus || (exports.RoutingItemStatus = {}));
|
|
25
|
+
(0, type_graphql_1.registerEnumType)(RoutingItemStatus, {
|
|
26
|
+
name: 'RoutingItemStatus',
|
|
27
|
+
description: 'state enumeration of a routingItem'
|
|
28
|
+
});
|
|
29
|
+
let RoutingItem = class RoutingItem {
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
33
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: false }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], RoutingItem.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain, { nullable: false }),
|
|
38
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
39
|
+
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
40
|
+
], RoutingItem.prototype, "domain", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.RelationId)((routingItem) => routingItem.domain),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], RoutingItem.prototype, "domainId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ManyToOne)(type => routing_1.Routing, { nullable: true }),
|
|
47
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
48
|
+
__metadata("design:type", routing_1.Routing)
|
|
49
|
+
], RoutingItem.prototype, "routing", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.RelationId)((routingItem) => routingItem.routing),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], RoutingItem.prototype, "routingId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({
|
|
56
|
+
nullable: false
|
|
57
|
+
}),
|
|
58
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], RoutingItem.prototype, "rank", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ManyToOne)(type => operation_1.Operation, { nullable: true }),
|
|
63
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
64
|
+
__metadata("design:type", operation_1.Operation)
|
|
65
|
+
], RoutingItem.prototype, "operation", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.RelationId)((routingItem) => routingItem.operation),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], RoutingItem.prototype, "operationId", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({
|
|
72
|
+
nullable: true
|
|
73
|
+
}),
|
|
74
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], RoutingItem.prototype, "startedTransaction", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({
|
|
79
|
+
nullable: true
|
|
80
|
+
}),
|
|
81
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
+
__metadata("design:type", Boolean)
|
|
83
|
+
], RoutingItem.prototype, "isStock", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({
|
|
86
|
+
nullable: true
|
|
87
|
+
}),
|
|
88
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], RoutingItem.prototype, "operatorViewId", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({
|
|
93
|
+
nullable: true
|
|
94
|
+
}),
|
|
95
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
96
|
+
__metadata("design:type", Boolean)
|
|
97
|
+
], RoutingItem.prototype, "active", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
100
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
101
|
+
__metadata("design:type", Date)
|
|
102
|
+
], RoutingItem.prototype, "createdAt", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
105
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
106
|
+
__metadata("design:type", Date)
|
|
107
|
+
], RoutingItem.prototype, "updatedAt", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
110
|
+
nullable: true
|
|
111
|
+
}),
|
|
112
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
113
|
+
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
114
|
+
], RoutingItem.prototype, "creator", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.RelationId)((routingItem) => routingItem.creator),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], RoutingItem.prototype, "creatorId", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
121
|
+
nullable: true
|
|
122
|
+
}),
|
|
123
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
124
|
+
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
125
|
+
], RoutingItem.prototype, "updater", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.RelationId)((routingItem) => routingItem.creator),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], RoutingItem.prototype, "updaterId", void 0);
|
|
130
|
+
RoutingItem = __decorate([
|
|
131
|
+
(0, typeorm_1.Entity)(),
|
|
132
|
+
(0, typeorm_1.Index)('ix_routing_item_0', (routingItem) => [routingItem.rank, routingItem.domain], { unique: true }),
|
|
133
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for RoutingItem' })
|
|
134
|
+
], RoutingItem);
|
|
135
|
+
exports.RoutingItem = RoutingItem;
|
|
136
|
+
//# sourceMappingURL=routing-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing-item.js","sourceRoot":"","sources":["../../../server/service/routing-item/routing-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAKqB;AACrB,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,sDAAkD;AAClD,gDAA4C;AAE5C,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;AACvB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AAED,IAAA,+BAAgB,EAAC,iBAAiB,EAAE;IAClC,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,oCAAoC;CAClD,CAAC,CAAA;AAKF,IAAa,WAAW,GAAxB,MAAa,WAAW;CAiFvB,CAAA;AA9EC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EA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AC5C;AAhFP,WAAW;IAHvB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAClH,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;GACzC,WAAW,CAiFvB;AAjFY,kCAAW"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@things-factory/routing-base",
|
|
3
|
+
"version": "4.0.22",
|
|
4
|
+
"main": "dist-server/index.js",
|
|
5
|
+
"browser": "client/index.js",
|
|
6
|
+
"things-factory": true,
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "",
|
|
9
|
+
"description": "Server module that handles Routing",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public",
|
|
12
|
+
"@things-factory:registry": "https://registry.npmjs.org"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/hatiolab/things-factory.git",
|
|
17
|
+
"directory": "packages/routing-base"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc --p tsconfig.json",
|
|
21
|
+
"build:server": "npm run clean:server && tsc",
|
|
22
|
+
"clean:server": "rm -rf dist-server",
|
|
23
|
+
"clean": "npm run clean:server",
|
|
24
|
+
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@things-factory/shell": "^4.0.22"
|
|
28
|
+
},
|
|
29
|
+
"gitHead": "8267638c3bd77dfc8fa9629b490d681c6854e423"
|
|
30
|
+
}
|
|
File without changes
|