@aeriajs/builtins 0.0.14 → 0.0.16
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/index.d.ts +276 -109
- package/dist/collections/log/index.d.ts +15 -188
- package/dist/collections/resourceUsage/index.d.ts +3 -2
- package/dist/collections/user/index.d.ts +667 -482
- package/dist/index.d.ts +1031 -851
- package/package.json +2 -2
|
@@ -28,7 +28,7 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
}>, "description" | "functions" | "item"> & {
|
|
31
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
32
32
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
33
33
|
readonly $id: "tempFile";
|
|
34
34
|
readonly temporary: {
|
|
@@ -86,7 +86,8 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
functions: {};
|
|
89
|
-
functionContracts: {}
|
|
89
|
+
functionContracts: Partial<{}>;
|
|
90
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
90
91
|
};
|
|
91
92
|
export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
92
93
|
description: {
|
|
@@ -140,7 +141,165 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
140
141
|
};
|
|
141
142
|
};
|
|
142
143
|
functions: {
|
|
143
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<
|
|
144
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
145
|
+
readonly insert: (payload: {
|
|
146
|
+
what: {
|
|
147
|
+
content: string;
|
|
148
|
+
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
149
|
+
readonly $id: "file";
|
|
150
|
+
readonly owned: "always";
|
|
151
|
+
readonly presets: readonly ["owned"];
|
|
152
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
153
|
+
readonly properties: {
|
|
154
|
+
readonly mime: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
};
|
|
157
|
+
readonly size: {
|
|
158
|
+
readonly type: "number";
|
|
159
|
+
};
|
|
160
|
+
readonly last_modified: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly format: "date-time";
|
|
163
|
+
};
|
|
164
|
+
readonly filename: {
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
};
|
|
167
|
+
readonly absolute_path: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
};
|
|
170
|
+
readonly relative_path: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
readonly immutable: {
|
|
174
|
+
readonly type: "boolean";
|
|
175
|
+
};
|
|
176
|
+
readonly link: {
|
|
177
|
+
readonly getter: (value: any) => Promise<string>;
|
|
178
|
+
};
|
|
179
|
+
readonly download_link: {
|
|
180
|
+
readonly getter: (value: any) => Promise<string>;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly actions: {
|
|
184
|
+
readonly deleteAll: {
|
|
185
|
+
readonly name: "Remover";
|
|
186
|
+
readonly ask: true;
|
|
187
|
+
readonly selection: true;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly individualActions: {
|
|
191
|
+
readonly remove: {
|
|
192
|
+
readonly name: "Remover";
|
|
193
|
+
readonly icon: "trash";
|
|
194
|
+
readonly ask: true;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
}>>, "filename" | "absolute_path" | "_id" | "owner">;
|
|
198
|
+
}, context: import("@aeriajs/types").Context<{
|
|
199
|
+
readonly $id: "file";
|
|
200
|
+
readonly owned: "always";
|
|
201
|
+
readonly presets: readonly ["owned"];
|
|
202
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
203
|
+
readonly properties: {
|
|
204
|
+
readonly mime: {
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
};
|
|
207
|
+
readonly size: {
|
|
208
|
+
readonly type: "number";
|
|
209
|
+
};
|
|
210
|
+
readonly last_modified: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly format: "date-time";
|
|
213
|
+
};
|
|
214
|
+
readonly filename: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
};
|
|
217
|
+
readonly absolute_path: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
};
|
|
220
|
+
readonly relative_path: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
};
|
|
223
|
+
readonly immutable: {
|
|
224
|
+
readonly type: "boolean";
|
|
225
|
+
};
|
|
226
|
+
readonly link: {
|
|
227
|
+
readonly getter: (value: any) => Promise<string>;
|
|
228
|
+
};
|
|
229
|
+
readonly download_link: {
|
|
230
|
+
readonly getter: (value: any) => Promise<string>;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
readonly actions: {
|
|
234
|
+
readonly deleteAll: {
|
|
235
|
+
readonly name: "Remover";
|
|
236
|
+
readonly ask: true;
|
|
237
|
+
readonly selection: true;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
readonly individualActions: {
|
|
241
|
+
readonly remove: {
|
|
242
|
+
readonly name: "Remover";
|
|
243
|
+
readonly icon: "trash";
|
|
244
|
+
readonly ask: true;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
}>) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
248
|
+
readonly download: (payload: {
|
|
249
|
+
fileId: string;
|
|
250
|
+
options: readonly ("download" | "picture")[];
|
|
251
|
+
noHeaders?: boolean | undefined;
|
|
252
|
+
}, context: import("@aeriajs/types").Context<{
|
|
253
|
+
readonly $id: "file";
|
|
254
|
+
readonly owned: "always";
|
|
255
|
+
readonly presets: readonly ["owned"];
|
|
256
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
257
|
+
readonly properties: {
|
|
258
|
+
readonly mime: {
|
|
259
|
+
readonly type: "string";
|
|
260
|
+
};
|
|
261
|
+
readonly size: {
|
|
262
|
+
readonly type: "number";
|
|
263
|
+
};
|
|
264
|
+
readonly last_modified: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
readonly format: "date-time";
|
|
267
|
+
};
|
|
268
|
+
readonly filename: {
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
};
|
|
271
|
+
readonly absolute_path: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
};
|
|
274
|
+
readonly relative_path: {
|
|
275
|
+
readonly type: "string";
|
|
276
|
+
};
|
|
277
|
+
readonly immutable: {
|
|
278
|
+
readonly type: "boolean";
|
|
279
|
+
};
|
|
280
|
+
readonly link: {
|
|
281
|
+
readonly getter: (value: any) => Promise<string>;
|
|
282
|
+
};
|
|
283
|
+
readonly download_link: {
|
|
284
|
+
readonly getter: (value: any) => Promise<string>;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly actions: {
|
|
288
|
+
readonly deleteAll: {
|
|
289
|
+
readonly name: "Remover";
|
|
290
|
+
readonly ask: true;
|
|
291
|
+
readonly selection: true;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
readonly individualActions: {
|
|
295
|
+
readonly remove: {
|
|
296
|
+
readonly name: "Remover";
|
|
297
|
+
readonly icon: "trash";
|
|
298
|
+
readonly ask: true;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
}>) => Promise<import("@aeriajs/types").Left<import("./download.js").FileReadError.DocumentNotFound> | import("@aeriajs/types").Left<import("./download.js").FileReadError.FileNotFound> | import("fs").ReadStream>;
|
|
302
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
|
|
144
303
|
readonly $id: "file";
|
|
145
304
|
readonly owned: "always";
|
|
146
305
|
readonly presets: readonly ["owned"];
|
|
@@ -238,7 +397,8 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
238
397
|
readonly ask: true;
|
|
239
398
|
};
|
|
240
399
|
};
|
|
241
|
-
}
|
|
400
|
+
}>) => Promise<any>;
|
|
401
|
+
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
242
402
|
readonly $id: "file";
|
|
243
403
|
readonly owned: "always";
|
|
244
404
|
readonly presets: readonly ["owned"];
|
|
@@ -287,7 +447,111 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
287
447
|
readonly ask: true;
|
|
288
448
|
};
|
|
289
449
|
};
|
|
290
|
-
}>
|
|
450
|
+
}>) => Promise<any>;
|
|
451
|
+
};
|
|
452
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
453
|
+
item: import("@aeriajs/types").SchemaWithId<{
|
|
454
|
+
readonly $id: "file";
|
|
455
|
+
readonly owned: "always";
|
|
456
|
+
readonly presets: readonly ["owned"];
|
|
457
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
458
|
+
readonly properties: {
|
|
459
|
+
readonly mime: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
};
|
|
462
|
+
readonly size: {
|
|
463
|
+
readonly type: "number";
|
|
464
|
+
};
|
|
465
|
+
readonly last_modified: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
readonly format: "date-time";
|
|
468
|
+
};
|
|
469
|
+
readonly filename: {
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
};
|
|
472
|
+
readonly absolute_path: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
};
|
|
475
|
+
readonly relative_path: {
|
|
476
|
+
readonly type: "string";
|
|
477
|
+
};
|
|
478
|
+
readonly immutable: {
|
|
479
|
+
readonly type: "boolean";
|
|
480
|
+
};
|
|
481
|
+
readonly link: {
|
|
482
|
+
readonly getter: (value: any) => Promise<string>;
|
|
483
|
+
};
|
|
484
|
+
readonly download_link: {
|
|
485
|
+
readonly getter: (value: any) => Promise<string>;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readonly actions: {
|
|
489
|
+
readonly deleteAll: {
|
|
490
|
+
readonly name: "Remover";
|
|
491
|
+
readonly ask: true;
|
|
492
|
+
readonly selection: true;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
readonly individualActions: {
|
|
496
|
+
readonly remove: {
|
|
497
|
+
readonly name: "Remover";
|
|
498
|
+
readonly icon: "trash";
|
|
499
|
+
readonly ask: true;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
}>;
|
|
503
|
+
description: {
|
|
504
|
+
readonly $id: "file";
|
|
505
|
+
readonly owned: "always";
|
|
506
|
+
readonly presets: readonly ["owned"];
|
|
507
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
508
|
+
readonly properties: {
|
|
509
|
+
readonly mime: {
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
};
|
|
512
|
+
readonly size: {
|
|
513
|
+
readonly type: "number";
|
|
514
|
+
};
|
|
515
|
+
readonly last_modified: {
|
|
516
|
+
readonly type: "string";
|
|
517
|
+
readonly format: "date-time";
|
|
518
|
+
};
|
|
519
|
+
readonly filename: {
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
};
|
|
522
|
+
readonly absolute_path: {
|
|
523
|
+
readonly type: "string";
|
|
524
|
+
};
|
|
525
|
+
readonly relative_path: {
|
|
526
|
+
readonly type: "string";
|
|
527
|
+
};
|
|
528
|
+
readonly immutable: {
|
|
529
|
+
readonly type: "boolean";
|
|
530
|
+
};
|
|
531
|
+
readonly link: {
|
|
532
|
+
readonly getter: (value: any) => Promise<string>;
|
|
533
|
+
};
|
|
534
|
+
readonly download_link: {
|
|
535
|
+
readonly getter: (value: any) => Promise<string>;
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
readonly actions: {
|
|
539
|
+
readonly deleteAll: {
|
|
540
|
+
readonly name: "Remover";
|
|
541
|
+
readonly ask: true;
|
|
542
|
+
readonly selection: true;
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
readonly individualActions: {
|
|
546
|
+
readonly remove: {
|
|
547
|
+
readonly name: "Remover";
|
|
548
|
+
readonly icon: "trash";
|
|
549
|
+
readonly ask: true;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
functions: {
|
|
554
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
291
555
|
readonly insert: (payload: {
|
|
292
556
|
what: {
|
|
293
557
|
content: string;
|
|
@@ -595,109 +859,12 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
595
859
|
};
|
|
596
860
|
}>) => Promise<any>;
|
|
597
861
|
};
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
readonly
|
|
601
|
-
readonly
|
|
602
|
-
readonly
|
|
603
|
-
readonly
|
|
604
|
-
readonly properties: {
|
|
605
|
-
readonly mime: {
|
|
606
|
-
readonly type: "string";
|
|
607
|
-
};
|
|
608
|
-
readonly size: {
|
|
609
|
-
readonly type: "number";
|
|
610
|
-
};
|
|
611
|
-
readonly last_modified: {
|
|
612
|
-
readonly type: "string";
|
|
613
|
-
readonly format: "date-time";
|
|
614
|
-
};
|
|
615
|
-
readonly filename: {
|
|
616
|
-
readonly type: "string";
|
|
617
|
-
};
|
|
618
|
-
readonly absolute_path: {
|
|
619
|
-
readonly type: "string";
|
|
620
|
-
};
|
|
621
|
-
readonly relative_path: {
|
|
622
|
-
readonly type: "string";
|
|
623
|
-
};
|
|
624
|
-
readonly immutable: {
|
|
625
|
-
readonly type: "boolean";
|
|
626
|
-
};
|
|
627
|
-
readonly link: {
|
|
628
|
-
readonly getter: (value: any) => Promise<string>;
|
|
629
|
-
};
|
|
630
|
-
readonly download_link: {
|
|
631
|
-
readonly getter: (value: any) => Promise<string>;
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
|
-
readonly actions: {
|
|
635
|
-
readonly deleteAll: {
|
|
636
|
-
readonly name: "Remover";
|
|
637
|
-
readonly ask: true;
|
|
638
|
-
readonly selection: true;
|
|
639
|
-
};
|
|
640
|
-
};
|
|
641
|
-
readonly individualActions: {
|
|
642
|
-
readonly remove: {
|
|
643
|
-
readonly name: "Remover";
|
|
644
|
-
readonly icon: "trash";
|
|
645
|
-
readonly ask: true;
|
|
646
|
-
};
|
|
647
|
-
};
|
|
862
|
+
functionContracts: Partial<{
|
|
863
|
+
readonly get: import("@aeriajs/types").Contract;
|
|
864
|
+
readonly insert: import("@aeriajs/types").Contract;
|
|
865
|
+
readonly download: import("@aeriajs/types").Contract;
|
|
866
|
+
readonly remove: import("@aeriajs/types").Contract;
|
|
867
|
+
readonly removeAll: import("@aeriajs/types").Contract;
|
|
648
868
|
}>;
|
|
649
|
-
|
|
650
|
-
readonly $id: "file";
|
|
651
|
-
readonly owned: "always";
|
|
652
|
-
readonly presets: readonly ["owned"];
|
|
653
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
654
|
-
readonly properties: {
|
|
655
|
-
readonly mime: {
|
|
656
|
-
readonly type: "string";
|
|
657
|
-
};
|
|
658
|
-
readonly size: {
|
|
659
|
-
readonly type: "number";
|
|
660
|
-
};
|
|
661
|
-
readonly last_modified: {
|
|
662
|
-
readonly type: "string";
|
|
663
|
-
readonly format: "date-time";
|
|
664
|
-
};
|
|
665
|
-
readonly filename: {
|
|
666
|
-
readonly type: "string";
|
|
667
|
-
};
|
|
668
|
-
readonly absolute_path: {
|
|
669
|
-
readonly type: "string";
|
|
670
|
-
};
|
|
671
|
-
readonly relative_path: {
|
|
672
|
-
readonly type: "string";
|
|
673
|
-
};
|
|
674
|
-
readonly immutable: {
|
|
675
|
-
readonly type: "boolean";
|
|
676
|
-
};
|
|
677
|
-
readonly link: {
|
|
678
|
-
readonly getter: (value: any) => Promise<string>;
|
|
679
|
-
};
|
|
680
|
-
readonly download_link: {
|
|
681
|
-
readonly getter: (value: any) => Promise<string>;
|
|
682
|
-
};
|
|
683
|
-
};
|
|
684
|
-
readonly actions: {
|
|
685
|
-
readonly deleteAll: {
|
|
686
|
-
readonly name: "Remover";
|
|
687
|
-
readonly ask: true;
|
|
688
|
-
readonly selection: true;
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
readonly individualActions: {
|
|
692
|
-
readonly remove: {
|
|
693
|
-
readonly name: "Remover";
|
|
694
|
-
readonly icon: "trash";
|
|
695
|
-
readonly ask: true;
|
|
696
|
-
};
|
|
697
|
-
};
|
|
698
|
-
};
|
|
699
|
-
functions: any;
|
|
700
|
-
functionContracts: {
|
|
701
|
-
[x: string]: import("@aeriajs/types").Contract;
|
|
702
|
-
};
|
|
869
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
703
870
|
};
|
|
@@ -27,193 +27,11 @@ export declare const log: Omit<import("@aeriajs/types").Collection<{
|
|
|
27
27
|
readonly filters: readonly ["context", "message", "owner"];
|
|
28
28
|
};
|
|
29
29
|
functions: {
|
|
30
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
readonly properties: {
|
|
34
|
-
readonly owner: {
|
|
35
|
-
readonly $ref: "user";
|
|
36
|
-
readonly noForm: true;
|
|
37
|
-
};
|
|
38
|
-
readonly context: {
|
|
39
|
-
readonly type: "string";
|
|
40
|
-
};
|
|
41
|
-
readonly message: {
|
|
42
|
-
readonly type: "string";
|
|
43
|
-
};
|
|
44
|
-
readonly details: {
|
|
45
|
-
readonly type: "object";
|
|
46
|
-
readonly variable: true;
|
|
47
|
-
};
|
|
48
|
-
readonly created_at: {
|
|
49
|
-
readonly type: "string";
|
|
50
|
-
readonly format: "date-time";
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
readonly icon: "magnifying-glass";
|
|
54
|
-
readonly presets: readonly ["view"];
|
|
55
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
56
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
57
|
-
readonly $id: "log";
|
|
58
|
-
readonly required: readonly ["context", "message"];
|
|
59
|
-
readonly properties: {
|
|
60
|
-
readonly owner: {
|
|
61
|
-
readonly $ref: "user";
|
|
62
|
-
readonly noForm: true;
|
|
63
|
-
};
|
|
64
|
-
readonly context: {
|
|
65
|
-
readonly type: "string";
|
|
66
|
-
};
|
|
67
|
-
readonly message: {
|
|
68
|
-
readonly type: "string";
|
|
69
|
-
};
|
|
70
|
-
readonly details: {
|
|
71
|
-
readonly type: "object";
|
|
72
|
-
readonly variable: true;
|
|
73
|
-
};
|
|
74
|
-
readonly created_at: {
|
|
75
|
-
readonly type: "string";
|
|
76
|
-
readonly format: "date-time";
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
readonly icon: "magnifying-glass";
|
|
80
|
-
readonly presets: readonly ["view"];
|
|
81
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
82
|
-
}, {}>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
83
|
-
readonly $id: "log";
|
|
84
|
-
readonly required: readonly ["context", "message"];
|
|
85
|
-
readonly properties: {
|
|
86
|
-
readonly owner: {
|
|
87
|
-
readonly $ref: "user";
|
|
88
|
-
readonly noForm: true;
|
|
89
|
-
};
|
|
90
|
-
readonly context: {
|
|
91
|
-
readonly type: "string";
|
|
92
|
-
};
|
|
93
|
-
readonly message: {
|
|
94
|
-
readonly type: "string";
|
|
95
|
-
};
|
|
96
|
-
readonly details: {
|
|
97
|
-
readonly type: "object";
|
|
98
|
-
readonly variable: true;
|
|
99
|
-
};
|
|
100
|
-
readonly created_at: {
|
|
101
|
-
readonly type: "string";
|
|
102
|
-
readonly format: "date-time";
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
readonly icon: "magnifying-glass";
|
|
106
|
-
readonly presets: readonly ["view"];
|
|
107
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
108
|
-
}> | null>;
|
|
109
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
|
|
110
|
-
readonly $id: "log";
|
|
111
|
-
readonly required: readonly ["context", "message"];
|
|
112
|
-
readonly properties: {
|
|
113
|
-
readonly owner: {
|
|
114
|
-
readonly $ref: "user";
|
|
115
|
-
readonly noForm: true;
|
|
116
|
-
};
|
|
117
|
-
readonly context: {
|
|
118
|
-
readonly type: "string";
|
|
119
|
-
};
|
|
120
|
-
readonly message: {
|
|
121
|
-
readonly type: "string";
|
|
122
|
-
};
|
|
123
|
-
readonly details: {
|
|
124
|
-
readonly type: "object";
|
|
125
|
-
readonly variable: true;
|
|
126
|
-
};
|
|
127
|
-
readonly created_at: {
|
|
128
|
-
readonly type: "string";
|
|
129
|
-
readonly format: "date-time";
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
readonly icon: "magnifying-glass";
|
|
133
|
-
readonly presets: readonly ["view"];
|
|
134
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
135
|
-
}, {}>, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
136
|
-
readonly $id: "log";
|
|
137
|
-
readonly required: readonly ["context", "message"];
|
|
138
|
-
readonly properties: {
|
|
139
|
-
readonly owner: {
|
|
140
|
-
readonly $ref: "user";
|
|
141
|
-
readonly noForm: true;
|
|
142
|
-
};
|
|
143
|
-
readonly context: {
|
|
144
|
-
readonly type: "string";
|
|
145
|
-
};
|
|
146
|
-
readonly message: {
|
|
147
|
-
readonly type: "string";
|
|
148
|
-
};
|
|
149
|
-
readonly details: {
|
|
150
|
-
readonly type: "object";
|
|
151
|
-
readonly variable: true;
|
|
152
|
-
};
|
|
153
|
-
readonly created_at: {
|
|
154
|
-
readonly type: "string";
|
|
155
|
-
readonly format: "date-time";
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
readonly icon: "magnifying-glass";
|
|
159
|
-
readonly presets: readonly ["view"];
|
|
160
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
161
|
-
}>[]>;
|
|
162
|
-
readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<{
|
|
163
|
-
readonly $id: "log";
|
|
164
|
-
readonly required: readonly ["context", "message"];
|
|
165
|
-
readonly properties: {
|
|
166
|
-
readonly owner: {
|
|
167
|
-
readonly $ref: "user";
|
|
168
|
-
readonly noForm: true;
|
|
169
|
-
};
|
|
170
|
-
readonly context: {
|
|
171
|
-
readonly type: "string";
|
|
172
|
-
};
|
|
173
|
-
readonly message: {
|
|
174
|
-
readonly type: "string";
|
|
175
|
-
};
|
|
176
|
-
readonly details: {
|
|
177
|
-
readonly type: "object";
|
|
178
|
-
readonly variable: true;
|
|
179
|
-
};
|
|
180
|
-
readonly created_at: {
|
|
181
|
-
readonly type: "string";
|
|
182
|
-
readonly format: "date-time";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
readonly icon: "magnifying-glass";
|
|
186
|
-
readonly presets: readonly ["view"];
|
|
187
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
188
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
189
|
-
readonly $id: "log";
|
|
190
|
-
readonly required: readonly ["context", "message"];
|
|
191
|
-
readonly properties: {
|
|
192
|
-
readonly owner: {
|
|
193
|
-
readonly $ref: "user";
|
|
194
|
-
readonly noForm: true;
|
|
195
|
-
};
|
|
196
|
-
readonly context: {
|
|
197
|
-
readonly type: "string";
|
|
198
|
-
};
|
|
199
|
-
readonly message: {
|
|
200
|
-
readonly type: "string";
|
|
201
|
-
};
|
|
202
|
-
readonly details: {
|
|
203
|
-
readonly type: "object";
|
|
204
|
-
readonly variable: true;
|
|
205
|
-
};
|
|
206
|
-
readonly created_at: {
|
|
207
|
-
readonly type: "string";
|
|
208
|
-
readonly format: "date-time";
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
readonly icon: "magnifying-glass";
|
|
212
|
-
readonly presets: readonly ["view"];
|
|
213
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
214
|
-
}, {}>, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
30
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
31
|
+
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
32
|
+
readonly insert: <TContext_2 extends import("@aeriajs/types").Context, TDocument_2 = import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
215
33
|
};
|
|
216
|
-
}>, "description" | "functions" | "item"> & {
|
|
34
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
217
35
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
218
36
|
readonly $id: "log";
|
|
219
37
|
readonly required: readonly ["context", "message"];
|
|
@@ -268,6 +86,15 @@ export declare const log: Omit<import("@aeriajs/types").Collection<{
|
|
|
268
86
|
readonly presets: readonly ["view"];
|
|
269
87
|
readonly filters: readonly ["context", "message", "owner"];
|
|
270
88
|
};
|
|
271
|
-
functions: {
|
|
272
|
-
|
|
89
|
+
functions: {
|
|
90
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
91
|
+
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
92
|
+
readonly insert: <TContext_2 extends import("@aeriajs/types").Context, TDocument_2 = import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
93
|
+
};
|
|
94
|
+
functionContracts: Partial<{
|
|
95
|
+
readonly get: import("@aeriajs/types").Contract;
|
|
96
|
+
readonly getAll: import("@aeriajs/types").Contract;
|
|
97
|
+
readonly insert: import("@aeriajs/types").Contract;
|
|
98
|
+
}>;
|
|
99
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
273
100
|
};
|
|
@@ -12,7 +12,7 @@ export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
}>, "description" | "functions" | "item"> & {
|
|
15
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
16
16
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
17
17
|
readonly $id: "resourceUsage";
|
|
18
18
|
readonly required: readonly [];
|
|
@@ -40,5 +40,6 @@ export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
functions: {};
|
|
43
|
-
functionContracts: {}
|
|
43
|
+
functionContracts: Partial<{}>;
|
|
44
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
44
45
|
};
|