dcos-core-monalisav2-latam 1.0.2 → 1.1.0

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/index.js CHANGED
@@ -347,4 +347,6 @@ const clientConstructor = {
347
347
  clients_product_queue,
348
348
  };
349
349
 
350
- module.exports = { ...clientConstructor, ...clientFuntions };
350
+ const authservicesall = require("dcos-sls-auth-app");
351
+
352
+ module.exports = { ...clientConstructor, ...clientFuntions, ...authservicesall };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcos-core-monalisav2-latam",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "devDependencies": {
5
5
  },
6
6
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  "csv": "^6.3.0",
31
31
  "csv-parser": "^3.0.0",
32
32
  "csvtojson": "^2.0.10",
33
- "dcos-sls-auth-app": "^1.0.1",
33
+ "dcos-sls-auth-app": "1.0.x",
34
34
  "dotenv": "^10.0.0",
35
35
  "ftp": "^0.3.10",
36
36
  "json-2-csv": "^5.5.1",
@@ -42,7 +42,7 @@
42
42
  "moment": "^2.30.1",
43
43
  "node-cron": "^3.0.0",
44
44
  "node-fetch": "^3.2.10",
45
- "node-flow-br": "^1.0.9",
45
+ "node-flow-br-2": "1.0.x",
46
46
  "nodemailer": "^6.8.0",
47
47
  "parse-multipart": "^1.0.4",
48
48
  "ssh2-sftp-client": "^12.0.0",
@@ -7,7 +7,7 @@ const getHandlers = require("../../common/utils/cron-ftp-get");
7
7
  const sftp_schemas_file = require("../sftpIntegrations/schemas/record-schema");
8
8
  const credential_schema = require("../sftpIntegrations/schemas/credential-schema");
9
9
  const handle_schemas = require("../schemas/vtex/handle-schemas");
10
- const clientauthadmin = require("../../auth/handler");
10
+ const clientauthadmin = require("dcos-sls-auth-app");
11
11
 
12
12
  module.exports.handler = async (req, res) => {
13
13
  const resource = req?.resource ?? null;
@@ -45,7 +45,7 @@ module.exports.consumer = async (event, context) => {
45
45
  try {
46
46
  let { body } = event;
47
47
  body = JSON.parse(body);
48
- await this.handleConsumer(ACCOUNTNAME, { process: processName, params: body });
48
+ return this.handleConsumer(ACCOUNTNAME, { process: processName, params: body });
49
49
  } catch (ex) {
50
50
  return ApiResponse.response(400, ex.message ?? 'Error in request');
51
51
  }
@@ -8,7 +8,7 @@ const BRUNO_LOCAL = process?.env?.DB_CONNECTION == 'bruno_local' ? true : false;
8
8
  /**
9
9
  * Carga controladores
10
10
  */
11
- const {InputsUpdatesController} = require('node-flow-br')
11
+ const {InputsUpdatesController} = require('node-flow-br-2')
12
12
  const AccountData = require("../../entities/account");
13
13
 
14
14
  const setPerBrunoLocal= (account, envLocal=null, pathLocal=null) =>{
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Carga controladores
4
4
  */
5
- const {SettingsController, ActionsTypesController, NodesFlowsController, SourcesController} = require('node-flow-br');
5
+ const {SettingsController, ActionsTypesController, NodesFlowsController, SourcesController} = require('node-flow-br-2');
6
6
  const AccountData = require("../../entities/account");
7
7
  const BRUNO_LOCAL = process?.env?.DB_CONNECTION == 'bruno_local' ? true : false;
8
8
 
@@ -1,3 +0,0 @@
1
- const authservicesall = require("dcos-sls-auth-app");
2
-
3
- module.exports = authservicesall;