@aeriajs/core 0.0.96 → 0.0.98
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.
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import type { Context, SchemaWithId, InsertPayload, InsertReturnType } from '@aeriajs/types';
|
|
2
|
-
import { HTTPStatus, ACError, ValidationErrorCode } from '@aeriajs/types';
|
|
3
2
|
export type InsertOptions = {
|
|
4
3
|
bypassSecurity?: boolean;
|
|
5
4
|
};
|
|
6
5
|
export declare const insertErrorSchema: () => {
|
|
7
6
|
readonly type: "object";
|
|
8
|
-
readonly required: readonly ["httpStatus", "code"];
|
|
9
7
|
readonly properties: {
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
};
|
|
13
|
-
readonly code: {
|
|
14
|
-
readonly enum: [ACError.InsecureOperator, ACError.OwnershipError, ACError.ResourceNotFound, ACError.TargetImmutable, ValidationErrorCode.EmptyTarget, ValidationErrorCode.InvalidProperties, ValidationErrorCode.MissingProperties];
|
|
15
|
-
};
|
|
16
|
-
readonly message: {
|
|
17
|
-
readonly type: "string";
|
|
18
|
-
};
|
|
19
|
-
readonly details: {
|
|
20
|
-
readonly type: "object";
|
|
21
|
-
readonly variable: true;
|
|
8
|
+
readonly _tag: {
|
|
9
|
+
readonly const: "Error";
|
|
22
10
|
};
|
|
11
|
+
readonly error: import("@aeriajs/types").Property;
|
|
23
12
|
};
|
|
24
13
|
};
|
|
25
14
|
export declare const insert: <TContext extends Context>(payload: InsertPayload<SchemaWithId<TContext['description']>>, context: TContext, options?: InsertOptions) => Promise<InsertReturnType<SchemaWithId<TContext['description']>>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.98",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"mongodb-memory-server": "^9.2.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@aeriajs/builtins": "^0.0.
|
|
45
|
-
"@aeriajs/common": "^0.0.
|
|
46
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
47
|
-
"@aeriajs/http": "^0.0.
|
|
48
|
-
"@aeriajs/security": "^0.0.
|
|
49
|
-
"@aeriajs/types": "^0.0.
|
|
50
|
-
"@aeriajs/validation": "^0.0.
|
|
44
|
+
"@aeriajs/builtins": "^0.0.98",
|
|
45
|
+
"@aeriajs/common": "^0.0.62",
|
|
46
|
+
"@aeriajs/entrypoint": "^0.0.63",
|
|
47
|
+
"@aeriajs/http": "^0.0.71",
|
|
48
|
+
"@aeriajs/security": "^0.0.98",
|
|
49
|
+
"@aeriajs/types": "^0.0.58",
|
|
50
|
+
"@aeriajs/validation": "^0.0.65"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"mongodb": "^6.5.0",
|