@fiado/api-invoker 1.1.67 → 1.1.68
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.
|
@@ -19,7 +19,7 @@ let TransactionApi = class TransactionApi {
|
|
|
19
19
|
this.baseUrl = process.env.TRANSACTION_LAMBDA_URL || "";
|
|
20
20
|
}
|
|
21
21
|
async getTransactionDetailById(params) {
|
|
22
|
-
const url = `${this.baseUrl}/private/transaction
|
|
22
|
+
const url = `${this.baseUrl}/private/transaction/${params.source}/${params.id}`;
|
|
23
23
|
return await this.httpRequest.get(url);
|
|
24
24
|
}
|
|
25
25
|
async getTransactionsByDirectoryIdAndSource(params) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.68",
|
|
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,10 +12,10 @@ export default class TransactionApi implements ITransactionApi {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
async getTransactionDetailById(params: { id: string; source: TransactionSourceEnum; }): Promise<any> {
|
|
15
|
-
const url: string = `${this.baseUrl}/private/transaction
|
|
15
|
+
const url: string = `${this.baseUrl}/private/transaction/${params.source}/${params.id}`;
|
|
16
16
|
return await this.httpRequest.get(url);
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
async getTransactionsByDirectoryIdAndSource(params: { directoryId: string; source: TransactionSourceEnum; index?: string; pageSize?: number; }): Promise<any> {
|
|
20
20
|
|
|
21
21
|
let queryParams = [];
|