@fiado/api-invoker 1.0.86 → 1.0.87
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/account-beneficiary/AccountBeneficiaryApi.d.ts +1 -1
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.d.ts +1 -1
- package/package.json +1 -1
- package/src/account-beneficiary/AccountBeneficiaryApi.ts +1 -1
- package/src/account-beneficiary/interfaces/IAccountBeneficiaryApi.ts +1 -1
|
@@ -6,5 +6,5 @@ export declare class AccountBeneficiaryApi implements IAccountBeneficiaryApi {
|
|
|
6
6
|
private httpRequest;
|
|
7
7
|
private readonly baseUrl;
|
|
8
8
|
constructor(httpRequest: IHttpRequest);
|
|
9
|
-
create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest): Promise<void>;
|
|
9
|
+
create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest[]): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountBeneficiaryCreateRequest } from "@fiado/type-kit/bin/beneficiary";
|
|
2
2
|
import { CountryId } from "@fiado/type-kit/bin/country";
|
|
3
3
|
export interface IAccountBeneficiaryApi {
|
|
4
|
-
create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest): Promise<void>;
|
|
4
|
+
create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest[]): Promise<void>;
|
|
5
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.87",
|
|
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",
|
|
@@ -12,7 +12,7 @@ export class AccountBeneficiaryApi implements IAccountBeneficiaryApi {
|
|
|
12
12
|
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
async create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest): Promise<void> {
|
|
15
|
+
async create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest[]): Promise<void> {
|
|
16
16
|
const url = `${this.baseUrl}${countryId}/users/${directoryId}`;
|
|
17
17
|
return await this.httpRequest.post(url, input);
|
|
18
18
|
}
|
|
@@ -3,6 +3,6 @@ import { CountryId } from "@fiado/type-kit/bin/country";
|
|
|
3
3
|
|
|
4
4
|
export interface IAccountBeneficiaryApi {
|
|
5
5
|
|
|
6
|
-
create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest): Promise<void>;
|
|
6
|
+
create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest[]): Promise<void>;
|
|
7
7
|
|
|
8
8
|
}
|