@fiado/api-invoker 1.3.88 → 1.3.89
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.
|
@@ -2,7 +2,7 @@ import { IHttpRequest } from "@fiado/http-client";
|
|
|
2
2
|
import { ITransactionApi } from "./interfaces/ITransactionApi";
|
|
3
3
|
import { TransactionGetResponse, TransactionSourceEnum } from "@fiado/type-kit/bin/transaction";
|
|
4
4
|
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
5
|
-
import
|
|
5
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
6
6
|
export default class TransactionApi implements ITransactionApi {
|
|
7
7
|
private httpRequest;
|
|
8
8
|
private readonly baseUrl;
|
|
@@ -51,5 +51,5 @@ export default class TransactionApi implements ITransactionApi {
|
|
|
51
51
|
pageSize?: string;
|
|
52
52
|
startDate?: string;
|
|
53
53
|
endDate?: string;
|
|
54
|
-
}): Promise<
|
|
54
|
+
}): Promise<FiadoApiResponse<TransactionGetResponse>>;
|
|
55
55
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
2
2
|
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
3
3
|
import { TransactionGetResponse, TransactionSourceEnum } from "@fiado/type-kit/bin/transaction";
|
|
4
4
|
export interface ITransactionApi {
|
|
@@ -46,5 +46,5 @@ export interface ITransactionApi {
|
|
|
46
46
|
pageSize?: string;
|
|
47
47
|
startDate?: string;
|
|
48
48
|
endDate?: string;
|
|
49
|
-
}): Promise<
|
|
49
|
+
}): Promise<FiadoApiResponse<TransactionGetResponse>>;
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.89",
|
|
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
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -4,6 +4,7 @@ import { ITransactionApi } from "./interfaces/ITransactionApi";
|
|
|
4
4
|
import { TransactionGetResponse, TransactionSourceEnum } from "@fiado/type-kit/bin/transaction";
|
|
5
5
|
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
6
6
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
7
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
@injectable()
|
|
@@ -102,7 +103,7 @@ export default class TransactionApi implements ITransactionApi {
|
|
|
102
103
|
startDate?: string,
|
|
103
104
|
endDate?: string
|
|
104
105
|
}
|
|
105
|
-
): Promise<
|
|
106
|
+
): Promise<FiadoApiResponse<TransactionGetResponse>> {
|
|
106
107
|
|
|
107
108
|
|
|
108
109
|
let queryParams = [];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
2
3
|
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
3
4
|
import { TransactionGetResponse, TransactionSourceEnum } from "@fiado/type-kit/bin/transaction";
|
|
4
5
|
|
|
@@ -66,5 +67,5 @@ export interface ITransactionApi {
|
|
|
66
67
|
startDate?: string,
|
|
67
68
|
endDate?: string,
|
|
68
69
|
}
|
|
69
|
-
): Promise<
|
|
70
|
+
): Promise<FiadoApiResponse<TransactionGetResponse>>;
|
|
70
71
|
}
|