@nocobase/data-source-manager 2.3.0-beta.4 → 2.3.0-beta.6
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.
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
import coreActions from '@nocobase/actions';
|
|
10
10
|
import { list } from './default-actions/list';
|
|
11
11
|
export declare function loadDefaultActions(): {
|
|
12
|
+
firstOrCreate: (ctx: import("@nocobase/actions").Context, next: any) => Promise<void>;
|
|
13
|
+
updateOrCreate: (ctx: import("@nocobase/actions").Context, next: any) => Promise<void>;
|
|
12
14
|
list: typeof list;
|
|
13
15
|
query: typeof coreActions.query;
|
|
14
16
|
};
|
|
@@ -75,14 +75,6 @@ const actions = {
|
|
|
75
75
|
params: ["filterByTk", "filter"],
|
|
76
76
|
method: "destroy"
|
|
77
77
|
},
|
|
78
|
-
firstOrCreate: {
|
|
79
|
-
params: ["values", "filterKeys", "whitelist", "blacklist", "updateAssociationValues", "targetCollection"],
|
|
80
|
-
method: "firstOrCreate"
|
|
81
|
-
},
|
|
82
|
-
updateOrCreate: {
|
|
83
|
-
params: ["values", "filterKeys", "whitelist", "blacklist", "updateAssociationValues", "targetCollection"],
|
|
84
|
-
method: "updateOrCreate"
|
|
85
|
-
},
|
|
86
78
|
remove: {
|
|
87
79
|
params(ctx) {
|
|
88
80
|
return ctx.action.params.filterByTk || ctx.action.params.filterByTks || ctx.action.params.values;
|
|
@@ -108,6 +100,8 @@ function loadDefaultActions() {
|
|
|
108
100
|
carry[key] = (0, import_proxy_to_repository.proxyToRepository)(actions[key].params, actions[key].method);
|
|
109
101
|
return carry;
|
|
110
102
|
}, {}),
|
|
103
|
+
firstOrCreate: import_actions.default.firstOrCreate,
|
|
104
|
+
updateOrCreate: import_actions.default.updateOrCreate,
|
|
111
105
|
list: import_list.list,
|
|
112
106
|
query: import_actions.default.query
|
|
113
107
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/data-source-manager",
|
|
3
|
-
"version": "2.3.0-beta.
|
|
3
|
+
"version": "2.3.0-beta.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/actions": "2.3.0-beta.
|
|
10
|
-
"@nocobase/cache": "2.3.0-beta.
|
|
11
|
-
"@nocobase/database": "2.3.0-beta.
|
|
12
|
-
"@nocobase/resourcer": "2.3.0-beta.
|
|
13
|
-
"@nocobase/utils": "2.3.0-beta.
|
|
9
|
+
"@nocobase/actions": "2.3.0-beta.6",
|
|
10
|
+
"@nocobase/cache": "2.3.0-beta.6",
|
|
11
|
+
"@nocobase/database": "2.3.0-beta.6",
|
|
12
|
+
"@nocobase/resourcer": "2.3.0-beta.6",
|
|
13
|
+
"@nocobase/utils": "2.3.0-beta.6",
|
|
14
14
|
"@types/jsonwebtoken": "^8.5.8",
|
|
15
15
|
"jsonwebtoken": "^9.0.2"
|
|
16
16
|
},
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
20
20
|
"directory": "packages/auth"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "45b23791f5245d1417047b122d1a76764aaf5473"
|
|
23
23
|
}
|