@nocobase/server 2.1.0-beta.15 → 2.1.0-beta.17
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/lib/acl/available-action.js +1 -1
- package/lib/aes-encryptor.js +3 -2
- package/lib/ai/create-docs-index.js +2 -1
- package/lib/app-supervisor/app-options-factory.d.ts +1 -0
- package/lib/audit-manager/index.d.ts +2 -0
- package/lib/audit-manager/index.js +5 -2
- package/lib/commands/create-migration.js +1 -1
- package/lib/commands/pm.js +7 -0
- package/lib/commands/start.js +2 -2
- package/lib/event-queue.js +1 -1
- package/lib/gateway/index.d.ts +13 -3
- package/lib/gateway/index.js +137 -15
- package/lib/gateway/utils.d.ts +17 -0
- package/lib/gateway/utils.js +115 -0
- package/lib/plugin-manager/deps.js +2 -1
- package/lib/plugin-manager/options/resource.d.ts +11 -1
- package/lib/plugin-manager/options/resource.js +151 -65
- package/lib/plugin-manager/plugin-manager.d.ts +6 -2
- package/lib/plugin-manager/plugin-manager.js +22 -3
- package/lib/plugin-manager/utils.d.ts +7 -1
- package/lib/plugin-manager/utils.js +32 -8
- package/lib/plugin.js +33 -1
- package/lib/swagger/app.d.ts +102 -0
- package/lib/swagger/app.js +124 -0
- package/lib/swagger/base.d.ts +244 -0
- package/lib/swagger/base.js +292 -0
- package/lib/swagger/collections.d.ts +996 -0
- package/lib/swagger/collections.js +1264 -0
- package/lib/swagger/index.d.ts +1774 -0
- package/lib/swagger/index.js +70 -0
- package/lib/swagger/pm.d.ts +462 -0
- package/lib/swagger/pm.js +422 -0
- package/package.json +17 -17
- package/lib/swagger/index.json +0 -1569
|
@@ -0,0 +1,996 @@
|
|
|
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
|
+
readonly '/{collectionName}:list': {
|
|
11
|
+
readonly get: {
|
|
12
|
+
readonly tags: readonly ["$collection"];
|
|
13
|
+
readonly summary: "Returns a list of the collection";
|
|
14
|
+
readonly description: "A list of the collection";
|
|
15
|
+
readonly parameters: readonly [{
|
|
16
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
17
|
+
}, {
|
|
18
|
+
readonly $ref: "#/components/parameters/filter";
|
|
19
|
+
}, {
|
|
20
|
+
readonly $ref: "#/components/parameters/fields";
|
|
21
|
+
}, {
|
|
22
|
+
readonly $ref: "#/components/parameters/appends";
|
|
23
|
+
}, {
|
|
24
|
+
readonly $ref: "#/components/parameters/except";
|
|
25
|
+
}, {
|
|
26
|
+
readonly $ref: "#/components/parameters/page";
|
|
27
|
+
}, {
|
|
28
|
+
readonly $ref: "#/components/parameters/pageSize";
|
|
29
|
+
}, {
|
|
30
|
+
readonly $ref: "#/components/parameters/sort";
|
|
31
|
+
}];
|
|
32
|
+
readonly responses: {
|
|
33
|
+
readonly '200': {
|
|
34
|
+
readonly description: "OK";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
readonly '/{collectionName}:get': {
|
|
40
|
+
readonly get: {
|
|
41
|
+
readonly tags: readonly ["$collection"];
|
|
42
|
+
readonly summary: "Returns a record";
|
|
43
|
+
readonly parameters: readonly [{
|
|
44
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
45
|
+
}, {
|
|
46
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
47
|
+
}, {
|
|
48
|
+
readonly $ref: "#/components/parameters/filter";
|
|
49
|
+
}, {
|
|
50
|
+
readonly $ref: "#/components/parameters/sort";
|
|
51
|
+
}, {
|
|
52
|
+
readonly $ref: "#/components/parameters/fields";
|
|
53
|
+
}, {
|
|
54
|
+
readonly $ref: "#/components/parameters/appends";
|
|
55
|
+
}, {
|
|
56
|
+
readonly $ref: "#/components/parameters/except";
|
|
57
|
+
}];
|
|
58
|
+
readonly responses: {
|
|
59
|
+
readonly '200': {
|
|
60
|
+
readonly description: "OK";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly '/{collectionName}:create': {
|
|
66
|
+
readonly post: {
|
|
67
|
+
readonly tags: readonly ["$collection"];
|
|
68
|
+
readonly summary: "Create record";
|
|
69
|
+
readonly parameters: readonly [{
|
|
70
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
71
|
+
}, {
|
|
72
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
73
|
+
}, {
|
|
74
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
75
|
+
}];
|
|
76
|
+
readonly requestBody: {
|
|
77
|
+
readonly content: {
|
|
78
|
+
readonly 'application/json': {
|
|
79
|
+
readonly schema: {
|
|
80
|
+
readonly type: "object";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly responses: {
|
|
86
|
+
readonly '200': {
|
|
87
|
+
readonly description: "OK";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly '/{collectionName}:update': {
|
|
93
|
+
readonly post: {
|
|
94
|
+
readonly tags: readonly ["$collection"];
|
|
95
|
+
readonly summary: "Update record";
|
|
96
|
+
readonly parameters: readonly [{
|
|
97
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
98
|
+
}, {
|
|
99
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
100
|
+
}, {
|
|
101
|
+
readonly $ref: "#/components/parameters/filter";
|
|
102
|
+
}, {
|
|
103
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
104
|
+
}, {
|
|
105
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
106
|
+
}];
|
|
107
|
+
readonly requestBody: {
|
|
108
|
+
readonly content: {
|
|
109
|
+
readonly 'application/json': {
|
|
110
|
+
readonly schema: {
|
|
111
|
+
readonly type: "object";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly responses: {
|
|
117
|
+
readonly '200': {
|
|
118
|
+
readonly description: "OK";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
readonly '/{collectionName}:destroy': {
|
|
124
|
+
readonly post: {
|
|
125
|
+
readonly tags: readonly ["$collection"];
|
|
126
|
+
readonly summary: "Delete record";
|
|
127
|
+
readonly parameters: readonly [{
|
|
128
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
129
|
+
}, {
|
|
130
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
131
|
+
}, {
|
|
132
|
+
readonly $ref: "#/components/parameters/filter";
|
|
133
|
+
}];
|
|
134
|
+
readonly responses: {
|
|
135
|
+
readonly '200': {
|
|
136
|
+
readonly description: "OK";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly '/{collectionName}:move': {
|
|
142
|
+
readonly post: {
|
|
143
|
+
readonly tags: readonly ["$collection"];
|
|
144
|
+
readonly summary: "Move record";
|
|
145
|
+
readonly parameters: readonly [{
|
|
146
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "sourceId";
|
|
149
|
+
readonly in: "query";
|
|
150
|
+
readonly description: "source id";
|
|
151
|
+
readonly schema: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
};
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "targetId";
|
|
156
|
+
readonly in: "query";
|
|
157
|
+
readonly description: "move target id";
|
|
158
|
+
readonly schema: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
};
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "method";
|
|
163
|
+
readonly in: "query";
|
|
164
|
+
readonly description: "move method, insertAfter or insertBefore";
|
|
165
|
+
readonly schema: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "sortField";
|
|
170
|
+
readonly in: "query";
|
|
171
|
+
readonly description: "sort field name, default is sort";
|
|
172
|
+
readonly schema: {
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "targetScope";
|
|
177
|
+
readonly in: "query";
|
|
178
|
+
readonly description: "move target scope";
|
|
179
|
+
readonly schema: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
};
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "sticky";
|
|
184
|
+
readonly in: "query";
|
|
185
|
+
readonly description: "sticky to top";
|
|
186
|
+
readonly schema: {
|
|
187
|
+
readonly type: "boolean";
|
|
188
|
+
};
|
|
189
|
+
}];
|
|
190
|
+
readonly responses: {
|
|
191
|
+
readonly '200': {
|
|
192
|
+
readonly description: "OK";
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToOneAssociation}:get': {
|
|
198
|
+
readonly get: {
|
|
199
|
+
readonly tags: readonly ["$collection.$oneToOneAssociation"];
|
|
200
|
+
readonly summary: "Returns the relationship record";
|
|
201
|
+
readonly parameters: readonly [{
|
|
202
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
203
|
+
}, {
|
|
204
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
205
|
+
}, {
|
|
206
|
+
readonly $ref: "#/components/parameters/oneToOneAssociation";
|
|
207
|
+
}, {
|
|
208
|
+
readonly $ref: "#/components/parameters/fields";
|
|
209
|
+
}, {
|
|
210
|
+
readonly $ref: "#/components/parameters/appends";
|
|
211
|
+
}, {
|
|
212
|
+
readonly $ref: "#/components/parameters/except";
|
|
213
|
+
}];
|
|
214
|
+
readonly responses: {
|
|
215
|
+
readonly '200': {
|
|
216
|
+
readonly description: "OK";
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToOneAssociation}:create': {
|
|
222
|
+
readonly post: {
|
|
223
|
+
readonly tags: readonly ["$collection.$oneToOneAssociation"];
|
|
224
|
+
readonly summary: "Create and associate a record";
|
|
225
|
+
readonly parameters: readonly [{
|
|
226
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
227
|
+
}, {
|
|
228
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
229
|
+
}, {
|
|
230
|
+
readonly $ref: "#/components/parameters/oneToOneAssociation";
|
|
231
|
+
}, {
|
|
232
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
233
|
+
}, {
|
|
234
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
235
|
+
}];
|
|
236
|
+
readonly responses: {
|
|
237
|
+
readonly '200': {
|
|
238
|
+
readonly description: "OK";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToOneAssociation}:update': {
|
|
244
|
+
readonly post: {
|
|
245
|
+
readonly tags: readonly ["$collection.$oneToOneAssociation"];
|
|
246
|
+
readonly summary: "Update the relationship record";
|
|
247
|
+
readonly parameters: readonly [{
|
|
248
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
249
|
+
}, {
|
|
250
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
251
|
+
}, {
|
|
252
|
+
readonly $ref: "#/components/parameters/oneToOneAssociation";
|
|
253
|
+
}, {
|
|
254
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
255
|
+
}, {
|
|
256
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
257
|
+
}];
|
|
258
|
+
readonly responses: {
|
|
259
|
+
readonly '200': {
|
|
260
|
+
readonly description: "OK";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToOneAssociation}:destroy': {
|
|
266
|
+
readonly post: {
|
|
267
|
+
readonly tags: readonly ["$collection.$oneToOneAssociation"];
|
|
268
|
+
readonly summary: "Delete and disassociate the relationship record";
|
|
269
|
+
readonly parameters: readonly [{
|
|
270
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
271
|
+
}, {
|
|
272
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
273
|
+
}, {
|
|
274
|
+
readonly $ref: "#/components/parameters/oneToOneAssociation";
|
|
275
|
+
}];
|
|
276
|
+
readonly responses: {
|
|
277
|
+
readonly '200': {
|
|
278
|
+
readonly description: "OK";
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToOneAssociation}:set': {
|
|
284
|
+
readonly post: {
|
|
285
|
+
readonly tags: readonly ["$collection.$oneToOneAssociation"];
|
|
286
|
+
readonly summary: "Associate a record";
|
|
287
|
+
readonly parameters: readonly [{
|
|
288
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
289
|
+
}, {
|
|
290
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
291
|
+
}, {
|
|
292
|
+
readonly $ref: "#/components/parameters/oneToOneAssociation";
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "filterByTk";
|
|
295
|
+
readonly in: "query";
|
|
296
|
+
readonly required: true;
|
|
297
|
+
readonly description: "filter by tk";
|
|
298
|
+
readonly schema: {
|
|
299
|
+
readonly type: "integer";
|
|
300
|
+
readonly format: "int64";
|
|
301
|
+
};
|
|
302
|
+
}];
|
|
303
|
+
readonly responses: {
|
|
304
|
+
readonly '200': {
|
|
305
|
+
readonly description: "OK";
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToOneAssociation}:remove': {
|
|
311
|
+
readonly post: {
|
|
312
|
+
readonly tags: readonly ["$collection.$oneToOneAssociation"];
|
|
313
|
+
readonly summary: "Disassociate the relationship record";
|
|
314
|
+
readonly parameters: readonly [{
|
|
315
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
316
|
+
}, {
|
|
317
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
318
|
+
}, {
|
|
319
|
+
readonly $ref: "#/components/parameters/oneToOneAssociation";
|
|
320
|
+
}];
|
|
321
|
+
readonly responses: {
|
|
322
|
+
readonly '200': {
|
|
323
|
+
readonly description: "OK";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToOneAssociation}:get': {
|
|
329
|
+
readonly get: {
|
|
330
|
+
readonly tags: readonly ["$collection.$manyToOneAssociation"];
|
|
331
|
+
readonly summary: "Returns the relationship record";
|
|
332
|
+
readonly parameters: readonly [{
|
|
333
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
334
|
+
}, {
|
|
335
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
336
|
+
}, {
|
|
337
|
+
readonly $ref: "#/components/parameters/manyToOneAssociation";
|
|
338
|
+
}, {
|
|
339
|
+
readonly $ref: "#/components/parameters/fields";
|
|
340
|
+
}, {
|
|
341
|
+
readonly $ref: "#/components/parameters/appends";
|
|
342
|
+
}, {
|
|
343
|
+
readonly $ref: "#/components/parameters/except";
|
|
344
|
+
}];
|
|
345
|
+
readonly responses: {
|
|
346
|
+
readonly '200': {
|
|
347
|
+
readonly description: "OK";
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToOneAssociation}:create': {
|
|
353
|
+
readonly post: {
|
|
354
|
+
readonly tags: readonly ["$collection.$manyToOneAssociation"];
|
|
355
|
+
readonly summary: "Create and associate a record";
|
|
356
|
+
readonly parameters: readonly [{
|
|
357
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
358
|
+
}, {
|
|
359
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
360
|
+
}, {
|
|
361
|
+
readonly $ref: "#/components/parameters/manyToOneAssociation";
|
|
362
|
+
}, {
|
|
363
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
364
|
+
}, {
|
|
365
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
366
|
+
}];
|
|
367
|
+
readonly responses: {
|
|
368
|
+
readonly '200': {
|
|
369
|
+
readonly description: "OK";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToOneAssociation}:update': {
|
|
375
|
+
readonly post: {
|
|
376
|
+
readonly tags: readonly ["$collection.$manyToOneAssociation"];
|
|
377
|
+
readonly summary: "Update the relationship record";
|
|
378
|
+
readonly parameters: readonly [{
|
|
379
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
380
|
+
}, {
|
|
381
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
382
|
+
}, {
|
|
383
|
+
readonly $ref: "#/components/parameters/manyToOneAssociation";
|
|
384
|
+
}, {
|
|
385
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
386
|
+
}, {
|
|
387
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
388
|
+
}];
|
|
389
|
+
readonly responses: {
|
|
390
|
+
readonly '200': {
|
|
391
|
+
readonly description: "OK";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToOneAssociation}:destroy': {
|
|
397
|
+
readonly post: {
|
|
398
|
+
readonly tags: readonly ["$collection.$manyToOneAssociation"];
|
|
399
|
+
readonly summary: "Delete and disassociate the relationship record";
|
|
400
|
+
readonly parameters: readonly [{
|
|
401
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
402
|
+
}, {
|
|
403
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
404
|
+
}, {
|
|
405
|
+
readonly $ref: "#/components/parameters/manyToOneAssociation";
|
|
406
|
+
}];
|
|
407
|
+
readonly responses: {
|
|
408
|
+
readonly '200': {
|
|
409
|
+
readonly description: "OK";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToOneAssociation}:set': {
|
|
415
|
+
readonly post: {
|
|
416
|
+
readonly tags: readonly ["$collection.$manyToOneAssociation"];
|
|
417
|
+
readonly summary: "Associate a record";
|
|
418
|
+
readonly parameters: readonly [{
|
|
419
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
420
|
+
}, {
|
|
421
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
422
|
+
}, {
|
|
423
|
+
readonly $ref: "#/components/parameters/manyToOneAssociation";
|
|
424
|
+
}, {
|
|
425
|
+
readonly name: "filterByTk";
|
|
426
|
+
readonly in: "query";
|
|
427
|
+
readonly required: true;
|
|
428
|
+
readonly description: "filter by tk";
|
|
429
|
+
readonly schema: {
|
|
430
|
+
readonly type: "integer";
|
|
431
|
+
readonly format: "int64";
|
|
432
|
+
};
|
|
433
|
+
}];
|
|
434
|
+
readonly responses: {
|
|
435
|
+
readonly '200': {
|
|
436
|
+
readonly description: "OK";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToOneAssociation}:remove': {
|
|
442
|
+
readonly post: {
|
|
443
|
+
readonly tags: readonly ["$collection.$manyToOneAssociation"];
|
|
444
|
+
readonly summary: "Disassociate the relationship record";
|
|
445
|
+
readonly parameters: readonly [{
|
|
446
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
447
|
+
}, {
|
|
448
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
449
|
+
}, {
|
|
450
|
+
readonly $ref: "#/components/parameters/manyToOneAssociation";
|
|
451
|
+
}];
|
|
452
|
+
readonly responses: {
|
|
453
|
+
readonly '200': {
|
|
454
|
+
readonly description: "OK";
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:list': {
|
|
460
|
+
readonly get: {
|
|
461
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
462
|
+
readonly summary: "Returns a list of the one-to-many relationship";
|
|
463
|
+
readonly parameters: readonly [{
|
|
464
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
465
|
+
}, {
|
|
466
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
467
|
+
}, {
|
|
468
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
469
|
+
}, {
|
|
470
|
+
readonly $ref: "#/components/parameters/filter";
|
|
471
|
+
}, {
|
|
472
|
+
readonly $ref: "#/components/parameters/fields";
|
|
473
|
+
}, {
|
|
474
|
+
readonly $ref: "#/components/parameters/appends";
|
|
475
|
+
}, {
|
|
476
|
+
readonly $ref: "#/components/parameters/except";
|
|
477
|
+
}, {
|
|
478
|
+
readonly $ref: "#/components/parameters/page";
|
|
479
|
+
}, {
|
|
480
|
+
readonly $ref: "#/components/parameters/pageSize";
|
|
481
|
+
}, {
|
|
482
|
+
readonly $ref: "#/components/parameters/sort";
|
|
483
|
+
}];
|
|
484
|
+
readonly responses: {
|
|
485
|
+
readonly '200': {
|
|
486
|
+
readonly description: "OK";
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:get': {
|
|
492
|
+
readonly get: {
|
|
493
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
494
|
+
readonly summary: "Returns a record of the one-to-many relationship";
|
|
495
|
+
readonly parameters: readonly [{
|
|
496
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
497
|
+
}, {
|
|
498
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
499
|
+
}, {
|
|
500
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
501
|
+
}, {
|
|
502
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
503
|
+
}, {
|
|
504
|
+
readonly $ref: "#/components/parameters/filter";
|
|
505
|
+
}, {
|
|
506
|
+
readonly $ref: "#/components/parameters/fields";
|
|
507
|
+
}, {
|
|
508
|
+
readonly $ref: "#/components/parameters/appends";
|
|
509
|
+
}, {
|
|
510
|
+
readonly $ref: "#/components/parameters/except";
|
|
511
|
+
}, {
|
|
512
|
+
readonly $ref: "#/components/parameters/sort";
|
|
513
|
+
}];
|
|
514
|
+
readonly responses: {
|
|
515
|
+
readonly '200': {
|
|
516
|
+
readonly description: "OK";
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:create': {
|
|
522
|
+
readonly post: {
|
|
523
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
524
|
+
readonly summary: "Create and attach record of the one-to-many relationship";
|
|
525
|
+
readonly parameters: readonly [{
|
|
526
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
527
|
+
}, {
|
|
528
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
529
|
+
}, {
|
|
530
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
531
|
+
}, {
|
|
532
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
533
|
+
}, {
|
|
534
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
535
|
+
}];
|
|
536
|
+
readonly responses: {
|
|
537
|
+
readonly '200': {
|
|
538
|
+
readonly description: "OK";
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:update': {
|
|
544
|
+
readonly post: {
|
|
545
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
546
|
+
readonly summary: "Update record of the one-to-many relationship";
|
|
547
|
+
readonly parameters: readonly [{
|
|
548
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
549
|
+
}, {
|
|
550
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
551
|
+
}, {
|
|
552
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
553
|
+
}, {
|
|
554
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
555
|
+
}, {
|
|
556
|
+
readonly $ref: "#/components/parameters/filter";
|
|
557
|
+
}, {
|
|
558
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
559
|
+
}, {
|
|
560
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
561
|
+
}];
|
|
562
|
+
readonly responses: {
|
|
563
|
+
readonly '200': {
|
|
564
|
+
readonly description: "OK";
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:destroy': {
|
|
570
|
+
readonly post: {
|
|
571
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
572
|
+
readonly summary: "Delete and detach record of the one-to-many relationship";
|
|
573
|
+
readonly parameters: readonly [{
|
|
574
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
575
|
+
}, {
|
|
576
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
577
|
+
}, {
|
|
578
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
579
|
+
}, {
|
|
580
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
581
|
+
}, {
|
|
582
|
+
readonly $ref: "#/components/parameters/filter";
|
|
583
|
+
}];
|
|
584
|
+
readonly responses: {
|
|
585
|
+
readonly '200': {
|
|
586
|
+
readonly description: "OK";
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:move': {
|
|
592
|
+
readonly post: {
|
|
593
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
594
|
+
readonly summary: "Move record of the one-to-many relationship";
|
|
595
|
+
readonly parameters: readonly [{
|
|
596
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
597
|
+
}, {
|
|
598
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
599
|
+
}, {
|
|
600
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
601
|
+
}, {
|
|
602
|
+
readonly name: "sourceId";
|
|
603
|
+
readonly in: "query";
|
|
604
|
+
readonly description: "source id";
|
|
605
|
+
readonly schema: {
|
|
606
|
+
readonly type: "string";
|
|
607
|
+
};
|
|
608
|
+
}, {
|
|
609
|
+
readonly name: "targetId";
|
|
610
|
+
readonly in: "query";
|
|
611
|
+
readonly description: "move target id";
|
|
612
|
+
readonly schema: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
};
|
|
615
|
+
}, {
|
|
616
|
+
readonly name: "method";
|
|
617
|
+
readonly in: "query";
|
|
618
|
+
readonly description: "move method, insertAfter or insertBefore";
|
|
619
|
+
readonly schema: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
};
|
|
622
|
+
}, {
|
|
623
|
+
readonly name: "sortField";
|
|
624
|
+
readonly in: "query";
|
|
625
|
+
readonly description: "sort field name, default is sort";
|
|
626
|
+
readonly schema: {
|
|
627
|
+
readonly type: "string";
|
|
628
|
+
};
|
|
629
|
+
}, {
|
|
630
|
+
readonly name: "targetScope";
|
|
631
|
+
readonly in: "query";
|
|
632
|
+
readonly description: "move target scope";
|
|
633
|
+
readonly schema: {
|
|
634
|
+
readonly type: "string";
|
|
635
|
+
};
|
|
636
|
+
}, {
|
|
637
|
+
readonly name: "sticky";
|
|
638
|
+
readonly in: "query";
|
|
639
|
+
readonly description: "sticky to top";
|
|
640
|
+
readonly schema: {
|
|
641
|
+
readonly type: "boolean";
|
|
642
|
+
};
|
|
643
|
+
}];
|
|
644
|
+
readonly responses: {
|
|
645
|
+
readonly '200': {
|
|
646
|
+
readonly description: "OK";
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:set': {
|
|
652
|
+
readonly post: {
|
|
653
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
654
|
+
readonly summary: "Set or reset associations";
|
|
655
|
+
readonly parameters: readonly [{
|
|
656
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
657
|
+
}, {
|
|
658
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
659
|
+
}, {
|
|
660
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
661
|
+
}, {
|
|
662
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
663
|
+
}, {
|
|
664
|
+
readonly $ref: "#/components/parameters/filterByTks";
|
|
665
|
+
}];
|
|
666
|
+
readonly responses: {
|
|
667
|
+
readonly '200': {
|
|
668
|
+
readonly description: "OK";
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:add': {
|
|
674
|
+
readonly post: {
|
|
675
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
676
|
+
readonly summary: "Attach record";
|
|
677
|
+
readonly parameters: readonly [{
|
|
678
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
679
|
+
}, {
|
|
680
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
681
|
+
}, {
|
|
682
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
683
|
+
}, {
|
|
684
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
685
|
+
}, {
|
|
686
|
+
readonly $ref: "#/components/parameters/filterByTks";
|
|
687
|
+
}];
|
|
688
|
+
readonly responses: {
|
|
689
|
+
readonly '200': {
|
|
690
|
+
readonly description: "OK";
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
readonly '/{collectionName}/{collectionIndex}/{oneToManyAssociation}:remove': {
|
|
696
|
+
readonly post: {
|
|
697
|
+
readonly tags: readonly ["$collection.$oneToManyAssociation"];
|
|
698
|
+
readonly summary: "Detach record";
|
|
699
|
+
readonly parameters: readonly [{
|
|
700
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
701
|
+
}, {
|
|
702
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
703
|
+
}, {
|
|
704
|
+
readonly $ref: "#/components/parameters/oneToManyAssociation";
|
|
705
|
+
}, {
|
|
706
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
707
|
+
}, {
|
|
708
|
+
readonly $ref: "#/components/parameters/filterByTks";
|
|
709
|
+
}];
|
|
710
|
+
readonly responses: {
|
|
711
|
+
readonly '200': {
|
|
712
|
+
readonly description: "OK";
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:list': {
|
|
718
|
+
readonly get: {
|
|
719
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
720
|
+
readonly summary: "Returns a list of the many-to-many relationship";
|
|
721
|
+
readonly parameters: readonly [{
|
|
722
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
723
|
+
}, {
|
|
724
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
725
|
+
}, {
|
|
726
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
727
|
+
}, {
|
|
728
|
+
readonly $ref: "#/components/parameters/filter";
|
|
729
|
+
}, {
|
|
730
|
+
readonly $ref: "#/components/parameters/fields";
|
|
731
|
+
}, {
|
|
732
|
+
readonly $ref: "#/components/parameters/appends";
|
|
733
|
+
}, {
|
|
734
|
+
readonly $ref: "#/components/parameters/except";
|
|
735
|
+
}, {
|
|
736
|
+
readonly $ref: "#/components/parameters/page";
|
|
737
|
+
}, {
|
|
738
|
+
readonly $ref: "#/components/parameters/pageSize";
|
|
739
|
+
}, {
|
|
740
|
+
readonly $ref: "#/components/parameters/sort";
|
|
741
|
+
}];
|
|
742
|
+
readonly responses: {
|
|
743
|
+
readonly '200': {
|
|
744
|
+
readonly description: "OK";
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:get': {
|
|
750
|
+
readonly get: {
|
|
751
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
752
|
+
readonly summary: "Returns a record of the many-to-many relationship";
|
|
753
|
+
readonly parameters: readonly [{
|
|
754
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
755
|
+
}, {
|
|
756
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
757
|
+
}, {
|
|
758
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
759
|
+
}, {
|
|
760
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
761
|
+
}, {
|
|
762
|
+
readonly $ref: "#/components/parameters/filter";
|
|
763
|
+
}, {
|
|
764
|
+
readonly $ref: "#/components/parameters/fields";
|
|
765
|
+
}, {
|
|
766
|
+
readonly $ref: "#/components/parameters/appends";
|
|
767
|
+
}, {
|
|
768
|
+
readonly $ref: "#/components/parameters/except";
|
|
769
|
+
}, {
|
|
770
|
+
readonly $ref: "#/components/parameters/sort";
|
|
771
|
+
}];
|
|
772
|
+
readonly responses: {
|
|
773
|
+
readonly '200': {
|
|
774
|
+
readonly description: "OK";
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:create': {
|
|
780
|
+
readonly post: {
|
|
781
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
782
|
+
readonly summary: "Create and attach record of the many-to-many relationship";
|
|
783
|
+
readonly parameters: readonly [{
|
|
784
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
785
|
+
}, {
|
|
786
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
787
|
+
}, {
|
|
788
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
789
|
+
}, {
|
|
790
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
791
|
+
}, {
|
|
792
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
793
|
+
}];
|
|
794
|
+
readonly responses: {
|
|
795
|
+
readonly '200': {
|
|
796
|
+
readonly description: "OK";
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:update': {
|
|
802
|
+
readonly post: {
|
|
803
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
804
|
+
readonly summary: "Update record of the many-to-many relationship";
|
|
805
|
+
readonly parameters: readonly [{
|
|
806
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
807
|
+
}, {
|
|
808
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
809
|
+
}, {
|
|
810
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
811
|
+
}, {
|
|
812
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
813
|
+
}, {
|
|
814
|
+
readonly $ref: "#/components/parameters/filter";
|
|
815
|
+
}, {
|
|
816
|
+
readonly $ref: "#/components/parameters/whitelist";
|
|
817
|
+
}, {
|
|
818
|
+
readonly $ref: "#/components/parameters/blacklist";
|
|
819
|
+
}];
|
|
820
|
+
readonly responses: {
|
|
821
|
+
readonly '200': {
|
|
822
|
+
readonly description: "OK";
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:destroy': {
|
|
828
|
+
readonly post: {
|
|
829
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
830
|
+
readonly summary: "Delete and detach record of the one-to-many relationship";
|
|
831
|
+
readonly parameters: readonly [{
|
|
832
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
833
|
+
}, {
|
|
834
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
835
|
+
}, {
|
|
836
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
837
|
+
}, {
|
|
838
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
839
|
+
}, {
|
|
840
|
+
readonly $ref: "#/components/parameters/filter";
|
|
841
|
+
}];
|
|
842
|
+
readonly responses: {
|
|
843
|
+
readonly '200': {
|
|
844
|
+
readonly description: "OK";
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:move': {
|
|
850
|
+
readonly post: {
|
|
851
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
852
|
+
readonly summary: "Move record of the one-to-many relationship";
|
|
853
|
+
readonly parameters: readonly [{
|
|
854
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
855
|
+
}, {
|
|
856
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
857
|
+
}, {
|
|
858
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
859
|
+
}, {
|
|
860
|
+
readonly name: "sourceId";
|
|
861
|
+
readonly in: "query";
|
|
862
|
+
readonly description: "source id";
|
|
863
|
+
readonly schema: {
|
|
864
|
+
readonly type: "string";
|
|
865
|
+
};
|
|
866
|
+
}, {
|
|
867
|
+
readonly name: "targetId";
|
|
868
|
+
readonly in: "query";
|
|
869
|
+
readonly description: "move target id";
|
|
870
|
+
readonly schema: {
|
|
871
|
+
readonly type: "string";
|
|
872
|
+
};
|
|
873
|
+
}, {
|
|
874
|
+
readonly name: "method";
|
|
875
|
+
readonly in: "query";
|
|
876
|
+
readonly description: "move method, insertAfter or insertBefore";
|
|
877
|
+
readonly schema: {
|
|
878
|
+
readonly type: "string";
|
|
879
|
+
};
|
|
880
|
+
}, {
|
|
881
|
+
readonly name: "sortField";
|
|
882
|
+
readonly in: "query";
|
|
883
|
+
readonly description: "sort field name, default is sort";
|
|
884
|
+
readonly schema: {
|
|
885
|
+
readonly type: "string";
|
|
886
|
+
};
|
|
887
|
+
}, {
|
|
888
|
+
readonly name: "targetScope";
|
|
889
|
+
readonly in: "query";
|
|
890
|
+
readonly description: "move target scope";
|
|
891
|
+
readonly schema: {
|
|
892
|
+
readonly type: "string";
|
|
893
|
+
};
|
|
894
|
+
}, {
|
|
895
|
+
readonly name: "sticky";
|
|
896
|
+
readonly in: "query";
|
|
897
|
+
readonly description: "sticky to top";
|
|
898
|
+
readonly schema: {
|
|
899
|
+
readonly type: "boolean";
|
|
900
|
+
};
|
|
901
|
+
}];
|
|
902
|
+
readonly responses: {
|
|
903
|
+
readonly '200': {
|
|
904
|
+
readonly description: "OK";
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:set': {
|
|
910
|
+
readonly post: {
|
|
911
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
912
|
+
readonly summary: "Set or reset associations";
|
|
913
|
+
readonly parameters: readonly [{
|
|
914
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
915
|
+
}, {
|
|
916
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
917
|
+
}, {
|
|
918
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
919
|
+
}, {
|
|
920
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
921
|
+
}, {
|
|
922
|
+
readonly $ref: "#/components/parameters/filterByTks";
|
|
923
|
+
}];
|
|
924
|
+
readonly responses: {
|
|
925
|
+
readonly '200': {
|
|
926
|
+
readonly description: "OK";
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:add': {
|
|
932
|
+
readonly post: {
|
|
933
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
934
|
+
readonly summary: "Attach record";
|
|
935
|
+
readonly parameters: readonly [{
|
|
936
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
937
|
+
}, {
|
|
938
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
939
|
+
}, {
|
|
940
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
941
|
+
}, {
|
|
942
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
943
|
+
}, {
|
|
944
|
+
readonly $ref: "#/components/parameters/filterByTks";
|
|
945
|
+
}];
|
|
946
|
+
readonly responses: {
|
|
947
|
+
readonly '200': {
|
|
948
|
+
readonly description: "OK";
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:remove': {
|
|
954
|
+
readonly post: {
|
|
955
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
956
|
+
readonly summary: "Detach record";
|
|
957
|
+
readonly parameters: readonly [{
|
|
958
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
959
|
+
}, {
|
|
960
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
961
|
+
}, {
|
|
962
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
963
|
+
}, {
|
|
964
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
965
|
+
}, {
|
|
966
|
+
readonly $ref: "#/components/parameters/filterByTks";
|
|
967
|
+
}];
|
|
968
|
+
readonly responses: {
|
|
969
|
+
readonly '200': {
|
|
970
|
+
readonly description: "OK";
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
readonly '/{collectionName}/{collectionIndex}/{manyToManyAssociation}:toggle': {
|
|
976
|
+
readonly post: {
|
|
977
|
+
readonly tags: readonly ["$collection.$manyToManyAssociation"];
|
|
978
|
+
readonly summary: "Attach or detach record";
|
|
979
|
+
readonly parameters: readonly [{
|
|
980
|
+
readonly $ref: "#/components/parameters/collectionName";
|
|
981
|
+
}, {
|
|
982
|
+
readonly $ref: "#/components/parameters/collectionIndex";
|
|
983
|
+
}, {
|
|
984
|
+
readonly $ref: "#/components/parameters/manyToManyAssociation";
|
|
985
|
+
}, {
|
|
986
|
+
readonly $ref: "#/components/parameters/filterByTk";
|
|
987
|
+
}];
|
|
988
|
+
readonly responses: {
|
|
989
|
+
readonly '200': {
|
|
990
|
+
readonly description: "OK";
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
export default _default;
|