@aeriajs/builtins 0.0.75 → 0.0.77
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/download.js +3 -2
- package/dist/collections/file/download.mjs +3 -3
- package/dist/collections/file/index.d.ts +36 -36
- package/dist/collections/file/insert.d.ts +2 -2
- package/dist/collections/file/insert.js +3 -2
- package/dist/collections/file/insert.mjs +3 -3
- package/dist/collections/file/remove.js +3 -2
- package/dist/collections/file/remove.mjs +3 -3
- package/dist/collections/file/removeAll.js +3 -2
- package/dist/collections/file/removeAll.mjs +3 -3
- 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/activate.js +3 -2
- package/dist/collections/user/activate.mjs +3 -3
- package/dist/collections/user/authenticate.js +4 -8
- package/dist/collections/user/authenticate.mjs +0 -4
- package/dist/collections/user/createAccount.js +3 -3
- package/dist/collections/user/createAccount.mjs +2 -3
- 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 +23 -0
- package/dist/collections/user/getInfo.js +3 -2
- package/dist/collections/user/getInfo.mjs +3 -3
- package/dist/collections/user/index.d.ts +486 -69
- package/dist/collections/user/index.js +14 -8
- package/dist/collections/user/index.mjs +14 -8
- package/dist/collections/user/insert.d.ts +2 -2
- package/dist/collections/user/insert.js +0 -3
- package/dist/collections/user/insert.mjs +1 -4
- package/dist/functions/describe.d.ts +2 -2
- package/dist/functions/describe.js +1 -2
- package/dist/functions/describe.mjs +1 -2
- package/dist/index.d.ts +524 -107
- 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;
|
|
@@ -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").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").
|
|
733
|
+
}>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
|
|
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
|
};
|
|
@@ -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
|
};
|
|
@@ -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;
|
|
@@ -1143,12 +1143,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1143
1143
|
};
|
|
1144
1144
|
readonly individualActions: {
|
|
1145
1145
|
readonly 'ui:spawnEdit': {
|
|
1146
|
-
readonly
|
|
1146
|
+
readonly label: "action.edit";
|
|
1147
1147
|
readonly icon: "pencil";
|
|
1148
1148
|
readonly translate: true;
|
|
1149
1149
|
};
|
|
1150
1150
|
readonly 'route:/dashboard/user/changepass': {
|
|
1151
|
-
readonly
|
|
1151
|
+
readonly label: "change_password";
|
|
1152
1152
|
readonly icon: "key";
|
|
1153
1153
|
readonly fetchItem: true;
|
|
1154
1154
|
readonly translate: true;
|
|
@@ -1172,19 +1172,229 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1172
1172
|
readonly name: any;
|
|
1173
1173
|
readonly email: any;
|
|
1174
1174
|
}>>;
|
|
1175
|
-
readonly
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1175
|
+
readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<{
|
|
1176
|
+
readonly $id: "user";
|
|
1177
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1178
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1179
|
+
readonly indexes: readonly ["name"];
|
|
1180
|
+
readonly freshItem: {
|
|
1181
|
+
readonly active: true;
|
|
1181
1182
|
};
|
|
1182
|
-
|
|
1183
|
-
|
|
1183
|
+
readonly properties: {
|
|
1184
|
+
readonly name: {
|
|
1185
|
+
readonly type: "string";
|
|
1186
|
+
};
|
|
1187
|
+
readonly given_name: {
|
|
1188
|
+
readonly getter: (document: any) => string;
|
|
1189
|
+
};
|
|
1190
|
+
readonly family_name: {
|
|
1191
|
+
readonly getter: (document: any) => string;
|
|
1192
|
+
};
|
|
1193
|
+
readonly active: {
|
|
1194
|
+
readonly type: "boolean";
|
|
1195
|
+
};
|
|
1196
|
+
readonly roles: {
|
|
1197
|
+
readonly type: "array";
|
|
1198
|
+
readonly items: {
|
|
1199
|
+
readonly type: "string";
|
|
1200
|
+
};
|
|
1201
|
+
readonly uniqueItems: true;
|
|
1202
|
+
};
|
|
1203
|
+
readonly email: {
|
|
1204
|
+
readonly type: "string";
|
|
1205
|
+
readonly inputType: "email";
|
|
1206
|
+
readonly unique: true;
|
|
1207
|
+
};
|
|
1208
|
+
readonly password: {
|
|
1209
|
+
readonly type: "string";
|
|
1210
|
+
readonly inputType: "password";
|
|
1211
|
+
readonly hidden: true;
|
|
1212
|
+
};
|
|
1213
|
+
readonly phone_number: {
|
|
1214
|
+
readonly type: "string";
|
|
1215
|
+
readonly mask: "(##) #####-####";
|
|
1216
|
+
};
|
|
1217
|
+
readonly picture_file: {
|
|
1218
|
+
readonly $ref: "file";
|
|
1219
|
+
readonly accept: readonly ["image/*"];
|
|
1220
|
+
};
|
|
1221
|
+
readonly picture: {
|
|
1222
|
+
readonly getter: (value: any) => any;
|
|
1223
|
+
};
|
|
1224
|
+
readonly group: {
|
|
1225
|
+
readonly type: "string";
|
|
1226
|
+
};
|
|
1227
|
+
readonly self_registered: {
|
|
1228
|
+
readonly type: "boolean";
|
|
1229
|
+
readonly readOnly: true;
|
|
1230
|
+
};
|
|
1231
|
+
readonly updated_at: {
|
|
1232
|
+
readonly type: "string";
|
|
1233
|
+
readonly format: "date-time";
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1236
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1237
|
+
readonly layout: {
|
|
1238
|
+
readonly name: "grid";
|
|
1239
|
+
readonly options: {
|
|
1240
|
+
readonly title: "name";
|
|
1241
|
+
readonly badge: "roles";
|
|
1242
|
+
readonly picture: "picture_file";
|
|
1243
|
+
readonly information: "email";
|
|
1244
|
+
readonly active: "active";
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
readonly individualActions: {
|
|
1248
|
+
readonly 'ui:spawnEdit': {
|
|
1249
|
+
readonly label: "action.edit";
|
|
1250
|
+
readonly icon: "pencil";
|
|
1251
|
+
readonly translate: true;
|
|
1252
|
+
};
|
|
1253
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1254
|
+
readonly label: "change_password";
|
|
1255
|
+
readonly icon: "key";
|
|
1256
|
+
readonly fetchItem: true;
|
|
1257
|
+
readonly translate: true;
|
|
1258
|
+
};
|
|
1184
1259
|
};
|
|
1260
|
+
readonly icon: "users";
|
|
1261
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1262
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1263
|
+
readonly tableMeta: readonly ["email"];
|
|
1264
|
+
readonly formLayout: {
|
|
1265
|
+
readonly fields: {
|
|
1266
|
+
readonly given_name: {
|
|
1267
|
+
readonly span: 3;
|
|
1268
|
+
};
|
|
1269
|
+
readonly family_name: {
|
|
1270
|
+
readonly span: 3;
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
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
|
+
};
|
|
1334
|
+
};
|
|
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
|
+
};
|
|
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
|
+
}];
|
|
1185
1395
|
};
|
|
1186
1396
|
};
|
|
1187
|
-
}
|
|
1397
|
+
} & {
|
|
1188
1398
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
1189
1399
|
readonly $id: "user";
|
|
1190
1400
|
readonly required: readonly ["name", "roles", "email"];
|
|
@@ -1259,12 +1469,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1259
1469
|
};
|
|
1260
1470
|
readonly individualActions: {
|
|
1261
1471
|
readonly 'ui:spawnEdit': {
|
|
1262
|
-
readonly
|
|
1472
|
+
readonly label: "action.edit";
|
|
1263
1473
|
readonly icon: "pencil";
|
|
1264
1474
|
readonly translate: true;
|
|
1265
1475
|
};
|
|
1266
1476
|
readonly 'route:/dashboard/user/changepass': {
|
|
1267
|
-
readonly
|
|
1477
|
+
readonly label: "change_password";
|
|
1268
1478
|
readonly icon: "key";
|
|
1269
1479
|
readonly fetchItem: true;
|
|
1270
1480
|
readonly translate: true;
|
|
@@ -1359,12 +1569,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1359
1569
|
};
|
|
1360
1570
|
readonly individualActions: {
|
|
1361
1571
|
readonly 'ui:spawnEdit': {
|
|
1362
|
-
readonly
|
|
1572
|
+
readonly label: "action.edit";
|
|
1363
1573
|
readonly icon: "pencil";
|
|
1364
1574
|
readonly translate: true;
|
|
1365
1575
|
};
|
|
1366
1576
|
readonly 'route:/dashboard/user/changepass': {
|
|
1367
|
-
readonly
|
|
1577
|
+
readonly label: "change_password";
|
|
1368
1578
|
readonly icon: "key";
|
|
1369
1579
|
readonly fetchItem: true;
|
|
1370
1580
|
readonly translate: true;
|
|
@@ -1468,12 +1678,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1468
1678
|
};
|
|
1469
1679
|
readonly individualActions: {
|
|
1470
1680
|
readonly 'ui:spawnEdit': {
|
|
1471
|
-
readonly
|
|
1681
|
+
readonly label: "action.edit";
|
|
1472
1682
|
readonly icon: "pencil";
|
|
1473
1683
|
readonly translate: true;
|
|
1474
1684
|
};
|
|
1475
1685
|
readonly 'route:/dashboard/user/changepass': {
|
|
1476
|
-
readonly
|
|
1686
|
+
readonly label: "change_password";
|
|
1477
1687
|
readonly icon: "key";
|
|
1478
1688
|
readonly fetchItem: true;
|
|
1479
1689
|
readonly translate: true;
|
|
@@ -1568,12 +1778,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1568
1778
|
};
|
|
1569
1779
|
readonly individualActions: {
|
|
1570
1780
|
readonly 'ui:spawnEdit': {
|
|
1571
|
-
readonly
|
|
1781
|
+
readonly label: "action.edit";
|
|
1572
1782
|
readonly icon: "pencil";
|
|
1573
1783
|
readonly translate: true;
|
|
1574
1784
|
};
|
|
1575
1785
|
readonly 'route:/dashboard/user/changepass': {
|
|
1576
|
-
readonly
|
|
1786
|
+
readonly label: "change_password";
|
|
1577
1787
|
readonly icon: "key";
|
|
1578
1788
|
readonly fetchItem: true;
|
|
1579
1789
|
readonly translate: true;
|
|
@@ -1667,12 +1877,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1667
1877
|
};
|
|
1668
1878
|
readonly individualActions: {
|
|
1669
1879
|
readonly 'ui:spawnEdit': {
|
|
1670
|
-
readonly
|
|
1880
|
+
readonly label: "action.edit";
|
|
1671
1881
|
readonly icon: "pencil";
|
|
1672
1882
|
readonly translate: true;
|
|
1673
1883
|
};
|
|
1674
1884
|
readonly 'route:/dashboard/user/changepass': {
|
|
1675
|
-
readonly
|
|
1885
|
+
readonly label: "change_password";
|
|
1676
1886
|
readonly icon: "key";
|
|
1677
1887
|
readonly fetchItem: true;
|
|
1678
1888
|
readonly translate: true;
|
|
@@ -1773,12 +1983,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1773
1983
|
};
|
|
1774
1984
|
readonly individualActions: {
|
|
1775
1985
|
readonly 'ui:spawnEdit': {
|
|
1776
|
-
readonly
|
|
1986
|
+
readonly label: "action.edit";
|
|
1777
1987
|
readonly icon: "pencil";
|
|
1778
1988
|
readonly translate: true;
|
|
1779
1989
|
};
|
|
1780
1990
|
readonly 'route:/dashboard/user/changepass': {
|
|
1781
|
-
readonly
|
|
1991
|
+
readonly label: "change_password";
|
|
1782
1992
|
readonly icon: "key";
|
|
1783
1993
|
readonly fetchItem: true;
|
|
1784
1994
|
readonly translate: true;
|
|
@@ -1873,12 +2083,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1873
2083
|
};
|
|
1874
2084
|
readonly individualActions: {
|
|
1875
2085
|
readonly 'ui:spawnEdit': {
|
|
1876
|
-
readonly
|
|
2086
|
+
readonly label: "action.edit";
|
|
1877
2087
|
readonly icon: "pencil";
|
|
1878
2088
|
readonly translate: true;
|
|
1879
2089
|
};
|
|
1880
2090
|
readonly 'route:/dashboard/user/changepass': {
|
|
1881
|
-
readonly
|
|
2091
|
+
readonly label: "change_password";
|
|
1882
2092
|
readonly icon: "key";
|
|
1883
2093
|
readonly fetchItem: true;
|
|
1884
2094
|
readonly translate: true;
|
|
@@ -1991,12 +2201,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1991
2201
|
};
|
|
1992
2202
|
readonly individualActions: {
|
|
1993
2203
|
readonly 'ui:spawnEdit': {
|
|
1994
|
-
readonly
|
|
2204
|
+
readonly label: "action.edit";
|
|
1995
2205
|
readonly icon: "pencil";
|
|
1996
2206
|
readonly translate: true;
|
|
1997
2207
|
};
|
|
1998
2208
|
readonly 'route:/dashboard/user/changepass': {
|
|
1999
|
-
readonly
|
|
2209
|
+
readonly label: "change_password";
|
|
2000
2210
|
readonly icon: "key";
|
|
2001
2211
|
readonly fetchItem: true;
|
|
2002
2212
|
readonly translate: true;
|
|
@@ -2016,7 +2226,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2016
2226
|
};
|
|
2017
2227
|
};
|
|
2018
2228
|
};
|
|
2019
|
-
}>) => 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").
|
|
2229
|
+
}>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
|
|
2020
2230
|
readonly createAccount: (payload: Omit<Pick<{
|
|
2021
2231
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
2022
2232
|
readonly $id: "file";
|
|
@@ -2055,14 +2265,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2055
2265
|
};
|
|
2056
2266
|
readonly actions: {
|
|
2057
2267
|
readonly deleteAll: {
|
|
2058
|
-
readonly
|
|
2268
|
+
readonly label: "Remover";
|
|
2059
2269
|
readonly ask: true;
|
|
2060
2270
|
readonly selection: true;
|
|
2061
2271
|
};
|
|
2062
2272
|
};
|
|
2063
2273
|
readonly individualActions: {
|
|
2064
2274
|
readonly remove: {
|
|
2065
|
-
readonly
|
|
2275
|
+
readonly label: "Remover";
|
|
2066
2276
|
readonly icon: "trash";
|
|
2067
2277
|
readonly ask: true;
|
|
2068
2278
|
};
|
|
@@ -2171,14 +2381,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2171
2381
|
};
|
|
2172
2382
|
readonly actions: {
|
|
2173
2383
|
readonly deleteAll: {
|
|
2174
|
-
readonly
|
|
2384
|
+
readonly label: "Remover";
|
|
2175
2385
|
readonly ask: true;
|
|
2176
2386
|
readonly selection: true;
|
|
2177
2387
|
};
|
|
2178
2388
|
};
|
|
2179
2389
|
readonly individualActions: {
|
|
2180
2390
|
readonly remove: {
|
|
2181
|
-
readonly
|
|
2391
|
+
readonly label: "Remover";
|
|
2182
2392
|
readonly icon: "trash";
|
|
2183
2393
|
readonly ask: true;
|
|
2184
2394
|
};
|
|
@@ -2326,12 +2536,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2326
2536
|
};
|
|
2327
2537
|
readonly individualActions: {
|
|
2328
2538
|
readonly 'ui:spawnEdit': {
|
|
2329
|
-
readonly
|
|
2539
|
+
readonly label: "action.edit";
|
|
2330
2540
|
readonly icon: "pencil";
|
|
2331
2541
|
readonly translate: true;
|
|
2332
2542
|
};
|
|
2333
2543
|
readonly 'route:/dashboard/user/changepass': {
|
|
2334
|
-
readonly
|
|
2544
|
+
readonly label: "change_password";
|
|
2335
2545
|
readonly icon: "key";
|
|
2336
2546
|
readonly fetchItem: true;
|
|
2337
2547
|
readonly translate: true;
|
|
@@ -2429,12 +2639,12 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2429
2639
|
};
|
|
2430
2640
|
readonly individualActions: {
|
|
2431
2641
|
readonly 'ui:spawnEdit': {
|
|
2432
|
-
readonly
|
|
2642
|
+
readonly label: "action.edit";
|
|
2433
2643
|
readonly icon: "pencil";
|
|
2434
2644
|
readonly translate: true;
|
|
2435
2645
|
};
|
|
2436
2646
|
readonly 'route:/dashboard/user/changepass': {
|
|
2437
|
-
readonly
|
|
2647
|
+
readonly label: "change_password";
|
|
2438
2648
|
readonly icon: "key";
|
|
2439
2649
|
readonly fetchItem: true;
|
|
2440
2650
|
readonly translate: true;
|
|
@@ -2458,19 +2668,226 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2458
2668
|
readonly name: any;
|
|
2459
2669
|
readonly email: any;
|
|
2460
2670
|
}>>;
|
|
2671
|
+
readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<{
|
|
2672
|
+
readonly $id: "user";
|
|
2673
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
2674
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2675
|
+
readonly indexes: readonly ["name"];
|
|
2676
|
+
readonly freshItem: {
|
|
2677
|
+
readonly active: true;
|
|
2678
|
+
};
|
|
2679
|
+
readonly properties: {
|
|
2680
|
+
readonly name: {
|
|
2681
|
+
readonly type: "string";
|
|
2682
|
+
};
|
|
2683
|
+
readonly given_name: {
|
|
2684
|
+
readonly getter: (document: any) => string;
|
|
2685
|
+
};
|
|
2686
|
+
readonly family_name: {
|
|
2687
|
+
readonly getter: (document: any) => string;
|
|
2688
|
+
};
|
|
2689
|
+
readonly active: {
|
|
2690
|
+
readonly type: "boolean";
|
|
2691
|
+
};
|
|
2692
|
+
readonly roles: {
|
|
2693
|
+
readonly type: "array";
|
|
2694
|
+
readonly items: {
|
|
2695
|
+
readonly type: "string";
|
|
2696
|
+
};
|
|
2697
|
+
readonly uniqueItems: true;
|
|
2698
|
+
};
|
|
2699
|
+
readonly email: {
|
|
2700
|
+
readonly type: "string";
|
|
2701
|
+
readonly inputType: "email";
|
|
2702
|
+
readonly unique: true;
|
|
2703
|
+
};
|
|
2704
|
+
readonly password: {
|
|
2705
|
+
readonly type: "string";
|
|
2706
|
+
readonly inputType: "password";
|
|
2707
|
+
readonly hidden: true;
|
|
2708
|
+
};
|
|
2709
|
+
readonly phone_number: {
|
|
2710
|
+
readonly type: "string";
|
|
2711
|
+
readonly mask: "(##) #####-####";
|
|
2712
|
+
};
|
|
2713
|
+
readonly picture_file: {
|
|
2714
|
+
readonly $ref: "file";
|
|
2715
|
+
readonly accept: readonly ["image/*"];
|
|
2716
|
+
};
|
|
2717
|
+
readonly picture: {
|
|
2718
|
+
readonly getter: (value: any) => any;
|
|
2719
|
+
};
|
|
2720
|
+
readonly group: {
|
|
2721
|
+
readonly type: "string";
|
|
2722
|
+
};
|
|
2723
|
+
readonly self_registered: {
|
|
2724
|
+
readonly type: "boolean";
|
|
2725
|
+
readonly readOnly: true;
|
|
2726
|
+
};
|
|
2727
|
+
readonly updated_at: {
|
|
2728
|
+
readonly type: "string";
|
|
2729
|
+
readonly format: "date-time";
|
|
2730
|
+
};
|
|
2731
|
+
};
|
|
2732
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2733
|
+
readonly layout: {
|
|
2734
|
+
readonly name: "grid";
|
|
2735
|
+
readonly options: {
|
|
2736
|
+
readonly title: "name";
|
|
2737
|
+
readonly badge: "roles";
|
|
2738
|
+
readonly picture: "picture_file";
|
|
2739
|
+
readonly information: "email";
|
|
2740
|
+
readonly active: "active";
|
|
2741
|
+
};
|
|
2742
|
+
};
|
|
2743
|
+
readonly individualActions: {
|
|
2744
|
+
readonly 'ui:spawnEdit': {
|
|
2745
|
+
readonly label: "action.edit";
|
|
2746
|
+
readonly icon: "pencil";
|
|
2747
|
+
readonly translate: true;
|
|
2748
|
+
};
|
|
2749
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
2750
|
+
readonly label: "change_password";
|
|
2751
|
+
readonly icon: "key";
|
|
2752
|
+
readonly fetchItem: true;
|
|
2753
|
+
readonly translate: true;
|
|
2754
|
+
};
|
|
2755
|
+
};
|
|
2756
|
+
readonly icon: "users";
|
|
2757
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2758
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2759
|
+
readonly tableMeta: readonly ["email"];
|
|
2760
|
+
readonly formLayout: {
|
|
2761
|
+
readonly fields: {
|
|
2762
|
+
readonly given_name: {
|
|
2763
|
+
readonly span: 3;
|
|
2764
|
+
};
|
|
2765
|
+
readonly family_name: {
|
|
2766
|
+
readonly span: 3;
|
|
2767
|
+
};
|
|
2768
|
+
};
|
|
2769
|
+
};
|
|
2770
|
+
}>) => Promise<import("@aeriajs/types").Left<{}> | import("@aeriajs/types").Right<import("@aeriajs/types").SchemaWithId<{
|
|
2771
|
+
readonly $id: "user";
|
|
2772
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
2773
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2774
|
+
readonly indexes: readonly ["name"];
|
|
2775
|
+
readonly freshItem: {
|
|
2776
|
+
readonly active: true;
|
|
2777
|
+
};
|
|
2778
|
+
readonly properties: {
|
|
2779
|
+
readonly name: {
|
|
2780
|
+
readonly type: "string";
|
|
2781
|
+
};
|
|
2782
|
+
readonly given_name: {
|
|
2783
|
+
readonly getter: (document: any) => string;
|
|
2784
|
+
};
|
|
2785
|
+
readonly family_name: {
|
|
2786
|
+
readonly getter: (document: any) => string;
|
|
2787
|
+
};
|
|
2788
|
+
readonly active: {
|
|
2789
|
+
readonly type: "boolean";
|
|
2790
|
+
};
|
|
2791
|
+
readonly roles: {
|
|
2792
|
+
readonly type: "array";
|
|
2793
|
+
readonly items: {
|
|
2794
|
+
readonly type: "string";
|
|
2795
|
+
};
|
|
2796
|
+
readonly uniqueItems: true;
|
|
2797
|
+
};
|
|
2798
|
+
readonly email: {
|
|
2799
|
+
readonly type: "string";
|
|
2800
|
+
readonly inputType: "email";
|
|
2801
|
+
readonly unique: true;
|
|
2802
|
+
};
|
|
2803
|
+
readonly password: {
|
|
2804
|
+
readonly type: "string";
|
|
2805
|
+
readonly inputType: "password";
|
|
2806
|
+
readonly hidden: true;
|
|
2807
|
+
};
|
|
2808
|
+
readonly phone_number: {
|
|
2809
|
+
readonly type: "string";
|
|
2810
|
+
readonly mask: "(##) #####-####";
|
|
2811
|
+
};
|
|
2812
|
+
readonly picture_file: {
|
|
2813
|
+
readonly $ref: "file";
|
|
2814
|
+
readonly accept: readonly ["image/*"];
|
|
2815
|
+
};
|
|
2816
|
+
readonly picture: {
|
|
2817
|
+
readonly getter: (value: any) => any;
|
|
2818
|
+
};
|
|
2819
|
+
readonly group: {
|
|
2820
|
+
readonly type: "string";
|
|
2821
|
+
};
|
|
2822
|
+
readonly self_registered: {
|
|
2823
|
+
readonly type: "boolean";
|
|
2824
|
+
readonly readOnly: true;
|
|
2825
|
+
};
|
|
2826
|
+
readonly updated_at: {
|
|
2827
|
+
readonly type: "string";
|
|
2828
|
+
readonly format: "date-time";
|
|
2829
|
+
};
|
|
2830
|
+
};
|
|
2831
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2832
|
+
readonly layout: {
|
|
2833
|
+
readonly name: "grid";
|
|
2834
|
+
readonly options: {
|
|
2835
|
+
readonly title: "name";
|
|
2836
|
+
readonly badge: "roles";
|
|
2837
|
+
readonly picture: "picture_file";
|
|
2838
|
+
readonly information: "email";
|
|
2839
|
+
readonly active: "active";
|
|
2840
|
+
};
|
|
2841
|
+
};
|
|
2842
|
+
readonly individualActions: {
|
|
2843
|
+
readonly 'ui:spawnEdit': {
|
|
2844
|
+
readonly label: "action.edit";
|
|
2845
|
+
readonly icon: "pencil";
|
|
2846
|
+
readonly translate: true;
|
|
2847
|
+
};
|
|
2848
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
2849
|
+
readonly label: "change_password";
|
|
2850
|
+
readonly icon: "key";
|
|
2851
|
+
readonly fetchItem: true;
|
|
2852
|
+
readonly translate: true;
|
|
2853
|
+
};
|
|
2854
|
+
};
|
|
2855
|
+
readonly icon: "users";
|
|
2856
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2857
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2858
|
+
readonly tableMeta: readonly ["email"];
|
|
2859
|
+
readonly formLayout: {
|
|
2860
|
+
readonly fields: {
|
|
2861
|
+
readonly given_name: {
|
|
2862
|
+
readonly span: 3;
|
|
2863
|
+
};
|
|
2864
|
+
readonly family_name: {
|
|
2865
|
+
readonly span: 3;
|
|
2866
|
+
};
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2869
|
+
}>>>;
|
|
2461
2870
|
readonly getActivationLink: (userId: import("@aeriajs/core").ObjectId) => Promise<string>;
|
|
2462
2871
|
};
|
|
2463
2872
|
functionContracts: {
|
|
2464
|
-
readonly
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2873
|
+
readonly getCurrentUser: {
|
|
2874
|
+
readonly response: [{
|
|
2875
|
+
readonly type: "object";
|
|
2876
|
+
readonly properties: {
|
|
2877
|
+
readonly _tag: {
|
|
2878
|
+
readonly const: "Left";
|
|
2879
|
+
};
|
|
2880
|
+
readonly value: import("@aeriajs/types").Property;
|
|
2881
|
+
};
|
|
2882
|
+
}, {
|
|
2883
|
+
readonly type: "object";
|
|
2884
|
+
readonly properties: {
|
|
2885
|
+
readonly _tag: {
|
|
2886
|
+
readonly const: "Right";
|
|
2887
|
+
};
|
|
2888
|
+
readonly value: import("@aeriajs/types").Property;
|
|
2889
|
+
};
|
|
2890
|
+
}];
|
|
2891
|
+
};
|
|
2475
2892
|
};
|
|
2476
2893
|
};
|