@things-factory/routing-base 4.3.591 → 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.
Files changed (43) hide show
  1. package/package.json +5 -5
  2. package/dist-server/controllers/index.js +0 -1
  3. package/dist-server/controllers/index.js.map +0 -1
  4. package/dist-server/index.js +0 -21
  5. package/dist-server/index.js.map +0 -1
  6. package/dist-server/middlewares/index.js +0 -8
  7. package/dist-server/middlewares/index.js.map +0 -1
  8. package/dist-server/migrations/index.js +0 -12
  9. package/dist-server/migrations/index.js.map +0 -1
  10. package/dist-server/routes.js +0 -25
  11. package/dist-server/routes.js.map +0 -1
  12. package/dist-server/service/index.js +0 -46
  13. package/dist-server/service/index.js.map +0 -1
  14. package/dist-server/service/operation/index.js +0 -25
  15. package/dist-server/service/operation/index.js.map +0 -1
  16. package/dist-server/service/operation/operation-mutation.js +0 -159
  17. package/dist-server/service/operation/operation-mutation.js.map +0 -1
  18. package/dist-server/service/operation/operation-query.js +0 -104
  19. package/dist-server/service/operation/operation-query.js.map +0 -1
  20. package/dist-server/service/operation/operation-type.js +0 -107
  21. package/dist-server/service/operation/operation-type.js.map +0 -1
  22. package/dist-server/service/operation/operation.js +0 -131
  23. package/dist-server/service/operation/operation.js.map +0 -1
  24. package/dist-server/service/routing/index.js +0 -25
  25. package/dist-server/service/routing/index.js.map +0 -1
  26. package/dist-server/service/routing/routing-mutation.js +0 -120
  27. package/dist-server/service/routing/routing-mutation.js.map +0 -1
  28. package/dist-server/service/routing/routing-query.js +0 -233
  29. package/dist-server/service/routing/routing-query.js.map +0 -1
  30. package/dist-server/service/routing/routing-type.js +0 -81
  31. package/dist-server/service/routing/routing-type.js.map +0 -1
  32. package/dist-server/service/routing/routing.js +0 -107
  33. package/dist-server/service/routing/routing.js.map +0 -1
  34. package/dist-server/service/routing-item/index.js +0 -25
  35. package/dist-server/service/routing-item/index.js.map +0 -1
  36. package/dist-server/service/routing-item/routing-item-mutation.js +0 -120
  37. package/dist-server/service/routing-item/routing-item-mutation.js.map +0 -1
  38. package/dist-server/service/routing-item/routing-item-query.js +0 -88
  39. package/dist-server/service/routing-item/routing-item-query.js.map +0 -1
  40. package/dist-server/service/routing-item/routing-item-type.js +0 -107
  41. package/dist-server/service/routing-item/routing-item-type.js.map +0 -1
  42. package/dist-server/service/routing-item/routing-item.js +0 -136
  43. package/dist-server/service/routing-item/routing-item.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/routing-base",
3
- "version": "4.3.591",
3
+ "version": "4.3.671",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -23,9 +23,9 @@
23
23
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/attachment-base": "^4.3.591",
27
- "@things-factory/auth-base": "^4.3.591",
28
- "@things-factory/shell": "^4.3.591"
26
+ "@things-factory/attachment-base": "^4.3.671",
27
+ "@things-factory/auth-base": "^4.3.671",
28
+ "@things-factory/shell": "^4.3.671"
29
29
  },
30
- "gitHead": "b8528f316a234ad95d0f285d5ade988b44f1195f"
30
+ "gitHead": "ef524cb207378186ec71917d9a8546363d4300b2"
31
31
  }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/controllers/index.ts"],"names":[],"mappings":""}
@@ -1,21 +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
- require("./routes");
18
- __exportStar(require("./migrations"), exports);
19
- __exportStar(require("./middlewares"), exports);
20
- __exportStar(require("./service"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAiB;AAEjB,+CAA4B;AAC5B,gDAA6B;AAC7B,4CAAyB"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initMiddlewares = void 0;
4
- function initMiddlewares(app) {
5
- /* can add middlewares into app */
6
- }
7
- exports.initMiddlewares = initMiddlewares;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAAC,GAAG;IACjC,kCAAkC;AACpC,CAAC;AAFD,0CAEC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.migrations = void 0;
4
- const glob = require('glob');
5
- const path = require('path');
6
- exports.migrations = [];
7
- glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function (file) {
8
- if (file.indexOf('index.js') !== -1)
9
- return;
10
- exports.migrations = exports.migrations.concat(Object.values(require(path.resolve(file))) || []);
11
- });
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/migrations/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAA;AAE1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAS,IAAI;IACzE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAAE,OAAM;IAC3C,kBAAU,GAAG,kBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC,CAAC,CAAA"}
@@ -1,25 +0,0 @@
1
- const debug = require('debug')('things-factory:routing-base:routes');
2
- process.on('bootstrap-module-global-public-route', (app, globalPublicRouter) => {
3
- /*
4
- * can add global public routes to application (auth not required, tenancy not required)
5
- *
6
- * ex) routes.get('/path', async(context, next) => {})
7
- * ex) routes.post('/path', async(context, next) => {})
8
- */
9
- });
10
- process.on('bootstrap-module-global-private-route', (app, globalPrivateRouter) => {
11
- /*
12
- * can add global private routes to application (auth required, tenancy not required)
13
- */
14
- });
15
- process.on('bootstrap-module-domain-public-route', (app, domainPublicRouter) => {
16
- /*
17
- * can add domain public routes to application (auth not required, tenancy required)
18
- */
19
- });
20
- process.on('bootstrap-module-domain-private-route', (app, domainPrivateRouter) => {
21
- /*
22
- * can add domain private routes to application (auth required, tenancy required)
23
- */
24
- });
25
- //# sourceMappingURL=routes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,oCAAoC,CAAC,CAAA;AAEpE,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;;;;OAKG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA"}
@@ -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
- exports.schema = exports.entities = void 0;
18
- const operation_1 = require("./operation");
19
- const routing_1 = require("./routing");
20
- const routing_item_1 = require("./routing-item");
21
- /* EXPORT ENTITY TYPES */
22
- __exportStar(require("./routing/routing"), exports);
23
- __exportStar(require("./routing-item/routing-item"), exports);
24
- __exportStar(require("./operation/operation"), exports);
25
- /* EXPORT TYPES */
26
- __exportStar(require("./routing/routing-type"), exports);
27
- __exportStar(require("./operation/operation-type"), exports);
28
- __exportStar(require("./routing-item/routing-item-type"), exports);
29
- /* EXPORT MUTAIONS */
30
- __exportStar(require("./routing/routing-mutation"), exports);
31
- __exportStar(require("./operation/operation-mutation"), exports);
32
- __exportStar(require("./routing-item/routing-item-mutation"), exports);
33
- /* EXPORT QUERIES */
34
- __exportStar(require("./routing/routing-query"), exports);
35
- __exportStar(require("./operation/operation-query"), exports);
36
- __exportStar(require("./routing-item/routing-item-query"), exports);
37
- exports.entities = [
38
- /* ENTITIES */
39
- ...routing_1.entities,
40
- ...routing_item_1.entities,
41
- ...operation_1.entities
42
- ];
43
- exports.schema = {
44
- resolverClasses: [...routing_1.resolvers, ...routing_item_1.resolvers, ...operation_1.resolvers]
45
- };
46
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAGoB;AACpB,uCAGkB;AAClB,iDAGuB;AAEvB,yBAAyB;AACzB,oDAAiC;AACjC,8DAA2C;AAC3C,wDAAqC;AAErC,kBAAkB;AAClB,yDAAsC;AACtC,6DAA0C;AAC1C,mEAAgD;AAEhD,qBAAqB;AACrB,6DAA0C;AAC1C,iEAA8C;AAC9C,uEAAoD;AAEpD,oBAAoB;AACpB,0DAAuC;AACvC,8DAA2C;AAC3C,oEAAiD;AAEpC,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,kBAAe;IAClB,GAAG,uBAAmB;IACtB,GAAG,oBAAiB;CACrB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE,CAAC,GAAG,mBAAgB,EAAE,GAAG,wBAAoB,EAAE,GAAG,qBAAkB,CAAC;CACvF,CAAA"}
@@ -1,25 +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
- exports.resolvers = exports.entities = void 0;
18
- const operation_1 = require("./operation");
19
- const operation_mutation_1 = require("./operation-mutation");
20
- const operation_query_1 = require("./operation-query");
21
- exports.entities = [operation_1.Operation];
22
- exports.resolvers = [operation_query_1.OperationQuery, operation_mutation_1.OperationMutation];
23
- __exportStar(require("./operation-query"), exports);
24
- __exportStar(require("./operation-mutation"), exports);
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/operation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAuC;AACvC,6DAAwD;AACxD,uDAAkD;AAErC,QAAA,QAAQ,GAAG,CAAC,qBAAS,CAAC,CAAA;AACtB,QAAA,SAAS,GAAG,CAAC,gCAAc,EAAE,sCAAiB,CAAC,CAAA;AAE5D,oDAAiC;AACjC,uDAAoC"}
@@ -1,159 +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
- 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.OperationMutation = void 0;
16
- const type_graphql_1 = require("type-graphql");
17
- const typeorm_1 = require("typeorm");
18
- const attachment_base_1 = require("@things-factory/attachment-base");
19
- const operation_1 = require("./operation");
20
- const operation_type_1 = require("./operation-type");
21
- let OperationMutation = class OperationMutation {
22
- async createOperation(operation, context) {
23
- const { domain, user, tx } = context.state;
24
- const result = await tx.getRepository(operation_1.Operation).save(Object.assign(Object.assign({}, operation), { domain, creator: user, updater: user }));
25
- if (operation.thumbnail) {
26
- await (0, attachment_base_1.createAttachment)(null, {
27
- attachment: {
28
- file: operation.thumbnail,
29
- refBy: result.id
30
- }
31
- }, context);
32
- }
33
- return result;
34
- }
35
- async updateOperation(id, patch, context) {
36
- const { domain, user, tx } = context.state;
37
- const repository = tx.getRepository(operation_1.Operation);
38
- const operation = await repository.findOne({
39
- where: { domain, id }
40
- });
41
- const result = await repository.save(Object.assign(Object.assign(Object.assign({}, operation), patch), { updater: user }));
42
- if (patch.thumbnail) {
43
- await (0, attachment_base_1.deleteAttachmentsByRef)(null, [operation.id], context);
44
- await (0, attachment_base_1.createAttachment)(null, {
45
- attachment: {
46
- file: patch.thumbnail,
47
- refBy: operation.id
48
- }
49
- }, context);
50
- }
51
- return result;
52
- }
53
- async updateMultipleOperation(patches, context) {
54
- const { domain, user, tx } = context.state;
55
- let results = [];
56
- const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
57
- const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
58
- const operationRepo = tx.getRepository(operation_1.Operation);
59
- if (_createRecords.length > 0) {
60
- for (let i = 0; i < _createRecords.length; i++) {
61
- const newRecord = _createRecords[i];
62
- const result = await operationRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
63
- if (newRecord.thumbnail) {
64
- await (0, attachment_base_1.createAttachment)(null, {
65
- attachment: {
66
- file: newRecord.thumbnail,
67
- refBy: result.id
68
- }
69
- }, context);
70
- }
71
- results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
72
- }
73
- }
74
- if (_updateRecords.length > 0) {
75
- for (let i = 0; i < _updateRecords.length; i++) {
76
- const newRecord = _updateRecords[i];
77
- const operation = await operationRepo.findOne(newRecord.id);
78
- const result = await operationRepo.save(Object.assign(Object.assign(Object.assign({}, operation), newRecord), { updater: user }));
79
- if (newRecord.thumbnail) {
80
- await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: [operation.id] }, context);
81
- await (0, attachment_base_1.createAttachment)(null, {
82
- attachment: {
83
- file: newRecord.thumbnail,
84
- refBy: operation.id
85
- }
86
- }, context);
87
- }
88
- results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
89
- }
90
- }
91
- return results;
92
- }
93
- async deleteOperation(id, context) {
94
- const { domain, tx } = context.state;
95
- await tx.getRepository(operation_1.Operation).delete({ domain, id });
96
- await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: [id] }, context);
97
- return true;
98
- }
99
- async deleteOperations(ids, context) {
100
- const { domain, tx } = context.state;
101
- await tx.getRepository(operation_1.Operation).delete({
102
- domain,
103
- id: (0, typeorm_1.In)(ids)
104
- });
105
- await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: ids }, context);
106
- return true;
107
- }
108
- };
109
- __decorate([
110
- (0, type_graphql_1.Directive)('@transaction'),
111
- (0, type_graphql_1.Mutation)(returns => operation_1.Operation, { description: 'To create new Operation' }),
112
- __param(0, (0, type_graphql_1.Arg)('operation')),
113
- __param(1, (0, type_graphql_1.Ctx)()),
114
- __metadata("design:type", Function),
115
- __metadata("design:paramtypes", [operation_type_1.NewOperation, Object]),
116
- __metadata("design:returntype", Promise)
117
- ], OperationMutation.prototype, "createOperation", null);
118
- __decorate([
119
- (0, type_graphql_1.Directive)('@transaction'),
120
- (0, type_graphql_1.Mutation)(returns => operation_1.Operation, { description: 'To modify Operation information' }),
121
- __param(0, (0, type_graphql_1.Arg)('id')),
122
- __param(1, (0, type_graphql_1.Arg)('patch')),
123
- __param(2, (0, type_graphql_1.Ctx)()),
124
- __metadata("design:type", Function),
125
- __metadata("design:paramtypes", [String, operation_type_1.OperationPatch, Object]),
126
- __metadata("design:returntype", Promise)
127
- ], OperationMutation.prototype, "updateOperation", null);
128
- __decorate([
129
- (0, type_graphql_1.Directive)('@transaction'),
130
- (0, type_graphql_1.Mutation)(returns => [operation_1.Operation], { description: "To modify multiple Operations' information" }),
131
- __param(0, (0, type_graphql_1.Arg)('patches', type => [operation_type_1.OperationPatch])),
132
- __param(1, (0, type_graphql_1.Ctx)()),
133
- __metadata("design:type", Function),
134
- __metadata("design:paramtypes", [Array, Object]),
135
- __metadata("design:returntype", Promise)
136
- ], OperationMutation.prototype, "updateMultipleOperation", null);
137
- __decorate([
138
- (0, type_graphql_1.Directive)('@transaction'),
139
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete Operation' }),
140
- __param(0, (0, type_graphql_1.Arg)('id')),
141
- __param(1, (0, type_graphql_1.Ctx)()),
142
- __metadata("design:type", Function),
143
- __metadata("design:paramtypes", [String, Object]),
144
- __metadata("design:returntype", Promise)
145
- ], OperationMutation.prototype, "deleteOperation", null);
146
- __decorate([
147
- (0, type_graphql_1.Directive)('@transaction'),
148
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple operations' }),
149
- __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
150
- __param(1, (0, type_graphql_1.Ctx)()),
151
- __metadata("design:type", Function),
152
- __metadata("design:paramtypes", [Array, Object]),
153
- __metadata("design:returntype", Promise)
154
- ], OperationMutation.prototype, "deleteOperations", null);
155
- OperationMutation = __decorate([
156
- (0, type_graphql_1.Resolver)(operation_1.Operation)
157
- ], OperationMutation);
158
- exports.OperationMutation = OperationMutation;
159
- //# sourceMappingURL=operation-mutation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operation-mutation.js","sourceRoot":"","sources":["../../../server/service/operation/operation-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,qEAA0F;AAE1F,2CAAuC;AACvC,qDAA+D;AAGxD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAGtB,AAAN,KAAK,CAAC,eAAe,CAAmB,SAAuB,EAAS,OAAY;QAClF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,qBAAS,CAAC,CAAC,IAAI,iCAChD,SAAS,KACZ,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;QAEF,IAAI,SAAS,CAAC,SAAS,EAAE;YACvB,MAAM,IAAA,kCAAgB,EACpB,IAAI,EACJ;gBACE,UAAU,EAAE;oBACV,IAAI,EAAE,SAAS,CAAC,SAAS;oBACzB,KAAK,EAAE,MAAM,CAAC,EAAE;iBACjB;aACF,EACD,OAAO,CACR,CAAA;SACF;QAED,OAAO,MAAM,CAAA;IACf,CAAC;IAIK,AAAN,KAAK,CAAC,eAAe,CACR,EAAU,EACP,KAAqB,EAC5B,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,qBAAS,CAAC,CAAA;QAC9C,MAAM,SAAS,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YACzC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;QAEF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,IAAI,+CAC/B,SAAS,GACT,KAAK,KACR,OAAO,EAAE,IAAI,IACb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BAAG,GAAE,CAAA;;6CADe,+BAAc;;wDA+BpC;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,qBAAS,CAAC,EAAE,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;IAE7F,WAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,+BAAc,CAAC,CAAC,CAAA;IACxC,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;gEAmEP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAC9C,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;wDAOlD;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IACvD,WAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;yDAWzE;AAnKU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,iBAAiB,CAoK7B;AApKY,8CAAiB"}
@@ -1,104 +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
- 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.OperationQuery = void 0;
17
- const type_graphql_1 = require("type-graphql");
18
- const typeorm_1 = require("typeorm");
19
- const attachment_base_1 = require("@things-factory/attachment-base");
20
- const auth_base_1 = require("@things-factory/auth-base");
21
- const shell_1 = require("@things-factory/shell");
22
- const operation_1 = require("./operation");
23
- const operation_type_1 = require("./operation-type");
24
- let OperationQuery = class OperationQuery {
25
- async operation(id, context) {
26
- const { domain } = context.state;
27
- return await (0, typeorm_1.getRepository)(operation_1.Operation).findOne({
28
- where: { domain, id }
29
- });
30
- }
31
- async operations(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)(operation_1.Operation).findAndCount(convertedParams);
35
- return { items, total };
36
- }
37
- async domain(operation) {
38
- return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(operation.domainId);
39
- }
40
- async updater(operation) {
41
- return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(operation.updaterId);
42
- }
43
- async creator(operation) {
44
- return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(operation.creatorId);
45
- }
46
- async thumbnail(operation) {
47
- const attachment = await (0, typeorm_1.getRepository)(attachment_base_1.Attachment).findOne({
48
- where: {
49
- domain: operation.domainId,
50
- refBy: operation.id
51
- }
52
- });
53
- return attachment === null || attachment === void 0 ? void 0 : attachment.fullpath;
54
- }
55
- };
56
- __decorate([
57
- (0, type_graphql_1.Query)(returns => operation_1.Operation, { description: 'To fetch a Operation' }),
58
- __param(0, (0, type_graphql_1.Arg)('id')),
59
- __param(1, (0, type_graphql_1.Ctx)()),
60
- __metadata("design:type", Function),
61
- __metadata("design:paramtypes", [String, Object]),
62
- __metadata("design:returntype", Promise)
63
- ], OperationQuery.prototype, "operation", null);
64
- __decorate([
65
- (0, type_graphql_1.Query)(returns => operation_type_1.OperationList, { description: 'To fetch multiple Operations' }),
66
- __param(0, (0, type_graphql_1.Args)()),
67
- __param(1, (0, type_graphql_1.Ctx)()),
68
- __metadata("design:type", Function),
69
- __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
70
- __metadata("design:returntype", Promise)
71
- ], OperationQuery.prototype, "operations", null);
72
- __decorate([
73
- (0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
74
- __param(0, (0, type_graphql_1.Root)()),
75
- __metadata("design:type", Function),
76
- __metadata("design:paramtypes", [operation_1.Operation]),
77
- __metadata("design:returntype", Promise)
78
- ], OperationQuery.prototype, "domain", null);
79
- __decorate([
80
- (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
81
- __param(0, (0, type_graphql_1.Root)()),
82
- __metadata("design:type", Function),
83
- __metadata("design:paramtypes", [operation_1.Operation]),
84
- __metadata("design:returntype", Promise)
85
- ], OperationQuery.prototype, "updater", null);
86
- __decorate([
87
- (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
88
- __param(0, (0, type_graphql_1.Root)()),
89
- __metadata("design:type", Function),
90
- __metadata("design:paramtypes", [operation_1.Operation]),
91
- __metadata("design:returntype", Promise)
92
- ], OperationQuery.prototype, "creator", null);
93
- __decorate([
94
- (0, type_graphql_1.FieldResolver)(type => String),
95
- __param(0, (0, type_graphql_1.Root)()),
96
- __metadata("design:type", Function),
97
- __metadata("design:paramtypes", [operation_1.Operation]),
98
- __metadata("design:returntype", Promise)
99
- ], OperationQuery.prototype, "thumbnail", null);
100
- OperationQuery = __decorate([
101
- (0, type_graphql_1.Resolver)(operation_1.Operation)
102
- ], OperationQuery);
103
- exports.OperationQuery = OperationQuery;
104
- //# sourceMappingURL=operation-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operation-query.js","sourceRoot":"","sources":["../../../server/service/operation/operation-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAuC;AAEvC,qEAA4D;AAC5D,yDAAgD;AAChD,iDAA4E;AAE5E,2CAAuC;AACvC,qDAAgD;AAGzC,IAAM,cAAc,GAApB,MAAM,cAAc;IAEnB,AAAN,KAAK,CAAC,SAAS,CAAY,EAAU,EAAS,OAAY;QACxD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,uBAAa,EAAC,qBAAS,CAAC,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAS,MAAiB,EAAS,OAAY;QAC7D,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAA;QAC5D,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,IAAA,uBAAa,EAAC,qBAAS,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;QAEnF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,SAAoB;QACvC,OAAO,MAAM,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;IAChE,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,SAAoB;QACxC,OAAO,MAAM,IAA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A;;qCAAY,qBAAS;;6CAEzC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAY,qBAAS;;6CAEzC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAY,qBAAS;;+CAS3C;AA7CU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,cAAc,CA8C1B;AA9CY,wCAAc"}
@@ -1,107 +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
- var _a, _b;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.OperationList = exports.OperationPatch = exports.NewOperation = void 0;
14
- const graphql_upload_1 = require("graphql-upload");
15
- const type_graphql_1 = require("type-graphql");
16
- const operation_1 = require("./operation");
17
- let NewOperation = class NewOperation {
18
- };
19
- __decorate([
20
- (0, type_graphql_1.Field)({ nullable: false }),
21
- __metadata("design:type", String)
22
- ], NewOperation.prototype, "name", void 0);
23
- __decorate([
24
- (0, type_graphql_1.Field)({ nullable: true }),
25
- __metadata("design:type", String)
26
- ], NewOperation.prototype, "description", void 0);
27
- __decorate([
28
- (0, type_graphql_1.Field)({ nullable: true }),
29
- __metadata("design:type", String)
30
- ], NewOperation.prototype, "type", void 0);
31
- __decorate([
32
- (0, type_graphql_1.Field)({ nullable: true }),
33
- __metadata("design:type", String)
34
- ], NewOperation.prototype, "operationStdChart", void 0);
35
- __decorate([
36
- (0, type_graphql_1.Field)({ nullable: true }),
37
- __metadata("design:type", String)
38
- ], NewOperation.prototype, "operationStdTime", void 0);
39
- __decorate([
40
- (0, type_graphql_1.Field)({ nullable: true }),
41
- __metadata("design:type", Boolean)
42
- ], NewOperation.prototype, "active", void 0);
43
- __decorate([
44
- (0, type_graphql_1.Field)(type => graphql_upload_1.GraphQLUpload, { nullable: true }),
45
- __metadata("design:type", typeof (_a = typeof graphql_upload_1.FileUpload !== "undefined" && graphql_upload_1.FileUpload) === "function" ? _a : Object)
46
- ], NewOperation.prototype, "thumbnail", void 0);
47
- NewOperation = __decorate([
48
- (0, type_graphql_1.InputType)()
49
- ], NewOperation);
50
- exports.NewOperation = NewOperation;
51
- let OperationPatch = class OperationPatch {
52
- };
53
- __decorate([
54
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
55
- __metadata("design:type", String)
56
- ], OperationPatch.prototype, "id", void 0);
57
- __decorate([
58
- (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", String)
60
- ], OperationPatch.prototype, "name", void 0);
61
- __decorate([
62
- (0, type_graphql_1.Field)({ nullable: true }),
63
- __metadata("design:type", String)
64
- ], OperationPatch.prototype, "description", void 0);
65
- __decorate([
66
- (0, type_graphql_1.Field)({ nullable: true }),
67
- __metadata("design:type", String)
68
- ], OperationPatch.prototype, "type", void 0);
69
- __decorate([
70
- (0, type_graphql_1.Field)({ nullable: true }),
71
- __metadata("design:type", String)
72
- ], OperationPatch.prototype, "operationStdChart", void 0);
73
- __decorate([
74
- (0, type_graphql_1.Field)({ nullable: true }),
75
- __metadata("design:type", String)
76
- ], OperationPatch.prototype, "operationStdTime", void 0);
77
- __decorate([
78
- (0, type_graphql_1.Field)({ nullable: true }),
79
- __metadata("design:type", Boolean)
80
- ], OperationPatch.prototype, "active", void 0);
81
- __decorate([
82
- (0, type_graphql_1.Field)(type => graphql_upload_1.GraphQLUpload, { nullable: true }),
83
- __metadata("design:type", typeof (_b = typeof graphql_upload_1.FileUpload !== "undefined" && graphql_upload_1.FileUpload) === "function" ? _b : Object)
84
- ], OperationPatch.prototype, "thumbnail", void 0);
85
- __decorate([
86
- (0, type_graphql_1.Field)(),
87
- __metadata("design:type", String)
88
- ], OperationPatch.prototype, "cuFlag", void 0);
89
- OperationPatch = __decorate([
90
- (0, type_graphql_1.InputType)()
91
- ], OperationPatch);
92
- exports.OperationPatch = OperationPatch;
93
- let OperationList = class OperationList {
94
- };
95
- __decorate([
96
- (0, type_graphql_1.Field)(type => [operation_1.Operation]),
97
- __metadata("design:type", Array)
98
- ], OperationList.prototype, "items", void 0);
99
- __decorate([
100
- (0, type_graphql_1.Field)(type => type_graphql_1.Int),
101
- __metadata("design:type", Number)
102
- ], OperationList.prototype, "total", void 0);
103
- OperationList = __decorate([
104
- (0, type_graphql_1.ObjectType)()
105
- ], OperationList);
106
- exports.OperationList = OperationList;
107
- //# sourceMappingURL=operation-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operation-type.js","sourceRoot":"","sources":["../../../server/service/operation/operation-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,+CAAoE;AAEpE,2CAAuC;AAGhC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAqBxB,CAAA;AApBC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CACf;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACN;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,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