@aeriajs/builtins 0.0.13 → 0.0.14

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.
@@ -85,99 +85,8 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
85
85
  };
86
86
  };
87
87
  };
88
- functions: {
89
- [P: string]: (payload: any, context: import("@aeriajs/types").Context<{
90
- readonly $id: "tempFile";
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<{
122
- description: {
123
- readonly $id: "tempFile";
124
- readonly temporary: {
125
- readonly index: "created_at";
126
- readonly expireAfterSeconds: 3600;
127
- };
128
- readonly properties: {
129
- readonly created_at: {
130
- readonly type: "string";
131
- readonly format: "date-time";
132
- };
133
- readonly absolute_path: {
134
- readonly type: "string";
135
- };
136
- readonly size: {
137
- readonly type: "number";
138
- };
139
- readonly mime: {
140
- readonly type: "number";
141
- };
142
- readonly collection: {
143
- readonly type: "string";
144
- };
145
- readonly filename: {
146
- readonly type: "string";
147
- };
148
- };
149
- };
150
- functions: {
151
- [P: string]: (payload: any, context: import("@aeriajs/types").Context<{
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
- }>;
88
+ functions: {};
89
+ functionContracts: {};
181
90
  };
182
91
  export declare const file: Omit<import("@aeriajs/types").Collection<{
183
92
  description: {
@@ -329,7 +238,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
329
238
  readonly ask: true;
330
239
  };
331
240
  };
332
- }>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
241
+ }, any>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
333
242
  readonly $id: "file";
334
243
  readonly owned: "always";
335
244
  readonly presets: readonly ["owned"];
@@ -787,975 +696,8 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
787
696
  };
788
697
  };
789
698
  };
790
- functions: {
791
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
792
- readonly $id: "file";
793
- readonly owned: "always";
794
- readonly presets: readonly ["owned"];
795
- readonly indexes: readonly ["filename", "link", "mime"];
796
- readonly properties: {
797
- readonly mime: {
798
- readonly type: "string";
799
- };
800
- readonly size: {
801
- readonly type: "number";
802
- };
803
- readonly last_modified: {
804
- readonly type: "string";
805
- readonly format: "date-time";
806
- };
807
- readonly filename: {
808
- readonly type: "string";
809
- };
810
- readonly absolute_path: {
811
- readonly type: "string";
812
- };
813
- readonly relative_path: {
814
- readonly type: "string";
815
- };
816
- readonly immutable: {
817
- readonly type: "boolean";
818
- };
819
- readonly link: {
820
- readonly getter: (value: any) => Promise<string>;
821
- };
822
- readonly download_link: {
823
- readonly getter: (value: any) => Promise<string>;
824
- };
825
- };
826
- readonly actions: {
827
- readonly deleteAll: {
828
- readonly name: "Remover";
829
- readonly ask: true;
830
- readonly selection: true;
831
- };
832
- };
833
- readonly individualActions: {
834
- readonly remove: {
835
- readonly name: "Remover";
836
- readonly icon: "trash";
837
- readonly ask: true;
838
- };
839
- };
840
- }>>, context: import("@aeriajs/types").Context<{
841
- readonly $id: "file";
842
- readonly owned: "always";
843
- readonly presets: readonly ["owned"];
844
- readonly indexes: readonly ["filename", "link", "mime"];
845
- readonly properties: {
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<{
993
- readonly $id: "file";
994
- readonly owned: "always";
995
- readonly presets: readonly ["owned"];
996
- readonly indexes: readonly ["filename", "link", "mime"];
997
- readonly properties: {
998
- readonly mime: {
999
- readonly type: "string";
1000
- };
1001
- readonly size: {
1002
- readonly type: "number";
1003
- };
1004
- readonly last_modified: {
1005
- readonly type: "string";
1006
- readonly format: "date-time";
1007
- };
1008
- readonly filename: {
1009
- readonly type: "string";
1010
- };
1011
- readonly absolute_path: {
1012
- readonly type: "string";
1013
- };
1014
- readonly relative_path: {
1015
- readonly type: "string";
1016
- };
1017
- readonly immutable: {
1018
- readonly type: "boolean";
1019
- };
1020
- readonly link: {
1021
- readonly getter: (value: any) => Promise<string>;
1022
- };
1023
- readonly download_link: {
1024
- readonly getter: (value: any) => Promise<string>;
1025
- };
1026
- };
1027
- readonly actions: {
1028
- readonly deleteAll: {
1029
- readonly name: "Remover";
1030
- readonly ask: true;
1031
- readonly selection: true;
1032
- };
1033
- };
1034
- readonly individualActions: {
1035
- readonly remove: {
1036
- readonly name: "Remover";
1037
- readonly icon: "trash";
1038
- readonly ask: true;
1039
- };
1040
- };
1041
- }>) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
1042
- readonly download: (payload: {
1043
- fileId: string;
1044
- options: readonly ("download" | "picture")[];
1045
- noHeaders?: boolean | undefined;
1046
- }, context: import("@aeriajs/types").Context<{
1047
- readonly $id: "file";
1048
- readonly owned: "always";
1049
- readonly presets: readonly ["owned"];
1050
- readonly indexes: readonly ["filename", "link", "mime"];
1051
- readonly properties: {
1052
- readonly mime: {
1053
- readonly type: "string";
1054
- };
1055
- readonly size: {
1056
- readonly type: "number";
1057
- };
1058
- readonly last_modified: {
1059
- readonly type: "string";
1060
- readonly format: "date-time";
1061
- };
1062
- readonly filename: {
1063
- readonly type: "string";
1064
- };
1065
- readonly absolute_path: {
1066
- readonly type: "string";
1067
- };
1068
- readonly relative_path: {
1069
- readonly type: "string";
1070
- };
1071
- readonly immutable: {
1072
- readonly type: "boolean";
1073
- };
1074
- readonly link: {
1075
- readonly getter: (value: any) => Promise<string>;
1076
- };
1077
- readonly download_link: {
1078
- readonly getter: (value: any) => Promise<string>;
1079
- };
1080
- };
1081
- readonly actions: {
1082
- readonly deleteAll: {
1083
- readonly name: "Remover";
1084
- readonly ask: true;
1085
- readonly selection: true;
1086
- };
1087
- };
1088
- readonly individualActions: {
1089
- readonly remove: {
1090
- readonly name: "Remover";
1091
- readonly icon: "trash";
1092
- readonly ask: true;
1093
- };
1094
- };
1095
- }>) => Promise<import("@aeriajs/types").Left<import("./download.js").FileReadError.DocumentNotFound> | import("@aeriajs/types").Left<import("./download.js").FileReadError.FileNotFound> | import("fs").ReadStream>;
1096
- readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
1097
- readonly $id: "file";
1098
- readonly owned: "always";
1099
- readonly presets: readonly ["owned"];
1100
- readonly indexes: readonly ["filename", "link", "mime"];
1101
- readonly properties: {
1102
- readonly mime: {
1103
- readonly type: "string";
1104
- };
1105
- readonly size: {
1106
- readonly type: "number";
1107
- };
1108
- readonly last_modified: {
1109
- readonly type: "string";
1110
- readonly format: "date-time";
1111
- };
1112
- readonly filename: {
1113
- readonly type: "string";
1114
- };
1115
- readonly absolute_path: {
1116
- readonly type: "string";
1117
- };
1118
- readonly relative_path: {
1119
- readonly type: "string";
1120
- };
1121
- readonly immutable: {
1122
- readonly type: "boolean";
1123
- };
1124
- readonly link: {
1125
- readonly getter: (value: any) => Promise<string>;
1126
- };
1127
- readonly download_link: {
1128
- readonly getter: (value: any) => Promise<string>;
1129
- };
1130
- };
1131
- readonly actions: {
1132
- readonly deleteAll: {
1133
- readonly name: "Remover";
1134
- readonly ask: true;
1135
- readonly selection: true;
1136
- };
1137
- };
1138
- readonly individualActions: {
1139
- readonly remove: {
1140
- readonly name: "Remover";
1141
- readonly icon: "trash";
1142
- readonly ask: true;
1143
- };
1144
- };
1145
- }>>, context: import("@aeriajs/types").Context<{
1146
- readonly $id: "file";
1147
- readonly owned: "always";
1148
- readonly presets: readonly ["owned"];
1149
- readonly indexes: readonly ["filename", "link", "mime"];
1150
- readonly properties: {
1151
- readonly mime: {
1152
- readonly type: "string";
1153
- };
1154
- readonly size: {
1155
- readonly type: "number";
1156
- };
1157
- readonly last_modified: {
1158
- readonly type: "string";
1159
- readonly format: "date-time";
1160
- };
1161
- readonly filename: {
1162
- readonly type: "string";
1163
- };
1164
- readonly absolute_path: {
1165
- readonly type: "string";
1166
- };
1167
- readonly relative_path: {
1168
- readonly type: "string";
1169
- };
1170
- readonly immutable: {
1171
- readonly type: "boolean";
1172
- };
1173
- readonly link: {
1174
- readonly getter: (value: any) => Promise<string>;
1175
- };
1176
- readonly download_link: {
1177
- readonly getter: (value: any) => Promise<string>;
1178
- };
1179
- };
1180
- readonly actions: {
1181
- readonly deleteAll: {
1182
- readonly name: "Remover";
1183
- readonly ask: true;
1184
- readonly selection: true;
1185
- };
1186
- };
1187
- readonly individualActions: {
1188
- readonly remove: {
1189
- readonly name: "Remover";
1190
- readonly icon: "trash";
1191
- readonly ask: true;
1192
- };
1193
- };
1194
- }>) => Promise<any>;
1195
- readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
1196
- readonly $id: "file";
1197
- readonly owned: "always";
1198
- readonly presets: readonly ["owned"];
1199
- readonly indexes: readonly ["filename", "link", "mime"];
1200
- readonly properties: {
1201
- readonly mime: {
1202
- readonly type: "string";
1203
- };
1204
- readonly size: {
1205
- readonly type: "number";
1206
- };
1207
- readonly last_modified: {
1208
- readonly type: "string";
1209
- readonly format: "date-time";
1210
- };
1211
- readonly filename: {
1212
- readonly type: "string";
1213
- };
1214
- readonly absolute_path: {
1215
- readonly type: "string";
1216
- };
1217
- readonly relative_path: {
1218
- readonly type: "string";
1219
- };
1220
- readonly immutable: {
1221
- readonly type: "boolean";
1222
- };
1223
- readonly link: {
1224
- readonly getter: (value: any) => Promise<string>;
1225
- };
1226
- readonly download_link: {
1227
- readonly getter: (value: any) => Promise<string>;
1228
- };
1229
- };
1230
- readonly actions: {
1231
- readonly deleteAll: {
1232
- readonly name: "Remover";
1233
- readonly ask: true;
1234
- readonly selection: true;
1235
- };
1236
- };
1237
- readonly individualActions: {
1238
- readonly remove: {
1239
- readonly name: "Remover";
1240
- readonly icon: "trash";
1241
- readonly ask: true;
1242
- };
1243
- };
1244
- }>) => Promise<any>;
1245
- };
1246
- functionContracts: Partial<{
1247
- readonly get: import("@aeriajs/types").Contract;
1248
- readonly insert: import("@aeriajs/types").Contract;
1249
- readonly download: import("@aeriajs/types").Contract;
1250
- readonly remove: import("@aeriajs/types").Contract;
1251
- readonly removeAll: import("@aeriajs/types").Contract;
1252
- }>;
1253
- accessControl: import("@aeriajs/types").AccessControl<{
1254
- description: {
1255
- readonly $id: "file";
1256
- readonly owned: "always";
1257
- readonly presets: readonly ["owned"];
1258
- readonly indexes: readonly ["filename", "link", "mime"];
1259
- readonly properties: {
1260
- readonly mime: {
1261
- readonly type: "string";
1262
- };
1263
- readonly size: {
1264
- readonly type: "number";
1265
- };
1266
- readonly last_modified: {
1267
- readonly type: "string";
1268
- readonly format: "date-time";
1269
- };
1270
- readonly filename: {
1271
- readonly type: "string";
1272
- };
1273
- readonly absolute_path: {
1274
- readonly type: "string";
1275
- };
1276
- readonly relative_path: {
1277
- readonly type: "string";
1278
- };
1279
- readonly immutable: {
1280
- readonly type: "boolean";
1281
- };
1282
- readonly link: {
1283
- readonly getter: (value: any) => Promise<string>;
1284
- };
1285
- readonly download_link: {
1286
- readonly getter: (value: any) => Promise<string>;
1287
- };
1288
- };
1289
- readonly actions: {
1290
- readonly deleteAll: {
1291
- readonly name: "Remover";
1292
- readonly ask: true;
1293
- readonly selection: true;
1294
- };
1295
- };
1296
- readonly individualActions: {
1297
- readonly remove: {
1298
- readonly name: "Remover";
1299
- readonly icon: "trash";
1300
- readonly ask: true;
1301
- };
1302
- };
1303
- };
1304
- functions: {
1305
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
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
- }>;
699
+ functions: any;
700
+ functionContracts: {
701
+ [x: string]: import("@aeriajs/types").Contract;
702
+ };
1761
703
  };