@aeriajs/core 0.0.201 → 0.0.202

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.
@@ -12,7 +12,12 @@ export declare const preferredRemove: (targetId: ObjectId | (ObjectId | null)[],
12
12
  }> | {
13
13
  readonly _tag: "Result";
14
14
  readonly error: undefined;
15
- readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
15
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<{
16
+ [x: string]: unknown;
17
+ updated_at?: Date | undefined;
18
+ created_at?: Date | undefined;
19
+ _id: ObjectId;
20
+ }>, "_id">> | null;
16
21
  } | import("@aeriajs/types").Result.Error<{
17
22
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
18
23
  } & {
@@ -47,7 +47,7 @@ export declare const traverseDocument: <TWhat>(what: TWhat, description: Descrip
47
47
  readonly result: TWhat;
48
48
  } | {
49
49
  readonly _tag: "Error";
50
- readonly error: ACError.InsecureOperator | ValidationError | TraverseError;
50
+ readonly error: ACError.InsecureOperator | TraverseError | ValidationError;
51
51
  readonly result: undefined;
52
52
  }>;
53
53
  export {};
@@ -6,7 +6,12 @@ export type RemoveOptions = {
6
6
  export declare const remove: <TContext extends Context>(payload: RemovePayload<SchemaWithId<TContext["description"]>>, context: TContext, options?: RemoveOptions) => Promise<{
7
7
  readonly _tag: "Result";
8
8
  readonly error: undefined;
9
- readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
9
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<{
10
+ [x: string]: unknown;
11
+ updated_at?: Date | undefined;
12
+ created_at?: Date | undefined;
13
+ _id: import("mongodb").ObjectId;
14
+ }>, "_id">> | null;
10
15
  } | Result.Error<{
11
16
  readonly code: ACError.ResourceNotFound;
12
17
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/core",
3
- "version": "0.0.201",
3
+ "version": "0.0.202",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "aeriaMain": "tests/fixtures/aeriaMain.js",
@@ -42,13 +42,13 @@
42
42
  "mongodb-memory-server": "^9.2.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@aeriajs/builtins": "^0.0.201",
46
- "@aeriajs/common": "^0.0.122",
47
- "@aeriajs/entrypoint": "^0.0.125",
48
- "@aeriajs/http": "^0.0.141",
49
- "@aeriajs/security": "^0.0.201",
50
- "@aeriajs/types": "^0.0.104",
51
- "@aeriajs/validation": "^0.0.130"
45
+ "@aeriajs/builtins": "^0.0.202",
46
+ "@aeriajs/common": "^0.0.123",
47
+ "@aeriajs/entrypoint": "^0.0.126",
48
+ "@aeriajs/http": "^0.0.142",
49
+ "@aeriajs/security": "^0.0.202",
50
+ "@aeriajs/types": "^0.0.105",
51
+ "@aeriajs/validation": "^0.0.131"
52
52
  },
53
53
  "dependencies": {
54
54
  "mongodb": "^6.5.0",