@aeriajs/builtins 0.0.112 → 0.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collections/file/index.d.ts +24 -24
- package/dist/collections/file/remove.d.ts +6 -6
- package/dist/collections/file/removeAll.d.ts +7 -7
- package/dist/collections/user/activate.d.ts +25 -5
- package/dist/collections/user/activate.js +17 -5
- package/dist/collections/user/activate.mjs +18 -6
- package/dist/collections/user/description.d.ts +5 -0
- package/dist/collections/user/description.js +5 -0
- package/dist/collections/user/description.mjs +5 -0
- package/dist/collections/user/getActivationLink.d.ts +18 -2
- package/dist/collections/user/getActivationLink.js +33 -7
- package/dist/collections/user/getActivationLink.mjs +32 -7
- package/dist/collections/user/getCurrentUser.d.ts +5 -0
- package/dist/collections/user/getInfo.js +3 -1
- package/dist/collections/user/getInfo.mjs +3 -1
- package/dist/collections/user/index.d.ts +201 -22
- package/dist/collections/user/index.js +2 -2
- package/dist/collections/user/index.mjs +2 -2
- package/dist/collections/user/insert.d.ts +5 -0
- package/dist/functions/describe.d.ts +5 -0
- package/dist/index.d.ts +225 -46
- package/package.json +6 -6
|
@@ -83,6 +83,11 @@ export declare const user: {
|
|
|
83
83
|
readonly fetchItem: true;
|
|
84
84
|
readonly translate: true;
|
|
85
85
|
};
|
|
86
|
+
readonly copyActivationLink: {
|
|
87
|
+
readonly label: "copy_activation_link";
|
|
88
|
+
readonly icon: "link";
|
|
89
|
+
readonly translate: true;
|
|
90
|
+
};
|
|
86
91
|
};
|
|
87
92
|
readonly icon: "users";
|
|
88
93
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -106,15 +111,15 @@ export declare const user: {
|
|
|
106
111
|
readonly error: undefined;
|
|
107
112
|
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
108
113
|
}>;
|
|
109
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
110
|
-
readonly _tag: "Result";
|
|
111
|
-
readonly error: undefined;
|
|
112
|
-
readonly result: any;
|
|
113
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
114
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
114
115
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
115
116
|
} & {
|
|
116
117
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
117
|
-
}
|
|
118
|
+
}> | {
|
|
119
|
+
readonly _tag: "Result";
|
|
120
|
+
readonly error: undefined;
|
|
121
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
122
|
+
}>;
|
|
118
123
|
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
119
124
|
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
120
125
|
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
@@ -217,6 +222,11 @@ export declare const user: {
|
|
|
217
222
|
readonly fetchItem: true;
|
|
218
223
|
readonly translate: true;
|
|
219
224
|
};
|
|
225
|
+
readonly copyActivationLink: {
|
|
226
|
+
readonly label: "copy_activation_link";
|
|
227
|
+
readonly icon: "link";
|
|
228
|
+
readonly translate: true;
|
|
229
|
+
};
|
|
220
230
|
};
|
|
221
231
|
readonly icon: "users";
|
|
222
232
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -317,6 +327,11 @@ export declare const user: {
|
|
|
317
327
|
readonly fetchItem: true;
|
|
318
328
|
readonly translate: true;
|
|
319
329
|
};
|
|
330
|
+
readonly copyActivationLink: {
|
|
331
|
+
readonly label: "copy_activation_link";
|
|
332
|
+
readonly icon: "link";
|
|
333
|
+
readonly translate: true;
|
|
334
|
+
};
|
|
320
335
|
};
|
|
321
336
|
readonly icon: "users";
|
|
322
337
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -416,6 +431,11 @@ export declare const user: {
|
|
|
416
431
|
readonly fetchItem: true;
|
|
417
432
|
readonly translate: true;
|
|
418
433
|
};
|
|
434
|
+
readonly copyActivationLink: {
|
|
435
|
+
readonly label: "copy_activation_link";
|
|
436
|
+
readonly icon: "link";
|
|
437
|
+
readonly translate: true;
|
|
438
|
+
};
|
|
419
439
|
};
|
|
420
440
|
readonly icon: "users";
|
|
421
441
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -522,6 +542,11 @@ export declare const user: {
|
|
|
522
542
|
readonly fetchItem: true;
|
|
523
543
|
readonly translate: true;
|
|
524
544
|
};
|
|
545
|
+
readonly copyActivationLink: {
|
|
546
|
+
readonly label: "copy_activation_link";
|
|
547
|
+
readonly icon: "link";
|
|
548
|
+
readonly translate: true;
|
|
549
|
+
};
|
|
525
550
|
};
|
|
526
551
|
readonly icon: "users";
|
|
527
552
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -629,6 +654,11 @@ export declare const user: {
|
|
|
629
654
|
readonly fetchItem: true;
|
|
630
655
|
readonly translate: true;
|
|
631
656
|
};
|
|
657
|
+
readonly copyActivationLink: {
|
|
658
|
+
readonly label: "copy_activation_link";
|
|
659
|
+
readonly icon: "link";
|
|
660
|
+
readonly translate: true;
|
|
661
|
+
};
|
|
632
662
|
};
|
|
633
663
|
readonly icon: "users";
|
|
634
664
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -672,7 +702,7 @@ export declare const user: {
|
|
|
672
702
|
}>>;
|
|
673
703
|
readonly activate: (payload: {
|
|
674
704
|
password: string;
|
|
675
|
-
}, context: import("@aeriajs/types").
|
|
705
|
+
}, context: import("@aeriajs/types").RouteContext<null> & import("@aeriajs/types").CollectionContext<{
|
|
676
706
|
readonly $id: "user";
|
|
677
707
|
readonly required: readonly ["name", "roles", "email"];
|
|
678
708
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -756,6 +786,11 @@ export declare const user: {
|
|
|
756
786
|
readonly fetchItem: true;
|
|
757
787
|
readonly translate: true;
|
|
758
788
|
};
|
|
789
|
+
readonly copyActivationLink: {
|
|
790
|
+
readonly label: "copy_activation_link";
|
|
791
|
+
readonly icon: "link";
|
|
792
|
+
readonly translate: true;
|
|
793
|
+
};
|
|
759
794
|
};
|
|
760
795
|
readonly icon: "users";
|
|
761
796
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -771,7 +806,17 @@ export declare const user: {
|
|
|
771
806
|
};
|
|
772
807
|
};
|
|
773
808
|
};
|
|
774
|
-
}>
|
|
809
|
+
}, any> & {
|
|
810
|
+
request: {
|
|
811
|
+
query: {
|
|
812
|
+
u?: string | undefined;
|
|
813
|
+
t?: string | undefined;
|
|
814
|
+
};
|
|
815
|
+
payload: {
|
|
816
|
+
password?: string | undefined;
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
}) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
|
|
775
820
|
readonly code: import("./activate.js").ActivationError.InvalidLink;
|
|
776
821
|
} & {
|
|
777
822
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
@@ -783,7 +828,17 @@ export declare const user: {
|
|
|
783
828
|
readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
|
|
784
829
|
} & {
|
|
785
830
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
786
|
-
}> |
|
|
831
|
+
}> | import("@aeriajs/types").Result.Error<{
|
|
832
|
+
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
833
|
+
} & {
|
|
834
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.UnprocessableContent;
|
|
835
|
+
}> | {
|
|
836
|
+
readonly _tag: "Result";
|
|
837
|
+
readonly error: undefined;
|
|
838
|
+
readonly result: {
|
|
839
|
+
readonly userId: any;
|
|
840
|
+
};
|
|
841
|
+
} | undefined>;
|
|
787
842
|
readonly createAccount: (payload: Omit<Pick<{
|
|
788
843
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
789
844
|
readonly $id: "file";
|
|
@@ -1103,6 +1158,11 @@ export declare const user: {
|
|
|
1103
1158
|
readonly fetchItem: true;
|
|
1104
1159
|
readonly translate: true;
|
|
1105
1160
|
};
|
|
1161
|
+
readonly copyActivationLink: {
|
|
1162
|
+
readonly label: "copy_activation_link";
|
|
1163
|
+
readonly icon: "link";
|
|
1164
|
+
readonly translate: true;
|
|
1165
|
+
};
|
|
1106
1166
|
};
|
|
1107
1167
|
readonly icon: "users";
|
|
1108
1168
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -1215,6 +1275,11 @@ export declare const user: {
|
|
|
1215
1275
|
readonly fetchItem: true;
|
|
1216
1276
|
readonly translate: true;
|
|
1217
1277
|
};
|
|
1278
|
+
readonly copyActivationLink: {
|
|
1279
|
+
readonly label: "copy_activation_link";
|
|
1280
|
+
readonly icon: "link";
|
|
1281
|
+
readonly translate: true;
|
|
1282
|
+
};
|
|
1218
1283
|
};
|
|
1219
1284
|
readonly icon: "users";
|
|
1220
1285
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -1334,6 +1399,11 @@ export declare const user: {
|
|
|
1334
1399
|
readonly fetchItem: true;
|
|
1335
1400
|
readonly translate: true;
|
|
1336
1401
|
};
|
|
1402
|
+
readonly copyActivationLink: {
|
|
1403
|
+
readonly label: "copy_activation_link";
|
|
1404
|
+
readonly icon: "link";
|
|
1405
|
+
readonly translate: true;
|
|
1406
|
+
};
|
|
1337
1407
|
};
|
|
1338
1408
|
readonly icon: "users";
|
|
1339
1409
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -1436,6 +1506,11 @@ export declare const user: {
|
|
|
1436
1506
|
readonly fetchItem: true;
|
|
1437
1507
|
readonly translate: true;
|
|
1438
1508
|
};
|
|
1509
|
+
readonly copyActivationLink: {
|
|
1510
|
+
readonly label: "copy_activation_link";
|
|
1511
|
+
readonly icon: "link";
|
|
1512
|
+
readonly translate: true;
|
|
1513
|
+
};
|
|
1439
1514
|
};
|
|
1440
1515
|
readonly icon: "users";
|
|
1441
1516
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -1453,10 +1528,22 @@ export declare const user: {
|
|
|
1453
1528
|
};
|
|
1454
1529
|
}>;
|
|
1455
1530
|
}>;
|
|
1456
|
-
readonly getActivationLink: (
|
|
1531
|
+
readonly getActivationLink: (payload: {
|
|
1532
|
+
userId: string | import("@aeriajs/core").ObjectId;
|
|
1533
|
+
}, context: import("@aeriajs/types").Context) => Promise<{
|
|
1534
|
+
readonly _tag: "Error";
|
|
1535
|
+
readonly error: import("@aeriajs/types").StrictEndpointError<import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
1536
|
+
readonly result: undefined;
|
|
1537
|
+
} | import("@aeriajs/types").Result.Error<{
|
|
1538
|
+
readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
|
|
1539
|
+
} & {
|
|
1540
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
1541
|
+
}> | {
|
|
1457
1542
|
readonly _tag: "Result";
|
|
1458
1543
|
readonly error: undefined;
|
|
1459
|
-
readonly result:
|
|
1544
|
+
readonly result: {
|
|
1545
|
+
readonly url: string;
|
|
1546
|
+
};
|
|
1460
1547
|
}>;
|
|
1461
1548
|
};
|
|
1462
1549
|
contracts: {
|
|
@@ -1552,6 +1639,11 @@ export declare const user: {
|
|
|
1552
1639
|
readonly fetchItem: true;
|
|
1553
1640
|
readonly translate: true;
|
|
1554
1641
|
};
|
|
1642
|
+
readonly copyActivationLink: {
|
|
1643
|
+
readonly label: "copy_activation_link";
|
|
1644
|
+
readonly icon: "link";
|
|
1645
|
+
readonly translate: true;
|
|
1646
|
+
};
|
|
1555
1647
|
};
|
|
1556
1648
|
readonly icon: "users";
|
|
1557
1649
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -1652,6 +1744,11 @@ export declare const user: {
|
|
|
1652
1744
|
readonly fetchItem: true;
|
|
1653
1745
|
readonly translate: true;
|
|
1654
1746
|
};
|
|
1747
|
+
readonly copyActivationLink: {
|
|
1748
|
+
readonly label: "copy_activation_link";
|
|
1749
|
+
readonly icon: "link";
|
|
1750
|
+
readonly translate: true;
|
|
1751
|
+
};
|
|
1655
1752
|
};
|
|
1656
1753
|
readonly icon: "users";
|
|
1657
1754
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -1675,15 +1772,15 @@ export declare const user: {
|
|
|
1675
1772
|
readonly error: undefined;
|
|
1676
1773
|
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1677
1774
|
}>;
|
|
1678
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
1679
|
-
readonly _tag: "Result";
|
|
1680
|
-
readonly error: undefined;
|
|
1681
|
-
readonly result: any;
|
|
1682
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
1775
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1683
1776
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
1684
1777
|
} & {
|
|
1685
1778
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1686
|
-
}
|
|
1779
|
+
}> | {
|
|
1780
|
+
readonly _tag: "Result";
|
|
1781
|
+
readonly error: undefined;
|
|
1782
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
1783
|
+
}>;
|
|
1687
1784
|
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1688
1785
|
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
1689
1786
|
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
@@ -1786,6 +1883,11 @@ export declare const user: {
|
|
|
1786
1883
|
readonly fetchItem: true;
|
|
1787
1884
|
readonly translate: true;
|
|
1788
1885
|
};
|
|
1886
|
+
readonly copyActivationLink: {
|
|
1887
|
+
readonly label: "copy_activation_link";
|
|
1888
|
+
readonly icon: "link";
|
|
1889
|
+
readonly translate: true;
|
|
1890
|
+
};
|
|
1789
1891
|
};
|
|
1790
1892
|
readonly icon: "users";
|
|
1791
1893
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -1886,6 +1988,11 @@ export declare const user: {
|
|
|
1886
1988
|
readonly fetchItem: true;
|
|
1887
1989
|
readonly translate: true;
|
|
1888
1990
|
};
|
|
1991
|
+
readonly copyActivationLink: {
|
|
1992
|
+
readonly label: "copy_activation_link";
|
|
1993
|
+
readonly icon: "link";
|
|
1994
|
+
readonly translate: true;
|
|
1995
|
+
};
|
|
1889
1996
|
};
|
|
1890
1997
|
readonly icon: "users";
|
|
1891
1998
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -1985,6 +2092,11 @@ export declare const user: {
|
|
|
1985
2092
|
readonly fetchItem: true;
|
|
1986
2093
|
readonly translate: true;
|
|
1987
2094
|
};
|
|
2095
|
+
readonly copyActivationLink: {
|
|
2096
|
+
readonly label: "copy_activation_link";
|
|
2097
|
+
readonly icon: "link";
|
|
2098
|
+
readonly translate: true;
|
|
2099
|
+
};
|
|
1988
2100
|
};
|
|
1989
2101
|
readonly icon: "users";
|
|
1990
2102
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -2091,6 +2203,11 @@ export declare const user: {
|
|
|
2091
2203
|
readonly fetchItem: true;
|
|
2092
2204
|
readonly translate: true;
|
|
2093
2205
|
};
|
|
2206
|
+
readonly copyActivationLink: {
|
|
2207
|
+
readonly label: "copy_activation_link";
|
|
2208
|
+
readonly icon: "link";
|
|
2209
|
+
readonly translate: true;
|
|
2210
|
+
};
|
|
2094
2211
|
};
|
|
2095
2212
|
readonly icon: "users";
|
|
2096
2213
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -2198,6 +2315,11 @@ export declare const user: {
|
|
|
2198
2315
|
readonly fetchItem: true;
|
|
2199
2316
|
readonly translate: true;
|
|
2200
2317
|
};
|
|
2318
|
+
readonly copyActivationLink: {
|
|
2319
|
+
readonly label: "copy_activation_link";
|
|
2320
|
+
readonly icon: "link";
|
|
2321
|
+
readonly translate: true;
|
|
2322
|
+
};
|
|
2201
2323
|
};
|
|
2202
2324
|
readonly icon: "users";
|
|
2203
2325
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -2241,7 +2363,7 @@ export declare const user: {
|
|
|
2241
2363
|
}>>;
|
|
2242
2364
|
readonly activate: (payload: {
|
|
2243
2365
|
password: string;
|
|
2244
|
-
}, context: import("@aeriajs/types").
|
|
2366
|
+
}, context: import("@aeriajs/types").RouteContext<null> & import("@aeriajs/types").CollectionContext<{
|
|
2245
2367
|
readonly $id: "user";
|
|
2246
2368
|
readonly required: readonly ["name", "roles", "email"];
|
|
2247
2369
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
@@ -2325,6 +2447,11 @@ export declare const user: {
|
|
|
2325
2447
|
readonly fetchItem: true;
|
|
2326
2448
|
readonly translate: true;
|
|
2327
2449
|
};
|
|
2450
|
+
readonly copyActivationLink: {
|
|
2451
|
+
readonly label: "copy_activation_link";
|
|
2452
|
+
readonly icon: "link";
|
|
2453
|
+
readonly translate: true;
|
|
2454
|
+
};
|
|
2328
2455
|
};
|
|
2329
2456
|
readonly icon: "users";
|
|
2330
2457
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -2340,7 +2467,17 @@ export declare const user: {
|
|
|
2340
2467
|
};
|
|
2341
2468
|
};
|
|
2342
2469
|
};
|
|
2343
|
-
}>
|
|
2470
|
+
}, any> & {
|
|
2471
|
+
request: {
|
|
2472
|
+
query: {
|
|
2473
|
+
u?: string | undefined;
|
|
2474
|
+
t?: string | undefined;
|
|
2475
|
+
};
|
|
2476
|
+
payload: {
|
|
2477
|
+
password?: string | undefined;
|
|
2478
|
+
};
|
|
2479
|
+
};
|
|
2480
|
+
}) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
|
|
2344
2481
|
readonly code: import("./activate.js").ActivationError.InvalidLink;
|
|
2345
2482
|
} & {
|
|
2346
2483
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
@@ -2352,7 +2489,17 @@ export declare const user: {
|
|
|
2352
2489
|
readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
|
|
2353
2490
|
} & {
|
|
2354
2491
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
2355
|
-
}> |
|
|
2492
|
+
}> | import("@aeriajs/types").Result.Error<{
|
|
2493
|
+
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
2494
|
+
} & {
|
|
2495
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.UnprocessableContent;
|
|
2496
|
+
}> | {
|
|
2497
|
+
readonly _tag: "Result";
|
|
2498
|
+
readonly error: undefined;
|
|
2499
|
+
readonly result: {
|
|
2500
|
+
readonly userId: any;
|
|
2501
|
+
};
|
|
2502
|
+
} | undefined>;
|
|
2356
2503
|
readonly createAccount: (payload: Omit<Pick<{
|
|
2357
2504
|
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
2358
2505
|
readonly $id: "file";
|
|
@@ -2672,6 +2819,11 @@ export declare const user: {
|
|
|
2672
2819
|
readonly fetchItem: true;
|
|
2673
2820
|
readonly translate: true;
|
|
2674
2821
|
};
|
|
2822
|
+
readonly copyActivationLink: {
|
|
2823
|
+
readonly label: "copy_activation_link";
|
|
2824
|
+
readonly icon: "link";
|
|
2825
|
+
readonly translate: true;
|
|
2826
|
+
};
|
|
2675
2827
|
};
|
|
2676
2828
|
readonly icon: "users";
|
|
2677
2829
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -2784,6 +2936,11 @@ export declare const user: {
|
|
|
2784
2936
|
readonly fetchItem: true;
|
|
2785
2937
|
readonly translate: true;
|
|
2786
2938
|
};
|
|
2939
|
+
readonly copyActivationLink: {
|
|
2940
|
+
readonly label: "copy_activation_link";
|
|
2941
|
+
readonly icon: "link";
|
|
2942
|
+
readonly translate: true;
|
|
2943
|
+
};
|
|
2787
2944
|
};
|
|
2788
2945
|
readonly icon: "users";
|
|
2789
2946
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -2903,6 +3060,11 @@ export declare const user: {
|
|
|
2903
3060
|
readonly fetchItem: true;
|
|
2904
3061
|
readonly translate: true;
|
|
2905
3062
|
};
|
|
3063
|
+
readonly copyActivationLink: {
|
|
3064
|
+
readonly label: "copy_activation_link";
|
|
3065
|
+
readonly icon: "link";
|
|
3066
|
+
readonly translate: true;
|
|
3067
|
+
};
|
|
2906
3068
|
};
|
|
2907
3069
|
readonly icon: "users";
|
|
2908
3070
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -3005,6 +3167,11 @@ export declare const user: {
|
|
|
3005
3167
|
readonly fetchItem: true;
|
|
3006
3168
|
readonly translate: true;
|
|
3007
3169
|
};
|
|
3170
|
+
readonly copyActivationLink: {
|
|
3171
|
+
readonly label: "copy_activation_link";
|
|
3172
|
+
readonly icon: "link";
|
|
3173
|
+
readonly translate: true;
|
|
3174
|
+
};
|
|
3008
3175
|
};
|
|
3009
3176
|
readonly icon: "users";
|
|
3010
3177
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -3022,10 +3189,22 @@ export declare const user: {
|
|
|
3022
3189
|
};
|
|
3023
3190
|
}>;
|
|
3024
3191
|
}>;
|
|
3025
|
-
readonly getActivationLink: (
|
|
3192
|
+
readonly getActivationLink: (payload: {
|
|
3193
|
+
userId: string | import("@aeriajs/core").ObjectId;
|
|
3194
|
+
}, context: import("@aeriajs/types").Context) => Promise<{
|
|
3195
|
+
readonly _tag: "Error";
|
|
3196
|
+
readonly error: import("@aeriajs/types").StrictEndpointError<import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
3197
|
+
readonly result: undefined;
|
|
3198
|
+
} | import("@aeriajs/types").Result.Error<{
|
|
3199
|
+
readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
|
|
3200
|
+
} & {
|
|
3201
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
3202
|
+
}> | {
|
|
3026
3203
|
readonly _tag: "Result";
|
|
3027
3204
|
readonly error: undefined;
|
|
3028
|
-
readonly result:
|
|
3205
|
+
readonly result: {
|
|
3206
|
+
readonly url: string;
|
|
3207
|
+
};
|
|
3029
3208
|
}>;
|
|
3030
3209
|
};
|
|
3031
3210
|
contracts: {
|
|
@@ -18,8 +18,8 @@ const exposedFunctions = {
|
|
|
18
18
|
removeFile: true,
|
|
19
19
|
insert: true,
|
|
20
20
|
authenticate: 'unauthenticated',
|
|
21
|
-
activate: 'unauthenticated
|
|
22
|
-
createAccount: 'unauthenticated
|
|
21
|
+
activate: 'unauthenticated',
|
|
22
|
+
createAccount: 'unauthenticated',
|
|
23
23
|
getInfo: 'unauthenticated',
|
|
24
24
|
getCurrentUser: true,
|
|
25
25
|
getActivationLink: ['root'],
|
|
@@ -16,8 +16,8 @@ const exposedFunctions = {
|
|
|
16
16
|
removeFile: true,
|
|
17
17
|
insert: true,
|
|
18
18
|
authenticate: "unauthenticated",
|
|
19
|
-
activate: "unauthenticated
|
|
20
|
-
createAccount: "unauthenticated
|
|
19
|
+
activate: "unauthenticated",
|
|
20
|
+
createAccount: "unauthenticated",
|
|
21
21
|
getInfo: "unauthenticated",
|
|
22
22
|
getCurrentUser: true,
|
|
23
23
|
getActivationLink: ["root"]
|
|
@@ -86,6 +86,11 @@ export declare const insert: (payload: {
|
|
|
86
86
|
readonly fetchItem: true;
|
|
87
87
|
readonly translate: true;
|
|
88
88
|
};
|
|
89
|
+
readonly copyActivationLink: {
|
|
90
|
+
readonly label: "copy_activation_link";
|
|
91
|
+
readonly icon: "link";
|
|
92
|
+
readonly translate: true;
|
|
93
|
+
};
|
|
89
94
|
};
|
|
90
95
|
readonly icon: "users";
|
|
91
96
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
@@ -113,6 +113,11 @@ export declare const describe: (contextOrPayload: RouteContext | Payload) => Pro
|
|
|
113
113
|
readonly fetchItem: true;
|
|
114
114
|
readonly translate: true;
|
|
115
115
|
};
|
|
116
|
+
readonly copyActivationLink: {
|
|
117
|
+
readonly label: "copy_activation_link";
|
|
118
|
+
readonly icon: "link";
|
|
119
|
+
readonly translate: true;
|
|
120
|
+
};
|
|
116
121
|
};
|
|
117
122
|
readonly icon: "users";
|
|
118
123
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|