@fiado/api-invoker 1.3.46 → 1.3.48
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/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -59,3 +59,4 @@ __exportStar(require("./service-business"), exports);
|
|
|
59
59
|
__exportStar(require("./pricelist-business"), exports);
|
|
60
60
|
__exportStar(require("./card"), exports);
|
|
61
61
|
__exportStar(require("./document-image-processor"), exports);
|
|
62
|
+
__exportStar(require("./order-collector-business"), exports);
|
|
@@ -25,7 +25,7 @@ let OrderCollectorApi = class OrderCollectorApi {
|
|
|
25
25
|
this.baseUrl = process.env.ORDER_COLLECTOR_BUSINESS || "";
|
|
26
26
|
}
|
|
27
27
|
async executeOrder(input) {
|
|
28
|
-
const url = `${this.baseUrl}
|
|
28
|
+
const url = `${this.baseUrl}private/execution`;
|
|
29
29
|
return await this.httpRequest.post(url, input);
|
|
30
30
|
}
|
|
31
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.48",
|
|
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",
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class OrderCollectorApi implements IOrderCollectorApi {
|
|
|
14
14
|
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) { }
|
|
15
15
|
|
|
16
16
|
async executeOrder(input: CollectorOrderStatus[]): Promise<any> {
|
|
17
|
-
const url = `${this.baseUrl}
|
|
17
|
+
const url = `${this.baseUrl}private/execution`;
|
|
18
18
|
return await this.httpRequest.post(url, input);
|
|
19
19
|
}
|
|
20
20
|
}
|