@nocobase/data-source-manager 2.2.1 → 2.2.2

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.2.1",
3
+ "version": "2.2.2",
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.2.1",
10
- "@nocobase/cache": "2.2.1",
11
- "@nocobase/database": "2.2.1",
12
- "@nocobase/resourcer": "2.2.1",
13
- "@nocobase/utils": "2.2.1",
9
+ "@nocobase/actions": "2.2.2",
10
+ "@nocobase/cache": "2.2.2",
11
+ "@nocobase/database": "2.2.2",
12
+ "@nocobase/resourcer": "2.2.2",
13
+ "@nocobase/utils": "2.2.2",
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": "29eedb8aa0160d7574063422a0ce01824c195861"
22
+ "gitHead": "336230738dda76255e363a0a68fcbec775c81564"
23
23
  }