@aeriajs/builtins 0.0.185 → 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.
|
@@ -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
|
}>;
|
|
@@ -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;
|
|
@@ -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
|
@@ -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<{
|
|
@@ -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",
|