@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/index.d.ts CHANGED
@@ -369,15 +369,15 @@ export declare const collections: {
369
369
  readonly ask: true;
370
370
  };
371
371
  };
372
- }>) => Promise<{
373
- readonly _tag: "Result";
374
- readonly error: undefined;
375
- readonly result: any;
376
- } | import("@aeriajs/types").Result.Error<{
372
+ }>) => Promise<import("@aeriajs/types").Result.Error<{
377
373
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
378
374
  } & {
379
375
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
380
- }>>;
376
+ }> | {
377
+ readonly _tag: "Result";
378
+ readonly error: undefined;
379
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
380
+ }>;
381
381
  readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
382
382
  readonly $id: "file";
383
383
  readonly owned: "always";
@@ -427,15 +427,15 @@ export declare const collections: {
427
427
  readonly ask: true;
428
428
  };
429
429
  };
430
- }>) => Promise<{
431
- readonly _tag: "Result";
432
- readonly error: undefined;
433
- readonly result: any;
434
- } | import("@aeriajs/types").Result.Error<{
430
+ }>) => Promise<import("@aeriajs/types").Result.Error<{
435
431
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
436
432
  } & {
437
433
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
438
- }>>;
434
+ }> | {
435
+ readonly _tag: "Result";
436
+ readonly error: undefined;
437
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
438
+ }>;
439
439
  };
440
440
  exposedFunctions: {
441
441
  readonly get: "unauthenticated";
@@ -855,15 +855,15 @@ export declare const collections: {
855
855
  readonly ask: true;
856
856
  };
857
857
  };
858
- }>) => Promise<{
859
- readonly _tag: "Result";
860
- readonly error: undefined;
861
- readonly result: any;
862
- } | import("@aeriajs/types").Result.Error<{
858
+ }>) => Promise<import("@aeriajs/types").Result.Error<{
863
859
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
864
860
  } & {
865
861
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
866
- }>>;
862
+ }> | {
863
+ readonly _tag: "Result";
864
+ readonly error: undefined;
865
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
866
+ }>;
867
867
  readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
868
868
  readonly $id: "file";
869
869
  readonly owned: "always";
@@ -913,15 +913,15 @@ export declare const collections: {
913
913
  readonly ask: true;
914
914
  };
915
915
  };
916
- }>) => Promise<{
917
- readonly _tag: "Result";
918
- readonly error: undefined;
919
- readonly result: any;
920
- } | import("@aeriajs/types").Result.Error<{
916
+ }>) => Promise<import("@aeriajs/types").Result.Error<{
921
917
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
922
918
  } & {
923
919
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
924
- }>>;
920
+ }> | {
921
+ readonly _tag: "Result";
922
+ readonly error: undefined;
923
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
924
+ }>;
925
925
  };
926
926
  contracts: {
927
927
  readonly get?: import("@aeriajs/types").Contract | undefined;
@@ -1328,6 +1328,11 @@ export declare const collections: {
1328
1328
  readonly fetchItem: true;
1329
1329
  readonly translate: true;
1330
1330
  };
1331
+ readonly copyActivationLink: {
1332
+ readonly label: "copy_activation_link";
1333
+ readonly icon: "link";
1334
+ readonly translate: true;
1335
+ };
1331
1336
  };
1332
1337
  readonly icon: "users";
1333
1338
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -1351,15 +1356,15 @@ export declare const collections: {
1351
1356
  readonly error: undefined;
1352
1357
  readonly result: import("@aeriajs/types").SchemaWithId<any>[];
1353
1358
  }>;
1354
- readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
1355
- readonly _tag: "Result";
1356
- readonly error: undefined;
1357
- readonly result: any;
1358
- } | import("@aeriajs/types").Result.Error<{
1359
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
1359
1360
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
1360
1361
  } & {
1361
1362
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
1362
- }>>;
1363
+ }> | {
1364
+ readonly _tag: "Result";
1365
+ readonly error: undefined;
1366
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
1367
+ }>;
1363
1368
  readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
1364
1369
  readonly code: import("@aeriajs/types").ACError.MalformedInput;
1365
1370
  readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
@@ -1462,6 +1467,11 @@ export declare const collections: {
1462
1467
  readonly fetchItem: true;
1463
1468
  readonly translate: true;
1464
1469
  };
1470
+ readonly copyActivationLink: {
1471
+ readonly label: "copy_activation_link";
1472
+ readonly icon: "link";
1473
+ readonly translate: true;
1474
+ };
1465
1475
  };
1466
1476
  readonly icon: "users";
1467
1477
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -1562,6 +1572,11 @@ export declare const collections: {
1562
1572
  readonly fetchItem: true;
1563
1573
  readonly translate: true;
1564
1574
  };
1575
+ readonly copyActivationLink: {
1576
+ readonly label: "copy_activation_link";
1577
+ readonly icon: "link";
1578
+ readonly translate: true;
1579
+ };
1565
1580
  };
1566
1581
  readonly icon: "users";
1567
1582
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -1661,6 +1676,11 @@ export declare const collections: {
1661
1676
  readonly fetchItem: true;
1662
1677
  readonly translate: true;
1663
1678
  };
1679
+ readonly copyActivationLink: {
1680
+ readonly label: "copy_activation_link";
1681
+ readonly icon: "link";
1682
+ readonly translate: true;
1683
+ };
1664
1684
  };
1665
1685
  readonly icon: "users";
1666
1686
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -1767,6 +1787,11 @@ export declare const collections: {
1767
1787
  readonly fetchItem: true;
1768
1788
  readonly translate: true;
1769
1789
  };
1790
+ readonly copyActivationLink: {
1791
+ readonly label: "copy_activation_link";
1792
+ readonly icon: "link";
1793
+ readonly translate: true;
1794
+ };
1770
1795
  };
1771
1796
  readonly icon: "users";
1772
1797
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -1874,6 +1899,11 @@ export declare const collections: {
1874
1899
  readonly fetchItem: true;
1875
1900
  readonly translate: true;
1876
1901
  };
1902
+ readonly copyActivationLink: {
1903
+ readonly label: "copy_activation_link";
1904
+ readonly icon: "link";
1905
+ readonly translate: true;
1906
+ };
1877
1907
  };
1878
1908
  readonly icon: "users";
1879
1909
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -1917,7 +1947,7 @@ export declare const collections: {
1917
1947
  }>>;
1918
1948
  readonly activate: (payload: {
1919
1949
  password: string;
1920
- }, context: import("@aeriajs/types").Context<{
1950
+ }, context: import("@aeriajs/types").RouteContext<null> & import("@aeriajs/types").CollectionContext<{
1921
1951
  readonly $id: "user";
1922
1952
  readonly required: readonly ["name", "roles", "email"];
1923
1953
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -2001,6 +2031,11 @@ export declare const collections: {
2001
2031
  readonly fetchItem: true;
2002
2032
  readonly translate: true;
2003
2033
  };
2034
+ readonly copyActivationLink: {
2035
+ readonly label: "copy_activation_link";
2036
+ readonly icon: "link";
2037
+ readonly translate: true;
2038
+ };
2004
2039
  };
2005
2040
  readonly icon: "users";
2006
2041
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -2016,7 +2051,17 @@ export declare const collections: {
2016
2051
  };
2017
2052
  };
2018
2053
  };
2019
- }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
2054
+ }, any> & {
2055
+ request: {
2056
+ query: {
2057
+ u?: string | undefined;
2058
+ t?: string | undefined;
2059
+ };
2060
+ payload: {
2061
+ password?: string | undefined;
2062
+ };
2063
+ };
2064
+ }) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
2020
2065
  readonly code: import("./collections/user/activate.js").ActivationError.InvalidLink;
2021
2066
  } & {
2022
2067
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
@@ -2028,7 +2073,17 @@ export declare const collections: {
2028
2073
  readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
2029
2074
  } & {
2030
2075
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
2031
- }> | undefined>;
2076
+ }> | import("@aeriajs/types").Result.Error<{
2077
+ readonly code: import("@aeriajs/types").ACError.MalformedInput;
2078
+ } & {
2079
+ httpStatus: import("@aeriajs/types").HTTPStatus.UnprocessableContent;
2080
+ }> | {
2081
+ readonly _tag: "Result";
2082
+ readonly error: undefined;
2083
+ readonly result: {
2084
+ readonly userId: any;
2085
+ };
2086
+ } | undefined>;
2032
2087
  readonly createAccount: (payload: Omit<Pick<{
2033
2088
  picture_file: import("@aeriajs/types").SchemaWithId<{
2034
2089
  readonly $id: "file";
@@ -2348,6 +2403,11 @@ export declare const collections: {
2348
2403
  readonly fetchItem: true;
2349
2404
  readonly translate: true;
2350
2405
  };
2406
+ readonly copyActivationLink: {
2407
+ readonly label: "copy_activation_link";
2408
+ readonly icon: "link";
2409
+ readonly translate: true;
2410
+ };
2351
2411
  };
2352
2412
  readonly icon: "users";
2353
2413
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -2460,6 +2520,11 @@ export declare const collections: {
2460
2520
  readonly fetchItem: true;
2461
2521
  readonly translate: true;
2462
2522
  };
2523
+ readonly copyActivationLink: {
2524
+ readonly label: "copy_activation_link";
2525
+ readonly icon: "link";
2526
+ readonly translate: true;
2527
+ };
2463
2528
  };
2464
2529
  readonly icon: "users";
2465
2530
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -2579,6 +2644,11 @@ export declare const collections: {
2579
2644
  readonly fetchItem: true;
2580
2645
  readonly translate: true;
2581
2646
  };
2647
+ readonly copyActivationLink: {
2648
+ readonly label: "copy_activation_link";
2649
+ readonly icon: "link";
2650
+ readonly translate: true;
2651
+ };
2582
2652
  };
2583
2653
  readonly icon: "users";
2584
2654
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -2681,6 +2751,11 @@ export declare const collections: {
2681
2751
  readonly fetchItem: true;
2682
2752
  readonly translate: true;
2683
2753
  };
2754
+ readonly copyActivationLink: {
2755
+ readonly label: "copy_activation_link";
2756
+ readonly icon: "link";
2757
+ readonly translate: true;
2758
+ };
2684
2759
  };
2685
2760
  readonly icon: "users";
2686
2761
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -2698,10 +2773,22 @@ export declare const collections: {
2698
2773
  };
2699
2774
  }>;
2700
2775
  }>;
2701
- readonly getActivationLink: (userId: import("mongodb").ObjectId) => Promise<{
2776
+ readonly getActivationLink: (payload: {
2777
+ userId: string | import("mongodb").ObjectId;
2778
+ }, context: import("@aeriajs/types").Context) => Promise<{
2779
+ readonly _tag: "Error";
2780
+ 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>;
2781
+ readonly result: undefined;
2782
+ } | import("@aeriajs/types").Result.Error<{
2783
+ readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
2784
+ } & {
2785
+ httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
2786
+ }> | {
2702
2787
  readonly _tag: "Result";
2703
2788
  readonly error: undefined;
2704
- readonly result: string;
2789
+ readonly result: {
2790
+ readonly url: string;
2791
+ };
2705
2792
  }>;
2706
2793
  };
2707
2794
  contracts: {
@@ -2797,6 +2884,11 @@ export declare const collections: {
2797
2884
  readonly fetchItem: true;
2798
2885
  readonly translate: true;
2799
2886
  };
2887
+ readonly copyActivationLink: {
2888
+ readonly label: "copy_activation_link";
2889
+ readonly icon: "link";
2890
+ readonly translate: true;
2891
+ };
2800
2892
  };
2801
2893
  readonly icon: "users";
2802
2894
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -2897,6 +2989,11 @@ export declare const collections: {
2897
2989
  readonly fetchItem: true;
2898
2990
  readonly translate: true;
2899
2991
  };
2992
+ readonly copyActivationLink: {
2993
+ readonly label: "copy_activation_link";
2994
+ readonly icon: "link";
2995
+ readonly translate: true;
2996
+ };
2900
2997
  };
2901
2998
  readonly icon: "users";
2902
2999
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -2920,15 +3017,15 @@ export declare const collections: {
2920
3017
  readonly error: undefined;
2921
3018
  readonly result: import("@aeriajs/types").SchemaWithId<any>[];
2922
3019
  }>;
2923
- readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
2924
- readonly _tag: "Result";
2925
- readonly error: undefined;
2926
- readonly result: any;
2927
- } | import("@aeriajs/types").Result.Error<{
3020
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
2928
3021
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
2929
3022
  } & {
2930
3023
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
2931
- }>>;
3024
+ }> | {
3025
+ readonly _tag: "Result";
3026
+ readonly error: undefined;
3027
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
3028
+ }>;
2932
3029
  readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
2933
3030
  readonly code: import("@aeriajs/types").ACError.MalformedInput;
2934
3031
  readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
@@ -3031,6 +3128,11 @@ export declare const collections: {
3031
3128
  readonly fetchItem: true;
3032
3129
  readonly translate: true;
3033
3130
  };
3131
+ readonly copyActivationLink: {
3132
+ readonly label: "copy_activation_link";
3133
+ readonly icon: "link";
3134
+ readonly translate: true;
3135
+ };
3034
3136
  };
3035
3137
  readonly icon: "users";
3036
3138
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -3131,6 +3233,11 @@ export declare const collections: {
3131
3233
  readonly fetchItem: true;
3132
3234
  readonly translate: true;
3133
3235
  };
3236
+ readonly copyActivationLink: {
3237
+ readonly label: "copy_activation_link";
3238
+ readonly icon: "link";
3239
+ readonly translate: true;
3240
+ };
3134
3241
  };
3135
3242
  readonly icon: "users";
3136
3243
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -3230,6 +3337,11 @@ export declare const collections: {
3230
3337
  readonly fetchItem: true;
3231
3338
  readonly translate: true;
3232
3339
  };
3340
+ readonly copyActivationLink: {
3341
+ readonly label: "copy_activation_link";
3342
+ readonly icon: "link";
3343
+ readonly translate: true;
3344
+ };
3233
3345
  };
3234
3346
  readonly icon: "users";
3235
3347
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -3336,6 +3448,11 @@ export declare const collections: {
3336
3448
  readonly fetchItem: true;
3337
3449
  readonly translate: true;
3338
3450
  };
3451
+ readonly copyActivationLink: {
3452
+ readonly label: "copy_activation_link";
3453
+ readonly icon: "link";
3454
+ readonly translate: true;
3455
+ };
3339
3456
  };
3340
3457
  readonly icon: "users";
3341
3458
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -3443,6 +3560,11 @@ export declare const collections: {
3443
3560
  readonly fetchItem: true;
3444
3561
  readonly translate: true;
3445
3562
  };
3563
+ readonly copyActivationLink: {
3564
+ readonly label: "copy_activation_link";
3565
+ readonly icon: "link";
3566
+ readonly translate: true;
3567
+ };
3446
3568
  };
3447
3569
  readonly icon: "users";
3448
3570
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -3486,7 +3608,7 @@ export declare const collections: {
3486
3608
  }>>;
3487
3609
  readonly activate: (payload: {
3488
3610
  password: string;
3489
- }, context: import("@aeriajs/types").Context<{
3611
+ }, context: import("@aeriajs/types").RouteContext<null> & import("@aeriajs/types").CollectionContext<{
3490
3612
  readonly $id: "user";
3491
3613
  readonly required: readonly ["name", "roles", "email"];
3492
3614
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -3570,6 +3692,11 @@ export declare const collections: {
3570
3692
  readonly fetchItem: true;
3571
3693
  readonly translate: true;
3572
3694
  };
3695
+ readonly copyActivationLink: {
3696
+ readonly label: "copy_activation_link";
3697
+ readonly icon: "link";
3698
+ readonly translate: true;
3699
+ };
3573
3700
  };
3574
3701
  readonly icon: "users";
3575
3702
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -3585,7 +3712,17 @@ export declare const collections: {
3585
3712
  };
3586
3713
  };
3587
3714
  };
3588
- }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
3715
+ }, any> & {
3716
+ request: {
3717
+ query: {
3718
+ u?: string | undefined;
3719
+ t?: string | undefined;
3720
+ };
3721
+ payload: {
3722
+ password?: string | undefined;
3723
+ };
3724
+ };
3725
+ }) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
3589
3726
  readonly code: import("./collections/user/activate.js").ActivationError.InvalidLink;
3590
3727
  } & {
3591
3728
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
@@ -3597,7 +3734,17 @@ export declare const collections: {
3597
3734
  readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
3598
3735
  } & {
3599
3736
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
3600
- }> | undefined>;
3737
+ }> | import("@aeriajs/types").Result.Error<{
3738
+ readonly code: import("@aeriajs/types").ACError.MalformedInput;
3739
+ } & {
3740
+ httpStatus: import("@aeriajs/types").HTTPStatus.UnprocessableContent;
3741
+ }> | {
3742
+ readonly _tag: "Result";
3743
+ readonly error: undefined;
3744
+ readonly result: {
3745
+ readonly userId: any;
3746
+ };
3747
+ } | undefined>;
3601
3748
  readonly createAccount: (payload: Omit<Pick<{
3602
3749
  picture_file: import("@aeriajs/types").SchemaWithId<{
3603
3750
  readonly $id: "file";
@@ -3917,6 +4064,11 @@ export declare const collections: {
3917
4064
  readonly fetchItem: true;
3918
4065
  readonly translate: true;
3919
4066
  };
4067
+ readonly copyActivationLink: {
4068
+ readonly label: "copy_activation_link";
4069
+ readonly icon: "link";
4070
+ readonly translate: true;
4071
+ };
3920
4072
  };
3921
4073
  readonly icon: "users";
3922
4074
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -4029,6 +4181,11 @@ export declare const collections: {
4029
4181
  readonly fetchItem: true;
4030
4182
  readonly translate: true;
4031
4183
  };
4184
+ readonly copyActivationLink: {
4185
+ readonly label: "copy_activation_link";
4186
+ readonly icon: "link";
4187
+ readonly translate: true;
4188
+ };
4032
4189
  };
4033
4190
  readonly icon: "users";
4034
4191
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -4148,6 +4305,11 @@ export declare const collections: {
4148
4305
  readonly fetchItem: true;
4149
4306
  readonly translate: true;
4150
4307
  };
4308
+ readonly copyActivationLink: {
4309
+ readonly label: "copy_activation_link";
4310
+ readonly icon: "link";
4311
+ readonly translate: true;
4312
+ };
4151
4313
  };
4152
4314
  readonly icon: "users";
4153
4315
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -4250,6 +4412,11 @@ export declare const collections: {
4250
4412
  readonly fetchItem: true;
4251
4413
  readonly translate: true;
4252
4414
  };
4415
+ readonly copyActivationLink: {
4416
+ readonly label: "copy_activation_link";
4417
+ readonly icon: "link";
4418
+ readonly translate: true;
4419
+ };
4253
4420
  };
4254
4421
  readonly icon: "users";
4255
4422
  readonly filters: readonly ["name", "roles", "email", "phone_number"];
@@ -4267,10 +4434,22 @@ export declare const collections: {
4267
4434
  };
4268
4435
  }>;
4269
4436
  }>;
4270
- readonly getActivationLink: (userId: import("mongodb").ObjectId) => Promise<{
4437
+ readonly getActivationLink: (payload: {
4438
+ userId: string | import("mongodb").ObjectId;
4439
+ }, context: import("@aeriajs/types").Context) => Promise<{
4440
+ readonly _tag: "Error";
4441
+ 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>;
4442
+ readonly result: undefined;
4443
+ } | import("@aeriajs/types").Result.Error<{
4444
+ readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
4445
+ } & {
4446
+ httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
4447
+ }> | {
4271
4448
  readonly _tag: "Result";
4272
4449
  readonly error: undefined;
4273
- readonly result: string;
4450
+ readonly result: {
4451
+ readonly url: string;
4452
+ };
4274
4453
  }>;
4275
4454
  };
4276
4455
  contracts: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.112",
3
+ "version": "0.0.114",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -45,11 +45,11 @@
45
45
  "mongodb": "^6.5.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@aeriajs/core": "^0.0.112",
49
- "@aeriajs/common": "^0.0.71",
50
- "@aeriajs/entrypoint": "^0.0.73",
51
- "@aeriajs/types": "^0.0.62",
52
- "@aeriajs/validation": "^0.0.74"
48
+ "@aeriajs/core": "^0.0.114",
49
+ "@aeriajs/common": "^0.0.73",
50
+ "@aeriajs/entrypoint": "^0.0.75",
51
+ "@aeriajs/types": "^0.0.64",
52
+ "@aeriajs/validation": "^0.0.76"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "echo skipping",