@aeriajs/builtins 0.0.84 → 0.0.86

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.
@@ -85,8 +85,8 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
85
85
  };
86
86
  };
87
87
  };
88
- functions: Record<string, (payload: any, context: import("@aeriajs/types").Context) => any> & {};
89
- functionContracts: {
88
+ functions: Record<string, (payload: any, context: import("@aeriajs/types").StrictContext<any>) => any> & {};
89
+ contracts: {
90
90
  [x: string]: import("@aeriajs/types").Contract | undefined;
91
91
  };
92
92
  };
@@ -142,7 +142,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
142
142
  };
143
143
  };
144
144
  functions: {
145
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
145
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
146
146
  readonly insert: (payload: {
147
147
  what: {
148
148
  content: string;
@@ -608,7 +608,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
608
608
  };
609
609
  };
610
610
  functions: {
611
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
611
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
612
612
  readonly insert: (payload: {
613
613
  what: {
614
614
  content: string;
@@ -965,7 +965,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
965
965
  };
966
966
  }>) => Promise<any>;
967
967
  };
968
- functionContracts: {
968
+ contracts: {
969
969
  readonly get?: import("@aeriajs/types").Contract | undefined;
970
970
  readonly insert?: import("@aeriajs/types").Contract | undefined;
971
971
  readonly download?: import("@aeriajs/types").Contract | undefined;
@@ -27,9 +27,9 @@ export declare const log: Omit<import("@aeriajs/types").Collection<{
27
27
  readonly filters: readonly ["context", "message", "owner"];
28
28
  };
29
29
  functions: {
30
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
31
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
32
- readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<any>>>;
30
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
31
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
32
+ readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<any>>>;
33
33
  };
34
34
  exposedFunctions: {
35
35
  readonly get: true;
@@ -92,11 +92,11 @@ export declare const log: Omit<import("@aeriajs/types").Collection<{
92
92
  readonly filters: readonly ["context", "message", "owner"];
93
93
  };
94
94
  functions: {
95
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
96
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
97
- readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<any>>>;
95
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
96
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
97
+ readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<any>>>;
98
98
  };
99
- functionContracts: {
99
+ contracts: {
100
100
  readonly get?: import("@aeriajs/types").Contract | undefined;
101
101
  readonly getAll?: import("@aeriajs/types").Contract | undefined;
102
102
  readonly insert?: import("@aeriajs/types").Contract | undefined;
@@ -102,8 +102,8 @@ export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<{
102
102
  };
103
103
  };
104
104
  };
105
- functions: Record<string, (payload: any, context: import("@aeriajs/types").Context) => any> & {};
106
- functionContracts: {
105
+ functions: Record<string, (payload: any, context: import("@aeriajs/types").StrictContext<any>) => any> & {};
106
+ contracts: {
107
107
  [x: string]: import("@aeriajs/types").Contract | undefined;
108
108
  };
109
109
  };
@@ -5,7 +5,7 @@ export declare enum ActivationErrors {
5
5
  AlreadyActiveUser = "ALREADY_ACTIVE_USER",
6
6
  InvalidLink = "INVALID_LINK"
7
7
  }
8
- export declare const getCurrentUser: (_payload: undefined, context: Context<typeof description>) => Promise<import("@aeriajs/types").Left<{}> | import("@aeriajs/types").Right<SchemaWithId<{
8
+ export declare const getCurrentUser: (_payload: undefined, context: Context<typeof description>) => Promise<import("@aeriajs/types").Right<SchemaWithId<{
9
9
  readonly $id: "user";
10
10
  readonly required: readonly ["name", "roles", "email"];
11
11
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -104,4 +104,4 @@ export declare const getCurrentUser: (_payload: undefined, context: Context<type
104
104
  };
105
105
  };
106
106
  };
107
- }>>>;
107
+ }>> | import("@aeriajs/types").Left<{}>>;
@@ -100,13 +100,13 @@ export declare const user: {
100
100
  };
101
101
  };
102
102
  functions: {
103
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
104
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
105
- readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context) => Promise<any>;
106
- readonly upload: (_props: unknown, context: import("@aeriajs/types").Context) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
103
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
104
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
105
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
106
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
107
107
  tempId: any;
108
108
  }>;
109
- readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context) => Promise<any>;
109
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
110
110
  readonly insert: (payload: {
111
111
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
112
112
  readonly $id: "user";
@@ -1271,7 +1271,7 @@ export declare const user: {
1271
1271
  };
1272
1272
  };
1273
1273
  };
1274
- }>) => Promise<import("@aeriajs/types").Left<{}> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
1274
+ }>) => Promise<import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
1275
1275
  readonly $id: "user";
1276
1276
  readonly required: readonly ["name", "roles", "email"];
1277
1277
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -1370,10 +1370,10 @@ export declare const user: {
1370
1370
  };
1371
1371
  };
1372
1372
  };
1373
- }>>>;
1373
+ }>> | import("@aeriajs/types").Left<{}>>;
1374
1374
  readonly getActivationLink: (userId: import("@aeriajs/core").ObjectId) => Promise<string>;
1375
1375
  };
1376
- functionContracts: {
1376
+ contracts: {
1377
1377
  readonly getCurrentUser: {
1378
1378
  readonly response: [{
1379
1379
  readonly type: "object";
@@ -1597,13 +1597,13 @@ export declare const user: {
1597
1597
  };
1598
1598
  };
1599
1599
  functions: {
1600
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
1601
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1602
- readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context) => Promise<any>;
1603
- readonly upload: (_props: unknown, context: import("@aeriajs/types").Context) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
1600
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
1601
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1602
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
1603
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
1604
1604
  tempId: any;
1605
1605
  }>;
1606
- readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context) => Promise<any>;
1606
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
1607
1607
  readonly insert: (payload: {
1608
1608
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
1609
1609
  readonly $id: "user";
@@ -2768,7 +2768,7 @@ export declare const user: {
2768
2768
  };
2769
2769
  };
2770
2770
  };
2771
- }>) => Promise<import("@aeriajs/types").Left<{}> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
2771
+ }>) => Promise<import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
2772
2772
  readonly $id: "user";
2773
2773
  readonly required: readonly ["name", "roles", "email"];
2774
2774
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -2867,10 +2867,10 @@ export declare const user: {
2867
2867
  };
2868
2868
  };
2869
2869
  };
2870
- }>>>;
2870
+ }>> | import("@aeriajs/types").Left<{}>>;
2871
2871
  readonly getActivationLink: (userId: import("@aeriajs/core").ObjectId) => Promise<string>;
2872
2872
  };
2873
- functionContracts: {
2873
+ contracts: {
2874
2874
  readonly getCurrentUser: {
2875
2875
  readonly response: [{
2876
2876
  readonly type: "object";
@@ -41,7 +41,7 @@ exports.user = (0, core_1.defineCollection)({
41
41
  getCurrentUser: getCurrentUser_js_1.getCurrentUser,
42
42
  getActivationLink: getActivationLink_js_1.getActivationLink,
43
43
  },
44
- functionContracts: {
44
+ contracts: {
45
45
  getCurrentUser: {
46
46
  response: [
47
47
  (0, common_1.leftSchema)({
@@ -39,7 +39,7 @@ export const user = defineCollection({
39
39
  getCurrentUser,
40
40
  getActivationLink
41
41
  },
42
- functionContracts: {
42
+ contracts: {
43
43
  getCurrentUser: {
44
44
  response: [
45
45
  leftSchema({
package/dist/index.d.ts CHANGED
@@ -60,7 +60,7 @@ export declare const collections: {
60
60
  };
61
61
  };
62
62
  functions: {
63
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
63
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
64
64
  readonly insert: (payload: {
65
65
  what: {
66
66
  content: string;
@@ -526,7 +526,7 @@ export declare const collections: {
526
526
  };
527
527
  };
528
528
  functions: {
529
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
529
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
530
530
  readonly insert: (payload: {
531
531
  what: {
532
532
  content: string;
@@ -883,7 +883,7 @@ export declare const collections: {
883
883
  };
884
884
  }>) => Promise<any>;
885
885
  };
886
- functionContracts: {
886
+ contracts: {
887
887
  readonly get?: import("@aeriajs/types").Contract | undefined;
888
888
  readonly insert?: import("@aeriajs/types").Contract | undefined;
889
889
  readonly download?: import("@aeriajs/types").Contract | undefined;
@@ -977,8 +977,8 @@ export declare const collections: {
977
977
  };
978
978
  };
979
979
  };
980
- functions: Record<string, (payload: any, context: import("@aeriajs/types").Context) => any> & {};
981
- functionContracts: {
980
+ functions: Record<string, (payload: any, context: import("@aeriajs/types").StrictContext<any>) => any> & {};
981
+ contracts: {
982
982
  [x: string]: import("@aeriajs/types").Contract | undefined;
983
983
  };
984
984
  };
@@ -1011,9 +1011,9 @@ export declare const collections: {
1011
1011
  readonly filters: readonly ["context", "message", "owner"];
1012
1012
  };
1013
1013
  functions: {
1014
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
1015
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1016
- readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<any>>>;
1014
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
1015
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1016
+ readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<any>>>;
1017
1017
  };
1018
1018
  exposedFunctions: {
1019
1019
  readonly get: true;
@@ -1076,11 +1076,11 @@ export declare const collections: {
1076
1076
  readonly filters: readonly ["context", "message", "owner"];
1077
1077
  };
1078
1078
  functions: {
1079
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
1080
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1081
- readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<any>>>;
1079
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
1080
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1081
+ readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<any>>>;
1082
1082
  };
1083
- functionContracts: {
1083
+ contracts: {
1084
1084
  readonly get?: import("@aeriajs/types").Contract | undefined;
1085
1085
  readonly getAll?: import("@aeriajs/types").Contract | undefined;
1086
1086
  readonly insert?: import("@aeriajs/types").Contract | undefined;
@@ -1190,8 +1190,8 @@ export declare const collections: {
1190
1190
  };
1191
1191
  };
1192
1192
  };
1193
- functions: Record<string, (payload: any, context: import("@aeriajs/types").Context) => any> & {};
1194
- functionContracts: {
1193
+ functions: Record<string, (payload: any, context: import("@aeriajs/types").StrictContext<any>) => any> & {};
1194
+ contracts: {
1195
1195
  [x: string]: import("@aeriajs/types").Contract | undefined;
1196
1196
  };
1197
1197
  };
@@ -1297,13 +1297,13 @@ export declare const collections: {
1297
1297
  };
1298
1298
  };
1299
1299
  functions: {
1300
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
1301
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1302
- readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context) => Promise<any>;
1303
- readonly upload: (_props: unknown, context: import("@aeriajs/types").Context) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
1300
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
1301
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1302
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
1303
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
1304
1304
  tempId: any;
1305
1305
  }>;
1306
- readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context) => Promise<any>;
1306
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
1307
1307
  readonly insert: (payload: {
1308
1308
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
1309
1309
  readonly $id: "user";
@@ -2468,7 +2468,7 @@ export declare const collections: {
2468
2468
  };
2469
2469
  };
2470
2470
  };
2471
- }>) => Promise<import("@aeriajs/types").Left<{}> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
2471
+ }>) => Promise<import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
2472
2472
  readonly $id: "user";
2473
2473
  readonly required: readonly ["name", "roles", "email"];
2474
2474
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -2567,10 +2567,10 @@ export declare const collections: {
2567
2567
  };
2568
2568
  };
2569
2569
  };
2570
- }>>>;
2570
+ }>> | import("@aeriajs/types").Left<{}>>;
2571
2571
  readonly getActivationLink: (userId: import("mongodb").ObjectId) => Promise<string>;
2572
2572
  };
2573
- functionContracts: {
2573
+ contracts: {
2574
2574
  readonly getCurrentUser: {
2575
2575
  readonly response: [{
2576
2576
  readonly type: "object";
@@ -2794,13 +2794,13 @@ export declare const collections: {
2794
2794
  };
2795
2795
  };
2796
2796
  functions: {
2797
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
2798
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
2799
- readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").Context) => Promise<any>;
2800
- readonly upload: (_props: unknown, context: import("@aeriajs/types").Context) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
2797
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any> | null>;
2798
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
2799
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
2800
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
2801
2801
  tempId: any;
2802
2802
  }>;
2803
- readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context) => Promise<any>;
2803
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
2804
2804
  readonly insert: (payload: {
2805
2805
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
2806
2806
  readonly $id: "user";
@@ -3965,7 +3965,7 @@ export declare const collections: {
3965
3965
  };
3966
3966
  };
3967
3967
  };
3968
- }>) => Promise<import("@aeriajs/types").Left<{}> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
3968
+ }>) => Promise<import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
3969
3969
  readonly $id: "user";
3970
3970
  readonly required: readonly ["name", "roles", "email"];
3971
3971
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -4064,10 +4064,10 @@ export declare const collections: {
4064
4064
  };
4065
4065
  };
4066
4066
  };
4067
- }>>>;
4067
+ }>> | import("@aeriajs/types").Left<{}>>;
4068
4068
  readonly getActivationLink: (userId: import("mongodb").ObjectId) => Promise<string>;
4069
4069
  };
4070
- functionContracts: {
4070
+ contracts: {
4071
4071
  readonly getCurrentUser: {
4072
4072
  readonly response: [{
4073
4073
  readonly type: "object";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.84",
3
+ "version": "0.0.86",
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.84",
49
- "@aeriajs/common": "^0.0.50",
50
- "@aeriajs/entrypoint": "^0.0.50",
51
- "@aeriajs/types": "^0.0.47",
52
- "@aeriajs/validation": "^0.0.53"
48
+ "@aeriajs/core": "^0.0.86",
49
+ "@aeriajs/common": "^0.0.52",
50
+ "@aeriajs/entrypoint": "^0.0.52",
51
+ "@aeriajs/types": "^0.0.49",
52
+ "@aeriajs/validation": "^0.0.55"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "echo skipping",