@fiado/api-invoker 5.89.0 → 5.90.0
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/onboarding-business/api/OnboardingBusinessApi.d.ts +1 -0
- package/bin/onboarding-business/api/OnboardingBusinessApi.js +10 -0
- package/bin/onboarding-business/api/interfaces/IOnboardingBusinessApi.d.ts +5 -0
- package/package.json +1 -1
- package/src/onboarding-business/api/OnboardingBusinessApi.ts +11 -0
- package/src/onboarding-business/api/interfaces/IOnboardingBusinessApi.ts +6 -0
|
@@ -117,6 +117,16 @@ let OnboardingBusinessApi = class OnboardingBusinessApi {
|
|
|
117
117
|
const url = `${this.baseUrl}private/issuance-readiness/${params.directoryId}?side=${encodeURIComponent(params.side)}`;
|
|
118
118
|
return await this.httpRequest.get(`${url}`);
|
|
119
119
|
}
|
|
120
|
+
//**
|
|
121
|
+
// Function: getSteps
|
|
122
|
+
// Description: Pasos y estado de cuentas del onboarding de un directorio (motor por scope).
|
|
123
|
+
// Parameters: directoryId
|
|
124
|
+
// Return: { steps, accounts }
|
|
125
|
+
// **/
|
|
126
|
+
async getSteps(directoryId) {
|
|
127
|
+
const url = `${this.baseUrl}private/steps/${directoryId}`;
|
|
128
|
+
return await this.httpRequest.get(`${url}`);
|
|
129
|
+
}
|
|
120
130
|
};
|
|
121
131
|
OnboardingBusinessApi = __decorate([
|
|
122
132
|
injectable(),
|
|
@@ -43,4 +43,9 @@ export interface IOnboardingBusinessApi {
|
|
|
43
43
|
directoryId: string;
|
|
44
44
|
side: string;
|
|
45
45
|
}): Promise<any>;
|
|
46
|
+
/**
|
|
47
|
+
* Pasos y estado de cuentas del onboarding de un directorio: `{ steps, accounts }`, el mismo
|
|
48
|
+
* motor que `GET /steps` de la app. `accounts[].status === "OPEN"` dice qué lado ya abrió.
|
|
49
|
+
*/
|
|
50
|
+
getSteps(directoryId: string): Promise<any>;
|
|
46
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.90.0",
|
|
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
|
"type": "module",
|
|
6
6
|
"main": "bin/index.js",
|
|
@@ -119,6 +119,17 @@ export default class OnboardingBusinessApi implements IOnboardingBusinessApi {
|
|
|
119
119
|
return await this.httpRequest.get(`${url}`);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
//**
|
|
123
|
+
// Function: getSteps
|
|
124
|
+
// Description: Pasos y estado de cuentas del onboarding de un directorio (motor por scope).
|
|
125
|
+
// Parameters: directoryId
|
|
126
|
+
// Return: { steps, accounts }
|
|
127
|
+
// **/
|
|
128
|
+
async getSteps(directoryId: string): Promise<any> {
|
|
129
|
+
const url = `${this.baseUrl}private/steps/${directoryId}`;
|
|
130
|
+
return await this.httpRequest.get(`${url}`);
|
|
131
|
+
}
|
|
132
|
+
|
|
122
133
|
}
|
|
123
134
|
|
|
124
135
|
|
|
@@ -26,4 +26,10 @@ export interface IOnboardingBusinessApi {
|
|
|
26
26
|
* `side` es "MEX" o "USA".
|
|
27
27
|
*/
|
|
28
28
|
issuanceReadiness(params: { directoryId: string; side: string }): Promise<any>
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Pasos y estado de cuentas del onboarding de un directorio: `{ steps, accounts }`, el mismo
|
|
32
|
+
* motor que `GET /steps` de la app. `accounts[].status === "OPEN"` dice qué lado ya abrió.
|
|
33
|
+
*/
|
|
34
|
+
getSteps(directoryId: string): Promise<any>
|
|
29
35
|
}
|