@aeriajs/builtins 0.0.70 → 0.0.71
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/download.js +2 -3
- package/dist/collections/file/download.mjs +3 -3
- package/dist/collections/file/index.d.ts +2 -2
- package/dist/collections/file/insert.js +2 -3
- package/dist/collections/file/insert.mjs +3 -3
- package/dist/collections/file/remove.js +2 -3
- package/dist/collections/file/remove.mjs +3 -3
- package/dist/collections/file/removeAll.js +3 -4
- 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 +2 -3
- package/dist/collections/user/activate.mjs +3 -3
- package/dist/collections/user/authenticate.d.ts +1 -1
- package/dist/collections/user/authenticate.js +17 -15
- package/dist/collections/user/authenticate.mjs +12 -10
- package/dist/collections/user/createAccount.js +6 -6
- package/dist/collections/user/createAccount.mjs +6 -5
- package/dist/collections/user/description.d.ts +1 -2
- package/dist/collections/user/description.js +1 -2
- package/dist/collections/user/description.mjs +3 -4
- package/dist/collections/user/getInfo.js +2 -3
- package/dist/collections/user/getInfo.mjs +3 -3
- package/dist/collections/user/index.d.ts +22 -41
- package/dist/collections/user/insert.d.ts +1 -2
- package/dist/collections/user/insert.js +4 -1
- package/dist/collections/user/insert.mjs +5 -2
- package/dist/functions/describe.d.ts +1 -2
- package/dist/index.d.ts +26 -45
- package/package.json +13 -13
|
@@ -69,7 +69,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
69
69
|
readonly picture: "picture_file";
|
|
70
70
|
readonly information: "email";
|
|
71
71
|
readonly active: "active";
|
|
72
|
-
readonly translateBadge: true;
|
|
73
72
|
};
|
|
74
73
|
};
|
|
75
74
|
readonly individualActions: {
|
|
@@ -81,8 +80,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
81
80
|
readonly 'route:/dashboard/user/changepass': {
|
|
82
81
|
readonly name: "change_password";
|
|
83
82
|
readonly icon: "key";
|
|
84
|
-
readonly translate: true;
|
|
85
83
|
readonly fetchItem: true;
|
|
84
|
+
readonly translate: true;
|
|
86
85
|
};
|
|
87
86
|
};
|
|
88
87
|
readonly icon: "users";
|
|
@@ -179,7 +178,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
179
178
|
readonly picture: "picture_file";
|
|
180
179
|
readonly information: "email";
|
|
181
180
|
readonly active: "active";
|
|
182
|
-
readonly translateBadge: true;
|
|
183
181
|
};
|
|
184
182
|
};
|
|
185
183
|
readonly individualActions: {
|
|
@@ -191,8 +189,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
191
189
|
readonly 'route:/dashboard/user/changepass': {
|
|
192
190
|
readonly name: "change_password";
|
|
193
191
|
readonly icon: "key";
|
|
194
|
-
readonly translate: true;
|
|
195
192
|
readonly fetchItem: true;
|
|
193
|
+
readonly translate: true;
|
|
196
194
|
};
|
|
197
195
|
};
|
|
198
196
|
readonly icon: "users";
|
|
@@ -280,7 +278,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
280
278
|
readonly picture: "picture_file";
|
|
281
279
|
readonly information: "email";
|
|
282
280
|
readonly active: "active";
|
|
283
|
-
readonly translateBadge: true;
|
|
284
281
|
};
|
|
285
282
|
};
|
|
286
283
|
readonly individualActions: {
|
|
@@ -292,8 +289,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
292
289
|
readonly 'route:/dashboard/user/changepass': {
|
|
293
290
|
readonly name: "change_password";
|
|
294
291
|
readonly icon: "key";
|
|
295
|
-
readonly translate: true;
|
|
296
292
|
readonly fetchItem: true;
|
|
293
|
+
readonly translate: true;
|
|
297
294
|
};
|
|
298
295
|
};
|
|
299
296
|
readonly icon: "users";
|
|
@@ -380,7 +377,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
380
377
|
readonly picture: "picture_file";
|
|
381
378
|
readonly information: "email";
|
|
382
379
|
readonly active: "active";
|
|
383
|
-
readonly translateBadge: true;
|
|
384
380
|
};
|
|
385
381
|
};
|
|
386
382
|
readonly individualActions: {
|
|
@@ -392,8 +388,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
392
388
|
readonly 'route:/dashboard/user/changepass': {
|
|
393
389
|
readonly name: "change_password";
|
|
394
390
|
readonly icon: "key";
|
|
395
|
-
readonly translate: true;
|
|
396
391
|
readonly fetchItem: true;
|
|
392
|
+
readonly translate: true;
|
|
397
393
|
};
|
|
398
394
|
};
|
|
399
395
|
readonly icon: "users";
|
|
@@ -487,7 +483,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
487
483
|
readonly picture: "picture_file";
|
|
488
484
|
readonly information: "email";
|
|
489
485
|
readonly active: "active";
|
|
490
|
-
readonly translateBadge: true;
|
|
491
486
|
};
|
|
492
487
|
};
|
|
493
488
|
readonly individualActions: {
|
|
@@ -499,8 +494,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
499
494
|
readonly 'route:/dashboard/user/changepass': {
|
|
500
495
|
readonly name: "change_password";
|
|
501
496
|
readonly icon: "key";
|
|
502
|
-
readonly translate: true;
|
|
503
497
|
readonly fetchItem: true;
|
|
498
|
+
readonly translate: true;
|
|
504
499
|
};
|
|
505
500
|
};
|
|
506
501
|
readonly icon: "users";
|
|
@@ -588,7 +583,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
588
583
|
readonly picture: "picture_file";
|
|
589
584
|
readonly information: "email";
|
|
590
585
|
readonly active: "active";
|
|
591
|
-
readonly translateBadge: true;
|
|
592
586
|
};
|
|
593
587
|
};
|
|
594
588
|
readonly individualActions: {
|
|
@@ -600,8 +594,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
600
594
|
readonly 'route:/dashboard/user/changepass': {
|
|
601
595
|
readonly name: "change_password";
|
|
602
596
|
readonly icon: "key";
|
|
603
|
-
readonly translate: true;
|
|
604
597
|
readonly fetchItem: true;
|
|
598
|
+
readonly translate: true;
|
|
605
599
|
};
|
|
606
600
|
};
|
|
607
601
|
readonly icon: "users";
|
|
@@ -707,7 +701,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
707
701
|
readonly picture: "picture_file";
|
|
708
702
|
readonly information: "email";
|
|
709
703
|
readonly active: "active";
|
|
710
|
-
readonly translateBadge: true;
|
|
711
704
|
};
|
|
712
705
|
};
|
|
713
706
|
readonly individualActions: {
|
|
@@ -719,8 +712,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
719
712
|
readonly 'route:/dashboard/user/changepass': {
|
|
720
713
|
readonly name: "change_password";
|
|
721
714
|
readonly icon: "key";
|
|
722
|
-
readonly translate: true;
|
|
723
715
|
readonly fetchItem: true;
|
|
716
|
+
readonly translate: true;
|
|
724
717
|
};
|
|
725
718
|
};
|
|
726
719
|
readonly icon: "users";
|
|
@@ -737,7 +730,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
737
730
|
};
|
|
738
731
|
};
|
|
739
732
|
};
|
|
740
|
-
}>) => 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>>;
|
|
741
734
|
readonly createAccount: (payload: Omit<Pick<{
|
|
742
735
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
743
736
|
readonly $id: "file";
|
|
@@ -1043,7 +1036,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1043
1036
|
readonly picture: "picture_file";
|
|
1044
1037
|
readonly information: "email";
|
|
1045
1038
|
readonly active: "active";
|
|
1046
|
-
readonly translateBadge: true;
|
|
1047
1039
|
};
|
|
1048
1040
|
};
|
|
1049
1041
|
readonly individualActions: {
|
|
@@ -1055,8 +1047,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1055
1047
|
readonly 'route:/dashboard/user/changepass': {
|
|
1056
1048
|
readonly name: "change_password";
|
|
1057
1049
|
readonly icon: "key";
|
|
1058
|
-
readonly translate: true;
|
|
1059
1050
|
readonly fetchItem: true;
|
|
1051
|
+
readonly translate: true;
|
|
1060
1052
|
};
|
|
1061
1053
|
};
|
|
1062
1054
|
readonly icon: "users";
|
|
@@ -1147,7 +1139,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1147
1139
|
readonly picture: "picture_file";
|
|
1148
1140
|
readonly information: "email";
|
|
1149
1141
|
readonly active: "active";
|
|
1150
|
-
readonly translateBadge: true;
|
|
1151
1142
|
};
|
|
1152
1143
|
};
|
|
1153
1144
|
readonly individualActions: {
|
|
@@ -1159,8 +1150,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1159
1150
|
readonly 'route:/dashboard/user/changepass': {
|
|
1160
1151
|
readonly name: "change_password";
|
|
1161
1152
|
readonly icon: "key";
|
|
1162
|
-
readonly translate: true;
|
|
1163
1153
|
readonly fetchItem: true;
|
|
1154
|
+
readonly translate: true;
|
|
1164
1155
|
};
|
|
1165
1156
|
};
|
|
1166
1157
|
readonly icon: "users";
|
|
@@ -1193,7 +1184,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1193
1184
|
};
|
|
1194
1185
|
};
|
|
1195
1186
|
};
|
|
1196
|
-
}>, "description" | "functions" | "item" | "security" | "accessControl"> & {
|
|
1187
|
+
}>, "description" | "functions" | "item" | "security" | "accessControl" | "exposedFunctions"> & {
|
|
1197
1188
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
1198
1189
|
readonly $id: "user";
|
|
1199
1190
|
readonly required: readonly ["name", "roles", "email"];
|
|
@@ -1264,7 +1255,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1264
1255
|
readonly picture: "picture_file";
|
|
1265
1256
|
readonly information: "email";
|
|
1266
1257
|
readonly active: "active";
|
|
1267
|
-
readonly translateBadge: true;
|
|
1268
1258
|
};
|
|
1269
1259
|
};
|
|
1270
1260
|
readonly individualActions: {
|
|
@@ -1276,8 +1266,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1276
1266
|
readonly 'route:/dashboard/user/changepass': {
|
|
1277
1267
|
readonly name: "change_password";
|
|
1278
1268
|
readonly icon: "key";
|
|
1279
|
-
readonly translate: true;
|
|
1280
1269
|
readonly fetchItem: true;
|
|
1270
|
+
readonly translate: true;
|
|
1281
1271
|
};
|
|
1282
1272
|
};
|
|
1283
1273
|
readonly icon: "users";
|
|
@@ -1365,7 +1355,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1365
1355
|
readonly picture: "picture_file";
|
|
1366
1356
|
readonly information: "email";
|
|
1367
1357
|
readonly active: "active";
|
|
1368
|
-
readonly translateBadge: true;
|
|
1369
1358
|
};
|
|
1370
1359
|
};
|
|
1371
1360
|
readonly individualActions: {
|
|
@@ -1377,8 +1366,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1377
1366
|
readonly 'route:/dashboard/user/changepass': {
|
|
1378
1367
|
readonly name: "change_password";
|
|
1379
1368
|
readonly icon: "key";
|
|
1380
|
-
readonly translate: true;
|
|
1381
1369
|
readonly fetchItem: true;
|
|
1370
|
+
readonly translate: true;
|
|
1382
1371
|
};
|
|
1383
1372
|
};
|
|
1384
1373
|
readonly icon: "users";
|
|
@@ -1475,7 +1464,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1475
1464
|
readonly picture: "picture_file";
|
|
1476
1465
|
readonly information: "email";
|
|
1477
1466
|
readonly active: "active";
|
|
1478
|
-
readonly translateBadge: true;
|
|
1479
1467
|
};
|
|
1480
1468
|
};
|
|
1481
1469
|
readonly individualActions: {
|
|
@@ -1487,8 +1475,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1487
1475
|
readonly 'route:/dashboard/user/changepass': {
|
|
1488
1476
|
readonly name: "change_password";
|
|
1489
1477
|
readonly icon: "key";
|
|
1490
|
-
readonly translate: true;
|
|
1491
1478
|
readonly fetchItem: true;
|
|
1479
|
+
readonly translate: true;
|
|
1492
1480
|
};
|
|
1493
1481
|
};
|
|
1494
1482
|
readonly icon: "users";
|
|
@@ -1576,7 +1564,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1576
1564
|
readonly picture: "picture_file";
|
|
1577
1565
|
readonly information: "email";
|
|
1578
1566
|
readonly active: "active";
|
|
1579
|
-
readonly translateBadge: true;
|
|
1580
1567
|
};
|
|
1581
1568
|
};
|
|
1582
1569
|
readonly individualActions: {
|
|
@@ -1588,8 +1575,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1588
1575
|
readonly 'route:/dashboard/user/changepass': {
|
|
1589
1576
|
readonly name: "change_password";
|
|
1590
1577
|
readonly icon: "key";
|
|
1591
|
-
readonly translate: true;
|
|
1592
1578
|
readonly fetchItem: true;
|
|
1579
|
+
readonly translate: true;
|
|
1593
1580
|
};
|
|
1594
1581
|
};
|
|
1595
1582
|
readonly icon: "users";
|
|
@@ -1676,7 +1663,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1676
1663
|
readonly picture: "picture_file";
|
|
1677
1664
|
readonly information: "email";
|
|
1678
1665
|
readonly active: "active";
|
|
1679
|
-
readonly translateBadge: true;
|
|
1680
1666
|
};
|
|
1681
1667
|
};
|
|
1682
1668
|
readonly individualActions: {
|
|
@@ -1688,8 +1674,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1688
1674
|
readonly 'route:/dashboard/user/changepass': {
|
|
1689
1675
|
readonly name: "change_password";
|
|
1690
1676
|
readonly icon: "key";
|
|
1691
|
-
readonly translate: true;
|
|
1692
1677
|
readonly fetchItem: true;
|
|
1678
|
+
readonly translate: true;
|
|
1693
1679
|
};
|
|
1694
1680
|
};
|
|
1695
1681
|
readonly icon: "users";
|
|
@@ -1783,7 +1769,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1783
1769
|
readonly picture: "picture_file";
|
|
1784
1770
|
readonly information: "email";
|
|
1785
1771
|
readonly active: "active";
|
|
1786
|
-
readonly translateBadge: true;
|
|
1787
1772
|
};
|
|
1788
1773
|
};
|
|
1789
1774
|
readonly individualActions: {
|
|
@@ -1795,8 +1780,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1795
1780
|
readonly 'route:/dashboard/user/changepass': {
|
|
1796
1781
|
readonly name: "change_password";
|
|
1797
1782
|
readonly icon: "key";
|
|
1798
|
-
readonly translate: true;
|
|
1799
1783
|
readonly fetchItem: true;
|
|
1784
|
+
readonly translate: true;
|
|
1800
1785
|
};
|
|
1801
1786
|
};
|
|
1802
1787
|
readonly icon: "users";
|
|
@@ -1884,7 +1869,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1884
1869
|
readonly picture: "picture_file";
|
|
1885
1870
|
readonly information: "email";
|
|
1886
1871
|
readonly active: "active";
|
|
1887
|
-
readonly translateBadge: true;
|
|
1888
1872
|
};
|
|
1889
1873
|
};
|
|
1890
1874
|
readonly individualActions: {
|
|
@@ -1896,8 +1880,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1896
1880
|
readonly 'route:/dashboard/user/changepass': {
|
|
1897
1881
|
readonly name: "change_password";
|
|
1898
1882
|
readonly icon: "key";
|
|
1899
|
-
readonly translate: true;
|
|
1900
1883
|
readonly fetchItem: true;
|
|
1884
|
+
readonly translate: true;
|
|
1901
1885
|
};
|
|
1902
1886
|
};
|
|
1903
1887
|
readonly icon: "users";
|
|
@@ -2003,7 +1987,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2003
1987
|
readonly picture: "picture_file";
|
|
2004
1988
|
readonly information: "email";
|
|
2005
1989
|
readonly active: "active";
|
|
2006
|
-
readonly translateBadge: true;
|
|
2007
1990
|
};
|
|
2008
1991
|
};
|
|
2009
1992
|
readonly individualActions: {
|
|
@@ -2015,8 +1998,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2015
1998
|
readonly 'route:/dashboard/user/changepass': {
|
|
2016
1999
|
readonly name: "change_password";
|
|
2017
2000
|
readonly icon: "key";
|
|
2018
|
-
readonly translate: true;
|
|
2019
2001
|
readonly fetchItem: true;
|
|
2002
|
+
readonly translate: true;
|
|
2020
2003
|
};
|
|
2021
2004
|
};
|
|
2022
2005
|
readonly icon: "users";
|
|
@@ -2033,7 +2016,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2033
2016
|
};
|
|
2034
2017
|
};
|
|
2035
2018
|
};
|
|
2036
|
-
}>) => Promise<import("@aeriajs/types").
|
|
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").GenericResponse | import("@aeriajs/types").Right<true>>;
|
|
2037
2020
|
readonly createAccount: (payload: Omit<Pick<{
|
|
2038
2021
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
2039
2022
|
readonly $id: "file";
|
|
@@ -2339,7 +2322,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2339
2322
|
readonly picture: "picture_file";
|
|
2340
2323
|
readonly information: "email";
|
|
2341
2324
|
readonly active: "active";
|
|
2342
|
-
readonly translateBadge: true;
|
|
2343
2325
|
};
|
|
2344
2326
|
};
|
|
2345
2327
|
readonly individualActions: {
|
|
@@ -2351,8 +2333,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2351
2333
|
readonly 'route:/dashboard/user/changepass': {
|
|
2352
2334
|
readonly name: "change_password";
|
|
2353
2335
|
readonly icon: "key";
|
|
2354
|
-
readonly translate: true;
|
|
2355
2336
|
readonly fetchItem: true;
|
|
2337
|
+
readonly translate: true;
|
|
2356
2338
|
};
|
|
2357
2339
|
};
|
|
2358
2340
|
readonly icon: "users";
|
|
@@ -2443,7 +2425,6 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2443
2425
|
readonly picture: "picture_file";
|
|
2444
2426
|
readonly information: "email";
|
|
2445
2427
|
readonly active: "active";
|
|
2446
|
-
readonly translateBadge: true;
|
|
2447
2428
|
};
|
|
2448
2429
|
};
|
|
2449
2430
|
readonly individualActions: {
|
|
@@ -2455,8 +2436,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2455
2436
|
readonly 'route:/dashboard/user/changepass': {
|
|
2456
2437
|
readonly name: "change_password";
|
|
2457
2438
|
readonly icon: "key";
|
|
2458
|
-
readonly translate: true;
|
|
2459
2439
|
readonly fetchItem: true;
|
|
2440
|
+
readonly translate: true;
|
|
2460
2441
|
};
|
|
2461
2442
|
};
|
|
2462
2443
|
readonly icon: "users";
|
|
@@ -72,7 +72,6 @@ export declare const insert: (payload: {
|
|
|
72
72
|
readonly picture: "picture_file";
|
|
73
73
|
readonly information: "email";
|
|
74
74
|
readonly active: "active";
|
|
75
|
-
readonly translateBadge: true;
|
|
76
75
|
};
|
|
77
76
|
};
|
|
78
77
|
readonly individualActions: {
|
|
@@ -84,8 +83,8 @@ export declare const insert: (payload: {
|
|
|
84
83
|
readonly 'route:/dashboard/user/changepass': {
|
|
85
84
|
readonly name: "change_password";
|
|
86
85
|
readonly icon: "key";
|
|
87
|
-
readonly translate: true;
|
|
88
86
|
readonly fetchItem: true;
|
|
87
|
+
readonly translate: true;
|
|
89
88
|
};
|
|
90
89
|
};
|
|
91
90
|
readonly icon: "users";
|
|
@@ -10,6 +10,9 @@ const insert = async (payload, context) => {
|
|
|
10
10
|
if (payload.what.password) {
|
|
11
11
|
payload.what.password = await bcrypt_1.default.hash(payload.what.password, 10);
|
|
12
12
|
}
|
|
13
|
-
return core_1.
|
|
13
|
+
return (0, core_1.insert)(payload, context);
|
|
14
14
|
};
|
|
15
15
|
exports.insert = insert;
|
|
16
|
+
(0, core_1.defineFunctionAttributes)(exports.insert, {
|
|
17
|
+
exposed: true,
|
|
18
|
+
});
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import bcrypt from "bcrypt";
|
|
3
|
-
import {
|
|
3
|
+
import { defineFunctionAttributes, insert as originalInsert } from "@aeriajs/core";
|
|
4
4
|
export const insert = async (payload, context) => {
|
|
5
5
|
if (payload.what.password) {
|
|
6
6
|
payload.what.password = await bcrypt.hash(payload.what.password, 10);
|
|
7
7
|
}
|
|
8
|
-
return
|
|
8
|
+
return originalInsert(payload, context);
|
|
9
9
|
};
|
|
10
|
+
defineFunctionAttributes(insert, {
|
|
11
|
+
exposed: true
|
|
12
|
+
});
|
|
@@ -81,7 +81,6 @@ export declare const describe: (contextOrPayload: RouteContext | Payload) => Pro
|
|
|
81
81
|
readonly picture: "picture_file";
|
|
82
82
|
readonly information: "email";
|
|
83
83
|
readonly active: "active";
|
|
84
|
-
readonly translateBadge: true;
|
|
85
84
|
};
|
|
86
85
|
};
|
|
87
86
|
readonly individualActions: {
|
|
@@ -93,8 +92,8 @@ export declare const describe: (contextOrPayload: RouteContext | Payload) => Pro
|
|
|
93
92
|
readonly 'route:/dashboard/user/changepass': {
|
|
94
93
|
readonly name: "change_password";
|
|
95
94
|
readonly icon: "key";
|
|
96
|
-
readonly translate: true;
|
|
97
95
|
readonly fetchItem: true;
|
|
96
|
+
readonly translate: true;
|
|
98
97
|
};
|
|
99
98
|
};
|
|
100
99
|
readonly icon: "users";
|