@aeriajs/builtins 0.0.200 → 0.0.201

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.
@@ -264,7 +264,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<never>, "fun
264
264
  };
265
265
  readonly details: {
266
266
  readonly type: "object";
267
- readonly variable: true;
267
+ readonly additionalProperties: true;
268
268
  };
269
269
  }>> & {
270
270
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -283,7 +283,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<never>, "fun
283
283
  };
284
284
  readonly details: {
285
285
  readonly type: "object";
286
- readonly variable: true;
286
+ readonly additionalProperties: true;
287
287
  };
288
288
  }>> & {
289
289
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -293,7 +293,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<never>, "fun
293
293
  }, never>>;
294
294
  readonly result: undefined;
295
295
  }>;
296
- removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof description>) => Promise<{
296
+ removeAll: (payload: import("@aeriajs/types").RemoveAllPayload<import("@aeriajs/types").SchemaWithId<typeof description>>, context: import("@aeriajs/types").Context<typeof description>) => Promise<{
297
297
  readonly _tag: "Result";
298
298
  readonly error: undefined;
299
299
  readonly result: import("mongodb").DeleteResult;
@@ -27,7 +27,7 @@ export declare const remove: (payload: RemovePayload<SchemaWithId<typeof descrip
27
27
  };
28
28
  readonly details: {
29
29
  readonly type: "object";
30
- readonly variable: true;
30
+ readonly additionalProperties: true;
31
31
  };
32
32
  }>> & {
33
33
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -46,7 +46,7 @@ export declare const remove: (payload: RemovePayload<SchemaWithId<typeof descrip
46
46
  };
47
47
  readonly details: {
48
48
  readonly type: "object";
49
- readonly variable: true;
49
+ readonly additionalProperties: true;
50
50
  };
51
51
  }>> & {
52
52
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -1,6 +1,6 @@
1
- import type { Context, RemoveAllPayload } from '@aeriajs/types';
1
+ import type { Context, SchemaWithId, RemoveAllPayload } from '@aeriajs/types';
2
2
  import type { description } from './description.js';
3
- export declare const removeAll: (payload: RemoveAllPayload, context: Context<typeof description>) => Promise<{
3
+ export declare const removeAll: (payload: RemoveAllPayload<SchemaWithId<typeof description>>, context: Context<typeof description>) => Promise<{
4
4
  readonly _tag: "Result";
5
5
  readonly error: undefined;
6
6
  readonly result: import("mongodb").DeleteResult;
@@ -4,11 +4,7 @@ exports.removeAll = void 0;
4
4
  const core_1 = require("@aeriajs/core");
5
5
  const fs = require("fs/promises");
6
6
  const removeAll = async (payload, context) => {
7
- const files = context.collection.model.find({
8
- _id: {
9
- $in: payload.filters,
10
- },
11
- }, {
7
+ const files = context.collection.model.find(payload.filters, {
12
8
  projection: {
13
9
  absolute_path: 1,
14
10
  },
@@ -2,11 +2,7 @@
2
2
  import { removeAll as originalRemoveAll } from "@aeriajs/core";
3
3
  import * as fs from "fs/promises";
4
4
  export const removeAll = async (payload, context) => {
5
- const files = context.collection.model.find({
6
- _id: {
7
- $in: payload.filters
8
- }
9
- }, {
5
+ const files = context.collection.model.find(payload.filters, {
10
6
  projection: {
11
7
  absolute_path: 1
12
8
  }
@@ -16,7 +16,7 @@ export declare const log: Omit<import("@aeriajs/types").Collection<never>, "func
16
16
  };
17
17
  readonly details: {
18
18
  readonly type: "object";
19
- readonly variable: true;
19
+ readonly additionalProperties: true;
20
20
  };
21
21
  readonly created_at: {
22
22
  readonly type: "string";
@@ -43,7 +43,7 @@ export declare const log: Omit<import("@aeriajs/types").Collection<never>, "func
43
43
  };
44
44
  readonly details: {
45
45
  readonly type: "object";
46
- readonly variable: true;
46
+ readonly additionalProperties: true;
47
47
  };
48
48
  readonly created_at: {
49
49
  readonly type: "string";
@@ -24,7 +24,7 @@ exports.log = (0, core_1.defineCollection)({
24
24
  },
25
25
  details: {
26
26
  type: 'object',
27
- variable: true,
27
+ additionalProperties: true,
28
28
  },
29
29
  created_at: {
30
30
  type: 'string',
@@ -22,7 +22,7 @@ export const log = defineCollection({
22
22
  },
23
23
  details: {
24
24
  type: "object",
25
- variable: true
25
+ additionalProperties: true
26
26
  },
27
27
  created_at: {
28
28
  type: "string",
@@ -19,7 +19,7 @@ export declare const getActivationLink: (payload: {
19
19
  };
20
20
  readonly details: {
21
21
  readonly type: "object";
22
- readonly variable: true;
22
+ readonly additionalProperties: true;
23
23
  };
24
24
  }>> & {
25
25
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -38,7 +38,7 @@ export declare const getActivationLink: (payload: {
38
38
  };
39
39
  readonly details: {
40
40
  readonly type: "object";
41
- readonly variable: true;
41
+ readonly additionalProperties: true;
42
42
  };
43
43
  }>> & {
44
44
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -579,7 +579,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
579
579
  };
580
580
  readonly details: {
581
581
  readonly type: "object";
582
- readonly variable: true;
582
+ readonly additionalProperties: true;
583
583
  };
584
584
  }>> & {
585
585
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -598,7 +598,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
598
598
  };
599
599
  readonly details: {
600
600
  readonly type: "object";
601
- readonly variable: true;
601
+ readonly additionalProperties: true;
602
602
  };
603
603
  }>> & {
604
604
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
package/dist/index.d.ts CHANGED
@@ -208,7 +208,7 @@ export declare const collections: {
208
208
  };
209
209
  readonly details: {
210
210
  readonly type: "object";
211
- readonly variable: true;
211
+ readonly additionalProperties: true;
212
212
  };
213
213
  }>> & {
214
214
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -227,7 +227,7 @@ export declare const collections: {
227
227
  };
228
228
  readonly details: {
229
229
  readonly type: "object";
230
- readonly variable: true;
230
+ readonly additionalProperties: true;
231
231
  };
232
232
  }>> & {
233
233
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -237,7 +237,7 @@ export declare const collections: {
237
237
  }, never>>;
238
238
  readonly result: undefined;
239
239
  }>;
240
- removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<{
240
+ removeAll: (payload: import("@aeriajs/types").RemoveAllPayload<import("@aeriajs/types").SchemaWithId<typeof import("./collections/file/description.js").description>>, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<{
241
241
  readonly _tag: "Result";
242
242
  readonly error: undefined;
243
243
  readonly result: import("mongodb").DeleteResult;
@@ -339,7 +339,7 @@ export declare const collections: {
339
339
  };
340
340
  readonly details: {
341
341
  readonly type: "object";
342
- readonly variable: true;
342
+ readonly additionalProperties: true;
343
343
  };
344
344
  readonly created_at: {
345
345
  readonly type: "string";
@@ -366,7 +366,7 @@ export declare const collections: {
366
366
  };
367
367
  readonly details: {
368
368
  readonly type: "object";
369
- readonly variable: true;
369
+ readonly additionalProperties: true;
370
370
  };
371
371
  readonly created_at: {
372
372
  readonly type: "string";
@@ -1042,7 +1042,7 @@ export declare const collections: {
1042
1042
  };
1043
1043
  readonly details: {
1044
1044
  readonly type: "object";
1045
- readonly variable: true;
1045
+ readonly additionalProperties: true;
1046
1046
  };
1047
1047
  }>> & {
1048
1048
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
@@ -1061,7 +1061,7 @@ export declare const collections: {
1061
1061
  };
1062
1062
  readonly details: {
1063
1063
  readonly type: "object";
1064
- readonly variable: true;
1064
+ readonly additionalProperties: true;
1065
1065
  };
1066
1066
  }>> & {
1067
1067
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.200",
3
+ "version": "0.0.201",
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.200",
49
- "@aeriajs/common": "^0.0.121",
50
- "@aeriajs/entrypoint": "^0.0.124",
51
- "@aeriajs/types": "^0.0.103",
52
- "@aeriajs/validation": "^0.0.129"
48
+ "@aeriajs/core": "^0.0.201",
49
+ "@aeriajs/common": "^0.0.122",
50
+ "@aeriajs/entrypoint": "^0.0.125",
51
+ "@aeriajs/types": "^0.0.104",
52
+ "@aeriajs/validation": "^0.0.130"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "echo skipping",