@aeriajs/builtins 0.0.295 → 0.0.297
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/user/activate.d.ts +1 -1
- package/dist/collections/user/activate.js +6 -2
- package/dist/collections/user/createAccount.d.ts +4 -0
- package/dist/collections/user/description.d.ts +4 -0
- package/dist/collections/user/description.js +4 -0
- package/dist/collections/user/editProfile.d.ts +4 -0
- package/dist/collections/user/getActivationLink.d.ts +2 -3
- package/dist/collections/user/getActivationLink.js +26 -24
- package/dist/collections/user/getActivationToken.d.ts +6 -0
- package/dist/collections/user/getActivationToken.js +13 -0
- package/dist/collections/user/getRedefinePasswordLink.d.ts +2 -2
- package/dist/collections/user/getRedefinePasswordLink.js +33 -11
- package/dist/collections/user/index.d.ts +110 -60
- package/dist/collections/user/redefinePassword.d.ts +1 -1
- package/dist/collections/user/redefinePassword.js +5 -2
- package/dist/index.d.ts +110 -60
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -986,6 +986,10 @@ export declare const collections: {
|
|
|
986
986
|
readonly type: "string";
|
|
987
987
|
readonly format: "date-time";
|
|
988
988
|
};
|
|
989
|
+
readonly activation_timestamp: {
|
|
990
|
+
readonly type: "string";
|
|
991
|
+
readonly format: "date-time";
|
|
992
|
+
};
|
|
989
993
|
};
|
|
990
994
|
readonly presets: readonly ["crud", "duplicate"];
|
|
991
995
|
readonly layout: {
|
|
@@ -1095,6 +1099,10 @@ export declare const collections: {
|
|
|
1095
1099
|
readonly type: "string";
|
|
1096
1100
|
readonly format: "date-time";
|
|
1097
1101
|
};
|
|
1102
|
+
readonly activation_timestamp: {
|
|
1103
|
+
readonly type: "string";
|
|
1104
|
+
readonly format: "date-time";
|
|
1105
|
+
};
|
|
1098
1106
|
};
|
|
1099
1107
|
readonly presets: readonly ["crud", "duplicate"];
|
|
1100
1108
|
readonly layout: {
|
|
@@ -1254,6 +1262,10 @@ export declare const collections: {
|
|
|
1254
1262
|
readonly type: "string";
|
|
1255
1263
|
readonly format: "date-time";
|
|
1256
1264
|
};
|
|
1265
|
+
readonly activation_timestamp: {
|
|
1266
|
+
readonly type: "string";
|
|
1267
|
+
readonly format: "date-time";
|
|
1268
|
+
};
|
|
1257
1269
|
}, {}>> & {
|
|
1258
1270
|
name: string;
|
|
1259
1271
|
password: string;
|
|
@@ -1266,6 +1278,7 @@ export declare const collections: {
|
|
|
1266
1278
|
picture_file: import("bson").ObjectId;
|
|
1267
1279
|
given_name: never;
|
|
1268
1280
|
family_name: never;
|
|
1281
|
+
activation_timestamp: Date;
|
|
1269
1282
|
}, never>>, context: Omit<import("@aeriajs/types").Context, "token">) => ({} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
1270
1283
|
readonly _tag: {
|
|
1271
1284
|
readonly const: "Error";
|
|
@@ -1397,6 +1410,10 @@ export declare const collections: {
|
|
|
1397
1410
|
readonly type: "string";
|
|
1398
1411
|
readonly format: "date-time";
|
|
1399
1412
|
};
|
|
1413
|
+
readonly activation_timestamp: {
|
|
1414
|
+
readonly type: "string";
|
|
1415
|
+
readonly format: "date-time";
|
|
1416
|
+
};
|
|
1400
1417
|
};
|
|
1401
1418
|
readonly presets: readonly ["crud", "duplicate"];
|
|
1402
1419
|
readonly layout: {
|
|
@@ -1591,6 +1608,10 @@ export declare const collections: {
|
|
|
1591
1608
|
readonly type: "string";
|
|
1592
1609
|
readonly format: "date-time";
|
|
1593
1610
|
};
|
|
1611
|
+
readonly activation_timestamp: {
|
|
1612
|
+
readonly type: "string";
|
|
1613
|
+
readonly format: "date-time";
|
|
1614
|
+
};
|
|
1594
1615
|
};
|
|
1595
1616
|
readonly presets: readonly ["crud", "duplicate"];
|
|
1596
1617
|
readonly layout: {
|
|
@@ -1851,6 +1872,10 @@ export declare const collections: {
|
|
|
1851
1872
|
readonly type: "string";
|
|
1852
1873
|
readonly format: "date-time";
|
|
1853
1874
|
};
|
|
1875
|
+
readonly activation_timestamp: {
|
|
1876
|
+
readonly type: "string";
|
|
1877
|
+
readonly format: "date-time";
|
|
1878
|
+
};
|
|
1854
1879
|
};
|
|
1855
1880
|
readonly presets: readonly ["crud", "duplicate"];
|
|
1856
1881
|
readonly layout: {
|
|
@@ -2213,6 +2238,10 @@ export declare const collections: {
|
|
|
2213
2238
|
readonly type: "string";
|
|
2214
2239
|
readonly format: "date-time";
|
|
2215
2240
|
};
|
|
2241
|
+
readonly activation_timestamp: {
|
|
2242
|
+
readonly type: "string";
|
|
2243
|
+
readonly format: "date-time";
|
|
2244
|
+
};
|
|
2216
2245
|
};
|
|
2217
2246
|
readonly presets: readonly ["crud", "duplicate"];
|
|
2218
2247
|
readonly layout: {
|
|
@@ -2443,7 +2472,7 @@ export declare const collections: {
|
|
|
2443
2472
|
readonly required: readonly ["httpStatus", "code"];
|
|
2444
2473
|
readonly properties: {
|
|
2445
2474
|
readonly httpStatus: {
|
|
2446
|
-
readonly enum: [404, 403, 401, 422];
|
|
2475
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
2447
2476
|
};
|
|
2448
2477
|
readonly code: {
|
|
2449
2478
|
readonly enum: ["RESOURCE_NOT_FOUND", "MALFORMED_INPUT", "ALREADY_ACTIVE_USER", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND"];
|
|
@@ -2462,7 +2491,7 @@ export declare const collections: {
|
|
|
2462
2491
|
result: undefined;
|
|
2463
2492
|
error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
2464
2493
|
readonly httpStatus: {
|
|
2465
|
-
readonly enum: [404, 403, 401, 422];
|
|
2494
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
2466
2495
|
};
|
|
2467
2496
|
readonly code: {
|
|
2468
2497
|
readonly enum: ["RESOURCE_NOT_FOUND", "MALFORMED_INPUT", "ALREADY_ACTIVE_USER", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND"];
|
|
@@ -2476,12 +2505,12 @@ export declare const collections: {
|
|
|
2476
2505
|
};
|
|
2477
2506
|
}, {}>> & {
|
|
2478
2507
|
code: "RESOURCE_NOT_FOUND" | "MALFORMED_INPUT" | "USER_NOT_FOUND" | "ALREADY_ACTIVE_USER" | "INVALID_LINK" | "INVALID_TOKEN";
|
|
2479
|
-
httpStatus: 401 | 403 | 404 | 422;
|
|
2508
|
+
httpStatus: 400 | 401 | 403 | 404 | 422;
|
|
2480
2509
|
message: string;
|
|
2481
2510
|
details: any;
|
|
2482
2511
|
}, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
2483
2512
|
readonly httpStatus: {
|
|
2484
|
-
readonly enum: [404, 403, 401, 422];
|
|
2513
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
2485
2514
|
};
|
|
2486
2515
|
readonly code: {
|
|
2487
2516
|
readonly enum: ["RESOURCE_NOT_FOUND", "MALFORMED_INPUT", "ALREADY_ACTIVE_USER", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND"];
|
|
@@ -2495,7 +2524,7 @@ export declare const collections: {
|
|
|
2495
2524
|
};
|
|
2496
2525
|
}, {}>> & {
|
|
2497
2526
|
code: "RESOURCE_NOT_FOUND" | "MALFORMED_INPUT" | "USER_NOT_FOUND" | "ALREADY_ACTIVE_USER" | "INVALID_LINK" | "INVALID_TOKEN";
|
|
2498
|
-
httpStatus: 401 | 403 | 404 | 422;
|
|
2527
|
+
httpStatus: 400 | 401 | 403 | 404 | 422;
|
|
2499
2528
|
message: string;
|
|
2500
2529
|
details: any;
|
|
2501
2530
|
}, never>>;
|
|
@@ -2540,7 +2569,7 @@ export declare const collections: {
|
|
|
2540
2569
|
readonly required: readonly ["httpStatus", "code"];
|
|
2541
2570
|
readonly properties: {
|
|
2542
2571
|
readonly httpStatus: {
|
|
2543
|
-
readonly enum: [404, 403, 401, 422];
|
|
2572
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
2544
2573
|
};
|
|
2545
2574
|
readonly code: {
|
|
2546
2575
|
readonly enum: ["RESOURCE_NOT_FOUND", "MALFORMED_INPUT", "ALREADY_ACTIVE_USER", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND"];
|
|
@@ -2559,7 +2588,7 @@ export declare const collections: {
|
|
|
2559
2588
|
result: undefined;
|
|
2560
2589
|
error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
2561
2590
|
readonly httpStatus: {
|
|
2562
|
-
readonly enum: [404, 403, 401, 422];
|
|
2591
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
2563
2592
|
};
|
|
2564
2593
|
readonly code: {
|
|
2565
2594
|
readonly enum: ["RESOURCE_NOT_FOUND", "MALFORMED_INPUT", "ALREADY_ACTIVE_USER", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND"];
|
|
@@ -2573,12 +2602,12 @@ export declare const collections: {
|
|
|
2573
2602
|
};
|
|
2574
2603
|
}, {}>> & {
|
|
2575
2604
|
code: "RESOURCE_NOT_FOUND" | "MALFORMED_INPUT" | "USER_NOT_FOUND" | "ALREADY_ACTIVE_USER" | "INVALID_LINK" | "INVALID_TOKEN";
|
|
2576
|
-
httpStatus: 401 | 403 | 404 | 422;
|
|
2605
|
+
httpStatus: 400 | 401 | 403 | 404 | 422;
|
|
2577
2606
|
message: string;
|
|
2578
2607
|
details: any;
|
|
2579
2608
|
}, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
2580
2609
|
readonly httpStatus: {
|
|
2581
|
-
readonly enum: [404, 403, 401, 422];
|
|
2610
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
2582
2611
|
};
|
|
2583
2612
|
readonly code: {
|
|
2584
2613
|
readonly enum: ["RESOURCE_NOT_FOUND", "MALFORMED_INPUT", "ALREADY_ACTIVE_USER", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND"];
|
|
@@ -2592,7 +2621,7 @@ export declare const collections: {
|
|
|
2592
2621
|
};
|
|
2593
2622
|
}, {}>> & {
|
|
2594
2623
|
code: "RESOURCE_NOT_FOUND" | "MALFORMED_INPUT" | "USER_NOT_FOUND" | "ALREADY_ACTIVE_USER" | "INVALID_LINK" | "INVALID_TOKEN";
|
|
2595
|
-
httpStatus: 401 | 403 | 404 | 422;
|
|
2624
|
+
httpStatus: 400 | 401 | 403 | 404 | 422;
|
|
2596
2625
|
message: string;
|
|
2597
2626
|
details: any;
|
|
2598
2627
|
}, never>>;
|
|
@@ -2733,6 +2762,10 @@ export declare const collections: {
|
|
|
2733
2762
|
readonly type: "string";
|
|
2734
2763
|
readonly format: "date-time";
|
|
2735
2764
|
};
|
|
2765
|
+
readonly activation_timestamp: {
|
|
2766
|
+
readonly type: "string";
|
|
2767
|
+
readonly format: "date-time";
|
|
2768
|
+
};
|
|
2736
2769
|
}, {}>> & {
|
|
2737
2770
|
name: string;
|
|
2738
2771
|
password: string;
|
|
@@ -2745,6 +2778,7 @@ export declare const collections: {
|
|
|
2745
2778
|
picture_file: never;
|
|
2746
2779
|
given_name: never;
|
|
2747
2780
|
family_name: never;
|
|
2781
|
+
activation_timestamp: Date;
|
|
2748
2782
|
}, "picture_file">>, context: Omit<import("@aeriajs/types").Context, "token">) => ({} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
2749
2783
|
readonly _tag: {
|
|
2750
2784
|
readonly const: "Error";
|
|
@@ -2945,6 +2979,10 @@ export declare const collections: {
|
|
|
2945
2979
|
readonly type: "string";
|
|
2946
2980
|
readonly format: "date-time";
|
|
2947
2981
|
};
|
|
2982
|
+
readonly activation_timestamp: {
|
|
2983
|
+
readonly type: "string";
|
|
2984
|
+
readonly format: "date-time";
|
|
2985
|
+
};
|
|
2948
2986
|
};
|
|
2949
2987
|
readonly presets: readonly ["crud", "duplicate"];
|
|
2950
2988
|
readonly layout: {
|
|
@@ -3208,6 +3246,10 @@ export declare const collections: {
|
|
|
3208
3246
|
readonly type: "string";
|
|
3209
3247
|
readonly format: "date-time";
|
|
3210
3248
|
};
|
|
3249
|
+
readonly activation_timestamp: {
|
|
3250
|
+
readonly type: "string";
|
|
3251
|
+
readonly format: "date-time";
|
|
3252
|
+
};
|
|
3211
3253
|
};
|
|
3212
3254
|
readonly presets: readonly ["crud", "duplicate"];
|
|
3213
3255
|
readonly layout: {
|
|
@@ -3593,6 +3635,10 @@ export declare const collections: {
|
|
|
3593
3635
|
readonly type: "string";
|
|
3594
3636
|
readonly format: "date-time";
|
|
3595
3637
|
};
|
|
3638
|
+
readonly activation_timestamp: {
|
|
3639
|
+
readonly type: "string";
|
|
3640
|
+
readonly format: "date-time";
|
|
3641
|
+
};
|
|
3596
3642
|
};
|
|
3597
3643
|
readonly presets: readonly ["crud", "duplicate"];
|
|
3598
3644
|
readonly layout: {
|
|
@@ -3778,6 +3824,10 @@ export declare const collections: {
|
|
|
3778
3824
|
readonly type: "string";
|
|
3779
3825
|
readonly format: "date-time";
|
|
3780
3826
|
};
|
|
3827
|
+
readonly activation_timestamp: {
|
|
3828
|
+
readonly type: "string";
|
|
3829
|
+
readonly format: "date-time";
|
|
3830
|
+
};
|
|
3781
3831
|
};
|
|
3782
3832
|
readonly presets: readonly ["crud", "duplicate"];
|
|
3783
3833
|
readonly layout: {
|
|
@@ -4006,10 +4056,10 @@ export declare const collections: {
|
|
|
4006
4056
|
readonly required: readonly ["httpStatus", "code"];
|
|
4007
4057
|
readonly properties: {
|
|
4008
4058
|
readonly httpStatus: {
|
|
4009
|
-
readonly enum: [400, 403];
|
|
4059
|
+
readonly enum: [400, 403, 404];
|
|
4010
4060
|
};
|
|
4011
4061
|
readonly code: {
|
|
4012
|
-
readonly enum: ["INVALID_LINK", "ALREADY_ACTIVE_USER"];
|
|
4062
|
+
readonly enum: ["INVALID_LINK", "USER_NOT_FOUND", "ALREADY_ACTIVE_USER"];
|
|
4013
4063
|
};
|
|
4014
4064
|
readonly message: {
|
|
4015
4065
|
readonly type: "string";
|
|
@@ -4025,10 +4075,10 @@ export declare const collections: {
|
|
|
4025
4075
|
result: undefined;
|
|
4026
4076
|
error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4027
4077
|
readonly httpStatus: {
|
|
4028
|
-
readonly enum: [400, 403];
|
|
4078
|
+
readonly enum: [400, 403, 404];
|
|
4029
4079
|
};
|
|
4030
4080
|
readonly code: {
|
|
4031
|
-
readonly enum: ["INVALID_LINK", "ALREADY_ACTIVE_USER"];
|
|
4081
|
+
readonly enum: ["INVALID_LINK", "USER_NOT_FOUND", "ALREADY_ACTIVE_USER"];
|
|
4032
4082
|
};
|
|
4033
4083
|
readonly message: {
|
|
4034
4084
|
readonly type: "string";
|
|
@@ -4038,16 +4088,16 @@ export declare const collections: {
|
|
|
4038
4088
|
readonly additionalProperties: true;
|
|
4039
4089
|
};
|
|
4040
4090
|
}, {}>> & {
|
|
4041
|
-
code: "ALREADY_ACTIVE_USER" | "INVALID_LINK";
|
|
4042
|
-
httpStatus: 400 | 403;
|
|
4091
|
+
code: "USER_NOT_FOUND" | "ALREADY_ACTIVE_USER" | "INVALID_LINK";
|
|
4092
|
+
httpStatus: 400 | 403 | 404;
|
|
4043
4093
|
message: string;
|
|
4044
4094
|
details: any;
|
|
4045
4095
|
}, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4046
4096
|
readonly httpStatus: {
|
|
4047
|
-
readonly enum: [400, 403];
|
|
4097
|
+
readonly enum: [400, 403, 404];
|
|
4048
4098
|
};
|
|
4049
4099
|
readonly code: {
|
|
4050
|
-
readonly enum: ["INVALID_LINK", "ALREADY_ACTIVE_USER"];
|
|
4100
|
+
readonly enum: ["INVALID_LINK", "USER_NOT_FOUND", "ALREADY_ACTIVE_USER"];
|
|
4051
4101
|
};
|
|
4052
4102
|
readonly message: {
|
|
4053
4103
|
readonly type: "string";
|
|
@@ -4057,8 +4107,8 @@ export declare const collections: {
|
|
|
4057
4107
|
readonly additionalProperties: true;
|
|
4058
4108
|
};
|
|
4059
4109
|
}, {}>> & {
|
|
4060
|
-
code: "ALREADY_ACTIVE_USER" | "INVALID_LINK";
|
|
4061
|
-
httpStatus: 400 | 403;
|
|
4110
|
+
code: "USER_NOT_FOUND" | "ALREADY_ACTIVE_USER" | "INVALID_LINK";
|
|
4111
|
+
httpStatus: 400 | 403 | 404;
|
|
4062
4112
|
message: string;
|
|
4063
4113
|
details: any;
|
|
4064
4114
|
}, never>>;
|
|
@@ -4170,10 +4220,10 @@ export declare const collections: {
|
|
|
4170
4220
|
readonly required: readonly ["httpStatus", "code"];
|
|
4171
4221
|
readonly properties: {
|
|
4172
4222
|
readonly httpStatus: {
|
|
4173
|
-
readonly enum: [400, 403];
|
|
4223
|
+
readonly enum: [400, 403, 404];
|
|
4174
4224
|
};
|
|
4175
4225
|
readonly code: {
|
|
4176
|
-
readonly enum: ["INVALID_LINK", "ALREADY_ACTIVE_USER"];
|
|
4226
|
+
readonly enum: ["INVALID_LINK", "USER_NOT_FOUND", "ALREADY_ACTIVE_USER"];
|
|
4177
4227
|
};
|
|
4178
4228
|
readonly message: {
|
|
4179
4229
|
readonly type: "string";
|
|
@@ -4189,10 +4239,10 @@ export declare const collections: {
|
|
|
4189
4239
|
result: undefined;
|
|
4190
4240
|
error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4191
4241
|
readonly httpStatus: {
|
|
4192
|
-
readonly enum: [400, 403];
|
|
4242
|
+
readonly enum: [400, 403, 404];
|
|
4193
4243
|
};
|
|
4194
4244
|
readonly code: {
|
|
4195
|
-
readonly enum: ["INVALID_LINK", "ALREADY_ACTIVE_USER"];
|
|
4245
|
+
readonly enum: ["INVALID_LINK", "USER_NOT_FOUND", "ALREADY_ACTIVE_USER"];
|
|
4196
4246
|
};
|
|
4197
4247
|
readonly message: {
|
|
4198
4248
|
readonly type: "string";
|
|
@@ -4202,16 +4252,16 @@ export declare const collections: {
|
|
|
4202
4252
|
readonly additionalProperties: true;
|
|
4203
4253
|
};
|
|
4204
4254
|
}, {}>> & {
|
|
4205
|
-
code: "ALREADY_ACTIVE_USER" | "INVALID_LINK";
|
|
4206
|
-
httpStatus: 400 | 403;
|
|
4255
|
+
code: "USER_NOT_FOUND" | "ALREADY_ACTIVE_USER" | "INVALID_LINK";
|
|
4256
|
+
httpStatus: 400 | 403 | 404;
|
|
4207
4257
|
message: string;
|
|
4208
4258
|
details: any;
|
|
4209
4259
|
}, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4210
4260
|
readonly httpStatus: {
|
|
4211
|
-
readonly enum: [400, 403];
|
|
4261
|
+
readonly enum: [400, 403, 404];
|
|
4212
4262
|
};
|
|
4213
4263
|
readonly code: {
|
|
4214
|
-
readonly enum: ["INVALID_LINK", "ALREADY_ACTIVE_USER"];
|
|
4264
|
+
readonly enum: ["INVALID_LINK", "USER_NOT_FOUND", "ALREADY_ACTIVE_USER"];
|
|
4215
4265
|
};
|
|
4216
4266
|
readonly message: {
|
|
4217
4267
|
readonly type: "string";
|
|
@@ -4221,8 +4271,8 @@ export declare const collections: {
|
|
|
4221
4271
|
readonly additionalProperties: true;
|
|
4222
4272
|
};
|
|
4223
4273
|
}, {}>> & {
|
|
4224
|
-
code: "ALREADY_ACTIVE_USER" | "INVALID_LINK";
|
|
4225
|
-
httpStatus: 400 | 403;
|
|
4274
|
+
code: "USER_NOT_FOUND" | "ALREADY_ACTIVE_USER" | "INVALID_LINK";
|
|
4275
|
+
httpStatus: 400 | 403 | 404;
|
|
4226
4276
|
message: string;
|
|
4227
4277
|
details: any;
|
|
4228
4278
|
}, never>>;
|
|
@@ -4357,10 +4407,10 @@ export declare const collections: {
|
|
|
4357
4407
|
readonly required: readonly ["httpStatus", "code"];
|
|
4358
4408
|
readonly properties: {
|
|
4359
4409
|
readonly httpStatus: {
|
|
4360
|
-
readonly enum: [403];
|
|
4410
|
+
readonly enum: [403, 404];
|
|
4361
4411
|
};
|
|
4362
4412
|
readonly code: {
|
|
4363
|
-
readonly enum: ["USER_NOT_ACTIVE"];
|
|
4413
|
+
readonly enum: ["USER_NOT_ACTIVE", "USER_NOT_FOUND"];
|
|
4364
4414
|
};
|
|
4365
4415
|
readonly message: {
|
|
4366
4416
|
readonly type: "string";
|
|
@@ -4376,10 +4426,10 @@ export declare const collections: {
|
|
|
4376
4426
|
result: undefined;
|
|
4377
4427
|
error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4378
4428
|
readonly httpStatus: {
|
|
4379
|
-
readonly enum: [403];
|
|
4429
|
+
readonly enum: [403, 404];
|
|
4380
4430
|
};
|
|
4381
4431
|
readonly code: {
|
|
4382
|
-
readonly enum: ["USER_NOT_ACTIVE"];
|
|
4432
|
+
readonly enum: ["USER_NOT_ACTIVE", "USER_NOT_FOUND"];
|
|
4383
4433
|
};
|
|
4384
4434
|
readonly message: {
|
|
4385
4435
|
readonly type: "string";
|
|
@@ -4389,16 +4439,16 @@ export declare const collections: {
|
|
|
4389
4439
|
readonly additionalProperties: true;
|
|
4390
4440
|
};
|
|
4391
4441
|
}, {}>> & {
|
|
4392
|
-
code: "USER_NOT_ACTIVE";
|
|
4393
|
-
httpStatus: 403;
|
|
4442
|
+
code: "USER_NOT_FOUND" | "USER_NOT_ACTIVE";
|
|
4443
|
+
httpStatus: 403 | 404;
|
|
4394
4444
|
message: string;
|
|
4395
4445
|
details: any;
|
|
4396
4446
|
}, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4397
4447
|
readonly httpStatus: {
|
|
4398
|
-
readonly enum: [403];
|
|
4448
|
+
readonly enum: [403, 404];
|
|
4399
4449
|
};
|
|
4400
4450
|
readonly code: {
|
|
4401
|
-
readonly enum: ["USER_NOT_ACTIVE"];
|
|
4451
|
+
readonly enum: ["USER_NOT_ACTIVE", "USER_NOT_FOUND"];
|
|
4402
4452
|
};
|
|
4403
4453
|
readonly message: {
|
|
4404
4454
|
readonly type: "string";
|
|
@@ -4408,8 +4458,8 @@ export declare const collections: {
|
|
|
4408
4458
|
readonly additionalProperties: true;
|
|
4409
4459
|
};
|
|
4410
4460
|
}, {}>> & {
|
|
4411
|
-
code: "USER_NOT_ACTIVE";
|
|
4412
|
-
httpStatus: 403;
|
|
4461
|
+
code: "USER_NOT_FOUND" | "USER_NOT_ACTIVE";
|
|
4462
|
+
httpStatus: 403 | 404;
|
|
4413
4463
|
message: string;
|
|
4414
4464
|
details: any;
|
|
4415
4465
|
}, never>>;
|
|
@@ -4521,10 +4571,10 @@ export declare const collections: {
|
|
|
4521
4571
|
readonly required: readonly ["httpStatus", "code"];
|
|
4522
4572
|
readonly properties: {
|
|
4523
4573
|
readonly httpStatus: {
|
|
4524
|
-
readonly enum: [403];
|
|
4574
|
+
readonly enum: [403, 404];
|
|
4525
4575
|
};
|
|
4526
4576
|
readonly code: {
|
|
4527
|
-
readonly enum: ["USER_NOT_ACTIVE"];
|
|
4577
|
+
readonly enum: ["USER_NOT_ACTIVE", "USER_NOT_FOUND"];
|
|
4528
4578
|
};
|
|
4529
4579
|
readonly message: {
|
|
4530
4580
|
readonly type: "string";
|
|
@@ -4540,10 +4590,10 @@ export declare const collections: {
|
|
|
4540
4590
|
result: undefined;
|
|
4541
4591
|
error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4542
4592
|
readonly httpStatus: {
|
|
4543
|
-
readonly enum: [403];
|
|
4593
|
+
readonly enum: [403, 404];
|
|
4544
4594
|
};
|
|
4545
4595
|
readonly code: {
|
|
4546
|
-
readonly enum: ["USER_NOT_ACTIVE"];
|
|
4596
|
+
readonly enum: ["USER_NOT_ACTIVE", "USER_NOT_FOUND"];
|
|
4547
4597
|
};
|
|
4548
4598
|
readonly message: {
|
|
4549
4599
|
readonly type: "string";
|
|
@@ -4553,16 +4603,16 @@ export declare const collections: {
|
|
|
4553
4603
|
readonly additionalProperties: true;
|
|
4554
4604
|
};
|
|
4555
4605
|
}, {}>> & {
|
|
4556
|
-
code: "USER_NOT_ACTIVE";
|
|
4557
|
-
httpStatus: 403;
|
|
4606
|
+
code: "USER_NOT_FOUND" | "USER_NOT_ACTIVE";
|
|
4607
|
+
httpStatus: 403 | 404;
|
|
4558
4608
|
message: string;
|
|
4559
4609
|
details: any;
|
|
4560
4610
|
}, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4561
4611
|
readonly httpStatus: {
|
|
4562
|
-
readonly enum: [403];
|
|
4612
|
+
readonly enum: [403, 404];
|
|
4563
4613
|
};
|
|
4564
4614
|
readonly code: {
|
|
4565
|
-
readonly enum: ["USER_NOT_ACTIVE"];
|
|
4615
|
+
readonly enum: ["USER_NOT_ACTIVE", "USER_NOT_FOUND"];
|
|
4566
4616
|
};
|
|
4567
4617
|
readonly message: {
|
|
4568
4618
|
readonly type: "string";
|
|
@@ -4572,8 +4622,8 @@ export declare const collections: {
|
|
|
4572
4622
|
readonly additionalProperties: true;
|
|
4573
4623
|
};
|
|
4574
4624
|
}, {}>> & {
|
|
4575
|
-
code: "USER_NOT_ACTIVE";
|
|
4576
|
-
httpStatus: 403;
|
|
4625
|
+
code: "USER_NOT_FOUND" | "USER_NOT_ACTIVE";
|
|
4626
|
+
httpStatus: 403 | 404;
|
|
4577
4627
|
message: string;
|
|
4578
4628
|
details: any;
|
|
4579
4629
|
}, never>>;
|
|
@@ -4701,7 +4751,7 @@ export declare const collections: {
|
|
|
4701
4751
|
readonly required: readonly ["httpStatus", "code"];
|
|
4702
4752
|
readonly properties: {
|
|
4703
4753
|
readonly httpStatus: {
|
|
4704
|
-
readonly enum: [404, 403, 401, 422];
|
|
4754
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
4705
4755
|
};
|
|
4706
4756
|
readonly code: {
|
|
4707
4757
|
readonly enum: ["MALFORMED_INPUT", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND", "USER_NOT_ACTIVE"];
|
|
@@ -4720,7 +4770,7 @@ export declare const collections: {
|
|
|
4720
4770
|
result: undefined;
|
|
4721
4771
|
error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4722
4772
|
readonly httpStatus: {
|
|
4723
|
-
readonly enum: [404, 403, 401, 422];
|
|
4773
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
4724
4774
|
};
|
|
4725
4775
|
readonly code: {
|
|
4726
4776
|
readonly enum: ["MALFORMED_INPUT", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND", "USER_NOT_ACTIVE"];
|
|
@@ -4734,12 +4784,12 @@ export declare const collections: {
|
|
|
4734
4784
|
};
|
|
4735
4785
|
}, {}>> & {
|
|
4736
4786
|
code: "MALFORMED_INPUT" | "USER_NOT_FOUND" | "INVALID_LINK" | "INVALID_TOKEN" | "USER_NOT_ACTIVE";
|
|
4737
|
-
httpStatus: 401 | 403 | 404 | 422;
|
|
4787
|
+
httpStatus: 400 | 401 | 403 | 404 | 422;
|
|
4738
4788
|
message: string;
|
|
4739
4789
|
details: any;
|
|
4740
4790
|
}, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4741
4791
|
readonly httpStatus: {
|
|
4742
|
-
readonly enum: [404, 403, 401, 422];
|
|
4792
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
4743
4793
|
};
|
|
4744
4794
|
readonly code: {
|
|
4745
4795
|
readonly enum: ["MALFORMED_INPUT", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND", "USER_NOT_ACTIVE"];
|
|
@@ -4753,7 +4803,7 @@ export declare const collections: {
|
|
|
4753
4803
|
};
|
|
4754
4804
|
}, {}>> & {
|
|
4755
4805
|
code: "MALFORMED_INPUT" | "USER_NOT_FOUND" | "INVALID_LINK" | "INVALID_TOKEN" | "USER_NOT_ACTIVE";
|
|
4756
|
-
httpStatus: 401 | 403 | 404 | 422;
|
|
4806
|
+
httpStatus: 400 | 401 | 403 | 404 | 422;
|
|
4757
4807
|
message: string;
|
|
4758
4808
|
details: any;
|
|
4759
4809
|
}, never>>;
|
|
@@ -4867,7 +4917,7 @@ export declare const collections: {
|
|
|
4867
4917
|
readonly required: readonly ["httpStatus", "code"];
|
|
4868
4918
|
readonly properties: {
|
|
4869
4919
|
readonly httpStatus: {
|
|
4870
|
-
readonly enum: [404, 403, 401, 422];
|
|
4920
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
4871
4921
|
};
|
|
4872
4922
|
readonly code: {
|
|
4873
4923
|
readonly enum: ["MALFORMED_INPUT", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND", "USER_NOT_ACTIVE"];
|
|
@@ -4886,7 +4936,7 @@ export declare const collections: {
|
|
|
4886
4936
|
result: undefined;
|
|
4887
4937
|
error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4888
4938
|
readonly httpStatus: {
|
|
4889
|
-
readonly enum: [404, 403, 401, 422];
|
|
4939
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
4890
4940
|
};
|
|
4891
4941
|
readonly code: {
|
|
4892
4942
|
readonly enum: ["MALFORMED_INPUT", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND", "USER_NOT_ACTIVE"];
|
|
@@ -4900,12 +4950,12 @@ export declare const collections: {
|
|
|
4900
4950
|
};
|
|
4901
4951
|
}, {}>> & {
|
|
4902
4952
|
code: "MALFORMED_INPUT" | "USER_NOT_FOUND" | "INVALID_LINK" | "INVALID_TOKEN" | "USER_NOT_ACTIVE";
|
|
4903
|
-
httpStatus: 401 | 403 | 404 | 422;
|
|
4953
|
+
httpStatus: 400 | 401 | 403 | 404 | 422;
|
|
4904
4954
|
message: string;
|
|
4905
4955
|
details: any;
|
|
4906
4956
|
}, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4907
4957
|
readonly httpStatus: {
|
|
4908
|
-
readonly enum: [404, 403, 401, 422];
|
|
4958
|
+
readonly enum: [400, 404, 403, 401, 422];
|
|
4909
4959
|
};
|
|
4910
4960
|
readonly code: {
|
|
4911
4961
|
readonly enum: ["MALFORMED_INPUT", "INVALID_LINK", "INVALID_TOKEN", "USER_NOT_FOUND", "USER_NOT_ACTIVE"];
|
|
@@ -4919,7 +4969,7 @@ export declare const collections: {
|
|
|
4919
4969
|
};
|
|
4920
4970
|
}, {}>> & {
|
|
4921
4971
|
code: "MALFORMED_INPUT" | "USER_NOT_FOUND" | "INVALID_LINK" | "INVALID_TOKEN" | "USER_NOT_ACTIVE";
|
|
4922
|
-
httpStatus: 401 | 403 | 404 | 422;
|
|
4972
|
+
httpStatus: 400 | 401 | 403 | 404 | 422;
|
|
4923
4973
|
message: string;
|
|
4924
4974
|
details: any;
|
|
4925
4975
|
}, never>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.297",
|
|
5
5
|
"description": "## Installation",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"mongodb": "^7.1.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@aeriajs/common": "^0.0.
|
|
45
|
-
"@aeriajs/core": "^0.0.
|
|
46
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
44
|
+
"@aeriajs/common": "^0.0.169",
|
|
45
|
+
"@aeriajs/core": "^0.0.297",
|
|
46
|
+
"@aeriajs/entrypoint": "^0.0.177",
|
|
47
47
|
"@aeriajs/types": "^0.0.141",
|
|
48
|
-
"@aeriajs/validation": "^0.0.
|
|
48
|
+
"@aeriajs/validation": "^0.0.194"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "echo skipping",
|