@kumologica/sdk 3.0.26 → 3.0.27-beta2

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "productName": "Kumologica Designer",
4
4
  "copyright": "Copyright 2020 Kumologica Pty Ltd, All Rights Reserved.",
5
5
  "author": "Kumologica Pty Ltd <contact@kumologica.com>",
6
- "version": "3.0.26",
6
+ "version": "3.0.27-beta2",
7
7
  "description": "Kumologica Designer, harnessing Serverless for your cloud integration needs",
8
8
  "main": "src/app/main.js",
9
9
  "files": [
@@ -65,9 +65,9 @@
65
65
  "license": "Proprietary",
66
66
  "dependencies": {
67
67
  "@electron/remote": "^2.0.8",
68
- "@kumologica/builder": "3.0.26",
69
- "@kumologica/devkit": "3.0.26",
70
- "@kumologica/runtime": "3.0.26",
68
+ "@kumologica/builder": "3.0.27-beta2",
69
+ "@kumologica/devkit": "3.0.27-beta2",
70
+ "@kumologica/runtime": "3.0.27-beta2",
71
71
  "adm-zip": "0.4.13",
72
72
  "ajv": "8.10.0",
73
73
  "aws-sdk": "2.513.0",
@@ -1,61 +0,0 @@
1
- exports.command = 'mulesoft';
2
- exports.desc = `Imports mulesoft project as kumologica flow.`;
3
-
4
- exports.builder = {
5
- "mulesoft-project-directory": {
6
- describe: "The directory where mulesoft project is located.",
7
- demandOption: "The nmulesoft project directory is required.",
8
- type: 'string',
9
- alias: 'm',
10
- nargs: 1
11
- },
12
- "kumologica-project-directory": {
13
- describe: "The directory where kumologica project to be created",
14
- demandOption: "The kumologica project directory is required.",
15
- type: 'string',
16
- alias: 'k',
17
- nargs: 1
18
- },
19
- "kumologica-flow-file-name": {
20
- describe: "The name of kumologica flow file to be created, must end with .json extension",
21
- demandOption: "The kumologica flow file name is required.",
22
- type: 'string',
23
- alias: 'f',
24
- nargs: 1
25
- }
26
- }
27
-
28
- function validate(argv) {
29
- const chalk = require('chalk');
30
-
31
- if (!argv["kumologica-flow-file-name"].endsWith('.json')) {
32
- console.log(`${chalk.redBright("Validation Error: kumologica-flow-file-name must end with .json extension.")}`);
33
- process.exit(1);
34
- }
35
- }
36
- function display(argv) {
37
- console.log('Parameters:');
38
- console.log(' mulesoft-project-directory: %s', argv["mulesoft-project-directory"]||'');
39
- console.log(' kumologica-project-directory: %s', argv["kumologica-project-directory"]||'');
40
- console.log(' kumologica-flow-file-name: %s', argv["kumologica-flow-file-name"]||'');
41
- }
42
-
43
- exports.handler = async function (argv) {
44
- console.log('\nImporting mulesoft project\n');
45
- display(argv);
46
- validate(argv);
47
-
48
- const chalk = require('chalk');
49
-
50
- try {
51
- const { importProject } = require('@kumologica/builder');
52
- await importProject('mulesoft', argv);
53
- console.log(chalk.greenBright('Mulesoft project imported succesfully.'));
54
-
55
- process.exit(0);
56
- } catch (e) {
57
-
58
- console.log(`${chalk.redBright(e.message)}`);
59
- process.exit(1);
60
- }
61
- }
@@ -1,6 +0,0 @@
1
- exports.command = 'import <type>'
2
- exports.desc = 'Imports, converts other projects into kumologica flow'
3
- exports.builder = function (yargs) {
4
- return yargs.commandDir('import-commands')
5
- }
6
- exports.handler = function (argv) {}