@aeriajs/builtins 0.0.0

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.
Files changed (63) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +6 -0
  3. package/dist/collections/file/description.d.ts +50 -0
  4. package/dist/collections/file/description.js +70 -0
  5. package/dist/collections/file/description.mjs +258 -0
  6. package/dist/collections/file/download.d.ts +13 -0
  7. package/dist/collections/file/download.js +78 -0
  8. package/dist/collections/file/download.mjs +232 -0
  9. package/dist/collections/file/index.d.ts +1183 -0
  10. package/dist/collections/file/index.js +49 -0
  11. package/dist/collections/file/index.mjs +46 -0
  12. package/dist/collections/file/insert.d.ts +7 -0
  13. package/dist/collections/file/insert.js +44 -0
  14. package/dist/collections/file/insert.mjs +246 -0
  15. package/dist/collections/file/remove.d.ts +3 -0
  16. package/dist/collections/file/remove.js +28 -0
  17. package/dist/collections/file/remove.mjs +184 -0
  18. package/dist/collections/file/removeAll.d.ts +3 -0
  19. package/dist/collections/file/removeAll.js +30 -0
  20. package/dist/collections/file/removeAll.mjs +194 -0
  21. package/dist/collections/index.d.ts +4 -0
  22. package/dist/collections/index.js +20 -0
  23. package/dist/collections/index.mjs +4 -0
  24. package/dist/collections/log/index.d.ts +458 -0
  25. package/dist/collections/log/index.js +46 -0
  26. package/dist/collections/log/index.mjs +45 -0
  27. package/dist/collections/resourceUsage/index.d.ts +57 -0
  28. package/dist/collections/resourceUsage/index.js +19 -0
  29. package/dist/collections/resourceUsage/index.mjs +16 -0
  30. package/dist/collections/user/activate.d.ts +10 -0
  31. package/dist/collections/user/activate.js +65 -0
  32. package/dist/collections/user/activate.mjs +247 -0
  33. package/dist/collections/user/authenticate.d.ts +24 -0
  34. package/dist/collections/user/authenticate.js +103 -0
  35. package/dist/collections/user/authenticate.mjs +398 -0
  36. package/dist/collections/user/createAccount.d.ts +101 -0
  37. package/dist/collections/user/createAccount.js +66 -0
  38. package/dist/collections/user/createAccount.mjs +219 -0
  39. package/dist/collections/user/description.d.ts +103 -0
  40. package/dist/collections/user/description.js +146 -0
  41. package/dist/collections/user/description.mjs +151 -0
  42. package/dist/collections/user/getActivationLink.d.ts +2 -0
  43. package/dist/collections/user/getActivationLink.js +15 -0
  44. package/dist/collections/user/getActivationLink.mjs +156 -0
  45. package/dist/collections/user/getInfo.d.ts +14 -0
  46. package/dist/collections/user/getInfo.js +39 -0
  47. package/dist/collections/user/getInfo.mjs +192 -0
  48. package/dist/collections/user/index.d.ts +3992 -0
  49. package/dist/collections/user/index.js +37 -0
  50. package/dist/collections/user/index.mjs +36 -0
  51. package/dist/collections/user/insert.d.ts +5 -0
  52. package/dist/collections/user/insert.js +35 -0
  53. package/dist/collections/user/insert.mjs +156 -0
  54. package/dist/functions/describe.d.ts +2 -0
  55. package/dist/functions/describe.js +54 -0
  56. package/dist/functions/describe.mjs +302 -0
  57. package/dist/functions/index.d.ts +1 -0
  58. package/dist/functions/index.js +17 -0
  59. package/dist/functions/index.mjs +1 -0
  60. package/dist/index.d.ts +5701 -0
  61. package/dist/index.js +39 -0
  62. package/dist/index.mjs +11 -0
  63. package/package.json +60 -0
@@ -0,0 +1,3992 @@
1
+ export declare const user: {
2
+ description: {
3
+ readonly $id: "user";
4
+ readonly required: readonly ["name", "roles", "email"];
5
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
6
+ readonly indexes: readonly ["name"];
7
+ readonly freshItem: {
8
+ readonly active: true;
9
+ };
10
+ readonly properties: {
11
+ readonly name: {
12
+ readonly type: "string";
13
+ };
14
+ readonly given_name: {
15
+ readonly getter: (document: any) => string;
16
+ };
17
+ readonly family_name: {
18
+ readonly getter: (document: any) => string;
19
+ };
20
+ readonly active: {
21
+ readonly type: "boolean";
22
+ };
23
+ readonly roles: {
24
+ readonly type: "array";
25
+ readonly items: {
26
+ readonly type: "string";
27
+ };
28
+ readonly uniqueItems: true;
29
+ };
30
+ readonly email: {
31
+ readonly type: "string";
32
+ readonly inputType: "email";
33
+ readonly unique: true;
34
+ };
35
+ readonly password: {
36
+ readonly type: "string";
37
+ readonly inputType: "password";
38
+ readonly hidden: true;
39
+ };
40
+ readonly phone_number: {
41
+ readonly type: "string";
42
+ readonly mask: "(##) #####-####";
43
+ };
44
+ readonly picture_file: {
45
+ readonly $ref: "file";
46
+ readonly accept: readonly ["image/*"];
47
+ };
48
+ readonly picture: {
49
+ readonly getter: (value: any) => any;
50
+ };
51
+ readonly group: {
52
+ readonly type: "string";
53
+ };
54
+ readonly self_registered: {
55
+ readonly type: "boolean";
56
+ readonly readOnly: true;
57
+ };
58
+ readonly updated_at: {
59
+ readonly type: "string";
60
+ readonly format: "date-time";
61
+ };
62
+ };
63
+ readonly presets: readonly ["crud", "view", "duplicate"];
64
+ readonly layout: {
65
+ readonly name: "grid";
66
+ readonly options: {
67
+ readonly title: "name";
68
+ readonly badge: "roles";
69
+ readonly picture: "picture_file";
70
+ readonly information: "email";
71
+ readonly active: "active";
72
+ readonly translateBadge: true;
73
+ };
74
+ };
75
+ readonly individualActions: {
76
+ readonly 'ui:spawnEdit': {
77
+ readonly name: "Editar";
78
+ readonly icon: "pencil";
79
+ };
80
+ readonly 'route:/dashboard/user/changepass': {
81
+ readonly name: "Mudar senha";
82
+ readonly icon: "key";
83
+ readonly fetchItem: true;
84
+ };
85
+ };
86
+ readonly icon: "users";
87
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
88
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
89
+ readonly tableMeta: readonly ["email"];
90
+ readonly formLayout: {
91
+ readonly fields: {
92
+ readonly given_name: {
93
+ readonly span: 3;
94
+ };
95
+ readonly family_name: {
96
+ readonly span: 3;
97
+ };
98
+ };
99
+ };
100
+ };
101
+ functions: {
102
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
103
+ readonly $id: "user";
104
+ readonly required: readonly ["name", "roles", "email"];
105
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
106
+ readonly indexes: readonly ["name"];
107
+ readonly freshItem: {
108
+ readonly active: true;
109
+ };
110
+ readonly properties: {
111
+ readonly name: {
112
+ readonly type: "string";
113
+ };
114
+ readonly given_name: {
115
+ readonly getter: (document: any) => string;
116
+ };
117
+ readonly family_name: {
118
+ readonly getter: (document: any) => string;
119
+ };
120
+ readonly active: {
121
+ readonly type: "boolean";
122
+ };
123
+ readonly roles: {
124
+ readonly type: "array";
125
+ readonly items: {
126
+ readonly type: "string";
127
+ };
128
+ readonly uniqueItems: true;
129
+ };
130
+ readonly email: {
131
+ readonly type: "string";
132
+ readonly inputType: "email";
133
+ readonly unique: true;
134
+ };
135
+ readonly password: {
136
+ readonly type: "string";
137
+ readonly inputType: "password";
138
+ readonly hidden: true;
139
+ };
140
+ readonly phone_number: {
141
+ readonly type: "string";
142
+ readonly mask: "(##) #####-####";
143
+ };
144
+ readonly picture_file: {
145
+ readonly $ref: "file";
146
+ readonly accept: readonly ["image/*"];
147
+ };
148
+ readonly picture: {
149
+ readonly getter: (value: any) => any;
150
+ };
151
+ readonly group: {
152
+ readonly type: "string";
153
+ };
154
+ readonly self_registered: {
155
+ readonly type: "boolean";
156
+ readonly readOnly: true;
157
+ };
158
+ readonly updated_at: {
159
+ readonly type: "string";
160
+ readonly format: "date-time";
161
+ };
162
+ };
163
+ readonly presets: readonly ["crud", "view", "duplicate"];
164
+ readonly layout: {
165
+ readonly name: "grid";
166
+ readonly options: {
167
+ readonly title: "name";
168
+ readonly badge: "roles";
169
+ readonly picture: "picture_file";
170
+ readonly information: "email";
171
+ readonly active: "active";
172
+ readonly translateBadge: true;
173
+ };
174
+ };
175
+ readonly individualActions: {
176
+ readonly 'ui:spawnEdit': {
177
+ readonly name: "Editar";
178
+ readonly icon: "pencil";
179
+ };
180
+ readonly 'route:/dashboard/user/changepass': {
181
+ readonly name: "Mudar senha";
182
+ readonly icon: "key";
183
+ readonly fetchItem: true;
184
+ };
185
+ };
186
+ readonly icon: "users";
187
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
188
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
189
+ readonly tableMeta: readonly ["email"];
190
+ readonly formLayout: {
191
+ readonly fields: {
192
+ readonly given_name: {
193
+ readonly span: 3;
194
+ };
195
+ readonly family_name: {
196
+ readonly span: 3;
197
+ };
198
+ };
199
+ };
200
+ }>>, context: import("@aeriajs/types").Context<{
201
+ readonly $id: "user";
202
+ readonly required: readonly ["name", "roles", "email"];
203
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
204
+ readonly indexes: readonly ["name"];
205
+ readonly freshItem: {
206
+ readonly active: true;
207
+ };
208
+ readonly properties: {
209
+ readonly name: {
210
+ readonly type: "string";
211
+ };
212
+ readonly given_name: {
213
+ readonly getter: (document: any) => string;
214
+ };
215
+ readonly family_name: {
216
+ readonly getter: (document: any) => string;
217
+ };
218
+ readonly active: {
219
+ readonly type: "boolean";
220
+ };
221
+ readonly roles: {
222
+ readonly type: "array";
223
+ readonly items: {
224
+ readonly type: "string";
225
+ };
226
+ readonly uniqueItems: true;
227
+ };
228
+ readonly email: {
229
+ readonly type: "string";
230
+ readonly inputType: "email";
231
+ readonly unique: true;
232
+ };
233
+ readonly password: {
234
+ readonly type: "string";
235
+ readonly inputType: "password";
236
+ readonly hidden: true;
237
+ };
238
+ readonly phone_number: {
239
+ readonly type: "string";
240
+ readonly mask: "(##) #####-####";
241
+ };
242
+ readonly picture_file: {
243
+ readonly $ref: "file";
244
+ readonly accept: readonly ["image/*"];
245
+ };
246
+ readonly picture: {
247
+ readonly getter: (value: any) => any;
248
+ };
249
+ readonly group: {
250
+ readonly type: "string";
251
+ };
252
+ readonly self_registered: {
253
+ readonly type: "boolean";
254
+ readonly readOnly: true;
255
+ };
256
+ readonly updated_at: {
257
+ readonly type: "string";
258
+ readonly format: "date-time";
259
+ };
260
+ };
261
+ readonly presets: readonly ["crud", "view", "duplicate"];
262
+ readonly layout: {
263
+ readonly name: "grid";
264
+ readonly options: {
265
+ readonly title: "name";
266
+ readonly badge: "roles";
267
+ readonly picture: "picture_file";
268
+ readonly information: "email";
269
+ readonly active: "active";
270
+ readonly translateBadge: true;
271
+ };
272
+ };
273
+ readonly individualActions: {
274
+ readonly 'ui:spawnEdit': {
275
+ readonly name: "Editar";
276
+ readonly icon: "pencil";
277
+ };
278
+ readonly 'route:/dashboard/user/changepass': {
279
+ readonly name: "Mudar senha";
280
+ readonly icon: "key";
281
+ readonly fetchItem: true;
282
+ };
283
+ };
284
+ readonly icon: "users";
285
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
286
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
287
+ readonly tableMeta: readonly ["email"];
288
+ readonly formLayout: {
289
+ readonly fields: {
290
+ readonly given_name: {
291
+ readonly span: 3;
292
+ };
293
+ readonly family_name: {
294
+ readonly span: 3;
295
+ };
296
+ };
297
+ };
298
+ }>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
299
+ readonly $id: "user";
300
+ readonly required: readonly ["name", "roles", "email"];
301
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
302
+ readonly indexes: readonly ["name"];
303
+ readonly freshItem: {
304
+ readonly active: true;
305
+ };
306
+ readonly properties: {
307
+ readonly name: {
308
+ readonly type: "string";
309
+ };
310
+ readonly given_name: {
311
+ readonly getter: (document: any) => string;
312
+ };
313
+ readonly family_name: {
314
+ readonly getter: (document: any) => string;
315
+ };
316
+ readonly active: {
317
+ readonly type: "boolean";
318
+ };
319
+ readonly roles: {
320
+ readonly type: "array";
321
+ readonly items: {
322
+ readonly type: "string";
323
+ };
324
+ readonly uniqueItems: true;
325
+ };
326
+ readonly email: {
327
+ readonly type: "string";
328
+ readonly inputType: "email";
329
+ readonly unique: true;
330
+ };
331
+ readonly password: {
332
+ readonly type: "string";
333
+ readonly inputType: "password";
334
+ readonly hidden: true;
335
+ };
336
+ readonly phone_number: {
337
+ readonly type: "string";
338
+ readonly mask: "(##) #####-####";
339
+ };
340
+ readonly picture_file: {
341
+ readonly $ref: "file";
342
+ readonly accept: readonly ["image/*"];
343
+ };
344
+ readonly picture: {
345
+ readonly getter: (value: any) => any;
346
+ };
347
+ readonly group: {
348
+ readonly type: "string";
349
+ };
350
+ readonly self_registered: {
351
+ readonly type: "boolean";
352
+ readonly readOnly: true;
353
+ };
354
+ readonly updated_at: {
355
+ readonly type: "string";
356
+ readonly format: "date-time";
357
+ };
358
+ };
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
+ };
370
+ };
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
+ };
381
+ };
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
+ };
394
+ };
395
+ };
396
+ }> | null>;
397
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | null, context: import("@aeriajs/types").Context<{
398
+ readonly $id: "user";
399
+ readonly required: readonly ["name", "roles", "email"];
400
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
401
+ readonly indexes: readonly ["name"];
402
+ readonly freshItem: {
403
+ readonly active: true;
404
+ };
405
+ readonly properties: {
406
+ readonly name: {
407
+ readonly type: "string";
408
+ };
409
+ readonly given_name: {
410
+ readonly getter: (document: any) => string;
411
+ };
412
+ readonly family_name: {
413
+ readonly getter: (document: any) => string;
414
+ };
415
+ readonly active: {
416
+ readonly type: "boolean";
417
+ };
418
+ readonly roles: {
419
+ readonly type: "array";
420
+ readonly items: {
421
+ readonly type: "string";
422
+ };
423
+ readonly uniqueItems: true;
424
+ };
425
+ readonly email: {
426
+ readonly type: "string";
427
+ readonly inputType: "email";
428
+ readonly unique: true;
429
+ };
430
+ readonly password: {
431
+ readonly type: "string";
432
+ readonly inputType: "password";
433
+ readonly hidden: true;
434
+ };
435
+ readonly phone_number: {
436
+ readonly type: "string";
437
+ readonly mask: "(##) #####-####";
438
+ };
439
+ readonly picture_file: {
440
+ readonly $ref: "file";
441
+ readonly accept: readonly ["image/*"];
442
+ };
443
+ readonly picture: {
444
+ readonly getter: (value: any) => any;
445
+ };
446
+ readonly group: {
447
+ readonly type: "string";
448
+ };
449
+ readonly self_registered: {
450
+ readonly type: "boolean";
451
+ readonly readOnly: true;
452
+ };
453
+ readonly updated_at: {
454
+ readonly type: "string";
455
+ readonly format: "date-time";
456
+ };
457
+ };
458
+ readonly presets: readonly ["crud", "view", "duplicate"];
459
+ readonly layout: {
460
+ readonly name: "grid";
461
+ readonly options: {
462
+ readonly title: "name";
463
+ readonly badge: "roles";
464
+ readonly picture: "picture_file";
465
+ readonly information: "email";
466
+ readonly active: "active";
467
+ readonly translateBadge: true;
468
+ };
469
+ };
470
+ readonly individualActions: {
471
+ readonly 'ui:spawnEdit': {
472
+ readonly name: "Editar";
473
+ readonly icon: "pencil";
474
+ };
475
+ readonly 'route:/dashboard/user/changepass': {
476
+ readonly name: "Mudar senha";
477
+ readonly icon: "key";
478
+ readonly fetchItem: true;
479
+ };
480
+ };
481
+ readonly icon: "users";
482
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
483
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
484
+ readonly tableMeta: readonly ["email"];
485
+ readonly formLayout: {
486
+ readonly fields: {
487
+ readonly given_name: {
488
+ readonly span: 3;
489
+ };
490
+ readonly family_name: {
491
+ readonly span: 3;
492
+ };
493
+ };
494
+ };
495
+ }>, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
496
+ readonly $id: "user";
497
+ readonly required: readonly ["name", "roles", "email"];
498
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
499
+ readonly indexes: readonly ["name"];
500
+ readonly freshItem: {
501
+ readonly active: true;
502
+ };
503
+ readonly properties: {
504
+ readonly name: {
505
+ readonly type: "string";
506
+ };
507
+ readonly given_name: {
508
+ readonly getter: (document: any) => string;
509
+ };
510
+ readonly family_name: {
511
+ readonly getter: (document: any) => string;
512
+ };
513
+ readonly active: {
514
+ readonly type: "boolean";
515
+ };
516
+ readonly roles: {
517
+ readonly type: "array";
518
+ readonly items: {
519
+ readonly type: "string";
520
+ };
521
+ readonly uniqueItems: true;
522
+ };
523
+ readonly email: {
524
+ readonly type: "string";
525
+ readonly inputType: "email";
526
+ readonly unique: true;
527
+ };
528
+ readonly password: {
529
+ readonly type: "string";
530
+ readonly inputType: "password";
531
+ readonly hidden: true;
532
+ };
533
+ readonly phone_number: {
534
+ readonly type: "string";
535
+ readonly mask: "(##) #####-####";
536
+ };
537
+ readonly picture_file: {
538
+ readonly $ref: "file";
539
+ readonly accept: readonly ["image/*"];
540
+ };
541
+ readonly picture: {
542
+ readonly getter: (value: any) => any;
543
+ };
544
+ readonly group: {
545
+ readonly type: "string";
546
+ };
547
+ readonly self_registered: {
548
+ readonly type: "boolean";
549
+ readonly readOnly: true;
550
+ };
551
+ readonly updated_at: {
552
+ readonly type: "string";
553
+ readonly format: "date-time";
554
+ };
555
+ };
556
+ readonly presets: readonly ["crud", "view", "duplicate"];
557
+ readonly layout: {
558
+ readonly name: "grid";
559
+ readonly options: {
560
+ readonly title: "name";
561
+ readonly badge: "roles";
562
+ readonly picture: "picture_file";
563
+ readonly information: "email";
564
+ readonly active: "active";
565
+ readonly translateBadge: true;
566
+ };
567
+ };
568
+ readonly individualActions: {
569
+ readonly 'ui:spawnEdit': {
570
+ readonly name: "Editar";
571
+ readonly icon: "pencil";
572
+ };
573
+ readonly 'route:/dashboard/user/changepass': {
574
+ readonly name: "Mudar senha";
575
+ readonly icon: "key";
576
+ readonly fetchItem: true;
577
+ };
578
+ };
579
+ readonly icon: "users";
580
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
581
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
582
+ readonly tableMeta: readonly ["email"];
583
+ readonly formLayout: {
584
+ readonly fields: {
585
+ readonly given_name: {
586
+ readonly span: 3;
587
+ };
588
+ readonly family_name: {
589
+ readonly span: 3;
590
+ };
591
+ };
592
+ };
593
+ }>[]>;
594
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
595
+ readonly $id: "user";
596
+ readonly required: readonly ["name", "roles", "email"];
597
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
598
+ readonly indexes: readonly ["name"];
599
+ readonly freshItem: {
600
+ readonly active: true;
601
+ };
602
+ readonly properties: {
603
+ readonly name: {
604
+ readonly type: "string";
605
+ };
606
+ readonly given_name: {
607
+ readonly getter: (document: any) => string;
608
+ };
609
+ readonly family_name: {
610
+ readonly getter: (document: any) => string;
611
+ };
612
+ readonly active: {
613
+ readonly type: "boolean";
614
+ };
615
+ readonly roles: {
616
+ readonly type: "array";
617
+ readonly items: {
618
+ readonly type: "string";
619
+ };
620
+ readonly uniqueItems: true;
621
+ };
622
+ readonly email: {
623
+ readonly type: "string";
624
+ readonly inputType: "email";
625
+ readonly unique: true;
626
+ };
627
+ readonly password: {
628
+ readonly type: "string";
629
+ readonly inputType: "password";
630
+ readonly hidden: true;
631
+ };
632
+ readonly phone_number: {
633
+ readonly type: "string";
634
+ readonly mask: "(##) #####-####";
635
+ };
636
+ readonly picture_file: {
637
+ readonly $ref: "file";
638
+ readonly accept: readonly ["image/*"];
639
+ };
640
+ readonly picture: {
641
+ readonly getter: (value: any) => any;
642
+ };
643
+ readonly group: {
644
+ readonly type: "string";
645
+ };
646
+ readonly self_registered: {
647
+ readonly type: "boolean";
648
+ readonly readOnly: true;
649
+ };
650
+ readonly updated_at: {
651
+ readonly type: "string";
652
+ readonly format: "date-time";
653
+ };
654
+ };
655
+ readonly presets: readonly ["crud", "view", "duplicate"];
656
+ readonly layout: {
657
+ readonly name: "grid";
658
+ readonly options: {
659
+ readonly title: "name";
660
+ readonly badge: "roles";
661
+ readonly picture: "picture_file";
662
+ readonly information: "email";
663
+ readonly active: "active";
664
+ readonly translateBadge: true;
665
+ };
666
+ };
667
+ readonly individualActions: {
668
+ readonly 'ui:spawnEdit': {
669
+ readonly name: "Editar";
670
+ readonly icon: "pencil";
671
+ };
672
+ readonly 'route:/dashboard/user/changepass': {
673
+ readonly name: "Mudar senha";
674
+ readonly icon: "key";
675
+ readonly fetchItem: true;
676
+ };
677
+ };
678
+ readonly icon: "users";
679
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
680
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
681
+ readonly tableMeta: readonly ["email"];
682
+ readonly formLayout: {
683
+ readonly fields: {
684
+ readonly given_name: {
685
+ readonly span: 3;
686
+ };
687
+ readonly family_name: {
688
+ readonly span: 3;
689
+ };
690
+ };
691
+ };
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;
699
+ };
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: {
731
+ 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
+ };
741
+ readonly group: {
742
+ readonly type: "string";
743
+ };
744
+ readonly self_registered: {
745
+ readonly type: "boolean";
746
+ readonly readOnly: true;
747
+ };
748
+ readonly updated_at: {
749
+ readonly type: "string";
750
+ readonly format: "date-time";
751
+ };
752
+ };
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
+ };
764
+ };
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
+ };
775
+ };
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
+ };
788
+ };
789
+ };
790
+ }>) => Promise<any>;
791
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").Context<{
792
+ readonly $id: "user";
793
+ readonly required: readonly ["name", "roles", "email"];
794
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
795
+ readonly indexes: readonly ["name"];
796
+ readonly freshItem: {
797
+ readonly active: true;
798
+ };
799
+ readonly properties: {
800
+ readonly name: {
801
+ readonly type: "string";
802
+ };
803
+ readonly given_name: {
804
+ readonly getter: (document: any) => string;
805
+ };
806
+ readonly family_name: {
807
+ readonly getter: (document: any) => string;
808
+ };
809
+ readonly active: {
810
+ readonly type: "boolean";
811
+ };
812
+ readonly roles: {
813
+ readonly type: "array";
814
+ readonly items: {
815
+ readonly type: "string";
816
+ };
817
+ readonly uniqueItems: true;
818
+ };
819
+ readonly email: {
820
+ readonly type: "string";
821
+ readonly inputType: "email";
822
+ readonly unique: true;
823
+ };
824
+ readonly password: {
825
+ readonly type: "string";
826
+ readonly inputType: "password";
827
+ readonly hidden: true;
828
+ };
829
+ readonly phone_number: {
830
+ readonly type: "string";
831
+ readonly mask: "(##) #####-####";
832
+ };
833
+ readonly picture_file: {
834
+ readonly $ref: "file";
835
+ readonly accept: readonly ["image/*"];
836
+ };
837
+ readonly picture: {
838
+ readonly getter: (value: any) => any;
839
+ };
840
+ readonly group: {
841
+ readonly type: "string";
842
+ };
843
+ readonly self_registered: {
844
+ readonly type: "boolean";
845
+ readonly readOnly: true;
846
+ };
847
+ readonly updated_at: {
848
+ readonly type: "string";
849
+ readonly format: "date-time";
850
+ };
851
+ };
852
+ readonly presets: readonly ["crud", "view", "duplicate"];
853
+ readonly layout: {
854
+ readonly name: "grid";
855
+ readonly options: {
856
+ readonly title: "name";
857
+ readonly badge: "roles";
858
+ readonly picture: "picture_file";
859
+ readonly information: "email";
860
+ readonly active: "active";
861
+ readonly translateBadge: true;
862
+ };
863
+ };
864
+ readonly individualActions: {
865
+ readonly 'ui:spawnEdit': {
866
+ readonly name: "Editar";
867
+ readonly icon: "pencil";
868
+ };
869
+ readonly 'route:/dashboard/user/changepass': {
870
+ readonly name: "Mudar senha";
871
+ readonly icon: "key";
872
+ readonly fetchItem: true;
873
+ };
874
+ };
875
+ readonly icon: "users";
876
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
877
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
878
+ readonly tableMeta: readonly ["email"];
879
+ readonly formLayout: {
880
+ readonly fields: {
881
+ readonly given_name: {
882
+ readonly span: 3;
883
+ };
884
+ readonly family_name: {
885
+ readonly span: 3;
886
+ };
887
+ };
888
+ };
889
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
890
+ tempId: any;
891
+ }>;
892
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context<{
893
+ readonly $id: "user";
894
+ readonly required: readonly ["name", "roles", "email"];
895
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
896
+ readonly indexes: readonly ["name"];
897
+ readonly freshItem: {
898
+ readonly active: true;
899
+ };
900
+ readonly properties: {
901
+ readonly name: {
902
+ readonly type: "string";
903
+ };
904
+ readonly given_name: {
905
+ readonly getter: (document: any) => string;
906
+ };
907
+ readonly family_name: {
908
+ readonly getter: (document: any) => string;
909
+ };
910
+ readonly active: {
911
+ readonly type: "boolean";
912
+ };
913
+ readonly roles: {
914
+ readonly type: "array";
915
+ readonly items: {
916
+ readonly type: "string";
917
+ };
918
+ readonly uniqueItems: true;
919
+ };
920
+ readonly email: {
921
+ readonly type: "string";
922
+ readonly inputType: "email";
923
+ readonly unique: true;
924
+ };
925
+ readonly password: {
926
+ readonly type: "string";
927
+ readonly inputType: "password";
928
+ readonly hidden: true;
929
+ };
930
+ readonly phone_number: {
931
+ readonly type: "string";
932
+ readonly mask: "(##) #####-####";
933
+ };
934
+ readonly picture_file: {
935
+ readonly $ref: "file";
936
+ readonly accept: readonly ["image/*"];
937
+ };
938
+ readonly picture: {
939
+ readonly getter: (value: any) => any;
940
+ };
941
+ readonly group: {
942
+ readonly type: "string";
943
+ };
944
+ readonly self_registered: {
945
+ readonly type: "boolean";
946
+ readonly readOnly: true;
947
+ };
948
+ readonly updated_at: {
949
+ readonly type: "string";
950
+ readonly format: "date-time";
951
+ };
952
+ };
953
+ readonly presets: readonly ["crud", "view", "duplicate"];
954
+ readonly layout: {
955
+ readonly name: "grid";
956
+ readonly options: {
957
+ readonly title: "name";
958
+ readonly badge: "roles";
959
+ readonly picture: "picture_file";
960
+ readonly information: "email";
961
+ readonly active: "active";
962
+ readonly translateBadge: true;
963
+ };
964
+ };
965
+ readonly individualActions: {
966
+ readonly 'ui:spawnEdit': {
967
+ readonly name: "Editar";
968
+ readonly icon: "pencil";
969
+ };
970
+ readonly 'route:/dashboard/user/changepass': {
971
+ readonly name: "Mudar senha";
972
+ readonly icon: "key";
973
+ readonly fetchItem: true;
974
+ };
975
+ };
976
+ readonly icon: "users";
977
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
978
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
979
+ readonly tableMeta: readonly ["email"];
980
+ readonly formLayout: {
981
+ readonly fields: {
982
+ readonly given_name: {
983
+ readonly span: 3;
984
+ };
985
+ readonly family_name: {
986
+ readonly span: 3;
987
+ };
988
+ };
989
+ };
990
+ }>) => Promise<any>;
991
+ readonly insert: (payload: {
992
+ what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
993
+ readonly $id: "user";
994
+ readonly required: readonly ["name", "roles", "email"];
995
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
996
+ readonly indexes: readonly ["name"];
997
+ readonly freshItem: {
998
+ readonly active: true;
999
+ };
1000
+ readonly properties: {
1001
+ readonly name: {
1002
+ readonly type: "string";
1003
+ };
1004
+ readonly given_name: {
1005
+ readonly getter: (document: any) => string;
1006
+ };
1007
+ readonly family_name: {
1008
+ readonly getter: (document: any) => string;
1009
+ };
1010
+ readonly active: {
1011
+ readonly type: "boolean";
1012
+ };
1013
+ readonly roles: {
1014
+ readonly type: "array";
1015
+ readonly items: {
1016
+ readonly type: "string";
1017
+ };
1018
+ readonly uniqueItems: true;
1019
+ };
1020
+ readonly email: {
1021
+ readonly type: "string";
1022
+ readonly inputType: "email";
1023
+ readonly unique: true;
1024
+ };
1025
+ readonly password: {
1026
+ readonly type: "string";
1027
+ readonly inputType: "password";
1028
+ readonly hidden: true;
1029
+ };
1030
+ readonly phone_number: {
1031
+ readonly type: "string";
1032
+ readonly mask: "(##) #####-####";
1033
+ };
1034
+ readonly picture_file: {
1035
+ readonly $ref: "file";
1036
+ readonly accept: readonly ["image/*"];
1037
+ };
1038
+ readonly picture: {
1039
+ readonly getter: (value: any) => any;
1040
+ };
1041
+ readonly group: {
1042
+ readonly type: "string";
1043
+ };
1044
+ readonly self_registered: {
1045
+ readonly type: "boolean";
1046
+ readonly readOnly: true;
1047
+ };
1048
+ readonly updated_at: {
1049
+ readonly type: "string";
1050
+ readonly format: "date-time";
1051
+ };
1052
+ };
1053
+ readonly presets: readonly ["crud", "view", "duplicate"];
1054
+ readonly layout: {
1055
+ readonly name: "grid";
1056
+ readonly options: {
1057
+ readonly title: "name";
1058
+ readonly badge: "roles";
1059
+ readonly picture: "picture_file";
1060
+ readonly information: "email";
1061
+ readonly active: "active";
1062
+ readonly translateBadge: true;
1063
+ };
1064
+ };
1065
+ readonly individualActions: {
1066
+ readonly 'ui:spawnEdit': {
1067
+ readonly name: "Editar";
1068
+ readonly icon: "pencil";
1069
+ };
1070
+ readonly 'route:/dashboard/user/changepass': {
1071
+ readonly name: "Mudar senha";
1072
+ readonly icon: "key";
1073
+ readonly fetchItem: true;
1074
+ };
1075
+ };
1076
+ readonly icon: "users";
1077
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1078
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1079
+ readonly tableMeta: readonly ["email"];
1080
+ readonly formLayout: {
1081
+ readonly fields: {
1082
+ readonly given_name: {
1083
+ readonly span: 3;
1084
+ };
1085
+ readonly family_name: {
1086
+ readonly span: 3;
1087
+ };
1088
+ };
1089
+ };
1090
+ }>>, "roles">;
1091
+ }, context: import("@aeriajs/types").Context) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
1092
+ readonly authenticate: (props: {
1093
+ email: string;
1094
+ password: string;
1095
+ } | {
1096
+ revalidate: true;
1097
+ }, context: import("@aeriajs/types").Context<{
1098
+ readonly $id: "user";
1099
+ readonly required: readonly ["name", "roles", "email"];
1100
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1101
+ readonly indexes: readonly ["name"];
1102
+ readonly freshItem: {
1103
+ readonly active: true;
1104
+ };
1105
+ readonly properties: {
1106
+ readonly name: {
1107
+ readonly type: "string";
1108
+ };
1109
+ readonly given_name: {
1110
+ readonly getter: (document: any) => string;
1111
+ };
1112
+ readonly family_name: {
1113
+ readonly getter: (document: any) => string;
1114
+ };
1115
+ readonly active: {
1116
+ readonly type: "boolean";
1117
+ };
1118
+ readonly roles: {
1119
+ readonly type: "array";
1120
+ readonly items: {
1121
+ readonly type: "string";
1122
+ };
1123
+ readonly uniqueItems: true;
1124
+ };
1125
+ readonly email: {
1126
+ readonly type: "string";
1127
+ readonly inputType: "email";
1128
+ readonly unique: true;
1129
+ };
1130
+ readonly password: {
1131
+ readonly type: "string";
1132
+ readonly inputType: "password";
1133
+ readonly hidden: true;
1134
+ };
1135
+ readonly phone_number: {
1136
+ readonly type: "string";
1137
+ readonly mask: "(##) #####-####";
1138
+ };
1139
+ readonly picture_file: {
1140
+ readonly $ref: "file";
1141
+ readonly accept: readonly ["image/*"];
1142
+ };
1143
+ readonly picture: {
1144
+ readonly getter: (value: any) => any;
1145
+ };
1146
+ readonly group: {
1147
+ readonly type: "string";
1148
+ };
1149
+ readonly self_registered: {
1150
+ readonly type: "boolean";
1151
+ readonly readOnly: true;
1152
+ };
1153
+ readonly updated_at: {
1154
+ readonly type: "string";
1155
+ readonly format: "date-time";
1156
+ };
1157
+ };
1158
+ readonly presets: readonly ["crud", "view", "duplicate"];
1159
+ readonly layout: {
1160
+ readonly name: "grid";
1161
+ readonly options: {
1162
+ readonly title: "name";
1163
+ readonly badge: "roles";
1164
+ readonly picture: "picture_file";
1165
+ readonly information: "email";
1166
+ readonly active: "active";
1167
+ readonly translateBadge: true;
1168
+ };
1169
+ };
1170
+ readonly individualActions: {
1171
+ readonly 'ui:spawnEdit': {
1172
+ readonly name: "Editar";
1173
+ readonly icon: "pencil";
1174
+ };
1175
+ readonly 'route:/dashboard/user/changepass': {
1176
+ readonly name: "Mudar senha";
1177
+ readonly icon: "key";
1178
+ readonly fetchItem: true;
1179
+ };
1180
+ };
1181
+ readonly icon: "users";
1182
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1183
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1184
+ readonly tableMeta: readonly ["email"];
1185
+ readonly formLayout: {
1186
+ readonly fields: {
1187
+ readonly given_name: {
1188
+ readonly span: 3;
1189
+ };
1190
+ readonly family_name: {
1191
+ readonly span: 3;
1192
+ };
1193
+ };
1194
+ };
1195
+ }>) => Promise<import("@aeriajs/types").Right<{
1196
+ user: Pick<import("@aeriajs/types").SchemaWithId<{
1197
+ readonly $id: "user";
1198
+ readonly required: readonly ["name", "roles", "email"];
1199
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1200
+ readonly indexes: readonly ["name"];
1201
+ readonly freshItem: {
1202
+ readonly active: true;
1203
+ };
1204
+ readonly properties: {
1205
+ readonly name: {
1206
+ readonly type: "string";
1207
+ };
1208
+ readonly given_name: {
1209
+ readonly getter: (document: any) => string;
1210
+ };
1211
+ readonly family_name: {
1212
+ readonly getter: (document: any) => string;
1213
+ };
1214
+ readonly active: {
1215
+ readonly type: "boolean";
1216
+ };
1217
+ readonly roles: {
1218
+ readonly type: "array";
1219
+ readonly items: {
1220
+ readonly type: "string";
1221
+ };
1222
+ readonly uniqueItems: true;
1223
+ };
1224
+ readonly email: {
1225
+ readonly type: "string";
1226
+ readonly inputType: "email";
1227
+ readonly unique: true;
1228
+ };
1229
+ readonly password: {
1230
+ readonly type: "string";
1231
+ readonly inputType: "password";
1232
+ readonly hidden: true;
1233
+ };
1234
+ readonly phone_number: {
1235
+ readonly type: "string";
1236
+ readonly mask: "(##) #####-####";
1237
+ };
1238
+ readonly picture_file: {
1239
+ readonly $ref: "file";
1240
+ readonly accept: readonly ["image/*"];
1241
+ };
1242
+ readonly picture: {
1243
+ readonly getter: (value: any) => any;
1244
+ };
1245
+ readonly group: {
1246
+ readonly type: "string";
1247
+ };
1248
+ readonly self_registered: {
1249
+ readonly type: "boolean";
1250
+ readonly readOnly: true;
1251
+ };
1252
+ readonly updated_at: {
1253
+ readonly type: "string";
1254
+ readonly format: "date-time";
1255
+ };
1256
+ };
1257
+ readonly presets: readonly ["crud", "view", "duplicate"];
1258
+ readonly layout: {
1259
+ readonly name: "grid";
1260
+ readonly options: {
1261
+ readonly title: "name";
1262
+ readonly badge: "roles";
1263
+ readonly picture: "picture_file";
1264
+ readonly information: "email";
1265
+ readonly active: "active";
1266
+ readonly translateBadge: true;
1267
+ };
1268
+ };
1269
+ readonly individualActions: {
1270
+ readonly 'ui:spawnEdit': {
1271
+ readonly name: "Editar";
1272
+ readonly icon: "pencil";
1273
+ };
1274
+ readonly 'route:/dashboard/user/changepass': {
1275
+ readonly name: "Mudar senha";
1276
+ readonly icon: "key";
1277
+ readonly fetchItem: true;
1278
+ };
1279
+ };
1280
+ readonly icon: "users";
1281
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1282
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1283
+ readonly tableMeta: readonly ["email"];
1284
+ readonly formLayout: {
1285
+ readonly fields: {
1286
+ readonly given_name: {
1287
+ readonly span: 3;
1288
+ };
1289
+ readonly family_name: {
1290
+ readonly span: 3;
1291
+ };
1292
+ };
1293
+ };
1294
+ }>, "name" | "roles" | "email" | "active"> & {
1295
+ _id: import("bson").ObjectId | null;
1296
+ };
1297
+ token: {
1298
+ type: "bearer";
1299
+ content: string;
1300
+ };
1301
+ }> | 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>>;
1302
+ readonly activate: (payload: {
1303
+ password: string;
1304
+ }, context: import("@aeriajs/types").Context<{
1305
+ readonly $id: "user";
1306
+ readonly required: readonly ["name", "roles", "email"];
1307
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1308
+ readonly indexes: readonly ["name"];
1309
+ readonly freshItem: {
1310
+ readonly active: true;
1311
+ };
1312
+ readonly properties: {
1313
+ readonly name: {
1314
+ readonly type: "string";
1315
+ };
1316
+ readonly given_name: {
1317
+ readonly getter: (document: any) => string;
1318
+ };
1319
+ readonly family_name: {
1320
+ readonly getter: (document: any) => string;
1321
+ };
1322
+ readonly active: {
1323
+ readonly type: "boolean";
1324
+ };
1325
+ readonly roles: {
1326
+ readonly type: "array";
1327
+ readonly items: {
1328
+ readonly type: "string";
1329
+ };
1330
+ readonly uniqueItems: true;
1331
+ };
1332
+ readonly email: {
1333
+ readonly type: "string";
1334
+ readonly inputType: "email";
1335
+ readonly unique: true;
1336
+ };
1337
+ readonly password: {
1338
+ readonly type: "string";
1339
+ readonly inputType: "password";
1340
+ readonly hidden: true;
1341
+ };
1342
+ readonly phone_number: {
1343
+ readonly type: "string";
1344
+ readonly mask: "(##) #####-####";
1345
+ };
1346
+ readonly picture_file: {
1347
+ readonly $ref: "file";
1348
+ readonly accept: readonly ["image/*"];
1349
+ };
1350
+ readonly picture: {
1351
+ readonly getter: (value: any) => any;
1352
+ };
1353
+ readonly group: {
1354
+ readonly type: "string";
1355
+ };
1356
+ readonly self_registered: {
1357
+ readonly type: "boolean";
1358
+ readonly readOnly: true;
1359
+ };
1360
+ readonly updated_at: {
1361
+ readonly type: "string";
1362
+ readonly format: "date-time";
1363
+ };
1364
+ };
1365
+ readonly presets: readonly ["crud", "view", "duplicate"];
1366
+ readonly layout: {
1367
+ readonly name: "grid";
1368
+ readonly options: {
1369
+ readonly title: "name";
1370
+ readonly badge: "roles";
1371
+ readonly picture: "picture_file";
1372
+ readonly information: "email";
1373
+ readonly active: "active";
1374
+ readonly translateBadge: true;
1375
+ };
1376
+ };
1377
+ readonly individualActions: {
1378
+ readonly 'ui:spawnEdit': {
1379
+ readonly name: "Editar";
1380
+ readonly icon: "pencil";
1381
+ };
1382
+ readonly 'route:/dashboard/user/changepass': {
1383
+ readonly name: "Mudar senha";
1384
+ readonly icon: "key";
1385
+ readonly fetchItem: true;
1386
+ };
1387
+ };
1388
+ readonly icon: "users";
1389
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1390
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1391
+ readonly tableMeta: readonly ["email"];
1392
+ readonly formLayout: {
1393
+ readonly fields: {
1394
+ readonly given_name: {
1395
+ readonly span: 3;
1396
+ };
1397
+ readonly family_name: {
1398
+ readonly span: 3;
1399
+ };
1400
+ };
1401
+ };
1402
+ }>) => 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>>;
1403
+ readonly createAccount: (payload: Omit<Pick<{
1404
+ picture_file: import("@aeriajs/types").SchemaWithId<{
1405
+ readonly $id: "file";
1406
+ readonly owned: "always";
1407
+ readonly presets: readonly ["owned"];
1408
+ readonly indexes: readonly ["filename", "link", "mime"];
1409
+ readonly properties: {
1410
+ readonly mime: {
1411
+ readonly type: "string";
1412
+ };
1413
+ readonly size: {
1414
+ readonly type: "number";
1415
+ };
1416
+ readonly last_modified: {
1417
+ readonly type: "string";
1418
+ readonly format: "date-time";
1419
+ };
1420
+ readonly filename: {
1421
+ readonly type: "string";
1422
+ };
1423
+ readonly absolute_path: {
1424
+ readonly type: "string";
1425
+ };
1426
+ readonly relative_path: {
1427
+ readonly type: "string";
1428
+ };
1429
+ readonly immutable: {
1430
+ readonly type: "boolean";
1431
+ };
1432
+ readonly link: {
1433
+ readonly getter: (value: any) => Promise<string>;
1434
+ };
1435
+ readonly download_link: {
1436
+ readonly getter: (value: any) => Promise<string>;
1437
+ };
1438
+ };
1439
+ readonly actions: {
1440
+ readonly deleteAll: {
1441
+ readonly name: "Remover";
1442
+ readonly ask: true;
1443
+ readonly selection: true;
1444
+ };
1445
+ };
1446
+ readonly individualActions: {
1447
+ readonly remove: {
1448
+ readonly name: "Remover";
1449
+ readonly icon: "trash";
1450
+ readonly ask: true;
1451
+ };
1452
+ };
1453
+ }>;
1454
+ } & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
1455
+ readonly name: {
1456
+ readonly type: "string";
1457
+ };
1458
+ readonly given_name: {
1459
+ readonly getter: (document: any) => string;
1460
+ };
1461
+ readonly family_name: {
1462
+ readonly getter: (document: any) => string;
1463
+ };
1464
+ readonly active: {
1465
+ readonly type: "boolean";
1466
+ };
1467
+ readonly roles: {
1468
+ readonly type: "array";
1469
+ readonly items: {
1470
+ readonly type: "string";
1471
+ };
1472
+ readonly uniqueItems: true;
1473
+ };
1474
+ readonly email: {
1475
+ readonly type: "string";
1476
+ readonly inputType: "email";
1477
+ readonly unique: true;
1478
+ };
1479
+ readonly password: {
1480
+ readonly type: "string";
1481
+ readonly inputType: "password";
1482
+ readonly hidden: true;
1483
+ };
1484
+ readonly phone_number: {
1485
+ readonly type: "string";
1486
+ readonly mask: "(##) #####-####";
1487
+ };
1488
+ readonly picture_file: {
1489
+ readonly $ref: "file";
1490
+ readonly accept: readonly ["image/*"];
1491
+ };
1492
+ readonly picture: {
1493
+ readonly getter: (value: any) => any;
1494
+ };
1495
+ readonly group: {
1496
+ readonly type: "string";
1497
+ };
1498
+ readonly self_registered: {
1499
+ readonly type: "boolean";
1500
+ readonly readOnly: true;
1501
+ };
1502
+ readonly updated_at: {
1503
+ readonly type: "string";
1504
+ readonly format: "date-time";
1505
+ };
1506
+ }>> & {
1507
+ name: string;
1508
+ password: string;
1509
+ updated_at: Date;
1510
+ roles: string[];
1511
+ email: string;
1512
+ active: boolean;
1513
+ phone_number: string;
1514
+ picture_file: never;
1515
+ given_name: string;
1516
+ family_name: string;
1517
+ picture: any;
1518
+ group: string;
1519
+ }, "picture_file">, "name" | "roles" | "email"> & Partial<{
1520
+ picture_file: import("@aeriajs/types").SchemaWithId<{
1521
+ readonly $id: "file";
1522
+ readonly owned: "always";
1523
+ readonly presets: readonly ["owned"];
1524
+ readonly indexes: readonly ["filename", "link", "mime"];
1525
+ readonly properties: {
1526
+ readonly mime: {
1527
+ readonly type: "string";
1528
+ };
1529
+ readonly size: {
1530
+ readonly type: "number";
1531
+ };
1532
+ readonly last_modified: {
1533
+ readonly type: "string";
1534
+ readonly format: "date-time";
1535
+ };
1536
+ readonly filename: {
1537
+ readonly type: "string";
1538
+ };
1539
+ readonly absolute_path: {
1540
+ readonly type: "string";
1541
+ };
1542
+ readonly relative_path: {
1543
+ readonly type: "string";
1544
+ };
1545
+ readonly immutable: {
1546
+ readonly type: "boolean";
1547
+ };
1548
+ readonly link: {
1549
+ readonly getter: (value: any) => Promise<string>;
1550
+ };
1551
+ readonly download_link: {
1552
+ readonly getter: (value: any) => Promise<string>;
1553
+ };
1554
+ };
1555
+ readonly actions: {
1556
+ readonly deleteAll: {
1557
+ readonly name: "Remover";
1558
+ readonly ask: true;
1559
+ readonly selection: true;
1560
+ };
1561
+ };
1562
+ readonly individualActions: {
1563
+ readonly remove: {
1564
+ readonly name: "Remover";
1565
+ readonly icon: "trash";
1566
+ readonly ask: true;
1567
+ };
1568
+ };
1569
+ }>;
1570
+ } & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
1571
+ readonly name: {
1572
+ readonly type: "string";
1573
+ };
1574
+ readonly given_name: {
1575
+ readonly getter: (document: any) => string;
1576
+ };
1577
+ readonly family_name: {
1578
+ readonly getter: (document: any) => string;
1579
+ };
1580
+ readonly active: {
1581
+ readonly type: "boolean";
1582
+ };
1583
+ readonly roles: {
1584
+ readonly type: "array";
1585
+ readonly items: {
1586
+ readonly type: "string";
1587
+ };
1588
+ readonly uniqueItems: true;
1589
+ };
1590
+ readonly email: {
1591
+ readonly type: "string";
1592
+ readonly inputType: "email";
1593
+ readonly unique: true;
1594
+ };
1595
+ readonly password: {
1596
+ readonly type: "string";
1597
+ readonly inputType: "password";
1598
+ readonly hidden: true;
1599
+ };
1600
+ readonly phone_number: {
1601
+ readonly type: "string";
1602
+ readonly mask: "(##) #####-####";
1603
+ };
1604
+ readonly picture_file: {
1605
+ readonly $ref: "file";
1606
+ readonly accept: readonly ["image/*"];
1607
+ };
1608
+ readonly picture: {
1609
+ readonly getter: (value: any) => any;
1610
+ };
1611
+ readonly group: {
1612
+ readonly type: "string";
1613
+ };
1614
+ readonly self_registered: {
1615
+ readonly type: "boolean";
1616
+ readonly readOnly: true;
1617
+ };
1618
+ readonly updated_at: {
1619
+ readonly type: "string";
1620
+ readonly format: "date-time";
1621
+ };
1622
+ }>> & {
1623
+ name: string;
1624
+ password: string;
1625
+ updated_at: Date;
1626
+ roles: string[];
1627
+ email: string;
1628
+ active: boolean;
1629
+ phone_number: string;
1630
+ picture_file: never;
1631
+ given_name: string;
1632
+ family_name: string;
1633
+ picture: any;
1634
+ group: string;
1635
+ }, "picture_file">> & {
1636
+ updated_at?: Date | undefined;
1637
+ created_at?: Date | undefined;
1638
+ }, "roles">, context: import("@aeriajs/types").Context<{
1639
+ readonly $id: "user";
1640
+ readonly required: readonly ["name", "roles", "email"];
1641
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1642
+ readonly indexes: readonly ["name"];
1643
+ readonly freshItem: {
1644
+ readonly active: true;
1645
+ };
1646
+ readonly properties: {
1647
+ readonly name: {
1648
+ readonly type: "string";
1649
+ };
1650
+ readonly given_name: {
1651
+ readonly getter: (document: any) => string;
1652
+ };
1653
+ readonly family_name: {
1654
+ readonly getter: (document: any) => string;
1655
+ };
1656
+ readonly active: {
1657
+ readonly type: "boolean";
1658
+ };
1659
+ readonly roles: {
1660
+ readonly type: "array";
1661
+ readonly items: {
1662
+ readonly type: "string";
1663
+ };
1664
+ readonly uniqueItems: true;
1665
+ };
1666
+ readonly email: {
1667
+ readonly type: "string";
1668
+ readonly inputType: "email";
1669
+ readonly unique: true;
1670
+ };
1671
+ readonly password: {
1672
+ readonly type: "string";
1673
+ readonly inputType: "password";
1674
+ readonly hidden: true;
1675
+ };
1676
+ readonly phone_number: {
1677
+ readonly type: "string";
1678
+ readonly mask: "(##) #####-####";
1679
+ };
1680
+ readonly picture_file: {
1681
+ readonly $ref: "file";
1682
+ readonly accept: readonly ["image/*"];
1683
+ };
1684
+ readonly picture: {
1685
+ readonly getter: (value: any) => any;
1686
+ };
1687
+ readonly group: {
1688
+ readonly type: "string";
1689
+ };
1690
+ readonly self_registered: {
1691
+ readonly type: "boolean";
1692
+ readonly readOnly: true;
1693
+ };
1694
+ readonly updated_at: {
1695
+ readonly type: "string";
1696
+ readonly format: "date-time";
1697
+ };
1698
+ };
1699
+ readonly presets: readonly ["crud", "view", "duplicate"];
1700
+ readonly layout: {
1701
+ readonly name: "grid";
1702
+ readonly options: {
1703
+ readonly title: "name";
1704
+ readonly badge: "roles";
1705
+ readonly picture: "picture_file";
1706
+ readonly information: "email";
1707
+ readonly active: "active";
1708
+ readonly translateBadge: true;
1709
+ };
1710
+ };
1711
+ readonly individualActions: {
1712
+ readonly 'ui:spawnEdit': {
1713
+ readonly name: "Editar";
1714
+ readonly icon: "pencil";
1715
+ };
1716
+ readonly 'route:/dashboard/user/changepass': {
1717
+ readonly name: "Mudar senha";
1718
+ readonly icon: "key";
1719
+ readonly fetchItem: true;
1720
+ };
1721
+ };
1722
+ readonly icon: "users";
1723
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1724
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1725
+ readonly tableMeta: readonly ["email"];
1726
+ readonly formLayout: {
1727
+ readonly fields: {
1728
+ readonly given_name: {
1729
+ readonly span: 3;
1730
+ };
1731
+ readonly family_name: {
1732
+ readonly span: 3;
1733
+ };
1734
+ };
1735
+ };
1736
+ }>) => 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<{
1737
+ readonly $id: "user";
1738
+ readonly required: readonly ["name", "roles", "email"];
1739
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1740
+ readonly indexes: readonly ["name"];
1741
+ readonly freshItem: {
1742
+ readonly active: true;
1743
+ };
1744
+ readonly properties: {
1745
+ readonly name: {
1746
+ readonly type: "string";
1747
+ };
1748
+ readonly given_name: {
1749
+ readonly getter: (document: any) => string;
1750
+ };
1751
+ readonly family_name: {
1752
+ readonly getter: (document: any) => string;
1753
+ };
1754
+ readonly active: {
1755
+ readonly type: "boolean";
1756
+ };
1757
+ readonly roles: {
1758
+ readonly type: "array";
1759
+ readonly items: {
1760
+ readonly type: "string";
1761
+ };
1762
+ readonly uniqueItems: true;
1763
+ };
1764
+ readonly email: {
1765
+ readonly type: "string";
1766
+ readonly inputType: "email";
1767
+ readonly unique: true;
1768
+ };
1769
+ readonly password: {
1770
+ readonly type: "string";
1771
+ readonly inputType: "password";
1772
+ readonly hidden: true;
1773
+ };
1774
+ readonly phone_number: {
1775
+ readonly type: "string";
1776
+ readonly mask: "(##) #####-####";
1777
+ };
1778
+ readonly picture_file: {
1779
+ readonly $ref: "file";
1780
+ readonly accept: readonly ["image/*"];
1781
+ };
1782
+ readonly picture: {
1783
+ readonly getter: (value: any) => any;
1784
+ };
1785
+ readonly group: {
1786
+ readonly type: "string";
1787
+ };
1788
+ readonly self_registered: {
1789
+ readonly type: "boolean";
1790
+ readonly readOnly: true;
1791
+ };
1792
+ readonly updated_at: {
1793
+ readonly type: "string";
1794
+ readonly format: "date-time";
1795
+ };
1796
+ };
1797
+ readonly presets: readonly ["crud", "view", "duplicate"];
1798
+ readonly layout: {
1799
+ readonly name: "grid";
1800
+ readonly options: {
1801
+ readonly title: "name";
1802
+ readonly badge: "roles";
1803
+ readonly picture: "picture_file";
1804
+ readonly information: "email";
1805
+ readonly active: "active";
1806
+ readonly translateBadge: true;
1807
+ };
1808
+ };
1809
+ readonly individualActions: {
1810
+ readonly 'ui:spawnEdit': {
1811
+ readonly name: "Editar";
1812
+ readonly icon: "pencil";
1813
+ };
1814
+ readonly 'route:/dashboard/user/changepass': {
1815
+ readonly name: "Mudar senha";
1816
+ readonly icon: "key";
1817
+ readonly fetchItem: true;
1818
+ };
1819
+ };
1820
+ readonly icon: "users";
1821
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1822
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1823
+ readonly tableMeta: readonly ["email"];
1824
+ readonly formLayout: {
1825
+ readonly fields: {
1826
+ readonly given_name: {
1827
+ readonly span: 3;
1828
+ };
1829
+ readonly family_name: {
1830
+ readonly span: 3;
1831
+ };
1832
+ };
1833
+ };
1834
+ }>>, "_id">>>>;
1835
+ readonly getInfo: (payload: {
1836
+ userId: string;
1837
+ token: string;
1838
+ }, context: import("@aeriajs/types").Context<{
1839
+ readonly $id: "user";
1840
+ readonly required: readonly ["name", "roles", "email"];
1841
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1842
+ readonly indexes: readonly ["name"];
1843
+ readonly freshItem: {
1844
+ readonly active: true;
1845
+ };
1846
+ readonly properties: {
1847
+ readonly name: {
1848
+ readonly type: "string";
1849
+ };
1850
+ readonly given_name: {
1851
+ readonly getter: (document: any) => string;
1852
+ };
1853
+ readonly family_name: {
1854
+ readonly getter: (document: any) => string;
1855
+ };
1856
+ readonly active: {
1857
+ readonly type: "boolean";
1858
+ };
1859
+ readonly roles: {
1860
+ readonly type: "array";
1861
+ readonly items: {
1862
+ readonly type: "string";
1863
+ };
1864
+ readonly uniqueItems: true;
1865
+ };
1866
+ readonly email: {
1867
+ readonly type: "string";
1868
+ readonly inputType: "email";
1869
+ readonly unique: true;
1870
+ };
1871
+ readonly password: {
1872
+ readonly type: "string";
1873
+ readonly inputType: "password";
1874
+ readonly hidden: true;
1875
+ };
1876
+ readonly phone_number: {
1877
+ readonly type: "string";
1878
+ readonly mask: "(##) #####-####";
1879
+ };
1880
+ readonly picture_file: {
1881
+ readonly $ref: "file";
1882
+ readonly accept: readonly ["image/*"];
1883
+ };
1884
+ readonly picture: {
1885
+ readonly getter: (value: any) => any;
1886
+ };
1887
+ readonly group: {
1888
+ readonly type: "string";
1889
+ };
1890
+ readonly self_registered: {
1891
+ readonly type: "boolean";
1892
+ readonly readOnly: true;
1893
+ };
1894
+ readonly updated_at: {
1895
+ readonly type: "string";
1896
+ readonly format: "date-time";
1897
+ };
1898
+ };
1899
+ readonly presets: readonly ["crud", "view", "duplicate"];
1900
+ readonly layout: {
1901
+ readonly name: "grid";
1902
+ readonly options: {
1903
+ readonly title: "name";
1904
+ readonly badge: "roles";
1905
+ readonly picture: "picture_file";
1906
+ readonly information: "email";
1907
+ readonly active: "active";
1908
+ readonly translateBadge: true;
1909
+ };
1910
+ };
1911
+ readonly individualActions: {
1912
+ readonly 'ui:spawnEdit': {
1913
+ readonly name: "Editar";
1914
+ readonly icon: "pencil";
1915
+ };
1916
+ readonly 'route:/dashboard/user/changepass': {
1917
+ readonly name: "Mudar senha";
1918
+ readonly icon: "key";
1919
+ readonly fetchItem: true;
1920
+ };
1921
+ };
1922
+ readonly icon: "users";
1923
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
1924
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1925
+ readonly tableMeta: readonly ["email"];
1926
+ readonly formLayout: {
1927
+ readonly fields: {
1928
+ readonly given_name: {
1929
+ readonly span: 3;
1930
+ };
1931
+ readonly family_name: {
1932
+ readonly span: 3;
1933
+ };
1934
+ };
1935
+ };
1936
+ }>) => 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<{
1937
+ readonly name: string;
1938
+ readonly email: string;
1939
+ }>>;
1940
+ readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
1941
+ };
1942
+ accessControl: {
1943
+ roles: {
1944
+ root: {
1945
+ grantEverything: true;
1946
+ };
1947
+ guest: {
1948
+ grant: "authenticate"[];
1949
+ };
1950
+ };
1951
+ };
1952
+ } & {
1953
+ item: import("@aeriajs/types").SchemaWithId<{
1954
+ readonly $id: "user";
1955
+ readonly required: readonly ["name", "roles", "email"];
1956
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1957
+ readonly indexes: readonly ["name"];
1958
+ readonly freshItem: {
1959
+ readonly active: true;
1960
+ };
1961
+ readonly properties: {
1962
+ readonly name: {
1963
+ readonly type: "string";
1964
+ };
1965
+ readonly given_name: {
1966
+ readonly getter: (document: any) => string;
1967
+ };
1968
+ readonly family_name: {
1969
+ readonly getter: (document: any) => string;
1970
+ };
1971
+ readonly active: {
1972
+ readonly type: "boolean";
1973
+ };
1974
+ readonly roles: {
1975
+ readonly type: "array";
1976
+ readonly items: {
1977
+ readonly type: "string";
1978
+ };
1979
+ readonly uniqueItems: true;
1980
+ };
1981
+ readonly email: {
1982
+ readonly type: "string";
1983
+ readonly inputType: "email";
1984
+ readonly unique: true;
1985
+ };
1986
+ readonly password: {
1987
+ readonly type: "string";
1988
+ readonly inputType: "password";
1989
+ readonly hidden: true;
1990
+ };
1991
+ readonly phone_number: {
1992
+ readonly type: "string";
1993
+ readonly mask: "(##) #####-####";
1994
+ };
1995
+ readonly picture_file: {
1996
+ readonly $ref: "file";
1997
+ readonly accept: readonly ["image/*"];
1998
+ };
1999
+ readonly picture: {
2000
+ readonly getter: (value: any) => any;
2001
+ };
2002
+ readonly group: {
2003
+ readonly type: "string";
2004
+ };
2005
+ readonly self_registered: {
2006
+ readonly type: "boolean";
2007
+ readonly readOnly: true;
2008
+ };
2009
+ readonly updated_at: {
2010
+ readonly type: "string";
2011
+ readonly format: "date-time";
2012
+ };
2013
+ };
2014
+ readonly presets: readonly ["crud", "view", "duplicate"];
2015
+ readonly layout: {
2016
+ readonly name: "grid";
2017
+ readonly options: {
2018
+ readonly title: "name";
2019
+ readonly badge: "roles";
2020
+ readonly picture: "picture_file";
2021
+ readonly information: "email";
2022
+ readonly active: "active";
2023
+ readonly translateBadge: true;
2024
+ };
2025
+ };
2026
+ readonly individualActions: {
2027
+ readonly 'ui:spawnEdit': {
2028
+ readonly name: "Editar";
2029
+ readonly icon: "pencil";
2030
+ };
2031
+ readonly 'route:/dashboard/user/changepass': {
2032
+ readonly name: "Mudar senha";
2033
+ readonly icon: "key";
2034
+ readonly fetchItem: true;
2035
+ };
2036
+ };
2037
+ readonly icon: "users";
2038
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2039
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2040
+ readonly tableMeta: readonly ["email"];
2041
+ readonly formLayout: {
2042
+ readonly fields: {
2043
+ readonly given_name: {
2044
+ readonly span: 3;
2045
+ };
2046
+ readonly family_name: {
2047
+ readonly span: 3;
2048
+ };
2049
+ };
2050
+ };
2051
+ }>;
2052
+ description: {
2053
+ readonly $id: "user";
2054
+ readonly required: readonly ["name", "roles", "email"];
2055
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2056
+ readonly indexes: readonly ["name"];
2057
+ readonly freshItem: {
2058
+ readonly active: true;
2059
+ };
2060
+ readonly properties: {
2061
+ readonly name: {
2062
+ readonly type: "string";
2063
+ };
2064
+ readonly given_name: {
2065
+ readonly getter: (document: any) => string;
2066
+ };
2067
+ readonly family_name: {
2068
+ readonly getter: (document: any) => string;
2069
+ };
2070
+ readonly active: {
2071
+ readonly type: "boolean";
2072
+ };
2073
+ readonly roles: {
2074
+ readonly type: "array";
2075
+ readonly items: {
2076
+ readonly type: "string";
2077
+ };
2078
+ readonly uniqueItems: true;
2079
+ };
2080
+ readonly email: {
2081
+ readonly type: "string";
2082
+ readonly inputType: "email";
2083
+ readonly unique: true;
2084
+ };
2085
+ readonly password: {
2086
+ readonly type: "string";
2087
+ readonly inputType: "password";
2088
+ readonly hidden: true;
2089
+ };
2090
+ readonly phone_number: {
2091
+ readonly type: "string";
2092
+ readonly mask: "(##) #####-####";
2093
+ };
2094
+ readonly picture_file: {
2095
+ readonly $ref: "file";
2096
+ readonly accept: readonly ["image/*"];
2097
+ };
2098
+ readonly picture: {
2099
+ readonly getter: (value: any) => any;
2100
+ };
2101
+ readonly group: {
2102
+ readonly type: "string";
2103
+ };
2104
+ readonly self_registered: {
2105
+ readonly type: "boolean";
2106
+ readonly readOnly: true;
2107
+ };
2108
+ readonly updated_at: {
2109
+ readonly type: "string";
2110
+ readonly format: "date-time";
2111
+ };
2112
+ };
2113
+ readonly presets: readonly ["crud", "view", "duplicate"];
2114
+ readonly layout: {
2115
+ readonly name: "grid";
2116
+ readonly options: {
2117
+ readonly title: "name";
2118
+ readonly badge: "roles";
2119
+ readonly picture: "picture_file";
2120
+ readonly information: "email";
2121
+ readonly active: "active";
2122
+ readonly translateBadge: true;
2123
+ };
2124
+ };
2125
+ readonly individualActions: {
2126
+ readonly 'ui:spawnEdit': {
2127
+ readonly name: "Editar";
2128
+ readonly icon: "pencil";
2129
+ };
2130
+ readonly 'route:/dashboard/user/changepass': {
2131
+ readonly name: "Mudar senha";
2132
+ readonly icon: "key";
2133
+ readonly fetchItem: true;
2134
+ };
2135
+ };
2136
+ readonly icon: "users";
2137
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2138
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2139
+ readonly tableMeta: readonly ["email"];
2140
+ readonly formLayout: {
2141
+ readonly fields: {
2142
+ readonly given_name: {
2143
+ readonly span: 3;
2144
+ };
2145
+ readonly family_name: {
2146
+ readonly span: 3;
2147
+ };
2148
+ };
2149
+ };
2150
+ };
2151
+ functions: {
2152
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
2153
+ readonly $id: "user";
2154
+ readonly required: readonly ["name", "roles", "email"];
2155
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2156
+ readonly indexes: readonly ["name"];
2157
+ readonly freshItem: {
2158
+ readonly active: true;
2159
+ };
2160
+ readonly properties: {
2161
+ readonly name: {
2162
+ readonly type: "string";
2163
+ };
2164
+ readonly given_name: {
2165
+ readonly getter: (document: any) => string;
2166
+ };
2167
+ readonly family_name: {
2168
+ readonly getter: (document: any) => string;
2169
+ };
2170
+ readonly active: {
2171
+ readonly type: "boolean";
2172
+ };
2173
+ readonly roles: {
2174
+ readonly type: "array";
2175
+ readonly items: {
2176
+ readonly type: "string";
2177
+ };
2178
+ readonly uniqueItems: true;
2179
+ };
2180
+ readonly email: {
2181
+ readonly type: "string";
2182
+ readonly inputType: "email";
2183
+ readonly unique: true;
2184
+ };
2185
+ readonly password: {
2186
+ readonly type: "string";
2187
+ readonly inputType: "password";
2188
+ readonly hidden: true;
2189
+ };
2190
+ readonly phone_number: {
2191
+ readonly type: "string";
2192
+ readonly mask: "(##) #####-####";
2193
+ };
2194
+ readonly picture_file: {
2195
+ readonly $ref: "file";
2196
+ readonly accept: readonly ["image/*"];
2197
+ };
2198
+ readonly picture: {
2199
+ readonly getter: (value: any) => any;
2200
+ };
2201
+ readonly group: {
2202
+ readonly type: "string";
2203
+ };
2204
+ readonly self_registered: {
2205
+ readonly type: "boolean";
2206
+ readonly readOnly: true;
2207
+ };
2208
+ readonly updated_at: {
2209
+ readonly type: "string";
2210
+ readonly format: "date-time";
2211
+ };
2212
+ };
2213
+ readonly presets: readonly ["crud", "view", "duplicate"];
2214
+ readonly layout: {
2215
+ readonly name: "grid";
2216
+ readonly options: {
2217
+ readonly title: "name";
2218
+ readonly badge: "roles";
2219
+ readonly picture: "picture_file";
2220
+ readonly information: "email";
2221
+ readonly active: "active";
2222
+ readonly translateBadge: true;
2223
+ };
2224
+ };
2225
+ readonly individualActions: {
2226
+ readonly 'ui:spawnEdit': {
2227
+ readonly name: "Editar";
2228
+ readonly icon: "pencil";
2229
+ };
2230
+ readonly 'route:/dashboard/user/changepass': {
2231
+ readonly name: "Mudar senha";
2232
+ readonly icon: "key";
2233
+ readonly fetchItem: true;
2234
+ };
2235
+ };
2236
+ readonly icon: "users";
2237
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2238
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2239
+ readonly tableMeta: readonly ["email"];
2240
+ readonly formLayout: {
2241
+ readonly fields: {
2242
+ readonly given_name: {
2243
+ readonly span: 3;
2244
+ };
2245
+ readonly family_name: {
2246
+ readonly span: 3;
2247
+ };
2248
+ };
2249
+ };
2250
+ }>>, context: import("@aeriajs/types").Context<{
2251
+ readonly $id: "user";
2252
+ readonly required: readonly ["name", "roles", "email"];
2253
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2254
+ readonly indexes: readonly ["name"];
2255
+ readonly freshItem: {
2256
+ readonly active: true;
2257
+ };
2258
+ readonly properties: {
2259
+ readonly name: {
2260
+ readonly type: "string";
2261
+ };
2262
+ readonly given_name: {
2263
+ readonly getter: (document: any) => string;
2264
+ };
2265
+ readonly family_name: {
2266
+ readonly getter: (document: any) => string;
2267
+ };
2268
+ readonly active: {
2269
+ readonly type: "boolean";
2270
+ };
2271
+ readonly roles: {
2272
+ readonly type: "array";
2273
+ readonly items: {
2274
+ readonly type: "string";
2275
+ };
2276
+ readonly uniqueItems: true;
2277
+ };
2278
+ readonly email: {
2279
+ readonly type: "string";
2280
+ readonly inputType: "email";
2281
+ readonly unique: true;
2282
+ };
2283
+ readonly password: {
2284
+ readonly type: "string";
2285
+ readonly inputType: "password";
2286
+ readonly hidden: true;
2287
+ };
2288
+ readonly phone_number: {
2289
+ readonly type: "string";
2290
+ readonly mask: "(##) #####-####";
2291
+ };
2292
+ readonly picture_file: {
2293
+ readonly $ref: "file";
2294
+ readonly accept: readonly ["image/*"];
2295
+ };
2296
+ readonly picture: {
2297
+ readonly getter: (value: any) => any;
2298
+ };
2299
+ readonly group: {
2300
+ readonly type: "string";
2301
+ };
2302
+ readonly self_registered: {
2303
+ readonly type: "boolean";
2304
+ readonly readOnly: true;
2305
+ };
2306
+ readonly updated_at: {
2307
+ readonly type: "string";
2308
+ readonly format: "date-time";
2309
+ };
2310
+ };
2311
+ readonly presets: readonly ["crud", "view", "duplicate"];
2312
+ readonly layout: {
2313
+ readonly name: "grid";
2314
+ readonly options: {
2315
+ readonly title: "name";
2316
+ readonly badge: "roles";
2317
+ readonly picture: "picture_file";
2318
+ readonly information: "email";
2319
+ readonly active: "active";
2320
+ readonly translateBadge: true;
2321
+ };
2322
+ };
2323
+ readonly individualActions: {
2324
+ readonly 'ui:spawnEdit': {
2325
+ readonly name: "Editar";
2326
+ readonly icon: "pencil";
2327
+ };
2328
+ readonly 'route:/dashboard/user/changepass': {
2329
+ readonly name: "Mudar senha";
2330
+ readonly icon: "key";
2331
+ readonly fetchItem: true;
2332
+ };
2333
+ };
2334
+ readonly icon: "users";
2335
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2336
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2337
+ readonly tableMeta: readonly ["email"];
2338
+ readonly formLayout: {
2339
+ readonly fields: {
2340
+ readonly given_name: {
2341
+ readonly span: 3;
2342
+ };
2343
+ readonly family_name: {
2344
+ readonly span: 3;
2345
+ };
2346
+ };
2347
+ };
2348
+ }>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
2349
+ readonly $id: "user";
2350
+ readonly required: readonly ["name", "roles", "email"];
2351
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2352
+ readonly indexes: readonly ["name"];
2353
+ readonly freshItem: {
2354
+ readonly active: true;
2355
+ };
2356
+ readonly properties: {
2357
+ readonly name: {
2358
+ readonly type: "string";
2359
+ };
2360
+ readonly given_name: {
2361
+ readonly getter: (document: any) => string;
2362
+ };
2363
+ readonly family_name: {
2364
+ readonly getter: (document: any) => string;
2365
+ };
2366
+ readonly active: {
2367
+ readonly type: "boolean";
2368
+ };
2369
+ readonly roles: {
2370
+ readonly type: "array";
2371
+ readonly items: {
2372
+ readonly type: "string";
2373
+ };
2374
+ readonly uniqueItems: true;
2375
+ };
2376
+ readonly email: {
2377
+ readonly type: "string";
2378
+ readonly inputType: "email";
2379
+ readonly unique: true;
2380
+ };
2381
+ readonly password: {
2382
+ readonly type: "string";
2383
+ readonly inputType: "password";
2384
+ readonly hidden: true;
2385
+ };
2386
+ readonly phone_number: {
2387
+ readonly type: "string";
2388
+ readonly mask: "(##) #####-####";
2389
+ };
2390
+ readonly picture_file: {
2391
+ readonly $ref: "file";
2392
+ readonly accept: readonly ["image/*"];
2393
+ };
2394
+ readonly picture: {
2395
+ readonly getter: (value: any) => any;
2396
+ };
2397
+ readonly group: {
2398
+ readonly type: "string";
2399
+ };
2400
+ readonly self_registered: {
2401
+ readonly type: "boolean";
2402
+ readonly readOnly: true;
2403
+ };
2404
+ readonly updated_at: {
2405
+ readonly type: "string";
2406
+ readonly format: "date-time";
2407
+ };
2408
+ };
2409
+ readonly presets: readonly ["crud", "view", "duplicate"];
2410
+ readonly layout: {
2411
+ readonly name: "grid";
2412
+ readonly options: {
2413
+ readonly title: "name";
2414
+ readonly badge: "roles";
2415
+ readonly picture: "picture_file";
2416
+ readonly information: "email";
2417
+ readonly active: "active";
2418
+ readonly translateBadge: true;
2419
+ };
2420
+ };
2421
+ readonly individualActions: {
2422
+ readonly 'ui:spawnEdit': {
2423
+ readonly name: "Editar";
2424
+ readonly icon: "pencil";
2425
+ };
2426
+ readonly 'route:/dashboard/user/changepass': {
2427
+ readonly name: "Mudar senha";
2428
+ readonly icon: "key";
2429
+ readonly fetchItem: true;
2430
+ };
2431
+ };
2432
+ readonly icon: "users";
2433
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2434
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2435
+ readonly tableMeta: readonly ["email"];
2436
+ readonly formLayout: {
2437
+ readonly fields: {
2438
+ readonly given_name: {
2439
+ readonly span: 3;
2440
+ };
2441
+ readonly family_name: {
2442
+ readonly span: 3;
2443
+ };
2444
+ };
2445
+ };
2446
+ }> | null>;
2447
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | null, context: import("@aeriajs/types").Context<{
2448
+ readonly $id: "user";
2449
+ readonly required: readonly ["name", "roles", "email"];
2450
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2451
+ readonly indexes: readonly ["name"];
2452
+ readonly freshItem: {
2453
+ readonly active: true;
2454
+ };
2455
+ readonly properties: {
2456
+ readonly name: {
2457
+ readonly type: "string";
2458
+ };
2459
+ readonly given_name: {
2460
+ readonly getter: (document: any) => string;
2461
+ };
2462
+ readonly family_name: {
2463
+ readonly getter: (document: any) => string;
2464
+ };
2465
+ readonly active: {
2466
+ readonly type: "boolean";
2467
+ };
2468
+ readonly roles: {
2469
+ readonly type: "array";
2470
+ readonly items: {
2471
+ readonly type: "string";
2472
+ };
2473
+ readonly uniqueItems: true;
2474
+ };
2475
+ readonly email: {
2476
+ readonly type: "string";
2477
+ readonly inputType: "email";
2478
+ readonly unique: true;
2479
+ };
2480
+ readonly password: {
2481
+ readonly type: "string";
2482
+ readonly inputType: "password";
2483
+ readonly hidden: true;
2484
+ };
2485
+ readonly phone_number: {
2486
+ readonly type: "string";
2487
+ readonly mask: "(##) #####-####";
2488
+ };
2489
+ readonly picture_file: {
2490
+ readonly $ref: "file";
2491
+ readonly accept: readonly ["image/*"];
2492
+ };
2493
+ readonly picture: {
2494
+ readonly getter: (value: any) => any;
2495
+ };
2496
+ readonly group: {
2497
+ readonly type: "string";
2498
+ };
2499
+ readonly self_registered: {
2500
+ readonly type: "boolean";
2501
+ readonly readOnly: true;
2502
+ };
2503
+ readonly updated_at: {
2504
+ readonly type: "string";
2505
+ readonly format: "date-time";
2506
+ };
2507
+ };
2508
+ readonly presets: readonly ["crud", "view", "duplicate"];
2509
+ readonly layout: {
2510
+ readonly name: "grid";
2511
+ readonly options: {
2512
+ readonly title: "name";
2513
+ readonly badge: "roles";
2514
+ readonly picture: "picture_file";
2515
+ readonly information: "email";
2516
+ readonly active: "active";
2517
+ readonly translateBadge: true;
2518
+ };
2519
+ };
2520
+ readonly individualActions: {
2521
+ readonly 'ui:spawnEdit': {
2522
+ readonly name: "Editar";
2523
+ readonly icon: "pencil";
2524
+ };
2525
+ readonly 'route:/dashboard/user/changepass': {
2526
+ readonly name: "Mudar senha";
2527
+ readonly icon: "key";
2528
+ readonly fetchItem: true;
2529
+ };
2530
+ };
2531
+ readonly icon: "users";
2532
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2533
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2534
+ readonly tableMeta: readonly ["email"];
2535
+ readonly formLayout: {
2536
+ readonly fields: {
2537
+ readonly given_name: {
2538
+ readonly span: 3;
2539
+ };
2540
+ readonly family_name: {
2541
+ readonly span: 3;
2542
+ };
2543
+ };
2544
+ };
2545
+ }>, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
2546
+ readonly $id: "user";
2547
+ readonly required: readonly ["name", "roles", "email"];
2548
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2549
+ readonly indexes: readonly ["name"];
2550
+ readonly freshItem: {
2551
+ readonly active: true;
2552
+ };
2553
+ readonly properties: {
2554
+ readonly name: {
2555
+ readonly type: "string";
2556
+ };
2557
+ readonly given_name: {
2558
+ readonly getter: (document: any) => string;
2559
+ };
2560
+ readonly family_name: {
2561
+ readonly getter: (document: any) => string;
2562
+ };
2563
+ readonly active: {
2564
+ readonly type: "boolean";
2565
+ };
2566
+ readonly roles: {
2567
+ readonly type: "array";
2568
+ readonly items: {
2569
+ readonly type: "string";
2570
+ };
2571
+ readonly uniqueItems: true;
2572
+ };
2573
+ readonly email: {
2574
+ readonly type: "string";
2575
+ readonly inputType: "email";
2576
+ readonly unique: true;
2577
+ };
2578
+ readonly password: {
2579
+ readonly type: "string";
2580
+ readonly inputType: "password";
2581
+ readonly hidden: true;
2582
+ };
2583
+ readonly phone_number: {
2584
+ readonly type: "string";
2585
+ readonly mask: "(##) #####-####";
2586
+ };
2587
+ readonly picture_file: {
2588
+ readonly $ref: "file";
2589
+ readonly accept: readonly ["image/*"];
2590
+ };
2591
+ readonly picture: {
2592
+ readonly getter: (value: any) => any;
2593
+ };
2594
+ readonly group: {
2595
+ readonly type: "string";
2596
+ };
2597
+ readonly self_registered: {
2598
+ readonly type: "boolean";
2599
+ readonly readOnly: true;
2600
+ };
2601
+ readonly updated_at: {
2602
+ readonly type: "string";
2603
+ readonly format: "date-time";
2604
+ };
2605
+ };
2606
+ readonly presets: readonly ["crud", "view", "duplicate"];
2607
+ readonly layout: {
2608
+ readonly name: "grid";
2609
+ readonly options: {
2610
+ readonly title: "name";
2611
+ readonly badge: "roles";
2612
+ readonly picture: "picture_file";
2613
+ readonly information: "email";
2614
+ readonly active: "active";
2615
+ readonly translateBadge: true;
2616
+ };
2617
+ };
2618
+ readonly individualActions: {
2619
+ readonly 'ui:spawnEdit': {
2620
+ readonly name: "Editar";
2621
+ readonly icon: "pencil";
2622
+ };
2623
+ readonly 'route:/dashboard/user/changepass': {
2624
+ readonly name: "Mudar senha";
2625
+ readonly icon: "key";
2626
+ readonly fetchItem: true;
2627
+ };
2628
+ };
2629
+ readonly icon: "users";
2630
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2631
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2632
+ readonly tableMeta: readonly ["email"];
2633
+ readonly formLayout: {
2634
+ readonly fields: {
2635
+ readonly given_name: {
2636
+ readonly span: 3;
2637
+ };
2638
+ readonly family_name: {
2639
+ readonly span: 3;
2640
+ };
2641
+ };
2642
+ };
2643
+ }>[]>;
2644
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
2645
+ readonly $id: "user";
2646
+ readonly required: readonly ["name", "roles", "email"];
2647
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2648
+ readonly indexes: readonly ["name"];
2649
+ readonly freshItem: {
2650
+ readonly active: true;
2651
+ };
2652
+ readonly properties: {
2653
+ readonly name: {
2654
+ readonly type: "string";
2655
+ };
2656
+ readonly given_name: {
2657
+ readonly getter: (document: any) => string;
2658
+ };
2659
+ readonly family_name: {
2660
+ readonly getter: (document: any) => string;
2661
+ };
2662
+ readonly active: {
2663
+ readonly type: "boolean";
2664
+ };
2665
+ readonly roles: {
2666
+ readonly type: "array";
2667
+ readonly items: {
2668
+ readonly type: "string";
2669
+ };
2670
+ readonly uniqueItems: true;
2671
+ };
2672
+ readonly email: {
2673
+ readonly type: "string";
2674
+ readonly inputType: "email";
2675
+ readonly unique: true;
2676
+ };
2677
+ readonly password: {
2678
+ readonly type: "string";
2679
+ readonly inputType: "password";
2680
+ readonly hidden: true;
2681
+ };
2682
+ readonly phone_number: {
2683
+ readonly type: "string";
2684
+ readonly mask: "(##) #####-####";
2685
+ };
2686
+ readonly picture_file: {
2687
+ readonly $ref: "file";
2688
+ readonly accept: readonly ["image/*"];
2689
+ };
2690
+ readonly picture: {
2691
+ readonly getter: (value: any) => any;
2692
+ };
2693
+ readonly group: {
2694
+ readonly type: "string";
2695
+ };
2696
+ readonly self_registered: {
2697
+ readonly type: "boolean";
2698
+ readonly readOnly: true;
2699
+ };
2700
+ readonly updated_at: {
2701
+ readonly type: "string";
2702
+ readonly format: "date-time";
2703
+ };
2704
+ };
2705
+ readonly presets: readonly ["crud", "view", "duplicate"];
2706
+ readonly layout: {
2707
+ readonly name: "grid";
2708
+ readonly options: {
2709
+ readonly title: "name";
2710
+ readonly badge: "roles";
2711
+ readonly picture: "picture_file";
2712
+ readonly information: "email";
2713
+ readonly active: "active";
2714
+ readonly translateBadge: true;
2715
+ };
2716
+ };
2717
+ readonly individualActions: {
2718
+ readonly 'ui:spawnEdit': {
2719
+ readonly name: "Editar";
2720
+ readonly icon: "pencil";
2721
+ };
2722
+ readonly 'route:/dashboard/user/changepass': {
2723
+ readonly name: "Mudar senha";
2724
+ readonly icon: "key";
2725
+ readonly fetchItem: true;
2726
+ };
2727
+ };
2728
+ readonly icon: "users";
2729
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2730
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2731
+ readonly tableMeta: readonly ["email"];
2732
+ readonly formLayout: {
2733
+ readonly fields: {
2734
+ readonly given_name: {
2735
+ readonly span: 3;
2736
+ };
2737
+ readonly family_name: {
2738
+ readonly span: 3;
2739
+ };
2740
+ };
2741
+ };
2742
+ }>>, context: import("@aeriajs/types").Context<{
2743
+ readonly $id: "user";
2744
+ readonly required: readonly ["name", "roles", "email"];
2745
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2746
+ readonly indexes: readonly ["name"];
2747
+ readonly freshItem: {
2748
+ readonly active: true;
2749
+ };
2750
+ readonly properties: {
2751
+ readonly name: {
2752
+ readonly type: "string";
2753
+ };
2754
+ readonly given_name: {
2755
+ readonly getter: (document: any) => string;
2756
+ };
2757
+ readonly family_name: {
2758
+ readonly getter: (document: any) => string;
2759
+ };
2760
+ readonly active: {
2761
+ readonly type: "boolean";
2762
+ };
2763
+ readonly roles: {
2764
+ readonly type: "array";
2765
+ readonly items: {
2766
+ readonly type: "string";
2767
+ };
2768
+ readonly uniqueItems: true;
2769
+ };
2770
+ readonly email: {
2771
+ readonly type: "string";
2772
+ readonly inputType: "email";
2773
+ readonly unique: true;
2774
+ };
2775
+ readonly password: {
2776
+ readonly type: "string";
2777
+ readonly inputType: "password";
2778
+ readonly hidden: true;
2779
+ };
2780
+ readonly phone_number: {
2781
+ readonly type: "string";
2782
+ readonly mask: "(##) #####-####";
2783
+ };
2784
+ readonly picture_file: {
2785
+ readonly $ref: "file";
2786
+ readonly accept: readonly ["image/*"];
2787
+ };
2788
+ readonly picture: {
2789
+ readonly getter: (value: any) => any;
2790
+ };
2791
+ readonly group: {
2792
+ readonly type: "string";
2793
+ };
2794
+ readonly self_registered: {
2795
+ readonly type: "boolean";
2796
+ readonly readOnly: true;
2797
+ };
2798
+ readonly updated_at: {
2799
+ readonly type: "string";
2800
+ readonly format: "date-time";
2801
+ };
2802
+ };
2803
+ readonly presets: readonly ["crud", "view", "duplicate"];
2804
+ readonly layout: {
2805
+ readonly name: "grid";
2806
+ readonly options: {
2807
+ readonly title: "name";
2808
+ readonly badge: "roles";
2809
+ readonly picture: "picture_file";
2810
+ readonly information: "email";
2811
+ readonly active: "active";
2812
+ readonly translateBadge: true;
2813
+ };
2814
+ };
2815
+ readonly individualActions: {
2816
+ readonly 'ui:spawnEdit': {
2817
+ readonly name: "Editar";
2818
+ readonly icon: "pencil";
2819
+ };
2820
+ readonly 'route:/dashboard/user/changepass': {
2821
+ readonly name: "Mudar senha";
2822
+ readonly icon: "key";
2823
+ readonly fetchItem: true;
2824
+ };
2825
+ };
2826
+ readonly icon: "users";
2827
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2828
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2829
+ readonly tableMeta: readonly ["email"];
2830
+ readonly formLayout: {
2831
+ readonly fields: {
2832
+ readonly given_name: {
2833
+ readonly span: 3;
2834
+ };
2835
+ readonly family_name: {
2836
+ readonly span: 3;
2837
+ };
2838
+ };
2839
+ };
2840
+ }>) => Promise<any>;
2841
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").Context<{
2842
+ readonly $id: "user";
2843
+ readonly required: readonly ["name", "roles", "email"];
2844
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2845
+ readonly indexes: readonly ["name"];
2846
+ readonly freshItem: {
2847
+ readonly active: true;
2848
+ };
2849
+ readonly properties: {
2850
+ readonly name: {
2851
+ readonly type: "string";
2852
+ };
2853
+ readonly given_name: {
2854
+ readonly getter: (document: any) => string;
2855
+ };
2856
+ readonly family_name: {
2857
+ readonly getter: (document: any) => string;
2858
+ };
2859
+ readonly active: {
2860
+ readonly type: "boolean";
2861
+ };
2862
+ readonly roles: {
2863
+ readonly type: "array";
2864
+ readonly items: {
2865
+ readonly type: "string";
2866
+ };
2867
+ readonly uniqueItems: true;
2868
+ };
2869
+ readonly email: {
2870
+ readonly type: "string";
2871
+ readonly inputType: "email";
2872
+ readonly unique: true;
2873
+ };
2874
+ readonly password: {
2875
+ readonly type: "string";
2876
+ readonly inputType: "password";
2877
+ readonly hidden: true;
2878
+ };
2879
+ readonly phone_number: {
2880
+ readonly type: "string";
2881
+ readonly mask: "(##) #####-####";
2882
+ };
2883
+ readonly picture_file: {
2884
+ readonly $ref: "file";
2885
+ readonly accept: readonly ["image/*"];
2886
+ };
2887
+ readonly picture: {
2888
+ readonly getter: (value: any) => any;
2889
+ };
2890
+ readonly group: {
2891
+ readonly type: "string";
2892
+ };
2893
+ readonly self_registered: {
2894
+ readonly type: "boolean";
2895
+ readonly readOnly: true;
2896
+ };
2897
+ readonly updated_at: {
2898
+ readonly type: "string";
2899
+ readonly format: "date-time";
2900
+ };
2901
+ };
2902
+ readonly presets: readonly ["crud", "view", "duplicate"];
2903
+ readonly layout: {
2904
+ readonly name: "grid";
2905
+ readonly options: {
2906
+ readonly title: "name";
2907
+ readonly badge: "roles";
2908
+ readonly picture: "picture_file";
2909
+ readonly information: "email";
2910
+ readonly active: "active";
2911
+ readonly translateBadge: true;
2912
+ };
2913
+ };
2914
+ readonly individualActions: {
2915
+ readonly 'ui:spawnEdit': {
2916
+ readonly name: "Editar";
2917
+ readonly icon: "pencil";
2918
+ };
2919
+ readonly 'route:/dashboard/user/changepass': {
2920
+ readonly name: "Mudar senha";
2921
+ readonly icon: "key";
2922
+ readonly fetchItem: true;
2923
+ };
2924
+ };
2925
+ readonly icon: "users";
2926
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2927
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2928
+ readonly tableMeta: readonly ["email"];
2929
+ readonly formLayout: {
2930
+ readonly fields: {
2931
+ readonly given_name: {
2932
+ readonly span: 3;
2933
+ };
2934
+ readonly family_name: {
2935
+ readonly span: 3;
2936
+ };
2937
+ };
2938
+ };
2939
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
2940
+ tempId: any;
2941
+ }>;
2942
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").Context<{
2943
+ readonly $id: "user";
2944
+ readonly required: readonly ["name", "roles", "email"];
2945
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2946
+ readonly indexes: readonly ["name"];
2947
+ readonly freshItem: {
2948
+ readonly active: true;
2949
+ };
2950
+ readonly properties: {
2951
+ readonly name: {
2952
+ readonly type: "string";
2953
+ };
2954
+ readonly given_name: {
2955
+ readonly getter: (document: any) => string;
2956
+ };
2957
+ readonly family_name: {
2958
+ readonly getter: (document: any) => string;
2959
+ };
2960
+ readonly active: {
2961
+ readonly type: "boolean";
2962
+ };
2963
+ readonly roles: {
2964
+ readonly type: "array";
2965
+ readonly items: {
2966
+ readonly type: "string";
2967
+ };
2968
+ readonly uniqueItems: true;
2969
+ };
2970
+ readonly email: {
2971
+ readonly type: "string";
2972
+ readonly inputType: "email";
2973
+ readonly unique: true;
2974
+ };
2975
+ readonly password: {
2976
+ readonly type: "string";
2977
+ readonly inputType: "password";
2978
+ readonly hidden: true;
2979
+ };
2980
+ readonly phone_number: {
2981
+ readonly type: "string";
2982
+ readonly mask: "(##) #####-####";
2983
+ };
2984
+ readonly picture_file: {
2985
+ readonly $ref: "file";
2986
+ readonly accept: readonly ["image/*"];
2987
+ };
2988
+ readonly picture: {
2989
+ readonly getter: (value: any) => any;
2990
+ };
2991
+ readonly group: {
2992
+ readonly type: "string";
2993
+ };
2994
+ readonly self_registered: {
2995
+ readonly type: "boolean";
2996
+ readonly readOnly: true;
2997
+ };
2998
+ readonly updated_at: {
2999
+ readonly type: "string";
3000
+ readonly format: "date-time";
3001
+ };
3002
+ };
3003
+ readonly presets: readonly ["crud", "view", "duplicate"];
3004
+ readonly layout: {
3005
+ readonly name: "grid";
3006
+ readonly options: {
3007
+ readonly title: "name";
3008
+ readonly badge: "roles";
3009
+ readonly picture: "picture_file";
3010
+ readonly information: "email";
3011
+ readonly active: "active";
3012
+ readonly translateBadge: true;
3013
+ };
3014
+ };
3015
+ readonly individualActions: {
3016
+ readonly 'ui:spawnEdit': {
3017
+ readonly name: "Editar";
3018
+ readonly icon: "pencil";
3019
+ };
3020
+ readonly 'route:/dashboard/user/changepass': {
3021
+ readonly name: "Mudar senha";
3022
+ readonly icon: "key";
3023
+ readonly fetchItem: true;
3024
+ };
3025
+ };
3026
+ readonly icon: "users";
3027
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
3028
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3029
+ readonly tableMeta: readonly ["email"];
3030
+ readonly formLayout: {
3031
+ readonly fields: {
3032
+ readonly given_name: {
3033
+ readonly span: 3;
3034
+ };
3035
+ readonly family_name: {
3036
+ readonly span: 3;
3037
+ };
3038
+ };
3039
+ };
3040
+ }>) => Promise<any>;
3041
+ readonly insert: (payload: {
3042
+ what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
3043
+ readonly $id: "user";
3044
+ readonly required: readonly ["name", "roles", "email"];
3045
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
3046
+ readonly indexes: readonly ["name"];
3047
+ readonly freshItem: {
3048
+ readonly active: true;
3049
+ };
3050
+ readonly properties: {
3051
+ readonly name: {
3052
+ readonly type: "string";
3053
+ };
3054
+ readonly given_name: {
3055
+ readonly getter: (document: any) => string;
3056
+ };
3057
+ readonly family_name: {
3058
+ readonly getter: (document: any) => string;
3059
+ };
3060
+ readonly active: {
3061
+ readonly type: "boolean";
3062
+ };
3063
+ readonly roles: {
3064
+ readonly type: "array";
3065
+ readonly items: {
3066
+ readonly type: "string";
3067
+ };
3068
+ readonly uniqueItems: true;
3069
+ };
3070
+ readonly email: {
3071
+ readonly type: "string";
3072
+ readonly inputType: "email";
3073
+ readonly unique: true;
3074
+ };
3075
+ readonly password: {
3076
+ readonly type: "string";
3077
+ readonly inputType: "password";
3078
+ readonly hidden: true;
3079
+ };
3080
+ readonly phone_number: {
3081
+ readonly type: "string";
3082
+ readonly mask: "(##) #####-####";
3083
+ };
3084
+ readonly picture_file: {
3085
+ readonly $ref: "file";
3086
+ readonly accept: readonly ["image/*"];
3087
+ };
3088
+ readonly picture: {
3089
+ readonly getter: (value: any) => any;
3090
+ };
3091
+ readonly group: {
3092
+ readonly type: "string";
3093
+ };
3094
+ readonly self_registered: {
3095
+ readonly type: "boolean";
3096
+ readonly readOnly: true;
3097
+ };
3098
+ readonly updated_at: {
3099
+ readonly type: "string";
3100
+ readonly format: "date-time";
3101
+ };
3102
+ };
3103
+ readonly presets: readonly ["crud", "view", "duplicate"];
3104
+ readonly layout: {
3105
+ readonly name: "grid";
3106
+ readonly options: {
3107
+ readonly title: "name";
3108
+ readonly badge: "roles";
3109
+ readonly picture: "picture_file";
3110
+ readonly information: "email";
3111
+ readonly active: "active";
3112
+ readonly translateBadge: true;
3113
+ };
3114
+ };
3115
+ readonly individualActions: {
3116
+ readonly 'ui:spawnEdit': {
3117
+ readonly name: "Editar";
3118
+ readonly icon: "pencil";
3119
+ };
3120
+ readonly 'route:/dashboard/user/changepass': {
3121
+ readonly name: "Mudar senha";
3122
+ readonly icon: "key";
3123
+ readonly fetchItem: true;
3124
+ };
3125
+ };
3126
+ readonly icon: "users";
3127
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
3128
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3129
+ readonly tableMeta: readonly ["email"];
3130
+ readonly formLayout: {
3131
+ readonly fields: {
3132
+ readonly given_name: {
3133
+ readonly span: 3;
3134
+ };
3135
+ readonly family_name: {
3136
+ readonly span: 3;
3137
+ };
3138
+ };
3139
+ };
3140
+ }>>, "roles">;
3141
+ }, context: import("@aeriajs/types").Context) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
3142
+ readonly authenticate: (props: {
3143
+ email: string;
3144
+ password: string;
3145
+ } | {
3146
+ revalidate: true;
3147
+ }, context: import("@aeriajs/types").Context<{
3148
+ readonly $id: "user";
3149
+ readonly required: readonly ["name", "roles", "email"];
3150
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
3151
+ readonly indexes: readonly ["name"];
3152
+ readonly freshItem: {
3153
+ readonly active: true;
3154
+ };
3155
+ readonly properties: {
3156
+ readonly name: {
3157
+ readonly type: "string";
3158
+ };
3159
+ readonly given_name: {
3160
+ readonly getter: (document: any) => string;
3161
+ };
3162
+ readonly family_name: {
3163
+ readonly getter: (document: any) => string;
3164
+ };
3165
+ readonly active: {
3166
+ readonly type: "boolean";
3167
+ };
3168
+ readonly roles: {
3169
+ readonly type: "array";
3170
+ readonly items: {
3171
+ readonly type: "string";
3172
+ };
3173
+ readonly uniqueItems: true;
3174
+ };
3175
+ readonly email: {
3176
+ readonly type: "string";
3177
+ readonly inputType: "email";
3178
+ readonly unique: true;
3179
+ };
3180
+ readonly password: {
3181
+ readonly type: "string";
3182
+ readonly inputType: "password";
3183
+ readonly hidden: true;
3184
+ };
3185
+ readonly phone_number: {
3186
+ readonly type: "string";
3187
+ readonly mask: "(##) #####-####";
3188
+ };
3189
+ readonly picture_file: {
3190
+ readonly $ref: "file";
3191
+ readonly accept: readonly ["image/*"];
3192
+ };
3193
+ readonly picture: {
3194
+ readonly getter: (value: any) => any;
3195
+ };
3196
+ readonly group: {
3197
+ readonly type: "string";
3198
+ };
3199
+ readonly self_registered: {
3200
+ readonly type: "boolean";
3201
+ readonly readOnly: true;
3202
+ };
3203
+ readonly updated_at: {
3204
+ readonly type: "string";
3205
+ readonly format: "date-time";
3206
+ };
3207
+ };
3208
+ readonly presets: readonly ["crud", "view", "duplicate"];
3209
+ readonly layout: {
3210
+ readonly name: "grid";
3211
+ readonly options: {
3212
+ readonly title: "name";
3213
+ readonly badge: "roles";
3214
+ readonly picture: "picture_file";
3215
+ readonly information: "email";
3216
+ readonly active: "active";
3217
+ readonly translateBadge: true;
3218
+ };
3219
+ };
3220
+ readonly individualActions: {
3221
+ readonly 'ui:spawnEdit': {
3222
+ readonly name: "Editar";
3223
+ readonly icon: "pencil";
3224
+ };
3225
+ readonly 'route:/dashboard/user/changepass': {
3226
+ readonly name: "Mudar senha";
3227
+ readonly icon: "key";
3228
+ readonly fetchItem: true;
3229
+ };
3230
+ };
3231
+ readonly icon: "users";
3232
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
3233
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3234
+ readonly tableMeta: readonly ["email"];
3235
+ readonly formLayout: {
3236
+ readonly fields: {
3237
+ readonly given_name: {
3238
+ readonly span: 3;
3239
+ };
3240
+ readonly family_name: {
3241
+ readonly span: 3;
3242
+ };
3243
+ };
3244
+ };
3245
+ }>) => Promise<import("@aeriajs/types").Right<{
3246
+ user: Pick<import("@aeriajs/types").SchemaWithId<{
3247
+ readonly $id: "user";
3248
+ readonly required: readonly ["name", "roles", "email"];
3249
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
3250
+ readonly indexes: readonly ["name"];
3251
+ readonly freshItem: {
3252
+ readonly active: true;
3253
+ };
3254
+ readonly properties: {
3255
+ readonly name: {
3256
+ readonly type: "string";
3257
+ };
3258
+ readonly given_name: {
3259
+ readonly getter: (document: any) => string;
3260
+ };
3261
+ readonly family_name: {
3262
+ readonly getter: (document: any) => string;
3263
+ };
3264
+ readonly active: {
3265
+ readonly type: "boolean";
3266
+ };
3267
+ readonly roles: {
3268
+ readonly type: "array";
3269
+ readonly items: {
3270
+ readonly type: "string";
3271
+ };
3272
+ readonly uniqueItems: true;
3273
+ };
3274
+ readonly email: {
3275
+ readonly type: "string";
3276
+ readonly inputType: "email";
3277
+ readonly unique: true;
3278
+ };
3279
+ readonly password: {
3280
+ readonly type: "string";
3281
+ readonly inputType: "password";
3282
+ readonly hidden: true;
3283
+ };
3284
+ readonly phone_number: {
3285
+ readonly type: "string";
3286
+ readonly mask: "(##) #####-####";
3287
+ };
3288
+ readonly picture_file: {
3289
+ readonly $ref: "file";
3290
+ readonly accept: readonly ["image/*"];
3291
+ };
3292
+ readonly picture: {
3293
+ readonly getter: (value: any) => any;
3294
+ };
3295
+ readonly group: {
3296
+ readonly type: "string";
3297
+ };
3298
+ readonly self_registered: {
3299
+ readonly type: "boolean";
3300
+ readonly readOnly: true;
3301
+ };
3302
+ readonly updated_at: {
3303
+ readonly type: "string";
3304
+ readonly format: "date-time";
3305
+ };
3306
+ };
3307
+ readonly presets: readonly ["crud", "view", "duplicate"];
3308
+ readonly layout: {
3309
+ readonly name: "grid";
3310
+ readonly options: {
3311
+ readonly title: "name";
3312
+ readonly badge: "roles";
3313
+ readonly picture: "picture_file";
3314
+ readonly information: "email";
3315
+ readonly active: "active";
3316
+ readonly translateBadge: true;
3317
+ };
3318
+ };
3319
+ readonly individualActions: {
3320
+ readonly 'ui:spawnEdit': {
3321
+ readonly name: "Editar";
3322
+ readonly icon: "pencil";
3323
+ };
3324
+ readonly 'route:/dashboard/user/changepass': {
3325
+ readonly name: "Mudar senha";
3326
+ readonly icon: "key";
3327
+ readonly fetchItem: true;
3328
+ };
3329
+ };
3330
+ readonly icon: "users";
3331
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
3332
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3333
+ readonly tableMeta: readonly ["email"];
3334
+ readonly formLayout: {
3335
+ readonly fields: {
3336
+ readonly given_name: {
3337
+ readonly span: 3;
3338
+ };
3339
+ readonly family_name: {
3340
+ readonly span: 3;
3341
+ };
3342
+ };
3343
+ };
3344
+ }>, "name" | "roles" | "email" | "active"> & {
3345
+ _id: import("bson").ObjectId | null;
3346
+ };
3347
+ token: {
3348
+ type: "bearer";
3349
+ content: string;
3350
+ };
3351
+ }> | 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>>;
3352
+ readonly activate: (payload: {
3353
+ password: string;
3354
+ }, context: import("@aeriajs/types").Context<{
3355
+ readonly $id: "user";
3356
+ readonly required: readonly ["name", "roles", "email"];
3357
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
3358
+ readonly indexes: readonly ["name"];
3359
+ readonly freshItem: {
3360
+ readonly active: true;
3361
+ };
3362
+ readonly properties: {
3363
+ readonly name: {
3364
+ readonly type: "string";
3365
+ };
3366
+ readonly given_name: {
3367
+ readonly getter: (document: any) => string;
3368
+ };
3369
+ readonly family_name: {
3370
+ readonly getter: (document: any) => string;
3371
+ };
3372
+ readonly active: {
3373
+ readonly type: "boolean";
3374
+ };
3375
+ readonly roles: {
3376
+ readonly type: "array";
3377
+ readonly items: {
3378
+ readonly type: "string";
3379
+ };
3380
+ readonly uniqueItems: true;
3381
+ };
3382
+ readonly email: {
3383
+ readonly type: "string";
3384
+ readonly inputType: "email";
3385
+ readonly unique: true;
3386
+ };
3387
+ readonly password: {
3388
+ readonly type: "string";
3389
+ readonly inputType: "password";
3390
+ readonly hidden: true;
3391
+ };
3392
+ readonly phone_number: {
3393
+ readonly type: "string";
3394
+ readonly mask: "(##) #####-####";
3395
+ };
3396
+ readonly picture_file: {
3397
+ readonly $ref: "file";
3398
+ readonly accept: readonly ["image/*"];
3399
+ };
3400
+ readonly picture: {
3401
+ readonly getter: (value: any) => any;
3402
+ };
3403
+ readonly group: {
3404
+ readonly type: "string";
3405
+ };
3406
+ readonly self_registered: {
3407
+ readonly type: "boolean";
3408
+ readonly readOnly: true;
3409
+ };
3410
+ readonly updated_at: {
3411
+ readonly type: "string";
3412
+ readonly format: "date-time";
3413
+ };
3414
+ };
3415
+ readonly presets: readonly ["crud", "view", "duplicate"];
3416
+ readonly layout: {
3417
+ readonly name: "grid";
3418
+ readonly options: {
3419
+ readonly title: "name";
3420
+ readonly badge: "roles";
3421
+ readonly picture: "picture_file";
3422
+ readonly information: "email";
3423
+ readonly active: "active";
3424
+ readonly translateBadge: true;
3425
+ };
3426
+ };
3427
+ readonly individualActions: {
3428
+ readonly 'ui:spawnEdit': {
3429
+ readonly name: "Editar";
3430
+ readonly icon: "pencil";
3431
+ };
3432
+ readonly 'route:/dashboard/user/changepass': {
3433
+ readonly name: "Mudar senha";
3434
+ readonly icon: "key";
3435
+ readonly fetchItem: true;
3436
+ };
3437
+ };
3438
+ readonly icon: "users";
3439
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
3440
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3441
+ readonly tableMeta: readonly ["email"];
3442
+ readonly formLayout: {
3443
+ readonly fields: {
3444
+ readonly given_name: {
3445
+ readonly span: 3;
3446
+ };
3447
+ readonly family_name: {
3448
+ readonly span: 3;
3449
+ };
3450
+ };
3451
+ };
3452
+ }>) => 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>>;
3453
+ readonly createAccount: (payload: Omit<Pick<{
3454
+ picture_file: import("@aeriajs/types").SchemaWithId<{
3455
+ readonly $id: "file";
3456
+ readonly owned: "always";
3457
+ readonly presets: readonly ["owned"];
3458
+ readonly indexes: readonly ["filename", "link", "mime"];
3459
+ readonly properties: {
3460
+ readonly mime: {
3461
+ readonly type: "string";
3462
+ };
3463
+ readonly size: {
3464
+ readonly type: "number";
3465
+ };
3466
+ readonly last_modified: {
3467
+ readonly type: "string";
3468
+ readonly format: "date-time";
3469
+ };
3470
+ readonly filename: {
3471
+ readonly type: "string";
3472
+ };
3473
+ readonly absolute_path: {
3474
+ readonly type: "string";
3475
+ };
3476
+ readonly relative_path: {
3477
+ readonly type: "string";
3478
+ };
3479
+ readonly immutable: {
3480
+ readonly type: "boolean";
3481
+ };
3482
+ readonly link: {
3483
+ readonly getter: (value: any) => Promise<string>;
3484
+ };
3485
+ readonly download_link: {
3486
+ readonly getter: (value: any) => Promise<string>;
3487
+ };
3488
+ };
3489
+ readonly actions: {
3490
+ readonly deleteAll: {
3491
+ readonly name: "Remover";
3492
+ readonly ask: true;
3493
+ readonly selection: true;
3494
+ };
3495
+ };
3496
+ readonly individualActions: {
3497
+ readonly remove: {
3498
+ readonly name: "Remover";
3499
+ readonly icon: "trash";
3500
+ readonly ask: true;
3501
+ };
3502
+ };
3503
+ }>;
3504
+ } & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
3505
+ readonly name: {
3506
+ readonly type: "string";
3507
+ };
3508
+ readonly given_name: {
3509
+ readonly getter: (document: any) => string;
3510
+ };
3511
+ readonly family_name: {
3512
+ readonly getter: (document: any) => string;
3513
+ };
3514
+ readonly active: {
3515
+ readonly type: "boolean";
3516
+ };
3517
+ readonly roles: {
3518
+ readonly type: "array";
3519
+ readonly items: {
3520
+ readonly type: "string";
3521
+ };
3522
+ readonly uniqueItems: true;
3523
+ };
3524
+ readonly email: {
3525
+ readonly type: "string";
3526
+ readonly inputType: "email";
3527
+ readonly unique: true;
3528
+ };
3529
+ readonly password: {
3530
+ readonly type: "string";
3531
+ readonly inputType: "password";
3532
+ readonly hidden: true;
3533
+ };
3534
+ readonly phone_number: {
3535
+ readonly type: "string";
3536
+ readonly mask: "(##) #####-####";
3537
+ };
3538
+ readonly picture_file: {
3539
+ readonly $ref: "file";
3540
+ readonly accept: readonly ["image/*"];
3541
+ };
3542
+ readonly picture: {
3543
+ readonly getter: (value: any) => any;
3544
+ };
3545
+ readonly group: {
3546
+ readonly type: "string";
3547
+ };
3548
+ readonly self_registered: {
3549
+ readonly type: "boolean";
3550
+ readonly readOnly: true;
3551
+ };
3552
+ readonly updated_at: {
3553
+ readonly type: "string";
3554
+ readonly format: "date-time";
3555
+ };
3556
+ }>> & {
3557
+ name: string;
3558
+ password: string;
3559
+ updated_at: Date;
3560
+ roles: string[];
3561
+ email: string;
3562
+ active: boolean;
3563
+ phone_number: string;
3564
+ picture_file: never;
3565
+ given_name: string;
3566
+ family_name: string;
3567
+ picture: any;
3568
+ group: string;
3569
+ }, "picture_file">, "name" | "roles" | "email"> & Partial<{
3570
+ picture_file: import("@aeriajs/types").SchemaWithId<{
3571
+ readonly $id: "file";
3572
+ readonly owned: "always";
3573
+ readonly presets: readonly ["owned"];
3574
+ readonly indexes: readonly ["filename", "link", "mime"];
3575
+ readonly properties: {
3576
+ readonly mime: {
3577
+ readonly type: "string";
3578
+ };
3579
+ readonly size: {
3580
+ readonly type: "number";
3581
+ };
3582
+ readonly last_modified: {
3583
+ readonly type: "string";
3584
+ readonly format: "date-time";
3585
+ };
3586
+ readonly filename: {
3587
+ readonly type: "string";
3588
+ };
3589
+ readonly absolute_path: {
3590
+ readonly type: "string";
3591
+ };
3592
+ readonly relative_path: {
3593
+ readonly type: "string";
3594
+ };
3595
+ readonly immutable: {
3596
+ readonly type: "boolean";
3597
+ };
3598
+ readonly link: {
3599
+ readonly getter: (value: any) => Promise<string>;
3600
+ };
3601
+ readonly download_link: {
3602
+ readonly getter: (value: any) => Promise<string>;
3603
+ };
3604
+ };
3605
+ readonly actions: {
3606
+ readonly deleteAll: {
3607
+ readonly name: "Remover";
3608
+ readonly ask: true;
3609
+ readonly selection: true;
3610
+ };
3611
+ };
3612
+ readonly individualActions: {
3613
+ readonly remove: {
3614
+ readonly name: "Remover";
3615
+ readonly icon: "trash";
3616
+ readonly ask: true;
3617
+ };
3618
+ };
3619
+ }>;
3620
+ } & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
3621
+ readonly name: {
3622
+ readonly type: "string";
3623
+ };
3624
+ readonly given_name: {
3625
+ readonly getter: (document: any) => string;
3626
+ };
3627
+ readonly family_name: {
3628
+ readonly getter: (document: any) => string;
3629
+ };
3630
+ readonly active: {
3631
+ readonly type: "boolean";
3632
+ };
3633
+ readonly roles: {
3634
+ readonly type: "array";
3635
+ readonly items: {
3636
+ readonly type: "string";
3637
+ };
3638
+ readonly uniqueItems: true;
3639
+ };
3640
+ readonly email: {
3641
+ readonly type: "string";
3642
+ readonly inputType: "email";
3643
+ readonly unique: true;
3644
+ };
3645
+ readonly password: {
3646
+ readonly type: "string";
3647
+ readonly inputType: "password";
3648
+ readonly hidden: true;
3649
+ };
3650
+ readonly phone_number: {
3651
+ readonly type: "string";
3652
+ readonly mask: "(##) #####-####";
3653
+ };
3654
+ readonly picture_file: {
3655
+ readonly $ref: "file";
3656
+ readonly accept: readonly ["image/*"];
3657
+ };
3658
+ readonly picture: {
3659
+ readonly getter: (value: any) => any;
3660
+ };
3661
+ readonly group: {
3662
+ readonly type: "string";
3663
+ };
3664
+ readonly self_registered: {
3665
+ readonly type: "boolean";
3666
+ readonly readOnly: true;
3667
+ };
3668
+ readonly updated_at: {
3669
+ readonly type: "string";
3670
+ readonly format: "date-time";
3671
+ };
3672
+ }>> & {
3673
+ name: string;
3674
+ password: string;
3675
+ updated_at: Date;
3676
+ roles: string[];
3677
+ email: string;
3678
+ active: boolean;
3679
+ phone_number: string;
3680
+ picture_file: never;
3681
+ given_name: string;
3682
+ family_name: string;
3683
+ picture: any;
3684
+ group: string;
3685
+ }, "picture_file">> & {
3686
+ updated_at?: Date | undefined;
3687
+ created_at?: Date | undefined;
3688
+ }, "roles">, context: import("@aeriajs/types").Context<{
3689
+ readonly $id: "user";
3690
+ readonly required: readonly ["name", "roles", "email"];
3691
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
3692
+ readonly indexes: readonly ["name"];
3693
+ readonly freshItem: {
3694
+ readonly active: true;
3695
+ };
3696
+ readonly properties: {
3697
+ readonly name: {
3698
+ readonly type: "string";
3699
+ };
3700
+ readonly given_name: {
3701
+ readonly getter: (document: any) => string;
3702
+ };
3703
+ readonly family_name: {
3704
+ readonly getter: (document: any) => string;
3705
+ };
3706
+ readonly active: {
3707
+ readonly type: "boolean";
3708
+ };
3709
+ readonly roles: {
3710
+ readonly type: "array";
3711
+ readonly items: {
3712
+ readonly type: "string";
3713
+ };
3714
+ readonly uniqueItems: true;
3715
+ };
3716
+ readonly email: {
3717
+ readonly type: "string";
3718
+ readonly inputType: "email";
3719
+ readonly unique: true;
3720
+ };
3721
+ readonly password: {
3722
+ readonly type: "string";
3723
+ readonly inputType: "password";
3724
+ readonly hidden: true;
3725
+ };
3726
+ readonly phone_number: {
3727
+ readonly type: "string";
3728
+ readonly mask: "(##) #####-####";
3729
+ };
3730
+ readonly picture_file: {
3731
+ readonly $ref: "file";
3732
+ readonly accept: readonly ["image/*"];
3733
+ };
3734
+ readonly picture: {
3735
+ readonly getter: (value: any) => any;
3736
+ };
3737
+ readonly group: {
3738
+ readonly type: "string";
3739
+ };
3740
+ readonly self_registered: {
3741
+ readonly type: "boolean";
3742
+ readonly readOnly: true;
3743
+ };
3744
+ readonly updated_at: {
3745
+ readonly type: "string";
3746
+ readonly format: "date-time";
3747
+ };
3748
+ };
3749
+ readonly presets: readonly ["crud", "view", "duplicate"];
3750
+ readonly layout: {
3751
+ readonly name: "grid";
3752
+ readonly options: {
3753
+ readonly title: "name";
3754
+ readonly badge: "roles";
3755
+ readonly picture: "picture_file";
3756
+ readonly information: "email";
3757
+ readonly active: "active";
3758
+ readonly translateBadge: true;
3759
+ };
3760
+ };
3761
+ readonly individualActions: {
3762
+ readonly 'ui:spawnEdit': {
3763
+ readonly name: "Editar";
3764
+ readonly icon: "pencil";
3765
+ };
3766
+ readonly 'route:/dashboard/user/changepass': {
3767
+ readonly name: "Mudar senha";
3768
+ readonly icon: "key";
3769
+ readonly fetchItem: true;
3770
+ };
3771
+ };
3772
+ readonly icon: "users";
3773
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
3774
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3775
+ readonly tableMeta: readonly ["email"];
3776
+ readonly formLayout: {
3777
+ readonly fields: {
3778
+ readonly given_name: {
3779
+ readonly span: 3;
3780
+ };
3781
+ readonly family_name: {
3782
+ readonly span: 3;
3783
+ };
3784
+ };
3785
+ };
3786
+ }>) => 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<{
3787
+ readonly $id: "user";
3788
+ readonly required: readonly ["name", "roles", "email"];
3789
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
3790
+ readonly indexes: readonly ["name"];
3791
+ readonly freshItem: {
3792
+ readonly active: true;
3793
+ };
3794
+ readonly properties: {
3795
+ readonly name: {
3796
+ readonly type: "string";
3797
+ };
3798
+ readonly given_name: {
3799
+ readonly getter: (document: any) => string;
3800
+ };
3801
+ readonly family_name: {
3802
+ readonly getter: (document: any) => string;
3803
+ };
3804
+ readonly active: {
3805
+ readonly type: "boolean";
3806
+ };
3807
+ readonly roles: {
3808
+ readonly type: "array";
3809
+ readonly items: {
3810
+ readonly type: "string";
3811
+ };
3812
+ readonly uniqueItems: true;
3813
+ };
3814
+ readonly email: {
3815
+ readonly type: "string";
3816
+ readonly inputType: "email";
3817
+ readonly unique: true;
3818
+ };
3819
+ readonly password: {
3820
+ readonly type: "string";
3821
+ readonly inputType: "password";
3822
+ readonly hidden: true;
3823
+ };
3824
+ readonly phone_number: {
3825
+ readonly type: "string";
3826
+ readonly mask: "(##) #####-####";
3827
+ };
3828
+ readonly picture_file: {
3829
+ readonly $ref: "file";
3830
+ readonly accept: readonly ["image/*"];
3831
+ };
3832
+ readonly picture: {
3833
+ readonly getter: (value: any) => any;
3834
+ };
3835
+ readonly group: {
3836
+ readonly type: "string";
3837
+ };
3838
+ readonly self_registered: {
3839
+ readonly type: "boolean";
3840
+ readonly readOnly: true;
3841
+ };
3842
+ readonly updated_at: {
3843
+ readonly type: "string";
3844
+ readonly format: "date-time";
3845
+ };
3846
+ };
3847
+ readonly presets: readonly ["crud", "view", "duplicate"];
3848
+ readonly layout: {
3849
+ readonly name: "grid";
3850
+ readonly options: {
3851
+ readonly title: "name";
3852
+ readonly badge: "roles";
3853
+ readonly picture: "picture_file";
3854
+ readonly information: "email";
3855
+ readonly active: "active";
3856
+ readonly translateBadge: true;
3857
+ };
3858
+ };
3859
+ readonly individualActions: {
3860
+ readonly 'ui:spawnEdit': {
3861
+ readonly name: "Editar";
3862
+ readonly icon: "pencil";
3863
+ };
3864
+ readonly 'route:/dashboard/user/changepass': {
3865
+ readonly name: "Mudar senha";
3866
+ readonly icon: "key";
3867
+ readonly fetchItem: true;
3868
+ };
3869
+ };
3870
+ readonly icon: "users";
3871
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
3872
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3873
+ readonly tableMeta: readonly ["email"];
3874
+ readonly formLayout: {
3875
+ readonly fields: {
3876
+ readonly given_name: {
3877
+ readonly span: 3;
3878
+ };
3879
+ readonly family_name: {
3880
+ readonly span: 3;
3881
+ };
3882
+ };
3883
+ };
3884
+ }>>, "_id">>>>;
3885
+ readonly getInfo: (payload: {
3886
+ userId: string;
3887
+ token: string;
3888
+ }, context: import("@aeriajs/types").Context<{
3889
+ readonly $id: "user";
3890
+ readonly required: readonly ["name", "roles", "email"];
3891
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
3892
+ readonly indexes: readonly ["name"];
3893
+ readonly freshItem: {
3894
+ readonly active: true;
3895
+ };
3896
+ readonly properties: {
3897
+ readonly name: {
3898
+ readonly type: "string";
3899
+ };
3900
+ readonly given_name: {
3901
+ readonly getter: (document: any) => string;
3902
+ };
3903
+ readonly family_name: {
3904
+ readonly getter: (document: any) => string;
3905
+ };
3906
+ readonly active: {
3907
+ readonly type: "boolean";
3908
+ };
3909
+ readonly roles: {
3910
+ readonly type: "array";
3911
+ readonly items: {
3912
+ readonly type: "string";
3913
+ };
3914
+ readonly uniqueItems: true;
3915
+ };
3916
+ readonly email: {
3917
+ readonly type: "string";
3918
+ readonly inputType: "email";
3919
+ readonly unique: true;
3920
+ };
3921
+ readonly password: {
3922
+ readonly type: "string";
3923
+ readonly inputType: "password";
3924
+ readonly hidden: true;
3925
+ };
3926
+ readonly phone_number: {
3927
+ readonly type: "string";
3928
+ readonly mask: "(##) #####-####";
3929
+ };
3930
+ readonly picture_file: {
3931
+ readonly $ref: "file";
3932
+ readonly accept: readonly ["image/*"];
3933
+ };
3934
+ readonly picture: {
3935
+ readonly getter: (value: any) => any;
3936
+ };
3937
+ readonly group: {
3938
+ readonly type: "string";
3939
+ };
3940
+ readonly self_registered: {
3941
+ readonly type: "boolean";
3942
+ readonly readOnly: true;
3943
+ };
3944
+ readonly updated_at: {
3945
+ readonly type: "string";
3946
+ readonly format: "date-time";
3947
+ };
3948
+ };
3949
+ readonly presets: readonly ["crud", "view", "duplicate"];
3950
+ readonly layout: {
3951
+ readonly name: "grid";
3952
+ readonly options: {
3953
+ readonly title: "name";
3954
+ readonly badge: "roles";
3955
+ readonly picture: "picture_file";
3956
+ readonly information: "email";
3957
+ readonly active: "active";
3958
+ readonly translateBadge: true;
3959
+ };
3960
+ };
3961
+ readonly individualActions: {
3962
+ readonly 'ui:spawnEdit': {
3963
+ readonly name: "Editar";
3964
+ readonly icon: "pencil";
3965
+ };
3966
+ readonly 'route:/dashboard/user/changepass': {
3967
+ readonly name: "Mudar senha";
3968
+ readonly icon: "key";
3969
+ readonly fetchItem: true;
3970
+ };
3971
+ };
3972
+ readonly icon: "users";
3973
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
3974
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3975
+ readonly tableMeta: readonly ["email"];
3976
+ readonly formLayout: {
3977
+ readonly fields: {
3978
+ readonly given_name: {
3979
+ readonly span: 3;
3980
+ };
3981
+ readonly family_name: {
3982
+ readonly span: 3;
3983
+ };
3984
+ };
3985
+ };
3986
+ }>) => 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<{
3987
+ readonly name: string;
3988
+ readonly email: string;
3989
+ }>>;
3990
+ readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
3991
+ };
3992
+ };