@nocobase/plugin-data-source-main 1.2.13-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 (92) hide show
  1. package/package.json +2 -2
  2. package/dist/client/index.d.ts +0 -13
  3. package/dist/client/index.js +0 -10
  4. package/dist/externalVersion.js +0 -21
  5. package/dist/index.d.ts +0 -10
  6. package/dist/index.js +0 -48
  7. package/dist/locale/en-US.json +0 -4
  8. package/dist/locale/zh-CN.json +0 -4
  9. package/dist/server/collections/collectionCategories.d.ts +0 -11
  10. package/dist/server/collections/collectionCategories.js +0 -61
  11. package/dist/server/collections/collections.d.ts +0 -11
  12. package/dist/server/collections/collections.js +0 -101
  13. package/dist/server/collections/fields.d.ts +0 -11
  14. package/dist/server/collections/fields.js +0 -103
  15. package/dist/server/errors/field-is-depended-on-by-other.d.ts +0 -12
  16. package/dist/server/errors/field-is-depended-on-by-other.js +0 -44
  17. package/dist/server/errors/field-name-exists-error.d.ts +0 -13
  18. package/dist/server/errors/field-name-exists-error.js +0 -45
  19. package/dist/server/hooks/afterCreateForForeignKeyField.d.ts +0 -10
  20. package/dist/server/hooks/afterCreateForForeignKeyField.js +0 -217
  21. package/dist/server/hooks/afterCreateForReverseField.d.ts +0 -12
  22. package/dist/server/hooks/afterCreateForReverseField.js +0 -46
  23. package/dist/server/hooks/afterDestroyForForeignKeyField.d.ts +0 -10
  24. package/dist/server/hooks/afterDestroyForForeignKeyField.js +0 -98
  25. package/dist/server/hooks/beforeCreateForChildrenCollection.d.ts +0 -13
  26. package/dist/server/hooks/beforeCreateForChildrenCollection.js +0 -67
  27. package/dist/server/hooks/beforeCreateForReverseField.d.ts +0 -12
  28. package/dist/server/hooks/beforeCreateForReverseField.js +0 -73
  29. package/dist/server/hooks/beforeCreateForValidateField.d.ts +0 -15
  30. package/dist/server/hooks/beforeCreateForValidateField.js +0 -76
  31. package/dist/server/hooks/beforeCreateForViewCollection.d.ts +0 -13
  32. package/dist/server/hooks/beforeCreateForViewCollection.js +0 -39
  33. package/dist/server/hooks/beforeDestoryField.d.ts +0 -2
  34. package/dist/server/hooks/beforeDestoryField.js +0 -80
  35. package/dist/server/hooks/beforeDestroyForeignKey.d.ts +0 -10
  36. package/dist/server/hooks/beforeDestroyForeignKey.js +0 -75
  37. package/dist/server/hooks/beforeInitOptions.d.ts +0 -23
  38. package/dist/server/hooks/beforeInitOptions.js +0 -137
  39. package/dist/server/hooks/index.d.ts +0 -13
  40. package/dist/server/hooks/index.js +0 -38
  41. package/dist/server/index.d.ts +0 -12
  42. package/dist/server/index.js +0 -54
  43. package/dist/server/migrations/20220613103214-alert-sub-table.d.ts +0 -13
  44. package/dist/server/migrations/20220613103214-alert-sub-table.js +0 -50
  45. package/dist/server/migrations/20220704225714-drop-foreign-keys.d.ts +0 -13
  46. package/dist/server/migrations/20220704225714-drop-foreign-keys.js +0 -79
  47. package/dist/server/migrations/20221101111110-update-foreign-fields.d.ts +0 -13
  48. package/dist/server/migrations/20221101111110-update-foreign-fields.js +0 -74
  49. package/dist/server/migrations/20221104151410-update-collections-hidden.d.ts +0 -13
  50. package/dist/server/migrations/20221104151410-update-collections-hidden.js +0 -57
  51. package/dist/server/migrations/20221121111110-update-fk-type.d.ts +0 -13
  52. package/dist/server/migrations/20221121111110-update-fk-type.js +0 -155
  53. package/dist/server/migrations/20221121111113-update-id-to-bigint.d.ts +0 -13
  54. package/dist/server/migrations/20221121111113-update-id-to-bigint.js +0 -189
  55. package/dist/server/migrations/20221221103220-timestamps.d.ts +0 -13
  56. package/dist/server/migrations/20221221103220-timestamps.js +0 -55
  57. package/dist/server/migrations/20230225111112-drop-ui-schema-relation.d.ts +0 -13
  58. package/dist/server/migrations/20230225111112-drop-ui-schema-relation.js +0 -97
  59. package/dist/server/migrations/20230509111114-alert-ui-schema.d.ts +0 -13
  60. package/dist/server/migrations/20230509111114-alert-ui-schema.js +0 -87
  61. package/dist/server/migrations/20230623145414-number-step.d.ts +0 -13
  62. package/dist/server/migrations/20230623145414-number-step.js +0 -81
  63. package/dist/server/migrations/20230704222935-tableoid.d.ts +0 -13
  64. package/dist/server/migrations/20230704222935-tableoid.js +0 -83
  65. package/dist/server/migrations/20230918024546-set-collection-schema.d.ts +0 -13
  66. package/dist/server/migrations/20230918024546-set-collection-schema.js +0 -55
  67. package/dist/server/migrations/20240220153103-install-main-datasource.d.ts +0 -14
  68. package/dist/server/migrations/20240220153103-install-main-datasource.js +0 -51
  69. package/dist/server/migrations/20240419182147-fix-created-by-field-target.d.ts +0 -14
  70. package/dist/server/migrations/20240419182147-fix-created-by-field-target.js +0 -49
  71. package/dist/server/migrations/20240420105949-add-sort-field.d.ts +0 -14
  72. package/dist/server/migrations/20240420105949-add-sort-field.js +0 -81
  73. package/dist/server/migrations/20240517101001-fix-target-option-in-tree-collection.d.ts +0 -14
  74. package/dist/server/migrations/20240517101001-fix-target-option-in-tree-collection.js +0 -54
  75. package/dist/server/models/collection.d.ts +0 -27
  76. package/dist/server/models/collection.js +0 -197
  77. package/dist/server/models/field.d.ts +0 -26
  78. package/dist/server/models/field.js +0 -173
  79. package/dist/server/models/index.d.ts +0 -10
  80. package/dist/server/models/index.js +0 -32
  81. package/dist/server/repositories/collection-repository.d.ts +0 -20
  82. package/dist/server/repositories/collection-repository.js +0 -169
  83. package/dist/server/repositories/index.d.ts +0 -9
  84. package/dist/server/repositories/index.js +0 -30
  85. package/dist/server/resourcers/collections.d.ts +0 -12
  86. package/dist/server/resourcers/collections.js +0 -102
  87. package/dist/server/resourcers/views.d.ts +0 -17
  88. package/dist/server/resourcers/views.js +0 -116
  89. package/dist/server/server.d.ts +0 -19
  90. package/dist/server/server.js +0 -407
  91. package/dist/swagger/index.d.ts +0 -413
  92. package/dist/swagger/index.js +0 -440
@@ -1,413 +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
- tags: ({
15
- name: string;
16
- description?: undefined;
17
- } | {
18
- name: string;
19
- description: string;
20
- })[];
21
- paths: {
22
- '/collections:list': {
23
- get: {
24
- tags: string[];
25
- description: string;
26
- parameters: any[];
27
- responses: {
28
- '200': {
29
- description: string;
30
- };
31
- };
32
- };
33
- };
34
- '/collections:get': {
35
- get: {
36
- tags: string[];
37
- description: string;
38
- parameters: any[];
39
- responses: {
40
- '200': {
41
- description: string;
42
- };
43
- };
44
- };
45
- };
46
- '/collections:create': {
47
- post: {
48
- tags: string[];
49
- description: string;
50
- parameters: any[];
51
- responses: {
52
- '200': {
53
- description: string;
54
- };
55
- };
56
- };
57
- };
58
- '/collections:update': {
59
- post: {
60
- tags: string[];
61
- description: string;
62
- parameters: any[];
63
- responses: {
64
- '200': {
65
- description: string;
66
- };
67
- };
68
- };
69
- };
70
- '/collections:destroy': {
71
- post: {
72
- tags: string[];
73
- description: string;
74
- parameters: any[];
75
- responses: {
76
- '200': {
77
- description: string;
78
- };
79
- };
80
- };
81
- };
82
- '/collections:move': {
83
- post: {
84
- tags: string[];
85
- description: string;
86
- parameters: any[];
87
- responses: {
88
- '200': {
89
- description: string;
90
- };
91
- };
92
- };
93
- };
94
- '/collections:setFields': {
95
- post: {
96
- tags: string[];
97
- description: string;
98
- parameters: any[];
99
- responses: {
100
- '200': {
101
- description: string;
102
- };
103
- };
104
- };
105
- };
106
- '/collections/{collectionName}/fields:get': {
107
- get: {
108
- tags: string[];
109
- description: string;
110
- parameters: any[];
111
- responses: {
112
- '200': {
113
- description: string;
114
- };
115
- };
116
- };
117
- };
118
- '/collections/{collectionName}/fields:list': {
119
- get: {
120
- tags: string[];
121
- description: string;
122
- parameters: any[];
123
- responses: {
124
- '200': {
125
- description: string;
126
- };
127
- };
128
- };
129
- };
130
- '/collections/{collectionName}/fields:create': {
131
- post: {
132
- tags: string[];
133
- description: string;
134
- parameters: any[];
135
- responses: {
136
- '200': {
137
- description: string;
138
- };
139
- };
140
- };
141
- };
142
- '/collections/{collectionName}/fields:update': {
143
- post: {
144
- tags: string[];
145
- description: string;
146
- parameters: any[];
147
- responses: {
148
- '200': {
149
- description: string;
150
- };
151
- };
152
- };
153
- };
154
- '/collections/{collectionName}/fields:destroy': {
155
- post: {
156
- tags: string[];
157
- description: string;
158
- parameters: any[];
159
- responses: {
160
- '200': {
161
- description: string;
162
- };
163
- };
164
- };
165
- };
166
- '/collections/{collectionName}/fields:move': {
167
- post: {
168
- tags: string[];
169
- description: string;
170
- parameters: any[];
171
- responses: {
172
- '200': {
173
- description: string;
174
- };
175
- };
176
- };
177
- };
178
- '/collectionCategories:list': {
179
- post: {
180
- tags: string[];
181
- description: string;
182
- parameters: any[];
183
- responses: {
184
- '200': {
185
- description: string;
186
- };
187
- };
188
- };
189
- };
190
- '/collectionCategories:get': {
191
- post: {
192
- tags: string[];
193
- description: string;
194
- parameters: any[];
195
- responses: {
196
- '200': {
197
- description: string;
198
- };
199
- };
200
- };
201
- };
202
- '/collectionCategories:create': {
203
- post: {
204
- tags: string[];
205
- description: string;
206
- parameters: any[];
207
- responses: {
208
- '200': {
209
- description: string;
210
- };
211
- };
212
- };
213
- };
214
- '/collectionCategories:update': {
215
- post: {
216
- tags: string[];
217
- description: string;
218
- parameters: any[];
219
- responses: {
220
- '200': {
221
- description: string;
222
- };
223
- };
224
- };
225
- };
226
- '/collectionCategories:destroy': {
227
- post: {
228
- tags: string[];
229
- description: string;
230
- parameters: any[];
231
- responses: {
232
- '200': {
233
- description: string;
234
- };
235
- };
236
- };
237
- };
238
- '/collectionCategories:move': {
239
- post: {
240
- tags: string[];
241
- description: string;
242
- parameters: any[];
243
- responses: {
244
- '200': {
245
- description: string;
246
- };
247
- };
248
- };
249
- };
250
- '/dbViews:get': {
251
- get: {
252
- tags: string[];
253
- summary: string;
254
- parameters: ({
255
- name: string;
256
- in: string;
257
- description: string;
258
- schema: {
259
- type: string;
260
- };
261
- required: boolean;
262
- example: string;
263
- } | {
264
- name: string;
265
- in: string;
266
- description: string;
267
- schema: {
268
- type: string;
269
- };
270
- required?: undefined;
271
- example?: undefined;
272
- })[];
273
- responses: {
274
- '200': {
275
- description: string;
276
- content: {
277
- 'application/json': {
278
- schema: {
279
- type: string;
280
- properties: {
281
- data: {
282
- type: string;
283
- properties: {
284
- fields: {
285
- type: string;
286
- additionalProperties: {
287
- type: string;
288
- properties: {
289
- name: {
290
- type: string;
291
- description: string;
292
- };
293
- type: {
294
- type: string;
295
- description: string;
296
- };
297
- source: {
298
- type: string;
299
- required: boolean;
300
- description: string;
301
- };
302
- };
303
- };
304
- };
305
- sources: {
306
- type: string;
307
- items: {
308
- type: string;
309
- };
310
- };
311
- };
312
- };
313
- };
314
- };
315
- };
316
- };
317
- };
318
- };
319
- };
320
- };
321
- '/dbViews:list': {
322
- get: {
323
- tags: string[];
324
- summary: string;
325
- responses: {
326
- '200': {
327
- description: string;
328
- content: {
329
- 'application/json': {
330
- schema: {
331
- type: string;
332
- properties: {
333
- data: {
334
- type: string;
335
- items: {
336
- type: string;
337
- properties: {
338
- name: {
339
- type: string;
340
- description: string;
341
- };
342
- definition: {
343
- type: string;
344
- description: string;
345
- };
346
- schema: {
347
- type: string;
348
- description: string;
349
- };
350
- };
351
- };
352
- };
353
- };
354
- };
355
- };
356
- };
357
- };
358
- };
359
- };
360
- };
361
- '/dbViews:query': {
362
- get: {
363
- tags: string[];
364
- summary: string;
365
- parameters: ({
366
- name: string;
367
- in: string;
368
- description: string;
369
- schema: {
370
- type: string;
371
- };
372
- required: boolean;
373
- example: string;
374
- } | {
375
- name: string;
376
- in: string;
377
- description: string;
378
- schema: {
379
- type: string;
380
- };
381
- required?: undefined;
382
- example?: undefined;
383
- })[];
384
- responses: {
385
- '200': {
386
- description: string;
387
- content: {
388
- 'application/json': {
389
- schema: {
390
- type: string;
391
- properties: {
392
- data: {
393
- type: string;
394
- items: {
395
- type: string;
396
- description: string;
397
- additionalProperties: {
398
- type: string;
399
- description: string;
400
- };
401
- };
402
- };
403
- };
404
- };
405
- };
406
- };
407
- };
408
- };
409
- };
410
- };
411
- };
412
- };
413
- export default _default;