@nocobase/plugin-data-source-main 1.3.0-alpha.20240710084543 → 1.3.0-alpha.20240710141659

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/dist/client/index.d.ts +13 -0
  2. package/dist/client/index.js +10 -0
  3. package/dist/externalVersion.js +21 -0
  4. package/dist/index.d.ts +10 -0
  5. package/dist/index.js +48 -0
  6. package/dist/locale/en-US.json +4 -0
  7. package/dist/locale/zh-CN.json +4 -0
  8. package/dist/server/collections/collectionCategories.d.ts +11 -0
  9. package/dist/server/collections/collectionCategories.js +61 -0
  10. package/dist/server/collections/collections.d.ts +11 -0
  11. package/dist/server/collections/collections.js +101 -0
  12. package/dist/server/collections/fields.d.ts +11 -0
  13. package/dist/server/collections/fields.js +103 -0
  14. package/dist/server/errors/field-is-depended-on-by-other.d.ts +12 -0
  15. package/dist/server/errors/field-is-depended-on-by-other.js +44 -0
  16. package/dist/server/errors/field-name-exists-error.d.ts +13 -0
  17. package/dist/server/errors/field-name-exists-error.js +45 -0
  18. package/dist/server/hooks/afterCreateForForeignKeyField.d.ts +10 -0
  19. package/dist/server/hooks/afterCreateForForeignKeyField.js +217 -0
  20. package/dist/server/hooks/afterCreateForReverseField.d.ts +12 -0
  21. package/dist/server/hooks/afterCreateForReverseField.js +46 -0
  22. package/dist/server/hooks/afterDestroyForForeignKeyField.d.ts +10 -0
  23. package/dist/server/hooks/afterDestroyForForeignKeyField.js +98 -0
  24. package/dist/server/hooks/beforeCreateForChildrenCollection.d.ts +13 -0
  25. package/dist/server/hooks/beforeCreateForChildrenCollection.js +67 -0
  26. package/dist/server/hooks/beforeCreateForReverseField.d.ts +12 -0
  27. package/dist/server/hooks/beforeCreateForReverseField.js +73 -0
  28. package/dist/server/hooks/beforeCreateForValidateField.d.ts +15 -0
  29. package/dist/server/hooks/beforeCreateForValidateField.js +76 -0
  30. package/dist/server/hooks/beforeCreateForViewCollection.d.ts +13 -0
  31. package/dist/server/hooks/beforeCreateForViewCollection.js +39 -0
  32. package/dist/server/hooks/beforeDestoryField.d.ts +2 -0
  33. package/dist/server/hooks/beforeDestoryField.js +80 -0
  34. package/dist/server/hooks/beforeDestroyForeignKey.d.ts +10 -0
  35. package/dist/server/hooks/beforeDestroyForeignKey.js +75 -0
  36. package/dist/server/hooks/beforeInitOptions.d.ts +23 -0
  37. package/dist/server/hooks/beforeInitOptions.js +137 -0
  38. package/dist/server/hooks/index.d.ts +13 -0
  39. package/dist/server/hooks/index.js +38 -0
  40. package/dist/server/index.d.ts +12 -0
  41. package/dist/server/index.js +54 -0
  42. package/dist/server/migrations/20220613103214-alert-sub-table.d.ts +13 -0
  43. package/dist/server/migrations/20220613103214-alert-sub-table.js +50 -0
  44. package/dist/server/migrations/20220704225714-drop-foreign-keys.d.ts +13 -0
  45. package/dist/server/migrations/20220704225714-drop-foreign-keys.js +79 -0
  46. package/dist/server/migrations/20221101111110-update-foreign-fields.d.ts +13 -0
  47. package/dist/server/migrations/20221101111110-update-foreign-fields.js +74 -0
  48. package/dist/server/migrations/20221104151410-update-collections-hidden.d.ts +13 -0
  49. package/dist/server/migrations/20221104151410-update-collections-hidden.js +57 -0
  50. package/dist/server/migrations/20221121111110-update-fk-type.d.ts +13 -0
  51. package/dist/server/migrations/20221121111110-update-fk-type.js +155 -0
  52. package/dist/server/migrations/20221121111113-update-id-to-bigint.d.ts +13 -0
  53. package/dist/server/migrations/20221121111113-update-id-to-bigint.js +189 -0
  54. package/dist/server/migrations/20221221103220-timestamps.d.ts +13 -0
  55. package/dist/server/migrations/20221221103220-timestamps.js +55 -0
  56. package/dist/server/migrations/20230225111112-drop-ui-schema-relation.d.ts +13 -0
  57. package/dist/server/migrations/20230225111112-drop-ui-schema-relation.js +97 -0
  58. package/dist/server/migrations/20230509111114-alert-ui-schema.d.ts +13 -0
  59. package/dist/server/migrations/20230509111114-alert-ui-schema.js +87 -0
  60. package/dist/server/migrations/20230623145414-number-step.d.ts +13 -0
  61. package/dist/server/migrations/20230623145414-number-step.js +81 -0
  62. package/dist/server/migrations/20230704222935-tableoid.d.ts +13 -0
  63. package/dist/server/migrations/20230704222935-tableoid.js +83 -0
  64. package/dist/server/migrations/20230918024546-set-collection-schema.d.ts +13 -0
  65. package/dist/server/migrations/20230918024546-set-collection-schema.js +55 -0
  66. package/dist/server/migrations/20240220153103-install-main-datasource.d.ts +14 -0
  67. package/dist/server/migrations/20240220153103-install-main-datasource.js +51 -0
  68. package/dist/server/migrations/20240419182147-fix-created-by-field-target.d.ts +14 -0
  69. package/dist/server/migrations/20240419182147-fix-created-by-field-target.js +49 -0
  70. package/dist/server/migrations/20240420105949-add-sort-field.d.ts +14 -0
  71. package/dist/server/migrations/20240420105949-add-sort-field.js +81 -0
  72. package/dist/server/migrations/20240517101001-fix-target-option-in-tree-collection.d.ts +14 -0
  73. package/dist/server/migrations/20240517101001-fix-target-option-in-tree-collection.js +54 -0
  74. package/dist/server/models/collection.d.ts +27 -0
  75. package/dist/server/models/collection.js +197 -0
  76. package/dist/server/models/field.d.ts +26 -0
  77. package/dist/server/models/field.js +173 -0
  78. package/dist/server/models/index.d.ts +10 -0
  79. package/dist/server/models/index.js +32 -0
  80. package/dist/server/repositories/collection-repository.d.ts +20 -0
  81. package/dist/server/repositories/collection-repository.js +169 -0
  82. package/dist/server/repositories/index.d.ts +9 -0
  83. package/dist/server/repositories/index.js +30 -0
  84. package/dist/server/resourcers/collections.d.ts +12 -0
  85. package/dist/server/resourcers/collections.js +102 -0
  86. package/dist/server/resourcers/views.d.ts +17 -0
  87. package/dist/server/resourcers/views.js +116 -0
  88. package/dist/server/server.d.ts +19 -0
  89. package/dist/server/server.js +407 -0
  90. package/dist/swagger/index.d.ts +413 -0
  91. package/dist/swagger/index.js +440 -0
  92. package/package.json +2 -2
@@ -0,0 +1,413 @@
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;