@aeriajs/builtins 0.0.188 → 0.0.190

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,45 @@ 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.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
255
+ readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
256
+ readonly httpStatus: {
257
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
258
+ };
259
+ readonly code: {
260
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
261
+ };
262
+ readonly message: {
263
+ readonly type: "string";
264
+ };
265
+ readonly details: {
266
+ readonly type: "object";
267
+ readonly variable: true;
268
+ };
269
+ }>> & {
270
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
271
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
272
+ message: string;
273
+ details: any;
274
+ }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
275
+ readonly httpStatus: {
276
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
277
+ };
278
+ readonly code: {
279
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
280
+ };
281
+ readonly message: {
282
+ readonly type: "string";
283
+ };
284
+ readonly details: {
285
+ readonly type: "object";
286
+ readonly variable: true;
287
+ };
288
+ }>> & {
289
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
290
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
291
+ message: string;
292
+ details: any;
293
+ }, never>>;
256
294
  readonly result: undefined;
257
295
  }>;
258
296
  removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof description>) => Promise<{
@@ -15,6 +15,44 @@ 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.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
18
+ readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
19
+ readonly httpStatus: {
20
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
21
+ };
22
+ readonly code: {
23
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
24
+ };
25
+ readonly message: {
26
+ readonly type: "string";
27
+ };
28
+ readonly details: {
29
+ readonly type: "object";
30
+ readonly variable: true;
31
+ };
32
+ }>> & {
33
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
34
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
35
+ message: string;
36
+ details: any;
37
+ }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
38
+ readonly httpStatus: {
39
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
40
+ };
41
+ readonly code: {
42
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
43
+ };
44
+ readonly message: {
45
+ readonly type: "string";
46
+ };
47
+ readonly details: {
48
+ readonly type: "object";
49
+ readonly variable: true;
50
+ };
51
+ }>> & {
52
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
53
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
54
+ message: string;
55
+ details: any;
56
+ }, never>>;
19
57
  readonly result: undefined;
20
58
  }>;
@@ -7,7 +7,45 @@ 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.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, HTTPStatus.BadRequest | HTTPStatus.Forbidden | HTTPStatus.NotFound>;
10
+ readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
11
+ readonly httpStatus: {
12
+ readonly enum: [HTTPStatus.Forbidden, HTTPStatus.NotFound, HTTPStatus.BadRequest];
13
+ };
14
+ readonly code: {
15
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
16
+ };
17
+ readonly message: {
18
+ readonly type: "string";
19
+ };
20
+ readonly details: {
21
+ readonly type: "object";
22
+ readonly variable: true;
23
+ };
24
+ }>> & {
25
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
26
+ httpStatus: HTTPStatus.BadRequest | HTTPStatus.Forbidden | HTTPStatus.NotFound;
27
+ message: string;
28
+ details: any;
29
+ }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
30
+ readonly httpStatus: {
31
+ readonly enum: [HTTPStatus.Forbidden, HTTPStatus.NotFound, HTTPStatus.BadRequest];
32
+ };
33
+ readonly code: {
34
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
35
+ };
36
+ readonly message: {
37
+ readonly type: "string";
38
+ };
39
+ readonly details: {
40
+ readonly type: "object";
41
+ readonly variable: true;
42
+ };
43
+ }>> & {
44
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
45
+ httpStatus: HTTPStatus.BadRequest | HTTPStatus.Forbidden | HTTPStatus.NotFound;
46
+ message: string;
47
+ details: any;
48
+ }, never>>;
11
49
  readonly result: undefined;
12
50
  } | Result.Error<{
13
51
  readonly code: ActivationError.AlreadyActiveUser;
@@ -567,7 +567,45 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
567
567
  userId: import("@aeriajs/core").ObjectId | string;
568
568
  }, context: import("@aeriajs/types").Context) => Promise<{
569
569
  readonly _tag: "Error";
570
- 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>;
570
+ readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
571
+ readonly httpStatus: {
572
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
573
+ };
574
+ readonly code: {
575
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
576
+ };
577
+ readonly message: {
578
+ readonly type: "string";
579
+ };
580
+ readonly details: {
581
+ readonly type: "object";
582
+ readonly variable: true;
583
+ };
584
+ }>> & {
585
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
586
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
587
+ message: string;
588
+ details: any;
589
+ }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
590
+ readonly httpStatus: {
591
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
592
+ };
593
+ readonly code: {
594
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
595
+ };
596
+ readonly message: {
597
+ readonly type: "string";
598
+ };
599
+ readonly details: {
600
+ readonly type: "object";
601
+ readonly variable: true;
602
+ };
603
+ }>> & {
604
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
605
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
606
+ message: string;
607
+ details: any;
608
+ }, never>>;
571
609
  readonly result: undefined;
572
610
  } | import("@aeriajs/types").Result.Error<{
573
611
  readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
package/dist/index.d.ts CHANGED
@@ -196,7 +196,45 @@ 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.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound>;
199
+ readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
200
+ readonly httpStatus: {
201
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
202
+ };
203
+ readonly code: {
204
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
205
+ };
206
+ readonly message: {
207
+ readonly type: "string";
208
+ };
209
+ readonly details: {
210
+ readonly type: "object";
211
+ readonly variable: true;
212
+ };
213
+ }>> & {
214
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
215
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
216
+ message: string;
217
+ details: any;
218
+ }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
219
+ readonly httpStatus: {
220
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
221
+ };
222
+ readonly code: {
223
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
224
+ };
225
+ readonly message: {
226
+ readonly type: "string";
227
+ };
228
+ readonly details: {
229
+ readonly type: "object";
230
+ readonly variable: true;
231
+ };
232
+ }>> & {
233
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
234
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
235
+ message: string;
236
+ details: any;
237
+ }, never>>;
200
238
  readonly result: undefined;
201
239
  }>;
202
240
  removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<{
@@ -992,7 +1030,45 @@ export declare const collections: {
992
1030
  userId: import("mongodb").ObjectId | string;
993
1031
  }, context: import("@aeriajs/types").Context) => Promise<{
994
1032
  readonly _tag: "Error";
995
- 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>;
1033
+ readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
1034
+ readonly httpStatus: {
1035
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
1036
+ };
1037
+ readonly code: {
1038
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
1039
+ };
1040
+ readonly message: {
1041
+ readonly type: "string";
1042
+ };
1043
+ readonly details: {
1044
+ readonly type: "object";
1045
+ readonly variable: true;
1046
+ };
1047
+ }>> & {
1048
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
1049
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
1050
+ message: string;
1051
+ details: any;
1052
+ }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
1053
+ readonly httpStatus: {
1054
+ readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
1055
+ };
1056
+ readonly code: {
1057
+ readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
1058
+ };
1059
+ readonly message: {
1060
+ readonly type: "string";
1061
+ };
1062
+ readonly details: {
1063
+ readonly type: "object";
1064
+ readonly variable: true;
1065
+ };
1066
+ }>> & {
1067
+ code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
1068
+ httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
1069
+ message: string;
1070
+ details: any;
1071
+ }, never>>;
996
1072
  readonly result: undefined;
997
1073
  } | import("@aeriajs/types").Result.Error<{
998
1074
  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.188",
3
+ "version": "0.0.190",
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.188",
49
- "@aeriajs/common": "^0.0.115",
50
- "@aeriajs/entrypoint": "^0.0.118",
51
- "@aeriajs/types": "^0.0.98",
52
- "@aeriajs/validation": "^0.0.118"
48
+ "@aeriajs/core": "^0.0.190",
49
+ "@aeriajs/common": "^0.0.116",
50
+ "@aeriajs/entrypoint": "^0.0.119",
51
+ "@aeriajs/types": "^0.0.99",
52
+ "@aeriajs/validation": "^0.0.119"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "echo skipping",