@things-factory/worklist 5.0.7 → 5.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/{bootstrap.js → bootstrap.ts} +0 -0
- package/client/components/activity-/bowner-view.js +0 -1
- package/client/components/activity-instance-preview.js +1 -2
- package/client/components/{activity-intro-view.js → activity-intro-view.ts} +29 -42
- package/client/components/activity-reporter-view.js +0 -1
- package/client/components/activity-starter-form.js +2 -3
- package/client/{index.js → index.ts} +0 -0
- package/client/pages/activity/{activity-list-page.js → activity-list-page.ts} +26 -36
- package/client/pages/activity/activity-model-item-list.js +4 -1
- package/client/pages/activity/activity-page.js +2 -3
- package/client/pages/activity/starter-list-page.js +1 -1
- package/client/pages/activity-instance/activity-instance-list-page.js +1 -1
- package/client/pages/activity-instance/activity-instance-page.js +2 -2
- package/client/pages/activity-store/activity-store-page.js +1 -1
- package/client/pages/activity-supervisor/reporter-list-page.js +1 -1
- package/client/pages/activity-template/activity-template-list-page.js +1 -1
- package/client/pages/activity-thread/activity-thread-list-page.js +1 -1
- package/client/pages/activity-thread/activity-thread-page.js +2 -2
- package/client/pages/todo/assigned-list-page.js +1 -1
- package/client/pages/todo/draft-list-page.js +4 -2
- package/client/pages/todo/pickable-list-page.js +2 -2
- package/client/pages/todo/todo-list-page.js +2 -2
- package/client/pages/{worklist-home.js → worklist-home.ts} +2 -6
- package/client/{route.js → route.ts} +1 -1
- package/client/tsconfig.json +11 -0
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +12 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/components/activity-/bowner-view.d.ts +1 -0
- package/dist-client/components/activity-/bowner-view.js +96 -0
- package/dist-client/components/activity-/bowner-view.js.map +1 -0
- package/dist-client/components/activity-instance-preview.d.ts +1 -0
- package/dist-client/components/activity-instance-preview.js +180 -0
- package/dist-client/components/activity-instance-preview.js.map +1 -0
- package/dist-client/components/activity-intro-view.d.ts +1 -0
- package/dist-client/components/activity-intro-view.js +104 -0
- package/dist-client/components/activity-intro-view.js.map +1 -0
- package/dist-client/components/activity-reporter-view.d.ts +1 -0
- package/dist-client/components/activity-reporter-view.js +96 -0
- package/dist-client/components/activity-reporter-view.js.map +1 -0
- package/dist-client/components/activity-starter-form.d.ts +1 -0
- package/dist-client/components/activity-starter-form.js +293 -0
- package/dist-client/components/activity-starter-form.js.map +1 -0
- package/dist-client/index.d.ts +1 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/pages/activity/activity-list-page.d.ts +47 -0
- package/dist-client/pages/activity/activity-list-page.js +479 -0
- package/dist-client/pages/activity/activity-list-page.js.map +1 -0
- package/dist-client/pages/activity/activity-model-item-list.d.ts +194 -0
- package/dist-client/pages/activity/activity-model-item-list.js +288 -0
- package/dist-client/pages/activity/activity-model-item-list.js.map +1 -0
- package/dist-client/pages/activity/activity-page.d.ts +49 -0
- package/dist-client/pages/activity/activity-page.js +367 -0
- package/dist-client/pages/activity/activity-page.js.map +1 -0
- package/dist-client/pages/activity/starter-list-page.d.ts +143 -0
- package/dist-client/pages/activity/starter-list-page.js +209 -0
- package/dist-client/pages/activity/starter-list-page.js.map +1 -0
- package/dist-client/pages/activity-instance/activity-instance-list-page.d.ts +137 -0
- package/dist-client/pages/activity-instance/activity-instance-list-page.js +202 -0
- package/dist-client/pages/activity-instance/activity-instance-list-page.js.map +1 -0
- package/dist-client/pages/activity-instance/activity-instance-page.d.ts +49 -0
- package/dist-client/pages/activity-instance/activity-instance-page.js +365 -0
- package/dist-client/pages/activity-instance/activity-instance-page.js.map +1 -0
- package/dist-client/pages/activity-store/activity-store-page.d.ts +174 -0
- package/dist-client/pages/activity-store/activity-store-page.js +211 -0
- package/dist-client/pages/activity-store/activity-store-page.js.map +1 -0
- package/dist-client/pages/activity-supervisor/reporter-list-page.d.ts +143 -0
- package/dist-client/pages/activity-supervisor/reporter-list-page.js +209 -0
- package/dist-client/pages/activity-supervisor/reporter-list-page.js.map +1 -0
- package/dist-client/pages/activity-template/activity-template-importer.d.ts +24 -0
- package/dist-client/pages/activity-template/activity-template-importer.js +98 -0
- package/dist-client/pages/activity-template/activity-template-importer.js.map +1 -0
- package/dist-client/pages/activity-template/activity-template-list-page.d.ts +263 -0
- package/dist-client/pages/activity-template/activity-template-list-page.js +402 -0
- package/dist-client/pages/activity-template/activity-template-list-page.js.map +1 -0
- package/dist-client/pages/activity-template/activity-template-model-item-list.d.ts +1 -0
- package/dist-client/pages/activity-template/activity-template-model-item-list.js +36 -0
- package/dist-client/pages/activity-template/activity-template-model-item-list.js.map +1 -0
- package/dist-client/pages/activity-thread/activity-thread-importer.d.ts +24 -0
- package/dist-client/pages/activity-thread/activity-thread-importer.js +98 -0
- package/dist-client/pages/activity-thread/activity-thread-importer.js.map +1 -0
- package/dist-client/pages/activity-thread/activity-thread-list-page.d.ts +145 -0
- package/dist-client/pages/activity-thread/activity-thread-list-page.js +284 -0
- package/dist-client/pages/activity-thread/activity-thread-list-page.js.map +1 -0
- package/dist-client/pages/activity-thread/activity-thread-page.d.ts +46 -0
- package/dist-client/pages/activity-thread/activity-thread-page.js +331 -0
- package/dist-client/pages/activity-thread/activity-thread-page.js.map +1 -0
- package/dist-client/pages/dashboard/dashboard-home.d.ts +1 -0
- package/dist-client/pages/dashboard/dashboard-home.js +17 -0
- package/dist-client/pages/dashboard/dashboard-home.js.map +1 -0
- package/dist-client/pages/todo/assigned-list-page.d.ts +124 -0
- package/dist-client/pages/todo/assigned-list-page.js +233 -0
- package/dist-client/pages/todo/assigned-list-page.js.map +1 -0
- package/dist-client/pages/todo/draft-list-page.d.ts +198 -0
- package/dist-client/pages/todo/draft-list-page.js +312 -0
- package/dist-client/pages/todo/draft-list-page.js.map +1 -0
- package/dist-client/pages/todo/pickable-list-page.d.ts +150 -0
- package/dist-client/pages/todo/pickable-list-page.js +260 -0
- package/dist-client/pages/todo/pickable-list-page.js.map +1 -0
- package/dist-client/pages/todo/todo-list-page.d.ts +232 -0
- package/dist-client/pages/todo/todo-list-page.js +333 -0
- package/dist-client/pages/todo/todo-list-page.js.map +1 -0
- package/dist-client/pages/worklist-home.d.ts +1 -0
- package/dist-client/pages/worklist-home.js +18 -0
- package/dist-client/pages/worklist-home.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +53 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-client/types.d.ts +19 -0
- package/dist-client/types.js +37 -0
- package/dist-client/types.js.map +1 -0
- package/dist-server/controllers/activity-extension-controller.js.map +1 -1
- package/dist-server/controllers/activity-instance/abort.js +4 -5
- package/dist-server/controllers/activity-instance/abort.js.map +1 -1
- package/dist-server/controllers/activity-instance/adjust.js +3 -2
- package/dist-server/controllers/activity-instance/adjust.js.map +1 -1
- package/dist-server/controllers/activity-instance/assign.js +9 -25
- package/dist-server/controllers/activity-instance/assign.js.map +1 -1
- package/dist-server/controllers/activity-instance/delegate.js +5 -6
- package/dist-server/controllers/activity-instance/delegate.js.map +1 -1
- package/dist-server/controllers/activity-instance/draft.js +6 -7
- package/dist-server/controllers/activity-instance/draft.js.map +1 -1
- package/dist-server/controllers/activity-instance/end.js +5 -6
- package/dist-server/controllers/activity-instance/end.js.map +1 -1
- package/dist-server/controllers/activity-instance/index.js +11 -24
- package/dist-server/controllers/activity-instance/index.js.map +1 -1
- package/dist-server/controllers/activity-instance/pick.js +6 -6
- package/dist-server/controllers/activity-instance/pick.js.map +1 -1
- package/dist-server/controllers/activity-instance/post.js +10 -6
- package/dist-server/controllers/activity-instance/post.js.map +1 -1
- package/dist-server/controllers/activity-instance/start.js +3 -2
- package/dist-server/controllers/activity-instance/start.js.map +1 -1
- package/dist-server/controllers/activity-instance/terminate.js +5 -6
- package/dist-server/controllers/activity-instance/terminate.js.map +1 -1
- package/dist-server/controllers/activity-thread/abort.js +3 -4
- package/dist-server/controllers/activity-thread/abort.js.map +1 -1
- package/dist-server/controllers/activity-thread/adjust.js +2 -1
- package/dist-server/controllers/activity-thread/adjust.js.map +1 -1
- package/dist-server/controllers/activity-thread/delegate.js +4 -5
- package/dist-server/controllers/activity-thread/delegate.js.map +1 -1
- package/dist-server/controllers/activity-thread/end.js +4 -5
- package/dist-server/controllers/activity-thread/end.js.map +1 -1
- package/dist-server/controllers/activity-thread/index.js +8 -21
- package/dist-server/controllers/activity-thread/index.js.map +1 -1
- package/dist-server/controllers/activity-thread/save.js +2 -1
- package/dist-server/controllers/activity-thread/save.js.map +1 -1
- package/dist-server/controllers/activity-thread/start.js +4 -5
- package/dist-server/controllers/activity-thread/start.js.map +1 -1
- package/dist-server/controllers/activity-thread/terminate.js +3 -4
- package/dist-server/controllers/activity-thread/terminate.js.map +1 -1
- package/dist-server/controllers/common.js +23 -6
- package/dist-server/controllers/common.js.map +1 -1
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/index.js +4 -17
- package/dist-server/index.js.map +1 -1
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/routes.js +0 -1
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/activity/activity-history.js +68 -76
- package/dist-server/service/activity/activity-history.js.map +1 -1
- package/dist-server/service/activity/activity-model-type.js +51 -60
- package/dist-server/service/activity/activity-model-type.js.map +1 -1
- package/dist-server/service/activity/activity-mutation.js +39 -50
- package/dist-server/service/activity/activity-mutation.js.map +1 -1
- package/dist-server/service/activity/activity-query.js +61 -72
- package/dist-server/service/activity/activity-query.js.map +1 -1
- package/dist-server/service/activity/activity-type.js +91 -102
- package/dist-server/service/activity/activity-type.js.map +1 -1
- package/dist-server/service/activity/activity.js +68 -76
- package/dist-server/service/activity/activity.js.map +1 -1
- package/dist-server/service/activity/event-subscriber.js +2 -7
- package/dist-server/service/activity/event-subscriber.js.map +1 -1
- package/dist-server/service/activity/index.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-history.js +81 -89
- package/dist-server/service/activity-instance/activity-instance-history.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-mutation.js +71 -85
- package/dist-server/service/activity-instance/activity-instance-mutation.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-query.js +67 -78
- package/dist-server/service/activity-instance/activity-instance-query.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-subscription.js +8 -21
- package/dist-server/service/activity-instance/activity-instance-subscription.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-type.js +106 -106
- package/dist-server/service/activity-instance/activity-instance-type.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance.js +85 -93
- package/dist-server/service/activity-instance/activity-instance.js.map +1 -1
- package/dist-server/service/activity-instance/event-subscriber.js +3 -8
- package/dist-server/service/activity-instance/event-subscriber.js.map +1 -1
- package/dist-server/service/activity-instance/index.js.map +1 -1
- package/dist-server/service/activity-template/activity-template-history.js +50 -58
- package/dist-server/service/activity-template/activity-template-history.js.map +1 -1
- package/dist-server/service/activity-template/activity-template-mutation.js +39 -50
- package/dist-server/service/activity-template/activity-template-mutation.js.map +1 -1
- package/dist-server/service/activity-template/activity-template-query.js +48 -45
- package/dist-server/service/activity-template/activity-template-query.js.map +1 -1
- package/dist-server/service/activity-template/activity-template-type.js +65 -76
- package/dist-server/service/activity-template/activity-template-type.js.map +1 -1
- package/dist-server/service/activity-template/activity-template.js +48 -56
- package/dist-server/service/activity-template/activity-template.js.map +1 -1
- package/dist-server/service/activity-template/event-subscriber.js +2 -7
- package/dist-server/service/activity-template/event-subscriber.js.map +1 -1
- package/dist-server/service/activity-template/index.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-mutation.js +84 -95
- package/dist-server/service/activity-thread/activity-thread-mutation.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-query.js +45 -56
- package/dist-server/service/activity-thread/activity-thread-query.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-subscription.js +7 -20
- package/dist-server/service/activity-thread/activity-thread-subscription.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-type.js +25 -34
- package/dist-server/service/activity-thread/activity-thread-type.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread.js +43 -51
- package/dist-server/service/activity-thread/activity-thread.js.map +1 -1
- package/dist-server/service/activity-thread/event-subscriber.js +5 -10
- package/dist-server/service/activity-thread/event-subscriber.js.map +1 -1
- package/dist-server/service/activity-thread/index.js.map +1 -1
- package/dist-server/service/index.js +5 -18
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +13 -11
- package/server/controllers/activity-instance/abort.ts +5 -10
- package/server/controllers/activity-instance/adjust.ts +5 -7
- package/server/controllers/activity-instance/assign.ts +13 -45
- package/server/controllers/activity-instance/delegate.ts +6 -8
- package/server/controllers/activity-instance/draft.ts +7 -13
- package/server/controllers/activity-instance/end.ts +6 -9
- package/server/controllers/activity-instance/pick.ts +12 -9
- package/server/controllers/activity-instance/post.ts +14 -12
- package/server/controllers/activity-instance/start.ts +5 -3
- package/server/controllers/activity-instance/terminate.ts +6 -8
- package/server/controllers/activity-thread/abort.ts +3 -9
- package/server/controllers/activity-thread/adjust.ts +3 -6
- package/server/controllers/activity-thread/delegate.ts +4 -7
- package/server/controllers/activity-thread/end.ts +4 -7
- package/server/controllers/activity-thread/save.ts +3 -6
- package/server/controllers/activity-thread/start.ts +4 -11
- package/server/controllers/activity-thread/terminate.ts +3 -7
- package/server/controllers/common.ts +33 -14
- package/server/routes.ts +0 -2
- package/server/service/activity/activity-model-type.ts +4 -4
- package/server/service/activity-instance/activity-instance-history.ts +2 -2
- package/server/service/activity-instance/activity-instance-mutation.ts +11 -15
- package/server/service/activity-instance/activity-instance-subscription.ts +1 -5
- package/server/service/activity-instance/activity-instance-type.ts +17 -11
- package/server/service/activity-instance/activity-instance.ts +2 -2
- package/server/service/activity-template/activity-template-query.ts +10 -0
- package/server/service/activity-thread/activity-thread-mutation.ts +7 -7
- package/server/service/activity-thread/activity-thread-subscription.ts +0 -4
- package/server/service/activity-thread/activity-thread-type.ts +1 -1
- package/server/service/activity-thread/activity-thread.ts +1 -1
- package/server/service/activity-thread/event-subscriber.ts +3 -3
- package/server/tsconfig.json +10 -0
- package/things-factory.config.js +2 -2
- package/tsconfig.json +0 -9
package/dist-server/index.js
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
17
4
|
require("./routes");
|
|
18
|
-
__exportStar(require("./migrations"), exports);
|
|
19
|
-
__exportStar(require("./middlewares"), exports);
|
|
20
|
-
__exportStar(require("./service"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./migrations"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./middlewares"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./service"), exports);
|
|
21
8
|
//# sourceMappingURL=index.js.map
|
package/dist-server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,oBAAiB;AAEjB,uDAA4B;AAC5B,wDAA6B;AAC7B,oDAAyB","sourcesContent":["import './routes'\n\nexport * from './migrations'\nexport * from './middlewares'\nexport * from './service'\n"]}
|
|
@@ -1 +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"}
|
|
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","sourcesContent":["export function initMiddlewares(app) {\n /* can add middlewares into app */\n}\n"]}
|
|
@@ -1 +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"}
|
|
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","sourcesContent":["const glob = require('glob')\nconst path = require('path')\n\nexport var migrations = []\n\nglob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function(file) {\n if (file.indexOf('index.js') !== -1) return\n migrations = migrations.concat(Object.values(require(path.resolve(file))) || [])\n})\n"]}
|
package/dist-server/routes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":"AAAA,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","sourcesContent":["process.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {\n /*\n * can add global public routes to application (auth not required, tenancy not required)\n *\n * ex) routes.get('/path', async(context, next) => {})\n * ex) routes.post('/path', async(context, next) => {})\n */\n})\n\nprocess.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {\n /*\n * can add global private routes to application (auth required, tenancy not required)\n */\n})\n\nprocess.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {\n /*\n * can add domain public routes to application (auth not required, tenancy required)\n */\n})\n\nprocess.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRouter) => {\n /*\n * can add domain private routes to application (auth required, tenancy required)\n */\n})\n"]}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
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
2
|
var _a, _b, _c, _d, _e, _f;
|
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
4
|
exports.ActivityHistory = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
14
6
|
const type_graphql_1 = require("type-graphql");
|
|
15
7
|
const typeorm_1 = require("typeorm");
|
|
16
8
|
const typeorm_history_1 = require("@anchan828/typeorm-history");
|
|
@@ -27,160 +19,160 @@ let ActivityHistory = class ActivityHistory {
|
|
|
27
19
|
this.priority = 1;
|
|
28
20
|
}
|
|
29
21
|
};
|
|
30
|
-
__decorate([
|
|
22
|
+
tslib_1.__decorate([
|
|
31
23
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
32
24
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
33
|
-
__metadata("design:type", String)
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
34
26
|
], ActivityHistory.prototype, "id", void 0);
|
|
35
|
-
__decorate([
|
|
27
|
+
tslib_1.__decorate([
|
|
36
28
|
(0, typeorm_1.Column)({ nullable: true, default: 1 }),
|
|
37
29
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
30
|
+
tslib_1.__metadata("design:type", Number)
|
|
39
31
|
], ActivityHistory.prototype, "version", void 0);
|
|
40
|
-
__decorate([
|
|
32
|
+
tslib_1.__decorate([
|
|
41
33
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
42
34
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
43
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
35
|
+
tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
44
36
|
], ActivityHistory.prototype, "domain", void 0);
|
|
45
|
-
__decorate([
|
|
37
|
+
tslib_1.__decorate([
|
|
46
38
|
(0, typeorm_1.RelationId)((activity) => activity.domain),
|
|
47
|
-
__metadata("design:type", String)
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
48
40
|
], ActivityHistory.prototype, "domainId", void 0);
|
|
49
|
-
__decorate([
|
|
41
|
+
tslib_1.__decorate([
|
|
50
42
|
(0, typeorm_1.Column)(),
|
|
51
43
|
(0, type_graphql_1.Field)(),
|
|
52
|
-
__metadata("design:type", String)
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
53
45
|
], ActivityHistory.prototype, "name", void 0);
|
|
54
|
-
__decorate([
|
|
46
|
+
tslib_1.__decorate([
|
|
55
47
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
56
48
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", String)
|
|
49
|
+
tslib_1.__metadata("design:type", String)
|
|
58
50
|
], ActivityHistory.prototype, "description", void 0);
|
|
59
|
-
__decorate([
|
|
51
|
+
tslib_1.__decorate([
|
|
60
52
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
61
53
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
62
|
-
__metadata("design:type", String)
|
|
54
|
+
tslib_1.__metadata("design:type", String)
|
|
63
55
|
], ActivityHistory.prototype, "activityType", void 0);
|
|
64
|
-
__decorate([
|
|
56
|
+
tslib_1.__decorate([
|
|
65
57
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
58
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
-
__metadata("design:type", String)
|
|
59
|
+
tslib_1.__metadata("design:type", String)
|
|
68
60
|
], ActivityHistory.prototype, "state", void 0);
|
|
69
|
-
__decorate([
|
|
61
|
+
tslib_1.__decorate([
|
|
70
62
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
71
63
|
(0, type_graphql_1.Field)(type => [activity_model_type_1.ActivityModelItem], { nullable: true }),
|
|
72
|
-
__metadata("design:type", Array)
|
|
64
|
+
tslib_1.__metadata("design:type", Array)
|
|
73
65
|
], ActivityHistory.prototype, "model", void 0);
|
|
74
|
-
__decorate([
|
|
66
|
+
tslib_1.__decorate([
|
|
75
67
|
(0, typeorm_1.Column)({ nullable: true, default: 1 }),
|
|
76
68
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
-
__metadata("design:type", Number)
|
|
69
|
+
tslib_1.__metadata("design:type", Number)
|
|
78
70
|
], ActivityHistory.prototype, "priority", void 0);
|
|
79
|
-
__decorate([
|
|
71
|
+
tslib_1.__decorate([
|
|
80
72
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
81
73
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
-
__metadata("design:type", Boolean)
|
|
74
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
83
75
|
], ActivityHistory.prototype, "startable", void 0);
|
|
84
|
-
__decorate([
|
|
76
|
+
tslib_1.__decorate([
|
|
85
77
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
86
78
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
-
__metadata("design:type", Number)
|
|
79
|
+
tslib_1.__metadata("design:type", Number)
|
|
88
80
|
], ActivityHistory.prototype, "standardTime", void 0);
|
|
89
|
-
__decorate([
|
|
81
|
+
tslib_1.__decorate([
|
|
90
82
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
91
83
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
92
|
-
__metadata("design:type", Number)
|
|
84
|
+
tslib_1.__metadata("design:type", Number)
|
|
93
85
|
], ActivityHistory.prototype, "cycleTime", void 0);
|
|
94
|
-
__decorate([
|
|
86
|
+
tslib_1.__decorate([
|
|
95
87
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
96
88
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
97
|
-
__metadata("design:type", Number)
|
|
89
|
+
tslib_1.__metadata("design:type", Number)
|
|
98
90
|
], ActivityHistory.prototype, "tactTime", void 0);
|
|
99
|
-
__decorate([
|
|
91
|
+
tslib_1.__decorate([
|
|
100
92
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
101
93
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
102
|
-
__metadata("design:type", Number)
|
|
94
|
+
tslib_1.__metadata("design:type", Number)
|
|
103
95
|
], ActivityHistory.prototype, "leadTime", void 0);
|
|
104
|
-
__decorate([
|
|
96
|
+
tslib_1.__decorate([
|
|
105
97
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.Role, { nullable: true }),
|
|
106
98
|
(0, type_graphql_1.Field)(type => auth_base_1.Role, { nullable: true }),
|
|
107
|
-
__metadata("design:type", typeof (_b = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _b : Object)
|
|
99
|
+
tslib_1.__metadata("design:type", typeof (_b = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _b : Object)
|
|
108
100
|
], ActivityHistory.prototype, "issuerRole", void 0);
|
|
109
|
-
__decorate([
|
|
101
|
+
tslib_1.__decorate([
|
|
110
102
|
(0, typeorm_1.RelationId)((activity) => activity.issuerRole),
|
|
111
|
-
__metadata("design:type", String)
|
|
103
|
+
tslib_1.__metadata("design:type", String)
|
|
112
104
|
], ActivityHistory.prototype, "issuerRoleId", void 0);
|
|
113
|
-
__decorate([
|
|
105
|
+
tslib_1.__decorate([
|
|
114
106
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.Role, { nullable: true }),
|
|
115
107
|
(0, type_graphql_1.Field)(type => auth_base_1.Role, { nullable: true }),
|
|
116
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _c : Object)
|
|
108
|
+
tslib_1.__metadata("design:type", typeof (_c = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _c : Object)
|
|
117
109
|
], ActivityHistory.prototype, "assigneeRole", void 0);
|
|
118
|
-
__decorate([
|
|
110
|
+
tslib_1.__decorate([
|
|
119
111
|
(0, typeorm_1.RelationId)((activity) => activity.assigneeRole),
|
|
120
|
-
__metadata("design:type", String)
|
|
112
|
+
tslib_1.__metadata("design:type", String)
|
|
121
113
|
], ActivityHistory.prototype, "assigneeRoleId", void 0);
|
|
122
|
-
__decorate([
|
|
114
|
+
tslib_1.__decorate([
|
|
123
115
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.Role, { nullable: true }),
|
|
124
116
|
(0, type_graphql_1.Field)(type => auth_base_1.Role, { nullable: true }),
|
|
125
|
-
__metadata("design:type", typeof (_d = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _d : Object)
|
|
117
|
+
tslib_1.__metadata("design:type", typeof (_d = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _d : Object)
|
|
126
118
|
], ActivityHistory.prototype, "supervisoryRole", void 0);
|
|
127
|
-
__decorate([
|
|
119
|
+
tslib_1.__decorate([
|
|
128
120
|
(0, typeorm_1.RelationId)((activity) => activity.supervisoryRole),
|
|
129
|
-
__metadata("design:type", String)
|
|
121
|
+
tslib_1.__metadata("design:type", String)
|
|
130
122
|
], ActivityHistory.prototype, "supervisoryRoleId", void 0);
|
|
131
|
-
__decorate([
|
|
123
|
+
tslib_1.__decorate([
|
|
132
124
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
133
125
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
134
|
-
__metadata("design:type", String)
|
|
126
|
+
tslib_1.__metadata("design:type", String)
|
|
135
127
|
], ActivityHistory.prototype, "uiType", void 0);
|
|
136
|
-
__decorate([
|
|
128
|
+
tslib_1.__decorate([
|
|
137
129
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
138
130
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
139
|
-
__metadata("design:type", String)
|
|
131
|
+
tslib_1.__metadata("design:type", String)
|
|
140
132
|
], ActivityHistory.prototype, "uiSource", void 0);
|
|
141
|
-
__decorate([
|
|
133
|
+
tslib_1.__decorate([
|
|
142
134
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
143
135
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
144
|
-
__metadata("design:type", String)
|
|
136
|
+
tslib_1.__metadata("design:type", String)
|
|
145
137
|
], ActivityHistory.prototype, "reportType", void 0);
|
|
146
|
-
__decorate([
|
|
138
|
+
tslib_1.__decorate([
|
|
147
139
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
148
140
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
149
|
-
__metadata("design:type", String)
|
|
141
|
+
tslib_1.__metadata("design:type", String)
|
|
150
142
|
], ActivityHistory.prototype, "reportSource", void 0);
|
|
151
|
-
__decorate([
|
|
143
|
+
tslib_1.__decorate([
|
|
152
144
|
(0, typeorm_1.Column)(),
|
|
153
145
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
154
|
-
__metadata("design:type", Date)
|
|
146
|
+
tslib_1.__metadata("design:type", Date)
|
|
155
147
|
], ActivityHistory.prototype, "createdAt", void 0);
|
|
156
|
-
__decorate([
|
|
148
|
+
tslib_1.__decorate([
|
|
157
149
|
(0, typeorm_1.Column)(),
|
|
158
150
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
159
|
-
__metadata("design:type", Date)
|
|
151
|
+
tslib_1.__metadata("design:type", Date)
|
|
160
152
|
], ActivityHistory.prototype, "updatedAt", void 0);
|
|
161
|
-
__decorate([
|
|
153
|
+
tslib_1.__decorate([
|
|
162
154
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
163
155
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
164
|
-
__metadata("design:type", typeof (_e = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _e : Object)
|
|
156
|
+
tslib_1.__metadata("design:type", typeof (_e = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _e : Object)
|
|
165
157
|
], ActivityHistory.prototype, "creator", void 0);
|
|
166
|
-
__decorate([
|
|
158
|
+
tslib_1.__decorate([
|
|
167
159
|
(0, typeorm_1.RelationId)((activity) => activity.creator),
|
|
168
|
-
__metadata("design:type", String)
|
|
160
|
+
tslib_1.__metadata("design:type", String)
|
|
169
161
|
], ActivityHistory.prototype, "creatorId", void 0);
|
|
170
|
-
__decorate([
|
|
162
|
+
tslib_1.__decorate([
|
|
171
163
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
172
164
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
173
|
-
__metadata("design:type", typeof (_f = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _f : Object)
|
|
165
|
+
tslib_1.__metadata("design:type", typeof (_f = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _f : Object)
|
|
174
166
|
], ActivityHistory.prototype, "updater", void 0);
|
|
175
|
-
__decorate([
|
|
167
|
+
tslib_1.__decorate([
|
|
176
168
|
(0, typeorm_1.RelationId)((activity) => activity.creator),
|
|
177
|
-
__metadata("design:type", String)
|
|
169
|
+
tslib_1.__metadata("design:type", String)
|
|
178
170
|
], ActivityHistory.prototype, "updaterId", void 0);
|
|
179
|
-
__decorate([
|
|
171
|
+
tslib_1.__decorate([
|
|
180
172
|
(0, typeorm_history_1.HistoryOriginalIdColumn)(),
|
|
181
|
-
__metadata("design:type", String)
|
|
173
|
+
tslib_1.__metadata("design:type", String)
|
|
182
174
|
], ActivityHistory.prototype, "originalId", void 0);
|
|
183
|
-
__decorate([
|
|
175
|
+
tslib_1.__decorate([
|
|
184
176
|
(0, typeorm_history_1.HistoryActionColumn)({
|
|
185
177
|
nullable: false,
|
|
186
178
|
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
@@ -190,9 +182,9 @@ __decorate([
|
|
|
190
182
|
: 'smallint',
|
|
191
183
|
enum: typeorm_history_1.HistoryActionType
|
|
192
184
|
}),
|
|
193
|
-
__metadata("design:type", String)
|
|
185
|
+
tslib_1.__metadata("design:type", String)
|
|
194
186
|
], ActivityHistory.prototype, "action", void 0);
|
|
195
|
-
ActivityHistory = __decorate([
|
|
187
|
+
ActivityHistory = tslib_1.__decorate([
|
|
196
188
|
(0, typeorm_1.Entity)(),
|
|
197
189
|
(0, typeorm_1.Index)('ix_activity_history_0', (activityHistory) => [activityHistory.originalId, activityHistory.version], { unique: true }),
|
|
198
190
|
(0, typeorm_1.Index)('ix_activity_history_1', (activityHistory) => [activityHistory.domain, activityHistory.originalId, activityHistory.version], { unique: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-history.js","sourceRoot":"","sources":["../../../server/service/activity/activity-history.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activity-history.js","sourceRoot":"","sources":["../../../server/service/activity/activity-history.ts"],"names":[],"mappings":";;;;;AAAA,+CAAoD;AACpD,qCAA8F;AAE9F,gEAKmC;AACnC,yDAAsD;AACtD,6CAA4C;AAC5C,iDAA8C;AAE9C,yCAAmF;AACnF,+DAAyD;AAEzD,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAcpC,IAAa,eAAe,GAA5B,MAAa,eAAe;IAA5B;QAOE,YAAO,GAAY,CAAC,CAAA;QA+BpB,aAAQ,GAAY,CAAC,CAAA;IA+FvB,CAAC;CAAA,CAAA;AAlIC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;2CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACN;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DACjB,cAAM,oBAAN,cAAM;+CA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, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\n\nimport {\n HistoryActionColumn,\n HistoryActionType,\n HistoryEntityInterface,\n HistoryOriginalIdColumn\n} from '@anchan828/typeorm-history'\nimport { Role, User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport { Activity, ActivityStatus, ActivityType, ActivityUIType } from './activity'\nimport { ActivityModelItem } from './activity-model-type'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index(\n 'ix_activity_history_0',\n (activityHistory: ActivityHistory) => [activityHistory.originalId, activityHistory.version],\n { unique: true }\n)\n@Index(\n 'ix_activity_history_1',\n (activityHistory: ActivityHistory) => [activityHistory.domain, activityHistory.originalId, activityHistory.version],\n { unique: true }\n)\n@ObjectType({ description: 'History Entity of Activity' })\nexport class ActivityHistory implements HistoryEntityInterface<Activity> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, default: 1 })\n @Field({ nullable: true })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((activity: Activity) => activity.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n activityType?: ActivityType\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: ActivityStatus\n\n @Column('simple-json', { nullable: true })\n @Field(type => [ActivityModelItem], { nullable: true })\n model?: ActivityModelItem[]\n\n @Column({ nullable: true, default: 1 })\n @Field({ nullable: true })\n priority?: number = 1\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n startable?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n standardTime?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n cycleTime?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n tactTime?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n leadTime?: number\n\n @ManyToOne(type => Role, { nullable: true })\n @Field(type => Role, { nullable: true })\n issuerRole?: Role\n\n @RelationId((activity: Activity) => activity.issuerRole)\n issuerRoleId?: string\n\n @ManyToOne(type => Role, { nullable: true })\n @Field(type => Role, { nullable: true })\n assigneeRole?: Role\n\n @RelationId((activity: Activity) => activity.assigneeRole)\n assigneeRoleId?: string\n\n @ManyToOne(type => Role, { nullable: true })\n @Field(type => Role, { nullable: true })\n supervisoryRole?: Role\n\n @RelationId((activity: Activity) => activity.supervisoryRole)\n supervisoryRoleId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n uiType?: ActivityUIType\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n uiSource?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n reportType?: ActivityUIType\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n reportSource?: string\n\n @Column()\n @Field({ nullable: true })\n createdAt?: Date\n\n @Column()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((activity: Activity) => activity.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((activity: Activity) => activity.creator)\n updaterId?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: HistoryActionType\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
3
|
exports.ActivityModelItemPatch = exports.ActivityModelItem = exports.ActivityModelItemType = exports.ActivityModelItemInoutType = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
14
5
|
const type_graphql_1 = require("type-graphql");
|
|
15
6
|
const shell_1 = require("@things-factory/shell");
|
|
16
7
|
var ActivityModelItemInoutType;
|
|
@@ -38,109 +29,109 @@ var ActivityModelItemType;
|
|
|
38
29
|
});
|
|
39
30
|
let ActivityModelItem = class ActivityModelItem {
|
|
40
31
|
};
|
|
41
|
-
__decorate([
|
|
32
|
+
tslib_1.__decorate([
|
|
42
33
|
(0, type_graphql_1.Field)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
44
35
|
], ActivityModelItem.prototype, "name", void 0);
|
|
45
|
-
__decorate([
|
|
36
|
+
tslib_1.__decorate([
|
|
46
37
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
38
|
+
tslib_1.__metadata("design:type", String)
|
|
48
39
|
], ActivityModelItem.prototype, "description", void 0);
|
|
49
|
-
__decorate([
|
|
40
|
+
tslib_1.__decorate([
|
|
50
41
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
52
43
|
], ActivityModelItem.prototype, "tag", void 0);
|
|
53
|
-
__decorate([
|
|
44
|
+
tslib_1.__decorate([
|
|
54
45
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
-
__metadata("design:type", Boolean)
|
|
46
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
56
47
|
], ActivityModelItem.prototype, "active", void 0);
|
|
57
|
-
__decorate([
|
|
48
|
+
tslib_1.__decorate([
|
|
58
49
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
-
__metadata("design:type", Boolean)
|
|
50
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
60
51
|
], ActivityModelItem.prototype, "hidden", void 0);
|
|
61
|
-
__decorate([
|
|
52
|
+
tslib_1.__decorate([
|
|
62
53
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
63
|
-
__metadata("design:type", Boolean)
|
|
54
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
64
55
|
], ActivityModelItem.prototype, "mandatory", void 0);
|
|
65
|
-
__decorate([
|
|
56
|
+
tslib_1.__decorate([
|
|
66
57
|
(0, type_graphql_1.Field)(type => ActivityModelItemInoutType, { nullable: true }),
|
|
67
|
-
__metadata("design:type", String)
|
|
58
|
+
tslib_1.__metadata("design:type", String)
|
|
68
59
|
], ActivityModelItem.prototype, "inout", void 0);
|
|
69
|
-
__decorate([
|
|
60
|
+
tslib_1.__decorate([
|
|
70
61
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
-
__metadata("design:type", String)
|
|
62
|
+
tslib_1.__metadata("design:type", String)
|
|
72
63
|
], ActivityModelItem.prototype, "type", void 0);
|
|
73
|
-
__decorate([
|
|
64
|
+
tslib_1.__decorate([
|
|
74
65
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
75
|
-
__metadata("design:type",
|
|
66
|
+
tslib_1.__metadata("design:type", Object)
|
|
76
67
|
], ActivityModelItem.prototype, "options", void 0);
|
|
77
|
-
__decorate([
|
|
68
|
+
tslib_1.__decorate([
|
|
78
69
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
-
__metadata("design:type", String)
|
|
70
|
+
tslib_1.__metadata("design:type", String)
|
|
80
71
|
], ActivityModelItem.prototype, "unit", void 0);
|
|
81
|
-
__decorate([
|
|
72
|
+
tslib_1.__decorate([
|
|
82
73
|
(0, type_graphql_1.Field)(type => [type_graphql_1.Int], { nullable: true }),
|
|
83
|
-
__metadata("design:type", Array)
|
|
74
|
+
tslib_1.__metadata("design:type", Array)
|
|
84
75
|
], ActivityModelItem.prototype, "quantifier", void 0);
|
|
85
|
-
__decorate([
|
|
76
|
+
tslib_1.__decorate([
|
|
86
77
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
87
|
-
__metadata("design:type",
|
|
78
|
+
tslib_1.__metadata("design:type", Object)
|
|
88
79
|
], ActivityModelItem.prototype, "spec", void 0);
|
|
89
|
-
ActivityModelItem = __decorate([
|
|
80
|
+
ActivityModelItem = tslib_1.__decorate([
|
|
90
81
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for ActivityModelItem' })
|
|
91
82
|
], ActivityModelItem);
|
|
92
83
|
exports.ActivityModelItem = ActivityModelItem;
|
|
93
84
|
let ActivityModelItemPatch = class ActivityModelItemPatch {
|
|
94
85
|
};
|
|
95
|
-
__decorate([
|
|
86
|
+
tslib_1.__decorate([
|
|
96
87
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
97
|
-
__metadata("design:type", String)
|
|
88
|
+
tslib_1.__metadata("design:type", String)
|
|
98
89
|
], ActivityModelItemPatch.prototype, "name", void 0);
|
|
99
|
-
__decorate([
|
|
90
|
+
tslib_1.__decorate([
|
|
100
91
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
101
|
-
__metadata("design:type", String)
|
|
92
|
+
tslib_1.__metadata("design:type", String)
|
|
102
93
|
], ActivityModelItemPatch.prototype, "description", void 0);
|
|
103
|
-
__decorate([
|
|
94
|
+
tslib_1.__decorate([
|
|
104
95
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
105
|
-
__metadata("design:type", String)
|
|
96
|
+
tslib_1.__metadata("design:type", String)
|
|
106
97
|
], ActivityModelItemPatch.prototype, "tag", void 0);
|
|
107
|
-
__decorate([
|
|
98
|
+
tslib_1.__decorate([
|
|
108
99
|
(0, type_graphql_1.Field)(type => ActivityModelItemInoutType, { nullable: true }),
|
|
109
|
-
__metadata("design:type", String)
|
|
100
|
+
tslib_1.__metadata("design:type", String)
|
|
110
101
|
], ActivityModelItemPatch.prototype, "inout", void 0);
|
|
111
|
-
__decorate([
|
|
102
|
+
tslib_1.__decorate([
|
|
112
103
|
(0, type_graphql_1.Field)(type => ActivityModelItemType, { nullable: true }),
|
|
113
|
-
__metadata("design:type", String)
|
|
104
|
+
tslib_1.__metadata("design:type", String)
|
|
114
105
|
], ActivityModelItemPatch.prototype, "type", void 0);
|
|
115
|
-
__decorate([
|
|
106
|
+
tslib_1.__decorate([
|
|
116
107
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
117
|
-
__metadata("design:type",
|
|
108
|
+
tslib_1.__metadata("design:type", Object)
|
|
118
109
|
], ActivityModelItemPatch.prototype, "options", void 0);
|
|
119
|
-
__decorate([
|
|
110
|
+
tslib_1.__decorate([
|
|
120
111
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
121
|
-
__metadata("design:type", String)
|
|
112
|
+
tslib_1.__metadata("design:type", String)
|
|
122
113
|
], ActivityModelItemPatch.prototype, "unit", void 0);
|
|
123
|
-
__decorate([
|
|
114
|
+
tslib_1.__decorate([
|
|
124
115
|
(0, type_graphql_1.Field)(type => [type_graphql_1.Int], { nullable: true }),
|
|
125
|
-
__metadata("design:type", Array)
|
|
116
|
+
tslib_1.__metadata("design:type", Array)
|
|
126
117
|
], ActivityModelItemPatch.prototype, "quantifier", void 0);
|
|
127
|
-
__decorate([
|
|
118
|
+
tslib_1.__decorate([
|
|
128
119
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
129
|
-
__metadata("design:type", Boolean)
|
|
120
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
130
121
|
], ActivityModelItemPatch.prototype, "active", void 0);
|
|
131
|
-
__decorate([
|
|
122
|
+
tslib_1.__decorate([
|
|
132
123
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
133
|
-
__metadata("design:type", Boolean)
|
|
124
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
134
125
|
], ActivityModelItemPatch.prototype, "mandatory", void 0);
|
|
135
|
-
__decorate([
|
|
126
|
+
tslib_1.__decorate([
|
|
136
127
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
137
|
-
__metadata("design:type", Boolean)
|
|
128
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
138
129
|
], ActivityModelItemPatch.prototype, "hidden", void 0);
|
|
139
|
-
__decorate([
|
|
130
|
+
tslib_1.__decorate([
|
|
140
131
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
141
|
-
__metadata("design:type",
|
|
132
|
+
tslib_1.__metadata("design:type", Object)
|
|
142
133
|
], ActivityModelItemPatch.prototype, "spec", void 0);
|
|
143
|
-
ActivityModelItemPatch = __decorate([
|
|
134
|
+
ActivityModelItemPatch = tslib_1.__decorate([
|
|
144
135
|
(0, type_graphql_1.InputType)()
|
|
145
136
|
], ActivityModelItemPatch);
|
|
146
137
|
exports.ActivityModelItemPatch = ActivityModelItemPatch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-model-type.js","sourceRoot":"","sources":["../../../server/service/activity/activity-model-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activity-model-type.js","sourceRoot":"","sources":["../../../server/service/activity/activity-model-type.ts"],"names":[],"mappings":";;;;AAAA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CAAC;;uDACb;AAGnC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACb;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,kBAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACrB;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACP;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACV;AAGhB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACnB;AAnClB,sBAAsB;IADlC,IAAA,wBAAS,GAAE;GACC,sBAAsB,CAoClC;AApCY,wDAAsB","sourcesContent":["import { Field, InputType, Int, ObjectType, registerEnumType } from 'type-graphql'\n\nimport { ScalarObject } from '@things-factory/shell'\n\nexport enum ActivityModelItemInoutType {\n in = 'in',\n out = 'out',\n inout = 'inout'\n}\n\nregisterEnumType(ActivityModelItemInoutType, {\n name: 'ActivityModelItemInoutType',\n description: 'inout enumeration of a activity-model-item'\n})\n\nexport enum ActivityModelItemType {\n number = 'number',\n text = 'text',\n textarea = 'textarea',\n boolean = 'boolean',\n select = 'select',\n file = 'file'\n}\n\nregisterEnumType(ActivityModelItemType, {\n name: 'ActivityModelItemType',\n description: 'data type enumeration of a activity-model-item'\n})\n\n@ObjectType({ description: 'Entity for ActivityModelItem' })\nexport class ActivityModelItem {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n tag?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n hidden?: boolean\n\n @Field({ nullable: true })\n mandatory?: boolean\n\n @Field(type => ActivityModelItemInoutType, { nullable: true })\n inout?: ActivityModelItemInoutType\n\n @Field({ nullable: true })\n type?: ActivityModelItemType\n\n @Field(type => ScalarObject, { nullable: true })\n options?: { [option: string]: any }\n\n @Field({ nullable: true })\n unit?: string\n\n @Field(type => [Int], { nullable: true })\n quantifier: number[]\n\n @Field(type => ScalarObject, { nullable: true })\n spec?: { [key: string]: any }\n}\n\n@InputType()\nexport class ActivityModelItemPatch {\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n tag?: string\n\n @Field(type => ActivityModelItemInoutType, { nullable: true })\n inout?: ActivityModelItemInoutType\n\n @Field(type => ActivityModelItemType, { nullable: true })\n type?: ActivityModelItemType\n\n @Field(type => ScalarObject, { nullable: true })\n options?: { [option: string]: any }\n\n @Field({ nullable: true })\n unit?: string\n\n @Field(type => [Int], { nullable: true })\n quantifier: number[]\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n mandatory?: boolean\n\n @Field({ nullable: true })\n hidden?: boolean\n\n @Field(type => ScalarObject, { nullable: true })\n spec?: { [key: string]: any }\n}\n"]}
|