@fiado/api-invoker 1.4.2 → 1.4.3
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/bin/cognitoConnector/CognitoConnectorApi.d.ts +1 -1
- package/bin/cognitoConnector/CognitoConnectorApi.js +2 -2
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.d.ts +1 -1
- package/package.json +1 -1
- package/src/cognitoConnector/CognitoConnectorApi.ts +2 -2
- package/src/cognitoConnector/interfaces/ICognitoConnectorApi.ts +1 -1
|
@@ -5,7 +5,7 @@ export default class CognitoConnectorApi implements ICognitoConnectorApi {
|
|
|
5
5
|
private httpRequest;
|
|
6
6
|
private readonly baseUrl;
|
|
7
7
|
constructor(httpRequest: IHttpRequest);
|
|
8
|
-
|
|
8
|
+
deleteCognitoUser(identityId: string): Promise<void>;
|
|
9
9
|
signUp(input: SignUpRequest): Promise<SignUpResponse>;
|
|
10
10
|
signIn(input: SignInRequest): Promise<SignInResponse>;
|
|
11
11
|
getUser(input: GetUserRequest): Promise<GetUserResponse>;
|
|
@@ -18,8 +18,8 @@ let CognitoConnectorApi = class CognitoConnectorApi {
|
|
|
18
18
|
this.httpRequest = httpRequest;
|
|
19
19
|
this.baseUrl = process.env.INDETITY_SERVER_BASE_URL || "";
|
|
20
20
|
}
|
|
21
|
-
async
|
|
22
|
-
const url = `${this.baseUrl}cognito/deleteUser/${
|
|
21
|
+
async deleteCognitoUser(identityId) {
|
|
22
|
+
const url = `${this.baseUrl}cognito/deleteUser/${identityId}`;
|
|
23
23
|
return await this.httpRequest.delete(url);
|
|
24
24
|
}
|
|
25
25
|
async signUp(input) {
|
|
@@ -9,5 +9,5 @@ export interface ICognitoConnectorApi {
|
|
|
9
9
|
changePassword(input: SetPasswordRequest): Promise<void>;
|
|
10
10
|
respondToNewPasswordChallenge(input: RespondToAuthChallengeRequest): Promise<SignInResponse>;
|
|
11
11
|
resetPassword(username: string, typeOfDirectoryId: TypeOfDirectoryId): Promise<void>;
|
|
12
|
-
|
|
12
|
+
deleteCognitoUser(identityId: string): Promise<void>;
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -9,8 +9,8 @@ export default class CognitoConnectorApi implements ICognitoConnectorApi {
|
|
|
9
9
|
private readonly baseUrl = process.env.INDETITY_SERVER_BASE_URL || "";
|
|
10
10
|
|
|
11
11
|
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) { }
|
|
12
|
-
async
|
|
13
|
-
const url = `${this.baseUrl}cognito/deleteUser/${
|
|
12
|
+
async deleteCognitoUser(identityId: string): Promise<void> {
|
|
13
|
+
const url = `${this.baseUrl}cognito/deleteUser/${identityId}`;
|
|
14
14
|
return await this.httpRequest.delete(url);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -13,5 +13,5 @@ export interface ICognitoConnectorApi {
|
|
|
13
13
|
changePassword(input: SetPasswordRequest): Promise<void>;
|
|
14
14
|
respondToNewPasswordChallenge(input: RespondToAuthChallengeRequest): Promise<SignInResponse>;
|
|
15
15
|
resetPassword(username: string, typeOfDirectoryId: TypeOfDirectoryId): Promise<void>;
|
|
16
|
-
|
|
16
|
+
deleteCognitoUser(identityId: string): Promise<void>;
|
|
17
17
|
}
|