@things-factory/dataset 6.0.28 → 6.0.29
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/{components/data-collect-activity-view.ts → activities/activity-data-collect-view.ts} +1 -1
- package/client/{components/ooc-resolve-activity-view.ts → activities/activity-ooc-resolve-view.ts} +1 -1
- package/client/{components/ooc-review-activity-view.ts → activities/activity-ooc-review-view.ts} +1 -1
- package/client/bootstrap.ts +3 -3
- package/dist-client/activities/activity-data-collect-view.d.ts +19 -0
- package/dist-client/activities/activity-data-collect-view.js +101 -0
- package/dist-client/activities/activity-data-collect-view.js.map +1 -0
- package/dist-client/activities/activity-ooc-resolve-view.d.ts +1 -0
- package/dist-client/activities/activity-ooc-resolve-view.js +175 -0
- package/dist-client/activities/activity-ooc-resolve-view.js.map +1 -0
- package/dist-client/activities/activity-ooc-review-view.d.ts +1 -0
- package/dist-client/activities/activity-ooc-review-view.js +155 -0
- package/dist-client/activities/activity-ooc-review-view.js.map +1 -0
- package/dist-client/bootstrap.d.ts +3 -3
- package/dist-client/bootstrap.js +3 -3
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/activities/activity-data-collect.js +82 -0
- package/dist-server/activities/activity-data-collect.js.map +1 -0
- package/dist-server/activities/activity-ooc-resolve.js +100 -0
- package/dist-server/activities/activity-ooc-resolve.js.map +1 -0
- package/dist-server/activities/activity-ooc-review.js +107 -0
- package/dist-server/activities/activity-ooc-review.js.map +1 -0
- package/dist-server/activities/index.js +10 -0
- package/dist-server/activities/index.js.map +1 -0
- package/dist-server/controllers/index.js +0 -7
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/index.js +1 -1
- package/dist-server/index.js.map +1 -1
- package/dist-server/service/data-set/data-set-mutation.js +1 -3
- package/dist-server/service/data-set/data-set-mutation.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/{controllers/activity-template → activities}/activity-data-collect.ts +3 -3
- package/server/{controllers/activity-template → activities}/activity-ooc-resolve.ts +2 -2
- package/server/{controllers/activity-template → activities}/activity-ooc-review.ts +2 -2
- package/server/activities/index.ts +10 -0
- package/server/controllers/index.ts +0 -11
- package/server/index.ts +1 -1
- package/server/service/data-set/data-set-mutation.ts +1 -3
- package/dist-server/middlewares/index.js +0 -8
- package/dist-server/middlewares/index.js.map +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.29",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "dist-client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -40,12 +40,12 @@
|
|
40
40
|
"@things-factory/board-service": "^6.0.28",
|
41
41
|
"@things-factory/env": "^6.0.7",
|
42
42
|
"@things-factory/organization": "^6.0.28",
|
43
|
-
"@things-factory/scheduler-client": "^6.0.
|
43
|
+
"@things-factory/scheduler-client": "^6.0.29",
|
44
44
|
"@things-factory/shell": "^6.0.28",
|
45
45
|
"@things-factory/work-shift": "^6.0.28",
|
46
46
|
"@things-factory/worklist": "^6.0.28",
|
47
47
|
"cron-parser": "^4.3.0",
|
48
48
|
"moment-timezone": "^0.5.40"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "1ed1aec497f19c6b3f4bcf63be648c1c68aa8447"
|
51
51
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Activity, ActivityInstance, ActivityInstanceStatus } from '@things-factory/worklist'
|
2
2
|
import { NewDataSample } from 'service/data-sample/data-sample-type'
|
3
|
-
import { createDataSample } from '
|
3
|
+
import { createDataSample } from '../controllers/create-data-sample'
|
4
4
|
|
5
5
|
async function callback(activityInstance: ActivityInstance, context: ResolverContext) {
|
6
6
|
const { domain, tx } = context.state
|
@@ -76,9 +76,9 @@ export const ActivityDataCollect = {
|
|
76
76
|
}
|
77
77
|
],
|
78
78
|
uiType: 'custom-element',
|
79
|
-
uiSource: 'data-collect-
|
79
|
+
uiSource: 'activity-data-collect-view',
|
80
80
|
reportType: 'page',
|
81
|
-
reportSource: 'data-collect-
|
81
|
+
reportSource: 'activity-data-collect-view',
|
82
82
|
thumbnail: '/assets/images/data-collect.png',
|
83
83
|
callback /* Called when there is a change in the lifecycle of a task (activity-instance). */
|
84
84
|
}
|
@@ -4,7 +4,7 @@ import {
|
|
4
4
|
ActivityThread,
|
5
5
|
ActivityThreadStatus
|
6
6
|
} from '@things-factory/worklist'
|
7
|
-
import { DataOoc, DataOocStatus } from '
|
7
|
+
import { DataOoc, DataOocStatus } from '../service/data-ooc/data-ooc'
|
8
8
|
|
9
9
|
async function callback(activityInstance: ActivityInstance, context: ResolverContext) {
|
10
10
|
const { tx, user, domain } = context.state
|
@@ -106,7 +106,7 @@ export const ActivityOocResolve = {
|
|
106
106
|
}
|
107
107
|
],
|
108
108
|
uiType: 'custom-element',
|
109
|
-
uiSource: 'ooc-resolve-
|
109
|
+
uiSource: 'activity-ooc-resolve-view',
|
110
110
|
reportType: 'page',
|
111
111
|
reportSource: 'data-ooc-report-page',
|
112
112
|
thumbnail: '/assets/images/ooc.png',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Activity, ActivityInstance, ActivityInstanceStatus } from '@things-factory/worklist'
|
2
2
|
import { post } from '@things-factory/worklist/dist-server/controllers/activity-instance/post'
|
3
|
-
import { DataOoc, DataOocStatus } from '
|
3
|
+
import { DataOoc, DataOocStatus } from '../service/data-ooc/data-ooc'
|
4
4
|
|
5
5
|
async function callback(activityInstance: ActivityInstance, context: ResolverContext) {
|
6
6
|
const { domain, user, tx } = context.state
|
@@ -110,7 +110,7 @@ export const ActivityOocReview = {
|
|
110
110
|
}
|
111
111
|
],
|
112
112
|
uiType: 'custom-element',
|
113
|
-
uiSource: 'ooc-review-
|
113
|
+
uiSource: 'activity-ooc-review-view',
|
114
114
|
reportType: 'page',
|
115
115
|
reportSource: 'data-ooc-report-page',
|
116
116
|
thumbnail: '/assets/images/ooc.png',
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ActivityInstallations } from '@things-factory/worklist'
|
2
|
+
|
3
|
+
import { ActivityOocReview } from './activity-ooc-review'
|
4
|
+
import { ActivityOocResolve } from './activity-ooc-resolve'
|
5
|
+
import { ActivityDataCollect } from './activity-data-collect'
|
6
|
+
|
7
|
+
/* activity templates installation */
|
8
|
+
;[ActivityOocReview, ActivityOocResolve, ActivityDataCollect].forEach(template => {
|
9
|
+
ActivityInstallations.installActivityTemplate(template)
|
10
|
+
})
|
@@ -1,13 +1,2 @@
|
|
1
|
-
import { ActivityInstallations } from '@things-factory/worklist'
|
2
|
-
|
3
|
-
import { ActivityOocReview } from './activity-template/activity-ooc-review'
|
4
|
-
import { ActivityOocResolve } from './activity-template/activity-ooc-resolve'
|
5
|
-
import { ActivityDataCollect } from './activity-template/activity-data-collect'
|
6
|
-
|
7
|
-
/* activity templates installation */
|
8
|
-
;[ActivityOocReview, ActivityOocResolve, ActivityDataCollect].forEach(template => {
|
9
|
-
ActivityInstallations.installActivityTemplate(template)
|
10
|
-
})
|
11
|
-
|
12
1
|
export * from './create-data-sample'
|
13
2
|
export * from './data-use-case'
|
package/server/index.ts
CHANGED
@@ -234,9 +234,7 @@ export class DataSetMutation {
|
|
234
234
|
}
|
235
235
|
|
236
236
|
try {
|
237
|
-
|
238
|
-
resp_id: dataSet.schedulerHandle
|
239
|
-
})
|
237
|
+
await unregisterSchedule(dataSet.schedulerHandle)
|
240
238
|
|
241
239
|
return await repository.save({
|
242
240
|
...dataSet,
|
@@ -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","sourcesContent":["export function initMiddlewares(app) {\n /* can add middlewares into app */\n}\n"]}
|
@@ -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","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"]}
|