@aeriajs/builtins 0.0.116 → 0.0.117
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/dist/collections/file/description.d.ts +1 -0
- package/dist/collections/file/description.js +1 -0
- package/dist/collections/file/description.mjs +1 -0
- package/dist/collections/file/download.d.ts +1 -2
- package/dist/collections/file/index.d.ts +31 -611
- package/dist/collections/file/index.js +1 -0
- package/dist/collections/file/index.mjs +1 -0
- package/dist/collections/file/insert.d.ts +2 -1
- package/dist/collections/file/remove.d.ts +1 -1
- package/dist/collections/file/removeAll.d.ts +1 -1
- package/dist/collections/log/index.d.ts +10 -10
- package/dist/collections/log/index.js +1 -1
- package/dist/collections/log/index.mjs +1 -1
- package/dist/collections/resourceUsage/index.d.ts +4 -1
- package/dist/collections/resourceUsage/index.js +1 -0
- package/dist/collections/resourceUsage/index.mjs +1 -0
- package/dist/collections/user/createAccount.d.ts +1 -1
- package/dist/collections/user/description.d.ts +1 -1
- package/dist/collections/user/description.js +1 -1
- package/dist/collections/user/description.mjs +1 -1
- package/dist/collections/user/getCurrentUser.d.ts +1 -1
- package/dist/collections/user/index.d.ts +409 -2494
- package/dist/collections/user/insert.d.ts +2 -2
- package/dist/functions/describe.d.ts +4 -120
- package/dist/index.d.ts +907 -3571
- package/package.json +2 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { description } from './description.js';
|
|
2
2
|
export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
3
3
|
description: {
|
|
4
4
|
readonly $id: "tempFile";
|
|
5
|
+
readonly icon: "file";
|
|
5
6
|
readonly temporary: {
|
|
6
7
|
readonly index: "created_at";
|
|
7
8
|
readonly expireAfterSeconds: 3600;
|
|
@@ -28,9 +29,10 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
};
|
|
31
|
-
}>, "description" | "functions" | "item" | "
|
|
32
|
+
}>, "description" | "functions" | "item" | "exposedFunctions" | "security"> & {
|
|
32
33
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
33
34
|
readonly $id: "tempFile";
|
|
35
|
+
readonly icon: "file";
|
|
34
36
|
readonly temporary: {
|
|
35
37
|
readonly index: "created_at";
|
|
36
38
|
readonly expireAfterSeconds: 3600;
|
|
@@ -59,6 +61,7 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
59
61
|
}>;
|
|
60
62
|
description: {
|
|
61
63
|
readonly $id: "tempFile";
|
|
64
|
+
readonly icon: "file";
|
|
62
65
|
readonly temporary: {
|
|
63
66
|
readonly index: "created_at";
|
|
64
67
|
readonly expireAfterSeconds: 3600;
|
|
@@ -93,6 +96,7 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
93
96
|
export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
94
97
|
description: {
|
|
95
98
|
readonly $id: "file";
|
|
99
|
+
readonly icon: "file";
|
|
96
100
|
readonly owned: "always";
|
|
97
101
|
readonly presets: readonly ["owned"];
|
|
98
102
|
readonly indexes: readonly ["name", "link", "type"];
|
|
@@ -142,111 +146,14 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
142
146
|
};
|
|
143
147
|
};
|
|
144
148
|
functions: {
|
|
145
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions
|
|
149
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
146
150
|
readonly insert: (payload: {
|
|
147
151
|
what: {
|
|
148
152
|
content: string;
|
|
149
|
-
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<
|
|
150
|
-
|
|
151
|
-
readonly owned: "always";
|
|
152
|
-
readonly presets: readonly ["owned"];
|
|
153
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
154
|
-
readonly properties: {
|
|
155
|
-
readonly type: {
|
|
156
|
-
readonly type: "string";
|
|
157
|
-
};
|
|
158
|
-
readonly size: {
|
|
159
|
-
readonly type: "number";
|
|
160
|
-
};
|
|
161
|
-
readonly last_modified: {
|
|
162
|
-
readonly type: "string";
|
|
163
|
-
readonly format: "date-time";
|
|
164
|
-
};
|
|
165
|
-
readonly name: {
|
|
166
|
-
readonly type: "string";
|
|
167
|
-
};
|
|
168
|
-
readonly absolute_path: {
|
|
169
|
-
readonly type: "string";
|
|
170
|
-
};
|
|
171
|
-
readonly relative_path: {
|
|
172
|
-
readonly type: "string";
|
|
173
|
-
};
|
|
174
|
-
readonly immutable: {
|
|
175
|
-
readonly type: "boolean";
|
|
176
|
-
};
|
|
177
|
-
readonly link: {
|
|
178
|
-
readonly getter: (value: any) => Promise<string>;
|
|
179
|
-
};
|
|
180
|
-
readonly download_link: {
|
|
181
|
-
readonly getter: (value: any) => Promise<string>;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
readonly actions: {
|
|
185
|
-
readonly deleteAll: {
|
|
186
|
-
readonly label: "Remover";
|
|
187
|
-
readonly ask: true;
|
|
188
|
-
readonly selection: true;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
readonly individualActions: {
|
|
192
|
-
readonly remove: {
|
|
193
|
-
readonly label: "Remover";
|
|
194
|
-
readonly icon: "trash";
|
|
195
|
-
readonly ask: true;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
}>>, "name" | "absolute_path" | "_id" | "owner">;
|
|
199
|
-
}, context: import("@aeriajs/types").Context<{
|
|
200
|
-
readonly $id: "file";
|
|
201
|
-
readonly owned: "always";
|
|
202
|
-
readonly presets: readonly ["owned"];
|
|
203
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
204
|
-
readonly properties: {
|
|
205
|
-
readonly type: {
|
|
206
|
-
readonly type: "string";
|
|
207
|
-
};
|
|
208
|
-
readonly size: {
|
|
209
|
-
readonly type: "number";
|
|
210
|
-
};
|
|
211
|
-
readonly last_modified: {
|
|
212
|
-
readonly type: "string";
|
|
213
|
-
readonly format: "date-time";
|
|
214
|
-
};
|
|
215
|
-
readonly name: {
|
|
216
|
-
readonly type: "string";
|
|
217
|
-
};
|
|
218
|
-
readonly absolute_path: {
|
|
219
|
-
readonly type: "string";
|
|
220
|
-
};
|
|
221
|
-
readonly relative_path: {
|
|
222
|
-
readonly type: "string";
|
|
223
|
-
};
|
|
224
|
-
readonly immutable: {
|
|
225
|
-
readonly type: "boolean";
|
|
226
|
-
};
|
|
227
|
-
readonly link: {
|
|
228
|
-
readonly getter: (value: any) => Promise<string>;
|
|
229
|
-
};
|
|
230
|
-
readonly download_link: {
|
|
231
|
-
readonly getter: (value: any) => Promise<string>;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
readonly actions: {
|
|
235
|
-
readonly deleteAll: {
|
|
236
|
-
readonly label: "Remover";
|
|
237
|
-
readonly ask: true;
|
|
238
|
-
readonly selection: true;
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
readonly individualActions: {
|
|
242
|
-
readonly remove: {
|
|
243
|
-
readonly label: "Remover";
|
|
244
|
-
readonly icon: "trash";
|
|
245
|
-
readonly ask: true;
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
}>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
153
|
+
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof description>>, "_id" | "name" | "owner" | "absolute_path">;
|
|
154
|
+
}, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
249
155
|
readonly $id: "file";
|
|
156
|
+
readonly icon: "file";
|
|
250
157
|
readonly owned: "always";
|
|
251
158
|
readonly presets: readonly ["owned"];
|
|
252
159
|
readonly indexes: readonly ["name", "link", "type"];
|
|
@@ -297,226 +204,30 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
297
204
|
}>>>;
|
|
298
205
|
readonly download: (payload: {
|
|
299
206
|
fileId: string;
|
|
300
|
-
options: readonly ("
|
|
301
|
-
noHeaders?: boolean
|
|
302
|
-
}, context: import("@aeriajs/types").Context<{
|
|
303
|
-
readonly $id: "file";
|
|
304
|
-
readonly owned: "always";
|
|
305
|
-
readonly presets: readonly ["owned"];
|
|
306
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
307
|
-
readonly properties: {
|
|
308
|
-
readonly type: {
|
|
309
|
-
readonly type: "string";
|
|
310
|
-
};
|
|
311
|
-
readonly size: {
|
|
312
|
-
readonly type: "number";
|
|
313
|
-
};
|
|
314
|
-
readonly last_modified: {
|
|
315
|
-
readonly type: "string";
|
|
316
|
-
readonly format: "date-time";
|
|
317
|
-
};
|
|
318
|
-
readonly name: {
|
|
319
|
-
readonly type: "string";
|
|
320
|
-
};
|
|
321
|
-
readonly absolute_path: {
|
|
322
|
-
readonly type: "string";
|
|
323
|
-
};
|
|
324
|
-
readonly relative_path: {
|
|
325
|
-
readonly type: "string";
|
|
326
|
-
};
|
|
327
|
-
readonly immutable: {
|
|
328
|
-
readonly type: "boolean";
|
|
329
|
-
};
|
|
330
|
-
readonly link: {
|
|
331
|
-
readonly getter: (value: any) => Promise<string>;
|
|
332
|
-
};
|
|
333
|
-
readonly download_link: {
|
|
334
|
-
readonly getter: (value: any) => Promise<string>;
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
|
-
readonly actions: {
|
|
338
|
-
readonly deleteAll: {
|
|
339
|
-
readonly label: "Remover";
|
|
340
|
-
readonly ask: true;
|
|
341
|
-
readonly selection: true;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
readonly individualActions: {
|
|
345
|
-
readonly remove: {
|
|
346
|
-
readonly label: "Remover";
|
|
347
|
-
readonly icon: "trash";
|
|
348
|
-
readonly ask: true;
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
207
|
+
options: readonly ("picture" | "download")[];
|
|
208
|
+
noHeaders?: boolean;
|
|
209
|
+
}, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
352
210
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
353
211
|
} & {
|
|
354
212
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
355
213
|
}> | import("fs").ReadStream>;
|
|
356
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
|
|
357
|
-
readonly $id: "file";
|
|
358
|
-
readonly owned: "always";
|
|
359
|
-
readonly presets: readonly ["owned"];
|
|
360
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
361
|
-
readonly properties: {
|
|
362
|
-
readonly type: {
|
|
363
|
-
readonly type: "string";
|
|
364
|
-
};
|
|
365
|
-
readonly size: {
|
|
366
|
-
readonly type: "number";
|
|
367
|
-
};
|
|
368
|
-
readonly last_modified: {
|
|
369
|
-
readonly type: "string";
|
|
370
|
-
readonly format: "date-time";
|
|
371
|
-
};
|
|
372
|
-
readonly name: {
|
|
373
|
-
readonly type: "string";
|
|
374
|
-
};
|
|
375
|
-
readonly absolute_path: {
|
|
376
|
-
readonly type: "string";
|
|
377
|
-
};
|
|
378
|
-
readonly relative_path: {
|
|
379
|
-
readonly type: "string";
|
|
380
|
-
};
|
|
381
|
-
readonly immutable: {
|
|
382
|
-
readonly type: "boolean";
|
|
383
|
-
};
|
|
384
|
-
readonly link: {
|
|
385
|
-
readonly getter: (value: any) => Promise<string>;
|
|
386
|
-
};
|
|
387
|
-
readonly download_link: {
|
|
388
|
-
readonly getter: (value: any) => Promise<string>;
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
readonly actions: {
|
|
392
|
-
readonly deleteAll: {
|
|
393
|
-
readonly label: "Remover";
|
|
394
|
-
readonly ask: true;
|
|
395
|
-
readonly selection: true;
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
readonly individualActions: {
|
|
399
|
-
readonly remove: {
|
|
400
|
-
readonly label: "Remover";
|
|
401
|
-
readonly icon: "trash";
|
|
402
|
-
readonly ask: true;
|
|
403
|
-
};
|
|
404
|
-
};
|
|
405
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
406
|
-
readonly $id: "file";
|
|
407
|
-
readonly owned: "always";
|
|
408
|
-
readonly presets: readonly ["owned"];
|
|
409
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
410
|
-
readonly properties: {
|
|
411
|
-
readonly type: {
|
|
412
|
-
readonly type: "string";
|
|
413
|
-
};
|
|
414
|
-
readonly size: {
|
|
415
|
-
readonly type: "number";
|
|
416
|
-
};
|
|
417
|
-
readonly last_modified: {
|
|
418
|
-
readonly type: "string";
|
|
419
|
-
readonly format: "date-time";
|
|
420
|
-
};
|
|
421
|
-
readonly name: {
|
|
422
|
-
readonly type: "string";
|
|
423
|
-
};
|
|
424
|
-
readonly absolute_path: {
|
|
425
|
-
readonly type: "string";
|
|
426
|
-
};
|
|
427
|
-
readonly relative_path: {
|
|
428
|
-
readonly type: "string";
|
|
429
|
-
};
|
|
430
|
-
readonly immutable: {
|
|
431
|
-
readonly type: "boolean";
|
|
432
|
-
};
|
|
433
|
-
readonly link: {
|
|
434
|
-
readonly getter: (value: any) => Promise<string>;
|
|
435
|
-
};
|
|
436
|
-
readonly download_link: {
|
|
437
|
-
readonly getter: (value: any) => Promise<string>;
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
readonly actions: {
|
|
441
|
-
readonly deleteAll: {
|
|
442
|
-
readonly label: "Remover";
|
|
443
|
-
readonly ask: true;
|
|
444
|
-
readonly selection: true;
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
readonly individualActions: {
|
|
448
|
-
readonly remove: {
|
|
449
|
-
readonly label: "Remover";
|
|
450
|
-
readonly icon: "trash";
|
|
451
|
-
readonly ask: true;
|
|
452
|
-
};
|
|
453
|
-
};
|
|
454
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
214
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<typeof description>>, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
455
215
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
456
216
|
} & {
|
|
457
217
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
458
218
|
}> | {
|
|
459
219
|
readonly _tag: "Result";
|
|
460
220
|
readonly error: undefined;
|
|
461
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description
|
|
221
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
462
222
|
}>;
|
|
463
|
-
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
464
|
-
readonly $id: "file";
|
|
465
|
-
readonly owned: "always";
|
|
466
|
-
readonly presets: readonly ["owned"];
|
|
467
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
468
|
-
readonly properties: {
|
|
469
|
-
readonly type: {
|
|
470
|
-
readonly type: "string";
|
|
471
|
-
};
|
|
472
|
-
readonly size: {
|
|
473
|
-
readonly type: "number";
|
|
474
|
-
};
|
|
475
|
-
readonly last_modified: {
|
|
476
|
-
readonly type: "string";
|
|
477
|
-
readonly format: "date-time";
|
|
478
|
-
};
|
|
479
|
-
readonly name: {
|
|
480
|
-
readonly type: "string";
|
|
481
|
-
};
|
|
482
|
-
readonly absolute_path: {
|
|
483
|
-
readonly type: "string";
|
|
484
|
-
};
|
|
485
|
-
readonly relative_path: {
|
|
486
|
-
readonly type: "string";
|
|
487
|
-
};
|
|
488
|
-
readonly immutable: {
|
|
489
|
-
readonly type: "boolean";
|
|
490
|
-
};
|
|
491
|
-
readonly link: {
|
|
492
|
-
readonly getter: (value: any) => Promise<string>;
|
|
493
|
-
};
|
|
494
|
-
readonly download_link: {
|
|
495
|
-
readonly getter: (value: any) => Promise<string>;
|
|
496
|
-
};
|
|
497
|
-
};
|
|
498
|
-
readonly actions: {
|
|
499
|
-
readonly deleteAll: {
|
|
500
|
-
readonly label: "Remover";
|
|
501
|
-
readonly ask: true;
|
|
502
|
-
readonly selection: true;
|
|
503
|
-
};
|
|
504
|
-
};
|
|
505
|
-
readonly individualActions: {
|
|
506
|
-
readonly remove: {
|
|
507
|
-
readonly label: "Remover";
|
|
508
|
-
readonly icon: "trash";
|
|
509
|
-
readonly ask: true;
|
|
510
|
-
};
|
|
511
|
-
};
|
|
512
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
223
|
+
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
513
224
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
514
225
|
} & {
|
|
515
226
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
516
227
|
}> | {
|
|
517
228
|
readonly _tag: "Result";
|
|
518
229
|
readonly error: undefined;
|
|
519
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description
|
|
230
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
520
231
|
}>;
|
|
521
232
|
};
|
|
522
233
|
exposedFunctions: {
|
|
@@ -526,9 +237,10 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
526
237
|
readonly remove: true;
|
|
527
238
|
readonly removeAll: true;
|
|
528
239
|
};
|
|
529
|
-
}>, "description" | "functions" | "item" | "
|
|
240
|
+
}>, "description" | "functions" | "item" | "exposedFunctions" | "security"> & {
|
|
530
241
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
531
242
|
readonly $id: "file";
|
|
243
|
+
readonly icon: "file";
|
|
532
244
|
readonly owned: "always";
|
|
533
245
|
readonly presets: readonly ["owned"];
|
|
534
246
|
readonly indexes: readonly ["name", "link", "type"];
|
|
@@ -579,6 +291,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
579
291
|
}>;
|
|
580
292
|
description: {
|
|
581
293
|
readonly $id: "file";
|
|
294
|
+
readonly icon: "file";
|
|
582
295
|
readonly owned: "always";
|
|
583
296
|
readonly presets: readonly ["owned"];
|
|
584
297
|
readonly indexes: readonly ["name", "link", "type"];
|
|
@@ -628,111 +341,14 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
628
341
|
};
|
|
629
342
|
};
|
|
630
343
|
functions: {
|
|
631
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions
|
|
344
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
632
345
|
readonly insert: (payload: {
|
|
633
346
|
what: {
|
|
634
347
|
content: string;
|
|
635
|
-
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<
|
|
636
|
-
|
|
637
|
-
readonly owned: "always";
|
|
638
|
-
readonly presets: readonly ["owned"];
|
|
639
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
640
|
-
readonly properties: {
|
|
641
|
-
readonly type: {
|
|
642
|
-
readonly type: "string";
|
|
643
|
-
};
|
|
644
|
-
readonly size: {
|
|
645
|
-
readonly type: "number";
|
|
646
|
-
};
|
|
647
|
-
readonly last_modified: {
|
|
648
|
-
readonly type: "string";
|
|
649
|
-
readonly format: "date-time";
|
|
650
|
-
};
|
|
651
|
-
readonly name: {
|
|
652
|
-
readonly type: "string";
|
|
653
|
-
};
|
|
654
|
-
readonly absolute_path: {
|
|
655
|
-
readonly type: "string";
|
|
656
|
-
};
|
|
657
|
-
readonly relative_path: {
|
|
658
|
-
readonly type: "string";
|
|
659
|
-
};
|
|
660
|
-
readonly immutable: {
|
|
661
|
-
readonly type: "boolean";
|
|
662
|
-
};
|
|
663
|
-
readonly link: {
|
|
664
|
-
readonly getter: (value: any) => Promise<string>;
|
|
665
|
-
};
|
|
666
|
-
readonly download_link: {
|
|
667
|
-
readonly getter: (value: any) => Promise<string>;
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
readonly actions: {
|
|
671
|
-
readonly deleteAll: {
|
|
672
|
-
readonly label: "Remover";
|
|
673
|
-
readonly ask: true;
|
|
674
|
-
readonly selection: true;
|
|
675
|
-
};
|
|
676
|
-
};
|
|
677
|
-
readonly individualActions: {
|
|
678
|
-
readonly remove: {
|
|
679
|
-
readonly label: "Remover";
|
|
680
|
-
readonly icon: "trash";
|
|
681
|
-
readonly ask: true;
|
|
682
|
-
};
|
|
683
|
-
};
|
|
684
|
-
}>>, "name" | "absolute_path" | "_id" | "owner">;
|
|
685
|
-
}, context: import("@aeriajs/types").Context<{
|
|
686
|
-
readonly $id: "file";
|
|
687
|
-
readonly owned: "always";
|
|
688
|
-
readonly presets: readonly ["owned"];
|
|
689
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
690
|
-
readonly properties: {
|
|
691
|
-
readonly type: {
|
|
692
|
-
readonly type: "string";
|
|
693
|
-
};
|
|
694
|
-
readonly size: {
|
|
695
|
-
readonly type: "number";
|
|
696
|
-
};
|
|
697
|
-
readonly last_modified: {
|
|
698
|
-
readonly type: "string";
|
|
699
|
-
readonly format: "date-time";
|
|
700
|
-
};
|
|
701
|
-
readonly name: {
|
|
702
|
-
readonly type: "string";
|
|
703
|
-
};
|
|
704
|
-
readonly absolute_path: {
|
|
705
|
-
readonly type: "string";
|
|
706
|
-
};
|
|
707
|
-
readonly relative_path: {
|
|
708
|
-
readonly type: "string";
|
|
709
|
-
};
|
|
710
|
-
readonly immutable: {
|
|
711
|
-
readonly type: "boolean";
|
|
712
|
-
};
|
|
713
|
-
readonly link: {
|
|
714
|
-
readonly getter: (value: any) => Promise<string>;
|
|
715
|
-
};
|
|
716
|
-
readonly download_link: {
|
|
717
|
-
readonly getter: (value: any) => Promise<string>;
|
|
718
|
-
};
|
|
719
|
-
};
|
|
720
|
-
readonly actions: {
|
|
721
|
-
readonly deleteAll: {
|
|
722
|
-
readonly label: "Remover";
|
|
723
|
-
readonly ask: true;
|
|
724
|
-
readonly selection: true;
|
|
725
|
-
};
|
|
726
|
-
};
|
|
727
|
-
readonly individualActions: {
|
|
728
|
-
readonly remove: {
|
|
729
|
-
readonly label: "Remover";
|
|
730
|
-
readonly icon: "trash";
|
|
731
|
-
readonly ask: true;
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
}>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
348
|
+
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof description>>, "_id" | "name" | "owner" | "absolute_path">;
|
|
349
|
+
}, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
735
350
|
readonly $id: "file";
|
|
351
|
+
readonly icon: "file";
|
|
736
352
|
readonly owned: "always";
|
|
737
353
|
readonly presets: readonly ["owned"];
|
|
738
354
|
readonly indexes: readonly ["name", "link", "type"];
|
|
@@ -783,226 +399,30 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
783
399
|
}>>>;
|
|
784
400
|
readonly download: (payload: {
|
|
785
401
|
fileId: string;
|
|
786
|
-
options: readonly ("
|
|
787
|
-
noHeaders?: boolean
|
|
788
|
-
}, context: import("@aeriajs/types").Context<{
|
|
789
|
-
readonly $id: "file";
|
|
790
|
-
readonly owned: "always";
|
|
791
|
-
readonly presets: readonly ["owned"];
|
|
792
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
793
|
-
readonly properties: {
|
|
794
|
-
readonly type: {
|
|
795
|
-
readonly type: "string";
|
|
796
|
-
};
|
|
797
|
-
readonly size: {
|
|
798
|
-
readonly type: "number";
|
|
799
|
-
};
|
|
800
|
-
readonly last_modified: {
|
|
801
|
-
readonly type: "string";
|
|
802
|
-
readonly format: "date-time";
|
|
803
|
-
};
|
|
804
|
-
readonly name: {
|
|
805
|
-
readonly type: "string";
|
|
806
|
-
};
|
|
807
|
-
readonly absolute_path: {
|
|
808
|
-
readonly type: "string";
|
|
809
|
-
};
|
|
810
|
-
readonly relative_path: {
|
|
811
|
-
readonly type: "string";
|
|
812
|
-
};
|
|
813
|
-
readonly immutable: {
|
|
814
|
-
readonly type: "boolean";
|
|
815
|
-
};
|
|
816
|
-
readonly link: {
|
|
817
|
-
readonly getter: (value: any) => Promise<string>;
|
|
818
|
-
};
|
|
819
|
-
readonly download_link: {
|
|
820
|
-
readonly getter: (value: any) => Promise<string>;
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
readonly actions: {
|
|
824
|
-
readonly deleteAll: {
|
|
825
|
-
readonly label: "Remover";
|
|
826
|
-
readonly ask: true;
|
|
827
|
-
readonly selection: true;
|
|
828
|
-
};
|
|
829
|
-
};
|
|
830
|
-
readonly individualActions: {
|
|
831
|
-
readonly remove: {
|
|
832
|
-
readonly label: "Remover";
|
|
833
|
-
readonly icon: "trash";
|
|
834
|
-
readonly ask: true;
|
|
835
|
-
};
|
|
836
|
-
};
|
|
837
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
402
|
+
options: readonly ("picture" | "download")[];
|
|
403
|
+
noHeaders?: boolean;
|
|
404
|
+
}, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
838
405
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
839
406
|
} & {
|
|
840
407
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
841
408
|
}> | import("fs").ReadStream>;
|
|
842
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
|
|
843
|
-
readonly $id: "file";
|
|
844
|
-
readonly owned: "always";
|
|
845
|
-
readonly presets: readonly ["owned"];
|
|
846
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
847
|
-
readonly properties: {
|
|
848
|
-
readonly type: {
|
|
849
|
-
readonly type: "string";
|
|
850
|
-
};
|
|
851
|
-
readonly size: {
|
|
852
|
-
readonly type: "number";
|
|
853
|
-
};
|
|
854
|
-
readonly last_modified: {
|
|
855
|
-
readonly type: "string";
|
|
856
|
-
readonly format: "date-time";
|
|
857
|
-
};
|
|
858
|
-
readonly name: {
|
|
859
|
-
readonly type: "string";
|
|
860
|
-
};
|
|
861
|
-
readonly absolute_path: {
|
|
862
|
-
readonly type: "string";
|
|
863
|
-
};
|
|
864
|
-
readonly relative_path: {
|
|
865
|
-
readonly type: "string";
|
|
866
|
-
};
|
|
867
|
-
readonly immutable: {
|
|
868
|
-
readonly type: "boolean";
|
|
869
|
-
};
|
|
870
|
-
readonly link: {
|
|
871
|
-
readonly getter: (value: any) => Promise<string>;
|
|
872
|
-
};
|
|
873
|
-
readonly download_link: {
|
|
874
|
-
readonly getter: (value: any) => Promise<string>;
|
|
875
|
-
};
|
|
876
|
-
};
|
|
877
|
-
readonly actions: {
|
|
878
|
-
readonly deleteAll: {
|
|
879
|
-
readonly label: "Remover";
|
|
880
|
-
readonly ask: true;
|
|
881
|
-
readonly selection: true;
|
|
882
|
-
};
|
|
883
|
-
};
|
|
884
|
-
readonly individualActions: {
|
|
885
|
-
readonly remove: {
|
|
886
|
-
readonly label: "Remover";
|
|
887
|
-
readonly icon: "trash";
|
|
888
|
-
readonly ask: true;
|
|
889
|
-
};
|
|
890
|
-
};
|
|
891
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
892
|
-
readonly $id: "file";
|
|
893
|
-
readonly owned: "always";
|
|
894
|
-
readonly presets: readonly ["owned"];
|
|
895
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
896
|
-
readonly properties: {
|
|
897
|
-
readonly type: {
|
|
898
|
-
readonly type: "string";
|
|
899
|
-
};
|
|
900
|
-
readonly size: {
|
|
901
|
-
readonly type: "number";
|
|
902
|
-
};
|
|
903
|
-
readonly last_modified: {
|
|
904
|
-
readonly type: "string";
|
|
905
|
-
readonly format: "date-time";
|
|
906
|
-
};
|
|
907
|
-
readonly name: {
|
|
908
|
-
readonly type: "string";
|
|
909
|
-
};
|
|
910
|
-
readonly absolute_path: {
|
|
911
|
-
readonly type: "string";
|
|
912
|
-
};
|
|
913
|
-
readonly relative_path: {
|
|
914
|
-
readonly type: "string";
|
|
915
|
-
};
|
|
916
|
-
readonly immutable: {
|
|
917
|
-
readonly type: "boolean";
|
|
918
|
-
};
|
|
919
|
-
readonly link: {
|
|
920
|
-
readonly getter: (value: any) => Promise<string>;
|
|
921
|
-
};
|
|
922
|
-
readonly download_link: {
|
|
923
|
-
readonly getter: (value: any) => Promise<string>;
|
|
924
|
-
};
|
|
925
|
-
};
|
|
926
|
-
readonly actions: {
|
|
927
|
-
readonly deleteAll: {
|
|
928
|
-
readonly label: "Remover";
|
|
929
|
-
readonly ask: true;
|
|
930
|
-
readonly selection: true;
|
|
931
|
-
};
|
|
932
|
-
};
|
|
933
|
-
readonly individualActions: {
|
|
934
|
-
readonly remove: {
|
|
935
|
-
readonly label: "Remover";
|
|
936
|
-
readonly icon: "trash";
|
|
937
|
-
readonly ask: true;
|
|
938
|
-
};
|
|
939
|
-
};
|
|
940
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
409
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<typeof description>>, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
941
410
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
942
411
|
} & {
|
|
943
412
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
944
413
|
}> | {
|
|
945
414
|
readonly _tag: "Result";
|
|
946
415
|
readonly error: undefined;
|
|
947
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description
|
|
416
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
948
417
|
}>;
|
|
949
|
-
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
950
|
-
readonly $id: "file";
|
|
951
|
-
readonly owned: "always";
|
|
952
|
-
readonly presets: readonly ["owned"];
|
|
953
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
954
|
-
readonly properties: {
|
|
955
|
-
readonly type: {
|
|
956
|
-
readonly type: "string";
|
|
957
|
-
};
|
|
958
|
-
readonly size: {
|
|
959
|
-
readonly type: "number";
|
|
960
|
-
};
|
|
961
|
-
readonly last_modified: {
|
|
962
|
-
readonly type: "string";
|
|
963
|
-
readonly format: "date-time";
|
|
964
|
-
};
|
|
965
|
-
readonly name: {
|
|
966
|
-
readonly type: "string";
|
|
967
|
-
};
|
|
968
|
-
readonly absolute_path: {
|
|
969
|
-
readonly type: "string";
|
|
970
|
-
};
|
|
971
|
-
readonly relative_path: {
|
|
972
|
-
readonly type: "string";
|
|
973
|
-
};
|
|
974
|
-
readonly immutable: {
|
|
975
|
-
readonly type: "boolean";
|
|
976
|
-
};
|
|
977
|
-
readonly link: {
|
|
978
|
-
readonly getter: (value: any) => Promise<string>;
|
|
979
|
-
};
|
|
980
|
-
readonly download_link: {
|
|
981
|
-
readonly getter: (value: any) => Promise<string>;
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
|
-
readonly actions: {
|
|
985
|
-
readonly deleteAll: {
|
|
986
|
-
readonly label: "Remover";
|
|
987
|
-
readonly ask: true;
|
|
988
|
-
readonly selection: true;
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
readonly individualActions: {
|
|
992
|
-
readonly remove: {
|
|
993
|
-
readonly label: "Remover";
|
|
994
|
-
readonly icon: "trash";
|
|
995
|
-
readonly ask: true;
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
418
|
+
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
999
419
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
1000
420
|
} & {
|
|
1001
421
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1002
422
|
}> | {
|
|
1003
423
|
readonly _tag: "Result";
|
|
1004
424
|
readonly error: undefined;
|
|
1005
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description
|
|
425
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
1006
426
|
}>;
|
|
1007
427
|
};
|
|
1008
428
|
contracts: {
|