@aeriajs/builtins 0.0.77 → 0.0.78
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 +7 -0
- package/dist/collections/file/index.js +7 -0
- package/dist/collections/file/index.mjs +7 -0
- package/dist/collections/log/index.d.ts +5 -0
- package/dist/collections/log/index.js +5 -0
- package/dist/collections/log/index.mjs +5 -0
- package/dist/collections/user/index.d.ts +14 -0
- package/dist/collections/user/index.js +14 -0
- package/dist/collections/user/index.mjs +14 -0
- package/dist/index.d.ts +26 -0
- package/package.json +6 -6
|
@@ -499,6 +499,13 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
499
499
|
};
|
|
500
500
|
}>) => Promise<any>;
|
|
501
501
|
};
|
|
502
|
+
exposedFunctions: {
|
|
503
|
+
readonly get: "unauthenticated";
|
|
504
|
+
readonly insert: true;
|
|
505
|
+
readonly download: "unauthenticated";
|
|
506
|
+
readonly remove: true;
|
|
507
|
+
readonly removeAll: true;
|
|
508
|
+
};
|
|
502
509
|
}>, "description" | "functions" | "item" | "security" | "exposedFunctions"> & {
|
|
503
510
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
504
511
|
readonly $id: "file";
|
|
@@ -46,4 +46,11 @@ exports.file = (0, core_1.defineCollection)({
|
|
|
46
46
|
remove: remove_js_1.remove,
|
|
47
47
|
removeAll: removeAll_js_1.removeAll,
|
|
48
48
|
},
|
|
49
|
+
exposedFunctions: {
|
|
50
|
+
get: 'unauthenticated',
|
|
51
|
+
insert: true,
|
|
52
|
+
download: 'unauthenticated',
|
|
53
|
+
remove: true,
|
|
54
|
+
removeAll: true,
|
|
55
|
+
},
|
|
49
56
|
});
|
|
@@ -31,6 +31,11 @@ export declare const log: Omit<import("@aeriajs/types").Collection<{
|
|
|
31
31
|
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
|
|
32
32
|
readonly insert: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>>;
|
|
33
33
|
};
|
|
34
|
+
exposedFunctions: {
|
|
35
|
+
readonly get: true;
|
|
36
|
+
readonly getAll: true;
|
|
37
|
+
readonly insert: true;
|
|
38
|
+
};
|
|
34
39
|
}>, "description" | "functions" | "item" | "security" | "exposedFunctions"> & {
|
|
35
40
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
36
41
|
readonly $id: "log";
|
|
@@ -1394,6 +1394,20 @@ export declare const user: {
|
|
|
1394
1394
|
}];
|
|
1395
1395
|
};
|
|
1396
1396
|
};
|
|
1397
|
+
exposedFunctions: {
|
|
1398
|
+
readonly get: true;
|
|
1399
|
+
readonly getAll: true;
|
|
1400
|
+
readonly remove: true;
|
|
1401
|
+
readonly upload: true;
|
|
1402
|
+
readonly removeFile: true;
|
|
1403
|
+
readonly insert: true;
|
|
1404
|
+
readonly authenticate: "unauthenticated";
|
|
1405
|
+
readonly activate: "unauthenticated-only";
|
|
1406
|
+
readonly createAccount: "unauthenticated-only";
|
|
1407
|
+
readonly getInfo: "unauthenticated";
|
|
1408
|
+
readonly getCurrentUser: true;
|
|
1409
|
+
readonly getActivationLink: true;
|
|
1410
|
+
};
|
|
1397
1411
|
} & {
|
|
1398
1412
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
1399
1413
|
readonly $id: "user";
|
|
@@ -40,4 +40,18 @@ exports.user = (0, core_1.defineCollection)({
|
|
|
40
40
|
],
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
|
+
exposedFunctions: {
|
|
44
|
+
get: true,
|
|
45
|
+
getAll: true,
|
|
46
|
+
remove: true,
|
|
47
|
+
upload: true,
|
|
48
|
+
removeFile: true,
|
|
49
|
+
insert: true,
|
|
50
|
+
authenticate: 'unauthenticated',
|
|
51
|
+
activate: 'unauthenticated-only',
|
|
52
|
+
createAccount: 'unauthenticated-only',
|
|
53
|
+
getInfo: 'unauthenticated',
|
|
54
|
+
getCurrentUser: true,
|
|
55
|
+
getActivationLink: true,
|
|
56
|
+
},
|
|
43
57
|
});
|
|
@@ -37,5 +37,19 @@ export const user = defineCollection({
|
|
|
37
37
|
})
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
|
+
},
|
|
41
|
+
exposedFunctions: {
|
|
42
|
+
get: true,
|
|
43
|
+
getAll: true,
|
|
44
|
+
remove: true,
|
|
45
|
+
upload: true,
|
|
46
|
+
removeFile: true,
|
|
47
|
+
insert: true,
|
|
48
|
+
authenticate: "unauthenticated",
|
|
49
|
+
activate: "unauthenticated-only",
|
|
50
|
+
createAccount: "unauthenticated-only",
|
|
51
|
+
getInfo: "unauthenticated",
|
|
52
|
+
getCurrentUser: true,
|
|
53
|
+
getActivationLink: true
|
|
40
54
|
}
|
|
41
55
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -417,6 +417,13 @@ export declare const collections: {
|
|
|
417
417
|
};
|
|
418
418
|
}>) => Promise<any>;
|
|
419
419
|
};
|
|
420
|
+
exposedFunctions: {
|
|
421
|
+
readonly get: "unauthenticated";
|
|
422
|
+
readonly insert: true;
|
|
423
|
+
readonly download: "unauthenticated";
|
|
424
|
+
readonly remove: true;
|
|
425
|
+
readonly removeAll: true;
|
|
426
|
+
};
|
|
420
427
|
}>, "description" | "functions" | "item" | "security" | "exposedFunctions"> & {
|
|
421
428
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
422
429
|
readonly $id: "file";
|
|
@@ -1008,6 +1015,11 @@ export declare const collections: {
|
|
|
1008
1015
|
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
|
|
1009
1016
|
readonly insert: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>>;
|
|
1010
1017
|
};
|
|
1018
|
+
exposedFunctions: {
|
|
1019
|
+
readonly get: true;
|
|
1020
|
+
readonly getAll: true;
|
|
1021
|
+
readonly insert: true;
|
|
1022
|
+
};
|
|
1011
1023
|
}>, "description" | "functions" | "item" | "security" | "exposedFunctions"> & {
|
|
1012
1024
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
1013
1025
|
readonly $id: "log";
|
|
@@ -2579,6 +2591,20 @@ export declare const collections: {
|
|
|
2579
2591
|
}];
|
|
2580
2592
|
};
|
|
2581
2593
|
};
|
|
2594
|
+
exposedFunctions: {
|
|
2595
|
+
readonly get: true;
|
|
2596
|
+
readonly getAll: true;
|
|
2597
|
+
readonly remove: true;
|
|
2598
|
+
readonly upload: true;
|
|
2599
|
+
readonly removeFile: true;
|
|
2600
|
+
readonly insert: true;
|
|
2601
|
+
readonly authenticate: "unauthenticated";
|
|
2602
|
+
readonly activate: "unauthenticated-only";
|
|
2603
|
+
readonly createAccount: "unauthenticated-only";
|
|
2604
|
+
readonly getInfo: "unauthenticated";
|
|
2605
|
+
readonly getCurrentUser: true;
|
|
2606
|
+
readonly getActivationLink: true;
|
|
2607
|
+
};
|
|
2582
2608
|
} & {
|
|
2583
2609
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
2584
2610
|
readonly $id: "user";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"mongodb": "^6.5.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@aeriajs/core": "^0.0.
|
|
49
|
-
"@aeriajs/common": "^0.0.
|
|
50
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
51
|
-
"@aeriajs/types": "^0.0.
|
|
52
|
-
"@aeriajs/validation": "^0.0.
|
|
48
|
+
"@aeriajs/core": "^0.0.78",
|
|
49
|
+
"@aeriajs/common": "^0.0.45",
|
|
50
|
+
"@aeriajs/entrypoint": "^0.0.45",
|
|
51
|
+
"@aeriajs/types": "^0.0.42",
|
|
52
|
+
"@aeriajs/validation": "^0.0.48"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"test": "echo skipping",
|