@pxp-nd/flow 1.0.74 → 1.0.76

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.
@@ -15,6 +15,7 @@
15
15
  * 17-Aug-2023 SP25AUG23 Mercedes Zambrana Add insertEventFlow
16
16
  * 18-Aug-2023 SP25AUG23 Mercedes Zambrana Add removeFlow
17
17
  * 01-Sep-2023 SP08SEP23 Rensi Arteaga add base flow list
18
+ * 16-Sep-2023 SP22SEP23 Mercedes Zambrana Change GET to POST in insertEventFlow
18
19
  * ******************************************************************************
19
20
  */
20
21
  import { EntityManager } from 'typeorm';
@@ -16,6 +16,7 @@
16
16
  * 17-Aug-2023 SP25AUG23 Mercedes Zambrana Add insertEventFlow
17
17
  * 18-Aug-2023 SP25AUG23 Mercedes Zambrana Add removeFlow
18
18
  * 01-Sep-2023 SP08SEP23 Rensi Arteaga add base flow list
19
+ * 16-Sep-2023 SP22SEP23 Mercedes Zambrana Change GET to POST in insertEventFlow
19
20
  * ******************************************************************************
20
21
  */
21
22
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -717,6 +718,7 @@ __decorate([
717
718
  ], Flow.prototype, "saveFlow", null);
718
719
  __decorate([
719
720
  (0, core_1.Get)(),
721
+ (0, core_1.Post)(),
720
722
  (0, core_1.DbSettings)('Orm'),
721
723
  (0, core_1.ReadOnly)(true),
722
724
  (0, core_1.Log)(true),
@@ -163,14 +163,14 @@ let Node = class Node extends core_1.Controller {
163
163
  // this logic is for autocomplete for moment
164
164
  const findFieldInConfigForComponent = async (json, value) => {
165
165
  if (json.formComponent && json.formComponent.type === 'AutoComplete') {
166
- const url = json.formComponent.store.axios.url;
167
- const method = json.formComponent.store.axios.method;
168
- const data = json.formComponent.store.axios.data;
166
+ const url = json.formComponent.store.axios.config.url;
167
+ const method = json.formComponent.store.axios.config.method;
168
+ const data = json.formComponent.store.axios.config.data;
169
169
  const idDD = json.formComponent.store.idDD;
170
170
  const descDD = json.formComponent.store.descDD;
171
171
  const config = {
172
172
  method: method,
173
- url: url,
173
+ url: `http://localhost:${process.env.PORT}${url}`,
174
174
  headers: {
175
175
  'Authorization': '' + process.env.TOKEN_PXP_ND + '',
176
176
  'Content-Type': 'application/json'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",