@aeriajs/builtins 0.0.74 → 0.0.76
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/description.d.ts +2 -2
- package/dist/collections/file/description.js +2 -2
- package/dist/collections/file/description.mjs +2 -2
- package/dist/collections/file/index.d.ts +36 -36
- package/dist/collections/file/insert.d.ts +2 -2
- package/dist/collections/log/index.d.ts +1 -1
- package/dist/collections/resourceUsage/index.d.ts +1 -1
- package/dist/collections/user/activate.d.ts +1 -1
- package/dist/collections/user/createAccount.d.ts +1 -100
- package/dist/collections/user/description.d.ts +2 -2
- package/dist/collections/user/description.js +2 -2
- package/dist/collections/user/description.mjs +2 -2
- package/dist/collections/user/getCurrentUser.d.ts +107 -0
- package/dist/collections/user/getCurrentUser.js +26 -0
- package/dist/collections/user/getCurrentUser.mjs +24 -0
- package/dist/collections/user/getInfo.d.ts +2 -2
- package/dist/collections/user/index.d.ts +325 -103
- package/dist/collections/user/index.js +17 -8
- package/dist/collections/user/index.mjs +17 -8
- package/dist/collections/user/insert.d.ts +2 -2
- package/dist/functions/describe.d.ts +3 -3
- package/dist/functions/describe.js +1 -2
- package/dist/functions/describe.mjs +1 -2
- package/dist/index.d.ts +363 -141
- package/package.json +6 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const user:
|
|
1
|
+
export declare const user: {
|
|
2
2
|
description: {
|
|
3
3
|
readonly $id: "user";
|
|
4
4
|
readonly required: readonly ["name", "roles", "email"];
|
|
@@ -73,12 +73,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
73
73
|
};
|
|
74
74
|
readonly individualActions: {
|
|
75
75
|
readonly 'ui:spawnEdit': {
|
|
76
|
-
readonly
|
|
76
|
+
readonly label: "action.edit";
|
|
77
77
|
readonly icon: "pencil";
|
|
78
78
|
readonly translate: true;
|
|
79
79
|
};
|
|
80
80
|
readonly 'route:/dashboard/user/changepass': {
|
|
81
|
-
readonly
|
|
81
|
+
readonly label: "change_password";
|
|
82
82
|
readonly icon: "key";
|
|
83
83
|
readonly fetchItem: true;
|
|
84
84
|
readonly translate: true;
|
|
@@ -182,12 +182,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
182
182
|
};
|
|
183
183
|
readonly individualActions: {
|
|
184
184
|
readonly 'ui:spawnEdit': {
|
|
185
|
-
readonly
|
|
185
|
+
readonly label: "action.edit";
|
|
186
186
|
readonly icon: "pencil";
|
|
187
187
|
readonly translate: true;
|
|
188
188
|
};
|
|
189
189
|
readonly 'route:/dashboard/user/changepass': {
|
|
190
|
-
readonly
|
|
190
|
+
readonly label: "change_password";
|
|
191
191
|
readonly icon: "key";
|
|
192
192
|
readonly fetchItem: true;
|
|
193
193
|
readonly translate: true;
|
|
@@ -282,12 +282,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
282
282
|
};
|
|
283
283
|
readonly individualActions: {
|
|
284
284
|
readonly 'ui:spawnEdit': {
|
|
285
|
-
readonly
|
|
285
|
+
readonly label: "action.edit";
|
|
286
286
|
readonly icon: "pencil";
|
|
287
287
|
readonly translate: true;
|
|
288
288
|
};
|
|
289
289
|
readonly 'route:/dashboard/user/changepass': {
|
|
290
|
-
readonly
|
|
290
|
+
readonly label: "change_password";
|
|
291
291
|
readonly icon: "key";
|
|
292
292
|
readonly fetchItem: true;
|
|
293
293
|
readonly translate: true;
|
|
@@ -381,12 +381,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
381
381
|
};
|
|
382
382
|
readonly individualActions: {
|
|
383
383
|
readonly 'ui:spawnEdit': {
|
|
384
|
-
readonly
|
|
384
|
+
readonly label: "action.edit";
|
|
385
385
|
readonly icon: "pencil";
|
|
386
386
|
readonly translate: true;
|
|
387
387
|
};
|
|
388
388
|
readonly 'route:/dashboard/user/changepass': {
|
|
389
|
-
readonly
|
|
389
|
+
readonly label: "change_password";
|
|
390
390
|
readonly icon: "key";
|
|
391
391
|
readonly fetchItem: true;
|
|
392
392
|
readonly translate: true;
|
|
@@ -487,12 +487,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
487
487
|
};
|
|
488
488
|
readonly individualActions: {
|
|
489
489
|
readonly 'ui:spawnEdit': {
|
|
490
|
-
readonly
|
|
490
|
+
readonly label: "action.edit";
|
|
491
491
|
readonly icon: "pencil";
|
|
492
492
|
readonly translate: true;
|
|
493
493
|
};
|
|
494
494
|
readonly 'route:/dashboard/user/changepass': {
|
|
495
|
-
readonly
|
|
495
|
+
readonly label: "change_password";
|
|
496
496
|
readonly icon: "key";
|
|
497
497
|
readonly fetchItem: true;
|
|
498
498
|
readonly translate: true;
|
|
@@ -587,12 +587,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
587
587
|
};
|
|
588
588
|
readonly individualActions: {
|
|
589
589
|
readonly 'ui:spawnEdit': {
|
|
590
|
-
readonly
|
|
590
|
+
readonly label: "action.edit";
|
|
591
591
|
readonly icon: "pencil";
|
|
592
592
|
readonly translate: true;
|
|
593
593
|
};
|
|
594
594
|
readonly 'route:/dashboard/user/changepass': {
|
|
595
|
-
readonly
|
|
595
|
+
readonly label: "change_password";
|
|
596
596
|
readonly icon: "key";
|
|
597
597
|
readonly fetchItem: true;
|
|
598
598
|
readonly translate: true;
|
|
@@ -612,7 +612,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
612
612
|
};
|
|
613
613
|
};
|
|
614
614
|
};
|
|
615
|
-
}>, "name" | "
|
|
615
|
+
}>, "name" | "roles" | "email" | "active"> & {
|
|
616
616
|
_id: import("@aeriajs/core").ObjectId | null;
|
|
617
617
|
};
|
|
618
618
|
token: import("@aeriajs/types").TokenRecipient;
|
|
@@ -705,12 +705,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
705
705
|
};
|
|
706
706
|
readonly individualActions: {
|
|
707
707
|
readonly 'ui:spawnEdit': {
|
|
708
|
-
readonly
|
|
708
|
+
readonly label: "action.edit";
|
|
709
709
|
readonly icon: "pencil";
|
|
710
710
|
readonly translate: true;
|
|
711
711
|
};
|
|
712
712
|
readonly 'route:/dashboard/user/changepass': {
|
|
713
|
-
readonly
|
|
713
|
+
readonly label: "change_password";
|
|
714
714
|
readonly icon: "key";
|
|
715
715
|
readonly fetchItem: true;
|
|
716
716
|
readonly translate: true;
|
|
@@ -730,7 +730,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
730
730
|
};
|
|
731
731
|
};
|
|
732
732
|
};
|
|
733
|
-
}>) => Promise<import("@aeriajs/types").
|
|
733
|
+
}>) => Promise<import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Right<true>>;
|
|
734
734
|
readonly createAccount: (payload: Omit<Pick<{
|
|
735
735
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
736
736
|
readonly $id: "file";
|
|
@@ -769,14 +769,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
769
769
|
};
|
|
770
770
|
readonly actions: {
|
|
771
771
|
readonly deleteAll: {
|
|
772
|
-
readonly
|
|
772
|
+
readonly label: "Remover";
|
|
773
773
|
readonly ask: true;
|
|
774
774
|
readonly selection: true;
|
|
775
775
|
};
|
|
776
776
|
};
|
|
777
777
|
readonly individualActions: {
|
|
778
778
|
readonly remove: {
|
|
779
|
-
readonly
|
|
779
|
+
readonly label: "Remover";
|
|
780
780
|
readonly icon: "trash";
|
|
781
781
|
readonly ask: true;
|
|
782
782
|
};
|
|
@@ -838,14 +838,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
838
838
|
name: string;
|
|
839
839
|
password: string;
|
|
840
840
|
updated_at: Date;
|
|
841
|
-
active: boolean;
|
|
842
841
|
roles: string[];
|
|
843
842
|
email: string;
|
|
844
|
-
|
|
843
|
+
active: boolean;
|
|
845
844
|
phone_number: string;
|
|
846
845
|
picture_file: never;
|
|
847
846
|
given_name: string;
|
|
848
847
|
family_name: string;
|
|
848
|
+
picture: any;
|
|
849
849
|
group: string;
|
|
850
850
|
}, "picture_file">, "name" | "roles" | "email"> & Partial<{
|
|
851
851
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
@@ -885,14 +885,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
885
885
|
};
|
|
886
886
|
readonly actions: {
|
|
887
887
|
readonly deleteAll: {
|
|
888
|
-
readonly
|
|
888
|
+
readonly label: "Remover";
|
|
889
889
|
readonly ask: true;
|
|
890
890
|
readonly selection: true;
|
|
891
891
|
};
|
|
892
892
|
};
|
|
893
893
|
readonly individualActions: {
|
|
894
894
|
readonly remove: {
|
|
895
|
-
readonly
|
|
895
|
+
readonly label: "Remover";
|
|
896
896
|
readonly icon: "trash";
|
|
897
897
|
readonly ask: true;
|
|
898
898
|
};
|
|
@@ -954,14 +954,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
954
954
|
name: string;
|
|
955
955
|
password: string;
|
|
956
956
|
updated_at: Date;
|
|
957
|
-
active: boolean;
|
|
958
957
|
roles: string[];
|
|
959
958
|
email: string;
|
|
960
|
-
|
|
959
|
+
active: boolean;
|
|
961
960
|
phone_number: string;
|
|
962
961
|
picture_file: never;
|
|
963
962
|
given_name: string;
|
|
964
963
|
family_name: string;
|
|
964
|
+
picture: any;
|
|
965
965
|
group: string;
|
|
966
966
|
}, "picture_file">> & {
|
|
967
967
|
updated_at?: Date | undefined;
|
|
@@ -1040,12 +1040,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1040
1040
|
};
|
|
1041
1041
|
readonly individualActions: {
|
|
1042
1042
|
readonly 'ui:spawnEdit': {
|
|
1043
|
-
readonly
|
|
1043
|
+
readonly label: "action.edit";
|
|
1044
1044
|
readonly icon: "pencil";
|
|
1045
1045
|
readonly translate: true;
|
|
1046
1046
|
};
|
|
1047
1047
|
readonly 'route:/dashboard/user/changepass': {
|
|
1048
|
-
readonly
|
|
1048
|
+
readonly label: "change_password";
|
|
1049
1049
|
readonly icon: "key";
|
|
1050
1050
|
readonly fetchItem: true;
|
|
1051
1051
|
readonly translate: true;
|
|
@@ -1065,7 +1065,11 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1065
1065
|
};
|
|
1066
1066
|
};
|
|
1067
1067
|
};
|
|
1068
|
-
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<
|
|
1068
|
+
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<any>>;
|
|
1069
|
+
readonly getInfo: (payload: {
|
|
1070
|
+
userId: string;
|
|
1071
|
+
token: string;
|
|
1072
|
+
}, context: import("@aeriajs/types").Context<{
|
|
1069
1073
|
readonly $id: "user";
|
|
1070
1074
|
readonly required: readonly ["name", "roles", "email"];
|
|
1071
1075
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -1139,12 +1143,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1139
1143
|
};
|
|
1140
1144
|
readonly individualActions: {
|
|
1141
1145
|
readonly 'ui:spawnEdit': {
|
|
1142
|
-
readonly
|
|
1146
|
+
readonly label: "action.edit";
|
|
1143
1147
|
readonly icon: "pencil";
|
|
1144
1148
|
readonly translate: true;
|
|
1145
1149
|
};
|
|
1146
1150
|
readonly 'route:/dashboard/user/changepass': {
|
|
1147
|
-
readonly
|
|
1151
|
+
readonly label: "change_password";
|
|
1148
1152
|
readonly icon: "key";
|
|
1149
1153
|
readonly fetchItem: true;
|
|
1150
1154
|
readonly translate: true;
|
|
@@ -1164,11 +1168,11 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1164
1168
|
};
|
|
1165
1169
|
};
|
|
1166
1170
|
};
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1171
|
+
}>) => Promise<import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
|
|
1172
|
+
readonly name: any;
|
|
1173
|
+
readonly email: any;
|
|
1174
|
+
}>>;
|
|
1175
|
+
readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<{
|
|
1172
1176
|
readonly $id: "user";
|
|
1173
1177
|
readonly required: readonly ["name", "roles", "email"];
|
|
1174
1178
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -1242,12 +1246,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1242
1246
|
};
|
|
1243
1247
|
readonly individualActions: {
|
|
1244
1248
|
readonly 'ui:spawnEdit': {
|
|
1245
|
-
readonly
|
|
1249
|
+
readonly label: "action.edit";
|
|
1246
1250
|
readonly icon: "pencil";
|
|
1247
1251
|
readonly translate: true;
|
|
1248
1252
|
};
|
|
1249
1253
|
readonly 'route:/dashboard/user/changepass': {
|
|
1250
|
-
readonly
|
|
1254
|
+
readonly label: "change_password";
|
|
1251
1255
|
readonly icon: "key";
|
|
1252
1256
|
readonly fetchItem: true;
|
|
1253
1257
|
readonly translate: true;
|
|
@@ -1267,23 +1271,133 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1267
1271
|
};
|
|
1268
1272
|
};
|
|
1269
1273
|
};
|
|
1270
|
-
}>) => Promise<import("@aeriajs/types").Left<
|
|
1271
|
-
readonly
|
|
1272
|
-
readonly
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1274
|
+
}>) => Promise<import("@aeriajs/types").Left<{}> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
|
|
1275
|
+
readonly $id: "user";
|
|
1276
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1277
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1278
|
+
readonly indexes: readonly ["name"];
|
|
1279
|
+
readonly freshItem: {
|
|
1280
|
+
readonly active: true;
|
|
1281
|
+
};
|
|
1282
|
+
readonly properties: {
|
|
1283
|
+
readonly name: {
|
|
1284
|
+
readonly type: "string";
|
|
1285
|
+
};
|
|
1286
|
+
readonly given_name: {
|
|
1287
|
+
readonly getter: (document: any) => string;
|
|
1288
|
+
};
|
|
1289
|
+
readonly family_name: {
|
|
1290
|
+
readonly getter: (document: any) => string;
|
|
1291
|
+
};
|
|
1292
|
+
readonly active: {
|
|
1293
|
+
readonly type: "boolean";
|
|
1294
|
+
};
|
|
1295
|
+
readonly roles: {
|
|
1296
|
+
readonly type: "array";
|
|
1297
|
+
readonly items: {
|
|
1298
|
+
readonly type: "string";
|
|
1299
|
+
};
|
|
1300
|
+
readonly uniqueItems: true;
|
|
1301
|
+
};
|
|
1302
|
+
readonly email: {
|
|
1303
|
+
readonly type: "string";
|
|
1304
|
+
readonly inputType: "email";
|
|
1305
|
+
readonly unique: true;
|
|
1306
|
+
};
|
|
1307
|
+
readonly password: {
|
|
1308
|
+
readonly type: "string";
|
|
1309
|
+
readonly inputType: "password";
|
|
1310
|
+
readonly hidden: true;
|
|
1311
|
+
};
|
|
1312
|
+
readonly phone_number: {
|
|
1313
|
+
readonly type: "string";
|
|
1314
|
+
readonly mask: "(##) #####-####";
|
|
1315
|
+
};
|
|
1316
|
+
readonly picture_file: {
|
|
1317
|
+
readonly $ref: "file";
|
|
1318
|
+
readonly accept: readonly ["image/*"];
|
|
1319
|
+
};
|
|
1320
|
+
readonly picture: {
|
|
1321
|
+
readonly getter: (value: any) => any;
|
|
1322
|
+
};
|
|
1323
|
+
readonly group: {
|
|
1324
|
+
readonly type: "string";
|
|
1325
|
+
};
|
|
1326
|
+
readonly self_registered: {
|
|
1327
|
+
readonly type: "boolean";
|
|
1328
|
+
readonly readOnly: true;
|
|
1329
|
+
};
|
|
1330
|
+
readonly updated_at: {
|
|
1331
|
+
readonly type: "string";
|
|
1332
|
+
readonly format: "date-time";
|
|
1333
|
+
};
|
|
1280
1334
|
};
|
|
1281
|
-
|
|
1282
|
-
|
|
1335
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1336
|
+
readonly layout: {
|
|
1337
|
+
readonly name: "grid";
|
|
1338
|
+
readonly options: {
|
|
1339
|
+
readonly title: "name";
|
|
1340
|
+
readonly badge: "roles";
|
|
1341
|
+
readonly picture: "picture_file";
|
|
1342
|
+
readonly information: "email";
|
|
1343
|
+
readonly active: "active";
|
|
1344
|
+
};
|
|
1283
1345
|
};
|
|
1346
|
+
readonly individualActions: {
|
|
1347
|
+
readonly 'ui:spawnEdit': {
|
|
1348
|
+
readonly label: "action.edit";
|
|
1349
|
+
readonly icon: "pencil";
|
|
1350
|
+
readonly translate: true;
|
|
1351
|
+
};
|
|
1352
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1353
|
+
readonly label: "change_password";
|
|
1354
|
+
readonly icon: "key";
|
|
1355
|
+
readonly fetchItem: true;
|
|
1356
|
+
readonly translate: true;
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
readonly icon: "users";
|
|
1360
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1361
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1362
|
+
readonly tableMeta: readonly ["email"];
|
|
1363
|
+
readonly formLayout: {
|
|
1364
|
+
readonly fields: {
|
|
1365
|
+
readonly given_name: {
|
|
1366
|
+
readonly span: 3;
|
|
1367
|
+
};
|
|
1368
|
+
readonly family_name: {
|
|
1369
|
+
readonly span: 3;
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
}>>>;
|
|
1374
|
+
readonly getActivationLink: (userId: import("@aeriajs/core").ObjectId) => Promise<string>;
|
|
1375
|
+
};
|
|
1376
|
+
functionContracts: {
|
|
1377
|
+
readonly getCurrentUser: {
|
|
1378
|
+
readonly response: [{
|
|
1379
|
+
readonly type: "object";
|
|
1380
|
+
readonly properties: {
|
|
1381
|
+
readonly _tag: {
|
|
1382
|
+
readonly const: "Left";
|
|
1383
|
+
};
|
|
1384
|
+
readonly value: import("@aeriajs/types").Property;
|
|
1385
|
+
};
|
|
1386
|
+
}, {
|
|
1387
|
+
readonly type: "object";
|
|
1388
|
+
readonly properties: {
|
|
1389
|
+
readonly _tag: {
|
|
1390
|
+
readonly const: "Right";
|
|
1391
|
+
};
|
|
1392
|
+
readonly value: import("@aeriajs/types").Property;
|
|
1393
|
+
};
|
|
1394
|
+
}];
|
|
1284
1395
|
};
|
|
1285
1396
|
};
|
|
1286
|
-
|
|
1397
|
+
exposedFunctions: {
|
|
1398
|
+
readonly authenticate: true;
|
|
1399
|
+
};
|
|
1400
|
+
} & {
|
|
1287
1401
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
1288
1402
|
readonly $id: "user";
|
|
1289
1403
|
readonly required: readonly ["name", "roles", "email"];
|
|
@@ -1358,12 +1472,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1358
1472
|
};
|
|
1359
1473
|
readonly individualActions: {
|
|
1360
1474
|
readonly 'ui:spawnEdit': {
|
|
1361
|
-
readonly
|
|
1475
|
+
readonly label: "action.edit";
|
|
1362
1476
|
readonly icon: "pencil";
|
|
1363
1477
|
readonly translate: true;
|
|
1364
1478
|
};
|
|
1365
1479
|
readonly 'route:/dashboard/user/changepass': {
|
|
1366
|
-
readonly
|
|
1480
|
+
readonly label: "change_password";
|
|
1367
1481
|
readonly icon: "key";
|
|
1368
1482
|
readonly fetchItem: true;
|
|
1369
1483
|
readonly translate: true;
|
|
@@ -1458,12 +1572,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1458
1572
|
};
|
|
1459
1573
|
readonly individualActions: {
|
|
1460
1574
|
readonly 'ui:spawnEdit': {
|
|
1461
|
-
readonly
|
|
1575
|
+
readonly label: "action.edit";
|
|
1462
1576
|
readonly icon: "pencil";
|
|
1463
1577
|
readonly translate: true;
|
|
1464
1578
|
};
|
|
1465
1579
|
readonly 'route:/dashboard/user/changepass': {
|
|
1466
|
-
readonly
|
|
1580
|
+
readonly label: "change_password";
|
|
1467
1581
|
readonly icon: "key";
|
|
1468
1582
|
readonly fetchItem: true;
|
|
1469
1583
|
readonly translate: true;
|
|
@@ -1567,12 +1681,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1567
1681
|
};
|
|
1568
1682
|
readonly individualActions: {
|
|
1569
1683
|
readonly 'ui:spawnEdit': {
|
|
1570
|
-
readonly
|
|
1684
|
+
readonly label: "action.edit";
|
|
1571
1685
|
readonly icon: "pencil";
|
|
1572
1686
|
readonly translate: true;
|
|
1573
1687
|
};
|
|
1574
1688
|
readonly 'route:/dashboard/user/changepass': {
|
|
1575
|
-
readonly
|
|
1689
|
+
readonly label: "change_password";
|
|
1576
1690
|
readonly icon: "key";
|
|
1577
1691
|
readonly fetchItem: true;
|
|
1578
1692
|
readonly translate: true;
|
|
@@ -1667,12 +1781,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1667
1781
|
};
|
|
1668
1782
|
readonly individualActions: {
|
|
1669
1783
|
readonly 'ui:spawnEdit': {
|
|
1670
|
-
readonly
|
|
1784
|
+
readonly label: "action.edit";
|
|
1671
1785
|
readonly icon: "pencil";
|
|
1672
1786
|
readonly translate: true;
|
|
1673
1787
|
};
|
|
1674
1788
|
readonly 'route:/dashboard/user/changepass': {
|
|
1675
|
-
readonly
|
|
1789
|
+
readonly label: "change_password";
|
|
1676
1790
|
readonly icon: "key";
|
|
1677
1791
|
readonly fetchItem: true;
|
|
1678
1792
|
readonly translate: true;
|
|
@@ -1766,12 +1880,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1766
1880
|
};
|
|
1767
1881
|
readonly individualActions: {
|
|
1768
1882
|
readonly 'ui:spawnEdit': {
|
|
1769
|
-
readonly
|
|
1883
|
+
readonly label: "action.edit";
|
|
1770
1884
|
readonly icon: "pencil";
|
|
1771
1885
|
readonly translate: true;
|
|
1772
1886
|
};
|
|
1773
1887
|
readonly 'route:/dashboard/user/changepass': {
|
|
1774
|
-
readonly
|
|
1888
|
+
readonly label: "change_password";
|
|
1775
1889
|
readonly icon: "key";
|
|
1776
1890
|
readonly fetchItem: true;
|
|
1777
1891
|
readonly translate: true;
|
|
@@ -1872,12 +1986,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1872
1986
|
};
|
|
1873
1987
|
readonly individualActions: {
|
|
1874
1988
|
readonly 'ui:spawnEdit': {
|
|
1875
|
-
readonly
|
|
1989
|
+
readonly label: "action.edit";
|
|
1876
1990
|
readonly icon: "pencil";
|
|
1877
1991
|
readonly translate: true;
|
|
1878
1992
|
};
|
|
1879
1993
|
readonly 'route:/dashboard/user/changepass': {
|
|
1880
|
-
readonly
|
|
1994
|
+
readonly label: "change_password";
|
|
1881
1995
|
readonly icon: "key";
|
|
1882
1996
|
readonly fetchItem: true;
|
|
1883
1997
|
readonly translate: true;
|
|
@@ -1972,12 +2086,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1972
2086
|
};
|
|
1973
2087
|
readonly individualActions: {
|
|
1974
2088
|
readonly 'ui:spawnEdit': {
|
|
1975
|
-
readonly
|
|
2089
|
+
readonly label: "action.edit";
|
|
1976
2090
|
readonly icon: "pencil";
|
|
1977
2091
|
readonly translate: true;
|
|
1978
2092
|
};
|
|
1979
2093
|
readonly 'route:/dashboard/user/changepass': {
|
|
1980
|
-
readonly
|
|
2094
|
+
readonly label: "change_password";
|
|
1981
2095
|
readonly icon: "key";
|
|
1982
2096
|
readonly fetchItem: true;
|
|
1983
2097
|
readonly translate: true;
|
|
@@ -1997,7 +2111,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1997
2111
|
};
|
|
1998
2112
|
};
|
|
1999
2113
|
};
|
|
2000
|
-
}>, "name" | "
|
|
2114
|
+
}>, "name" | "roles" | "email" | "active"> & {
|
|
2001
2115
|
_id: import("@aeriajs/core").ObjectId | null;
|
|
2002
2116
|
};
|
|
2003
2117
|
token: import("@aeriajs/types").TokenRecipient;
|
|
@@ -2090,12 +2204,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2090
2204
|
};
|
|
2091
2205
|
readonly individualActions: {
|
|
2092
2206
|
readonly 'ui:spawnEdit': {
|
|
2093
|
-
readonly
|
|
2207
|
+
readonly label: "action.edit";
|
|
2094
2208
|
readonly icon: "pencil";
|
|
2095
2209
|
readonly translate: true;
|
|
2096
2210
|
};
|
|
2097
2211
|
readonly 'route:/dashboard/user/changepass': {
|
|
2098
|
-
readonly
|
|
2212
|
+
readonly label: "change_password";
|
|
2099
2213
|
readonly icon: "key";
|
|
2100
2214
|
readonly fetchItem: true;
|
|
2101
2215
|
readonly translate: true;
|
|
@@ -2115,7 +2229,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2115
2229
|
};
|
|
2116
2230
|
};
|
|
2117
2231
|
};
|
|
2118
|
-
}>) => Promise<import("@aeriajs/types").
|
|
2232
|
+
}>) => Promise<import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Right<true>>;
|
|
2119
2233
|
readonly createAccount: (payload: Omit<Pick<{
|
|
2120
2234
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
2121
2235
|
readonly $id: "file";
|
|
@@ -2154,14 +2268,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2154
2268
|
};
|
|
2155
2269
|
readonly actions: {
|
|
2156
2270
|
readonly deleteAll: {
|
|
2157
|
-
readonly
|
|
2271
|
+
readonly label: "Remover";
|
|
2158
2272
|
readonly ask: true;
|
|
2159
2273
|
readonly selection: true;
|
|
2160
2274
|
};
|
|
2161
2275
|
};
|
|
2162
2276
|
readonly individualActions: {
|
|
2163
2277
|
readonly remove: {
|
|
2164
|
-
readonly
|
|
2278
|
+
readonly label: "Remover";
|
|
2165
2279
|
readonly icon: "trash";
|
|
2166
2280
|
readonly ask: true;
|
|
2167
2281
|
};
|
|
@@ -2223,14 +2337,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2223
2337
|
name: string;
|
|
2224
2338
|
password: string;
|
|
2225
2339
|
updated_at: Date;
|
|
2226
|
-
active: boolean;
|
|
2227
2340
|
roles: string[];
|
|
2228
2341
|
email: string;
|
|
2229
|
-
|
|
2342
|
+
active: boolean;
|
|
2230
2343
|
phone_number: string;
|
|
2231
2344
|
picture_file: never;
|
|
2232
2345
|
given_name: string;
|
|
2233
2346
|
family_name: string;
|
|
2347
|
+
picture: any;
|
|
2234
2348
|
group: string;
|
|
2235
2349
|
}, "picture_file">, "name" | "roles" | "email"> & Partial<{
|
|
2236
2350
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
@@ -2270,14 +2384,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2270
2384
|
};
|
|
2271
2385
|
readonly actions: {
|
|
2272
2386
|
readonly deleteAll: {
|
|
2273
|
-
readonly
|
|
2387
|
+
readonly label: "Remover";
|
|
2274
2388
|
readonly ask: true;
|
|
2275
2389
|
readonly selection: true;
|
|
2276
2390
|
};
|
|
2277
2391
|
};
|
|
2278
2392
|
readonly individualActions: {
|
|
2279
2393
|
readonly remove: {
|
|
2280
|
-
readonly
|
|
2394
|
+
readonly label: "Remover";
|
|
2281
2395
|
readonly icon: "trash";
|
|
2282
2396
|
readonly ask: true;
|
|
2283
2397
|
};
|
|
@@ -2339,14 +2453,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2339
2453
|
name: string;
|
|
2340
2454
|
password: string;
|
|
2341
2455
|
updated_at: Date;
|
|
2342
|
-
active: boolean;
|
|
2343
2456
|
roles: string[];
|
|
2344
2457
|
email: string;
|
|
2345
|
-
|
|
2458
|
+
active: boolean;
|
|
2346
2459
|
phone_number: string;
|
|
2347
2460
|
picture_file: never;
|
|
2348
2461
|
given_name: string;
|
|
2349
2462
|
family_name: string;
|
|
2463
|
+
picture: any;
|
|
2350
2464
|
group: string;
|
|
2351
2465
|
}, "picture_file">> & {
|
|
2352
2466
|
updated_at?: Date | undefined;
|
|
@@ -2425,12 +2539,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2425
2539
|
};
|
|
2426
2540
|
readonly individualActions: {
|
|
2427
2541
|
readonly 'ui:spawnEdit': {
|
|
2428
|
-
readonly
|
|
2542
|
+
readonly label: "action.edit";
|
|
2429
2543
|
readonly icon: "pencil";
|
|
2430
2544
|
readonly translate: true;
|
|
2431
2545
|
};
|
|
2432
2546
|
readonly 'route:/dashboard/user/changepass': {
|
|
2433
|
-
readonly
|
|
2547
|
+
readonly label: "change_password";
|
|
2434
2548
|
readonly icon: "key";
|
|
2435
2549
|
readonly fetchItem: true;
|
|
2436
2550
|
readonly translate: true;
|
|
@@ -2450,7 +2564,11 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2450
2564
|
};
|
|
2451
2565
|
};
|
|
2452
2566
|
};
|
|
2453
|
-
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<
|
|
2567
|
+
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<any>>;
|
|
2568
|
+
readonly getInfo: (payload: {
|
|
2569
|
+
userId: string;
|
|
2570
|
+
token: string;
|
|
2571
|
+
}, context: import("@aeriajs/types").Context<{
|
|
2454
2572
|
readonly $id: "user";
|
|
2455
2573
|
readonly required: readonly ["name", "roles", "email"];
|
|
2456
2574
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -2524,12 +2642,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2524
2642
|
};
|
|
2525
2643
|
readonly individualActions: {
|
|
2526
2644
|
readonly 'ui:spawnEdit': {
|
|
2527
|
-
readonly
|
|
2645
|
+
readonly label: "action.edit";
|
|
2528
2646
|
readonly icon: "pencil";
|
|
2529
2647
|
readonly translate: true;
|
|
2530
2648
|
};
|
|
2531
2649
|
readonly 'route:/dashboard/user/changepass': {
|
|
2532
|
-
readonly
|
|
2650
|
+
readonly label: "change_password";
|
|
2533
2651
|
readonly icon: "key";
|
|
2534
2652
|
readonly fetchItem: true;
|
|
2535
2653
|
readonly translate: true;
|
|
@@ -2549,11 +2667,11 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2549
2667
|
};
|
|
2550
2668
|
};
|
|
2551
2669
|
};
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2670
|
+
}>) => Promise<import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
|
|
2671
|
+
readonly name: any;
|
|
2672
|
+
readonly email: any;
|
|
2673
|
+
}>>;
|
|
2674
|
+
readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<{
|
|
2557
2675
|
readonly $id: "user";
|
|
2558
2676
|
readonly required: readonly ["name", "roles", "email"];
|
|
2559
2677
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -2627,12 +2745,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2627
2745
|
};
|
|
2628
2746
|
readonly individualActions: {
|
|
2629
2747
|
readonly 'ui:spawnEdit': {
|
|
2630
|
-
readonly
|
|
2748
|
+
readonly label: "action.edit";
|
|
2631
2749
|
readonly icon: "pencil";
|
|
2632
2750
|
readonly translate: true;
|
|
2633
2751
|
};
|
|
2634
2752
|
readonly 'route:/dashboard/user/changepass': {
|
|
2635
|
-
readonly
|
|
2753
|
+
readonly label: "change_password";
|
|
2636
2754
|
readonly icon: "key";
|
|
2637
2755
|
readonly fetchItem: true;
|
|
2638
2756
|
readonly translate: true;
|
|
@@ -2652,23 +2770,127 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2652
2770
|
};
|
|
2653
2771
|
};
|
|
2654
2772
|
};
|
|
2655
|
-
}>) => Promise<import("@aeriajs/types").Left<
|
|
2656
|
-
readonly
|
|
2657
|
-
readonly
|
|
2658
|
-
|
|
2773
|
+
}>) => Promise<import("@aeriajs/types").Left<{}> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
|
|
2774
|
+
readonly $id: "user";
|
|
2775
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
2776
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2777
|
+
readonly indexes: readonly ["name"];
|
|
2778
|
+
readonly freshItem: {
|
|
2779
|
+
readonly active: true;
|
|
2780
|
+
};
|
|
2781
|
+
readonly properties: {
|
|
2782
|
+
readonly name: {
|
|
2783
|
+
readonly type: "string";
|
|
2784
|
+
};
|
|
2785
|
+
readonly given_name: {
|
|
2786
|
+
readonly getter: (document: any) => string;
|
|
2787
|
+
};
|
|
2788
|
+
readonly family_name: {
|
|
2789
|
+
readonly getter: (document: any) => string;
|
|
2790
|
+
};
|
|
2791
|
+
readonly active: {
|
|
2792
|
+
readonly type: "boolean";
|
|
2793
|
+
};
|
|
2794
|
+
readonly roles: {
|
|
2795
|
+
readonly type: "array";
|
|
2796
|
+
readonly items: {
|
|
2797
|
+
readonly type: "string";
|
|
2798
|
+
};
|
|
2799
|
+
readonly uniqueItems: true;
|
|
2800
|
+
};
|
|
2801
|
+
readonly email: {
|
|
2802
|
+
readonly type: "string";
|
|
2803
|
+
readonly inputType: "email";
|
|
2804
|
+
readonly unique: true;
|
|
2805
|
+
};
|
|
2806
|
+
readonly password: {
|
|
2807
|
+
readonly type: "string";
|
|
2808
|
+
readonly inputType: "password";
|
|
2809
|
+
readonly hidden: true;
|
|
2810
|
+
};
|
|
2811
|
+
readonly phone_number: {
|
|
2812
|
+
readonly type: "string";
|
|
2813
|
+
readonly mask: "(##) #####-####";
|
|
2814
|
+
};
|
|
2815
|
+
readonly picture_file: {
|
|
2816
|
+
readonly $ref: "file";
|
|
2817
|
+
readonly accept: readonly ["image/*"];
|
|
2818
|
+
};
|
|
2819
|
+
readonly picture: {
|
|
2820
|
+
readonly getter: (value: any) => any;
|
|
2821
|
+
};
|
|
2822
|
+
readonly group: {
|
|
2823
|
+
readonly type: "string";
|
|
2824
|
+
};
|
|
2825
|
+
readonly self_registered: {
|
|
2826
|
+
readonly type: "boolean";
|
|
2827
|
+
readonly readOnly: true;
|
|
2828
|
+
};
|
|
2829
|
+
readonly updated_at: {
|
|
2830
|
+
readonly type: "string";
|
|
2831
|
+
readonly format: "date-time";
|
|
2832
|
+
};
|
|
2833
|
+
};
|
|
2834
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2835
|
+
readonly layout: {
|
|
2836
|
+
readonly name: "grid";
|
|
2837
|
+
readonly options: {
|
|
2838
|
+
readonly title: "name";
|
|
2839
|
+
readonly badge: "roles";
|
|
2840
|
+
readonly picture: "picture_file";
|
|
2841
|
+
readonly information: "email";
|
|
2842
|
+
readonly active: "active";
|
|
2843
|
+
};
|
|
2844
|
+
};
|
|
2845
|
+
readonly individualActions: {
|
|
2846
|
+
readonly 'ui:spawnEdit': {
|
|
2847
|
+
readonly label: "action.edit";
|
|
2848
|
+
readonly icon: "pencil";
|
|
2849
|
+
readonly translate: true;
|
|
2850
|
+
};
|
|
2851
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
2852
|
+
readonly label: "change_password";
|
|
2853
|
+
readonly icon: "key";
|
|
2854
|
+
readonly fetchItem: true;
|
|
2855
|
+
readonly translate: true;
|
|
2856
|
+
};
|
|
2857
|
+
};
|
|
2858
|
+
readonly icon: "users";
|
|
2859
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2860
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2861
|
+
readonly tableMeta: readonly ["email"];
|
|
2862
|
+
readonly formLayout: {
|
|
2863
|
+
readonly fields: {
|
|
2864
|
+
readonly given_name: {
|
|
2865
|
+
readonly span: 3;
|
|
2866
|
+
};
|
|
2867
|
+
readonly family_name: {
|
|
2868
|
+
readonly span: 3;
|
|
2869
|
+
};
|
|
2870
|
+
};
|
|
2871
|
+
};
|
|
2872
|
+
}>>>;
|
|
2659
2873
|
readonly getActivationLink: (userId: import("@aeriajs/core").ObjectId) => Promise<string>;
|
|
2660
2874
|
};
|
|
2661
2875
|
functionContracts: {
|
|
2662
|
-
readonly
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2876
|
+
readonly getCurrentUser: {
|
|
2877
|
+
readonly response: [{
|
|
2878
|
+
readonly type: "object";
|
|
2879
|
+
readonly properties: {
|
|
2880
|
+
readonly _tag: {
|
|
2881
|
+
readonly const: "Left";
|
|
2882
|
+
};
|
|
2883
|
+
readonly value: import("@aeriajs/types").Property;
|
|
2884
|
+
};
|
|
2885
|
+
}, {
|
|
2886
|
+
readonly type: "object";
|
|
2887
|
+
readonly properties: {
|
|
2888
|
+
readonly _tag: {
|
|
2889
|
+
readonly const: "Right";
|
|
2890
|
+
};
|
|
2891
|
+
readonly value: import("@aeriajs/types").Property;
|
|
2892
|
+
};
|
|
2893
|
+
}];
|
|
2894
|
+
};
|
|
2673
2895
|
};
|
|
2674
2896
|
};
|