@nocobase/plugin-users 1.3.30-beta → 1.3.32-beta

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.
@@ -10,16 +10,16 @@
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
12
  "antd": "5.12.8",
13
- "@nocobase/client": "1.3.30-beta",
13
+ "@nocobase/client": "1.3.32-beta",
14
14
  "@formily/react": "2.3.0",
15
15
  "@formily/core": "2.3.0",
16
- "@nocobase/plugin-acl": "1.3.30-beta",
17
- "@nocobase/utils": "1.3.30-beta",
16
+ "@nocobase/plugin-acl": "1.3.32-beta",
17
+ "@nocobase/utils": "1.3.32-beta",
18
18
  "react-i18next": "11.18.6",
19
- "@nocobase/database": "1.3.30-beta",
20
- "@nocobase/server": "1.3.30-beta",
21
- "@nocobase/cache": "1.3.30-beta",
19
+ "@nocobase/database": "1.3.32-beta",
20
+ "@nocobase/server": "1.3.32-beta",
21
+ "@nocobase/cache": "1.3.32-beta",
22
22
  "@formily/shared": "2.3.0",
23
- "@nocobase/actions": "1.3.30-beta",
23
+ "@nocobase/actions": "1.3.32-beta",
24
24
  "lodash": "4.17.21"
25
25
  };
@@ -0,0 +1,192 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ declare const _default: {
10
+ openapi: string;
11
+ info: {
12
+ title: string;
13
+ };
14
+ paths: {
15
+ '/users:list': {
16
+ get: {
17
+ tags: string[];
18
+ description: string;
19
+ parameters: any[];
20
+ responses: {
21
+ 200: {
22
+ description: string;
23
+ content: {
24
+ 'application/json': {
25
+ schema: {
26
+ type: string;
27
+ items: {
28
+ $ref: string;
29
+ };
30
+ };
31
+ };
32
+ };
33
+ };
34
+ };
35
+ };
36
+ };
37
+ '/users:get': {
38
+ get: {
39
+ tags: string[];
40
+ description: string;
41
+ parameters: {
42
+ name: string;
43
+ in: string;
44
+ description: string;
45
+ required: boolean;
46
+ schema: {
47
+ type: string;
48
+ };
49
+ }[];
50
+ responses: {
51
+ 200: {
52
+ description: string;
53
+ content: {
54
+ 'application/json': {
55
+ schema: {
56
+ $ref: string;
57
+ };
58
+ };
59
+ };
60
+ };
61
+ };
62
+ };
63
+ };
64
+ '/users:create': {
65
+ post: {
66
+ tags: string[];
67
+ description: string;
68
+ requestBody: {
69
+ content: {
70
+ 'application/json': {
71
+ schema: {
72
+ $ref: string;
73
+ };
74
+ };
75
+ };
76
+ };
77
+ responses: {
78
+ '200': {
79
+ description: string;
80
+ content: {
81
+ 'application/json': {
82
+ schema: {
83
+ $ref: string;
84
+ };
85
+ };
86
+ };
87
+ };
88
+ };
89
+ };
90
+ };
91
+ '/users:update': {
92
+ post: {
93
+ tags: string[];
94
+ description: string;
95
+ parameters: {
96
+ name: string;
97
+ in: string;
98
+ description: string;
99
+ required: boolean;
100
+ schema: {
101
+ type: string;
102
+ };
103
+ }[];
104
+ requestBody: {
105
+ content: {
106
+ 'application/json': {
107
+ schema: {
108
+ $ref: string;
109
+ };
110
+ };
111
+ };
112
+ };
113
+ responses: {
114
+ 200: {
115
+ description: string;
116
+ content: {
117
+ 'application/json': {
118
+ schema: {
119
+ $ref: string;
120
+ };
121
+ };
122
+ };
123
+ };
124
+ };
125
+ };
126
+ };
127
+ '/users:destroy': {
128
+ post: {
129
+ tags: string[];
130
+ description: string;
131
+ parameters: {
132
+ name: string;
133
+ in: string;
134
+ description: string;
135
+ required: boolean;
136
+ schema: {
137
+ type: string;
138
+ };
139
+ }[];
140
+ responses: {
141
+ '200': {
142
+ description: string;
143
+ };
144
+ };
145
+ };
146
+ };
147
+ };
148
+ components: {
149
+ schemas: {
150
+ user: {
151
+ type: string;
152
+ properties: {
153
+ id: {
154
+ type: string;
155
+ description: string;
156
+ };
157
+ nickname: {
158
+ type: string;
159
+ description: string;
160
+ };
161
+ username: {
162
+ type: string;
163
+ description: string;
164
+ };
165
+ email: {
166
+ type: string;
167
+ description: string;
168
+ };
169
+ phone: {
170
+ type: string;
171
+ description: string;
172
+ };
173
+ password: {
174
+ type: string;
175
+ description: string;
176
+ };
177
+ createdAt: {
178
+ type: string;
179
+ format: string;
180
+ description: string;
181
+ };
182
+ updatedAt: {
183
+ type: string;
184
+ format: string;
185
+ description: string;
186
+ };
187
+ };
188
+ };
189
+ };
190
+ };
191
+ };
192
+ export default _default;
@@ -0,0 +1,220 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var swagger_exports = {};
28
+ __export(swagger_exports, {
29
+ default: () => swagger_default
30
+ });
31
+ module.exports = __toCommonJS(swagger_exports);
32
+ var swagger_default = {
33
+ openapi: "3.0.2",
34
+ info: {
35
+ title: "NocoBase API - User plugin"
36
+ },
37
+ paths: {
38
+ "/users:list": {
39
+ get: {
40
+ tags: ["users"],
41
+ description: "",
42
+ parameters: [],
43
+ responses: {
44
+ 200: {
45
+ description: "ok",
46
+ content: {
47
+ "application/json": {
48
+ schema: {
49
+ type: "array",
50
+ items: {
51
+ $ref: "#/components/schemas/user"
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ },
60
+ "/users:get": {
61
+ get: {
62
+ tags: ["users"],
63
+ description: "",
64
+ parameters: [
65
+ {
66
+ name: "filterByTk",
67
+ in: "query",
68
+ description: "user id",
69
+ required: true,
70
+ schema: {
71
+ type: "integer"
72
+ }
73
+ }
74
+ ],
75
+ responses: {
76
+ 200: {
77
+ description: "ok",
78
+ content: {
79
+ "application/json": {
80
+ schema: {
81
+ $ref: "#/components/schemas/user"
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "/users:create": {
90
+ post: {
91
+ tags: ["users"],
92
+ description: "",
93
+ requestBody: {
94
+ content: {
95
+ "application/json": {
96
+ schema: {
97
+ $ref: "#/components/schemas/user"
98
+ }
99
+ }
100
+ }
101
+ },
102
+ responses: {
103
+ "200": {
104
+ description: "OK",
105
+ content: {
106
+ "application/json": {
107
+ schema: {
108
+ $ref: "#/components/schemas/user"
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ },
116
+ "/users:update": {
117
+ post: {
118
+ tags: ["users"],
119
+ description: "",
120
+ parameters: [
121
+ {
122
+ name: "filterByTk",
123
+ in: "query",
124
+ description: "user id",
125
+ required: true,
126
+ schema: {
127
+ type: "integer"
128
+ }
129
+ }
130
+ ],
131
+ requestBody: {
132
+ content: {
133
+ "application/json": {
134
+ schema: {
135
+ $ref: "#/components/schemas/user"
136
+ }
137
+ }
138
+ }
139
+ },
140
+ responses: {
141
+ 200: {
142
+ description: "ok",
143
+ content: {
144
+ "application/json": {
145
+ schema: {
146
+ $ref: "#/components/schemas/user"
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+ },
154
+ "/users:destroy": {
155
+ post: {
156
+ tags: ["users"],
157
+ description: "",
158
+ parameters: [
159
+ {
160
+ name: "filterByTk",
161
+ in: "query",
162
+ description: "role name",
163
+ required: true,
164
+ schema: {
165
+ type: "string"
166
+ }
167
+ }
168
+ ],
169
+ responses: {
170
+ "200": {
171
+ description: "OK"
172
+ }
173
+ }
174
+ }
175
+ }
176
+ },
177
+ components: {
178
+ schemas: {
179
+ user: {
180
+ type: "object",
181
+ properties: {
182
+ id: {
183
+ type: "integer",
184
+ description: "\u7528\u6237ID"
185
+ },
186
+ nickname: {
187
+ type: "string",
188
+ description: "\u6635\u79F0"
189
+ },
190
+ username: {
191
+ type: "string",
192
+ description: "\u7528\u6237\u540D"
193
+ },
194
+ email: {
195
+ type: "string",
196
+ description: "email"
197
+ },
198
+ phone: {
199
+ type: "string",
200
+ description: "\u624B\u673A\u53F7\u7801"
201
+ },
202
+ password: {
203
+ type: "string",
204
+ description: "\u5BC6\u7801"
205
+ },
206
+ createdAt: {
207
+ type: "string",
208
+ format: "date-time",
209
+ description: "\u521B\u5EFA\u65F6\u95F4"
210
+ },
211
+ updatedAt: {
212
+ type: "string",
213
+ format: "date-time",
214
+ description: "\u66F4\u65B0\u65F6\u95F4"
215
+ }
216
+ }
217
+ }
218
+ }
219
+ }
220
+ };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "用户",
5
5
  "description": "Provides basic user model, as well as created by and updated by fields.",
6
6
  "description.zh-CN": "提供了基础的用户模型,以及创建人和最后更新人字段。",
7
- "version": "1.3.30-beta",
7
+ "version": "1.3.32-beta",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/users",
@@ -24,7 +24,7 @@
24
24
  "@nocobase/test": "1.x",
25
25
  "@nocobase/utils": "1.x"
26
26
  },
27
- "gitHead": "65319623c9a00fc64dd8f37d470696f7e1e542a6",
27
+ "gitHead": "ace662dd3902de2431f6c1d9dad66bbe275060c2",
28
28
  "keywords": [
29
29
  "Users & permissions"
30
30
  ]
@@ -1,117 +0,0 @@
1
- {
2
- "openapi": "3.0.2",
3
- "info": {
4
- "title": "NocoBase API - Users plugin"
5
- },
6
- "tags": [],
7
- "paths": {
8
- "/users:list": {
9
- "get": {
10
- "tags": ["users"],
11
- "description": "",
12
- "parameters": [],
13
- "responses": {
14
- "200": {
15
- "description": "OK"
16
- }
17
- }
18
- }
19
- },
20
- "/users:get": {
21
- "get": {
22
- "tags": ["users"],
23
- "description": "",
24
- "parameters": [],
25
- "responses": {
26
- "200": {
27
- "description": "OK"
28
- }
29
- }
30
- }
31
- },
32
- "/users:create": {
33
- "post": {
34
- "tags": ["users"],
35
- "description": "",
36
- "parameters": [],
37
- "responses": {
38
- "200": {
39
- "description": "OK"
40
- }
41
- }
42
- }
43
- },
44
- "/users:update": {
45
- "post": {
46
- "tags": ["users"],
47
- "description": "",
48
- "parameters": [],
49
- "responses": {
50
- "200": {
51
- "description": "OK"
52
- }
53
- }
54
- }
55
- },
56
- "/users:updateProfile": {
57
- "post": {
58
- "tags": ["users"],
59
- "description": "",
60
- "parameters": [],
61
- "responses": {
62
- "200": {
63
- "description": "OK"
64
- }
65
- }
66
- }
67
- },
68
- "/users:changePassword": {
69
- "post": {
70
- "tags": ["users"],
71
- "description": "",
72
- "parameters": [],
73
- "responses": {
74
- "200": {
75
- "description": "OK"
76
- }
77
- }
78
- }
79
- },
80
- "/users:destroy": {
81
- "post": {
82
- "tags": ["users"],
83
- "description": "",
84
- "parameters": [],
85
- "responses": {
86
- "200": {
87
- "description": "OK"
88
- }
89
- }
90
- }
91
- },
92
- "/{collectionName}/{collectionIndex}/createdBy:get": {
93
- "post": {
94
- "tags": ["$collection.createdBy"],
95
- "description": "",
96
- "parameters": [],
97
- "responses": {
98
- "200": {
99
- "description": "OK"
100
- }
101
- }
102
- }
103
- },
104
- "/{collectionName}/{collectionIndex}/updatedBy:get": {
105
- "post": {
106
- "tags": ["$collection.updatedBy"],
107
- "description": "",
108
- "parameters": [],
109
- "responses": {
110
- "200": {
111
- "description": "OK"
112
- }
113
- }
114
- }
115
- }
116
- }
117
- }