@aeriajs/types 0.0.118 → 0.0.120
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/accessControl.d.ts +1 -0
- package/dist/accessControl.js +1 -0
- package/dist/accessControl.mjs +1 -0
- package/dist/config.d.ts +1 -0
- package/dist/context.d.ts +1 -0
- package/package.json +3 -3
package/dist/accessControl.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const ACError: {
|
|
|
8
8
|
readonly FunctionNotExposed: "FUNCTION_NOT_EXPOSED";
|
|
9
9
|
readonly TargetImmutable: "TARGET_IMMUTABLE";
|
|
10
10
|
readonly InvalidLimit: "INVALID_LIMIT";
|
|
11
|
+
readonly InvalidToken: "INVALID_TOKEN";
|
|
11
12
|
readonly OwnershipError: "OWNERSHIP_ERROR";
|
|
12
13
|
readonly ResourceNotFound: "RESOURCE_NOT_FOUND";
|
|
13
14
|
readonly InsecureOperator: "INSECURE_OPERATOR";
|
package/dist/accessControl.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.ACError = {
|
|
|
8
8
|
FunctionNotExposed: 'FUNCTION_NOT_EXPOSED',
|
|
9
9
|
TargetImmutable: 'TARGET_IMMUTABLE',
|
|
10
10
|
InvalidLimit: 'INVALID_LIMIT',
|
|
11
|
+
InvalidToken: 'INVALID_TOKEN',
|
|
11
12
|
OwnershipError: 'OWNERSHIP_ERROR',
|
|
12
13
|
ResourceNotFound: 'RESOURCE_NOT_FOUND',
|
|
13
14
|
InsecureOperator: 'INSECURE_OPERATOR',
|
package/dist/accessControl.mjs
CHANGED
|
@@ -6,6 +6,7 @@ export const ACError = {
|
|
|
6
6
|
FunctionNotExposed: "FUNCTION_NOT_EXPOSED",
|
|
7
7
|
TargetImmutable: "TARGET_IMMUTABLE",
|
|
8
8
|
InvalidLimit: "INVALID_LIMIT",
|
|
9
|
+
InvalidToken: "INVALID_TOKEN",
|
|
9
10
|
OwnershipError: "OWNERSHIP_ERROR",
|
|
10
11
|
ResourceNotFound: "RESOURCE_NOT_FOUND",
|
|
11
12
|
InsecureOperator: "INSECURE_OPERATOR",
|
package/dist/config.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export type ApiConfig = {
|
|
|
45
45
|
paginationLimit?: number;
|
|
46
46
|
exposeFunctionsByDefault?: boolean | 'unauthenticated';
|
|
47
47
|
rolesHierarchy?: RolesHierarchy;
|
|
48
|
+
revalidateToken?: boolean;
|
|
48
49
|
};
|
|
49
50
|
tokenUserProperties?: (keyof CollectionItem<'user'>)[];
|
|
50
51
|
errorHandler?: <TError>(context: RouteContext, error: TError) => unknown | Promise<unknown>;
|
package/dist/context.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type IndepthCollection<TCollection> = TCollection extends {
|
|
|
22
22
|
functions?: infer InferredFunctions;
|
|
23
23
|
} ? InferredDescription extends JsonSchema ? Omit<TCollection, 'functions'> & {
|
|
24
24
|
item: SchemaWithId<InferredDescription>;
|
|
25
|
+
context: () => Promise<Context<InferredDescription, InferredFunctions>>;
|
|
25
26
|
functions: UnionFunctions<InferredFunctions, InferredDescription>;
|
|
26
27
|
originalFunctions: InferredFunctions;
|
|
27
28
|
model: InferredDescription extends Description ? CollectionModel<InferredDescription> : never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.120",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
13
14
|
"import": "./dist/index.mjs",
|
|
14
|
-
"require": "./dist/index.js"
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
15
|
+
"require": "./dist/index.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"keywords": [],
|