@fiado/api-invoker 1.2.9 → 1.2.11
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.
|
@@ -47,8 +47,12 @@ let CognitoConnectorApi = class CognitoConnectorApi {
|
|
|
47
47
|
return dataResponse;
|
|
48
48
|
}
|
|
49
49
|
async signUpConfirm(input) {
|
|
50
|
-
const url = `${this.baseUrl}cognito/signUp/
|
|
51
|
-
|
|
50
|
+
const url = `${this.baseUrl}cognito/signUp/confirm`;
|
|
51
|
+
const data = {
|
|
52
|
+
username: input.identityId,
|
|
53
|
+
typeOfDirectoryId: input.typeOfDirectoryId
|
|
54
|
+
};
|
|
55
|
+
return await this.httpRequest.post(url, data, { operationName: "postConnectorCognitoSignUpConfirm" });
|
|
52
56
|
}
|
|
53
57
|
async refreshToken(input) {
|
|
54
58
|
const url = `${this.baseUrl}cognito/refreshToken`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@fiado/gateway-adapter": "^1.1.35",
|
|
17
17
|
"@fiado/http-client": "^1.0.2",
|
|
18
18
|
"@fiado/logger": "^1.0.2",
|
|
19
|
-
"@fiado/type-kit": "^1.5.
|
|
19
|
+
"@fiado/type-kit": "^1.5.7",
|
|
20
20
|
"dotenv": "^16.4.5",
|
|
21
21
|
"inversify": "^6.0.2",
|
|
22
22
|
"reflect-metadata": "^0.2.1",
|
|
@@ -57,9 +57,13 @@ export default class CognitoConnectorApi implements ICognitoConnectorApi {
|
|
|
57
57
|
|
|
58
58
|
async signUpConfirm(input: SignUpConfirmRequest): Promise<void> {
|
|
59
59
|
|
|
60
|
-
const url = `${this.baseUrl}cognito/signUp/
|
|
60
|
+
const url = `${this.baseUrl}cognito/signUp/confirm`;
|
|
61
|
+
const data = {
|
|
62
|
+
username: input.identityId,
|
|
63
|
+
typeOfDirectoryId: input.typeOfDirectoryId
|
|
64
|
+
}
|
|
61
65
|
|
|
62
|
-
return await this.httpRequest.post(url,
|
|
66
|
+
return await this.httpRequest.post(url, data, { operationName: "postConnectorCognitoSignUpConfirm" });
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
async refreshToken(input: RefreshTokenRequest): Promise<RefreshTokenResponse> {
|