@fiado/api-invoker 1.0.43 → 1.0.45
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-fiadoinc/AccountFiadoIncApi.d.ts +2 -1
- package/bin/account-fiadoinc/AccountFiadoIncApi.js +4 -0
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +2 -1
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.d.ts +2 -1
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +4 -0
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.d.ts +2 -1
- package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +3 -1
- package/package.json +2 -2
- package/src/account-fiadoinc/AccountFiadoIncApi.ts +6 -1
- package/src/account-fiadoinc/interfaces/IAccountFiadoIncApi.ts +3 -1
- package/src/account-pagoconfiado/AccountPagoConfiadoApi.ts +6 -1
- package/src/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.ts +3 -1
- package/src/container.config.ts +1 -1
- package/src/pomelo/api/interfaces/IPomeloApi.ts +9 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAccountFiadoIncApi } from "./interfaces/IAccountFiadoIncApi";
|
|
2
|
-
import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
|
|
2
|
+
import { AccountCreateRequest, AccountCreateResponse, GetAccountResponse } from "@fiado/type-kit/bin/account";
|
|
3
3
|
import { IHttpRequest } from "@fiado/http-client";
|
|
4
4
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
5
5
|
export default class AccountFiadoIncApi implements IAccountFiadoIncApi {
|
|
@@ -7,4 +7,5 @@ export default class AccountFiadoIncApi implements IAccountFiadoIncApi {
|
|
|
7
7
|
private readonly baseUrl;
|
|
8
8
|
constructor(httpRequest: IHttpRequest);
|
|
9
9
|
createAccount(data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse>>;
|
|
10
|
+
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse>>;
|
|
10
11
|
}
|
|
@@ -22,6 +22,10 @@ let AccountFiadoIncApi = class AccountFiadoIncApi {
|
|
|
22
22
|
const url = `${this.baseUrl}`;
|
|
23
23
|
return await this.httpRequest.post(url, data);
|
|
24
24
|
}
|
|
25
|
+
async getAccountByDirectoryId(directoryId) {
|
|
26
|
+
const url = `${this.baseUrl}/${directoryId}`;
|
|
27
|
+
return await this.httpRequest.get(url);
|
|
28
|
+
}
|
|
25
29
|
};
|
|
26
30
|
AccountFiadoIncApi = __decorate([
|
|
27
31
|
(0, inversify_1.injectable)(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
|
|
1
|
+
import { AccountCreateRequest, AccountCreateResponse, GetAccountResponse } from "@fiado/type-kit/bin/account";
|
|
2
2
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
3
3
|
export interface IAccountFiadoIncApi {
|
|
4
4
|
createAccount(data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse>>;
|
|
5
|
+
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse>>;
|
|
5
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAccountPagoConfiadoApi } from "./interfaces/IAccountPagoConfiadoApi";
|
|
2
|
-
import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
|
|
2
|
+
import { AccountCreateRequest, AccountCreateResponse, GetAccountResponse } from "@fiado/type-kit/bin/account";
|
|
3
3
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
4
4
|
import { IHttpRequest } from "@fiado/http-client";
|
|
5
5
|
export default class AccountPagoConfiadoApi implements IAccountPagoConfiadoApi {
|
|
@@ -7,4 +7,5 @@ export default class AccountPagoConfiadoApi implements IAccountPagoConfiadoApi {
|
|
|
7
7
|
private readonly baseUrl;
|
|
8
8
|
constructor(httpRequest: IHttpRequest);
|
|
9
9
|
createAccount(data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse>>;
|
|
10
|
+
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse>>;
|
|
10
11
|
}
|
|
@@ -22,6 +22,10 @@ let AccountPagoConfiadoApi = class AccountPagoConfiadoApi {
|
|
|
22
22
|
const url = `${this.baseUrl}`;
|
|
23
23
|
return await this.httpRequest.post(url, data);
|
|
24
24
|
}
|
|
25
|
+
async getAccountByDirectoryId(directoryId) {
|
|
26
|
+
const url = `${this.baseUrl}/${directoryId}`;
|
|
27
|
+
return await this.httpRequest.get(url);
|
|
28
|
+
}
|
|
25
29
|
};
|
|
26
30
|
AccountPagoConfiadoApi = __decorate([
|
|
27
31
|
(0, inversify_1.injectable)(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
|
|
1
|
+
import { AccountCreateRequest, AccountCreateResponse, GetAccountResponse } from "@fiado/type-kit/bin/account";
|
|
2
2
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
3
3
|
export interface IAccountPagoConfiadoApi {
|
|
4
4
|
createAccount(data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse>>;
|
|
5
|
+
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse>>;
|
|
5
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
2
|
-
import { UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
|
|
2
|
+
import { CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
|
|
3
3
|
export interface IPomeloApi {
|
|
4
4
|
updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
|
|
5
5
|
getUserById(externalUserId: string): Promise<any>;
|
|
@@ -11,4 +11,6 @@ export interface IPomeloApi {
|
|
|
11
11
|
blockCard(object: UpdateBankAccountCardRequest): Promise<any>;
|
|
12
12
|
changePin(object: UpdateBankAccountCardRequest): Promise<any>;
|
|
13
13
|
activateCard(object: UpdateBankAccountCardRequest): Promise<any>;
|
|
14
|
+
createShipment(object: CreateBankAccountCardShippingRequest): Promise<any>;
|
|
15
|
+
getShipment(object: GetBankAccountShippingRequest): Promise<any>;
|
|
14
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
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/api-invoker": "^1.0.19",
|
|
17
17
|
"@fiado/gateway-adapter": "^1.0.30",
|
|
18
18
|
"@fiado/http-client": "^1.0.1",
|
|
19
|
-
"@fiado/type-kit": "^1.0.
|
|
19
|
+
"@fiado/type-kit": "^1.0.92",
|
|
20
20
|
"dotenv": "^16.4.5",
|
|
21
21
|
"inversify": "^6.0.2",
|
|
22
22
|
"reflect-metadata": "^0.2.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {IAccountFiadoIncApi} from "./interfaces/IAccountFiadoIncApi";
|
|
2
|
-
import {AccountCreateRequest, AccountCreateResponse} from "@fiado/type-kit/bin/account";
|
|
2
|
+
import {AccountCreateRequest, AccountCreateResponse, GetAccountResponse} from "@fiado/type-kit/bin/account";
|
|
3
3
|
import {inject, injectable} from "inversify";
|
|
4
4
|
import {IHttpRequest} from "@fiado/http-client";
|
|
5
5
|
import {ApiGatewayResponse} from "@fiado/gateway-adapter";
|
|
@@ -15,4 +15,9 @@ export default class AccountFiadoIncApi implements IAccountFiadoIncApi {
|
|
|
15
15
|
const url = `${this.baseUrl}`;
|
|
16
16
|
return await this.httpRequest.post(url, data);
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
async getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse>> {
|
|
20
|
+
const url = `${this.baseUrl}/${directoryId}`;
|
|
21
|
+
return await this.httpRequest.get(url);
|
|
22
|
+
}
|
|
18
23
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {AccountCreateRequest, AccountCreateResponse, GetAccountResponse} from "@fiado/type-kit/bin/account";
|
|
2
2
|
import {ApiGatewayResponse} from "@fiado/gateway-adapter";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export interface IAccountFiadoIncApi {
|
|
6
6
|
createAccount(data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse>>;
|
|
7
|
+
|
|
8
|
+
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse>>;
|
|
7
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {IAccountPagoConfiadoApi} from "./interfaces/IAccountPagoConfiadoApi";
|
|
2
|
-
import {AccountCreateRequest, AccountCreateResponse} from "@fiado/type-kit/bin/account";
|
|
2
|
+
import {AccountCreateRequest, AccountCreateResponse, GetAccountResponse} from "@fiado/type-kit/bin/account";
|
|
3
3
|
import {ApiGatewayResponse} from "@fiado/gateway-adapter";
|
|
4
4
|
import {inject, injectable} from "inversify";
|
|
5
5
|
import {IHttpRequest} from "@fiado/http-client";
|
|
@@ -15,4 +15,9 @@ export default class AccountPagoConfiadoApi implements IAccountPagoConfiadoApi {
|
|
|
15
15
|
const url = `${this.baseUrl}`;
|
|
16
16
|
return await this.httpRequest.post(url, data);
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
async getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse>> {
|
|
20
|
+
const url = `${this.baseUrl}/${directoryId}`;
|
|
21
|
+
return await this.httpRequest.get(url);
|
|
22
|
+
}
|
|
18
23
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {AccountCreateRequest, AccountCreateResponse} from "@fiado/type-kit/bin/account";
|
|
1
|
+
import {AccountCreateRequest, AccountCreateResponse, GetAccountResponse} from "@fiado/type-kit/bin/account";
|
|
2
2
|
import {ApiGatewayResponse} from "@fiado/gateway-adapter";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export interface IAccountPagoConfiadoApi {
|
|
6
6
|
createAccount(data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse>>;
|
|
7
|
+
|
|
8
|
+
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse>>;
|
|
7
9
|
}
|
package/src/container.config.ts
CHANGED
|
@@ -17,7 +17,7 @@ import AccountFiadoSAApi from "./account-fiadosa/AccountFiadoSAApi";
|
|
|
17
17
|
import {ISTPAccountApi} from "./stpAccount";
|
|
18
18
|
import STPAccountApi from "./stpAccount/api/STPAccountApi";
|
|
19
19
|
import {ISessionActivityPublisher, SessionActivityPublisher} from "./sessionActivity";
|
|
20
|
-
import {IExchangeRatesApi} from "./exchangeRates
|
|
20
|
+
import {IExchangeRatesApi} from "./exchangeRates";
|
|
21
21
|
import ExchangeRatesApi from "./exchangeRates/ExchangeRatesApi";
|
|
22
22
|
|
|
23
23
|
export const apiInvokerBindings = new ContainerModule((bind: interfaces.Bind) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
2
|
-
import { UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
|
|
2
|
+
import { CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
|
|
3
3
|
|
|
4
4
|
export interface IPomeloApi {
|
|
5
5
|
|
|
@@ -17,4 +17,12 @@ export interface IPomeloApi {
|
|
|
17
17
|
changePin(object: UpdateBankAccountCardRequest): Promise<any>
|
|
18
18
|
activateCard(object: UpdateBankAccountCardRequest): Promise<any>
|
|
19
19
|
|
|
20
|
+
|
|
21
|
+
// //Shipping
|
|
22
|
+
|
|
23
|
+
createShipment(object: CreateBankAccountCardShippingRequest): Promise<any>
|
|
24
|
+
getShipment(object: GetBankAccountShippingRequest): Promise<any>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
20
28
|
}
|