@aeriajs/builtins 0.0.184 → 0.0.186
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 +3 -3
- package/dist/collections/file/remove.d.ts +1 -1
- package/dist/collections/log/index.d.ts +1 -1
- package/dist/collections/resourceUsage/index.d.ts +1 -1
- package/dist/collections/user/getActivationLink.d.ts +1 -1
- package/dist/collections/user/index.d.ts +2 -2
- package/dist/index.d.ts +7 -7
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { description } from './description.js';
|
|
2
|
-
export declare const tempFile: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
2
|
+
export declare const tempFile: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
3
3
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
4
4
|
readonly $id: "tempFile";
|
|
5
5
|
readonly icon: "file";
|
|
@@ -65,7 +65,7 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<never>,
|
|
|
65
65
|
[x: string]: import("@aeriajs/types").Contract | undefined;
|
|
66
66
|
} | undefined;
|
|
67
67
|
};
|
|
68
|
-
export declare const file: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
68
|
+
export declare const file: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
69
69
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
70
70
|
readonly $id: "file";
|
|
71
71
|
readonly icon: "paperclip";
|
|
@@ -252,7 +252,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<never>, "fun
|
|
|
252
252
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
253
253
|
}> | {
|
|
254
254
|
readonly _tag: "Error";
|
|
255
|
-
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
255
|
+
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
256
256
|
readonly result: undefined;
|
|
257
257
|
}>;
|
|
258
258
|
removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof description>) => Promise<{
|
|
@@ -15,6 +15,6 @@ export declare const remove: (payload: RemovePayload<SchemaWithId<typeof descrip
|
|
|
15
15
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
16
16
|
}> | {
|
|
17
17
|
readonly _tag: "Error";
|
|
18
|
-
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
18
|
+
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
19
19
|
readonly result: undefined;
|
|
20
20
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const log: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
1
|
+
export declare const log: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
2
2
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
3
3
|
readonly $id: "log";
|
|
4
4
|
readonly icon: "magnifying-glass";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
1
|
+
export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
2
2
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
3
3
|
readonly $id: "resourceUsage";
|
|
4
4
|
readonly icon: "wrench";
|
|
@@ -7,7 +7,7 @@ export declare const getActivationLink: (payload: {
|
|
|
7
7
|
userId: ObjectId | string;
|
|
8
8
|
}, context: Context) => Promise<{
|
|
9
9
|
readonly _tag: "Error";
|
|
10
|
-
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, HTTPStatus.BadRequest | HTTPStatus.Forbidden | HTTPStatus.NotFound>;
|
|
10
|
+
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, HTTPStatus.BadRequest | HTTPStatus.Forbidden | HTTPStatus.NotFound>;
|
|
11
11
|
readonly result: undefined;
|
|
12
12
|
} | Result.Error<{
|
|
13
13
|
readonly code: ActivationError.AlreadyActiveUser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Collection } from '@aeriajs/types';
|
|
2
2
|
import { description } from './description.js';
|
|
3
|
-
export declare const user: Omit<Collection<never>, "functions" | "description" | "
|
|
3
|
+
export declare const user: Omit<Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
4
4
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
5
5
|
readonly $id: "user";
|
|
6
6
|
readonly icon: "users";
|
|
@@ -557,7 +557,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
|
|
|
557
557
|
userId: import("@aeriajs/core").ObjectId | string;
|
|
558
558
|
}, context: import("@aeriajs/types").Context) => Promise<{
|
|
559
559
|
readonly _tag: "Error";
|
|
560
|
-
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
560
|
+
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
561
561
|
readonly result: undefined;
|
|
562
562
|
} | import("@aeriajs/types").Result.Error<{
|
|
563
563
|
readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ type Log = typeof log.item;
|
|
|
9
9
|
type ResourceUsage = typeof resourceUsage.item;
|
|
10
10
|
type User = typeof user.item;
|
|
11
11
|
export declare const collections: {
|
|
12
|
-
file: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
12
|
+
file: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
13
13
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
14
14
|
readonly $id: "file";
|
|
15
15
|
readonly icon: "paperclip";
|
|
@@ -196,7 +196,7 @@ export declare const collections: {
|
|
|
196
196
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
197
197
|
}> | {
|
|
198
198
|
readonly _tag: "Error";
|
|
199
|
-
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
199
|
+
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
200
200
|
readonly result: undefined;
|
|
201
201
|
}>;
|
|
202
202
|
removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<{
|
|
@@ -221,7 +221,7 @@ export declare const collections: {
|
|
|
221
221
|
removeAll?: import("@aeriajs/types").Contract | undefined;
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
tempFile: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
224
|
+
tempFile: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
225
225
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
226
226
|
readonly $id: "tempFile";
|
|
227
227
|
readonly icon: "file";
|
|
@@ -287,7 +287,7 @@ export declare const collections: {
|
|
|
287
287
|
[x: string]: import("@aeriajs/types").Contract | undefined;
|
|
288
288
|
} | undefined;
|
|
289
289
|
};
|
|
290
|
-
log: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
290
|
+
log: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
291
291
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
292
292
|
readonly $id: "log";
|
|
293
293
|
readonly icon: "magnifying-glass";
|
|
@@ -353,7 +353,7 @@ export declare const collections: {
|
|
|
353
353
|
insert?: import("@aeriajs/types").Contract | undefined;
|
|
354
354
|
};
|
|
355
355
|
};
|
|
356
|
-
resourceUsage: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
356
|
+
resourceUsage: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
357
357
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
358
358
|
readonly $id: "resourceUsage";
|
|
359
359
|
readonly icon: "wrench";
|
|
@@ -429,7 +429,7 @@ export declare const collections: {
|
|
|
429
429
|
[x: string]: import("@aeriajs/types").Contract | undefined;
|
|
430
430
|
} | undefined;
|
|
431
431
|
};
|
|
432
|
-
user: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "
|
|
432
|
+
user: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
433
433
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
434
434
|
readonly $id: "user";
|
|
435
435
|
readonly icon: "users";
|
|
@@ -986,7 +986,7 @@ export declare const collections: {
|
|
|
986
986
|
userId: import("mongodb").ObjectId | string;
|
|
987
987
|
}, context: import("@aeriajs/types").Context) => Promise<{
|
|
988
988
|
readonly _tag: "Error";
|
|
989
|
-
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
989
|
+
readonly error: import("@aeriajs/types").EndpointError<import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
990
990
|
readonly result: undefined;
|
|
991
991
|
} | import("@aeriajs/types").Result.Error<{
|
|
992
992
|
readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.186",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -45,16 +45,16 @@
|
|
|
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.186",
|
|
49
|
+
"@aeriajs/common": "^0.0.114",
|
|
50
|
+
"@aeriajs/entrypoint": "^0.0.117",
|
|
51
|
+
"@aeriajs/types": "^0.0.97",
|
|
52
|
+
"@aeriajs/validation": "^0.0.117"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"test": "echo skipping",
|
|
56
|
-
"lint": "eslint
|
|
57
|
-
"lint:fix": "eslint
|
|
56
|
+
"lint": "eslint .",
|
|
57
|
+
"lint:fix": "eslint . --fix",
|
|
58
58
|
"build": "pnpm build:cjs && pnpm build:esm",
|
|
59
59
|
"build:cjs": "tsc",
|
|
60
60
|
"build:esm": "esbuild './src/**/*.ts' --outdir=dist --out-extension:.js=.mjs && pnpm build:esm-transform",
|