@aeriajs/builtins 0.0.150 → 0.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Context } from '@aeriajs/types';
|
|
2
|
-
import type { description } from './description';
|
|
2
|
+
import type { description } from './description.js';
|
|
3
3
|
import { Result, HTTPStatus } from '@aeriajs/types';
|
|
4
4
|
export declare enum ActivationError {
|
|
5
5
|
UserNotFound = "USER_NOT_FOUND",
|
|
@@ -145,205 +145,7 @@ export declare const user: {
|
|
|
145
145
|
} & {
|
|
146
146
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
147
147
|
}>>;
|
|
148
|
-
readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<
|
|
149
|
-
readonly $id: "user";
|
|
150
|
-
readonly icon: "users";
|
|
151
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
152
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
153
|
-
readonly indexes: readonly ["name"];
|
|
154
|
-
readonly properties: {
|
|
155
|
-
readonly name: {
|
|
156
|
-
readonly type: "string";
|
|
157
|
-
};
|
|
158
|
-
readonly given_name: {
|
|
159
|
-
readonly getter: (document: any) => any;
|
|
160
|
-
};
|
|
161
|
-
readonly family_name: {
|
|
162
|
-
readonly getter: (document: any) => any;
|
|
163
|
-
};
|
|
164
|
-
readonly active: {
|
|
165
|
-
readonly type: "boolean";
|
|
166
|
-
};
|
|
167
|
-
readonly roles: {
|
|
168
|
-
readonly type: "array";
|
|
169
|
-
readonly items: {
|
|
170
|
-
readonly type: "string";
|
|
171
|
-
};
|
|
172
|
-
readonly uniqueItems: true;
|
|
173
|
-
};
|
|
174
|
-
readonly email: {
|
|
175
|
-
readonly type: "string";
|
|
176
|
-
readonly inputType: "email";
|
|
177
|
-
readonly unique: true;
|
|
178
|
-
};
|
|
179
|
-
readonly password: {
|
|
180
|
-
readonly type: "string";
|
|
181
|
-
readonly inputType: "password";
|
|
182
|
-
readonly hidden: true;
|
|
183
|
-
};
|
|
184
|
-
readonly phone_number: {
|
|
185
|
-
readonly type: "string";
|
|
186
|
-
readonly mask: "(##) #####-####";
|
|
187
|
-
};
|
|
188
|
-
readonly picture_file: {
|
|
189
|
-
readonly $ref: "file";
|
|
190
|
-
readonly accept: readonly ["image/*"];
|
|
191
|
-
};
|
|
192
|
-
readonly picture: {
|
|
193
|
-
readonly getter: (value: any) => any;
|
|
194
|
-
};
|
|
195
|
-
readonly group: {
|
|
196
|
-
readonly type: "string";
|
|
197
|
-
};
|
|
198
|
-
readonly self_registered: {
|
|
199
|
-
readonly type: "boolean";
|
|
200
|
-
readonly readOnly: true;
|
|
201
|
-
};
|
|
202
|
-
readonly updated_at: {
|
|
203
|
-
readonly type: "string";
|
|
204
|
-
readonly format: "date-time";
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
208
|
-
readonly layout: {
|
|
209
|
-
readonly name: "grid";
|
|
210
|
-
readonly options: {
|
|
211
|
-
readonly title: "name";
|
|
212
|
-
readonly badge: "roles";
|
|
213
|
-
readonly picture: "picture_file";
|
|
214
|
-
readonly information: "email";
|
|
215
|
-
readonly active: "active";
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
readonly individualActions: {
|
|
219
|
-
readonly changePassword: {
|
|
220
|
-
readonly label: "change_password";
|
|
221
|
-
readonly icon: "key";
|
|
222
|
-
readonly translate: true;
|
|
223
|
-
readonly route: {
|
|
224
|
-
readonly name: "/dashboard/user/changepass";
|
|
225
|
-
readonly fetchItem: true;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
readonly copyActivationLink: {
|
|
229
|
-
readonly label: "copy_activation_link";
|
|
230
|
-
readonly icon: "link";
|
|
231
|
-
readonly translate: true;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
235
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
236
|
-
readonly tableMeta: readonly ["email"];
|
|
237
|
-
readonly formLayout: {
|
|
238
|
-
readonly fields: {
|
|
239
|
-
readonly given_name: {
|
|
240
|
-
readonly span: 3;
|
|
241
|
-
};
|
|
242
|
-
readonly family_name: {
|
|
243
|
-
readonly span: 3;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
}>>>, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
248
|
-
readonly $id: "user";
|
|
249
|
-
readonly icon: "users";
|
|
250
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
251
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
252
|
-
readonly indexes: readonly ["name"];
|
|
253
|
-
readonly properties: {
|
|
254
|
-
readonly name: {
|
|
255
|
-
readonly type: "string";
|
|
256
|
-
};
|
|
257
|
-
readonly given_name: {
|
|
258
|
-
readonly getter: (document: any) => any;
|
|
259
|
-
};
|
|
260
|
-
readonly family_name: {
|
|
261
|
-
readonly getter: (document: any) => any;
|
|
262
|
-
};
|
|
263
|
-
readonly active: {
|
|
264
|
-
readonly type: "boolean";
|
|
265
|
-
};
|
|
266
|
-
readonly roles: {
|
|
267
|
-
readonly type: "array";
|
|
268
|
-
readonly items: {
|
|
269
|
-
readonly type: "string";
|
|
270
|
-
};
|
|
271
|
-
readonly uniqueItems: true;
|
|
272
|
-
};
|
|
273
|
-
readonly email: {
|
|
274
|
-
readonly type: "string";
|
|
275
|
-
readonly inputType: "email";
|
|
276
|
-
readonly unique: true;
|
|
277
|
-
};
|
|
278
|
-
readonly password: {
|
|
279
|
-
readonly type: "string";
|
|
280
|
-
readonly inputType: "password";
|
|
281
|
-
readonly hidden: true;
|
|
282
|
-
};
|
|
283
|
-
readonly phone_number: {
|
|
284
|
-
readonly type: "string";
|
|
285
|
-
readonly mask: "(##) #####-####";
|
|
286
|
-
};
|
|
287
|
-
readonly picture_file: {
|
|
288
|
-
readonly $ref: "file";
|
|
289
|
-
readonly accept: readonly ["image/*"];
|
|
290
|
-
};
|
|
291
|
-
readonly picture: {
|
|
292
|
-
readonly getter: (value: any) => any;
|
|
293
|
-
};
|
|
294
|
-
readonly group: {
|
|
295
|
-
readonly type: "string";
|
|
296
|
-
};
|
|
297
|
-
readonly self_registered: {
|
|
298
|
-
readonly type: "boolean";
|
|
299
|
-
readonly readOnly: true;
|
|
300
|
-
};
|
|
301
|
-
readonly updated_at: {
|
|
302
|
-
readonly type: "string";
|
|
303
|
-
readonly format: "date-time";
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
307
|
-
readonly layout: {
|
|
308
|
-
readonly name: "grid";
|
|
309
|
-
readonly options: {
|
|
310
|
-
readonly title: "name";
|
|
311
|
-
readonly badge: "roles";
|
|
312
|
-
readonly picture: "picture_file";
|
|
313
|
-
readonly information: "email";
|
|
314
|
-
readonly active: "active";
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
readonly individualActions: {
|
|
318
|
-
readonly changePassword: {
|
|
319
|
-
readonly label: "change_password";
|
|
320
|
-
readonly icon: "key";
|
|
321
|
-
readonly translate: true;
|
|
322
|
-
readonly route: {
|
|
323
|
-
readonly name: "/dashboard/user/changepass";
|
|
324
|
-
readonly fetchItem: true;
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
readonly copyActivationLink: {
|
|
328
|
-
readonly label: "copy_activation_link";
|
|
329
|
-
readonly icon: "link";
|
|
330
|
-
readonly translate: true;
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
334
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
335
|
-
readonly tableMeta: readonly ["email"];
|
|
336
|
-
readonly formLayout: {
|
|
337
|
-
readonly fields: {
|
|
338
|
-
readonly given_name: {
|
|
339
|
-
readonly span: 3;
|
|
340
|
-
};
|
|
341
|
-
readonly family_name: {
|
|
342
|
-
readonly span: 3;
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
}>>>;
|
|
148
|
+
readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>>, context: import("@aeriajs/types").Context<any>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
|
|
347
149
|
readonly authenticate: (props: {
|
|
348
150
|
email: string;
|
|
349
151
|
password: string;
|
|
@@ -827,205 +629,7 @@ export declare const user: {
|
|
|
827
629
|
} & {
|
|
828
630
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
829
631
|
}>>;
|
|
830
|
-
readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<
|
|
831
|
-
readonly $id: "user";
|
|
832
|
-
readonly icon: "users";
|
|
833
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
834
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
835
|
-
readonly indexes: readonly ["name"];
|
|
836
|
-
readonly properties: {
|
|
837
|
-
readonly name: {
|
|
838
|
-
readonly type: "string";
|
|
839
|
-
};
|
|
840
|
-
readonly given_name: {
|
|
841
|
-
readonly getter: (document: any) => any;
|
|
842
|
-
};
|
|
843
|
-
readonly family_name: {
|
|
844
|
-
readonly getter: (document: any) => any;
|
|
845
|
-
};
|
|
846
|
-
readonly active: {
|
|
847
|
-
readonly type: "boolean";
|
|
848
|
-
};
|
|
849
|
-
readonly roles: {
|
|
850
|
-
readonly type: "array";
|
|
851
|
-
readonly items: {
|
|
852
|
-
readonly type: "string";
|
|
853
|
-
};
|
|
854
|
-
readonly uniqueItems: true;
|
|
855
|
-
};
|
|
856
|
-
readonly email: {
|
|
857
|
-
readonly type: "string";
|
|
858
|
-
readonly inputType: "email";
|
|
859
|
-
readonly unique: true;
|
|
860
|
-
};
|
|
861
|
-
readonly password: {
|
|
862
|
-
readonly type: "string";
|
|
863
|
-
readonly inputType: "password";
|
|
864
|
-
readonly hidden: true;
|
|
865
|
-
};
|
|
866
|
-
readonly phone_number: {
|
|
867
|
-
readonly type: "string";
|
|
868
|
-
readonly mask: "(##) #####-####";
|
|
869
|
-
};
|
|
870
|
-
readonly picture_file: {
|
|
871
|
-
readonly $ref: "file";
|
|
872
|
-
readonly accept: readonly ["image/*"];
|
|
873
|
-
};
|
|
874
|
-
readonly picture: {
|
|
875
|
-
readonly getter: (value: any) => any;
|
|
876
|
-
};
|
|
877
|
-
readonly group: {
|
|
878
|
-
readonly type: "string";
|
|
879
|
-
};
|
|
880
|
-
readonly self_registered: {
|
|
881
|
-
readonly type: "boolean";
|
|
882
|
-
readonly readOnly: true;
|
|
883
|
-
};
|
|
884
|
-
readonly updated_at: {
|
|
885
|
-
readonly type: "string";
|
|
886
|
-
readonly format: "date-time";
|
|
887
|
-
};
|
|
888
|
-
};
|
|
889
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
890
|
-
readonly layout: {
|
|
891
|
-
readonly name: "grid";
|
|
892
|
-
readonly options: {
|
|
893
|
-
readonly title: "name";
|
|
894
|
-
readonly badge: "roles";
|
|
895
|
-
readonly picture: "picture_file";
|
|
896
|
-
readonly information: "email";
|
|
897
|
-
readonly active: "active";
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
readonly individualActions: {
|
|
901
|
-
readonly changePassword: {
|
|
902
|
-
readonly label: "change_password";
|
|
903
|
-
readonly icon: "key";
|
|
904
|
-
readonly translate: true;
|
|
905
|
-
readonly route: {
|
|
906
|
-
readonly name: "/dashboard/user/changepass";
|
|
907
|
-
readonly fetchItem: true;
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
readonly copyActivationLink: {
|
|
911
|
-
readonly label: "copy_activation_link";
|
|
912
|
-
readonly icon: "link";
|
|
913
|
-
readonly translate: true;
|
|
914
|
-
};
|
|
915
|
-
};
|
|
916
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
917
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
918
|
-
readonly tableMeta: readonly ["email"];
|
|
919
|
-
readonly formLayout: {
|
|
920
|
-
readonly fields: {
|
|
921
|
-
readonly given_name: {
|
|
922
|
-
readonly span: 3;
|
|
923
|
-
};
|
|
924
|
-
readonly family_name: {
|
|
925
|
-
readonly span: 3;
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
};
|
|
929
|
-
}>>>, context: import("@aeriajs/types").Context<typeof description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
930
|
-
readonly $id: "user";
|
|
931
|
-
readonly icon: "users";
|
|
932
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
933
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
934
|
-
readonly indexes: readonly ["name"];
|
|
935
|
-
readonly properties: {
|
|
936
|
-
readonly name: {
|
|
937
|
-
readonly type: "string";
|
|
938
|
-
};
|
|
939
|
-
readonly given_name: {
|
|
940
|
-
readonly getter: (document: any) => any;
|
|
941
|
-
};
|
|
942
|
-
readonly family_name: {
|
|
943
|
-
readonly getter: (document: any) => any;
|
|
944
|
-
};
|
|
945
|
-
readonly active: {
|
|
946
|
-
readonly type: "boolean";
|
|
947
|
-
};
|
|
948
|
-
readonly roles: {
|
|
949
|
-
readonly type: "array";
|
|
950
|
-
readonly items: {
|
|
951
|
-
readonly type: "string";
|
|
952
|
-
};
|
|
953
|
-
readonly uniqueItems: true;
|
|
954
|
-
};
|
|
955
|
-
readonly email: {
|
|
956
|
-
readonly type: "string";
|
|
957
|
-
readonly inputType: "email";
|
|
958
|
-
readonly unique: true;
|
|
959
|
-
};
|
|
960
|
-
readonly password: {
|
|
961
|
-
readonly type: "string";
|
|
962
|
-
readonly inputType: "password";
|
|
963
|
-
readonly hidden: true;
|
|
964
|
-
};
|
|
965
|
-
readonly phone_number: {
|
|
966
|
-
readonly type: "string";
|
|
967
|
-
readonly mask: "(##) #####-####";
|
|
968
|
-
};
|
|
969
|
-
readonly picture_file: {
|
|
970
|
-
readonly $ref: "file";
|
|
971
|
-
readonly accept: readonly ["image/*"];
|
|
972
|
-
};
|
|
973
|
-
readonly picture: {
|
|
974
|
-
readonly getter: (value: any) => any;
|
|
975
|
-
};
|
|
976
|
-
readonly group: {
|
|
977
|
-
readonly type: "string";
|
|
978
|
-
};
|
|
979
|
-
readonly self_registered: {
|
|
980
|
-
readonly type: "boolean";
|
|
981
|
-
readonly readOnly: true;
|
|
982
|
-
};
|
|
983
|
-
readonly updated_at: {
|
|
984
|
-
readonly type: "string";
|
|
985
|
-
readonly format: "date-time";
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
989
|
-
readonly layout: {
|
|
990
|
-
readonly name: "grid";
|
|
991
|
-
readonly options: {
|
|
992
|
-
readonly title: "name";
|
|
993
|
-
readonly badge: "roles";
|
|
994
|
-
readonly picture: "picture_file";
|
|
995
|
-
readonly information: "email";
|
|
996
|
-
readonly active: "active";
|
|
997
|
-
};
|
|
998
|
-
};
|
|
999
|
-
readonly individualActions: {
|
|
1000
|
-
readonly changePassword: {
|
|
1001
|
-
readonly label: "change_password";
|
|
1002
|
-
readonly icon: "key";
|
|
1003
|
-
readonly translate: true;
|
|
1004
|
-
readonly route: {
|
|
1005
|
-
readonly name: "/dashboard/user/changepass";
|
|
1006
|
-
readonly fetchItem: true;
|
|
1007
|
-
};
|
|
1008
|
-
};
|
|
1009
|
-
readonly copyActivationLink: {
|
|
1010
|
-
readonly label: "copy_activation_link";
|
|
1011
|
-
readonly icon: "link";
|
|
1012
|
-
readonly translate: true;
|
|
1013
|
-
};
|
|
1014
|
-
};
|
|
1015
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1016
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1017
|
-
readonly tableMeta: readonly ["email"];
|
|
1018
|
-
readonly formLayout: {
|
|
1019
|
-
readonly fields: {
|
|
1020
|
-
readonly given_name: {
|
|
1021
|
-
readonly span: 3;
|
|
1022
|
-
};
|
|
1023
|
-
readonly family_name: {
|
|
1024
|
-
readonly span: 3;
|
|
1025
|
-
};
|
|
1026
|
-
};
|
|
1027
|
-
};
|
|
1028
|
-
}>>>;
|
|
632
|
+
readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>>, context: import("@aeriajs/types").Context<any>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
|
|
1029
633
|
readonly authenticate: (props: {
|
|
1030
634
|
email: string;
|
|
1031
635
|
password: string;
|
|
@@ -1,201 +1,2 @@
|
|
|
1
|
-
import type { Context, SchemaWithId, InsertPayload } from '@aeriajs/types';
|
|
2
|
-
|
|
3
|
-
export declare const insert: <TInsertPayload extends InsertPayload<SchemaWithId<typeof description>> = InsertPayload<SchemaWithId<{
|
|
4
|
-
readonly $id: "user";
|
|
5
|
-
readonly icon: "users";
|
|
6
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
7
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
8
|
-
readonly indexes: readonly ["name"];
|
|
9
|
-
readonly properties: {
|
|
10
|
-
readonly name: {
|
|
11
|
-
readonly type: "string";
|
|
12
|
-
};
|
|
13
|
-
readonly given_name: {
|
|
14
|
-
readonly getter: (document: any) => any;
|
|
15
|
-
};
|
|
16
|
-
readonly family_name: {
|
|
17
|
-
readonly getter: (document: any) => any;
|
|
18
|
-
};
|
|
19
|
-
readonly active: {
|
|
20
|
-
readonly type: "boolean";
|
|
21
|
-
};
|
|
22
|
-
readonly roles: {
|
|
23
|
-
readonly type: "array";
|
|
24
|
-
readonly items: {
|
|
25
|
-
readonly type: "string";
|
|
26
|
-
};
|
|
27
|
-
readonly uniqueItems: true;
|
|
28
|
-
};
|
|
29
|
-
readonly email: {
|
|
30
|
-
readonly type: "string";
|
|
31
|
-
readonly inputType: "email";
|
|
32
|
-
readonly unique: true;
|
|
33
|
-
};
|
|
34
|
-
readonly password: {
|
|
35
|
-
readonly type: "string";
|
|
36
|
-
readonly inputType: "password";
|
|
37
|
-
readonly hidden: true;
|
|
38
|
-
};
|
|
39
|
-
readonly phone_number: {
|
|
40
|
-
readonly type: "string";
|
|
41
|
-
readonly mask: "(##) #####-####";
|
|
42
|
-
};
|
|
43
|
-
readonly picture_file: {
|
|
44
|
-
readonly $ref: "file";
|
|
45
|
-
readonly accept: readonly ["image/*"];
|
|
46
|
-
};
|
|
47
|
-
readonly picture: {
|
|
48
|
-
readonly getter: (value: any) => any;
|
|
49
|
-
};
|
|
50
|
-
readonly group: {
|
|
51
|
-
readonly type: "string";
|
|
52
|
-
};
|
|
53
|
-
readonly self_registered: {
|
|
54
|
-
readonly type: "boolean";
|
|
55
|
-
readonly readOnly: true;
|
|
56
|
-
};
|
|
57
|
-
readonly updated_at: {
|
|
58
|
-
readonly type: "string";
|
|
59
|
-
readonly format: "date-time";
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
63
|
-
readonly layout: {
|
|
64
|
-
readonly name: "grid";
|
|
65
|
-
readonly options: {
|
|
66
|
-
readonly title: "name";
|
|
67
|
-
readonly badge: "roles";
|
|
68
|
-
readonly picture: "picture_file";
|
|
69
|
-
readonly information: "email";
|
|
70
|
-
readonly active: "active";
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
readonly individualActions: {
|
|
74
|
-
readonly changePassword: {
|
|
75
|
-
readonly label: "change_password";
|
|
76
|
-
readonly icon: "key";
|
|
77
|
-
readonly translate: true;
|
|
78
|
-
readonly route: {
|
|
79
|
-
readonly name: "/dashboard/user/changepass";
|
|
80
|
-
readonly fetchItem: true;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
readonly copyActivationLink: {
|
|
84
|
-
readonly label: "copy_activation_link";
|
|
85
|
-
readonly icon: "link";
|
|
86
|
-
readonly translate: true;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
90
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
91
|
-
readonly tableMeta: readonly ["email"];
|
|
92
|
-
readonly formLayout: {
|
|
93
|
-
readonly fields: {
|
|
94
|
-
readonly given_name: {
|
|
95
|
-
readonly span: 3;
|
|
96
|
-
};
|
|
97
|
-
readonly family_name: {
|
|
98
|
-
readonly span: 3;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
}>>>(payload: NoInfer<TInsertPayload>, context: Context<typeof description>) => Promise<import("@aeriajs/types").InsertReturnType<SchemaWithId<{
|
|
103
|
-
readonly $id: "user";
|
|
104
|
-
readonly icon: "users";
|
|
105
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
106
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
107
|
-
readonly indexes: readonly ["name"];
|
|
108
|
-
readonly properties: {
|
|
109
|
-
readonly name: {
|
|
110
|
-
readonly type: "string";
|
|
111
|
-
};
|
|
112
|
-
readonly given_name: {
|
|
113
|
-
readonly getter: (document: any) => any;
|
|
114
|
-
};
|
|
115
|
-
readonly family_name: {
|
|
116
|
-
readonly getter: (document: any) => any;
|
|
117
|
-
};
|
|
118
|
-
readonly active: {
|
|
119
|
-
readonly type: "boolean";
|
|
120
|
-
};
|
|
121
|
-
readonly roles: {
|
|
122
|
-
readonly type: "array";
|
|
123
|
-
readonly items: {
|
|
124
|
-
readonly type: "string";
|
|
125
|
-
};
|
|
126
|
-
readonly uniqueItems: true;
|
|
127
|
-
};
|
|
128
|
-
readonly email: {
|
|
129
|
-
readonly type: "string";
|
|
130
|
-
readonly inputType: "email";
|
|
131
|
-
readonly unique: true;
|
|
132
|
-
};
|
|
133
|
-
readonly password: {
|
|
134
|
-
readonly type: "string";
|
|
135
|
-
readonly inputType: "password";
|
|
136
|
-
readonly hidden: true;
|
|
137
|
-
};
|
|
138
|
-
readonly phone_number: {
|
|
139
|
-
readonly type: "string";
|
|
140
|
-
readonly mask: "(##) #####-####";
|
|
141
|
-
};
|
|
142
|
-
readonly picture_file: {
|
|
143
|
-
readonly $ref: "file";
|
|
144
|
-
readonly accept: readonly ["image/*"];
|
|
145
|
-
};
|
|
146
|
-
readonly picture: {
|
|
147
|
-
readonly getter: (value: any) => any;
|
|
148
|
-
};
|
|
149
|
-
readonly group: {
|
|
150
|
-
readonly type: "string";
|
|
151
|
-
};
|
|
152
|
-
readonly self_registered: {
|
|
153
|
-
readonly type: "boolean";
|
|
154
|
-
readonly readOnly: true;
|
|
155
|
-
};
|
|
156
|
-
readonly updated_at: {
|
|
157
|
-
readonly type: "string";
|
|
158
|
-
readonly format: "date-time";
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
162
|
-
readonly layout: {
|
|
163
|
-
readonly name: "grid";
|
|
164
|
-
readonly options: {
|
|
165
|
-
readonly title: "name";
|
|
166
|
-
readonly badge: "roles";
|
|
167
|
-
readonly picture: "picture_file";
|
|
168
|
-
readonly information: "email";
|
|
169
|
-
readonly active: "active";
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
readonly individualActions: {
|
|
173
|
-
readonly changePassword: {
|
|
174
|
-
readonly label: "change_password";
|
|
175
|
-
readonly icon: "key";
|
|
176
|
-
readonly translate: true;
|
|
177
|
-
readonly route: {
|
|
178
|
-
readonly name: "/dashboard/user/changepass";
|
|
179
|
-
readonly fetchItem: true;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
readonly copyActivationLink: {
|
|
183
|
-
readonly label: "copy_activation_link";
|
|
184
|
-
readonly icon: "link";
|
|
185
|
-
readonly translate: true;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
189
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
190
|
-
readonly tableMeta: readonly ["email"];
|
|
191
|
-
readonly formLayout: {
|
|
192
|
-
readonly fields: {
|
|
193
|
-
readonly given_name: {
|
|
194
|
-
readonly span: 3;
|
|
195
|
-
};
|
|
196
|
-
readonly family_name: {
|
|
197
|
-
readonly span: 3;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
}>>>;
|
|
1
|
+
import type { Context, SchemaWithId, InsertPayload, Description } from '@aeriajs/types';
|
|
2
|
+
export declare const insert: <TDescription extends Description, TInsertPayload extends InsertPayload<SchemaWithId<TDescription>>>(payload: NoInfer<TInsertPayload>, context: Context<TDescription>) => Promise<import("@aeriajs/types").InsertReturnType<SchemaWithId<TDescription>>>;
|
|
@@ -4,7 +4,7 @@ exports.insert = void 0;
|
|
|
4
4
|
const core_1 = require("@aeriajs/core");
|
|
5
5
|
const bcrypt = require("bcrypt");
|
|
6
6
|
const insert = async (payload, context) => {
|
|
7
|
-
if (payload.what.password) {
|
|
7
|
+
if ('password' in payload.what && typeof payload.what.password === 'string') {
|
|
8
8
|
payload.what.password = await bcrypt.hash(payload.what.password, 10);
|
|
9
9
|
}
|
|
10
10
|
return (0, core_1.insert)(payload, context);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { insert as originalInsert } from "@aeriajs/core";
|
|
3
3
|
import * as bcrypt from "bcrypt";
|
|
4
4
|
export const insert = async (payload, context) => {
|
|
5
|
-
if (payload.what.password) {
|
|
5
|
+
if ("password" in payload.what && typeof payload.what.password === "string") {
|
|
6
6
|
payload.what.password = await bcrypt.hash(payload.what.password, 10);
|
|
7
7
|
}
|
|
8
8
|
return originalInsert(payload, context);
|
package/dist/index.d.ts
CHANGED
|
@@ -840,205 +840,7 @@ export declare const collections: {
|
|
|
840
840
|
} & {
|
|
841
841
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
842
842
|
}>>;
|
|
843
|
-
readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<
|
|
844
|
-
readonly $id: "user";
|
|
845
|
-
readonly icon: "users";
|
|
846
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
847
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
848
|
-
readonly indexes: readonly ["name"];
|
|
849
|
-
readonly properties: {
|
|
850
|
-
readonly name: {
|
|
851
|
-
readonly type: "string";
|
|
852
|
-
};
|
|
853
|
-
readonly given_name: {
|
|
854
|
-
readonly getter: (document: any) => any;
|
|
855
|
-
};
|
|
856
|
-
readonly family_name: {
|
|
857
|
-
readonly getter: (document: any) => any;
|
|
858
|
-
};
|
|
859
|
-
readonly active: {
|
|
860
|
-
readonly type: "boolean";
|
|
861
|
-
};
|
|
862
|
-
readonly roles: {
|
|
863
|
-
readonly type: "array";
|
|
864
|
-
readonly items: {
|
|
865
|
-
readonly type: "string";
|
|
866
|
-
};
|
|
867
|
-
readonly uniqueItems: true;
|
|
868
|
-
};
|
|
869
|
-
readonly email: {
|
|
870
|
-
readonly type: "string";
|
|
871
|
-
readonly inputType: "email";
|
|
872
|
-
readonly unique: true;
|
|
873
|
-
};
|
|
874
|
-
readonly password: {
|
|
875
|
-
readonly type: "string";
|
|
876
|
-
readonly inputType: "password";
|
|
877
|
-
readonly hidden: true;
|
|
878
|
-
};
|
|
879
|
-
readonly phone_number: {
|
|
880
|
-
readonly type: "string";
|
|
881
|
-
readonly mask: "(##) #####-####";
|
|
882
|
-
};
|
|
883
|
-
readonly picture_file: {
|
|
884
|
-
readonly $ref: "file";
|
|
885
|
-
readonly accept: readonly ["image/*"];
|
|
886
|
-
};
|
|
887
|
-
readonly picture: {
|
|
888
|
-
readonly getter: (value: any) => any;
|
|
889
|
-
};
|
|
890
|
-
readonly group: {
|
|
891
|
-
readonly type: "string";
|
|
892
|
-
};
|
|
893
|
-
readonly self_registered: {
|
|
894
|
-
readonly type: "boolean";
|
|
895
|
-
readonly readOnly: true;
|
|
896
|
-
};
|
|
897
|
-
readonly updated_at: {
|
|
898
|
-
readonly type: "string";
|
|
899
|
-
readonly format: "date-time";
|
|
900
|
-
};
|
|
901
|
-
};
|
|
902
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
903
|
-
readonly layout: {
|
|
904
|
-
readonly name: "grid";
|
|
905
|
-
readonly options: {
|
|
906
|
-
readonly title: "name";
|
|
907
|
-
readonly badge: "roles";
|
|
908
|
-
readonly picture: "picture_file";
|
|
909
|
-
readonly information: "email";
|
|
910
|
-
readonly active: "active";
|
|
911
|
-
};
|
|
912
|
-
};
|
|
913
|
-
readonly individualActions: {
|
|
914
|
-
readonly changePassword: {
|
|
915
|
-
readonly label: "change_password";
|
|
916
|
-
readonly icon: "key";
|
|
917
|
-
readonly translate: true;
|
|
918
|
-
readonly route: {
|
|
919
|
-
readonly name: "/dashboard/user/changepass";
|
|
920
|
-
readonly fetchItem: true;
|
|
921
|
-
};
|
|
922
|
-
};
|
|
923
|
-
readonly copyActivationLink: {
|
|
924
|
-
readonly label: "copy_activation_link";
|
|
925
|
-
readonly icon: "link";
|
|
926
|
-
readonly translate: true;
|
|
927
|
-
};
|
|
928
|
-
};
|
|
929
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
930
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
931
|
-
readonly tableMeta: readonly ["email"];
|
|
932
|
-
readonly formLayout: {
|
|
933
|
-
readonly fields: {
|
|
934
|
-
readonly given_name: {
|
|
935
|
-
readonly span: 3;
|
|
936
|
-
};
|
|
937
|
-
readonly family_name: {
|
|
938
|
-
readonly span: 3;
|
|
939
|
-
};
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
}>>>, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
943
|
-
readonly $id: "user";
|
|
944
|
-
readonly icon: "users";
|
|
945
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
946
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
947
|
-
readonly indexes: readonly ["name"];
|
|
948
|
-
readonly properties: {
|
|
949
|
-
readonly name: {
|
|
950
|
-
readonly type: "string";
|
|
951
|
-
};
|
|
952
|
-
readonly given_name: {
|
|
953
|
-
readonly getter: (document: any) => any;
|
|
954
|
-
};
|
|
955
|
-
readonly family_name: {
|
|
956
|
-
readonly getter: (document: any) => any;
|
|
957
|
-
};
|
|
958
|
-
readonly active: {
|
|
959
|
-
readonly type: "boolean";
|
|
960
|
-
};
|
|
961
|
-
readonly roles: {
|
|
962
|
-
readonly type: "array";
|
|
963
|
-
readonly items: {
|
|
964
|
-
readonly type: "string";
|
|
965
|
-
};
|
|
966
|
-
readonly uniqueItems: true;
|
|
967
|
-
};
|
|
968
|
-
readonly email: {
|
|
969
|
-
readonly type: "string";
|
|
970
|
-
readonly inputType: "email";
|
|
971
|
-
readonly unique: true;
|
|
972
|
-
};
|
|
973
|
-
readonly password: {
|
|
974
|
-
readonly type: "string";
|
|
975
|
-
readonly inputType: "password";
|
|
976
|
-
readonly hidden: true;
|
|
977
|
-
};
|
|
978
|
-
readonly phone_number: {
|
|
979
|
-
readonly type: "string";
|
|
980
|
-
readonly mask: "(##) #####-####";
|
|
981
|
-
};
|
|
982
|
-
readonly picture_file: {
|
|
983
|
-
readonly $ref: "file";
|
|
984
|
-
readonly accept: readonly ["image/*"];
|
|
985
|
-
};
|
|
986
|
-
readonly picture: {
|
|
987
|
-
readonly getter: (value: any) => any;
|
|
988
|
-
};
|
|
989
|
-
readonly group: {
|
|
990
|
-
readonly type: "string";
|
|
991
|
-
};
|
|
992
|
-
readonly self_registered: {
|
|
993
|
-
readonly type: "boolean";
|
|
994
|
-
readonly readOnly: true;
|
|
995
|
-
};
|
|
996
|
-
readonly updated_at: {
|
|
997
|
-
readonly type: "string";
|
|
998
|
-
readonly format: "date-time";
|
|
999
|
-
};
|
|
1000
|
-
};
|
|
1001
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
1002
|
-
readonly layout: {
|
|
1003
|
-
readonly name: "grid";
|
|
1004
|
-
readonly options: {
|
|
1005
|
-
readonly title: "name";
|
|
1006
|
-
readonly badge: "roles";
|
|
1007
|
-
readonly picture: "picture_file";
|
|
1008
|
-
readonly information: "email";
|
|
1009
|
-
readonly active: "active";
|
|
1010
|
-
};
|
|
1011
|
-
};
|
|
1012
|
-
readonly individualActions: {
|
|
1013
|
-
readonly changePassword: {
|
|
1014
|
-
readonly label: "change_password";
|
|
1015
|
-
readonly icon: "key";
|
|
1016
|
-
readonly translate: true;
|
|
1017
|
-
readonly route: {
|
|
1018
|
-
readonly name: "/dashboard/user/changepass";
|
|
1019
|
-
readonly fetchItem: true;
|
|
1020
|
-
};
|
|
1021
|
-
};
|
|
1022
|
-
readonly copyActivationLink: {
|
|
1023
|
-
readonly label: "copy_activation_link";
|
|
1024
|
-
readonly icon: "link";
|
|
1025
|
-
readonly translate: true;
|
|
1026
|
-
};
|
|
1027
|
-
};
|
|
1028
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1029
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1030
|
-
readonly tableMeta: readonly ["email"];
|
|
1031
|
-
readonly formLayout: {
|
|
1032
|
-
readonly fields: {
|
|
1033
|
-
readonly given_name: {
|
|
1034
|
-
readonly span: 3;
|
|
1035
|
-
};
|
|
1036
|
-
readonly family_name: {
|
|
1037
|
-
readonly span: 3;
|
|
1038
|
-
};
|
|
1039
|
-
};
|
|
1040
|
-
};
|
|
1041
|
-
}>>>;
|
|
843
|
+
readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>>, context: import("@aeriajs/types").Context<any>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
|
|
1042
844
|
readonly authenticate: (props: {
|
|
1043
845
|
email: string;
|
|
1044
846
|
password: string;
|
|
@@ -1522,205 +1324,7 @@ export declare const collections: {
|
|
|
1522
1324
|
} & {
|
|
1523
1325
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
1524
1326
|
}>>;
|
|
1525
|
-
readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<
|
|
1526
|
-
readonly $id: "user";
|
|
1527
|
-
readonly icon: "users";
|
|
1528
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1529
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1530
|
-
readonly indexes: readonly ["name"];
|
|
1531
|
-
readonly properties: {
|
|
1532
|
-
readonly name: {
|
|
1533
|
-
readonly type: "string";
|
|
1534
|
-
};
|
|
1535
|
-
readonly given_name: {
|
|
1536
|
-
readonly getter: (document: any) => any;
|
|
1537
|
-
};
|
|
1538
|
-
readonly family_name: {
|
|
1539
|
-
readonly getter: (document: any) => any;
|
|
1540
|
-
};
|
|
1541
|
-
readonly active: {
|
|
1542
|
-
readonly type: "boolean";
|
|
1543
|
-
};
|
|
1544
|
-
readonly roles: {
|
|
1545
|
-
readonly type: "array";
|
|
1546
|
-
readonly items: {
|
|
1547
|
-
readonly type: "string";
|
|
1548
|
-
};
|
|
1549
|
-
readonly uniqueItems: true;
|
|
1550
|
-
};
|
|
1551
|
-
readonly email: {
|
|
1552
|
-
readonly type: "string";
|
|
1553
|
-
readonly inputType: "email";
|
|
1554
|
-
readonly unique: true;
|
|
1555
|
-
};
|
|
1556
|
-
readonly password: {
|
|
1557
|
-
readonly type: "string";
|
|
1558
|
-
readonly inputType: "password";
|
|
1559
|
-
readonly hidden: true;
|
|
1560
|
-
};
|
|
1561
|
-
readonly phone_number: {
|
|
1562
|
-
readonly type: "string";
|
|
1563
|
-
readonly mask: "(##) #####-####";
|
|
1564
|
-
};
|
|
1565
|
-
readonly picture_file: {
|
|
1566
|
-
readonly $ref: "file";
|
|
1567
|
-
readonly accept: readonly ["image/*"];
|
|
1568
|
-
};
|
|
1569
|
-
readonly picture: {
|
|
1570
|
-
readonly getter: (value: any) => any;
|
|
1571
|
-
};
|
|
1572
|
-
readonly group: {
|
|
1573
|
-
readonly type: "string";
|
|
1574
|
-
};
|
|
1575
|
-
readonly self_registered: {
|
|
1576
|
-
readonly type: "boolean";
|
|
1577
|
-
readonly readOnly: true;
|
|
1578
|
-
};
|
|
1579
|
-
readonly updated_at: {
|
|
1580
|
-
readonly type: "string";
|
|
1581
|
-
readonly format: "date-time";
|
|
1582
|
-
};
|
|
1583
|
-
};
|
|
1584
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
1585
|
-
readonly layout: {
|
|
1586
|
-
readonly name: "grid";
|
|
1587
|
-
readonly options: {
|
|
1588
|
-
readonly title: "name";
|
|
1589
|
-
readonly badge: "roles";
|
|
1590
|
-
readonly picture: "picture_file";
|
|
1591
|
-
readonly information: "email";
|
|
1592
|
-
readonly active: "active";
|
|
1593
|
-
};
|
|
1594
|
-
};
|
|
1595
|
-
readonly individualActions: {
|
|
1596
|
-
readonly changePassword: {
|
|
1597
|
-
readonly label: "change_password";
|
|
1598
|
-
readonly icon: "key";
|
|
1599
|
-
readonly translate: true;
|
|
1600
|
-
readonly route: {
|
|
1601
|
-
readonly name: "/dashboard/user/changepass";
|
|
1602
|
-
readonly fetchItem: true;
|
|
1603
|
-
};
|
|
1604
|
-
};
|
|
1605
|
-
readonly copyActivationLink: {
|
|
1606
|
-
readonly label: "copy_activation_link";
|
|
1607
|
-
readonly icon: "link";
|
|
1608
|
-
readonly translate: true;
|
|
1609
|
-
};
|
|
1610
|
-
};
|
|
1611
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1612
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1613
|
-
readonly tableMeta: readonly ["email"];
|
|
1614
|
-
readonly formLayout: {
|
|
1615
|
-
readonly fields: {
|
|
1616
|
-
readonly given_name: {
|
|
1617
|
-
readonly span: 3;
|
|
1618
|
-
};
|
|
1619
|
-
readonly family_name: {
|
|
1620
|
-
readonly span: 3;
|
|
1621
|
-
};
|
|
1622
|
-
};
|
|
1623
|
-
};
|
|
1624
|
-
}>>>, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
1625
|
-
readonly $id: "user";
|
|
1626
|
-
readonly icon: "users";
|
|
1627
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1628
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1629
|
-
readonly indexes: readonly ["name"];
|
|
1630
|
-
readonly properties: {
|
|
1631
|
-
readonly name: {
|
|
1632
|
-
readonly type: "string";
|
|
1633
|
-
};
|
|
1634
|
-
readonly given_name: {
|
|
1635
|
-
readonly getter: (document: any) => any;
|
|
1636
|
-
};
|
|
1637
|
-
readonly family_name: {
|
|
1638
|
-
readonly getter: (document: any) => any;
|
|
1639
|
-
};
|
|
1640
|
-
readonly active: {
|
|
1641
|
-
readonly type: "boolean";
|
|
1642
|
-
};
|
|
1643
|
-
readonly roles: {
|
|
1644
|
-
readonly type: "array";
|
|
1645
|
-
readonly items: {
|
|
1646
|
-
readonly type: "string";
|
|
1647
|
-
};
|
|
1648
|
-
readonly uniqueItems: true;
|
|
1649
|
-
};
|
|
1650
|
-
readonly email: {
|
|
1651
|
-
readonly type: "string";
|
|
1652
|
-
readonly inputType: "email";
|
|
1653
|
-
readonly unique: true;
|
|
1654
|
-
};
|
|
1655
|
-
readonly password: {
|
|
1656
|
-
readonly type: "string";
|
|
1657
|
-
readonly inputType: "password";
|
|
1658
|
-
readonly hidden: true;
|
|
1659
|
-
};
|
|
1660
|
-
readonly phone_number: {
|
|
1661
|
-
readonly type: "string";
|
|
1662
|
-
readonly mask: "(##) #####-####";
|
|
1663
|
-
};
|
|
1664
|
-
readonly picture_file: {
|
|
1665
|
-
readonly $ref: "file";
|
|
1666
|
-
readonly accept: readonly ["image/*"];
|
|
1667
|
-
};
|
|
1668
|
-
readonly picture: {
|
|
1669
|
-
readonly getter: (value: any) => any;
|
|
1670
|
-
};
|
|
1671
|
-
readonly group: {
|
|
1672
|
-
readonly type: "string";
|
|
1673
|
-
};
|
|
1674
|
-
readonly self_registered: {
|
|
1675
|
-
readonly type: "boolean";
|
|
1676
|
-
readonly readOnly: true;
|
|
1677
|
-
};
|
|
1678
|
-
readonly updated_at: {
|
|
1679
|
-
readonly type: "string";
|
|
1680
|
-
readonly format: "date-time";
|
|
1681
|
-
};
|
|
1682
|
-
};
|
|
1683
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
1684
|
-
readonly layout: {
|
|
1685
|
-
readonly name: "grid";
|
|
1686
|
-
readonly options: {
|
|
1687
|
-
readonly title: "name";
|
|
1688
|
-
readonly badge: "roles";
|
|
1689
|
-
readonly picture: "picture_file";
|
|
1690
|
-
readonly information: "email";
|
|
1691
|
-
readonly active: "active";
|
|
1692
|
-
};
|
|
1693
|
-
};
|
|
1694
|
-
readonly individualActions: {
|
|
1695
|
-
readonly changePassword: {
|
|
1696
|
-
readonly label: "change_password";
|
|
1697
|
-
readonly icon: "key";
|
|
1698
|
-
readonly translate: true;
|
|
1699
|
-
readonly route: {
|
|
1700
|
-
readonly name: "/dashboard/user/changepass";
|
|
1701
|
-
readonly fetchItem: true;
|
|
1702
|
-
};
|
|
1703
|
-
};
|
|
1704
|
-
readonly copyActivationLink: {
|
|
1705
|
-
readonly label: "copy_activation_link";
|
|
1706
|
-
readonly icon: "link";
|
|
1707
|
-
readonly translate: true;
|
|
1708
|
-
};
|
|
1709
|
-
};
|
|
1710
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1711
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1712
|
-
readonly tableMeta: readonly ["email"];
|
|
1713
|
-
readonly formLayout: {
|
|
1714
|
-
readonly fields: {
|
|
1715
|
-
readonly given_name: {
|
|
1716
|
-
readonly span: 3;
|
|
1717
|
-
};
|
|
1718
|
-
readonly family_name: {
|
|
1719
|
-
readonly span: 3;
|
|
1720
|
-
};
|
|
1721
|
-
};
|
|
1722
|
-
};
|
|
1723
|
-
}>>>;
|
|
1327
|
+
readonly insert: (payload: NoInfer<import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>>, context: import("@aeriajs/types").Context<any>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
|
|
1724
1328
|
readonly authenticate: (props: {
|
|
1725
1329
|
email: string;
|
|
1726
1330
|
password: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.152",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"mongodb": "^6.5.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@aeriajs/core": "^0.0.
|
|
49
|
-
"@aeriajs/common": "^0.0.
|
|
50
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
51
|
-
"@aeriajs/types": "^0.0.
|
|
52
|
-
"@aeriajs/validation": "^0.0.
|
|
48
|
+
"@aeriajs/core": "^0.0.152",
|
|
49
|
+
"@aeriajs/common": "^0.0.91",
|
|
50
|
+
"@aeriajs/entrypoint": "^0.0.93",
|
|
51
|
+
"@aeriajs/types": "^0.0.79",
|
|
52
|
+
"@aeriajs/validation": "^0.0.94"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"test": "echo skipping",
|