@aeriajs/builtins 0.0.13 → 0.0.15
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 +66 -875
- package/dist/collections/log/index.d.ts +10 -560
- package/dist/collections/resourceUsage/index.d.ts +6 -36
- package/dist/collections/user/index.d.ts +753 -2229
- package/dist/index.d.ts +1120 -3985
- package/package.json +7 -7
|
@@ -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: {
|
|
@@ -85,40 +85,9 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
functions: {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
readonly temporary: {
|
|
92
|
-
readonly index: "created_at";
|
|
93
|
-
readonly expireAfterSeconds: 3600;
|
|
94
|
-
};
|
|
95
|
-
readonly properties: {
|
|
96
|
-
readonly created_at: {
|
|
97
|
-
readonly type: "string";
|
|
98
|
-
readonly format: "date-time";
|
|
99
|
-
};
|
|
100
|
-
readonly absolute_path: {
|
|
101
|
-
readonly type: "string";
|
|
102
|
-
};
|
|
103
|
-
readonly size: {
|
|
104
|
-
readonly type: "number";
|
|
105
|
-
};
|
|
106
|
-
readonly mime: {
|
|
107
|
-
readonly type: "number";
|
|
108
|
-
};
|
|
109
|
-
readonly collection: {
|
|
110
|
-
readonly type: "string";
|
|
111
|
-
};
|
|
112
|
-
readonly filename: {
|
|
113
|
-
readonly type: "string";
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
}>, ...args: any[]) => any;
|
|
117
|
-
};
|
|
118
|
-
functionContracts: Partial<{
|
|
119
|
-
[x: string]: import("@aeriajs/types").Contract;
|
|
120
|
-
}>;
|
|
121
|
-
accessControl: import("@aeriajs/types").AccessControl<{
|
|
88
|
+
functions: {};
|
|
89
|
+
functionContracts: Partial<{}>;
|
|
90
|
+
accessControl: import("@aeriajs/types").AccessControl | import("@aeriajs/types").AccessControl<{
|
|
122
91
|
description: {
|
|
123
92
|
readonly $id: "tempFile";
|
|
124
93
|
readonly temporary: {
|
|
@@ -147,37 +116,8 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
147
116
|
};
|
|
148
117
|
};
|
|
149
118
|
};
|
|
150
|
-
functions:
|
|
151
|
-
|
|
152
|
-
readonly $id: "tempFile";
|
|
153
|
-
readonly temporary: {
|
|
154
|
-
readonly index: "created_at";
|
|
155
|
-
readonly expireAfterSeconds: 3600;
|
|
156
|
-
};
|
|
157
|
-
readonly properties: {
|
|
158
|
-
readonly created_at: {
|
|
159
|
-
readonly type: "string";
|
|
160
|
-
readonly format: "date-time";
|
|
161
|
-
};
|
|
162
|
-
readonly absolute_path: {
|
|
163
|
-
readonly type: "string";
|
|
164
|
-
};
|
|
165
|
-
readonly size: {
|
|
166
|
-
readonly type: "number";
|
|
167
|
-
};
|
|
168
|
-
readonly mime: {
|
|
169
|
-
readonly type: "number";
|
|
170
|
-
};
|
|
171
|
-
readonly collection: {
|
|
172
|
-
readonly type: "string";
|
|
173
|
-
};
|
|
174
|
-
readonly filename: {
|
|
175
|
-
readonly type: "string";
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
}>, ...args: any[]) => any;
|
|
179
|
-
};
|
|
180
|
-
}>;
|
|
119
|
+
functions: any;
|
|
120
|
+
}> | undefined;
|
|
181
121
|
};
|
|
182
122
|
export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
183
123
|
description: {
|
|
@@ -231,154 +171,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
231
171
|
};
|
|
232
172
|
};
|
|
233
173
|
functions: {
|
|
234
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<
|
|
235
|
-
readonly $id: "file";
|
|
236
|
-
readonly owned: "always";
|
|
237
|
-
readonly presets: readonly ["owned"];
|
|
238
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
239
|
-
readonly properties: {
|
|
240
|
-
readonly mime: {
|
|
241
|
-
readonly type: "string";
|
|
242
|
-
};
|
|
243
|
-
readonly size: {
|
|
244
|
-
readonly type: "number";
|
|
245
|
-
};
|
|
246
|
-
readonly last_modified: {
|
|
247
|
-
readonly type: "string";
|
|
248
|
-
readonly format: "date-time";
|
|
249
|
-
};
|
|
250
|
-
readonly filename: {
|
|
251
|
-
readonly type: "string";
|
|
252
|
-
};
|
|
253
|
-
readonly absolute_path: {
|
|
254
|
-
readonly type: "string";
|
|
255
|
-
};
|
|
256
|
-
readonly relative_path: {
|
|
257
|
-
readonly type: "string";
|
|
258
|
-
};
|
|
259
|
-
readonly immutable: {
|
|
260
|
-
readonly type: "boolean";
|
|
261
|
-
};
|
|
262
|
-
readonly link: {
|
|
263
|
-
readonly getter: (value: any) => Promise<string>;
|
|
264
|
-
};
|
|
265
|
-
readonly download_link: {
|
|
266
|
-
readonly getter: (value: any) => Promise<string>;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
readonly actions: {
|
|
270
|
-
readonly deleteAll: {
|
|
271
|
-
readonly name: "Remover";
|
|
272
|
-
readonly ask: true;
|
|
273
|
-
readonly selection: true;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
readonly individualActions: {
|
|
277
|
-
readonly remove: {
|
|
278
|
-
readonly name: "Remover";
|
|
279
|
-
readonly icon: "trash";
|
|
280
|
-
readonly ask: true;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
284
|
-
readonly $id: "file";
|
|
285
|
-
readonly owned: "always";
|
|
286
|
-
readonly presets: readonly ["owned"];
|
|
287
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
288
|
-
readonly properties: {
|
|
289
|
-
readonly mime: {
|
|
290
|
-
readonly type: "string";
|
|
291
|
-
};
|
|
292
|
-
readonly size: {
|
|
293
|
-
readonly type: "number";
|
|
294
|
-
};
|
|
295
|
-
readonly last_modified: {
|
|
296
|
-
readonly type: "string";
|
|
297
|
-
readonly format: "date-time";
|
|
298
|
-
};
|
|
299
|
-
readonly filename: {
|
|
300
|
-
readonly type: "string";
|
|
301
|
-
};
|
|
302
|
-
readonly absolute_path: {
|
|
303
|
-
readonly type: "string";
|
|
304
|
-
};
|
|
305
|
-
readonly relative_path: {
|
|
306
|
-
readonly type: "string";
|
|
307
|
-
};
|
|
308
|
-
readonly immutable: {
|
|
309
|
-
readonly type: "boolean";
|
|
310
|
-
};
|
|
311
|
-
readonly link: {
|
|
312
|
-
readonly getter: (value: any) => Promise<string>;
|
|
313
|
-
};
|
|
314
|
-
readonly download_link: {
|
|
315
|
-
readonly getter: (value: any) => Promise<string>;
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
readonly actions: {
|
|
319
|
-
readonly deleteAll: {
|
|
320
|
-
readonly name: "Remover";
|
|
321
|
-
readonly ask: true;
|
|
322
|
-
readonly selection: true;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
readonly individualActions: {
|
|
326
|
-
readonly remove: {
|
|
327
|
-
readonly name: "Remover";
|
|
328
|
-
readonly icon: "trash";
|
|
329
|
-
readonly ask: true;
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
}>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
333
|
-
readonly $id: "file";
|
|
334
|
-
readonly owned: "always";
|
|
335
|
-
readonly presets: readonly ["owned"];
|
|
336
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
337
|
-
readonly properties: {
|
|
338
|
-
readonly mime: {
|
|
339
|
-
readonly type: "string";
|
|
340
|
-
};
|
|
341
|
-
readonly size: {
|
|
342
|
-
readonly type: "number";
|
|
343
|
-
};
|
|
344
|
-
readonly last_modified: {
|
|
345
|
-
readonly type: "string";
|
|
346
|
-
readonly format: "date-time";
|
|
347
|
-
};
|
|
348
|
-
readonly filename: {
|
|
349
|
-
readonly type: "string";
|
|
350
|
-
};
|
|
351
|
-
readonly absolute_path: {
|
|
352
|
-
readonly type: "string";
|
|
353
|
-
};
|
|
354
|
-
readonly relative_path: {
|
|
355
|
-
readonly type: "string";
|
|
356
|
-
};
|
|
357
|
-
readonly immutable: {
|
|
358
|
-
readonly type: "boolean";
|
|
359
|
-
};
|
|
360
|
-
readonly link: {
|
|
361
|
-
readonly getter: (value: any) => Promise<string>;
|
|
362
|
-
};
|
|
363
|
-
readonly download_link: {
|
|
364
|
-
readonly getter: (value: any) => Promise<string>;
|
|
365
|
-
};
|
|
366
|
-
};
|
|
367
|
-
readonly actions: {
|
|
368
|
-
readonly deleteAll: {
|
|
369
|
-
readonly name: "Remover";
|
|
370
|
-
readonly ask: true;
|
|
371
|
-
readonly selection: true;
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
readonly individualActions: {
|
|
375
|
-
readonly remove: {
|
|
376
|
-
readonly name: "Remover";
|
|
377
|
-
readonly icon: "trash";
|
|
378
|
-
readonly ask: true;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
}> | null>;
|
|
174
|
+
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>;
|
|
382
175
|
readonly insert: (payload: {
|
|
383
176
|
what: {
|
|
384
177
|
content: string;
|
|
@@ -686,7 +479,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
686
479
|
};
|
|
687
480
|
}>) => Promise<any>;
|
|
688
481
|
};
|
|
689
|
-
}>, "description" | "functions" | "item"> & {
|
|
482
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
690
483
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
691
484
|
readonly $id: "file";
|
|
692
485
|
readonly owned: "always";
|
|
@@ -788,208 +581,61 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
788
581
|
};
|
|
789
582
|
};
|
|
790
583
|
functions: {
|
|
791
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
readonly
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
readonly
|
|
801
|
-
readonly
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
readonly
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
readonly
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
readonly
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
readonly
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
readonly
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
readonly
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
readonly mime: {
|
|
847
|
-
readonly type: "string";
|
|
848
|
-
};
|
|
849
|
-
readonly size: {
|
|
850
|
-
readonly type: "number";
|
|
851
|
-
};
|
|
852
|
-
readonly last_modified: {
|
|
853
|
-
readonly type: "string";
|
|
854
|
-
readonly format: "date-time";
|
|
855
|
-
};
|
|
856
|
-
readonly filename: {
|
|
857
|
-
readonly type: "string";
|
|
858
|
-
};
|
|
859
|
-
readonly absolute_path: {
|
|
860
|
-
readonly type: "string";
|
|
861
|
-
};
|
|
862
|
-
readonly relative_path: {
|
|
863
|
-
readonly type: "string";
|
|
864
|
-
};
|
|
865
|
-
readonly immutable: {
|
|
866
|
-
readonly type: "boolean";
|
|
867
|
-
};
|
|
868
|
-
readonly link: {
|
|
869
|
-
readonly getter: (value: any) => Promise<string>;
|
|
870
|
-
};
|
|
871
|
-
readonly download_link: {
|
|
872
|
-
readonly getter: (value: any) => Promise<string>;
|
|
873
|
-
};
|
|
874
|
-
};
|
|
875
|
-
readonly actions: {
|
|
876
|
-
readonly deleteAll: {
|
|
877
|
-
readonly name: "Remover";
|
|
878
|
-
readonly ask: true;
|
|
879
|
-
readonly selection: true;
|
|
880
|
-
};
|
|
881
|
-
};
|
|
882
|
-
readonly individualActions: {
|
|
883
|
-
readonly remove: {
|
|
884
|
-
readonly name: "Remover";
|
|
885
|
-
readonly icon: "trash";
|
|
886
|
-
readonly ask: true;
|
|
887
|
-
};
|
|
888
|
-
};
|
|
889
|
-
}>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
890
|
-
readonly $id: "file";
|
|
891
|
-
readonly owned: "always";
|
|
892
|
-
readonly presets: readonly ["owned"];
|
|
893
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
894
|
-
readonly properties: {
|
|
895
|
-
readonly mime: {
|
|
896
|
-
readonly type: "string";
|
|
897
|
-
};
|
|
898
|
-
readonly size: {
|
|
899
|
-
readonly type: "number";
|
|
900
|
-
};
|
|
901
|
-
readonly last_modified: {
|
|
902
|
-
readonly type: "string";
|
|
903
|
-
readonly format: "date-time";
|
|
904
|
-
};
|
|
905
|
-
readonly filename: {
|
|
906
|
-
readonly type: "string";
|
|
907
|
-
};
|
|
908
|
-
readonly absolute_path: {
|
|
909
|
-
readonly type: "string";
|
|
910
|
-
};
|
|
911
|
-
readonly relative_path: {
|
|
912
|
-
readonly type: "string";
|
|
913
|
-
};
|
|
914
|
-
readonly immutable: {
|
|
915
|
-
readonly type: "boolean";
|
|
916
|
-
};
|
|
917
|
-
readonly link: {
|
|
918
|
-
readonly getter: (value: any) => Promise<string>;
|
|
919
|
-
};
|
|
920
|
-
readonly download_link: {
|
|
921
|
-
readonly getter: (value: any) => Promise<string>;
|
|
922
|
-
};
|
|
923
|
-
};
|
|
924
|
-
readonly actions: {
|
|
925
|
-
readonly deleteAll: {
|
|
926
|
-
readonly name: "Remover";
|
|
927
|
-
readonly ask: true;
|
|
928
|
-
readonly selection: true;
|
|
929
|
-
};
|
|
930
|
-
};
|
|
931
|
-
readonly individualActions: {
|
|
932
|
-
readonly remove: {
|
|
933
|
-
readonly name: "Remover";
|
|
934
|
-
readonly icon: "trash";
|
|
935
|
-
readonly ask: true;
|
|
936
|
-
};
|
|
937
|
-
};
|
|
938
|
-
}> | null>;
|
|
939
|
-
readonly insert: (payload: {
|
|
940
|
-
what: {
|
|
941
|
-
content: string;
|
|
942
|
-
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
943
|
-
readonly $id: "file";
|
|
944
|
-
readonly owned: "always";
|
|
945
|
-
readonly presets: readonly ["owned"];
|
|
946
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
947
|
-
readonly properties: {
|
|
948
|
-
readonly mime: {
|
|
949
|
-
readonly type: "string";
|
|
950
|
-
};
|
|
951
|
-
readonly size: {
|
|
952
|
-
readonly type: "number";
|
|
953
|
-
};
|
|
954
|
-
readonly last_modified: {
|
|
955
|
-
readonly type: "string";
|
|
956
|
-
readonly format: "date-time";
|
|
957
|
-
};
|
|
958
|
-
readonly filename: {
|
|
959
|
-
readonly type: "string";
|
|
960
|
-
};
|
|
961
|
-
readonly absolute_path: {
|
|
962
|
-
readonly type: "string";
|
|
963
|
-
};
|
|
964
|
-
readonly relative_path: {
|
|
965
|
-
readonly type: "string";
|
|
966
|
-
};
|
|
967
|
-
readonly immutable: {
|
|
968
|
-
readonly type: "boolean";
|
|
969
|
-
};
|
|
970
|
-
readonly link: {
|
|
971
|
-
readonly getter: (value: any) => Promise<string>;
|
|
972
|
-
};
|
|
973
|
-
readonly download_link: {
|
|
974
|
-
readonly getter: (value: any) => Promise<string>;
|
|
975
|
-
};
|
|
976
|
-
};
|
|
977
|
-
readonly actions: {
|
|
978
|
-
readonly deleteAll: {
|
|
979
|
-
readonly name: "Remover";
|
|
980
|
-
readonly ask: true;
|
|
981
|
-
readonly selection: true;
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
|
-
readonly individualActions: {
|
|
985
|
-
readonly remove: {
|
|
986
|
-
readonly name: "Remover";
|
|
987
|
-
readonly icon: "trash";
|
|
988
|
-
readonly ask: true;
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
}>>, "filename" | "absolute_path" | "_id" | "owner">;
|
|
992
|
-
}, context: import("@aeriajs/types").Context<{
|
|
584
|
+
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>;
|
|
585
|
+
readonly insert: (payload: {
|
|
586
|
+
what: {
|
|
587
|
+
content: string;
|
|
588
|
+
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
589
|
+
readonly $id: "file";
|
|
590
|
+
readonly owned: "always";
|
|
591
|
+
readonly presets: readonly ["owned"];
|
|
592
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
593
|
+
readonly properties: {
|
|
594
|
+
readonly mime: {
|
|
595
|
+
readonly type: "string";
|
|
596
|
+
};
|
|
597
|
+
readonly size: {
|
|
598
|
+
readonly type: "number";
|
|
599
|
+
};
|
|
600
|
+
readonly last_modified: {
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
readonly format: "date-time";
|
|
603
|
+
};
|
|
604
|
+
readonly filename: {
|
|
605
|
+
readonly type: "string";
|
|
606
|
+
};
|
|
607
|
+
readonly absolute_path: {
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
};
|
|
610
|
+
readonly relative_path: {
|
|
611
|
+
readonly type: "string";
|
|
612
|
+
};
|
|
613
|
+
readonly immutable: {
|
|
614
|
+
readonly type: "boolean";
|
|
615
|
+
};
|
|
616
|
+
readonly link: {
|
|
617
|
+
readonly getter: (value: any) => Promise<string>;
|
|
618
|
+
};
|
|
619
|
+
readonly download_link: {
|
|
620
|
+
readonly getter: (value: any) => Promise<string>;
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
readonly actions: {
|
|
624
|
+
readonly deleteAll: {
|
|
625
|
+
readonly name: "Remover";
|
|
626
|
+
readonly ask: true;
|
|
627
|
+
readonly selection: true;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
readonly individualActions: {
|
|
631
|
+
readonly remove: {
|
|
632
|
+
readonly name: "Remover";
|
|
633
|
+
readonly icon: "trash";
|
|
634
|
+
readonly ask: true;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
}>>, "filename" | "absolute_path" | "_id" | "owner">;
|
|
638
|
+
}, context: import("@aeriajs/types").Context<{
|
|
993
639
|
readonly $id: "file";
|
|
994
640
|
readonly owned: "always";
|
|
995
641
|
readonly presets: readonly ["owned"];
|
|
@@ -1250,7 +896,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
1250
896
|
readonly remove: import("@aeriajs/types").Contract;
|
|
1251
897
|
readonly removeAll: import("@aeriajs/types").Contract;
|
|
1252
898
|
}>;
|
|
1253
|
-
accessControl: import("@aeriajs/types").AccessControl<{
|
|
899
|
+
accessControl: import("@aeriajs/types").AccessControl | import("@aeriajs/types").AccessControl<{
|
|
1254
900
|
description: {
|
|
1255
901
|
readonly $id: "file";
|
|
1256
902
|
readonly owned: "always";
|
|
@@ -1301,461 +947,6 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
1301
947
|
};
|
|
1302
948
|
};
|
|
1303
949
|
};
|
|
1304
|
-
functions:
|
|
1305
|
-
|
|
1306
|
-
readonly $id: "file";
|
|
1307
|
-
readonly owned: "always";
|
|
1308
|
-
readonly presets: readonly ["owned"];
|
|
1309
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1310
|
-
readonly properties: {
|
|
1311
|
-
readonly mime: {
|
|
1312
|
-
readonly type: "string";
|
|
1313
|
-
};
|
|
1314
|
-
readonly size: {
|
|
1315
|
-
readonly type: "number";
|
|
1316
|
-
};
|
|
1317
|
-
readonly last_modified: {
|
|
1318
|
-
readonly type: "string";
|
|
1319
|
-
readonly format: "date-time";
|
|
1320
|
-
};
|
|
1321
|
-
readonly filename: {
|
|
1322
|
-
readonly type: "string";
|
|
1323
|
-
};
|
|
1324
|
-
readonly absolute_path: {
|
|
1325
|
-
readonly type: "string";
|
|
1326
|
-
};
|
|
1327
|
-
readonly relative_path: {
|
|
1328
|
-
readonly type: "string";
|
|
1329
|
-
};
|
|
1330
|
-
readonly immutable: {
|
|
1331
|
-
readonly type: "boolean";
|
|
1332
|
-
};
|
|
1333
|
-
readonly link: {
|
|
1334
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1335
|
-
};
|
|
1336
|
-
readonly download_link: {
|
|
1337
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1338
|
-
};
|
|
1339
|
-
};
|
|
1340
|
-
readonly actions: {
|
|
1341
|
-
readonly deleteAll: {
|
|
1342
|
-
readonly name: "Remover";
|
|
1343
|
-
readonly ask: true;
|
|
1344
|
-
readonly selection: true;
|
|
1345
|
-
};
|
|
1346
|
-
};
|
|
1347
|
-
readonly individualActions: {
|
|
1348
|
-
readonly remove: {
|
|
1349
|
-
readonly name: "Remover";
|
|
1350
|
-
readonly icon: "trash";
|
|
1351
|
-
readonly ask: true;
|
|
1352
|
-
};
|
|
1353
|
-
};
|
|
1354
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
1355
|
-
readonly $id: "file";
|
|
1356
|
-
readonly owned: "always";
|
|
1357
|
-
readonly presets: readonly ["owned"];
|
|
1358
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1359
|
-
readonly properties: {
|
|
1360
|
-
readonly mime: {
|
|
1361
|
-
readonly type: "string";
|
|
1362
|
-
};
|
|
1363
|
-
readonly size: {
|
|
1364
|
-
readonly type: "number";
|
|
1365
|
-
};
|
|
1366
|
-
readonly last_modified: {
|
|
1367
|
-
readonly type: "string";
|
|
1368
|
-
readonly format: "date-time";
|
|
1369
|
-
};
|
|
1370
|
-
readonly filename: {
|
|
1371
|
-
readonly type: "string";
|
|
1372
|
-
};
|
|
1373
|
-
readonly absolute_path: {
|
|
1374
|
-
readonly type: "string";
|
|
1375
|
-
};
|
|
1376
|
-
readonly relative_path: {
|
|
1377
|
-
readonly type: "string";
|
|
1378
|
-
};
|
|
1379
|
-
readonly immutable: {
|
|
1380
|
-
readonly type: "boolean";
|
|
1381
|
-
};
|
|
1382
|
-
readonly link: {
|
|
1383
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1384
|
-
};
|
|
1385
|
-
readonly download_link: {
|
|
1386
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1387
|
-
};
|
|
1388
|
-
};
|
|
1389
|
-
readonly actions: {
|
|
1390
|
-
readonly deleteAll: {
|
|
1391
|
-
readonly name: "Remover";
|
|
1392
|
-
readonly ask: true;
|
|
1393
|
-
readonly selection: true;
|
|
1394
|
-
};
|
|
1395
|
-
};
|
|
1396
|
-
readonly individualActions: {
|
|
1397
|
-
readonly remove: {
|
|
1398
|
-
readonly name: "Remover";
|
|
1399
|
-
readonly icon: "trash";
|
|
1400
|
-
readonly ask: true;
|
|
1401
|
-
};
|
|
1402
|
-
};
|
|
1403
|
-
}>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
1404
|
-
readonly $id: "file";
|
|
1405
|
-
readonly owned: "always";
|
|
1406
|
-
readonly presets: readonly ["owned"];
|
|
1407
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1408
|
-
readonly properties: {
|
|
1409
|
-
readonly mime: {
|
|
1410
|
-
readonly type: "string";
|
|
1411
|
-
};
|
|
1412
|
-
readonly size: {
|
|
1413
|
-
readonly type: "number";
|
|
1414
|
-
};
|
|
1415
|
-
readonly last_modified: {
|
|
1416
|
-
readonly type: "string";
|
|
1417
|
-
readonly format: "date-time";
|
|
1418
|
-
};
|
|
1419
|
-
readonly filename: {
|
|
1420
|
-
readonly type: "string";
|
|
1421
|
-
};
|
|
1422
|
-
readonly absolute_path: {
|
|
1423
|
-
readonly type: "string";
|
|
1424
|
-
};
|
|
1425
|
-
readonly relative_path: {
|
|
1426
|
-
readonly type: "string";
|
|
1427
|
-
};
|
|
1428
|
-
readonly immutable: {
|
|
1429
|
-
readonly type: "boolean";
|
|
1430
|
-
};
|
|
1431
|
-
readonly link: {
|
|
1432
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1433
|
-
};
|
|
1434
|
-
readonly download_link: {
|
|
1435
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1436
|
-
};
|
|
1437
|
-
};
|
|
1438
|
-
readonly actions: {
|
|
1439
|
-
readonly deleteAll: {
|
|
1440
|
-
readonly name: "Remover";
|
|
1441
|
-
readonly ask: true;
|
|
1442
|
-
readonly selection: true;
|
|
1443
|
-
};
|
|
1444
|
-
};
|
|
1445
|
-
readonly individualActions: {
|
|
1446
|
-
readonly remove: {
|
|
1447
|
-
readonly name: "Remover";
|
|
1448
|
-
readonly icon: "trash";
|
|
1449
|
-
readonly ask: true;
|
|
1450
|
-
};
|
|
1451
|
-
};
|
|
1452
|
-
}> | null>;
|
|
1453
|
-
readonly insert: (payload: {
|
|
1454
|
-
what: {
|
|
1455
|
-
content: string;
|
|
1456
|
-
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
1457
|
-
readonly $id: "file";
|
|
1458
|
-
readonly owned: "always";
|
|
1459
|
-
readonly presets: readonly ["owned"];
|
|
1460
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1461
|
-
readonly properties: {
|
|
1462
|
-
readonly mime: {
|
|
1463
|
-
readonly type: "string";
|
|
1464
|
-
};
|
|
1465
|
-
readonly size: {
|
|
1466
|
-
readonly type: "number";
|
|
1467
|
-
};
|
|
1468
|
-
readonly last_modified: {
|
|
1469
|
-
readonly type: "string";
|
|
1470
|
-
readonly format: "date-time";
|
|
1471
|
-
};
|
|
1472
|
-
readonly filename: {
|
|
1473
|
-
readonly type: "string";
|
|
1474
|
-
};
|
|
1475
|
-
readonly absolute_path: {
|
|
1476
|
-
readonly type: "string";
|
|
1477
|
-
};
|
|
1478
|
-
readonly relative_path: {
|
|
1479
|
-
readonly type: "string";
|
|
1480
|
-
};
|
|
1481
|
-
readonly immutable: {
|
|
1482
|
-
readonly type: "boolean";
|
|
1483
|
-
};
|
|
1484
|
-
readonly link: {
|
|
1485
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1486
|
-
};
|
|
1487
|
-
readonly download_link: {
|
|
1488
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1489
|
-
};
|
|
1490
|
-
};
|
|
1491
|
-
readonly actions: {
|
|
1492
|
-
readonly deleteAll: {
|
|
1493
|
-
readonly name: "Remover";
|
|
1494
|
-
readonly ask: true;
|
|
1495
|
-
readonly selection: true;
|
|
1496
|
-
};
|
|
1497
|
-
};
|
|
1498
|
-
readonly individualActions: {
|
|
1499
|
-
readonly remove: {
|
|
1500
|
-
readonly name: "Remover";
|
|
1501
|
-
readonly icon: "trash";
|
|
1502
|
-
readonly ask: true;
|
|
1503
|
-
};
|
|
1504
|
-
};
|
|
1505
|
-
}>>, "filename" | "absolute_path" | "_id" | "owner">;
|
|
1506
|
-
}, context: import("@aeriajs/types").Context<{
|
|
1507
|
-
readonly $id: "file";
|
|
1508
|
-
readonly owned: "always";
|
|
1509
|
-
readonly presets: readonly ["owned"];
|
|
1510
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1511
|
-
readonly properties: {
|
|
1512
|
-
readonly mime: {
|
|
1513
|
-
readonly type: "string";
|
|
1514
|
-
};
|
|
1515
|
-
readonly size: {
|
|
1516
|
-
readonly type: "number";
|
|
1517
|
-
};
|
|
1518
|
-
readonly last_modified: {
|
|
1519
|
-
readonly type: "string";
|
|
1520
|
-
readonly format: "date-time";
|
|
1521
|
-
};
|
|
1522
|
-
readonly filename: {
|
|
1523
|
-
readonly type: "string";
|
|
1524
|
-
};
|
|
1525
|
-
readonly absolute_path: {
|
|
1526
|
-
readonly type: "string";
|
|
1527
|
-
};
|
|
1528
|
-
readonly relative_path: {
|
|
1529
|
-
readonly type: "string";
|
|
1530
|
-
};
|
|
1531
|
-
readonly immutable: {
|
|
1532
|
-
readonly type: "boolean";
|
|
1533
|
-
};
|
|
1534
|
-
readonly link: {
|
|
1535
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1536
|
-
};
|
|
1537
|
-
readonly download_link: {
|
|
1538
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1539
|
-
};
|
|
1540
|
-
};
|
|
1541
|
-
readonly actions: {
|
|
1542
|
-
readonly deleteAll: {
|
|
1543
|
-
readonly name: "Remover";
|
|
1544
|
-
readonly ask: true;
|
|
1545
|
-
readonly selection: true;
|
|
1546
|
-
};
|
|
1547
|
-
};
|
|
1548
|
-
readonly individualActions: {
|
|
1549
|
-
readonly remove: {
|
|
1550
|
-
readonly name: "Remover";
|
|
1551
|
-
readonly icon: "trash";
|
|
1552
|
-
readonly ask: true;
|
|
1553
|
-
};
|
|
1554
|
-
};
|
|
1555
|
-
}>) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
1556
|
-
readonly download: (payload: {
|
|
1557
|
-
fileId: string;
|
|
1558
|
-
options: readonly ("download" | "picture")[];
|
|
1559
|
-
noHeaders?: boolean | undefined;
|
|
1560
|
-
}, context: import("@aeriajs/types").Context<{
|
|
1561
|
-
readonly $id: "file";
|
|
1562
|
-
readonly owned: "always";
|
|
1563
|
-
readonly presets: readonly ["owned"];
|
|
1564
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1565
|
-
readonly properties: {
|
|
1566
|
-
readonly mime: {
|
|
1567
|
-
readonly type: "string";
|
|
1568
|
-
};
|
|
1569
|
-
readonly size: {
|
|
1570
|
-
readonly type: "number";
|
|
1571
|
-
};
|
|
1572
|
-
readonly last_modified: {
|
|
1573
|
-
readonly type: "string";
|
|
1574
|
-
readonly format: "date-time";
|
|
1575
|
-
};
|
|
1576
|
-
readonly filename: {
|
|
1577
|
-
readonly type: "string";
|
|
1578
|
-
};
|
|
1579
|
-
readonly absolute_path: {
|
|
1580
|
-
readonly type: "string";
|
|
1581
|
-
};
|
|
1582
|
-
readonly relative_path: {
|
|
1583
|
-
readonly type: "string";
|
|
1584
|
-
};
|
|
1585
|
-
readonly immutable: {
|
|
1586
|
-
readonly type: "boolean";
|
|
1587
|
-
};
|
|
1588
|
-
readonly link: {
|
|
1589
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1590
|
-
};
|
|
1591
|
-
readonly download_link: {
|
|
1592
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1593
|
-
};
|
|
1594
|
-
};
|
|
1595
|
-
readonly actions: {
|
|
1596
|
-
readonly deleteAll: {
|
|
1597
|
-
readonly name: "Remover";
|
|
1598
|
-
readonly ask: true;
|
|
1599
|
-
readonly selection: true;
|
|
1600
|
-
};
|
|
1601
|
-
};
|
|
1602
|
-
readonly individualActions: {
|
|
1603
|
-
readonly remove: {
|
|
1604
|
-
readonly name: "Remover";
|
|
1605
|
-
readonly icon: "trash";
|
|
1606
|
-
readonly ask: true;
|
|
1607
|
-
};
|
|
1608
|
-
};
|
|
1609
|
-
}>) => Promise<import("@aeriajs/types").Left<import("./download.js").FileReadError.DocumentNotFound> | import("@aeriajs/types").Left<import("./download.js").FileReadError.FileNotFound> | import("fs").ReadStream>;
|
|
1610
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
|
|
1611
|
-
readonly $id: "file";
|
|
1612
|
-
readonly owned: "always";
|
|
1613
|
-
readonly presets: readonly ["owned"];
|
|
1614
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1615
|
-
readonly properties: {
|
|
1616
|
-
readonly mime: {
|
|
1617
|
-
readonly type: "string";
|
|
1618
|
-
};
|
|
1619
|
-
readonly size: {
|
|
1620
|
-
readonly type: "number";
|
|
1621
|
-
};
|
|
1622
|
-
readonly last_modified: {
|
|
1623
|
-
readonly type: "string";
|
|
1624
|
-
readonly format: "date-time";
|
|
1625
|
-
};
|
|
1626
|
-
readonly filename: {
|
|
1627
|
-
readonly type: "string";
|
|
1628
|
-
};
|
|
1629
|
-
readonly absolute_path: {
|
|
1630
|
-
readonly type: "string";
|
|
1631
|
-
};
|
|
1632
|
-
readonly relative_path: {
|
|
1633
|
-
readonly type: "string";
|
|
1634
|
-
};
|
|
1635
|
-
readonly immutable: {
|
|
1636
|
-
readonly type: "boolean";
|
|
1637
|
-
};
|
|
1638
|
-
readonly link: {
|
|
1639
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1640
|
-
};
|
|
1641
|
-
readonly download_link: {
|
|
1642
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1643
|
-
};
|
|
1644
|
-
};
|
|
1645
|
-
readonly actions: {
|
|
1646
|
-
readonly deleteAll: {
|
|
1647
|
-
readonly name: "Remover";
|
|
1648
|
-
readonly ask: true;
|
|
1649
|
-
readonly selection: true;
|
|
1650
|
-
};
|
|
1651
|
-
};
|
|
1652
|
-
readonly individualActions: {
|
|
1653
|
-
readonly remove: {
|
|
1654
|
-
readonly name: "Remover";
|
|
1655
|
-
readonly icon: "trash";
|
|
1656
|
-
readonly ask: true;
|
|
1657
|
-
};
|
|
1658
|
-
};
|
|
1659
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
1660
|
-
readonly $id: "file";
|
|
1661
|
-
readonly owned: "always";
|
|
1662
|
-
readonly presets: readonly ["owned"];
|
|
1663
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1664
|
-
readonly properties: {
|
|
1665
|
-
readonly mime: {
|
|
1666
|
-
readonly type: "string";
|
|
1667
|
-
};
|
|
1668
|
-
readonly size: {
|
|
1669
|
-
readonly type: "number";
|
|
1670
|
-
};
|
|
1671
|
-
readonly last_modified: {
|
|
1672
|
-
readonly type: "string";
|
|
1673
|
-
readonly format: "date-time";
|
|
1674
|
-
};
|
|
1675
|
-
readonly filename: {
|
|
1676
|
-
readonly type: "string";
|
|
1677
|
-
};
|
|
1678
|
-
readonly absolute_path: {
|
|
1679
|
-
readonly type: "string";
|
|
1680
|
-
};
|
|
1681
|
-
readonly relative_path: {
|
|
1682
|
-
readonly type: "string";
|
|
1683
|
-
};
|
|
1684
|
-
readonly immutable: {
|
|
1685
|
-
readonly type: "boolean";
|
|
1686
|
-
};
|
|
1687
|
-
readonly link: {
|
|
1688
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1689
|
-
};
|
|
1690
|
-
readonly download_link: {
|
|
1691
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1692
|
-
};
|
|
1693
|
-
};
|
|
1694
|
-
readonly actions: {
|
|
1695
|
-
readonly deleteAll: {
|
|
1696
|
-
readonly name: "Remover";
|
|
1697
|
-
readonly ask: true;
|
|
1698
|
-
readonly selection: true;
|
|
1699
|
-
};
|
|
1700
|
-
};
|
|
1701
|
-
readonly individualActions: {
|
|
1702
|
-
readonly remove: {
|
|
1703
|
-
readonly name: "Remover";
|
|
1704
|
-
readonly icon: "trash";
|
|
1705
|
-
readonly ask: true;
|
|
1706
|
-
};
|
|
1707
|
-
};
|
|
1708
|
-
}>) => Promise<any>;
|
|
1709
|
-
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
1710
|
-
readonly $id: "file";
|
|
1711
|
-
readonly owned: "always";
|
|
1712
|
-
readonly presets: readonly ["owned"];
|
|
1713
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1714
|
-
readonly properties: {
|
|
1715
|
-
readonly mime: {
|
|
1716
|
-
readonly type: "string";
|
|
1717
|
-
};
|
|
1718
|
-
readonly size: {
|
|
1719
|
-
readonly type: "number";
|
|
1720
|
-
};
|
|
1721
|
-
readonly last_modified: {
|
|
1722
|
-
readonly type: "string";
|
|
1723
|
-
readonly format: "date-time";
|
|
1724
|
-
};
|
|
1725
|
-
readonly filename: {
|
|
1726
|
-
readonly type: "string";
|
|
1727
|
-
};
|
|
1728
|
-
readonly absolute_path: {
|
|
1729
|
-
readonly type: "string";
|
|
1730
|
-
};
|
|
1731
|
-
readonly relative_path: {
|
|
1732
|
-
readonly type: "string";
|
|
1733
|
-
};
|
|
1734
|
-
readonly immutable: {
|
|
1735
|
-
readonly type: "boolean";
|
|
1736
|
-
};
|
|
1737
|
-
readonly link: {
|
|
1738
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1739
|
-
};
|
|
1740
|
-
readonly download_link: {
|
|
1741
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1742
|
-
};
|
|
1743
|
-
};
|
|
1744
|
-
readonly actions: {
|
|
1745
|
-
readonly deleteAll: {
|
|
1746
|
-
readonly name: "Remover";
|
|
1747
|
-
readonly ask: true;
|
|
1748
|
-
readonly selection: true;
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
readonly individualActions: {
|
|
1752
|
-
readonly remove: {
|
|
1753
|
-
readonly name: "Remover";
|
|
1754
|
-
readonly icon: "trash";
|
|
1755
|
-
readonly ask: true;
|
|
1756
|
-
};
|
|
1757
|
-
};
|
|
1758
|
-
}>) => Promise<any>;
|
|
1759
|
-
};
|
|
1760
|
-
}>;
|
|
950
|
+
functions: any;
|
|
951
|
+
}> | undefined;
|
|
1761
952
|
};
|