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