@nocobase/plugin-workflow 0.7.4-alpha.1 → 0.7.4-alpha.4
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/lib/server/extensions/assignees/collections/jobs.d.ts +14 -3
- package/lib/server/extensions/assignees/collections/jobs.js +2 -14
- package/lib/server/extensions/assignees/collections/users.d.ts +12 -3
- package/lib/server/extensions/assignees/collections/users.js +2 -14
- package/lib/server/extensions/assignees/index.js +2 -2
- package/package.json +8 -8
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
name: string;
|
|
3
|
+
fields: ({
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
through: string;
|
|
7
|
+
target?: undefined;
|
|
8
|
+
foreignKey?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
type: string;
|
|
11
|
+
name: string;
|
|
12
|
+
target: string;
|
|
13
|
+
foreignKey: string;
|
|
14
|
+
through?: undefined;
|
|
15
|
+
})[];
|
|
5
16
|
};
|
|
6
17
|
export default _default;
|
|
@@ -4,18 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function _database() {
|
|
9
|
-
const data = require("@nocobase/database");
|
|
10
|
-
|
|
11
|
-
_database = function _database() {
|
|
12
|
-
return data;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
return data;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var _default = (0, _database().extend)({
|
|
7
|
+
var _default = {
|
|
19
8
|
name: 'jobs',
|
|
20
9
|
fields: [{
|
|
21
10
|
type: 'belongsToMany',
|
|
@@ -27,6 +16,5 @@ var _default = (0, _database().extend)({
|
|
|
27
16
|
target: 'users_jobs',
|
|
28
17
|
foreignKey: 'jobId'
|
|
29
18
|
}]
|
|
30
|
-
}
|
|
31
|
-
|
|
19
|
+
};
|
|
32
20
|
exports.default = _default;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
name: string;
|
|
3
|
+
fields: ({
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
through: string;
|
|
7
|
+
target?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
type: string;
|
|
10
|
+
name: string;
|
|
11
|
+
target: string;
|
|
12
|
+
through?: undefined;
|
|
13
|
+
})[];
|
|
5
14
|
};
|
|
6
15
|
export default _default;
|
|
@@ -4,18 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function _database() {
|
|
9
|
-
const data = require("@nocobase/database");
|
|
10
|
-
|
|
11
|
-
_database = function _database() {
|
|
12
|
-
return data;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
return data;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var _default = (0, _database().extend)({
|
|
7
|
+
var _default = {
|
|
19
8
|
name: 'users',
|
|
20
9
|
fields: [{
|
|
21
10
|
type: 'belongsToMany',
|
|
@@ -26,6 +15,5 @@ var _default = (0, _database().extend)({
|
|
|
26
15
|
name: 'usersJobs',
|
|
27
16
|
target: 'users_jobs'
|
|
28
17
|
}]
|
|
29
|
-
}
|
|
30
|
-
|
|
18
|
+
};
|
|
31
19
|
exports.default = _default;
|
|
@@ -263,8 +263,8 @@ function _ref() {
|
|
|
263
263
|
// });
|
|
264
264
|
|
|
265
265
|
plugin.db.collection((0, _utils().requireModule)(_path().default.join(__dirname, './collections/users_jobs')));
|
|
266
|
-
plugin.db.
|
|
267
|
-
plugin.db.
|
|
266
|
+
plugin.db.extendCollection((0, _utils().requireModule)(_path().default.join(__dirname, './collections/users')));
|
|
267
|
+
plugin.db.extendCollection((0, _utils().requireModule)(_path().default.join(__dirname, './collections/jobs')));
|
|
268
268
|
plugin.app.actions({
|
|
269
269
|
'users_jobs:submit': _actions.submit
|
|
270
270
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow",
|
|
3
|
-
"version": "0.7.4-alpha.
|
|
3
|
+
"version": "0.7.4-alpha.4",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"licenses": [
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@nocobase/actions": "0.7.4-alpha.
|
|
14
|
-
"@nocobase/client": "0.7.4-alpha.
|
|
15
|
-
"@nocobase/database": "0.7.4-alpha.
|
|
16
|
-
"@nocobase/server": "0.7.4-alpha.
|
|
17
|
-
"@nocobase/utils": "0.7.4-alpha.
|
|
13
|
+
"@nocobase/actions": "0.7.4-alpha.4",
|
|
14
|
+
"@nocobase/client": "0.7.4-alpha.4",
|
|
15
|
+
"@nocobase/database": "0.7.4-alpha.4",
|
|
16
|
+
"@nocobase/server": "0.7.4-alpha.4",
|
|
17
|
+
"@nocobase/utils": "0.7.4-alpha.4",
|
|
18
18
|
"cron-parser": "4.4.0",
|
|
19
19
|
"json-templates": "^4.2.0",
|
|
20
20
|
"react-js-cron": "^1.4.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@nocobase/test": "0.7.4-alpha.
|
|
23
|
+
"@nocobase/test": "0.7.4-alpha.4"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "726c06b721b217a6aa5c1421b899d1315e552b57"
|
|
26
26
|
}
|