@fiado/api-invoker 5.146.0 → 5.147.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.
|
@@ -35,7 +35,8 @@ let ReferralBusinessApi = class ReferralBusinessApi {
|
|
|
35
35
|
return await this.httpRequest.get(url);
|
|
36
36
|
}
|
|
37
37
|
async accountOpeningsBySponsor(newDirectoryId, scope) {
|
|
38
|
-
|
|
38
|
+
// referral-business no tiene el id en la ruta: lo lee del body.
|
|
39
|
+
const url = `${this.baseUrl}private/account-openings-by-sponsor`;
|
|
39
40
|
return await this.httpRequest.post(url, { directoryId: newDirectoryId, scope });
|
|
40
41
|
}
|
|
41
42
|
async deleteAgent(directoryId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.147.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",
|
|
@@ -35,7 +35,8 @@ export class ReferralBusinessApi implements IReferralBusinessApi {
|
|
|
35
35
|
|
|
36
36
|
async accountOpeningsBySponsor(newDirectoryId: string, scope: Scope): Promise<FiadoApiResponse<any>> {
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
// referral-business no tiene el id en la ruta: lo lee del body.
|
|
39
|
+
const url = `${this.baseUrl}private/account-openings-by-sponsor`;
|
|
39
40
|
|
|
40
41
|
return await this.httpRequest.post(url, { directoryId: newDirectoryId, scope });
|
|
41
42
|
}
|