@aeriajs/builtins 0.0.213 → 0.0.215

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.
@@ -1,5 +1,4 @@
1
- import type { Collection } from '@aeriajs/types';
2
- import { description } from './description.js';
1
+ import type { Collection, Context } from '@aeriajs/types';
3
2
  export declare const user: Omit<Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
4
3
  item: import("@aeriajs/types").SchemaWithId<{
5
4
  readonly $id: "user";
@@ -204,9 +203,9 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
204
203
  };
205
204
  };
206
205
  functions: {
207
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<import("@aeriajs/types").SchemaWithId<TContext["description"]>>>;
208
- readonly getAll: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>> | undefined, context: TContext, options?: import("@aeriajs/core").GetAllOptions) => Promise<import("@aeriajs/types").GetAllReturnType<import("@aeriajs/types").SchemaWithId<TContext["description"]>>>;
209
- readonly remove: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext, options?: import("@aeriajs/core").RemoveOptions) => Promise<{
206
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").GetReturnType<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>>;
207
+ readonly getAll: (payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").GetAllReturnType<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>>;
208
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, context: Omit<Context, "token">) => Promise<{
210
209
  readonly _tag: "Result";
211
210
  readonly error: undefined;
212
211
  readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
@@ -219,7 +218,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
219
218
  } & {
220
219
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
221
220
  }>>;
222
- readonly upload: <TContext extends import("@aeriajs/types").Context>(_props: unknown, context: TContext) => Promise<import("@aeriajs/types").Result.Error<{
221
+ readonly upload: (payload: unknown, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").Result.Error<{
223
222
  readonly code: import("@aeriajs/types").ACError.MalformedInput;
224
223
  readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
225
224
  } & {
@@ -231,7 +230,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
231
230
  readonly tempId: any;
232
231
  };
233
232
  }>;
234
- readonly removeFile: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext, options?: import("@aeriajs/core").RemoveFileOptions) => Promise<{
233
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: Omit<Context, "token">) => Promise<{
235
234
  readonly _tag: "Result";
236
235
  readonly error: undefined;
237
236
  readonly result: any;
@@ -240,14 +239,14 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
240
239
  } & {
241
240
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
242
241
  }>>;
243
- readonly insert: <TDescription extends import("@aeriajs/types").Description, TInsertPayload extends import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TDescription>>>(payload: NoInfer<TInsertPayload>, context: import("@aeriajs/types").Context<TDescription>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<TDescription>>>;
244
- readonly authenticate: (props: {
242
+ readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>>, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>>;
243
+ readonly authenticate: (payload: {
245
244
  email: string;
246
245
  password: string;
247
246
  } | {
248
247
  token?: import("@aeriajs/types").TokenRecipient;
249
248
  revalidate: true;
250
- }, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
249
+ }, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").Result.Error<{
251
250
  readonly code: import("@aeriajs/types").ACError.AuthorizationError;
252
251
  } & {
253
252
  httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
@@ -282,17 +281,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
282
281
  }>>;
283
282
  readonly activate: (payload: {
284
283
  password: string;
285
- }, context: import("@aeriajs/types").Context<typeof description> & {
286
- request: {
287
- query: {
288
- u?: string;
289
- t?: string;
290
- };
291
- payload: {
292
- password?: string;
293
- };
294
- };
295
- }) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
284
+ }, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
296
285
  readonly code: import("./activate.js").ActivationError.InvalidLink;
297
286
  } & {
298
287
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
@@ -315,7 +304,107 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
315
304
  readonly userId: import("@aeriajs/core").ObjectId;
316
305
  };
317
306
  } | undefined>;
318
- readonly createAccount: (payload: Partial<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof description>>> & Record<string, unknown>, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
307
+ readonly createAccount: (payload: Partial<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
308
+ readonly $id: "user";
309
+ readonly icon: "users";
310
+ readonly required: readonly ["name", "roles", "email"];
311
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
312
+ readonly indexes: readonly ["name"];
313
+ readonly properties: {
314
+ readonly name: {
315
+ readonly type: "string";
316
+ };
317
+ readonly given_name: {
318
+ readonly getter: (doc: object) => string | undefined;
319
+ };
320
+ readonly family_name: {
321
+ readonly getter: (doc: object) => string | undefined;
322
+ };
323
+ readonly active: {
324
+ readonly type: "boolean";
325
+ };
326
+ readonly roles: {
327
+ readonly type: "array";
328
+ readonly items: {
329
+ readonly type: "string";
330
+ };
331
+ readonly uniqueItems: true;
332
+ readonly minItems: 1;
333
+ };
334
+ readonly email: {
335
+ readonly type: "string";
336
+ readonly inputType: "email";
337
+ readonly unique: true;
338
+ };
339
+ readonly password: {
340
+ readonly type: "string";
341
+ readonly inputType: "password";
342
+ readonly hidden: true;
343
+ };
344
+ readonly phone_number: {
345
+ readonly type: "string";
346
+ readonly mask: "(##) #####-####";
347
+ };
348
+ readonly picture_file: {
349
+ readonly $ref: "file";
350
+ readonly accept: readonly ["image/*"];
351
+ };
352
+ readonly picture: {
353
+ readonly getter: (doc: object) => Promise<string> | undefined;
354
+ };
355
+ readonly group: {
356
+ readonly type: "string";
357
+ };
358
+ readonly self_registered: {
359
+ readonly type: "boolean";
360
+ readonly readOnly: true;
361
+ };
362
+ readonly updated_at: {
363
+ readonly type: "string";
364
+ readonly format: "date-time";
365
+ };
366
+ };
367
+ readonly presets: readonly ["crud", "duplicate"];
368
+ readonly layout: {
369
+ readonly name: "grid";
370
+ readonly options: {
371
+ readonly title: "name";
372
+ readonly badge: "roles";
373
+ readonly picture: "picture_file";
374
+ readonly information: "email";
375
+ readonly active: "active";
376
+ };
377
+ };
378
+ readonly individualActions: {
379
+ readonly changePassword: {
380
+ readonly label: "change_password";
381
+ readonly icon: "key";
382
+ readonly translate: true;
383
+ readonly route: {
384
+ readonly name: "/dashboard/user/changepass";
385
+ readonly fetchItem: true;
386
+ };
387
+ };
388
+ readonly copyActivationLink: {
389
+ readonly label: "copy_activation_link";
390
+ readonly icon: "link";
391
+ readonly translate: true;
392
+ };
393
+ };
394
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
395
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
396
+ readonly tableMeta: readonly ["email"];
397
+ readonly formLayout: {
398
+ readonly fields: {
399
+ readonly given_name: {
400
+ readonly span: 3;
401
+ };
402
+ readonly family_name: {
403
+ readonly span: 3;
404
+ };
405
+ };
406
+ };
407
+ }>>> & Record<string, unknown>, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").Result.Error<{
319
408
  readonly code: import("./createAccount.js").CreateAccountError;
320
409
  } & {
321
410
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
@@ -428,7 +517,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
428
517
  readonly getInfo: (payload: {
429
518
  userId: string;
430
519
  token: string;
431
- }, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
520
+ }, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").Result.Error<{
432
521
  readonly code: import("./getInfo.js").ActivationError.InvalidLink;
433
522
  } & {
434
523
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
@@ -448,7 +537,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
448
537
  readonly email: string;
449
538
  };
450
539
  }>;
451
- readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<typeof description>) => Promise<{
540
+ readonly getCurrentUser: (payload: undefined, context: Omit<Context, "token">) => Promise<{
452
541
  readonly _tag: "Result";
453
542
  readonly error: undefined;
454
543
  readonly result: {
@@ -565,7 +654,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
565
654
  }>;
566
655
  readonly getActivationLink: (payload: {
567
656
  userId: import("@aeriajs/core").ObjectId | string;
568
- }, context: import("@aeriajs/types").Context) => Promise<{
657
+ }, context: Omit<Context, "token">) => Promise<{
569
658
  readonly _tag: "Error";
570
659
  readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
571
660
  readonly httpStatus: {
@@ -40,7 +40,7 @@ const exposedFunctions = {
40
40
  };
41
41
  exports.user = (0, core_1.defineCollection)({
42
42
  description: description_js_1.description,
43
- functions,
43
+ functions: functions,
44
44
  });
45
45
  Object.assign(exports.user, {
46
46
  exposedFunctions,
@@ -22,8 +22,8 @@ declare const Payload: Partial<{} & Omit<Readonly<import("@aeriajs/types").Filte
22
22
  };
23
23
  }>> & {
24
24
  roles: boolean;
25
- revalidate: boolean;
26
25
  collections: string[];
26
+ revalidate: boolean;
27
27
  noSerialize: boolean;
28
28
  router: boolean;
29
29
  }, never>>;
package/dist/index.d.ts CHANGED
@@ -667,9 +667,9 @@ export declare const collections: {
667
667
  };
668
668
  };
669
669
  functions: {
670
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<import("@aeriajs/types").SchemaWithId<TContext["description"]>>>;
671
- readonly getAll: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>> | undefined, context: TContext, options?: import("@aeriajs/core").GetAllOptions) => Promise<import("@aeriajs/types").GetAllReturnType<import("@aeriajs/types").SchemaWithId<TContext["description"]>>>;
672
- readonly remove: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext, options?: import("@aeriajs/core").RemoveOptions) => Promise<{
670
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").GetReturnType<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>>;
671
+ readonly getAll: (payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").GetAllReturnType<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>>;
672
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<{
673
673
  readonly _tag: "Result";
674
674
  readonly error: undefined;
675
675
  readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
@@ -682,7 +682,7 @@ export declare const collections: {
682
682
  } & {
683
683
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
684
684
  }>>;
685
- readonly upload: <TContext extends import("@aeriajs/types").Context>(_props: unknown, context: TContext) => Promise<import("@aeriajs/types").Result.Error<{
685
+ readonly upload: (payload: unknown, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").Result.Error<{
686
686
  readonly code: import("@aeriajs/types").ACError.MalformedInput;
687
687
  readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
688
688
  } & {
@@ -694,7 +694,7 @@ export declare const collections: {
694
694
  readonly tempId: any;
695
695
  };
696
696
  }>;
697
- readonly removeFile: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext, options?: import("@aeriajs/core").RemoveFileOptions) => Promise<{
697
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<{
698
698
  readonly _tag: "Result";
699
699
  readonly error: undefined;
700
700
  readonly result: any;
@@ -703,14 +703,14 @@ export declare const collections: {
703
703
  } & {
704
704
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
705
705
  }>>;
706
- readonly insert: <TDescription extends import("@aeriajs/types").Description, TInsertPayload extends import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TDescription>>>(payload: NoInfer<TInsertPayload>, context: import("@aeriajs/types").Context<TDescription>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<TDescription>>>;
707
- readonly authenticate: (props: {
706
+ readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>>, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>>;
707
+ readonly authenticate: (payload: {
708
708
  email: string;
709
709
  password: string;
710
710
  } | {
711
711
  token?: import("@aeriajs/types").TokenRecipient;
712
712
  revalidate: true;
713
- }, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
713
+ }, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").Result.Error<{
714
714
  readonly code: import("@aeriajs/types").ACError.AuthorizationError;
715
715
  } & {
716
716
  httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
@@ -745,17 +745,7 @@ export declare const collections: {
745
745
  }>>;
746
746
  readonly activate: (payload: {
747
747
  password: string;
748
- }, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description> & {
749
- request: {
750
- query: {
751
- u?: string;
752
- t?: string;
753
- };
754
- payload: {
755
- password?: string;
756
- };
757
- };
758
- }) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
748
+ }, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
759
749
  readonly code: import("./collections/user/activate.js").ActivationError.InvalidLink;
760
750
  } & {
761
751
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
@@ -778,7 +768,107 @@ export declare const collections: {
778
768
  readonly userId: import("mongodb").ObjectId;
779
769
  };
780
770
  } | undefined>;
781
- readonly createAccount: (payload: Partial<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof import("./collections/user/description.js").description>>> & Record<string, unknown>, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
771
+ readonly createAccount: (payload: Partial<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
772
+ readonly $id: "user";
773
+ readonly icon: "users";
774
+ readonly required: readonly ["name", "roles", "email"];
775
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
776
+ readonly indexes: readonly ["name"];
777
+ readonly properties: {
778
+ readonly name: {
779
+ readonly type: "string";
780
+ };
781
+ readonly given_name: {
782
+ readonly getter: (doc: object) => string | undefined;
783
+ };
784
+ readonly family_name: {
785
+ readonly getter: (doc: object) => string | undefined;
786
+ };
787
+ readonly active: {
788
+ readonly type: "boolean";
789
+ };
790
+ readonly roles: {
791
+ readonly type: "array";
792
+ readonly items: {
793
+ readonly type: "string";
794
+ };
795
+ readonly uniqueItems: true;
796
+ readonly minItems: 1;
797
+ };
798
+ readonly email: {
799
+ readonly type: "string";
800
+ readonly inputType: "email";
801
+ readonly unique: true;
802
+ };
803
+ readonly password: {
804
+ readonly type: "string";
805
+ readonly inputType: "password";
806
+ readonly hidden: true;
807
+ };
808
+ readonly phone_number: {
809
+ readonly type: "string";
810
+ readonly mask: "(##) #####-####";
811
+ };
812
+ readonly picture_file: {
813
+ readonly $ref: "file";
814
+ readonly accept: readonly ["image/*"];
815
+ };
816
+ readonly picture: {
817
+ readonly getter: (doc: object) => Promise<string> | undefined;
818
+ };
819
+ readonly group: {
820
+ readonly type: "string";
821
+ };
822
+ readonly self_registered: {
823
+ readonly type: "boolean";
824
+ readonly readOnly: true;
825
+ };
826
+ readonly updated_at: {
827
+ readonly type: "string";
828
+ readonly format: "date-time";
829
+ };
830
+ };
831
+ readonly presets: readonly ["crud", "duplicate"];
832
+ readonly layout: {
833
+ readonly name: "grid";
834
+ readonly options: {
835
+ readonly title: "name";
836
+ readonly badge: "roles";
837
+ readonly picture: "picture_file";
838
+ readonly information: "email";
839
+ readonly active: "active";
840
+ };
841
+ };
842
+ readonly individualActions: {
843
+ readonly changePassword: {
844
+ readonly label: "change_password";
845
+ readonly icon: "key";
846
+ readonly translate: true;
847
+ readonly route: {
848
+ readonly name: "/dashboard/user/changepass";
849
+ readonly fetchItem: true;
850
+ };
851
+ };
852
+ readonly copyActivationLink: {
853
+ readonly label: "copy_activation_link";
854
+ readonly icon: "link";
855
+ readonly translate: true;
856
+ };
857
+ };
858
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
859
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
860
+ readonly tableMeta: readonly ["email"];
861
+ readonly formLayout: {
862
+ readonly fields: {
863
+ readonly given_name: {
864
+ readonly span: 3;
865
+ };
866
+ readonly family_name: {
867
+ readonly span: 3;
868
+ };
869
+ };
870
+ };
871
+ }>>> & Record<string, unknown>, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").Result.Error<{
782
872
  readonly code: import("./collections/user/createAccount.js").CreateAccountError;
783
873
  } & {
784
874
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
@@ -891,7 +981,7 @@ export declare const collections: {
891
981
  readonly getInfo: (payload: {
892
982
  userId: string;
893
983
  token: string;
894
- }, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
984
+ }, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").Result.Error<{
895
985
  readonly code: import("./collections/user/getInfo.js").ActivationError.InvalidLink;
896
986
  } & {
897
987
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
@@ -911,7 +1001,7 @@ export declare const collections: {
911
1001
  readonly email: string;
912
1002
  };
913
1003
  }>;
914
- readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<{
1004
+ readonly getCurrentUser: (payload: undefined, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<{
915
1005
  readonly _tag: "Result";
916
1006
  readonly error: undefined;
917
1007
  readonly result: {
@@ -1028,7 +1118,7 @@ export declare const collections: {
1028
1118
  }>;
1029
1119
  readonly getActivationLink: (payload: {
1030
1120
  userId: import("mongodb").ObjectId | string;
1031
- }, context: import("@aeriajs/types").Context) => Promise<{
1121
+ }, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<{
1032
1122
  readonly _tag: "Error";
1033
1123
  readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
1034
1124
  readonly httpStatus: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.213",
3
+ "version": "0.0.215",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -45,7 +45,7 @@
45
45
  "mongodb": "^6.5.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@aeriajs/core": "^0.0.213",
48
+ "@aeriajs/core": "^0.0.215",
49
49
  "@aeriajs/common": "^0.0.125",
50
50
  "@aeriajs/entrypoint": "^0.0.128",
51
51
  "@aeriajs/types": "^0.0.107",