@aeriajs/builtins 0.0.79 → 0.0.80

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,7 +85,7 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
85
85
  };
86
86
  };
87
87
  };
88
- functions: Record<string, unknown> & {};
88
+ functions: Record<string, (payload: any, context: import("@aeriajs/types").Context) => any> & {};
89
89
  functionContracts: {
90
90
  [x: string]: import("@aeriajs/types").Contract | undefined;
91
91
  };
@@ -142,7 +142,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
142
142
  };
143
143
  };
144
144
  functions: {
145
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
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>;
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: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
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>;
612
612
  readonly insert: (payload: {
613
613
  what: {
614
614
  content: string;
@@ -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: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
31
- readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
32
- readonly insert: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, 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<TContext_2["description"]>>>;
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>>>;
33
33
  };
34
34
  exposedFunctions: {
35
35
  readonly get: true;
@@ -92,9 +92,9 @@ 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: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
96
- readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
97
- readonly insert: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, 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<TContext_2["description"]>>>;
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>>>;
98
98
  };
99
99
  functionContracts: {
100
100
  readonly get?: import("@aeriajs/types").Contract | undefined;
@@ -102,7 +102,7 @@ export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<{
102
102
  };
103
103
  };
104
104
  };
105
- functions: Record<string, unknown> & {};
105
+ functions: Record<string, (payload: any, context: import("@aeriajs/types").Context) => any> & {};
106
106
  functionContracts: {
107
107
  [x: string]: import("@aeriajs/types").Contract | undefined;
108
108
  };
@@ -100,13 +100,13 @@ export declare const user: {
100
100
  };
101
101
  };
102
102
  functions: {
103
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
104
- readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
105
- readonly remove: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2) => Promise<any>;
106
- readonly upload: <TContext_3 extends import("@aeriajs/types").Context>(_props: unknown, context: TContext_3) => 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").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> | {
107
107
  tempId: any;
108
108
  }>;
109
- readonly removeFile: <TContext_4 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_4) => Promise<any>;
109
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context) => Promise<any>;
110
110
  readonly insert: (payload: {
111
111
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
112
112
  readonly $id: "user";
@@ -1394,20 +1394,7 @@ export declare const user: {
1394
1394
  }];
1395
1395
  };
1396
1396
  };
1397
- exposedFunctions: {
1398
- readonly get: true;
1399
- readonly getAll: true;
1400
- readonly remove: true;
1401
- readonly upload: true;
1402
- readonly removeFile: true;
1403
- readonly insert: true;
1404
- readonly authenticate: "unauthenticated";
1405
- readonly activate: "unauthenticated-only";
1406
- readonly createAccount: "unauthenticated-only";
1407
- readonly getInfo: "unauthenticated";
1408
- readonly getCurrentUser: true;
1409
- readonly getActivationLink: true;
1410
- };
1397
+ exposedFunctions: any;
1411
1398
  } & {
1412
1399
  item: import("@aeriajs/types").SchemaWithId<{
1413
1400
  readonly $id: "user";
@@ -1610,13 +1597,13 @@ export declare const user: {
1610
1597
  };
1611
1598
  };
1612
1599
  functions: {
1613
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
1614
- readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
1615
- readonly remove: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2) => Promise<any>;
1616
- readonly upload: <TContext_3 extends import("@aeriajs/types").Context>(_props: unknown, context: TContext_3) => 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").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> | {
1617
1604
  tempId: any;
1618
1605
  }>;
1619
- readonly removeFile: <TContext_4 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_4) => Promise<any>;
1606
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context) => Promise<any>;
1620
1607
  readonly insert: (payload: {
1621
1608
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
1622
1609
  readonly $id: "user";
@@ -11,6 +11,20 @@ const createAccount_js_1 = require("./createAccount.js");
11
11
  const getInfo_js_1 = require("./getInfo.js");
12
12
  const getCurrentUser_js_1 = require("./getCurrentUser.js");
13
13
  const getActivationLink_js_1 = require("./getActivationLink.js");
14
+ const exposedFunctions = {
15
+ get: true,
16
+ getAll: true,
17
+ remove: true,
18
+ upload: true,
19
+ removeFile: true,
20
+ insert: true,
21
+ authenticate: 'unauthenticated',
22
+ activate: 'unauthenticated-only',
23
+ createAccount: 'unauthenticated-only',
24
+ getInfo: 'unauthenticated',
25
+ getCurrentUser: true,
26
+ getActivationLink: true,
27
+ };
14
28
  exports.user = (0, core_1.defineCollection)({
15
29
  description: description_js_1.description,
16
30
  functions: {
@@ -40,18 +54,5 @@ exports.user = (0, core_1.defineCollection)({
40
54
  ],
41
55
  },
42
56
  },
43
- exposedFunctions: {
44
- get: true,
45
- getAll: true,
46
- remove: true,
47
- upload: true,
48
- removeFile: true,
49
- insert: true,
50
- authenticate: 'unauthenticated',
51
- activate: 'unauthenticated-only',
52
- createAccount: 'unauthenticated-only',
53
- getInfo: 'unauthenticated',
54
- getCurrentUser: true,
55
- getActivationLink: true,
56
- },
57
+ exposedFunctions: exposedFunctions,
57
58
  });
@@ -9,6 +9,20 @@ import { createAccount } from "./createAccount.mjs";
9
9
  import { getInfo } from "./getInfo.mjs";
10
10
  import { getCurrentUser } from "./getCurrentUser.mjs";
11
11
  import { getActivationLink } from "./getActivationLink.mjs";
12
+ const exposedFunctions = {
13
+ get: true,
14
+ getAll: true,
15
+ remove: true,
16
+ upload: true,
17
+ removeFile: true,
18
+ insert: true,
19
+ authenticate: "unauthenticated",
20
+ activate: "unauthenticated-only",
21
+ createAccount: "unauthenticated-only",
22
+ getInfo: "unauthenticated",
23
+ getCurrentUser: true,
24
+ getActivationLink: true
25
+ };
12
26
  export const user = defineCollection({
13
27
  description,
14
28
  functions: {
@@ -38,18 +52,5 @@ export const user = defineCollection({
38
52
  ]
39
53
  }
40
54
  },
41
- exposedFunctions: {
42
- get: true,
43
- getAll: true,
44
- remove: true,
45
- upload: true,
46
- removeFile: true,
47
- insert: true,
48
- authenticate: "unauthenticated",
49
- activate: "unauthenticated-only",
50
- createAccount: "unauthenticated-only",
51
- getInfo: "unauthenticated",
52
- getCurrentUser: true,
53
- getActivationLink: true
54
- }
55
+ exposedFunctions
55
56
  });
package/dist/index.d.ts CHANGED
@@ -60,7 +60,7 @@ export declare const collections: {
60
60
  };
61
61
  };
62
62
  functions: {
63
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
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>;
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: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
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>;
530
530
  readonly insert: (payload: {
531
531
  what: {
532
532
  content: string;
@@ -977,7 +977,7 @@ export declare const collections: {
977
977
  };
978
978
  };
979
979
  };
980
- functions: Record<string, unknown> & {};
980
+ functions: Record<string, (payload: any, context: import("@aeriajs/types").Context) => any> & {};
981
981
  functionContracts: {
982
982
  [x: string]: import("@aeriajs/types").Contract | undefined;
983
983
  };
@@ -1011,9 +1011,9 @@ export declare const collections: {
1011
1011
  readonly filters: readonly ["context", "message", "owner"];
1012
1012
  };
1013
1013
  functions: {
1014
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
1015
- readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
1016
- readonly insert: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, 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<TContext_2["description"]>>>;
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>>>;
1017
1017
  };
1018
1018
  exposedFunctions: {
1019
1019
  readonly get: true;
@@ -1076,9 +1076,9 @@ export declare const collections: {
1076
1076
  readonly filters: readonly ["context", "message", "owner"];
1077
1077
  };
1078
1078
  functions: {
1079
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
1080
- readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
1081
- readonly insert: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, 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<TContext_2["description"]>>>;
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>>>;
1082
1082
  };
1083
1083
  functionContracts: {
1084
1084
  readonly get?: import("@aeriajs/types").Contract | undefined;
@@ -1190,7 +1190,7 @@ export declare const collections: {
1190
1190
  };
1191
1191
  };
1192
1192
  };
1193
- functions: Record<string, unknown> & {};
1193
+ functions: Record<string, (payload: any, context: import("@aeriajs/types").Context) => any> & {};
1194
1194
  functionContracts: {
1195
1195
  [x: string]: import("@aeriajs/types").Contract | undefined;
1196
1196
  };
@@ -1297,13 +1297,13 @@ export declare const collections: {
1297
1297
  };
1298
1298
  };
1299
1299
  functions: {
1300
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
1301
- readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
1302
- readonly remove: <TContext_3 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_3["description"]>>, context: TContext_3) => Promise<any>;
1303
- readonly upload: <TContext_4 extends import("@aeriajs/types").Context>(_props: unknown, context: TContext_4) => 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").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> | {
1304
1304
  tempId: any;
1305
1305
  }>;
1306
- readonly removeFile: <TContext_5 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_5) => Promise<any>;
1306
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context) => Promise<any>;
1307
1307
  readonly insert: (payload: {
1308
1308
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
1309
1309
  readonly $id: "user";
@@ -2591,20 +2591,7 @@ export declare const collections: {
2591
2591
  }];
2592
2592
  };
2593
2593
  };
2594
- exposedFunctions: {
2595
- readonly get: true;
2596
- readonly getAll: true;
2597
- readonly remove: true;
2598
- readonly upload: true;
2599
- readonly removeFile: true;
2600
- readonly insert: true;
2601
- readonly authenticate: "unauthenticated";
2602
- readonly activate: "unauthenticated-only";
2603
- readonly createAccount: "unauthenticated-only";
2604
- readonly getInfo: "unauthenticated";
2605
- readonly getCurrentUser: true;
2606
- readonly getActivationLink: true;
2607
- };
2594
+ exposedFunctions: any;
2608
2595
  } & {
2609
2596
  item: import("@aeriajs/types").SchemaWithId<{
2610
2597
  readonly $id: "user";
@@ -2807,13 +2794,13 @@ export declare const collections: {
2807
2794
  };
2808
2795
  };
2809
2796
  functions: {
2810
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
2811
- readonly getAll: <TContext_1 extends import("@aeriajs/types").Context>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext_1["description"]>[]>;
2812
- readonly remove: <TContext_3 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_3["description"]>>, context: TContext_3) => Promise<any>;
2813
- readonly upload: <TContext_4 extends import("@aeriajs/types").Context>(_props: unknown, context: TContext_4) => 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").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> | {
2814
2801
  tempId: any;
2815
2802
  }>;
2816
- readonly removeFile: <TContext_5 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_5) => Promise<any>;
2803
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context) => Promise<any>;
2817
2804
  readonly insert: (payload: {
2818
2805
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
2819
2806
  readonly $id: "user";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
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.79",
49
- "@aeriajs/common": "^0.0.45",
50
- "@aeriajs/entrypoint": "^0.0.45",
51
- "@aeriajs/types": "^0.0.42",
52
- "@aeriajs/validation": "^0.0.48"
48
+ "@aeriajs/core": "^0.0.80",
49
+ "@aeriajs/common": "^0.0.46",
50
+ "@aeriajs/entrypoint": "^0.0.46",
51
+ "@aeriajs/types": "^0.0.43",
52
+ "@aeriajs/validation": "^0.0.49"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "echo skipping",