@aeriajs/builtins 0.0.257 → 0.0.258
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/authenticate.js +1 -1
- package/dist/collections/user/authenticate.mjs +1 -1
- package/dist/collections/user/index.d.ts +28 -4
- package/dist/collections/user/redefinePassword.d.ts +6 -1
- package/dist/collections/user/redefinePassword.js +6 -1
- package/dist/collections/user/redefinePassword.mjs +6 -1
- package/dist/index.d.ts +28 -4
- package/package.json +2 -2
|
@@ -128,7 +128,7 @@ const authenticate = async (props, context) => {
|
|
|
128
128
|
}
|
|
129
129
|
return types_1.Result.result(await (0, authentication_js_1.successfulAuthentication)(user, context));
|
|
130
130
|
}
|
|
131
|
-
if (typeof props.email !== 'string' || props.password !== 'string') {
|
|
131
|
+
if (typeof props.email !== 'string' || typeof props.password !== 'string') {
|
|
132
132
|
return context.error(types_1.HTTPStatus.Unauthorized, {
|
|
133
133
|
code: authentication_js_1.AuthenticationError.InvalidCredentials,
|
|
134
134
|
});
|
|
@@ -124,7 +124,7 @@ export const authenticate = async (props, context) => {
|
|
|
124
124
|
}
|
|
125
125
|
return Result.result(await successfulAuthentication(user2, context));
|
|
126
126
|
}
|
|
127
|
-
if (typeof props.email !== "string" || props.password !== "string") {
|
|
127
|
+
if (typeof props.email !== "string" || typeof props.password !== "string") {
|
|
128
128
|
return context.error(HTTPStatus.Unauthorized, {
|
|
129
129
|
code: AuthenticationError.InvalidCredentials
|
|
130
130
|
});
|
|
@@ -3761,11 +3761,23 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
|
|
|
3761
3761
|
};
|
|
3762
3762
|
readonly result: {
|
|
3763
3763
|
readonly type: "object";
|
|
3764
|
-
readonly properties: {
|
|
3764
|
+
readonly properties: {
|
|
3765
|
+
readonly userId: {
|
|
3766
|
+
readonly type: "string";
|
|
3767
|
+
readonly format: "objectid";
|
|
3768
|
+
};
|
|
3769
|
+
};
|
|
3765
3770
|
};
|
|
3766
3771
|
}>> & {
|
|
3767
3772
|
_tag: "Result";
|
|
3768
|
-
result: {} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
3773
|
+
result: {} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
3774
|
+
readonly userId: {
|
|
3775
|
+
readonly type: "string";
|
|
3776
|
+
readonly format: "objectid";
|
|
3777
|
+
};
|
|
3778
|
+
}>> & {
|
|
3779
|
+
userId: import("@aeriajs/core").ObjectId;
|
|
3780
|
+
}, never>;
|
|
3769
3781
|
error: undefined;
|
|
3770
3782
|
}, never>) | Promise<({} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
3771
3783
|
readonly _tag: {
|
|
@@ -3912,11 +3924,23 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
|
|
|
3912
3924
|
};
|
|
3913
3925
|
readonly result: {
|
|
3914
3926
|
readonly type: "object";
|
|
3915
|
-
readonly properties: {
|
|
3927
|
+
readonly properties: {
|
|
3928
|
+
readonly userId: {
|
|
3929
|
+
readonly type: "string";
|
|
3930
|
+
readonly format: "objectid";
|
|
3931
|
+
};
|
|
3932
|
+
};
|
|
3916
3933
|
};
|
|
3917
3934
|
}>> & {
|
|
3918
3935
|
_tag: "Result";
|
|
3919
|
-
result: {} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
3936
|
+
result: {} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
3937
|
+
readonly userId: {
|
|
3938
|
+
readonly type: "string";
|
|
3939
|
+
readonly format: "objectid";
|
|
3940
|
+
};
|
|
3941
|
+
}>> & {
|
|
3942
|
+
userId: import("@aeriajs/core").ObjectId;
|
|
3943
|
+
}, never>;
|
|
3920
3944
|
error: undefined;
|
|
3921
3945
|
}, never>)>;
|
|
3922
3946
|
};
|
|
@@ -92,7 +92,12 @@ export declare const redefinePasswordContract: {
|
|
|
92
92
|
};
|
|
93
93
|
readonly result: {
|
|
94
94
|
readonly type: "object";
|
|
95
|
-
readonly properties: {
|
|
95
|
+
readonly properties: {
|
|
96
|
+
readonly userId: {
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
readonly format: "objectid";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
96
101
|
};
|
|
97
102
|
};
|
|
98
103
|
}];
|
package/dist/index.d.ts
CHANGED
|
@@ -4670,11 +4670,23 @@ export declare const collections: {
|
|
|
4670
4670
|
};
|
|
4671
4671
|
readonly result: {
|
|
4672
4672
|
readonly type: "object";
|
|
4673
|
-
readonly properties: {
|
|
4673
|
+
readonly properties: {
|
|
4674
|
+
readonly userId: {
|
|
4675
|
+
readonly type: "string";
|
|
4676
|
+
readonly format: "objectid";
|
|
4677
|
+
};
|
|
4678
|
+
};
|
|
4674
4679
|
};
|
|
4675
4680
|
}>> & {
|
|
4676
4681
|
_tag: "Result";
|
|
4677
|
-
result: {} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4682
|
+
result: {} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4683
|
+
readonly userId: {
|
|
4684
|
+
readonly type: "string";
|
|
4685
|
+
readonly format: "objectid";
|
|
4686
|
+
};
|
|
4687
|
+
}>> & {
|
|
4688
|
+
userId: import("mongodb").ObjectId;
|
|
4689
|
+
}, never>;
|
|
4678
4690
|
error: undefined;
|
|
4679
4691
|
}, never>) | Promise<({} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4680
4692
|
readonly _tag: {
|
|
@@ -4821,11 +4833,23 @@ export declare const collections: {
|
|
|
4821
4833
|
};
|
|
4822
4834
|
readonly result: {
|
|
4823
4835
|
readonly type: "object";
|
|
4824
|
-
readonly properties: {
|
|
4836
|
+
readonly properties: {
|
|
4837
|
+
readonly userId: {
|
|
4838
|
+
readonly type: "string";
|
|
4839
|
+
readonly format: "objectid";
|
|
4840
|
+
};
|
|
4841
|
+
};
|
|
4825
4842
|
};
|
|
4826
4843
|
}>> & {
|
|
4827
4844
|
_tag: "Result";
|
|
4828
|
-
result: {} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4845
|
+
result: {} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
4846
|
+
readonly userId: {
|
|
4847
|
+
readonly type: "string";
|
|
4848
|
+
readonly format: "objectid";
|
|
4849
|
+
};
|
|
4850
|
+
}>> & {
|
|
4851
|
+
userId: import("mongodb").ObjectId;
|
|
4852
|
+
}, never>;
|
|
4829
4853
|
error: undefined;
|
|
4830
4854
|
}, never>)>;
|
|
4831
4855
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.258",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@aeriajs/common": "^0.0.144",
|
|
48
|
-
"@aeriajs/core": "^0.0.
|
|
48
|
+
"@aeriajs/core": "^0.0.258",
|
|
49
49
|
"@aeriajs/entrypoint": "^0.0.149",
|
|
50
50
|
"@aeriajs/types": "^0.0.126",
|
|
51
51
|
"@aeriajs/validation": "^0.0.161"
|