@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.
@@ -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
- deleteCognitoUserByDirectoryId(directoryId: string): Promise<void>;
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 deleteCognitoUserByDirectoryId(directoryId) {
22
- const url = `${this.baseUrl}cognito/deleteUser/${directoryId}`;
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
- deleteCognitoUserByDirectoryId(directoryId: string): Promise<void>;
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.2",
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 deleteCognitoUserByDirectoryId(directoryId: string): Promise<void> {
13
- const url = `${this.baseUrl}cognito/deleteUser/${directoryId}`;
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
- deleteCognitoUserByDirectoryId(directoryId: string): Promise<void>;
16
+ deleteCognitoUser(identityId: string): Promise<void>;
17
17
  }