@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.
Files changed (79) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +21 -0
  3. package/client/actions/main.js +1 -0
  4. package/client/bootstrap.js +8 -0
  5. package/client/index.js +1 -0
  6. package/client/reducers/main.js +17 -0
  7. package/client/themes/app-theme.css +59 -0
  8. package/config/config.development.js +1 -0
  9. package/config/config.production.js +1 -0
  10. package/dist-server/controllers/index.js +1 -0
  11. package/dist-server/controllers/index.js.map +1 -0
  12. package/dist-server/index.js +17 -0
  13. package/dist-server/index.js.map +1 -0
  14. package/dist-server/middlewares/index.js +8 -0
  15. package/dist-server/middlewares/index.js.map +1 -0
  16. package/dist-server/migrations/index.js +12 -0
  17. package/dist-server/migrations/index.js.map +1 -0
  18. package/dist-server/routes.js +25 -0
  19. package/dist-server/routes.js.map +1 -0
  20. package/dist-server/service/index.js +30 -0
  21. package/dist-server/service/index.js.map +1 -0
  22. package/dist-server/service/operation/index.js +9 -0
  23. package/dist-server/service/operation/index.js.map +1 -0
  24. package/dist-server/service/operation/operation-mutation.js +120 -0
  25. package/dist-server/service/operation/operation-mutation.js.map +1 -0
  26. package/dist-server/service/operation/operation-query.js +87 -0
  27. package/dist-server/service/operation/operation-query.js.map +1 -0
  28. package/dist-server/service/operation/operation-type.js +97 -0
  29. package/dist-server/service/operation/operation-type.js.map +1 -0
  30. package/dist-server/service/operation/operation.js +127 -0
  31. package/dist-server/service/operation/operation.js.map +1 -0
  32. package/dist-server/service/routing/index.js +9 -0
  33. package/dist-server/service/routing/index.js.map +1 -0
  34. package/dist-server/service/routing/routing-mutation.js +120 -0
  35. package/dist-server/service/routing/routing-mutation.js.map +1 -0
  36. package/dist-server/service/routing/routing-query.js +232 -0
  37. package/dist-server/service/routing/routing-query.js.map +1 -0
  38. package/dist-server/service/routing/routing-type.js +81 -0
  39. package/dist-server/service/routing/routing-type.js.map +1 -0
  40. package/dist-server/service/routing/routing.js +107 -0
  41. package/dist-server/service/routing/routing.js.map +1 -0
  42. package/dist-server/service/routing-item/index.js +9 -0
  43. package/dist-server/service/routing-item/index.js.map +1 -0
  44. package/dist-server/service/routing-item/routing-item-mutation.js +120 -0
  45. package/dist-server/service/routing-item/routing-item-mutation.js.map +1 -0
  46. package/dist-server/service/routing-item/routing-item-query.js +88 -0
  47. package/dist-server/service/routing-item/routing-item-query.js.map +1 -0
  48. package/dist-server/service/routing-item/routing-item-type.js +107 -0
  49. package/dist-server/service/routing-item/routing-item-type.js.map +1 -0
  50. package/dist-server/service/routing-item/routing-item.js +136 -0
  51. package/dist-server/service/routing-item/routing-item.js.map +1 -0
  52. package/package.json +30 -0
  53. package/server/controllers/index.ts +0 -0
  54. package/server/index.ts +5 -0
  55. package/server/middlewares/index.ts +3 -0
  56. package/server/migrations/index.ts +9 -0
  57. package/server/routes.ts +28 -0
  58. package/server/service/index.ts +28 -0
  59. package/server/service/operation/index.ts +6 -0
  60. package/server/service/operation/operation-mutation.ts +109 -0
  61. package/server/service/operation/operation-query.ts +43 -0
  62. package/server/service/operation/operation-type.ts +66 -0
  63. package/server/service/operation/operation.ts +111 -0
  64. package/server/service/routing/index.ts +6 -0
  65. package/server/service/routing/routing-mutation.ts +112 -0
  66. package/server/service/routing/routing-query.ts +211 -0
  67. package/server/service/routing/routing-type.ts +48 -0
  68. package/server/service/routing/routing.ts +88 -0
  69. package/server/service/routing-item/index.ts +6 -0
  70. package/server/service/routing-item/routing-item-mutation.ts +119 -0
  71. package/server/service/routing-item/routing-item-query.ts +61 -0
  72. package/server/service/routing-item/routing-item-type.ts +67 -0
  73. package/server/service/routing-item/routing-item.ts +118 -0
  74. package/things-factory.config.js +5 -0
  75. package/translations/en.json +1 -0
  76. package/translations/ko.json +1 -0
  77. package/translations/ms.json +1 -0
  78. package/translations/zh.json +1 -0
  79. package/tsconfig.json +9 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ <!-- ## [Unreleased] -->
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Hatiolab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ export const UPDATE_ROUTING_BASE = 'UPDATE_ROUTING_BASE'
@@ -0,0 +1,8 @@
1
+ import { store } from '@things-factory/shell'
2
+ import routingBase from './reducers/main'
3
+
4
+ export default function bootstrap() {
5
+ store.addReducers({
6
+ routingBase
7
+ })
8
+ }
@@ -0,0 +1 @@
1
+ export * from './actions/main'
@@ -0,0 +1,17 @@
1
+ import { UPDATE_ROUTING_BASE } from '../actions/main'
2
+
3
+ const INITIAL_STATE = {
4
+ routingBase: 'ABC'
5
+ }
6
+
7
+ const routingBase = (state = INITIAL_STATE, action) => {
8
+ switch (action.type) {
9
+ case UPDATE_ROUTING_BASE:
10
+ return { ...state }
11
+
12
+ default:
13
+ return state
14
+ }
15
+ }
16
+
17
+ export default routingBase
@@ -0,0 +1,59 @@
1
+ body {
2
+ /* theme color */
3
+ --primary-color: #22a6a7;
4
+ --secondary-color: #394e64;
5
+ --focus-color: #fff;
6
+ --primary-background-color: var(--secondary-color);
7
+ --secondary-background-color: #283644;
8
+ --main-section-background-color: #f4f7fb;
9
+
10
+ --focus-background-color: var(--primary-color);
11
+ --primary-text-color: #111;
12
+ --secondary-text-color: #017e7f;
13
+
14
+ --opacity-dark-color: rgba(0, 0, 0, 0.4);
15
+ --opacity-light-color: rgba(255, 255, 255, 0.8);
16
+
17
+ /* status color */
18
+ --status-success-color: #35a24a;
19
+ --status-warning-color: #ee8d03;
20
+ --status-danger-color: #d14946;
21
+ --status-info-color: #398ace;
22
+
23
+ /* common style */
24
+ --border-radius: 4px;
25
+ --border-dark-color: 1px solid rgba(0, 0, 0, 0.15);
26
+ --border-light-color: 1px solid rgba(255, 255, 255, 0.3);
27
+
28
+ --box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.1);
29
+
30
+ --theme-font: 'Noto', Helvetica;
31
+
32
+ --margin-default: 9px;
33
+ --margin-narrow: 4px;
34
+ --margin-wide: 15px;
35
+
36
+ --scrollbar-thumb-color: rgba(57, 78, 100, 0.5);
37
+ --scrollbar-thumb-hover-color: var(--primary-color);
38
+
39
+ /* app layout style */
40
+ --app-grid-template-area: 'header header header' 'nav main aside' 'nav footer aside';
41
+
42
+ /* subtitle style */
43
+ --subtitle-padding: 12px 5px 3px 5px;
44
+ --subtitle-font: bold 14px/18px var(--theme-font);
45
+ --subtitle-text-color: var(--primary-color);
46
+ --subtitle-border-bottom: 1px solid var(--primary-color);
47
+
48
+ /* icon style */
49
+ --icon-tiny-size: 24px;
50
+ --icon-default-size: 36px;
51
+ --icon-big-size: 48px;
52
+ --icon-default-color: #fff;
53
+
54
+ /* material design component themes */
55
+ --mdc-theme-on-primary: white;
56
+ --mdc-theme-primary: var(--primary-color);
57
+ --mdc-theme-on-secondary: white;
58
+ --mdc-theme-secondary: var(--primary-color);
59
+ }
@@ -0,0 +1 @@
1
+ module.exports = {}
@@ -0,0 +1 @@
1
+ module.exports = {}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/controllers/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ require("./routes");
14
+ __exportStar(require("./migrations"), exports);
15
+ __exportStar(require("./middlewares"), exports);
16
+ __exportStar(require("./service"), exports);
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oBAAiB;AAEjB,+CAA4B;AAC5B,gDAA6B;AAC7B,4CAAyB"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,25 @@
1
+ const debug = require('debug')('operato: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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,6BAA6B,CAAC,CAAA;AAE7D,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"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.schema = exports.entities = void 0;
14
+ const operation_1 = require("./operation");
15
+ const routing_1 = require("./routing");
16
+ const routing_item_1 = require("./routing-item");
17
+ /* EXPORT ENTITY TYPES */
18
+ __exportStar(require("./routing/routing"), exports);
19
+ __exportStar(require("./routing-item/routing-item"), exports);
20
+ __exportStar(require("./operation/operation"), exports);
21
+ exports.entities = [
22
+ /* ENTITIES */
23
+ ...routing_1.entities,
24
+ ...routing_item_1.entities,
25
+ ...operation_1.entities
26
+ ];
27
+ exports.schema = {
28
+ resolverClasses: [...routing_1.resolvers, ...routing_item_1.resolvers, ...operation_1.resolvers]
29
+ };
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
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;AAExB,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"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const operation_1 = require("./operation");
5
+ const operation_query_1 = require("./operation-query");
6
+ const operation_mutation_1 = require("./operation-mutation");
7
+ exports.entities = [operation_1.Operation];
8
+ exports.resolvers = [operation_query_1.OperationQuery, operation_mutation_1.OperationMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/operation/index.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,uDAAkD;AAClD,6DAAwD;AAE3C,QAAA,QAAQ,GAAG,CAAC,qBAAS,CAAC,CAAA;AACtB,QAAA,SAAS,GAAG,CAAC,gCAAc,EAAE,sCAAiB,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.OperationMutation = void 0;
16
+ const type_graphql_1 = require("type-graphql");
17
+ const typeorm_1 = require("typeorm");
18
+ const operation_1 = require("./operation");
19
+ const operation_type_1 = require("./operation-type");
20
+ let OperationMutation = class OperationMutation {
21
+ async createOperation(operation, context) {
22
+ const { domain, user, tx } = context.state;
23
+ return await tx.getRepository(operation_1.Operation).save(Object.assign(Object.assign({}, operation), { domain, creator: user, updater: user }));
24
+ }
25
+ async updateOperation(id, patch, context) {
26
+ const { domain, user, tx } = context.state;
27
+ const repository = tx.getRepository(operation_1.Operation);
28
+ const operation = await repository.findOne({
29
+ where: { domain, id }
30
+ });
31
+ return await repository.save(Object.assign(Object.assign(Object.assign({}, operation), patch), { updater: user }));
32
+ }
33
+ async updateMultipleOperation(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 operationRepo = tx.getRepository(operation_1.Operation);
39
+ if (_createRecords.length > 0) {
40
+ for (let i = 0; i < _createRecords.length; i++) {
41
+ const newRecord = _createRecords[i];
42
+ const result = await operationRepo.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 operation = await operationRepo.findOne(newRecord.id);
50
+ const result = await operationRepo.save(Object.assign(Object.assign(Object.assign({}, operation), newRecord), { updater: user }));
51
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
52
+ }
53
+ }
54
+ return results;
55
+ }
56
+ async deleteOperation(id, context) {
57
+ const { domain, tx } = context.state;
58
+ await tx.getRepository(operation_1.Operation).delete({ domain, id });
59
+ return true;
60
+ }
61
+ async deleteOperations(ids, context) {
62
+ const { domain, tx } = context.state;
63
+ await tx.getRepository(operation_1.Operation).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 => operation_1.Operation, { description: 'To create new Operation' }),
73
+ __param(0, (0, type_graphql_1.Arg)('operation')),
74
+ __param(1, (0, type_graphql_1.Ctx)()),
75
+ __metadata("design:type", Function),
76
+ __metadata("design:paramtypes", [operation_type_1.NewOperation, Object]),
77
+ __metadata("design:returntype", Promise)
78
+ ], OperationMutation.prototype, "createOperation", null);
79
+ __decorate([
80
+ (0, type_graphql_1.Directive)('@transaction'),
81
+ (0, type_graphql_1.Mutation)(returns => operation_1.Operation, { description: 'To modify Operation 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, operation_type_1.OperationPatch, Object]),
87
+ __metadata("design:returntype", Promise)
88
+ ], OperationMutation.prototype, "updateOperation", null);
89
+ __decorate([
90
+ (0, type_graphql_1.Directive)('@transaction'),
91
+ (0, type_graphql_1.Mutation)(returns => [operation_1.Operation], { description: "To modify multiple Operations' information" }),
92
+ __param(0, (0, type_graphql_1.Arg)('patches', type => [operation_type_1.OperationPatch])),
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
+ ], OperationMutation.prototype, "updateMultipleOperation", null);
98
+ __decorate([
99
+ (0, type_graphql_1.Directive)('@transaction'),
100
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete Operation' }),
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
+ ], OperationMutation.prototype, "deleteOperation", null);
107
+ __decorate([
108
+ (0, type_graphql_1.Directive)('@transaction'),
109
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple operations' }),
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
+ ], OperationMutation.prototype, "deleteOperations", null);
116
+ OperationMutation = __decorate([
117
+ (0, type_graphql_1.Resolver)(operation_1.Operation)
118
+ ], OperationMutation);
119
+ exports.OperationMutation = OperationMutation;
120
+ //# sourceMappingURL=operation-mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-mutation.js","sourceRoot":"","sources":["../../../server/service/operation/operation-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA2C;AAC3C,2CAAuC;AACvC,qDAA+D;AAG/D,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAG5B,KAAK,CAAC,eAAe,CAAmB,SAAuB,EAAS,OAAY;QAClF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,qBAAS,CAAC,CAAC,IAAI,iCACxC,SAAS,KACZ,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,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,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,SAAS,GACT,KAAK,KACR,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,uBAAuB,CACe,OAAyB,EAC5D,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EA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G,GAAE,CAAA;;6CADe,+BAAc;;wDAepC;AAID;IAFC,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;;;;gEAwCP;AAID;IAFC,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;;;;wDAKlD;AAID;IAFC,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;;;;yDASzE;AArGU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,iBAAiB,CAsG7B;AAtGY,8CAAiB"}
@@ -0,0 +1,87 @@
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 shell_1 = require("@things-factory/shell");
20
+ const auth_base_1 = require("@things-factory/auth-base");
21
+ const operation_1 = require("./operation");
22
+ const operation_type_1 = require("./operation-type");
23
+ let OperationQuery = class OperationQuery {
24
+ async operation(id, context) {
25
+ const { domain } = context.state;
26
+ return await (0, typeorm_1.getRepository)(operation_1.Operation).findOne({
27
+ where: { domain, name }
28
+ });
29
+ }
30
+ async operations(params, context) {
31
+ const { domain } = context.state;
32
+ const convertedParams = (0, shell_1.convertListParams)(params, domain.id);
33
+ const [items, total] = await (0, typeorm_1.getRepository)(operation_1.Operation).findAndCount(convertedParams);
34
+ return { items, total };
35
+ }
36
+ async domain(operation) {
37
+ return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(operation.domainId);
38
+ }
39
+ async updater(operation) {
40
+ return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(operation.updaterId);
41
+ }
42
+ async creator(operation) {
43
+ return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(operation.creatorId);
44
+ }
45
+ };
46
+ __decorate([
47
+ (0, type_graphql_1.Query)(returns => operation_1.Operation, { description: 'To fetch a Operation' }),
48
+ __param(0, (0, type_graphql_1.Arg)('id')),
49
+ __param(1, (0, type_graphql_1.Ctx)()),
50
+ __metadata("design:type", Function),
51
+ __metadata("design:paramtypes", [String, Object]),
52
+ __metadata("design:returntype", Promise)
53
+ ], OperationQuery.prototype, "operation", null);
54
+ __decorate([
55
+ (0, type_graphql_1.Query)(returns => operation_type_1.OperationList, { description: 'To fetch multiple Operations' }),
56
+ __param(0, (0, type_graphql_1.Args)()),
57
+ __param(1, (0, type_graphql_1.Ctx)()),
58
+ __metadata("design:type", Function),
59
+ __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
60
+ __metadata("design:returntype", Promise)
61
+ ], OperationQuery.prototype, "operations", null);
62
+ __decorate([
63
+ (0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
64
+ __param(0, (0, type_graphql_1.Root)()),
65
+ __metadata("design:type", Function),
66
+ __metadata("design:paramtypes", [operation_1.Operation]),
67
+ __metadata("design:returntype", Promise)
68
+ ], OperationQuery.prototype, "domain", null);
69
+ __decorate([
70
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
71
+ __param(0, (0, type_graphql_1.Root)()),
72
+ __metadata("design:type", Function),
73
+ __metadata("design:paramtypes", [operation_1.Operation]),
74
+ __metadata("design:returntype", Promise)
75
+ ], OperationQuery.prototype, "updater", null);
76
+ __decorate([
77
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
78
+ __param(0, (0, type_graphql_1.Root)()),
79
+ __metadata("design:type", Function),
80
+ __metadata("design:paramtypes", [operation_1.Operation]),
81
+ __metadata("design:returntype", Promise)
82
+ ], OperationQuery.prototype, "creator", null);
83
+ OperationQuery = __decorate([
84
+ (0, type_graphql_1.Resolver)(operation_1.Operation)
85
+ ], OperationQuery);
86
+ exports.OperationQuery = OperationQuery;
87
+ //# sourceMappingURL=operation-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-query.js","sourceRoot":"","sources":["../../../server/service/operation/operation-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA8F;AAC9F,qCAAuC;AACvC,iDAA4E;AAC5E,yDAAgD;AAChD,2CAAw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AW,EAAE,sBAAsB,EAAE,CAAC;IACpD,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;+CAM5C;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,8BAAa,EAAE,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC/D,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;gDAOzC;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAY,qBAAS;;4CAExC;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAY,qBAAS;;6CAEzC;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAY,qBAAS;;6CAEzC;AAjCU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,cAAc,CAkC1B;AAlCY,wCAAc"}
@@ -0,0 +1,97 @@
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.OperationList = exports.OperationPatch = exports.NewOperation = void 0;
13
+ const type_graphql_1 = require("type-graphql");
14
+ const operation_1 = require("./operation");
15
+ let NewOperation = class NewOperation {
16
+ };
17
+ __decorate([
18
+ (0, type_graphql_1.Field)({ nullable: false }),
19
+ __metadata("design:type", String)
20
+ ], NewOperation.prototype, "name", void 0);
21
+ __decorate([
22
+ (0, type_graphql_1.Field)({ nullable: true }),
23
+ __metadata("design:type", String)
24
+ ], NewOperation.prototype, "description", void 0);
25
+ __decorate([
26
+ (0, type_graphql_1.Field)({ nullable: true }),
27
+ __metadata("design:type", String)
28
+ ], NewOperation.prototype, "type", void 0);
29
+ __decorate([
30
+ (0, type_graphql_1.Field)({ nullable: true }),
31
+ __metadata("design:type", String)
32
+ ], NewOperation.prototype, "operationStdChart", void 0);
33
+ __decorate([
34
+ (0, type_graphql_1.Field)({ nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], NewOperation.prototype, "operationStdTime", void 0);
37
+ __decorate([
38
+ (0, type_graphql_1.Field)({ nullable: true }),
39
+ __metadata("design:type", Boolean)
40
+ ], NewOperation.prototype, "active", void 0);
41
+ NewOperation = __decorate([
42
+ (0, type_graphql_1.InputType)()
43
+ ], NewOperation);
44
+ exports.NewOperation = NewOperation;
45
+ let OperationPatch = class OperationPatch {
46
+ };
47
+ __decorate([
48
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], OperationPatch.prototype, "id", void 0);
51
+ __decorate([
52
+ (0, type_graphql_1.Field)({ nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], OperationPatch.prototype, "name", void 0);
55
+ __decorate([
56
+ (0, type_graphql_1.Field)({ nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], OperationPatch.prototype, "description", void 0);
59
+ __decorate([
60
+ (0, type_graphql_1.Field)({ nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], OperationPatch.prototype, "type", void 0);
63
+ __decorate([
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], OperationPatch.prototype, "operationStdChart", void 0);
67
+ __decorate([
68
+ (0, type_graphql_1.Field)({ nullable: true }),
69
+ __metadata("design:type", String)
70
+ ], OperationPatch.prototype, "operationStdTime", void 0);
71
+ __decorate([
72
+ (0, type_graphql_1.Field)({ nullable: true }),
73
+ __metadata("design:type", Boolean)
74
+ ], OperationPatch.prototype, "active", void 0);
75
+ __decorate([
76
+ (0, type_graphql_1.Field)(),
77
+ __metadata("design:type", String)
78
+ ], OperationPatch.prototype, "cuFlag", void 0);
79
+ OperationPatch = __decorate([
80
+ (0, type_graphql_1.InputType)()
81
+ ], OperationPatch);
82
+ exports.OperationPatch = OperationPatch;
83
+ let OperationList = class OperationList {
84
+ };
85
+ __decorate([
86
+ (0, type_graphql_1.Field)(type => [operation_1.Operation]),
87
+ __metadata("design:type", Array)
88
+ ], OperationList.prototype, "items", void 0);
89
+ __decorate([
90
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
91
+ __metadata("design:type", Number)
92
+ ], OperationList.prototype, "total", void 0);
93
+ OperationList = __decorate([
94
+ (0, type_graphql_1.ObjectType)()
95
+ ], OperationList);
96
+ exports.OperationList = OperationList;
97
+ //# sourceMappingURL=operation-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-type.js","sourceRoot":"","sources":["../../../server/service/operation/operation-type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAMqB;AAErB,2CAAuC;AAGvC,IAAa,YAAY,GAAzB,MAAa,YAAY;CAkBxB,CAAA;AAhBC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CACf;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACN;AAG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