@aeriajs/builtins 0.0.14 → 0.0.15

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,4 +1,4 @@
1
- export declare const user: {
1
+ export declare const user: Omit<import("@aeriajs/types").Collection<{
2
2
  description: {
3
3
  readonly $id: "user";
4
4
  readonly required: readonly ["name", "roles", "email"];
@@ -99,7 +99,10 @@ export declare const user: {
99
99
  };
100
100
  };
101
101
  functions: {
102
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
102
+ readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
103
+ readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
104
+ 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>;
105
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").Context<{
103
106
  readonly $id: "user";
104
107
  readonly required: readonly ["name", "roles", "email"];
105
108
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -197,7 +200,117 @@ export declare const user: {
197
200
  };
198
201
  };
199
202
  };
200
- }>>, context: import("@aeriajs/types").Context<{
203
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
204
+ tempId: any;
205
+ }>;
206
+ readonly removeFile: <TContext_3 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_3) => Promise<any>;
207
+ readonly insert: (payload: {
208
+ what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
209
+ readonly $id: "user";
210
+ readonly required: readonly ["name", "roles", "email"];
211
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
212
+ readonly indexes: readonly ["name"];
213
+ readonly freshItem: {
214
+ readonly active: true;
215
+ };
216
+ readonly properties: {
217
+ readonly name: {
218
+ readonly type: "string";
219
+ };
220
+ readonly given_name: {
221
+ readonly getter: (document: any) => string;
222
+ };
223
+ readonly family_name: {
224
+ readonly getter: (document: any) => string;
225
+ };
226
+ readonly active: {
227
+ readonly type: "boolean";
228
+ };
229
+ readonly roles: {
230
+ readonly type: "array";
231
+ readonly items: {
232
+ readonly type: "string";
233
+ };
234
+ readonly uniqueItems: true;
235
+ };
236
+ readonly email: {
237
+ readonly type: "string";
238
+ readonly inputType: "email";
239
+ readonly unique: true;
240
+ };
241
+ readonly password: {
242
+ readonly type: "string";
243
+ readonly inputType: "password";
244
+ readonly hidden: true;
245
+ };
246
+ readonly phone_number: {
247
+ readonly type: "string";
248
+ readonly mask: "(##) #####-####";
249
+ };
250
+ readonly picture_file: {
251
+ readonly $ref: "file";
252
+ readonly accept: readonly ["image/*"];
253
+ };
254
+ readonly picture: {
255
+ readonly getter: (value: any) => any;
256
+ };
257
+ readonly group: {
258
+ readonly type: "string";
259
+ };
260
+ readonly self_registered: {
261
+ readonly type: "boolean";
262
+ readonly readOnly: true;
263
+ };
264
+ readonly updated_at: {
265
+ readonly type: "string";
266
+ readonly format: "date-time";
267
+ };
268
+ };
269
+ readonly presets: readonly ["crud", "view", "duplicate"];
270
+ readonly layout: {
271
+ readonly name: "grid";
272
+ readonly options: {
273
+ readonly title: "name";
274
+ readonly badge: "roles";
275
+ readonly picture: "picture_file";
276
+ readonly information: "email";
277
+ readonly active: "active";
278
+ readonly translateBadge: true;
279
+ };
280
+ };
281
+ readonly individualActions: {
282
+ readonly 'ui:spawnEdit': {
283
+ readonly name: "Editar";
284
+ readonly icon: "pencil";
285
+ };
286
+ readonly 'route:/dashboard/user/changepass': {
287
+ readonly name: "Mudar senha";
288
+ readonly icon: "key";
289
+ readonly fetchItem: true;
290
+ };
291
+ };
292
+ readonly icon: "users";
293
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
294
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
295
+ readonly tableMeta: readonly ["email"];
296
+ readonly formLayout: {
297
+ readonly fields: {
298
+ readonly given_name: {
299
+ readonly span: 3;
300
+ };
301
+ readonly family_name: {
302
+ readonly span: 3;
303
+ };
304
+ };
305
+ };
306
+ }>>, "roles">;
307
+ }, context: import("@aeriajs/types").Context) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
308
+ readonly authenticate: (props: {
309
+ email: string;
310
+ password: string;
311
+ } | {
312
+ revalidate: true;
313
+ }, context: import("@aeriajs/types").Context<{
201
314
  readonly $id: "user";
202
315
  readonly required: readonly ["name", "roles", "email"];
203
316
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -295,7 +408,116 @@ export declare const user: {
295
408
  };
296
409
  };
297
410
  };
298
- }, any>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
411
+ }>) => Promise<import("@aeriajs/types").Right<{
412
+ user: Pick<import("@aeriajs/types").SchemaWithId<{
413
+ readonly $id: "user";
414
+ readonly required: readonly ["name", "roles", "email"];
415
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
416
+ readonly indexes: readonly ["name"];
417
+ readonly freshItem: {
418
+ readonly active: true;
419
+ };
420
+ readonly properties: {
421
+ readonly name: {
422
+ readonly type: "string";
423
+ };
424
+ readonly given_name: {
425
+ readonly getter: (document: any) => string;
426
+ };
427
+ readonly family_name: {
428
+ readonly getter: (document: any) => string;
429
+ };
430
+ readonly active: {
431
+ readonly type: "boolean";
432
+ };
433
+ readonly roles: {
434
+ readonly type: "array";
435
+ readonly items: {
436
+ readonly type: "string";
437
+ };
438
+ readonly uniqueItems: true;
439
+ };
440
+ readonly email: {
441
+ readonly type: "string";
442
+ readonly inputType: "email";
443
+ readonly unique: true;
444
+ };
445
+ readonly password: {
446
+ readonly type: "string";
447
+ readonly inputType: "password";
448
+ readonly hidden: true;
449
+ };
450
+ readonly phone_number: {
451
+ readonly type: "string";
452
+ readonly mask: "(##) #####-####";
453
+ };
454
+ readonly picture_file: {
455
+ readonly $ref: "file";
456
+ readonly accept: readonly ["image/*"];
457
+ };
458
+ readonly picture: {
459
+ readonly getter: (value: any) => any;
460
+ };
461
+ readonly group: {
462
+ readonly type: "string";
463
+ };
464
+ readonly self_registered: {
465
+ readonly type: "boolean";
466
+ readonly readOnly: true;
467
+ };
468
+ readonly updated_at: {
469
+ readonly type: "string";
470
+ readonly format: "date-time";
471
+ };
472
+ };
473
+ readonly presets: readonly ["crud", "view", "duplicate"];
474
+ readonly layout: {
475
+ readonly name: "grid";
476
+ readonly options: {
477
+ readonly title: "name";
478
+ readonly badge: "roles";
479
+ readonly picture: "picture_file";
480
+ readonly information: "email";
481
+ readonly active: "active";
482
+ readonly translateBadge: true;
483
+ };
484
+ };
485
+ readonly individualActions: {
486
+ readonly 'ui:spawnEdit': {
487
+ readonly name: "Editar";
488
+ readonly icon: "pencil";
489
+ };
490
+ readonly 'route:/dashboard/user/changepass': {
491
+ readonly name: "Mudar senha";
492
+ readonly icon: "key";
493
+ readonly fetchItem: true;
494
+ };
495
+ };
496
+ readonly icon: "users";
497
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
498
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
499
+ readonly tableMeta: readonly ["email"];
500
+ readonly formLayout: {
501
+ readonly fields: {
502
+ readonly given_name: {
503
+ readonly span: 3;
504
+ };
505
+ readonly family_name: {
506
+ readonly span: 3;
507
+ };
508
+ };
509
+ };
510
+ }>, "name" | "roles" | "email" | "active"> & {
511
+ _id: import("bson").ObjectId | null;
512
+ };
513
+ token: {
514
+ type: "bearer";
515
+ content: string;
516
+ };
517
+ }> | import("@aeriajs/types").Left<import("./authenticate.js").AuthenticationErrors.Unauthenticated> | import("@aeriajs/types").Left<import("./authenticate.js").AuthenticationErrors.InvalidCredentials> | import("@aeriajs/types").Left<import("./authenticate.js").AuthenticationErrors.InactiveUser>>;
518
+ readonly activate: (payload: {
519
+ password: string;
520
+ }, context: import("@aeriajs/types").Context<{
299
521
  readonly $id: "user";
300
522
  readonly required: readonly ["name", "roles", "email"];
301
523
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -351,50 +573,285 @@ export declare const user: {
351
573
  readonly type: "boolean";
352
574
  readonly readOnly: true;
353
575
  };
354
- readonly updated_at: {
355
- readonly type: "string";
356
- readonly format: "date-time";
576
+ readonly updated_at: {
577
+ readonly type: "string";
578
+ readonly format: "date-time";
579
+ };
580
+ };
581
+ readonly presets: readonly ["crud", "view", "duplicate"];
582
+ readonly layout: {
583
+ readonly name: "grid";
584
+ readonly options: {
585
+ readonly title: "name";
586
+ readonly badge: "roles";
587
+ readonly picture: "picture_file";
588
+ readonly information: "email";
589
+ readonly active: "active";
590
+ readonly translateBadge: true;
591
+ };
592
+ };
593
+ readonly individualActions: {
594
+ readonly 'ui:spawnEdit': {
595
+ readonly name: "Editar";
596
+ readonly icon: "pencil";
597
+ };
598
+ readonly 'route:/dashboard/user/changepass': {
599
+ readonly name: "Mudar senha";
600
+ readonly icon: "key";
601
+ readonly fetchItem: true;
602
+ };
603
+ };
604
+ readonly icon: "users";
605
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
606
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
607
+ readonly tableMeta: readonly ["email"];
608
+ readonly formLayout: {
609
+ readonly fields: {
610
+ readonly given_name: {
611
+ readonly span: 3;
612
+ };
613
+ readonly family_name: {
614
+ readonly span: 3;
615
+ };
616
+ };
617
+ };
618
+ }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
619
+ readonly createAccount: (payload: Omit<Pick<{
620
+ picture_file: import("@aeriajs/types").SchemaWithId<{
621
+ readonly $id: "file";
622
+ readonly owned: "always";
623
+ readonly presets: readonly ["owned"];
624
+ readonly indexes: readonly ["filename", "link", "mime"];
625
+ readonly properties: {
626
+ readonly mime: {
627
+ readonly type: "string";
628
+ };
629
+ readonly size: {
630
+ readonly type: "number";
631
+ };
632
+ readonly last_modified: {
633
+ readonly type: "string";
634
+ readonly format: "date-time";
635
+ };
636
+ readonly filename: {
637
+ readonly type: "string";
638
+ };
639
+ readonly absolute_path: {
640
+ readonly type: "string";
641
+ };
642
+ readonly relative_path: {
643
+ readonly type: "string";
644
+ };
645
+ readonly immutable: {
646
+ readonly type: "boolean";
647
+ };
648
+ readonly link: {
649
+ readonly getter: (value: any) => Promise<string>;
650
+ };
651
+ readonly download_link: {
652
+ readonly getter: (value: any) => Promise<string>;
653
+ };
654
+ };
655
+ readonly actions: {
656
+ readonly deleteAll: {
657
+ readonly name: "Remover";
658
+ readonly ask: true;
659
+ readonly selection: true;
660
+ };
661
+ };
662
+ readonly individualActions: {
663
+ readonly remove: {
664
+ readonly name: "Remover";
665
+ readonly icon: "trash";
666
+ readonly ask: true;
667
+ };
668
+ };
669
+ }>;
670
+ } & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
671
+ readonly name: {
672
+ readonly type: "string";
673
+ };
674
+ readonly given_name: {
675
+ readonly getter: (document: any) => string;
676
+ };
677
+ readonly family_name: {
678
+ readonly getter: (document: any) => string;
679
+ };
680
+ readonly active: {
681
+ readonly type: "boolean";
682
+ };
683
+ readonly roles: {
684
+ readonly type: "array";
685
+ readonly items: {
686
+ readonly type: "string";
687
+ };
688
+ readonly uniqueItems: true;
689
+ };
690
+ readonly email: {
691
+ readonly type: "string";
692
+ readonly inputType: "email";
693
+ readonly unique: true;
694
+ };
695
+ readonly password: {
696
+ readonly type: "string";
697
+ readonly inputType: "password";
698
+ readonly hidden: true;
699
+ };
700
+ readonly phone_number: {
701
+ readonly type: "string";
702
+ readonly mask: "(##) #####-####";
703
+ };
704
+ readonly picture_file: {
705
+ readonly $ref: "file";
706
+ readonly accept: readonly ["image/*"];
707
+ };
708
+ readonly picture: {
709
+ readonly getter: (value: any) => any;
710
+ };
711
+ readonly group: {
712
+ readonly type: "string";
713
+ };
714
+ readonly self_registered: {
715
+ readonly type: "boolean";
716
+ readonly readOnly: true;
717
+ };
718
+ readonly updated_at: {
719
+ readonly type: "string";
720
+ readonly format: "date-time";
721
+ };
722
+ }>> & {
723
+ name: string;
724
+ password: string;
725
+ updated_at: Date;
726
+ roles: string[];
727
+ email: string;
728
+ active: boolean;
729
+ phone_number: string;
730
+ picture_file: never;
731
+ given_name: string;
732
+ family_name: string;
733
+ picture: any;
734
+ group: string;
735
+ }, "picture_file">, "name" | "roles" | "email"> & Partial<{
736
+ picture_file: import("@aeriajs/types").SchemaWithId<{
737
+ readonly $id: "file";
738
+ readonly owned: "always";
739
+ readonly presets: readonly ["owned"];
740
+ readonly indexes: readonly ["filename", "link", "mime"];
741
+ readonly properties: {
742
+ readonly mime: {
743
+ readonly type: "string";
744
+ };
745
+ readonly size: {
746
+ readonly type: "number";
747
+ };
748
+ readonly last_modified: {
749
+ readonly type: "string";
750
+ readonly format: "date-time";
751
+ };
752
+ readonly filename: {
753
+ readonly type: "string";
754
+ };
755
+ readonly absolute_path: {
756
+ readonly type: "string";
757
+ };
758
+ readonly relative_path: {
759
+ readonly type: "string";
760
+ };
761
+ readonly immutable: {
762
+ readonly type: "boolean";
763
+ };
764
+ readonly link: {
765
+ readonly getter: (value: any) => Promise<string>;
766
+ };
767
+ readonly download_link: {
768
+ readonly getter: (value: any) => Promise<string>;
769
+ };
770
+ };
771
+ readonly actions: {
772
+ readonly deleteAll: {
773
+ readonly name: "Remover";
774
+ readonly ask: true;
775
+ readonly selection: true;
776
+ };
777
+ };
778
+ readonly individualActions: {
779
+ readonly remove: {
780
+ readonly name: "Remover";
781
+ readonly icon: "trash";
782
+ readonly ask: true;
783
+ };
357
784
  };
785
+ }>;
786
+ } & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
787
+ readonly name: {
788
+ readonly type: "string";
358
789
  };
359
- readonly presets: readonly ["crud", "view", "duplicate"];
360
- readonly layout: {
361
- readonly name: "grid";
362
- readonly options: {
363
- readonly title: "name";
364
- readonly badge: "roles";
365
- readonly picture: "picture_file";
366
- readonly information: "email";
367
- readonly active: "active";
368
- readonly translateBadge: true;
369
- };
790
+ readonly given_name: {
791
+ readonly getter: (document: any) => string;
370
792
  };
371
- readonly individualActions: {
372
- readonly 'ui:spawnEdit': {
373
- readonly name: "Editar";
374
- readonly icon: "pencil";
375
- };
376
- readonly 'route:/dashboard/user/changepass': {
377
- readonly name: "Mudar senha";
378
- readonly icon: "key";
379
- readonly fetchItem: true;
380
- };
793
+ readonly family_name: {
794
+ readonly getter: (document: any) => string;
381
795
  };
382
- readonly icon: "users";
383
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
384
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
385
- readonly tableMeta: readonly ["email"];
386
- readonly formLayout: {
387
- readonly fields: {
388
- readonly given_name: {
389
- readonly span: 3;
390
- };
391
- readonly family_name: {
392
- readonly span: 3;
393
- };
796
+ readonly active: {
797
+ readonly type: "boolean";
798
+ };
799
+ readonly roles: {
800
+ readonly type: "array";
801
+ readonly items: {
802
+ readonly type: "string";
394
803
  };
804
+ readonly uniqueItems: true;
805
+ };
806
+ readonly email: {
807
+ readonly type: "string";
808
+ readonly inputType: "email";
809
+ readonly unique: true;
395
810
  };
396
- }> | null>;
397
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
811
+ readonly password: {
812
+ readonly type: "string";
813
+ readonly inputType: "password";
814
+ readonly hidden: true;
815
+ };
816
+ readonly phone_number: {
817
+ readonly type: "string";
818
+ readonly mask: "(##) #####-####";
819
+ };
820
+ readonly picture_file: {
821
+ readonly $ref: "file";
822
+ readonly accept: readonly ["image/*"];
823
+ };
824
+ readonly picture: {
825
+ readonly getter: (value: any) => any;
826
+ };
827
+ readonly group: {
828
+ readonly type: "string";
829
+ };
830
+ readonly self_registered: {
831
+ readonly type: "boolean";
832
+ readonly readOnly: true;
833
+ };
834
+ readonly updated_at: {
835
+ readonly type: "string";
836
+ readonly format: "date-time";
837
+ };
838
+ }>> & {
839
+ name: string;
840
+ password: string;
841
+ updated_at: Date;
842
+ roles: string[];
843
+ email: string;
844
+ active: boolean;
845
+ phone_number: string;
846
+ picture_file: never;
847
+ given_name: string;
848
+ family_name: string;
849
+ picture: any;
850
+ group: string;
851
+ }, "picture_file">> & {
852
+ updated_at?: Date | undefined;
853
+ created_at?: Date | undefined;
854
+ }, "roles">, context: import("@aeriajs/types").Context<{
398
855
  readonly $id: "user";
399
856
  readonly required: readonly ["name", "roles", "email"];
400
857
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -492,7 +949,7 @@ export declare const user: {
492
949
  };
493
950
  };
494
951
  };
495
- }, any>, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
952
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
496
953
  readonly $id: "user";
497
954
  readonly required: readonly ["name", "roles", "email"];
498
955
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -590,8 +1047,11 @@ export declare const user: {
590
1047
  };
591
1048
  };
592
1049
  };
593
- }>[]>;
594
- readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
1050
+ }>>, "_id">>>>;
1051
+ readonly getInfo: (payload: {
1052
+ userId: string;
1053
+ token: string;
1054
+ }, context: import("@aeriajs/types").Context<{
595
1055
  readonly $id: "user";
596
1056
  readonly required: readonly ["name", "roles", "email"];
597
1057
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -689,109 +1149,226 @@ export declare const user: {
689
1149
  };
690
1150
  };
691
1151
  };
692
- }>>, context: import("@aeriajs/types").Context<{
693
- readonly $id: "user";
694
- readonly required: readonly ["name", "roles", "email"];
695
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
696
- readonly indexes: readonly ["name"];
697
- readonly freshItem: {
698
- readonly active: true;
1152
+ }>) => Promise<import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
1153
+ readonly name: string;
1154
+ readonly email: string;
1155
+ }>>;
1156
+ readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
1157
+ };
1158
+ accessControl: {
1159
+ roles: {
1160
+ root: {
1161
+ grantEverything: true;
699
1162
  };
700
- readonly properties: {
701
- readonly name: {
702
- readonly type: "string";
703
- };
704
- readonly given_name: {
705
- readonly getter: (document: any) => string;
706
- };
707
- readonly family_name: {
708
- readonly getter: (document: any) => string;
709
- };
710
- readonly active: {
711
- readonly type: "boolean";
712
- };
713
- readonly roles: {
714
- readonly type: "array";
715
- readonly items: {
716
- readonly type: "string";
717
- };
718
- readonly uniqueItems: true;
719
- };
720
- readonly email: {
721
- readonly type: "string";
722
- readonly inputType: "email";
723
- readonly unique: true;
724
- };
725
- readonly password: {
726
- readonly type: "string";
727
- readonly inputType: "password";
728
- readonly hidden: true;
729
- };
730
- readonly phone_number: {
1163
+ guest: {
1164
+ grant: string[];
1165
+ };
1166
+ };
1167
+ };
1168
+ }>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
1169
+ item: import("@aeriajs/types").SchemaWithId<{
1170
+ readonly $id: "user";
1171
+ readonly required: readonly ["name", "roles", "email"];
1172
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1173
+ readonly indexes: readonly ["name"];
1174
+ readonly freshItem: {
1175
+ readonly active: true;
1176
+ };
1177
+ readonly properties: {
1178
+ readonly name: {
1179
+ readonly type: "string";
1180
+ };
1181
+ readonly given_name: {
1182
+ readonly getter: (document: any) => string;
1183
+ };
1184
+ readonly family_name: {
1185
+ readonly getter: (document: any) => string;
1186
+ };
1187
+ readonly active: {
1188
+ readonly type: "boolean";
1189
+ };
1190
+ readonly roles: {
1191
+ readonly type: "array";
1192
+ readonly items: {
731
1193
  readonly type: "string";
732
- readonly mask: "(##) #####-####";
733
- };
734
- readonly picture_file: {
735
- readonly $ref: "file";
736
- readonly accept: readonly ["image/*"];
737
- };
738
- readonly picture: {
739
- readonly getter: (value: any) => any;
740
1194
  };
741
- readonly group: {
742
- readonly type: "string";
1195
+ readonly uniqueItems: true;
1196
+ };
1197
+ readonly email: {
1198
+ readonly type: "string";
1199
+ readonly inputType: "email";
1200
+ readonly unique: true;
1201
+ };
1202
+ readonly password: {
1203
+ readonly type: "string";
1204
+ readonly inputType: "password";
1205
+ readonly hidden: true;
1206
+ };
1207
+ readonly phone_number: {
1208
+ readonly type: "string";
1209
+ readonly mask: "(##) #####-####";
1210
+ };
1211
+ readonly picture_file: {
1212
+ readonly $ref: "file";
1213
+ readonly accept: readonly ["image/*"];
1214
+ };
1215
+ readonly picture: {
1216
+ readonly getter: (value: any) => any;
1217
+ };
1218
+ readonly group: {
1219
+ readonly type: "string";
1220
+ };
1221
+ readonly self_registered: {
1222
+ readonly type: "boolean";
1223
+ readonly readOnly: true;
1224
+ };
1225
+ readonly updated_at: {
1226
+ readonly type: "string";
1227
+ readonly format: "date-time";
1228
+ };
1229
+ };
1230
+ readonly presets: readonly ["crud", "view", "duplicate"];
1231
+ readonly layout: {
1232
+ readonly name: "grid";
1233
+ readonly options: {
1234
+ readonly title: "name";
1235
+ readonly badge: "roles";
1236
+ readonly picture: "picture_file";
1237
+ readonly information: "email";
1238
+ readonly active: "active";
1239
+ readonly translateBadge: true;
1240
+ };
1241
+ };
1242
+ readonly individualActions: {
1243
+ readonly 'ui:spawnEdit': {
1244
+ readonly name: "Editar";
1245
+ readonly icon: "pencil";
1246
+ };
1247
+ readonly 'route:/dashboard/user/changepass': {
1248
+ readonly name: "Mudar senha";
1249
+ readonly icon: "key";
1250
+ readonly fetchItem: true;
1251
+ };
1252
+ };
1253
+ readonly icon: "users";
1254
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1255
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1256
+ readonly tableMeta: readonly ["email"];
1257
+ readonly formLayout: {
1258
+ readonly fields: {
1259
+ readonly given_name: {
1260
+ readonly span: 3;
743
1261
  };
744
- readonly self_registered: {
745
- readonly type: "boolean";
746
- readonly readOnly: true;
1262
+ readonly family_name: {
1263
+ readonly span: 3;
747
1264
  };
748
- readonly updated_at: {
1265
+ };
1266
+ };
1267
+ }>;
1268
+ description: {
1269
+ readonly $id: "user";
1270
+ readonly required: readonly ["name", "roles", "email"];
1271
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1272
+ readonly indexes: readonly ["name"];
1273
+ readonly freshItem: {
1274
+ readonly active: true;
1275
+ };
1276
+ readonly properties: {
1277
+ readonly name: {
1278
+ readonly type: "string";
1279
+ };
1280
+ readonly given_name: {
1281
+ readonly getter: (document: any) => string;
1282
+ };
1283
+ readonly family_name: {
1284
+ readonly getter: (document: any) => string;
1285
+ };
1286
+ readonly active: {
1287
+ readonly type: "boolean";
1288
+ };
1289
+ readonly roles: {
1290
+ readonly type: "array";
1291
+ readonly items: {
749
1292
  readonly type: "string";
750
- readonly format: "date-time";
751
1293
  };
1294
+ readonly uniqueItems: true;
752
1295
  };
753
- readonly presets: readonly ["crud", "view", "duplicate"];
754
- readonly layout: {
755
- readonly name: "grid";
756
- readonly options: {
757
- readonly title: "name";
758
- readonly badge: "roles";
759
- readonly picture: "picture_file";
760
- readonly information: "email";
761
- readonly active: "active";
762
- readonly translateBadge: true;
763
- };
1296
+ readonly email: {
1297
+ readonly type: "string";
1298
+ readonly inputType: "email";
1299
+ readonly unique: true;
764
1300
  };
765
- readonly individualActions: {
766
- readonly 'ui:spawnEdit': {
767
- readonly name: "Editar";
768
- readonly icon: "pencil";
769
- };
770
- readonly 'route:/dashboard/user/changepass': {
771
- readonly name: "Mudar senha";
772
- readonly icon: "key";
773
- readonly fetchItem: true;
774
- };
1301
+ readonly password: {
1302
+ readonly type: "string";
1303
+ readonly inputType: "password";
1304
+ readonly hidden: true;
775
1305
  };
776
- readonly icon: "users";
777
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
778
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
779
- readonly tableMeta: readonly ["email"];
780
- readonly formLayout: {
781
- readonly fields: {
782
- readonly given_name: {
783
- readonly span: 3;
784
- };
785
- readonly family_name: {
786
- readonly span: 3;
787
- };
1306
+ readonly phone_number: {
1307
+ readonly type: "string";
1308
+ readonly mask: "(##) #####-####";
1309
+ };
1310
+ readonly picture_file: {
1311
+ readonly $ref: "file";
1312
+ readonly accept: readonly ["image/*"];
1313
+ };
1314
+ readonly picture: {
1315
+ readonly getter: (value: any) => any;
1316
+ };
1317
+ readonly group: {
1318
+ readonly type: "string";
1319
+ };
1320
+ readonly self_registered: {
1321
+ readonly type: "boolean";
1322
+ readonly readOnly: true;
1323
+ };
1324
+ readonly updated_at: {
1325
+ readonly type: "string";
1326
+ readonly format: "date-time";
1327
+ };
1328
+ };
1329
+ readonly presets: readonly ["crud", "view", "duplicate"];
1330
+ readonly layout: {
1331
+ readonly name: "grid";
1332
+ readonly options: {
1333
+ readonly title: "name";
1334
+ readonly badge: "roles";
1335
+ readonly picture: "picture_file";
1336
+ readonly information: "email";
1337
+ readonly active: "active";
1338
+ readonly translateBadge: true;
1339
+ };
1340
+ };
1341
+ readonly individualActions: {
1342
+ readonly 'ui:spawnEdit': {
1343
+ readonly name: "Editar";
1344
+ readonly icon: "pencil";
1345
+ };
1346
+ readonly 'route:/dashboard/user/changepass': {
1347
+ readonly name: "Mudar senha";
1348
+ readonly icon: "key";
1349
+ readonly fetchItem: true;
1350
+ };
1351
+ };
1352
+ readonly icon: "users";
1353
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1354
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1355
+ readonly tableMeta: readonly ["email"];
1356
+ readonly formLayout: {
1357
+ readonly fields: {
1358
+ readonly given_name: {
1359
+ readonly span: 3;
1360
+ };
1361
+ readonly family_name: {
1362
+ readonly span: 3;
788
1363
  };
789
1364
  };
790
- }, any>) => Promise<any>;
791
- readonly upload: <TContext extends import("@aeriajs/types").Context>(_props: unknown, context: TContext) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
792
- tempId: any;
793
- }>;
794
- readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context<{
1365
+ };
1366
+ };
1367
+ functions: {
1368
+ readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
1369
+ readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
1370
+ 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>;
1371
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").Context<{
795
1372
  readonly $id: "user";
796
1373
  readonly required: readonly ["name", "roles", "email"];
797
1374
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -889,7 +1466,10 @@ export declare const user: {
889
1466
  };
890
1467
  };
891
1468
  };
892
- }, any>) => Promise<any>;
1469
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
1470
+ tempId: any;
1471
+ }>;
1472
+ readonly removeFile: <TContext_3 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_3) => Promise<any>;
893
1473
  readonly insert: (payload: {
894
1474
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
895
1475
  readonly $id: "user";
@@ -1521,23 +2101,121 @@ export declare const user: {
1521
2101
  readonly type: "string";
1522
2102
  readonly format: "date-time";
1523
2103
  };
1524
- }>> & {
1525
- name: string;
1526
- password: string;
1527
- updated_at: Date;
1528
- roles: string[];
1529
- email: string;
1530
- active: boolean;
1531
- phone_number: string;
1532
- picture_file: never;
1533
- given_name: string;
1534
- family_name: string;
1535
- picture: any;
1536
- group: string;
1537
- }, "picture_file">> & {
1538
- updated_at?: Date | undefined;
1539
- created_at?: Date | undefined;
1540
- }, "roles">, context: import("@aeriajs/types").Context<{
2104
+ }>> & {
2105
+ name: string;
2106
+ password: string;
2107
+ updated_at: Date;
2108
+ roles: string[];
2109
+ email: string;
2110
+ active: boolean;
2111
+ phone_number: string;
2112
+ picture_file: never;
2113
+ given_name: string;
2114
+ family_name: string;
2115
+ picture: any;
2116
+ group: string;
2117
+ }, "picture_file">> & {
2118
+ updated_at?: Date | undefined;
2119
+ created_at?: Date | undefined;
2120
+ }, "roles">, context: import("@aeriajs/types").Context<{
2121
+ readonly $id: "user";
2122
+ readonly required: readonly ["name", "roles", "email"];
2123
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2124
+ readonly indexes: readonly ["name"];
2125
+ readonly freshItem: {
2126
+ readonly active: true;
2127
+ };
2128
+ readonly properties: {
2129
+ readonly name: {
2130
+ readonly type: "string";
2131
+ };
2132
+ readonly given_name: {
2133
+ readonly getter: (document: any) => string;
2134
+ };
2135
+ readonly family_name: {
2136
+ readonly getter: (document: any) => string;
2137
+ };
2138
+ readonly active: {
2139
+ readonly type: "boolean";
2140
+ };
2141
+ readonly roles: {
2142
+ readonly type: "array";
2143
+ readonly items: {
2144
+ readonly type: "string";
2145
+ };
2146
+ readonly uniqueItems: true;
2147
+ };
2148
+ readonly email: {
2149
+ readonly type: "string";
2150
+ readonly inputType: "email";
2151
+ readonly unique: true;
2152
+ };
2153
+ readonly password: {
2154
+ readonly type: "string";
2155
+ readonly inputType: "password";
2156
+ readonly hidden: true;
2157
+ };
2158
+ readonly phone_number: {
2159
+ readonly type: "string";
2160
+ readonly mask: "(##) #####-####";
2161
+ };
2162
+ readonly picture_file: {
2163
+ readonly $ref: "file";
2164
+ readonly accept: readonly ["image/*"];
2165
+ };
2166
+ readonly picture: {
2167
+ readonly getter: (value: any) => any;
2168
+ };
2169
+ readonly group: {
2170
+ readonly type: "string";
2171
+ };
2172
+ readonly self_registered: {
2173
+ readonly type: "boolean";
2174
+ readonly readOnly: true;
2175
+ };
2176
+ readonly updated_at: {
2177
+ readonly type: "string";
2178
+ readonly format: "date-time";
2179
+ };
2180
+ };
2181
+ readonly presets: readonly ["crud", "view", "duplicate"];
2182
+ readonly layout: {
2183
+ readonly name: "grid";
2184
+ readonly options: {
2185
+ readonly title: "name";
2186
+ readonly badge: "roles";
2187
+ readonly picture: "picture_file";
2188
+ readonly information: "email";
2189
+ readonly active: "active";
2190
+ readonly translateBadge: true;
2191
+ };
2192
+ };
2193
+ readonly individualActions: {
2194
+ readonly 'ui:spawnEdit': {
2195
+ readonly name: "Editar";
2196
+ readonly icon: "pencil";
2197
+ };
2198
+ readonly 'route:/dashboard/user/changepass': {
2199
+ readonly name: "Mudar senha";
2200
+ readonly icon: "key";
2201
+ readonly fetchItem: true;
2202
+ };
2203
+ };
2204
+ readonly icon: "users";
2205
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2206
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2207
+ readonly tableMeta: readonly ["email"];
2208
+ readonly formLayout: {
2209
+ readonly fields: {
2210
+ readonly given_name: {
2211
+ readonly span: 3;
2212
+ };
2213
+ readonly family_name: {
2214
+ readonly span: 3;
2215
+ };
2216
+ };
2217
+ };
2218
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
1541
2219
  readonly $id: "user";
1542
2220
  readonly required: readonly ["name", "roles", "email"];
1543
2221
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -1635,7 +2313,11 @@ export declare const user: {
1635
2313
  };
1636
2314
  };
1637
2315
  };
1638
- }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
2316
+ }>>, "_id">>>>;
2317
+ readonly getInfo: (payload: {
2318
+ userId: string;
2319
+ token: string;
2320
+ }, context: import("@aeriajs/types").Context<{
1639
2321
  readonly $id: "user";
1640
2322
  readonly required: readonly ["name", "roles", "email"];
1641
2323
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -1733,11 +2415,27 @@ export declare const user: {
1733
2415
  };
1734
2416
  };
1735
2417
  };
1736
- }>>, "_id">>>>;
1737
- readonly getInfo: (payload: {
1738
- userId: string;
1739
- token: string;
1740
- }, context: import("@aeriajs/types").Context<{
2418
+ }>) => Promise<import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
2419
+ readonly name: string;
2420
+ readonly email: string;
2421
+ }>>;
2422
+ readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
2423
+ };
2424
+ functionContracts: Partial<{
2425
+ readonly get: import("@aeriajs/types").Contract;
2426
+ readonly getAll: import("@aeriajs/types").Contract;
2427
+ readonly remove: import("@aeriajs/types").Contract;
2428
+ readonly upload: import("@aeriajs/types").Contract;
2429
+ readonly removeFile: import("@aeriajs/types").Contract;
2430
+ readonly insert: import("@aeriajs/types").Contract;
2431
+ readonly authenticate: import("@aeriajs/types").Contract;
2432
+ readonly activate: import("@aeriajs/types").Contract;
2433
+ readonly createAccount: import("@aeriajs/types").Contract;
2434
+ readonly getInfo: import("@aeriajs/types").Contract;
2435
+ readonly getActivationLink: import("@aeriajs/types").Contract;
2436
+ }>;
2437
+ accessControl: import("@aeriajs/types").AccessControl | import("@aeriajs/types").AccessControl<{
2438
+ description: {
1741
2439
  readonly $id: "user";
1742
2440
  readonly required: readonly ["name", "roles", "email"];
1743
2441
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -1835,223 +2533,7 @@ export declare const user: {
1835
2533
  };
1836
2534
  };
1837
2535
  };
1838
- }>) => Promise<import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
1839
- readonly name: string;
1840
- readonly email: string;
1841
- }>>;
1842
- readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
1843
- };
1844
- accessControl: {
1845
- roles: {
1846
- root: {
1847
- grantEverything: true;
1848
- };
1849
- guest: {
1850
- grant: "authenticate"[];
1851
- };
1852
- };
1853
- };
1854
- } & {
1855
- item: import("@aeriajs/types").SchemaWithId<{
1856
- readonly $id: "user";
1857
- readonly required: readonly ["name", "roles", "email"];
1858
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1859
- readonly indexes: readonly ["name"];
1860
- readonly freshItem: {
1861
- readonly active: true;
1862
- };
1863
- readonly properties: {
1864
- readonly name: {
1865
- readonly type: "string";
1866
- };
1867
- readonly given_name: {
1868
- readonly getter: (document: any) => string;
1869
- };
1870
- readonly family_name: {
1871
- readonly getter: (document: any) => string;
1872
- };
1873
- readonly active: {
1874
- readonly type: "boolean";
1875
- };
1876
- readonly roles: {
1877
- readonly type: "array";
1878
- readonly items: {
1879
- readonly type: "string";
1880
- };
1881
- readonly uniqueItems: true;
1882
- };
1883
- readonly email: {
1884
- readonly type: "string";
1885
- readonly inputType: "email";
1886
- readonly unique: true;
1887
- };
1888
- readonly password: {
1889
- readonly type: "string";
1890
- readonly inputType: "password";
1891
- readonly hidden: true;
1892
- };
1893
- readonly phone_number: {
1894
- readonly type: "string";
1895
- readonly mask: "(##) #####-####";
1896
- };
1897
- readonly picture_file: {
1898
- readonly $ref: "file";
1899
- readonly accept: readonly ["image/*"];
1900
- };
1901
- readonly picture: {
1902
- readonly getter: (value: any) => any;
1903
- };
1904
- readonly group: {
1905
- readonly type: "string";
1906
- };
1907
- readonly self_registered: {
1908
- readonly type: "boolean";
1909
- readonly readOnly: true;
1910
- };
1911
- readonly updated_at: {
1912
- readonly type: "string";
1913
- readonly format: "date-time";
1914
- };
1915
- };
1916
- readonly presets: readonly ["crud", "view", "duplicate"];
1917
- readonly layout: {
1918
- readonly name: "grid";
1919
- readonly options: {
1920
- readonly title: "name";
1921
- readonly badge: "roles";
1922
- readonly picture: "picture_file";
1923
- readonly information: "email";
1924
- readonly active: "active";
1925
- readonly translateBadge: true;
1926
- };
1927
- };
1928
- readonly individualActions: {
1929
- readonly 'ui:spawnEdit': {
1930
- readonly name: "Editar";
1931
- readonly icon: "pencil";
1932
- };
1933
- readonly 'route:/dashboard/user/changepass': {
1934
- readonly name: "Mudar senha";
1935
- readonly icon: "key";
1936
- readonly fetchItem: true;
1937
- };
1938
- };
1939
- readonly icon: "users";
1940
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
1941
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1942
- readonly tableMeta: readonly ["email"];
1943
- readonly formLayout: {
1944
- readonly fields: {
1945
- readonly given_name: {
1946
- readonly span: 3;
1947
- };
1948
- readonly family_name: {
1949
- readonly span: 3;
1950
- };
1951
- };
1952
- };
1953
- }>;
1954
- description: {
1955
- readonly $id: "user";
1956
- readonly required: readonly ["name", "roles", "email"];
1957
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1958
- readonly indexes: readonly ["name"];
1959
- readonly freshItem: {
1960
- readonly active: true;
1961
- };
1962
- readonly properties: {
1963
- readonly name: {
1964
- readonly type: "string";
1965
- };
1966
- readonly given_name: {
1967
- readonly getter: (document: any) => string;
1968
- };
1969
- readonly family_name: {
1970
- readonly getter: (document: any) => string;
1971
- };
1972
- readonly active: {
1973
- readonly type: "boolean";
1974
- };
1975
- readonly roles: {
1976
- readonly type: "array";
1977
- readonly items: {
1978
- readonly type: "string";
1979
- };
1980
- readonly uniqueItems: true;
1981
- };
1982
- readonly email: {
1983
- readonly type: "string";
1984
- readonly inputType: "email";
1985
- readonly unique: true;
1986
- };
1987
- readonly password: {
1988
- readonly type: "string";
1989
- readonly inputType: "password";
1990
- readonly hidden: true;
1991
- };
1992
- readonly phone_number: {
1993
- readonly type: "string";
1994
- readonly mask: "(##) #####-####";
1995
- };
1996
- readonly picture_file: {
1997
- readonly $ref: "file";
1998
- readonly accept: readonly ["image/*"];
1999
- };
2000
- readonly picture: {
2001
- readonly getter: (value: any) => any;
2002
- };
2003
- readonly group: {
2004
- readonly type: "string";
2005
- };
2006
- readonly self_registered: {
2007
- readonly type: "boolean";
2008
- readonly readOnly: true;
2009
- };
2010
- readonly updated_at: {
2011
- readonly type: "string";
2012
- readonly format: "date-time";
2013
- };
2014
- };
2015
- readonly presets: readonly ["crud", "view", "duplicate"];
2016
- readonly layout: {
2017
- readonly name: "grid";
2018
- readonly options: {
2019
- readonly title: "name";
2020
- readonly badge: "roles";
2021
- readonly picture: "picture_file";
2022
- readonly information: "email";
2023
- readonly active: "active";
2024
- readonly translateBadge: true;
2025
- };
2026
- };
2027
- readonly individualActions: {
2028
- readonly 'ui:spawnEdit': {
2029
- readonly name: "Editar";
2030
- readonly icon: "pencil";
2031
- };
2032
- readonly 'route:/dashboard/user/changepass': {
2033
- readonly name: "Mudar senha";
2034
- readonly icon: "key";
2035
- readonly fetchItem: true;
2036
- };
2037
- };
2038
- readonly icon: "users";
2039
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
2040
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2041
- readonly tableMeta: readonly ["email"];
2042
- readonly formLayout: {
2043
- readonly fields: {
2044
- readonly given_name: {
2045
- readonly span: 3;
2046
- };
2047
- readonly family_name: {
2048
- readonly span: 3;
2049
- };
2050
- };
2051
2536
  };
2052
- };
2053
- functions: any;
2054
- functionContracts: {
2055
- [x: string]: import("@aeriajs/types").Contract;
2056
- };
2537
+ functions: any;
2538
+ }> | undefined;
2057
2539
  };