@aeriajs/builtins 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collections/file/index.d.ts +354 -105
- package/dist/collections/log/index.d.ts +44 -188
- package/dist/collections/resourceUsage/index.d.ts +18 -2
- package/dist/collections/user/index.d.ts +860 -378
- package/dist/index.d.ts +1436 -833
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -60,154 +60,7 @@ export declare const collections: {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
functions: {
|
|
63
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<
|
|
64
|
-
readonly $id: "file";
|
|
65
|
-
readonly owned: "always";
|
|
66
|
-
readonly presets: readonly ["owned"];
|
|
67
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
68
|
-
readonly properties: {
|
|
69
|
-
readonly mime: {
|
|
70
|
-
readonly type: "string";
|
|
71
|
-
};
|
|
72
|
-
readonly size: {
|
|
73
|
-
readonly type: "number";
|
|
74
|
-
};
|
|
75
|
-
readonly last_modified: {
|
|
76
|
-
readonly type: "string";
|
|
77
|
-
readonly format: "date-time";
|
|
78
|
-
};
|
|
79
|
-
readonly filename: {
|
|
80
|
-
readonly type: "string";
|
|
81
|
-
};
|
|
82
|
-
readonly absolute_path: {
|
|
83
|
-
readonly type: "string";
|
|
84
|
-
};
|
|
85
|
-
readonly relative_path: {
|
|
86
|
-
readonly type: "string";
|
|
87
|
-
};
|
|
88
|
-
readonly immutable: {
|
|
89
|
-
readonly type: "boolean";
|
|
90
|
-
};
|
|
91
|
-
readonly link: {
|
|
92
|
-
readonly getter: (value: any) => Promise<string>;
|
|
93
|
-
};
|
|
94
|
-
readonly download_link: {
|
|
95
|
-
readonly getter: (value: any) => Promise<string>;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
readonly actions: {
|
|
99
|
-
readonly deleteAll: {
|
|
100
|
-
readonly name: "Remover";
|
|
101
|
-
readonly ask: true;
|
|
102
|
-
readonly selection: true;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
readonly individualActions: {
|
|
106
|
-
readonly remove: {
|
|
107
|
-
readonly name: "Remover";
|
|
108
|
-
readonly icon: "trash";
|
|
109
|
-
readonly ask: true;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
113
|
-
readonly $id: "file";
|
|
114
|
-
readonly owned: "always";
|
|
115
|
-
readonly presets: readonly ["owned"];
|
|
116
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
117
|
-
readonly properties: {
|
|
118
|
-
readonly mime: {
|
|
119
|
-
readonly type: "string";
|
|
120
|
-
};
|
|
121
|
-
readonly size: {
|
|
122
|
-
readonly type: "number";
|
|
123
|
-
};
|
|
124
|
-
readonly last_modified: {
|
|
125
|
-
readonly type: "string";
|
|
126
|
-
readonly format: "date-time";
|
|
127
|
-
};
|
|
128
|
-
readonly filename: {
|
|
129
|
-
readonly type: "string";
|
|
130
|
-
};
|
|
131
|
-
readonly absolute_path: {
|
|
132
|
-
readonly type: "string";
|
|
133
|
-
};
|
|
134
|
-
readonly relative_path: {
|
|
135
|
-
readonly type: "string";
|
|
136
|
-
};
|
|
137
|
-
readonly immutable: {
|
|
138
|
-
readonly type: "boolean";
|
|
139
|
-
};
|
|
140
|
-
readonly link: {
|
|
141
|
-
readonly getter: (value: any) => Promise<string>;
|
|
142
|
-
};
|
|
143
|
-
readonly download_link: {
|
|
144
|
-
readonly getter: (value: any) => Promise<string>;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
readonly actions: {
|
|
148
|
-
readonly deleteAll: {
|
|
149
|
-
readonly name: "Remover";
|
|
150
|
-
readonly ask: true;
|
|
151
|
-
readonly selection: true;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
readonly individualActions: {
|
|
155
|
-
readonly remove: {
|
|
156
|
-
readonly name: "Remover";
|
|
157
|
-
readonly icon: "trash";
|
|
158
|
-
readonly ask: true;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
}, any>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
162
|
-
readonly $id: "file";
|
|
163
|
-
readonly owned: "always";
|
|
164
|
-
readonly presets: readonly ["owned"];
|
|
165
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
166
|
-
readonly properties: {
|
|
167
|
-
readonly mime: {
|
|
168
|
-
readonly type: "string";
|
|
169
|
-
};
|
|
170
|
-
readonly size: {
|
|
171
|
-
readonly type: "number";
|
|
172
|
-
};
|
|
173
|
-
readonly last_modified: {
|
|
174
|
-
readonly type: "string";
|
|
175
|
-
readonly format: "date-time";
|
|
176
|
-
};
|
|
177
|
-
readonly filename: {
|
|
178
|
-
readonly type: "string";
|
|
179
|
-
};
|
|
180
|
-
readonly absolute_path: {
|
|
181
|
-
readonly type: "string";
|
|
182
|
-
};
|
|
183
|
-
readonly relative_path: {
|
|
184
|
-
readonly type: "string";
|
|
185
|
-
};
|
|
186
|
-
readonly immutable: {
|
|
187
|
-
readonly type: "boolean";
|
|
188
|
-
};
|
|
189
|
-
readonly link: {
|
|
190
|
-
readonly getter: (value: any) => Promise<string>;
|
|
191
|
-
};
|
|
192
|
-
readonly download_link: {
|
|
193
|
-
readonly getter: (value: any) => Promise<string>;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
readonly actions: {
|
|
197
|
-
readonly deleteAll: {
|
|
198
|
-
readonly name: "Remover";
|
|
199
|
-
readonly ask: true;
|
|
200
|
-
readonly selection: true;
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
readonly individualActions: {
|
|
204
|
-
readonly remove: {
|
|
205
|
-
readonly name: "Remover";
|
|
206
|
-
readonly icon: "trash";
|
|
207
|
-
readonly ask: true;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
}> | null>;
|
|
63
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
211
64
|
readonly insert: (payload: {
|
|
212
65
|
what: {
|
|
213
66
|
content: string;
|
|
@@ -515,7 +368,7 @@ export declare const collections: {
|
|
|
515
368
|
};
|
|
516
369
|
}>) => Promise<any>;
|
|
517
370
|
};
|
|
518
|
-
}>, "description" | "functions" | "item"> & {
|
|
371
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
519
372
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
520
373
|
readonly $id: "file";
|
|
521
374
|
readonly owned: "always";
|
|
@@ -616,42 +469,378 @@ export declare const collections: {
|
|
|
616
469
|
};
|
|
617
470
|
};
|
|
618
471
|
};
|
|
619
|
-
functions:
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
472
|
+
functions: {
|
|
473
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
474
|
+
readonly insert: (payload: {
|
|
475
|
+
what: {
|
|
476
|
+
content: string;
|
|
477
|
+
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
478
|
+
readonly $id: "file";
|
|
479
|
+
readonly owned: "always";
|
|
480
|
+
readonly presets: readonly ["owned"];
|
|
481
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
482
|
+
readonly properties: {
|
|
483
|
+
readonly mime: {
|
|
484
|
+
readonly type: "string";
|
|
485
|
+
};
|
|
486
|
+
readonly size: {
|
|
487
|
+
readonly type: "number";
|
|
488
|
+
};
|
|
489
|
+
readonly last_modified: {
|
|
490
|
+
readonly type: "string";
|
|
491
|
+
readonly format: "date-time";
|
|
492
|
+
};
|
|
493
|
+
readonly filename: {
|
|
494
|
+
readonly type: "string";
|
|
495
|
+
};
|
|
496
|
+
readonly absolute_path: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
};
|
|
499
|
+
readonly relative_path: {
|
|
500
|
+
readonly type: "string";
|
|
501
|
+
};
|
|
502
|
+
readonly immutable: {
|
|
503
|
+
readonly type: "boolean";
|
|
504
|
+
};
|
|
505
|
+
readonly link: {
|
|
506
|
+
readonly getter: (value: any) => Promise<string>;
|
|
507
|
+
};
|
|
508
|
+
readonly download_link: {
|
|
509
|
+
readonly getter: (value: any) => Promise<string>;
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
readonly actions: {
|
|
513
|
+
readonly deleteAll: {
|
|
514
|
+
readonly name: "Remover";
|
|
515
|
+
readonly ask: true;
|
|
516
|
+
readonly selection: true;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
readonly individualActions: {
|
|
520
|
+
readonly remove: {
|
|
521
|
+
readonly name: "Remover";
|
|
522
|
+
readonly icon: "trash";
|
|
523
|
+
readonly ask: true;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
}>>, "filename" | "absolute_path" | "_id" | "owner">;
|
|
527
|
+
}, context: import("@aeriajs/types").Context<{
|
|
528
|
+
readonly $id: "file";
|
|
529
|
+
readonly owned: "always";
|
|
530
|
+
readonly presets: readonly ["owned"];
|
|
531
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
532
|
+
readonly properties: {
|
|
533
|
+
readonly mime: {
|
|
534
|
+
readonly type: "string";
|
|
535
|
+
};
|
|
536
|
+
readonly size: {
|
|
537
|
+
readonly type: "number";
|
|
538
|
+
};
|
|
539
|
+
readonly last_modified: {
|
|
540
|
+
readonly type: "string";
|
|
541
|
+
readonly format: "date-time";
|
|
542
|
+
};
|
|
543
|
+
readonly filename: {
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
};
|
|
546
|
+
readonly absolute_path: {
|
|
547
|
+
readonly type: "string";
|
|
548
|
+
};
|
|
549
|
+
readonly relative_path: {
|
|
550
|
+
readonly type: "string";
|
|
551
|
+
};
|
|
552
|
+
readonly immutable: {
|
|
553
|
+
readonly type: "boolean";
|
|
554
|
+
};
|
|
555
|
+
readonly link: {
|
|
556
|
+
readonly getter: (value: any) => Promise<string>;
|
|
557
|
+
};
|
|
558
|
+
readonly download_link: {
|
|
559
|
+
readonly getter: (value: any) => Promise<string>;
|
|
560
|
+
};
|
|
635
561
|
};
|
|
636
|
-
readonly
|
|
637
|
-
readonly
|
|
562
|
+
readonly actions: {
|
|
563
|
+
readonly deleteAll: {
|
|
564
|
+
readonly name: "Remover";
|
|
565
|
+
readonly ask: true;
|
|
566
|
+
readonly selection: true;
|
|
567
|
+
};
|
|
638
568
|
};
|
|
639
|
-
readonly
|
|
640
|
-
readonly
|
|
569
|
+
readonly individualActions: {
|
|
570
|
+
readonly remove: {
|
|
571
|
+
readonly name: "Remover";
|
|
572
|
+
readonly icon: "trash";
|
|
573
|
+
readonly ask: true;
|
|
574
|
+
};
|
|
641
575
|
};
|
|
642
|
-
|
|
643
|
-
|
|
576
|
+
}>) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
577
|
+
readonly download: (payload: {
|
|
578
|
+
fileId: string;
|
|
579
|
+
options: readonly ("download" | "picture")[];
|
|
580
|
+
noHeaders?: boolean | undefined;
|
|
581
|
+
}, context: import("@aeriajs/types").Context<{
|
|
582
|
+
readonly $id: "file";
|
|
583
|
+
readonly owned: "always";
|
|
584
|
+
readonly presets: readonly ["owned"];
|
|
585
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
586
|
+
readonly properties: {
|
|
587
|
+
readonly mime: {
|
|
588
|
+
readonly type: "string";
|
|
589
|
+
};
|
|
590
|
+
readonly size: {
|
|
591
|
+
readonly type: "number";
|
|
592
|
+
};
|
|
593
|
+
readonly last_modified: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
readonly format: "date-time";
|
|
596
|
+
};
|
|
597
|
+
readonly filename: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
};
|
|
600
|
+
readonly absolute_path: {
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
};
|
|
603
|
+
readonly relative_path: {
|
|
604
|
+
readonly type: "string";
|
|
605
|
+
};
|
|
606
|
+
readonly immutable: {
|
|
607
|
+
readonly type: "boolean";
|
|
608
|
+
};
|
|
609
|
+
readonly link: {
|
|
610
|
+
readonly getter: (value: any) => Promise<string>;
|
|
611
|
+
};
|
|
612
|
+
readonly download_link: {
|
|
613
|
+
readonly getter: (value: any) => Promise<string>;
|
|
614
|
+
};
|
|
644
615
|
};
|
|
645
|
-
readonly
|
|
646
|
-
readonly
|
|
616
|
+
readonly actions: {
|
|
617
|
+
readonly deleteAll: {
|
|
618
|
+
readonly name: "Remover";
|
|
619
|
+
readonly ask: true;
|
|
620
|
+
readonly selection: true;
|
|
621
|
+
};
|
|
647
622
|
};
|
|
648
|
-
readonly
|
|
649
|
-
readonly
|
|
623
|
+
readonly individualActions: {
|
|
624
|
+
readonly remove: {
|
|
625
|
+
readonly name: "Remover";
|
|
626
|
+
readonly icon: "trash";
|
|
627
|
+
readonly ask: true;
|
|
628
|
+
};
|
|
650
629
|
};
|
|
651
|
-
}
|
|
630
|
+
}>) => Promise<import("@aeriajs/types").Left<import("./collections/file/download.js").FileReadError.DocumentNotFound> | import("@aeriajs/types").Left<import("./collections/file/download.js").FileReadError.FileNotFound> | import("fs").ReadStream>;
|
|
631
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
|
|
632
|
+
readonly $id: "file";
|
|
633
|
+
readonly owned: "always";
|
|
634
|
+
readonly presets: readonly ["owned"];
|
|
635
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
636
|
+
readonly properties: {
|
|
637
|
+
readonly mime: {
|
|
638
|
+
readonly type: "string";
|
|
639
|
+
};
|
|
640
|
+
readonly size: {
|
|
641
|
+
readonly type: "number";
|
|
642
|
+
};
|
|
643
|
+
readonly last_modified: {
|
|
644
|
+
readonly type: "string";
|
|
645
|
+
readonly format: "date-time";
|
|
646
|
+
};
|
|
647
|
+
readonly filename: {
|
|
648
|
+
readonly type: "string";
|
|
649
|
+
};
|
|
650
|
+
readonly absolute_path: {
|
|
651
|
+
readonly type: "string";
|
|
652
|
+
};
|
|
653
|
+
readonly relative_path: {
|
|
654
|
+
readonly type: "string";
|
|
655
|
+
};
|
|
656
|
+
readonly immutable: {
|
|
657
|
+
readonly type: "boolean";
|
|
658
|
+
};
|
|
659
|
+
readonly link: {
|
|
660
|
+
readonly getter: (value: any) => Promise<string>;
|
|
661
|
+
};
|
|
662
|
+
readonly download_link: {
|
|
663
|
+
readonly getter: (value: any) => Promise<string>;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
readonly actions: {
|
|
667
|
+
readonly deleteAll: {
|
|
668
|
+
readonly name: "Remover";
|
|
669
|
+
readonly ask: true;
|
|
670
|
+
readonly selection: true;
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
readonly individualActions: {
|
|
674
|
+
readonly remove: {
|
|
675
|
+
readonly name: "Remover";
|
|
676
|
+
readonly icon: "trash";
|
|
677
|
+
readonly ask: true;
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
}>>, context: import("@aeriajs/types").Context<{
|
|
681
|
+
readonly $id: "file";
|
|
682
|
+
readonly owned: "always";
|
|
683
|
+
readonly presets: readonly ["owned"];
|
|
684
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
685
|
+
readonly properties: {
|
|
686
|
+
readonly mime: {
|
|
687
|
+
readonly type: "string";
|
|
688
|
+
};
|
|
689
|
+
readonly size: {
|
|
690
|
+
readonly type: "number";
|
|
691
|
+
};
|
|
692
|
+
readonly last_modified: {
|
|
693
|
+
readonly type: "string";
|
|
694
|
+
readonly format: "date-time";
|
|
695
|
+
};
|
|
696
|
+
readonly filename: {
|
|
697
|
+
readonly type: "string";
|
|
698
|
+
};
|
|
699
|
+
readonly absolute_path: {
|
|
700
|
+
readonly type: "string";
|
|
701
|
+
};
|
|
702
|
+
readonly relative_path: {
|
|
703
|
+
readonly type: "string";
|
|
704
|
+
};
|
|
705
|
+
readonly immutable: {
|
|
706
|
+
readonly type: "boolean";
|
|
707
|
+
};
|
|
708
|
+
readonly link: {
|
|
709
|
+
readonly getter: (value: any) => Promise<string>;
|
|
710
|
+
};
|
|
711
|
+
readonly download_link: {
|
|
712
|
+
readonly getter: (value: any) => Promise<string>;
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
readonly actions: {
|
|
716
|
+
readonly deleteAll: {
|
|
717
|
+
readonly name: "Remover";
|
|
718
|
+
readonly ask: true;
|
|
719
|
+
readonly selection: true;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
readonly individualActions: {
|
|
723
|
+
readonly remove: {
|
|
724
|
+
readonly name: "Remover";
|
|
725
|
+
readonly icon: "trash";
|
|
726
|
+
readonly ask: true;
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
}>) => Promise<any>;
|
|
730
|
+
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
731
|
+
readonly $id: "file";
|
|
732
|
+
readonly owned: "always";
|
|
733
|
+
readonly presets: readonly ["owned"];
|
|
734
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
735
|
+
readonly properties: {
|
|
736
|
+
readonly mime: {
|
|
737
|
+
readonly type: "string";
|
|
738
|
+
};
|
|
739
|
+
readonly size: {
|
|
740
|
+
readonly type: "number";
|
|
741
|
+
};
|
|
742
|
+
readonly last_modified: {
|
|
743
|
+
readonly type: "string";
|
|
744
|
+
readonly format: "date-time";
|
|
745
|
+
};
|
|
746
|
+
readonly filename: {
|
|
747
|
+
readonly type: "string";
|
|
748
|
+
};
|
|
749
|
+
readonly absolute_path: {
|
|
750
|
+
readonly type: "string";
|
|
751
|
+
};
|
|
752
|
+
readonly relative_path: {
|
|
753
|
+
readonly type: "string";
|
|
754
|
+
};
|
|
755
|
+
readonly immutable: {
|
|
756
|
+
readonly type: "boolean";
|
|
757
|
+
};
|
|
758
|
+
readonly link: {
|
|
759
|
+
readonly getter: (value: any) => Promise<string>;
|
|
760
|
+
};
|
|
761
|
+
readonly download_link: {
|
|
762
|
+
readonly getter: (value: any) => Promise<string>;
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
readonly actions: {
|
|
766
|
+
readonly deleteAll: {
|
|
767
|
+
readonly name: "Remover";
|
|
768
|
+
readonly ask: true;
|
|
769
|
+
readonly selection: true;
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
readonly individualActions: {
|
|
773
|
+
readonly remove: {
|
|
774
|
+
readonly name: "Remover";
|
|
775
|
+
readonly icon: "trash";
|
|
776
|
+
readonly ask: true;
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
}>) => Promise<any>;
|
|
652
780
|
};
|
|
653
|
-
|
|
654
|
-
|
|
781
|
+
functionContracts: Partial<{
|
|
782
|
+
readonly get: import("@aeriajs/types").Contract;
|
|
783
|
+
readonly insert: import("@aeriajs/types").Contract;
|
|
784
|
+
readonly download: import("@aeriajs/types").Contract;
|
|
785
|
+
readonly remove: import("@aeriajs/types").Contract;
|
|
786
|
+
readonly removeAll: import("@aeriajs/types").Contract;
|
|
787
|
+
}>;
|
|
788
|
+
accessControl: import("@aeriajs/types").AccessControl | import("@aeriajs/types").AccessControl<{
|
|
789
|
+
description: {
|
|
790
|
+
readonly $id: "file";
|
|
791
|
+
readonly owned: "always";
|
|
792
|
+
readonly presets: readonly ["owned"];
|
|
793
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
794
|
+
readonly properties: {
|
|
795
|
+
readonly mime: {
|
|
796
|
+
readonly type: "string";
|
|
797
|
+
};
|
|
798
|
+
readonly size: {
|
|
799
|
+
readonly type: "number";
|
|
800
|
+
};
|
|
801
|
+
readonly last_modified: {
|
|
802
|
+
readonly type: "string";
|
|
803
|
+
readonly format: "date-time";
|
|
804
|
+
};
|
|
805
|
+
readonly filename: {
|
|
806
|
+
readonly type: "string";
|
|
807
|
+
};
|
|
808
|
+
readonly absolute_path: {
|
|
809
|
+
readonly type: "string";
|
|
810
|
+
};
|
|
811
|
+
readonly relative_path: {
|
|
812
|
+
readonly type: "string";
|
|
813
|
+
};
|
|
814
|
+
readonly immutable: {
|
|
815
|
+
readonly type: "boolean";
|
|
816
|
+
};
|
|
817
|
+
readonly link: {
|
|
818
|
+
readonly getter: (value: any) => Promise<string>;
|
|
819
|
+
};
|
|
820
|
+
readonly download_link: {
|
|
821
|
+
readonly getter: (value: any) => Promise<string>;
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
readonly actions: {
|
|
825
|
+
readonly deleteAll: {
|
|
826
|
+
readonly name: "Remover";
|
|
827
|
+
readonly ask: true;
|
|
828
|
+
readonly selection: true;
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
readonly individualActions: {
|
|
832
|
+
readonly remove: {
|
|
833
|
+
readonly name: "Remover";
|
|
834
|
+
readonly icon: "trash";
|
|
835
|
+
readonly ask: true;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
functions: any;
|
|
840
|
+
}> | undefined;
|
|
841
|
+
};
|
|
842
|
+
tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
843
|
+
description: {
|
|
655
844
|
readonly $id: "tempFile";
|
|
656
845
|
readonly temporary: {
|
|
657
846
|
readonly index: "created_at";
|
|
@@ -678,8 +867,9 @@ export declare const collections: {
|
|
|
678
867
|
readonly type: "string";
|
|
679
868
|
};
|
|
680
869
|
};
|
|
681
|
-
}
|
|
682
|
-
|
|
870
|
+
};
|
|
871
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
872
|
+
item: import("@aeriajs/types").SchemaWithId<{
|
|
683
873
|
readonly $id: "tempFile";
|
|
684
874
|
readonly temporary: {
|
|
685
875
|
readonly index: "created_at";
|
|
@@ -706,226 +896,103 @@ export declare const collections: {
|
|
|
706
896
|
readonly type: "string";
|
|
707
897
|
};
|
|
708
898
|
};
|
|
709
|
-
}
|
|
710
|
-
functions: {};
|
|
711
|
-
functionContracts: {};
|
|
712
|
-
};
|
|
713
|
-
log: Omit<import("@aeriajs/types").Collection<{
|
|
899
|
+
}>;
|
|
714
900
|
description: {
|
|
715
|
-
readonly $id: "
|
|
716
|
-
readonly
|
|
901
|
+
readonly $id: "tempFile";
|
|
902
|
+
readonly temporary: {
|
|
903
|
+
readonly index: "created_at";
|
|
904
|
+
readonly expireAfterSeconds: 3600;
|
|
905
|
+
};
|
|
717
906
|
readonly properties: {
|
|
718
|
-
readonly
|
|
719
|
-
readonly $ref: "user";
|
|
720
|
-
readonly noForm: true;
|
|
721
|
-
};
|
|
722
|
-
readonly context: {
|
|
907
|
+
readonly created_at: {
|
|
723
908
|
readonly type: "string";
|
|
909
|
+
readonly format: "date-time";
|
|
724
910
|
};
|
|
725
|
-
readonly
|
|
911
|
+
readonly absolute_path: {
|
|
726
912
|
readonly type: "string";
|
|
727
913
|
};
|
|
728
|
-
readonly
|
|
729
|
-
readonly type: "
|
|
730
|
-
readonly variable: true;
|
|
914
|
+
readonly size: {
|
|
915
|
+
readonly type: "number";
|
|
731
916
|
};
|
|
732
|
-
readonly
|
|
733
|
-
readonly type: "
|
|
734
|
-
readonly format: "date-time";
|
|
917
|
+
readonly mime: {
|
|
918
|
+
readonly type: "number";
|
|
735
919
|
};
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
readonly presets: readonly ["view"];
|
|
739
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
740
|
-
};
|
|
741
|
-
functions: {
|
|
742
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
|
|
743
|
-
readonly $id: "log";
|
|
744
|
-
readonly required: readonly ["context", "message"];
|
|
745
|
-
readonly properties: {
|
|
746
|
-
readonly owner: {
|
|
747
|
-
readonly $ref: "user";
|
|
748
|
-
readonly noForm: true;
|
|
749
|
-
};
|
|
750
|
-
readonly context: {
|
|
751
|
-
readonly type: "string";
|
|
752
|
-
};
|
|
753
|
-
readonly message: {
|
|
754
|
-
readonly type: "string";
|
|
755
|
-
};
|
|
756
|
-
readonly details: {
|
|
757
|
-
readonly type: "object";
|
|
758
|
-
readonly variable: true;
|
|
759
|
-
};
|
|
760
|
-
readonly created_at: {
|
|
761
|
-
readonly type: "string";
|
|
762
|
-
readonly format: "date-time";
|
|
763
|
-
};
|
|
920
|
+
readonly collection: {
|
|
921
|
+
readonly type: "string";
|
|
764
922
|
};
|
|
765
|
-
readonly
|
|
766
|
-
|
|
767
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
768
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
769
|
-
readonly $id: "log";
|
|
770
|
-
readonly required: readonly ["context", "message"];
|
|
771
|
-
readonly properties: {
|
|
772
|
-
readonly owner: {
|
|
773
|
-
readonly $ref: "user";
|
|
774
|
-
readonly noForm: true;
|
|
775
|
-
};
|
|
776
|
-
readonly context: {
|
|
777
|
-
readonly type: "string";
|
|
778
|
-
};
|
|
779
|
-
readonly message: {
|
|
780
|
-
readonly type: "string";
|
|
781
|
-
};
|
|
782
|
-
readonly details: {
|
|
783
|
-
readonly type: "object";
|
|
784
|
-
readonly variable: true;
|
|
785
|
-
};
|
|
786
|
-
readonly created_at: {
|
|
787
|
-
readonly type: "string";
|
|
788
|
-
readonly format: "date-time";
|
|
789
|
-
};
|
|
923
|
+
readonly filename: {
|
|
924
|
+
readonly type: "string";
|
|
790
925
|
};
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
readonly
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
};
|
|
802
|
-
readonly context: {
|
|
803
|
-
readonly type: "string";
|
|
804
|
-
};
|
|
805
|
-
readonly message: {
|
|
806
|
-
readonly type: "string";
|
|
807
|
-
};
|
|
808
|
-
readonly details: {
|
|
809
|
-
readonly type: "object";
|
|
810
|
-
readonly variable: true;
|
|
811
|
-
};
|
|
812
|
-
readonly created_at: {
|
|
813
|
-
readonly type: "string";
|
|
814
|
-
readonly format: "date-time";
|
|
815
|
-
};
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
functions: {};
|
|
929
|
+
functionContracts: Partial<{}>;
|
|
930
|
+
accessControl: import("@aeriajs/types").AccessControl | import("@aeriajs/types").AccessControl<{
|
|
931
|
+
description: {
|
|
932
|
+
readonly $id: "tempFile";
|
|
933
|
+
readonly temporary: {
|
|
934
|
+
readonly index: "created_at";
|
|
935
|
+
readonly expireAfterSeconds: 3600;
|
|
816
936
|
};
|
|
817
|
-
readonly icon: "magnifying-glass";
|
|
818
|
-
readonly presets: readonly ["view"];
|
|
819
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
820
|
-
}> | null>;
|
|
821
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
|
|
822
|
-
readonly $id: "log";
|
|
823
|
-
readonly required: readonly ["context", "message"];
|
|
824
937
|
readonly properties: {
|
|
825
|
-
readonly owner: {
|
|
826
|
-
readonly $ref: "user";
|
|
827
|
-
readonly noForm: true;
|
|
828
|
-
};
|
|
829
|
-
readonly context: {
|
|
830
|
-
readonly type: "string";
|
|
831
|
-
};
|
|
832
|
-
readonly message: {
|
|
833
|
-
readonly type: "string";
|
|
834
|
-
};
|
|
835
|
-
readonly details: {
|
|
836
|
-
readonly type: "object";
|
|
837
|
-
readonly variable: true;
|
|
838
|
-
};
|
|
839
938
|
readonly created_at: {
|
|
840
939
|
readonly type: "string";
|
|
841
940
|
readonly format: "date-time";
|
|
842
941
|
};
|
|
843
|
-
|
|
844
|
-
readonly icon: "magnifying-glass";
|
|
845
|
-
readonly presets: readonly ["view"];
|
|
846
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
847
|
-
}, {}>, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
848
|
-
readonly $id: "log";
|
|
849
|
-
readonly required: readonly ["context", "message"];
|
|
850
|
-
readonly properties: {
|
|
851
|
-
readonly owner: {
|
|
852
|
-
readonly $ref: "user";
|
|
853
|
-
readonly noForm: true;
|
|
854
|
-
};
|
|
855
|
-
readonly context: {
|
|
856
|
-
readonly type: "string";
|
|
857
|
-
};
|
|
858
|
-
readonly message: {
|
|
859
|
-
readonly type: "string";
|
|
860
|
-
};
|
|
861
|
-
readonly details: {
|
|
862
|
-
readonly type: "object";
|
|
863
|
-
readonly variable: true;
|
|
864
|
-
};
|
|
865
|
-
readonly created_at: {
|
|
942
|
+
readonly absolute_path: {
|
|
866
943
|
readonly type: "string";
|
|
867
|
-
readonly format: "date-time";
|
|
868
944
|
};
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
readonly presets: readonly ["view"];
|
|
872
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
873
|
-
}>[]>;
|
|
874
|
-
readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<{
|
|
875
|
-
readonly $id: "log";
|
|
876
|
-
readonly required: readonly ["context", "message"];
|
|
877
|
-
readonly properties: {
|
|
878
|
-
readonly owner: {
|
|
879
|
-
readonly $ref: "user";
|
|
880
|
-
readonly noForm: true;
|
|
945
|
+
readonly size: {
|
|
946
|
+
readonly type: "number";
|
|
881
947
|
};
|
|
882
|
-
readonly
|
|
883
|
-
readonly type: "
|
|
948
|
+
readonly mime: {
|
|
949
|
+
readonly type: "number";
|
|
884
950
|
};
|
|
885
|
-
readonly
|
|
951
|
+
readonly collection: {
|
|
886
952
|
readonly type: "string";
|
|
887
953
|
};
|
|
888
|
-
readonly
|
|
889
|
-
readonly type: "object";
|
|
890
|
-
readonly variable: true;
|
|
891
|
-
};
|
|
892
|
-
readonly created_at: {
|
|
954
|
+
readonly filename: {
|
|
893
955
|
readonly type: "string";
|
|
894
|
-
readonly format: "date-time";
|
|
895
956
|
};
|
|
896
957
|
};
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
readonly
|
|
909
|
-
readonly type: "string";
|
|
910
|
-
};
|
|
911
|
-
readonly message: {
|
|
912
|
-
readonly type: "string";
|
|
913
|
-
};
|
|
914
|
-
readonly details: {
|
|
915
|
-
readonly type: "object";
|
|
916
|
-
readonly variable: true;
|
|
917
|
-
};
|
|
918
|
-
readonly created_at: {
|
|
919
|
-
readonly type: "string";
|
|
920
|
-
readonly format: "date-time";
|
|
921
|
-
};
|
|
958
|
+
};
|
|
959
|
+
functions: any;
|
|
960
|
+
}> | undefined;
|
|
961
|
+
};
|
|
962
|
+
log: Omit<import("@aeriajs/types").Collection<{
|
|
963
|
+
description: {
|
|
964
|
+
readonly $id: "log";
|
|
965
|
+
readonly required: readonly ["context", "message"];
|
|
966
|
+
readonly properties: {
|
|
967
|
+
readonly owner: {
|
|
968
|
+
readonly $ref: "user";
|
|
969
|
+
readonly noForm: true;
|
|
922
970
|
};
|
|
923
|
-
readonly
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
971
|
+
readonly context: {
|
|
972
|
+
readonly type: "string";
|
|
973
|
+
};
|
|
974
|
+
readonly message: {
|
|
975
|
+
readonly type: "string";
|
|
976
|
+
};
|
|
977
|
+
readonly details: {
|
|
978
|
+
readonly type: "object";
|
|
979
|
+
readonly variable: true;
|
|
980
|
+
};
|
|
981
|
+
readonly created_at: {
|
|
982
|
+
readonly type: "string";
|
|
983
|
+
readonly format: "date-time";
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
readonly icon: "magnifying-glass";
|
|
987
|
+
readonly presets: readonly ["view"];
|
|
988
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
989
|
+
};
|
|
990
|
+
functions: {
|
|
991
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
992
|
+
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
993
|
+
readonly insert: <TContext_2 extends import("@aeriajs/types").Context, TDocument_2 = import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
927
994
|
};
|
|
928
|
-
}>, "description" | "functions" | "item"> & {
|
|
995
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
929
996
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
930
997
|
readonly $id: "log";
|
|
931
998
|
readonly required: readonly ["context", "message"];
|
|
@@ -980,8 +1047,46 @@ export declare const collections: {
|
|
|
980
1047
|
readonly presets: readonly ["view"];
|
|
981
1048
|
readonly filters: readonly ["context", "message", "owner"];
|
|
982
1049
|
};
|
|
983
|
-
functions: {
|
|
984
|
-
|
|
1050
|
+
functions: {
|
|
1051
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
1052
|
+
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
1053
|
+
readonly insert: <TContext_2 extends import("@aeriajs/types").Context, TDocument_2 = import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
1054
|
+
};
|
|
1055
|
+
functionContracts: Partial<{
|
|
1056
|
+
readonly get: import("@aeriajs/types").Contract;
|
|
1057
|
+
readonly getAll: import("@aeriajs/types").Contract;
|
|
1058
|
+
readonly insert: import("@aeriajs/types").Contract;
|
|
1059
|
+
}>;
|
|
1060
|
+
accessControl: import("@aeriajs/types").AccessControl | import("@aeriajs/types").AccessControl<{
|
|
1061
|
+
description: {
|
|
1062
|
+
readonly $id: "log";
|
|
1063
|
+
readonly required: readonly ["context", "message"];
|
|
1064
|
+
readonly properties: {
|
|
1065
|
+
readonly owner: {
|
|
1066
|
+
readonly $ref: "user";
|
|
1067
|
+
readonly noForm: true;
|
|
1068
|
+
};
|
|
1069
|
+
readonly context: {
|
|
1070
|
+
readonly type: "string";
|
|
1071
|
+
};
|
|
1072
|
+
readonly message: {
|
|
1073
|
+
readonly type: "string";
|
|
1074
|
+
};
|
|
1075
|
+
readonly details: {
|
|
1076
|
+
readonly type: "object";
|
|
1077
|
+
readonly variable: true;
|
|
1078
|
+
};
|
|
1079
|
+
readonly created_at: {
|
|
1080
|
+
readonly type: "string";
|
|
1081
|
+
readonly format: "date-time";
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
readonly icon: "magnifying-glass";
|
|
1085
|
+
readonly presets: readonly ["view"];
|
|
1086
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
1087
|
+
};
|
|
1088
|
+
functions: any;
|
|
1089
|
+
}> | undefined;
|
|
985
1090
|
};
|
|
986
1091
|
resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
987
1092
|
description: {
|
|
@@ -997,7 +1102,7 @@ export declare const collections: {
|
|
|
997
1102
|
};
|
|
998
1103
|
};
|
|
999
1104
|
};
|
|
1000
|
-
}>, "description" | "functions" | "item"> & {
|
|
1105
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
1001
1106
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
1002
1107
|
readonly $id: "resourceUsage";
|
|
1003
1108
|
readonly required: readonly [];
|
|
@@ -1025,9 +1130,25 @@ export declare const collections: {
|
|
|
1025
1130
|
};
|
|
1026
1131
|
};
|
|
1027
1132
|
functions: {};
|
|
1028
|
-
functionContracts: {}
|
|
1133
|
+
functionContracts: Partial<{}>;
|
|
1134
|
+
accessControl: import("@aeriajs/types").AccessControl | import("@aeriajs/types").AccessControl<{
|
|
1135
|
+
description: {
|
|
1136
|
+
readonly $id: "resourceUsage";
|
|
1137
|
+
readonly required: readonly [];
|
|
1138
|
+
readonly properties: {
|
|
1139
|
+
readonly hits: {
|
|
1140
|
+
readonly type: "integer";
|
|
1141
|
+
};
|
|
1142
|
+
readonly last_maximum_reach: {
|
|
1143
|
+
readonly type: "string";
|
|
1144
|
+
readonly format: "date-time";
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
functions: any;
|
|
1149
|
+
}> | undefined;
|
|
1029
1150
|
};
|
|
1030
|
-
user: {
|
|
1151
|
+
user: Omit<import("@aeriajs/types").Collection<{
|
|
1031
1152
|
description: {
|
|
1032
1153
|
readonly $id: "user";
|
|
1033
1154
|
readonly required: readonly ["name", "roles", "email"];
|
|
@@ -1106,29 +1227,240 @@ export declare const collections: {
|
|
|
1106
1227
|
readonly name: "Editar";
|
|
1107
1228
|
readonly icon: "pencil";
|
|
1108
1229
|
};
|
|
1109
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1110
|
-
readonly name: "Mudar senha";
|
|
1111
|
-
readonly icon: "key";
|
|
1112
|
-
readonly fetchItem: true;
|
|
1230
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1231
|
+
readonly name: "Mudar senha";
|
|
1232
|
+
readonly icon: "key";
|
|
1233
|
+
readonly fetchItem: true;
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1236
|
+
readonly icon: "users";
|
|
1237
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1238
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1239
|
+
readonly tableMeta: readonly ["email"];
|
|
1240
|
+
readonly formLayout: {
|
|
1241
|
+
readonly fields: {
|
|
1242
|
+
readonly given_name: {
|
|
1243
|
+
readonly span: 3;
|
|
1244
|
+
};
|
|
1245
|
+
readonly family_name: {
|
|
1246
|
+
readonly span: 3;
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
functions: {
|
|
1252
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
1253
|
+
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
1254
|
+
readonly remove: <TContext_3 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_3["description"]>>, context: TContext_3) => Promise<any>;
|
|
1255
|
+
readonly upload: (_props: unknown, context: import("@aeriajs/types").Context<{
|
|
1256
|
+
readonly $id: "user";
|
|
1257
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1258
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1259
|
+
readonly indexes: readonly ["name"];
|
|
1260
|
+
readonly freshItem: {
|
|
1261
|
+
readonly active: true;
|
|
1262
|
+
};
|
|
1263
|
+
readonly properties: {
|
|
1264
|
+
readonly name: {
|
|
1265
|
+
readonly type: "string";
|
|
1266
|
+
};
|
|
1267
|
+
readonly given_name: {
|
|
1268
|
+
readonly getter: (document: any) => string;
|
|
1269
|
+
};
|
|
1270
|
+
readonly family_name: {
|
|
1271
|
+
readonly getter: (document: any) => string;
|
|
1272
|
+
};
|
|
1273
|
+
readonly active: {
|
|
1274
|
+
readonly type: "boolean";
|
|
1275
|
+
};
|
|
1276
|
+
readonly roles: {
|
|
1277
|
+
readonly type: "array";
|
|
1278
|
+
readonly items: {
|
|
1279
|
+
readonly type: "string";
|
|
1280
|
+
};
|
|
1281
|
+
readonly uniqueItems: true;
|
|
1282
|
+
};
|
|
1283
|
+
readonly email: {
|
|
1284
|
+
readonly type: "string";
|
|
1285
|
+
readonly inputType: "email";
|
|
1286
|
+
readonly unique: true;
|
|
1287
|
+
};
|
|
1288
|
+
readonly password: {
|
|
1289
|
+
readonly type: "string";
|
|
1290
|
+
readonly inputType: "password";
|
|
1291
|
+
readonly hidden: true;
|
|
1292
|
+
};
|
|
1293
|
+
readonly phone_number: {
|
|
1294
|
+
readonly type: "string";
|
|
1295
|
+
readonly mask: "(##) #####-####";
|
|
1296
|
+
};
|
|
1297
|
+
readonly picture_file: {
|
|
1298
|
+
readonly $ref: "file";
|
|
1299
|
+
readonly accept: readonly ["image/*"];
|
|
1300
|
+
};
|
|
1301
|
+
readonly picture: {
|
|
1302
|
+
readonly getter: (value: any) => any;
|
|
1303
|
+
};
|
|
1304
|
+
readonly group: {
|
|
1305
|
+
readonly type: "string";
|
|
1306
|
+
};
|
|
1307
|
+
readonly self_registered: {
|
|
1308
|
+
readonly type: "boolean";
|
|
1309
|
+
readonly readOnly: true;
|
|
1310
|
+
};
|
|
1311
|
+
readonly updated_at: {
|
|
1312
|
+
readonly type: "string";
|
|
1313
|
+
readonly format: "date-time";
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1317
|
+
readonly layout: {
|
|
1318
|
+
readonly name: "grid";
|
|
1319
|
+
readonly options: {
|
|
1320
|
+
readonly title: "name";
|
|
1321
|
+
readonly badge: "roles";
|
|
1322
|
+
readonly picture: "picture_file";
|
|
1323
|
+
readonly information: "email";
|
|
1324
|
+
readonly active: "active";
|
|
1325
|
+
readonly translateBadge: true;
|
|
1326
|
+
};
|
|
1113
1327
|
};
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
readonly tableMeta: readonly ["email"];
|
|
1119
|
-
readonly formLayout: {
|
|
1120
|
-
readonly fields: {
|
|
1121
|
-
readonly given_name: {
|
|
1122
|
-
readonly span: 3;
|
|
1328
|
+
readonly individualActions: {
|
|
1329
|
+
readonly 'ui:spawnEdit': {
|
|
1330
|
+
readonly name: "Editar";
|
|
1331
|
+
readonly icon: "pencil";
|
|
1123
1332
|
};
|
|
1124
|
-
readonly
|
|
1125
|
-
readonly
|
|
1333
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1334
|
+
readonly name: "Mudar senha";
|
|
1335
|
+
readonly icon: "key";
|
|
1336
|
+
readonly fetchItem: true;
|
|
1126
1337
|
};
|
|
1127
1338
|
};
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1339
|
+
readonly icon: "users";
|
|
1340
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1341
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1342
|
+
readonly tableMeta: readonly ["email"];
|
|
1343
|
+
readonly formLayout: {
|
|
1344
|
+
readonly fields: {
|
|
1345
|
+
readonly given_name: {
|
|
1346
|
+
readonly span: 3;
|
|
1347
|
+
};
|
|
1348
|
+
readonly family_name: {
|
|
1349
|
+
readonly span: 3;
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
1354
|
+
tempId: any;
|
|
1355
|
+
}>;
|
|
1356
|
+
readonly removeFile: <TContext_4 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_4) => Promise<any>;
|
|
1357
|
+
readonly insert: (payload: {
|
|
1358
|
+
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
1359
|
+
readonly $id: "user";
|
|
1360
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1361
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1362
|
+
readonly indexes: readonly ["name"];
|
|
1363
|
+
readonly freshItem: {
|
|
1364
|
+
readonly active: true;
|
|
1365
|
+
};
|
|
1366
|
+
readonly properties: {
|
|
1367
|
+
readonly name: {
|
|
1368
|
+
readonly type: "string";
|
|
1369
|
+
};
|
|
1370
|
+
readonly given_name: {
|
|
1371
|
+
readonly getter: (document: any) => string;
|
|
1372
|
+
};
|
|
1373
|
+
readonly family_name: {
|
|
1374
|
+
readonly getter: (document: any) => string;
|
|
1375
|
+
};
|
|
1376
|
+
readonly active: {
|
|
1377
|
+
readonly type: "boolean";
|
|
1378
|
+
};
|
|
1379
|
+
readonly roles: {
|
|
1380
|
+
readonly type: "array";
|
|
1381
|
+
readonly items: {
|
|
1382
|
+
readonly type: "string";
|
|
1383
|
+
};
|
|
1384
|
+
readonly uniqueItems: true;
|
|
1385
|
+
};
|
|
1386
|
+
readonly email: {
|
|
1387
|
+
readonly type: "string";
|
|
1388
|
+
readonly inputType: "email";
|
|
1389
|
+
readonly unique: true;
|
|
1390
|
+
};
|
|
1391
|
+
readonly password: {
|
|
1392
|
+
readonly type: "string";
|
|
1393
|
+
readonly inputType: "password";
|
|
1394
|
+
readonly hidden: true;
|
|
1395
|
+
};
|
|
1396
|
+
readonly phone_number: {
|
|
1397
|
+
readonly type: "string";
|
|
1398
|
+
readonly mask: "(##) #####-####";
|
|
1399
|
+
};
|
|
1400
|
+
readonly picture_file: {
|
|
1401
|
+
readonly $ref: "file";
|
|
1402
|
+
readonly accept: readonly ["image/*"];
|
|
1403
|
+
};
|
|
1404
|
+
readonly picture: {
|
|
1405
|
+
readonly getter: (value: any) => any;
|
|
1406
|
+
};
|
|
1407
|
+
readonly group: {
|
|
1408
|
+
readonly type: "string";
|
|
1409
|
+
};
|
|
1410
|
+
readonly self_registered: {
|
|
1411
|
+
readonly type: "boolean";
|
|
1412
|
+
readonly readOnly: true;
|
|
1413
|
+
};
|
|
1414
|
+
readonly updated_at: {
|
|
1415
|
+
readonly type: "string";
|
|
1416
|
+
readonly format: "date-time";
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1420
|
+
readonly layout: {
|
|
1421
|
+
readonly name: "grid";
|
|
1422
|
+
readonly options: {
|
|
1423
|
+
readonly title: "name";
|
|
1424
|
+
readonly badge: "roles";
|
|
1425
|
+
readonly picture: "picture_file";
|
|
1426
|
+
readonly information: "email";
|
|
1427
|
+
readonly active: "active";
|
|
1428
|
+
readonly translateBadge: true;
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
readonly individualActions: {
|
|
1432
|
+
readonly 'ui:spawnEdit': {
|
|
1433
|
+
readonly name: "Editar";
|
|
1434
|
+
readonly icon: "pencil";
|
|
1435
|
+
};
|
|
1436
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1437
|
+
readonly name: "Mudar senha";
|
|
1438
|
+
readonly icon: "key";
|
|
1439
|
+
readonly fetchItem: true;
|
|
1440
|
+
};
|
|
1441
|
+
};
|
|
1442
|
+
readonly icon: "users";
|
|
1443
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1444
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1445
|
+
readonly tableMeta: readonly ["email"];
|
|
1446
|
+
readonly formLayout: {
|
|
1447
|
+
readonly fields: {
|
|
1448
|
+
readonly given_name: {
|
|
1449
|
+
readonly span: 3;
|
|
1450
|
+
};
|
|
1451
|
+
readonly family_name: {
|
|
1452
|
+
readonly span: 3;
|
|
1453
|
+
};
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
}>>, "roles">;
|
|
1457
|
+
}, context: import("@aeriajs/types").Context) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
1458
|
+
readonly authenticate: (props: {
|
|
1459
|
+
email: string;
|
|
1460
|
+
password: string;
|
|
1461
|
+
} | {
|
|
1462
|
+
revalidate: true;
|
|
1463
|
+
}, context: import("@aeriajs/types").Context<{
|
|
1132
1464
|
readonly $id: "user";
|
|
1133
1465
|
readonly required: readonly ["name", "roles", "email"];
|
|
1134
1466
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -1206,27 +1538,136 @@ export declare const collections: {
|
|
|
1206
1538
|
readonly name: "Editar";
|
|
1207
1539
|
readonly icon: "pencil";
|
|
1208
1540
|
};
|
|
1209
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1210
|
-
readonly name: "Mudar senha";
|
|
1211
|
-
readonly icon: "key";
|
|
1212
|
-
readonly fetchItem: true;
|
|
1541
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1542
|
+
readonly name: "Mudar senha";
|
|
1543
|
+
readonly icon: "key";
|
|
1544
|
+
readonly fetchItem: true;
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
readonly icon: "users";
|
|
1548
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1549
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1550
|
+
readonly tableMeta: readonly ["email"];
|
|
1551
|
+
readonly formLayout: {
|
|
1552
|
+
readonly fields: {
|
|
1553
|
+
readonly given_name: {
|
|
1554
|
+
readonly span: 3;
|
|
1555
|
+
};
|
|
1556
|
+
readonly family_name: {
|
|
1557
|
+
readonly span: 3;
|
|
1558
|
+
};
|
|
1559
|
+
};
|
|
1560
|
+
};
|
|
1561
|
+
}>) => Promise<import("@aeriajs/types").Right<{
|
|
1562
|
+
user: Pick<import("@aeriajs/types").SchemaWithId<{
|
|
1563
|
+
readonly $id: "user";
|
|
1564
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1565
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1566
|
+
readonly indexes: readonly ["name"];
|
|
1567
|
+
readonly freshItem: {
|
|
1568
|
+
readonly active: true;
|
|
1569
|
+
};
|
|
1570
|
+
readonly properties: {
|
|
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
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1624
|
+
readonly layout: {
|
|
1625
|
+
readonly name: "grid";
|
|
1626
|
+
readonly options: {
|
|
1627
|
+
readonly title: "name";
|
|
1628
|
+
readonly badge: "roles";
|
|
1629
|
+
readonly picture: "picture_file";
|
|
1630
|
+
readonly information: "email";
|
|
1631
|
+
readonly active: "active";
|
|
1632
|
+
readonly translateBadge: true;
|
|
1633
|
+
};
|
|
1213
1634
|
};
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
readonly tableMeta: readonly ["email"];
|
|
1219
|
-
readonly formLayout: {
|
|
1220
|
-
readonly fields: {
|
|
1221
|
-
readonly given_name: {
|
|
1222
|
-
readonly span: 3;
|
|
1635
|
+
readonly individualActions: {
|
|
1636
|
+
readonly 'ui:spawnEdit': {
|
|
1637
|
+
readonly name: "Editar";
|
|
1638
|
+
readonly icon: "pencil";
|
|
1223
1639
|
};
|
|
1224
|
-
readonly
|
|
1225
|
-
readonly
|
|
1640
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1641
|
+
readonly name: "Mudar senha";
|
|
1642
|
+
readonly icon: "key";
|
|
1643
|
+
readonly fetchItem: true;
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
1646
|
+
readonly icon: "users";
|
|
1647
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1648
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1649
|
+
readonly tableMeta: readonly ["email"];
|
|
1650
|
+
readonly formLayout: {
|
|
1651
|
+
readonly fields: {
|
|
1652
|
+
readonly given_name: {
|
|
1653
|
+
readonly span: 3;
|
|
1654
|
+
};
|
|
1655
|
+
readonly family_name: {
|
|
1656
|
+
readonly span: 3;
|
|
1657
|
+
};
|
|
1226
1658
|
};
|
|
1227
1659
|
};
|
|
1660
|
+
}>, "name" | "roles" | "email" | "active"> & {
|
|
1661
|
+
_id: import("bson").ObjectId | null;
|
|
1228
1662
|
};
|
|
1229
|
-
|
|
1663
|
+
token: {
|
|
1664
|
+
type: "bearer";
|
|
1665
|
+
content: string;
|
|
1666
|
+
};
|
|
1667
|
+
}> | import("@aeriajs/types").Left<import("./collections/user/authenticate.js").AuthenticationErrors.Unauthenticated> | import("@aeriajs/types").Left<import("./collections/user/authenticate.js").AuthenticationErrors.InvalidCredentials> | import("@aeriajs/types").Left<import("./collections/user/authenticate.js").AuthenticationErrors.InactiveUser>>;
|
|
1668
|
+
readonly activate: (payload: {
|
|
1669
|
+
password: string;
|
|
1670
|
+
}, context: import("@aeriajs/types").Context<{
|
|
1230
1671
|
readonly $id: "user";
|
|
1231
1672
|
readonly required: readonly ["name", "roles", "email"];
|
|
1232
1673
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -1324,106 +1765,243 @@ export declare const collections: {
|
|
|
1324
1765
|
};
|
|
1325
1766
|
};
|
|
1326
1767
|
};
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
readonly
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
readonly name: {
|
|
1337
|
-
readonly type: "string";
|
|
1338
|
-
};
|
|
1339
|
-
readonly given_name: {
|
|
1340
|
-
readonly getter: (document: any) => string;
|
|
1341
|
-
};
|
|
1342
|
-
readonly family_name: {
|
|
1343
|
-
readonly getter: (document: any) => string;
|
|
1344
|
-
};
|
|
1345
|
-
readonly active: {
|
|
1346
|
-
readonly type: "boolean";
|
|
1347
|
-
};
|
|
1348
|
-
readonly roles: {
|
|
1349
|
-
readonly type: "array";
|
|
1350
|
-
readonly items: {
|
|
1768
|
+
}>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
|
|
1769
|
+
readonly createAccount: (payload: Omit<Pick<{
|
|
1770
|
+
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
1771
|
+
readonly $id: "file";
|
|
1772
|
+
readonly owned: "always";
|
|
1773
|
+
readonly presets: readonly ["owned"];
|
|
1774
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1775
|
+
readonly properties: {
|
|
1776
|
+
readonly mime: {
|
|
1351
1777
|
readonly type: "string";
|
|
1352
1778
|
};
|
|
1353
|
-
readonly
|
|
1779
|
+
readonly size: {
|
|
1780
|
+
readonly type: "number";
|
|
1781
|
+
};
|
|
1782
|
+
readonly last_modified: {
|
|
1783
|
+
readonly type: "string";
|
|
1784
|
+
readonly format: "date-time";
|
|
1785
|
+
};
|
|
1786
|
+
readonly filename: {
|
|
1787
|
+
readonly type: "string";
|
|
1788
|
+
};
|
|
1789
|
+
readonly absolute_path: {
|
|
1790
|
+
readonly type: "string";
|
|
1791
|
+
};
|
|
1792
|
+
readonly relative_path: {
|
|
1793
|
+
readonly type: "string";
|
|
1794
|
+
};
|
|
1795
|
+
readonly immutable: {
|
|
1796
|
+
readonly type: "boolean";
|
|
1797
|
+
};
|
|
1798
|
+
readonly link: {
|
|
1799
|
+
readonly getter: (value: any) => Promise<string>;
|
|
1800
|
+
};
|
|
1801
|
+
readonly download_link: {
|
|
1802
|
+
readonly getter: (value: any) => Promise<string>;
|
|
1803
|
+
};
|
|
1354
1804
|
};
|
|
1355
|
-
readonly
|
|
1356
|
-
readonly
|
|
1357
|
-
|
|
1358
|
-
|
|
1805
|
+
readonly actions: {
|
|
1806
|
+
readonly deleteAll: {
|
|
1807
|
+
readonly name: "Remover";
|
|
1808
|
+
readonly ask: true;
|
|
1809
|
+
readonly selection: true;
|
|
1810
|
+
};
|
|
1359
1811
|
};
|
|
1360
|
-
readonly
|
|
1361
|
-
readonly
|
|
1362
|
-
|
|
1363
|
-
|
|
1812
|
+
readonly individualActions: {
|
|
1813
|
+
readonly remove: {
|
|
1814
|
+
readonly name: "Remover";
|
|
1815
|
+
readonly icon: "trash";
|
|
1816
|
+
readonly ask: true;
|
|
1817
|
+
};
|
|
1364
1818
|
};
|
|
1365
|
-
|
|
1819
|
+
}>;
|
|
1820
|
+
} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
1821
|
+
readonly name: {
|
|
1822
|
+
readonly type: "string";
|
|
1823
|
+
};
|
|
1824
|
+
readonly given_name: {
|
|
1825
|
+
readonly getter: (document: any) => string;
|
|
1826
|
+
};
|
|
1827
|
+
readonly family_name: {
|
|
1828
|
+
readonly getter: (document: any) => string;
|
|
1829
|
+
};
|
|
1830
|
+
readonly active: {
|
|
1831
|
+
readonly type: "boolean";
|
|
1832
|
+
};
|
|
1833
|
+
readonly roles: {
|
|
1834
|
+
readonly type: "array";
|
|
1835
|
+
readonly items: {
|
|
1366
1836
|
readonly type: "string";
|
|
1367
|
-
readonly mask: "(##) #####-####";
|
|
1368
|
-
};
|
|
1369
|
-
readonly picture_file: {
|
|
1370
|
-
readonly $ref: "file";
|
|
1371
|
-
readonly accept: readonly ["image/*"];
|
|
1372
1837
|
};
|
|
1373
|
-
readonly
|
|
1374
|
-
|
|
1838
|
+
readonly uniqueItems: true;
|
|
1839
|
+
};
|
|
1840
|
+
readonly email: {
|
|
1841
|
+
readonly type: "string";
|
|
1842
|
+
readonly inputType: "email";
|
|
1843
|
+
readonly unique: true;
|
|
1844
|
+
};
|
|
1845
|
+
readonly password: {
|
|
1846
|
+
readonly type: "string";
|
|
1847
|
+
readonly inputType: "password";
|
|
1848
|
+
readonly hidden: true;
|
|
1849
|
+
};
|
|
1850
|
+
readonly phone_number: {
|
|
1851
|
+
readonly type: "string";
|
|
1852
|
+
readonly mask: "(##) #####-####";
|
|
1853
|
+
};
|
|
1854
|
+
readonly picture_file: {
|
|
1855
|
+
readonly $ref: "file";
|
|
1856
|
+
readonly accept: readonly ["image/*"];
|
|
1857
|
+
};
|
|
1858
|
+
readonly picture: {
|
|
1859
|
+
readonly getter: (value: any) => any;
|
|
1860
|
+
};
|
|
1861
|
+
readonly group: {
|
|
1862
|
+
readonly type: "string";
|
|
1863
|
+
};
|
|
1864
|
+
readonly self_registered: {
|
|
1865
|
+
readonly type: "boolean";
|
|
1866
|
+
readonly readOnly: true;
|
|
1867
|
+
};
|
|
1868
|
+
readonly updated_at: {
|
|
1869
|
+
readonly type: "string";
|
|
1870
|
+
readonly format: "date-time";
|
|
1871
|
+
};
|
|
1872
|
+
}>> & {
|
|
1873
|
+
name: string;
|
|
1874
|
+
password: string;
|
|
1875
|
+
updated_at: Date;
|
|
1876
|
+
roles: string[];
|
|
1877
|
+
email: string;
|
|
1878
|
+
active: boolean;
|
|
1879
|
+
phone_number: string;
|
|
1880
|
+
picture_file: never;
|
|
1881
|
+
given_name: string;
|
|
1882
|
+
family_name: string;
|
|
1883
|
+
picture: any;
|
|
1884
|
+
group: string;
|
|
1885
|
+
}, "picture_file">, "name" | "roles" | "email"> & Partial<{
|
|
1886
|
+
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
1887
|
+
readonly $id: "file";
|
|
1888
|
+
readonly owned: "always";
|
|
1889
|
+
readonly presets: readonly ["owned"];
|
|
1890
|
+
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1891
|
+
readonly properties: {
|
|
1892
|
+
readonly mime: {
|
|
1893
|
+
readonly type: "string";
|
|
1894
|
+
};
|
|
1895
|
+
readonly size: {
|
|
1896
|
+
readonly type: "number";
|
|
1897
|
+
};
|
|
1898
|
+
readonly last_modified: {
|
|
1899
|
+
readonly type: "string";
|
|
1900
|
+
readonly format: "date-time";
|
|
1901
|
+
};
|
|
1902
|
+
readonly filename: {
|
|
1903
|
+
readonly type: "string";
|
|
1904
|
+
};
|
|
1905
|
+
readonly absolute_path: {
|
|
1906
|
+
readonly type: "string";
|
|
1907
|
+
};
|
|
1908
|
+
readonly relative_path: {
|
|
1909
|
+
readonly type: "string";
|
|
1910
|
+
};
|
|
1911
|
+
readonly immutable: {
|
|
1912
|
+
readonly type: "boolean";
|
|
1913
|
+
};
|
|
1914
|
+
readonly link: {
|
|
1915
|
+
readonly getter: (value: any) => Promise<string>;
|
|
1916
|
+
};
|
|
1917
|
+
readonly download_link: {
|
|
1918
|
+
readonly getter: (value: any) => Promise<string>;
|
|
1919
|
+
};
|
|
1375
1920
|
};
|
|
1376
|
-
readonly
|
|
1377
|
-
readonly
|
|
1921
|
+
readonly actions: {
|
|
1922
|
+
readonly deleteAll: {
|
|
1923
|
+
readonly name: "Remover";
|
|
1924
|
+
readonly ask: true;
|
|
1925
|
+
readonly selection: true;
|
|
1926
|
+
};
|
|
1378
1927
|
};
|
|
1379
|
-
readonly
|
|
1380
|
-
readonly
|
|
1381
|
-
|
|
1928
|
+
readonly individualActions: {
|
|
1929
|
+
readonly remove: {
|
|
1930
|
+
readonly name: "Remover";
|
|
1931
|
+
readonly icon: "trash";
|
|
1932
|
+
readonly ask: true;
|
|
1933
|
+
};
|
|
1382
1934
|
};
|
|
1383
|
-
|
|
1935
|
+
}>;
|
|
1936
|
+
} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
1937
|
+
readonly name: {
|
|
1938
|
+
readonly type: "string";
|
|
1939
|
+
};
|
|
1940
|
+
readonly given_name: {
|
|
1941
|
+
readonly getter: (document: any) => string;
|
|
1942
|
+
};
|
|
1943
|
+
readonly family_name: {
|
|
1944
|
+
readonly getter: (document: any) => string;
|
|
1945
|
+
};
|
|
1946
|
+
readonly active: {
|
|
1947
|
+
readonly type: "boolean";
|
|
1948
|
+
};
|
|
1949
|
+
readonly roles: {
|
|
1950
|
+
readonly type: "array";
|
|
1951
|
+
readonly items: {
|
|
1384
1952
|
readonly type: "string";
|
|
1385
|
-
readonly format: "date-time";
|
|
1386
1953
|
};
|
|
1954
|
+
readonly uniqueItems: true;
|
|
1387
1955
|
};
|
|
1388
|
-
readonly
|
|
1389
|
-
|
|
1390
|
-
readonly
|
|
1391
|
-
readonly
|
|
1392
|
-
readonly title: "name";
|
|
1393
|
-
readonly badge: "roles";
|
|
1394
|
-
readonly picture: "picture_file";
|
|
1395
|
-
readonly information: "email";
|
|
1396
|
-
readonly active: "active";
|
|
1397
|
-
readonly translateBadge: true;
|
|
1398
|
-
};
|
|
1956
|
+
readonly email: {
|
|
1957
|
+
readonly type: "string";
|
|
1958
|
+
readonly inputType: "email";
|
|
1959
|
+
readonly unique: true;
|
|
1399
1960
|
};
|
|
1400
|
-
readonly
|
|
1401
|
-
readonly
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
};
|
|
1405
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1406
|
-
readonly name: "Mudar senha";
|
|
1407
|
-
readonly icon: "key";
|
|
1408
|
-
readonly fetchItem: true;
|
|
1409
|
-
};
|
|
1961
|
+
readonly password: {
|
|
1962
|
+
readonly type: "string";
|
|
1963
|
+
readonly inputType: "password";
|
|
1964
|
+
readonly hidden: true;
|
|
1410
1965
|
};
|
|
1411
|
-
readonly
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
readonly
|
|
1416
|
-
readonly
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1966
|
+
readonly phone_number: {
|
|
1967
|
+
readonly type: "string";
|
|
1968
|
+
readonly mask: "(##) #####-####";
|
|
1969
|
+
};
|
|
1970
|
+
readonly picture_file: {
|
|
1971
|
+
readonly $ref: "file";
|
|
1972
|
+
readonly accept: readonly ["image/*"];
|
|
1973
|
+
};
|
|
1974
|
+
readonly picture: {
|
|
1975
|
+
readonly getter: (value: any) => any;
|
|
1976
|
+
};
|
|
1977
|
+
readonly group: {
|
|
1978
|
+
readonly type: "string";
|
|
1979
|
+
};
|
|
1980
|
+
readonly self_registered: {
|
|
1981
|
+
readonly type: "boolean";
|
|
1982
|
+
readonly readOnly: true;
|
|
1983
|
+
};
|
|
1984
|
+
readonly updated_at: {
|
|
1985
|
+
readonly type: "string";
|
|
1986
|
+
readonly format: "date-time";
|
|
1424
1987
|
};
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1988
|
+
}>> & {
|
|
1989
|
+
name: string;
|
|
1990
|
+
password: string;
|
|
1991
|
+
updated_at: Date;
|
|
1992
|
+
roles: string[];
|
|
1993
|
+
email: string;
|
|
1994
|
+
active: boolean;
|
|
1995
|
+
phone_number: string;
|
|
1996
|
+
picture_file: never;
|
|
1997
|
+
given_name: string;
|
|
1998
|
+
family_name: string;
|
|
1999
|
+
picture: any;
|
|
2000
|
+
group: string;
|
|
2001
|
+
}, "picture_file">> & {
|
|
2002
|
+
updated_at?: Date | undefined;
|
|
2003
|
+
created_at?: Date | undefined;
|
|
2004
|
+
}, "roles">, context: import("@aeriajs/types").Context<{
|
|
1427
2005
|
readonly $id: "user";
|
|
1428
2006
|
readonly required: readonly ["name", "roles", "email"];
|
|
1429
2007
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -1521,7 +2099,7 @@ export declare const collections: {
|
|
|
1521
2099
|
};
|
|
1522
2100
|
};
|
|
1523
2101
|
};
|
|
1524
|
-
}
|
|
2102
|
+
}>) => 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<{
|
|
1525
2103
|
readonly $id: "user";
|
|
1526
2104
|
readonly required: readonly ["name", "roles", "email"];
|
|
1527
2105
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -1619,8 +2197,11 @@ export declare const collections: {
|
|
|
1619
2197
|
};
|
|
1620
2198
|
};
|
|
1621
2199
|
};
|
|
1622
|
-
}
|
|
1623
|
-
readonly
|
|
2200
|
+
}>>, "_id">>>>;
|
|
2201
|
+
readonly getInfo: (payload: {
|
|
2202
|
+
userId: string;
|
|
2203
|
+
token: string;
|
|
2204
|
+
}, context: import("@aeriajs/types").Context<{
|
|
1624
2205
|
readonly $id: "user";
|
|
1625
2206
|
readonly required: readonly ["name", "roles", "email"];
|
|
1626
2207
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -1718,109 +2299,226 @@ export declare const collections: {
|
|
|
1718
2299
|
};
|
|
1719
2300
|
};
|
|
1720
2301
|
};
|
|
1721
|
-
}
|
|
1722
|
-
readonly
|
|
1723
|
-
readonly
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
2302
|
+
}>) => Promise<import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
|
|
2303
|
+
readonly name: string;
|
|
2304
|
+
readonly email: string;
|
|
2305
|
+
}>>;
|
|
2306
|
+
readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
|
|
2307
|
+
};
|
|
2308
|
+
accessControl: {
|
|
2309
|
+
roles: {
|
|
2310
|
+
root: {
|
|
2311
|
+
grantEverything: true;
|
|
1728
2312
|
};
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
readonly
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
readonly phone_number: {
|
|
2313
|
+
guest: {
|
|
2314
|
+
grant: string[];
|
|
2315
|
+
};
|
|
2316
|
+
};
|
|
2317
|
+
};
|
|
2318
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
2319
|
+
item: import("@aeriajs/types").SchemaWithId<{
|
|
2320
|
+
readonly $id: "user";
|
|
2321
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
2322
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2323
|
+
readonly indexes: readonly ["name"];
|
|
2324
|
+
readonly freshItem: {
|
|
2325
|
+
readonly active: true;
|
|
2326
|
+
};
|
|
2327
|
+
readonly properties: {
|
|
2328
|
+
readonly name: {
|
|
2329
|
+
readonly type: "string";
|
|
2330
|
+
};
|
|
2331
|
+
readonly given_name: {
|
|
2332
|
+
readonly getter: (document: any) => string;
|
|
2333
|
+
};
|
|
2334
|
+
readonly family_name: {
|
|
2335
|
+
readonly getter: (document: any) => string;
|
|
2336
|
+
};
|
|
2337
|
+
readonly active: {
|
|
2338
|
+
readonly type: "boolean";
|
|
2339
|
+
};
|
|
2340
|
+
readonly roles: {
|
|
2341
|
+
readonly type: "array";
|
|
2342
|
+
readonly items: {
|
|
1760
2343
|
readonly type: "string";
|
|
1761
|
-
readonly mask: "(##) #####-####";
|
|
1762
|
-
};
|
|
1763
|
-
readonly picture_file: {
|
|
1764
|
-
readonly $ref: "file";
|
|
1765
|
-
readonly accept: readonly ["image/*"];
|
|
1766
|
-
};
|
|
1767
|
-
readonly picture: {
|
|
1768
|
-
readonly getter: (value: any) => any;
|
|
1769
2344
|
};
|
|
1770
|
-
readonly
|
|
1771
|
-
|
|
2345
|
+
readonly uniqueItems: true;
|
|
2346
|
+
};
|
|
2347
|
+
readonly email: {
|
|
2348
|
+
readonly type: "string";
|
|
2349
|
+
readonly inputType: "email";
|
|
2350
|
+
readonly unique: true;
|
|
2351
|
+
};
|
|
2352
|
+
readonly password: {
|
|
2353
|
+
readonly type: "string";
|
|
2354
|
+
readonly inputType: "password";
|
|
2355
|
+
readonly hidden: true;
|
|
2356
|
+
};
|
|
2357
|
+
readonly phone_number: {
|
|
2358
|
+
readonly type: "string";
|
|
2359
|
+
readonly mask: "(##) #####-####";
|
|
2360
|
+
};
|
|
2361
|
+
readonly picture_file: {
|
|
2362
|
+
readonly $ref: "file";
|
|
2363
|
+
readonly accept: readonly ["image/*"];
|
|
2364
|
+
};
|
|
2365
|
+
readonly picture: {
|
|
2366
|
+
readonly getter: (value: any) => any;
|
|
2367
|
+
};
|
|
2368
|
+
readonly group: {
|
|
2369
|
+
readonly type: "string";
|
|
2370
|
+
};
|
|
2371
|
+
readonly self_registered: {
|
|
2372
|
+
readonly type: "boolean";
|
|
2373
|
+
readonly readOnly: true;
|
|
2374
|
+
};
|
|
2375
|
+
readonly updated_at: {
|
|
2376
|
+
readonly type: "string";
|
|
2377
|
+
readonly format: "date-time";
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2381
|
+
readonly layout: {
|
|
2382
|
+
readonly name: "grid";
|
|
2383
|
+
readonly options: {
|
|
2384
|
+
readonly title: "name";
|
|
2385
|
+
readonly badge: "roles";
|
|
2386
|
+
readonly picture: "picture_file";
|
|
2387
|
+
readonly information: "email";
|
|
2388
|
+
readonly active: "active";
|
|
2389
|
+
readonly translateBadge: true;
|
|
2390
|
+
};
|
|
2391
|
+
};
|
|
2392
|
+
readonly individualActions: {
|
|
2393
|
+
readonly 'ui:spawnEdit': {
|
|
2394
|
+
readonly name: "Editar";
|
|
2395
|
+
readonly icon: "pencil";
|
|
2396
|
+
};
|
|
2397
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
2398
|
+
readonly name: "Mudar senha";
|
|
2399
|
+
readonly icon: "key";
|
|
2400
|
+
readonly fetchItem: true;
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2403
|
+
readonly icon: "users";
|
|
2404
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2405
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2406
|
+
readonly tableMeta: readonly ["email"];
|
|
2407
|
+
readonly formLayout: {
|
|
2408
|
+
readonly fields: {
|
|
2409
|
+
readonly given_name: {
|
|
2410
|
+
readonly span: 3;
|
|
1772
2411
|
};
|
|
1773
|
-
readonly
|
|
1774
|
-
readonly
|
|
1775
|
-
readonly readOnly: true;
|
|
2412
|
+
readonly family_name: {
|
|
2413
|
+
readonly span: 3;
|
|
1776
2414
|
};
|
|
1777
|
-
|
|
2415
|
+
};
|
|
2416
|
+
};
|
|
2417
|
+
}>;
|
|
2418
|
+
description: {
|
|
2419
|
+
readonly $id: "user";
|
|
2420
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
2421
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2422
|
+
readonly indexes: readonly ["name"];
|
|
2423
|
+
readonly freshItem: {
|
|
2424
|
+
readonly active: true;
|
|
2425
|
+
};
|
|
2426
|
+
readonly properties: {
|
|
2427
|
+
readonly name: {
|
|
2428
|
+
readonly type: "string";
|
|
2429
|
+
};
|
|
2430
|
+
readonly given_name: {
|
|
2431
|
+
readonly getter: (document: any) => string;
|
|
2432
|
+
};
|
|
2433
|
+
readonly family_name: {
|
|
2434
|
+
readonly getter: (document: any) => string;
|
|
2435
|
+
};
|
|
2436
|
+
readonly active: {
|
|
2437
|
+
readonly type: "boolean";
|
|
2438
|
+
};
|
|
2439
|
+
readonly roles: {
|
|
2440
|
+
readonly type: "array";
|
|
2441
|
+
readonly items: {
|
|
1778
2442
|
readonly type: "string";
|
|
1779
|
-
readonly format: "date-time";
|
|
1780
2443
|
};
|
|
2444
|
+
readonly uniqueItems: true;
|
|
1781
2445
|
};
|
|
1782
|
-
readonly
|
|
1783
|
-
|
|
1784
|
-
readonly
|
|
1785
|
-
readonly
|
|
1786
|
-
readonly title: "name";
|
|
1787
|
-
readonly badge: "roles";
|
|
1788
|
-
readonly picture: "picture_file";
|
|
1789
|
-
readonly information: "email";
|
|
1790
|
-
readonly active: "active";
|
|
1791
|
-
readonly translateBadge: true;
|
|
1792
|
-
};
|
|
2446
|
+
readonly email: {
|
|
2447
|
+
readonly type: "string";
|
|
2448
|
+
readonly inputType: "email";
|
|
2449
|
+
readonly unique: true;
|
|
1793
2450
|
};
|
|
1794
|
-
readonly
|
|
1795
|
-
readonly
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
};
|
|
1799
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1800
|
-
readonly name: "Mudar senha";
|
|
1801
|
-
readonly icon: "key";
|
|
1802
|
-
readonly fetchItem: true;
|
|
1803
|
-
};
|
|
2451
|
+
readonly password: {
|
|
2452
|
+
readonly type: "string";
|
|
2453
|
+
readonly inputType: "password";
|
|
2454
|
+
readonly hidden: true;
|
|
1804
2455
|
};
|
|
1805
|
-
readonly
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
readonly
|
|
1810
|
-
readonly
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
2456
|
+
readonly phone_number: {
|
|
2457
|
+
readonly type: "string";
|
|
2458
|
+
readonly mask: "(##) #####-####";
|
|
2459
|
+
};
|
|
2460
|
+
readonly picture_file: {
|
|
2461
|
+
readonly $ref: "file";
|
|
2462
|
+
readonly accept: readonly ["image/*"];
|
|
2463
|
+
};
|
|
2464
|
+
readonly picture: {
|
|
2465
|
+
readonly getter: (value: any) => any;
|
|
2466
|
+
};
|
|
2467
|
+
readonly group: {
|
|
2468
|
+
readonly type: "string";
|
|
2469
|
+
};
|
|
2470
|
+
readonly self_registered: {
|
|
2471
|
+
readonly type: "boolean";
|
|
2472
|
+
readonly readOnly: true;
|
|
2473
|
+
};
|
|
2474
|
+
readonly updated_at: {
|
|
2475
|
+
readonly type: "string";
|
|
2476
|
+
readonly format: "date-time";
|
|
2477
|
+
};
|
|
2478
|
+
};
|
|
2479
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2480
|
+
readonly layout: {
|
|
2481
|
+
readonly name: "grid";
|
|
2482
|
+
readonly options: {
|
|
2483
|
+
readonly title: "name";
|
|
2484
|
+
readonly badge: "roles";
|
|
2485
|
+
readonly picture: "picture_file";
|
|
2486
|
+
readonly information: "email";
|
|
2487
|
+
readonly active: "active";
|
|
2488
|
+
readonly translateBadge: true;
|
|
2489
|
+
};
|
|
2490
|
+
};
|
|
2491
|
+
readonly individualActions: {
|
|
2492
|
+
readonly 'ui:spawnEdit': {
|
|
2493
|
+
readonly name: "Editar";
|
|
2494
|
+
readonly icon: "pencil";
|
|
2495
|
+
};
|
|
2496
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
2497
|
+
readonly name: "Mudar senha";
|
|
2498
|
+
readonly icon: "key";
|
|
2499
|
+
readonly fetchItem: true;
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
readonly icon: "users";
|
|
2503
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2504
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2505
|
+
readonly tableMeta: readonly ["email"];
|
|
2506
|
+
readonly formLayout: {
|
|
2507
|
+
readonly fields: {
|
|
2508
|
+
readonly given_name: {
|
|
2509
|
+
readonly span: 3;
|
|
2510
|
+
};
|
|
2511
|
+
readonly family_name: {
|
|
2512
|
+
readonly span: 3;
|
|
1817
2513
|
};
|
|
1818
2514
|
};
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
readonly
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
functions: {
|
|
2518
|
+
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
2519
|
+
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
2520
|
+
readonly remove: <TContext_3 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_3["description"]>>, context: TContext_3) => Promise<any>;
|
|
2521
|
+
readonly upload: (_props: unknown, context: import("@aeriajs/types").Context<{
|
|
1824
2522
|
readonly $id: "user";
|
|
1825
2523
|
readonly required: readonly ["name", "roles", "email"];
|
|
1826
2524
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -1918,7 +2616,10 @@ export declare const collections: {
|
|
|
1918
2616
|
};
|
|
1919
2617
|
};
|
|
1920
2618
|
};
|
|
1921
|
-
}
|
|
2619
|
+
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
2620
|
+
tempId: any;
|
|
2621
|
+
}>;
|
|
2622
|
+
readonly removeFile: <TContext_4 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_4) => Promise<any>;
|
|
1922
2623
|
readonly insert: (payload: {
|
|
1923
2624
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
1924
2625
|
readonly $id: "user";
|
|
@@ -2550,23 +3251,121 @@ export declare const collections: {
|
|
|
2550
3251
|
readonly type: "string";
|
|
2551
3252
|
readonly format: "date-time";
|
|
2552
3253
|
};
|
|
2553
|
-
}>> & {
|
|
2554
|
-
name: string;
|
|
2555
|
-
password: string;
|
|
2556
|
-
updated_at: Date;
|
|
2557
|
-
roles: string[];
|
|
2558
|
-
email: string;
|
|
2559
|
-
active: boolean;
|
|
2560
|
-
phone_number: string;
|
|
2561
|
-
picture_file: never;
|
|
2562
|
-
given_name: string;
|
|
2563
|
-
family_name: string;
|
|
2564
|
-
picture: any;
|
|
2565
|
-
group: string;
|
|
2566
|
-
}, "picture_file">> & {
|
|
2567
|
-
updated_at?: Date | undefined;
|
|
2568
|
-
created_at?: Date | undefined;
|
|
2569
|
-
}, "roles">, context: import("@aeriajs/types").Context<{
|
|
3254
|
+
}>> & {
|
|
3255
|
+
name: string;
|
|
3256
|
+
password: string;
|
|
3257
|
+
updated_at: Date;
|
|
3258
|
+
roles: string[];
|
|
3259
|
+
email: string;
|
|
3260
|
+
active: boolean;
|
|
3261
|
+
phone_number: string;
|
|
3262
|
+
picture_file: never;
|
|
3263
|
+
given_name: string;
|
|
3264
|
+
family_name: string;
|
|
3265
|
+
picture: any;
|
|
3266
|
+
group: string;
|
|
3267
|
+
}, "picture_file">> & {
|
|
3268
|
+
updated_at?: Date | undefined;
|
|
3269
|
+
created_at?: Date | undefined;
|
|
3270
|
+
}, "roles">, context: import("@aeriajs/types").Context<{
|
|
3271
|
+
readonly $id: "user";
|
|
3272
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
3273
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
3274
|
+
readonly indexes: readonly ["name"];
|
|
3275
|
+
readonly freshItem: {
|
|
3276
|
+
readonly active: true;
|
|
3277
|
+
};
|
|
3278
|
+
readonly properties: {
|
|
3279
|
+
readonly name: {
|
|
3280
|
+
readonly type: "string";
|
|
3281
|
+
};
|
|
3282
|
+
readonly given_name: {
|
|
3283
|
+
readonly getter: (document: any) => string;
|
|
3284
|
+
};
|
|
3285
|
+
readonly family_name: {
|
|
3286
|
+
readonly getter: (document: any) => string;
|
|
3287
|
+
};
|
|
3288
|
+
readonly active: {
|
|
3289
|
+
readonly type: "boolean";
|
|
3290
|
+
};
|
|
3291
|
+
readonly roles: {
|
|
3292
|
+
readonly type: "array";
|
|
3293
|
+
readonly items: {
|
|
3294
|
+
readonly type: "string";
|
|
3295
|
+
};
|
|
3296
|
+
readonly uniqueItems: true;
|
|
3297
|
+
};
|
|
3298
|
+
readonly email: {
|
|
3299
|
+
readonly type: "string";
|
|
3300
|
+
readonly inputType: "email";
|
|
3301
|
+
readonly unique: true;
|
|
3302
|
+
};
|
|
3303
|
+
readonly password: {
|
|
3304
|
+
readonly type: "string";
|
|
3305
|
+
readonly inputType: "password";
|
|
3306
|
+
readonly hidden: true;
|
|
3307
|
+
};
|
|
3308
|
+
readonly phone_number: {
|
|
3309
|
+
readonly type: "string";
|
|
3310
|
+
readonly mask: "(##) #####-####";
|
|
3311
|
+
};
|
|
3312
|
+
readonly picture_file: {
|
|
3313
|
+
readonly $ref: "file";
|
|
3314
|
+
readonly accept: readonly ["image/*"];
|
|
3315
|
+
};
|
|
3316
|
+
readonly picture: {
|
|
3317
|
+
readonly getter: (value: any) => any;
|
|
3318
|
+
};
|
|
3319
|
+
readonly group: {
|
|
3320
|
+
readonly type: "string";
|
|
3321
|
+
};
|
|
3322
|
+
readonly self_registered: {
|
|
3323
|
+
readonly type: "boolean";
|
|
3324
|
+
readonly readOnly: true;
|
|
3325
|
+
};
|
|
3326
|
+
readonly updated_at: {
|
|
3327
|
+
readonly type: "string";
|
|
3328
|
+
readonly format: "date-time";
|
|
3329
|
+
};
|
|
3330
|
+
};
|
|
3331
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
3332
|
+
readonly layout: {
|
|
3333
|
+
readonly name: "grid";
|
|
3334
|
+
readonly options: {
|
|
3335
|
+
readonly title: "name";
|
|
3336
|
+
readonly badge: "roles";
|
|
3337
|
+
readonly picture: "picture_file";
|
|
3338
|
+
readonly information: "email";
|
|
3339
|
+
readonly active: "active";
|
|
3340
|
+
readonly translateBadge: true;
|
|
3341
|
+
};
|
|
3342
|
+
};
|
|
3343
|
+
readonly individualActions: {
|
|
3344
|
+
readonly 'ui:spawnEdit': {
|
|
3345
|
+
readonly name: "Editar";
|
|
3346
|
+
readonly icon: "pencil";
|
|
3347
|
+
};
|
|
3348
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
3349
|
+
readonly name: "Mudar senha";
|
|
3350
|
+
readonly icon: "key";
|
|
3351
|
+
readonly fetchItem: true;
|
|
3352
|
+
};
|
|
3353
|
+
};
|
|
3354
|
+
readonly icon: "users";
|
|
3355
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3356
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3357
|
+
readonly tableMeta: readonly ["email"];
|
|
3358
|
+
readonly formLayout: {
|
|
3359
|
+
readonly fields: {
|
|
3360
|
+
readonly given_name: {
|
|
3361
|
+
readonly span: 3;
|
|
3362
|
+
};
|
|
3363
|
+
readonly family_name: {
|
|
3364
|
+
readonly span: 3;
|
|
3365
|
+
};
|
|
3366
|
+
};
|
|
3367
|
+
};
|
|
3368
|
+
}>) => 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<{
|
|
2570
3369
|
readonly $id: "user";
|
|
2571
3370
|
readonly required: readonly ["name", "roles", "email"];
|
|
2572
3371
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -2664,7 +3463,11 @@ export declare const collections: {
|
|
|
2664
3463
|
};
|
|
2665
3464
|
};
|
|
2666
3465
|
};
|
|
2667
|
-
}
|
|
3466
|
+
}>>, "_id">>>>;
|
|
3467
|
+
readonly getInfo: (payload: {
|
|
3468
|
+
userId: string;
|
|
3469
|
+
token: string;
|
|
3470
|
+
}, context: import("@aeriajs/types").Context<{
|
|
2668
3471
|
readonly $id: "user";
|
|
2669
3472
|
readonly required: readonly ["name", "roles", "email"];
|
|
2670
3473
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -2762,11 +3565,27 @@ export declare const collections: {
|
|
|
2762
3565
|
};
|
|
2763
3566
|
};
|
|
2764
3567
|
};
|
|
2765
|
-
}
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
3568
|
+
}>) => Promise<import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
|
|
3569
|
+
readonly name: string;
|
|
3570
|
+
readonly email: string;
|
|
3571
|
+
}>>;
|
|
3572
|
+
readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
|
|
3573
|
+
};
|
|
3574
|
+
functionContracts: Partial<{
|
|
3575
|
+
readonly get: import("@aeriajs/types").Contract;
|
|
3576
|
+
readonly getAll: import("@aeriajs/types").Contract;
|
|
3577
|
+
readonly remove: import("@aeriajs/types").Contract;
|
|
3578
|
+
readonly upload: import("@aeriajs/types").Contract;
|
|
3579
|
+
readonly removeFile: import("@aeriajs/types").Contract;
|
|
3580
|
+
readonly insert: import("@aeriajs/types").Contract;
|
|
3581
|
+
readonly authenticate: import("@aeriajs/types").Contract;
|
|
3582
|
+
readonly activate: import("@aeriajs/types").Contract;
|
|
3583
|
+
readonly createAccount: import("@aeriajs/types").Contract;
|
|
3584
|
+
readonly getInfo: import("@aeriajs/types").Contract;
|
|
3585
|
+
readonly getActivationLink: import("@aeriajs/types").Contract;
|
|
3586
|
+
}>;
|
|
3587
|
+
accessControl: import("@aeriajs/types").AccessControl | import("@aeriajs/types").AccessControl<{
|
|
3588
|
+
description: {
|
|
2770
3589
|
readonly $id: "user";
|
|
2771
3590
|
readonly required: readonly ["name", "roles", "email"];
|
|
2772
3591
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -2864,225 +3683,9 @@ export declare const collections: {
|
|
|
2864
3683
|
};
|
|
2865
3684
|
};
|
|
2866
3685
|
};
|
|
2867
|
-
}>) => Promise<import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
|
|
2868
|
-
readonly name: string;
|
|
2869
|
-
readonly email: string;
|
|
2870
|
-
}>>;
|
|
2871
|
-
readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
|
|
2872
|
-
};
|
|
2873
|
-
accessControl: {
|
|
2874
|
-
roles: {
|
|
2875
|
-
root: {
|
|
2876
|
-
grantEverything: true;
|
|
2877
|
-
};
|
|
2878
|
-
guest: {
|
|
2879
|
-
grant: "authenticate"[];
|
|
2880
|
-
};
|
|
2881
|
-
};
|
|
2882
|
-
};
|
|
2883
|
-
} & {
|
|
2884
|
-
item: import("@aeriajs/types").SchemaWithId<{
|
|
2885
|
-
readonly $id: "user";
|
|
2886
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
2887
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2888
|
-
readonly indexes: readonly ["name"];
|
|
2889
|
-
readonly freshItem: {
|
|
2890
|
-
readonly active: true;
|
|
2891
|
-
};
|
|
2892
|
-
readonly properties: {
|
|
2893
|
-
readonly name: {
|
|
2894
|
-
readonly type: "string";
|
|
2895
|
-
};
|
|
2896
|
-
readonly given_name: {
|
|
2897
|
-
readonly getter: (document: any) => string;
|
|
2898
|
-
};
|
|
2899
|
-
readonly family_name: {
|
|
2900
|
-
readonly getter: (document: any) => string;
|
|
2901
|
-
};
|
|
2902
|
-
readonly active: {
|
|
2903
|
-
readonly type: "boolean";
|
|
2904
|
-
};
|
|
2905
|
-
readonly roles: {
|
|
2906
|
-
readonly type: "array";
|
|
2907
|
-
readonly items: {
|
|
2908
|
-
readonly type: "string";
|
|
2909
|
-
};
|
|
2910
|
-
readonly uniqueItems: true;
|
|
2911
|
-
};
|
|
2912
|
-
readonly email: {
|
|
2913
|
-
readonly type: "string";
|
|
2914
|
-
readonly inputType: "email";
|
|
2915
|
-
readonly unique: true;
|
|
2916
|
-
};
|
|
2917
|
-
readonly password: {
|
|
2918
|
-
readonly type: "string";
|
|
2919
|
-
readonly inputType: "password";
|
|
2920
|
-
readonly hidden: true;
|
|
2921
|
-
};
|
|
2922
|
-
readonly phone_number: {
|
|
2923
|
-
readonly type: "string";
|
|
2924
|
-
readonly mask: "(##) #####-####";
|
|
2925
|
-
};
|
|
2926
|
-
readonly picture_file: {
|
|
2927
|
-
readonly $ref: "file";
|
|
2928
|
-
readonly accept: readonly ["image/*"];
|
|
2929
|
-
};
|
|
2930
|
-
readonly picture: {
|
|
2931
|
-
readonly getter: (value: any) => any;
|
|
2932
|
-
};
|
|
2933
|
-
readonly group: {
|
|
2934
|
-
readonly type: "string";
|
|
2935
|
-
};
|
|
2936
|
-
readonly self_registered: {
|
|
2937
|
-
readonly type: "boolean";
|
|
2938
|
-
readonly readOnly: true;
|
|
2939
|
-
};
|
|
2940
|
-
readonly updated_at: {
|
|
2941
|
-
readonly type: "string";
|
|
2942
|
-
readonly format: "date-time";
|
|
2943
|
-
};
|
|
2944
|
-
};
|
|
2945
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2946
|
-
readonly layout: {
|
|
2947
|
-
readonly name: "grid";
|
|
2948
|
-
readonly options: {
|
|
2949
|
-
readonly title: "name";
|
|
2950
|
-
readonly badge: "roles";
|
|
2951
|
-
readonly picture: "picture_file";
|
|
2952
|
-
readonly information: "email";
|
|
2953
|
-
readonly active: "active";
|
|
2954
|
-
readonly translateBadge: true;
|
|
2955
|
-
};
|
|
2956
|
-
};
|
|
2957
|
-
readonly individualActions: {
|
|
2958
|
-
readonly 'ui:spawnEdit': {
|
|
2959
|
-
readonly name: "Editar";
|
|
2960
|
-
readonly icon: "pencil";
|
|
2961
|
-
};
|
|
2962
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2963
|
-
readonly name: "Mudar senha";
|
|
2964
|
-
readonly icon: "key";
|
|
2965
|
-
readonly fetchItem: true;
|
|
2966
|
-
};
|
|
2967
|
-
};
|
|
2968
|
-
readonly icon: "users";
|
|
2969
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2970
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2971
|
-
readonly tableMeta: readonly ["email"];
|
|
2972
|
-
readonly formLayout: {
|
|
2973
|
-
readonly fields: {
|
|
2974
|
-
readonly given_name: {
|
|
2975
|
-
readonly span: 3;
|
|
2976
|
-
};
|
|
2977
|
-
readonly family_name: {
|
|
2978
|
-
readonly span: 3;
|
|
2979
|
-
};
|
|
2980
|
-
};
|
|
2981
|
-
};
|
|
2982
|
-
}>;
|
|
2983
|
-
description: {
|
|
2984
|
-
readonly $id: "user";
|
|
2985
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
2986
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2987
|
-
readonly indexes: readonly ["name"];
|
|
2988
|
-
readonly freshItem: {
|
|
2989
|
-
readonly active: true;
|
|
2990
|
-
};
|
|
2991
|
-
readonly properties: {
|
|
2992
|
-
readonly name: {
|
|
2993
|
-
readonly type: "string";
|
|
2994
|
-
};
|
|
2995
|
-
readonly given_name: {
|
|
2996
|
-
readonly getter: (document: any) => string;
|
|
2997
|
-
};
|
|
2998
|
-
readonly family_name: {
|
|
2999
|
-
readonly getter: (document: any) => string;
|
|
3000
|
-
};
|
|
3001
|
-
readonly active: {
|
|
3002
|
-
readonly type: "boolean";
|
|
3003
|
-
};
|
|
3004
|
-
readonly roles: {
|
|
3005
|
-
readonly type: "array";
|
|
3006
|
-
readonly items: {
|
|
3007
|
-
readonly type: "string";
|
|
3008
|
-
};
|
|
3009
|
-
readonly uniqueItems: true;
|
|
3010
|
-
};
|
|
3011
|
-
readonly email: {
|
|
3012
|
-
readonly type: "string";
|
|
3013
|
-
readonly inputType: "email";
|
|
3014
|
-
readonly unique: true;
|
|
3015
|
-
};
|
|
3016
|
-
readonly password: {
|
|
3017
|
-
readonly type: "string";
|
|
3018
|
-
readonly inputType: "password";
|
|
3019
|
-
readonly hidden: true;
|
|
3020
|
-
};
|
|
3021
|
-
readonly phone_number: {
|
|
3022
|
-
readonly type: "string";
|
|
3023
|
-
readonly mask: "(##) #####-####";
|
|
3024
|
-
};
|
|
3025
|
-
readonly picture_file: {
|
|
3026
|
-
readonly $ref: "file";
|
|
3027
|
-
readonly accept: readonly ["image/*"];
|
|
3028
|
-
};
|
|
3029
|
-
readonly picture: {
|
|
3030
|
-
readonly getter: (value: any) => any;
|
|
3031
|
-
};
|
|
3032
|
-
readonly group: {
|
|
3033
|
-
readonly type: "string";
|
|
3034
|
-
};
|
|
3035
|
-
readonly self_registered: {
|
|
3036
|
-
readonly type: "boolean";
|
|
3037
|
-
readonly readOnly: true;
|
|
3038
|
-
};
|
|
3039
|
-
readonly updated_at: {
|
|
3040
|
-
readonly type: "string";
|
|
3041
|
-
readonly format: "date-time";
|
|
3042
|
-
};
|
|
3043
|
-
};
|
|
3044
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
3045
|
-
readonly layout: {
|
|
3046
|
-
readonly name: "grid";
|
|
3047
|
-
readonly options: {
|
|
3048
|
-
readonly title: "name";
|
|
3049
|
-
readonly badge: "roles";
|
|
3050
|
-
readonly picture: "picture_file";
|
|
3051
|
-
readonly information: "email";
|
|
3052
|
-
readonly active: "active";
|
|
3053
|
-
readonly translateBadge: true;
|
|
3054
|
-
};
|
|
3055
|
-
};
|
|
3056
|
-
readonly individualActions: {
|
|
3057
|
-
readonly 'ui:spawnEdit': {
|
|
3058
|
-
readonly name: "Editar";
|
|
3059
|
-
readonly icon: "pencil";
|
|
3060
|
-
};
|
|
3061
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
3062
|
-
readonly name: "Mudar senha";
|
|
3063
|
-
readonly icon: "key";
|
|
3064
|
-
readonly fetchItem: true;
|
|
3065
|
-
};
|
|
3066
|
-
};
|
|
3067
|
-
readonly icon: "users";
|
|
3068
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3069
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3070
|
-
readonly tableMeta: readonly ["email"];
|
|
3071
|
-
readonly formLayout: {
|
|
3072
|
-
readonly fields: {
|
|
3073
|
-
readonly given_name: {
|
|
3074
|
-
readonly span: 3;
|
|
3075
|
-
};
|
|
3076
|
-
readonly family_name: {
|
|
3077
|
-
readonly span: 3;
|
|
3078
|
-
};
|
|
3079
|
-
};
|
|
3080
3686
|
};
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
functionContracts: {
|
|
3084
|
-
[x: string]: import("@aeriajs/types").Contract;
|
|
3085
|
-
};
|
|
3687
|
+
functions: any;
|
|
3688
|
+
}> | undefined;
|
|
3086
3689
|
};
|
|
3087
3690
|
};
|
|
3088
3691
|
export type { File, TempFile, Log, ResourceUsage, User, };
|