@aeriajs/builtins 0.0.10 → 0.0.13
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 +578 -0
- package/dist/collections/log/index.d.ts +223 -2
- package/dist/collections/resourceUsage/index.d.ts +33 -0
- package/dist/collections/user/index.d.ts +30 -7
- package/dist/functions/describe.js +1 -2
- package/dist/functions/describe.mjs +5 -6
- package/dist/index.d.ts +864 -9
- package/package.json +7 -7
|
@@ -115,6 +115,69 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
115
115
|
};
|
|
116
116
|
}>, ...args: any[]) => any;
|
|
117
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
|
+
}>;
|
|
118
181
|
};
|
|
119
182
|
export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
120
183
|
description: {
|
|
@@ -1180,4 +1243,519 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
1180
1243
|
};
|
|
1181
1244
|
}>) => Promise<any>;
|
|
1182
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
|
+
}>;
|
|
1183
1761
|
};
|