@nocobase/plugin-acl 1.2.12-alpha → 1.3.0-alpha.20240710084543

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.
Files changed (67) hide show
  1. package/package.json +2 -2
  2. package/dist/client/NewRole.d.ts +0 -10
  3. package/dist/client/RolesManagement.d.ts +0 -10
  4. package/dist/client/RolesManagerProvider.d.ts +0 -13
  5. package/dist/client/RolesMenu.d.ts +0 -15
  6. package/dist/client/hooks/load-more-observer.d.ts +0 -15
  7. package/dist/client/index.d.ts +0 -16
  8. package/dist/client/index.js +0 -18
  9. package/dist/client/locale.d.ts +0 -9
  10. package/dist/client/permissions/ActionPermissions.d.ts +0 -12
  11. package/dist/client/permissions/AvailableActions.d.ts +0 -11
  12. package/dist/client/permissions/GeneralPermissions.d.ts +0 -12
  13. package/dist/client/permissions/MenuItemsProvider.d.ts +0 -12
  14. package/dist/client/permissions/MenuPermissions.d.ts +0 -12
  15. package/dist/client/permissions/Permissions.d.ts +0 -12
  16. package/dist/client/permissions/PluginPermissions.d.ts +0 -12
  17. package/dist/client/permissions/RolesResourcesActions.d.ts +0 -11
  18. package/dist/client/permissions/ScopeSelect.d.ts +0 -11
  19. package/dist/client/permissions/StrategyActions.d.ts +0 -10
  20. package/dist/client/permissions/style.d.ts +0 -9
  21. package/dist/client/roles-manager.d.ts +0 -18
  22. package/dist/client/schemas/roles.d.ts +0 -63
  23. package/dist/client/schemas/scopes.d.ts +0 -75
  24. package/dist/externalVersion.js +0 -31
  25. package/dist/index.d.ts +0 -10
  26. package/dist/index.js +0 -48
  27. package/dist/locale/en-US.json +0 -6
  28. package/dist/locale/ko_KR.json +0 -4
  29. package/dist/locale/zh-CN.json +0 -11
  30. package/dist/server/actions/available-actions.d.ts +0 -15
  31. package/dist/server/actions/available-actions.js +0 -51
  32. package/dist/server/actions/role-check.d.ts +0 -9
  33. package/dist/server/actions/role-check.js +0 -76
  34. package/dist/server/actions/role-collections.d.ts +0 -15
  35. package/dist/server/actions/role-collections.js +0 -84
  36. package/dist/server/actions/user-setDefaultRole.d.ts +0 -10
  37. package/dist/server/actions/user-setDefaultRole.js +0 -74
  38. package/dist/server/collections/roles-users.d.ts +0 -10
  39. package/dist/server/collections/roles-users.js +0 -39
  40. package/dist/server/collections/roles.d.ts +0 -10
  41. package/dist/server/collections/roles.js +0 -128
  42. package/dist/server/collections/rolesResources.d.ts +0 -10
  43. package/dist/server/collections/rolesResources.js +0 -64
  44. package/dist/server/collections/rolesResourcesActions.d.ts +0 -10
  45. package/dist/server/collections/rolesResourcesActions.js +0 -60
  46. package/dist/server/collections/rolesResourcesScopes.d.ts +0 -10
  47. package/dist/server/collections/rolesResourcesScopes.js +0 -54
  48. package/dist/server/collections/users.d.ts +0 -14
  49. package/dist/server/collections/users.js +0 -61
  50. package/dist/server/index.d.ts +0 -13
  51. package/dist/server/index.js +0 -56
  52. package/dist/server/middlewares/setCurrentRole.d.ts +0 -10
  53. package/dist/server/middlewares/setCurrentRole.js +0 -86
  54. package/dist/server/middlewares/with-acl-meta.d.ts +0 -10
  55. package/dist/server/middlewares/with-acl-meta.js +0 -255
  56. package/dist/server/migrations/20221214072638-set-role-snippets.d.ts +0 -14
  57. package/dist/server/migrations/20221214072638-set-role-snippets.js +0 -53
  58. package/dist/server/model/RoleModel.d.ts +0 -16
  59. package/dist/server/model/RoleModel.js +0 -55
  60. package/dist/server/model/RoleResourceActionModel.d.ts +0 -17
  61. package/dist/server/model/RoleResourceActionModel.js +0 -53
  62. package/dist/server/model/RoleResourceModel.d.ts +0 -20
  63. package/dist/server/model/RoleResourceModel.js +0 -72
  64. package/dist/server/server.d.ts +0 -24
  65. package/dist/server/server.js +0 -552
  66. package/dist/swagger/index.d.ts +0 -374
  67. package/dist/swagger/index.js +0 -404
@@ -1,374 +0,0 @@
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
- '/roles: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
- '/roles: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
- '/roles: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
- '/roles: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
- '/roles: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
- '/roles:check': {
148
- get: {
149
- tags: string[];
150
- description: string;
151
- responses: {
152
- 200: {
153
- description: string;
154
- content: {
155
- 'application/json': {
156
- schema: {
157
- $ref: string;
158
- };
159
- };
160
- };
161
- };
162
- };
163
- };
164
- };
165
- '/roles:setDefaultRole': {
166
- post: {
167
- tags: string[];
168
- description: string;
169
- requestBody: {
170
- content: {
171
- 'application/json': {
172
- schema: {
173
- type: string;
174
- properties: {
175
- roleName: {
176
- type: string;
177
- };
178
- };
179
- };
180
- };
181
- };
182
- };
183
- responses: {
184
- '200': {
185
- description: string;
186
- };
187
- };
188
- };
189
- };
190
- '/roles/{roleName}/collections:list': {
191
- get: {
192
- tags: string[];
193
- description: string;
194
- parameters: {
195
- name: string;
196
- in: string;
197
- description: string;
198
- required: boolean;
199
- schema: {
200
- type: string;
201
- };
202
- }[];
203
- responses: {
204
- '200': {
205
- description: string;
206
- content: {
207
- 'application/json': {
208
- schema: {
209
- type: string;
210
- items: {
211
- type: string;
212
- properties: {
213
- type: {
214
- type: string;
215
- description: string;
216
- };
217
- name: {
218
- type: string;
219
- description: string;
220
- };
221
- collectionName: {
222
- type: string;
223
- description: string;
224
- };
225
- title: {
226
- type: string;
227
- description: string;
228
- };
229
- roleName: {
230
- type: string;
231
- description: string;
232
- };
233
- usingConfig: {
234
- type: string;
235
- enum: string[];
236
- description: string;
237
- };
238
- exists: {
239
- type: string;
240
- description: string;
241
- };
242
- };
243
- };
244
- };
245
- };
246
- };
247
- };
248
- };
249
- };
250
- };
251
- '/availableActions:list': {
252
- get: {
253
- tags: string[];
254
- description: string;
255
- parameters: any[];
256
- responses: {
257
- '200': {
258
- description: string;
259
- content: {
260
- 'application/json': {
261
- schema: {
262
- type: string;
263
- items: {
264
- type: string;
265
- properties: {
266
- name: {
267
- type: string;
268
- description: string;
269
- };
270
- displayName: {
271
- type: string;
272
- description: string;
273
- };
274
- allowConfigureFields: {
275
- type: string;
276
- description: string;
277
- };
278
- onNewRecord: {
279
- type: string;
280
- description: string;
281
- };
282
- type: {
283
- type: string;
284
- description: string;
285
- };
286
- aliases: {
287
- type: string;
288
- items: {
289
- type: string;
290
- };
291
- description: string;
292
- };
293
- };
294
- };
295
- };
296
- };
297
- };
298
- };
299
- };
300
- };
301
- };
302
- };
303
- components: {
304
- schemas: {
305
- role: {
306
- type: string;
307
- properties: {
308
- title: {
309
- type: string;
310
- description: string;
311
- };
312
- name: {
313
- type: string;
314
- description: string;
315
- };
316
- description: {
317
- type: string;
318
- description: string;
319
- };
320
- hidden: {
321
- type: string;
322
- description: string;
323
- };
324
- default: {
325
- type: string;
326
- description: string;
327
- };
328
- allowConfigure: {
329
- type: string;
330
- description: string;
331
- };
332
- allowNewMenu: {
333
- type: string;
334
- description: string;
335
- };
336
- snippets: {
337
- type: string;
338
- items: {
339
- type: string;
340
- };
341
- description: string;
342
- };
343
- strategy: {
344
- type: string;
345
- description: string;
346
- items: {
347
- type: string;
348
- properties: {
349
- actions: {
350
- type: string;
351
- items: {
352
- type: string;
353
- };
354
- description: string;
355
- };
356
- };
357
- };
358
- };
359
- createdAt: {
360
- type: string;
361
- format: string;
362
- description: string;
363
- };
364
- updatedAt: {
365
- type: string;
366
- format: string;
367
- description: string;
368
- };
369
- };
370
- };
371
- };
372
- };
373
- };
374
- export default _default;