qcobjects-cli 2.5.103-beta → 2.5.104-beta

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.
Files changed (80) hide show
  1. package/VERSION +1 -1
  2. package/build-esbuild.js +4 -3
  3. package/package.json +55 -21
  4. package/public/browser/com.qcobjects.cli.commands.jira.client_services.js +66 -55
  5. package/public/browser/com.qcobjects.cli.commands.jira.client_services.js.map +2 -2
  6. package/public/browser/com.qcobjects.cli.commands.jira.js +138 -93
  7. package/public/browser/com.qcobjects.cli.commands.jira.js.map +4 -4
  8. package/public/browser/com.qcobjects.cli.commands.js +371 -14
  9. package/public/browser/com.qcobjects.cli.commands.js.map +4 -4
  10. package/public/browser/com.qcobjects.cli.commands.version.js +220 -214
  11. package/public/browser/com.qcobjects.cli.commands.version.js.map +2 -2
  12. package/public/browser/index.js +4042 -13
  13. package/public/browser/index.js.map +4 -4
  14. package/public/browser/org.qcobjects.common.pipelog.js +37 -24
  15. package/public/browser/org.qcobjects.common.pipelog.js.map +2 -2
  16. package/public/browser/org.qcobjects.enterprise.commands.js +108 -117
  17. package/public/browser/org.qcobjects.enterprise.commands.js.map +3 -3
  18. package/public/browser/org.quickcorp.qcobjects.api.client_services.js +64 -55
  19. package/public/browser/org.quickcorp.qcobjects.api.client_services.js.map +2 -2
  20. package/public/browser/org.quickcorp.qcobjects.cli.js +1280 -379
  21. package/public/browser/org.quickcorp.qcobjects.cli.js.map +4 -4
  22. package/public/browser/org.quickcorp.qcobjects.defaultsettings.js +373 -359
  23. package/public/browser/org.quickcorp.qcobjects.defaultsettings.js.map +2 -2
  24. package/public/browser/qcobjects-cli.js +4042 -13
  25. package/public/browser/qcobjects-cli.js.map +4 -4
  26. package/public/cjs/com.qcobjects.cli.commands.cjs +377 -6
  27. package/public/cjs/com.qcobjects.cli.commands.cjs.map +4 -4
  28. package/public/cjs/com.qcobjects.cli.commands.jira.cjs +82 -24
  29. package/public/cjs/com.qcobjects.cli.commands.jira.cjs.map +4 -4
  30. package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs +25 -1
  31. package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs.map +2 -2
  32. package/public/cjs/com.qcobjects.cli.commands.version.cjs +25 -6
  33. package/public/cjs/com.qcobjects.cli.commands.version.cjs.map +2 -2
  34. package/public/cjs/index.cjs +4042 -13
  35. package/public/cjs/index.cjs.map +4 -4
  36. package/public/cjs/org.qcobjects.common.pipelog.cjs +40 -14
  37. package/public/cjs/org.qcobjects.common.pipelog.cjs.map +2 -2
  38. package/public/cjs/org.qcobjects.enterprise.commands.cjs +38 -34
  39. package/public/cjs/org.qcobjects.enterprise.commands.cjs.map +3 -3
  40. package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs +24 -2
  41. package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs.map +2 -2
  42. package/public/cjs/org.quickcorp.qcobjects.cli.cjs +1032 -118
  43. package/public/cjs/org.quickcorp.qcobjects.cli.cjs.map +4 -4
  44. package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs +362 -334
  45. package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs.map +2 -2
  46. package/public/cjs/qcobjects-cli.cjs +4047 -13
  47. package/public/cjs/qcobjects-cli.cjs.map +4 -4
  48. package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs +50 -57
  49. package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs.map +2 -2
  50. package/public/esm/com.qcobjects.cli.commands.jira.mjs +119 -94
  51. package/public/esm/com.qcobjects.cli.commands.jira.mjs.map +4 -4
  52. package/public/esm/com.qcobjects.cli.commands.mjs +357 -16
  53. package/public/esm/com.qcobjects.cli.commands.mjs.map +4 -4
  54. package/public/esm/com.qcobjects.cli.commands.version.mjs +204 -216
  55. package/public/esm/com.qcobjects.cli.commands.version.mjs.map +2 -2
  56. package/public/esm/index.mjs +4043 -13
  57. package/public/esm/index.mjs.map +4 -4
  58. package/public/esm/org.qcobjects.common.pipelog.mjs +21 -26
  59. package/public/esm/org.qcobjects.common.pipelog.mjs.map +2 -2
  60. package/public/esm/org.qcobjects.enterprise.commands.mjs +92 -119
  61. package/public/esm/org.qcobjects.enterprise.commands.mjs.map +3 -3
  62. package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs +48 -57
  63. package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs.map +2 -2
  64. package/public/esm/org.quickcorp.qcobjects.cli.mjs +1266 -380
  65. package/public/esm/org.quickcorp.qcobjects.cli.mjs.map +4 -4
  66. package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs +357 -361
  67. package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs.map +2 -2
  68. package/public/esm/qcobjects-cli.mjs +4046 -14
  69. package/public/esm/qcobjects-cli.mjs.map +4 -4
  70. package/public/index.d.ts +140 -10
  71. package/src/com.qcobjects.cli.commands.jira.client_services.ts +19 -21
  72. package/src/com.qcobjects.cli.commands.jira.ts +11 -34
  73. package/src/com.qcobjects.cli.commands.ts +3 -9
  74. package/src/com.qcobjects.cli.commands.version.ts +1 -9
  75. package/src/org.qcobjects.common.pipelog.ts +18 -15
  76. package/src/org.qcobjects.enterprise.commands.ts +29 -50
  77. package/src/org.quickcorp.qcobjects.api.client_services.ts +1 -4
  78. package/src/org.quickcorp.qcobjects.cli.ts +28 -57
  79. package/src/org.quickcorp.qcobjects.defaultsettings.ts +359 -355
  80. package/src/qcobjects-cli.ts +4 -5
@@ -1,26 +1,52 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
3
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4
20
 
5
21
  // src/org.qcobjects.common.pipelog.ts
22
+ var org_qcobjects_common_pipelog_exports = {};
23
+ __export(org_qcobjects_common_pipelog_exports, {
24
+ PipeLog: () => PipeLog
25
+ });
26
+ module.exports = __toCommonJS(org_qcobjects_common_pipelog_exports);
6
27
  var { Package, InheritClass } = require("qcobjects");
7
- Package("org.qcobjects.common.pipelog", [
8
- class PipeLog extends InheritClass {
9
- static {
10
- __name(this, "PipeLog");
11
- }
12
- pipe(o) {
13
- var _o = [];
14
- for (var k in o) {
15
- if (typeof o[k] !== "undefined" && o[k] !== null && typeof o[k] !== "function") {
16
- try {
17
- _o.push("" + k + "=" + o[k].toString());
18
- } catch (e) {
19
- }
28
+ var PipeLog = class extends InheritClass {
29
+ static {
30
+ __name(this, "PipeLog");
31
+ }
32
+ pipe(o) {
33
+ var _o = [];
34
+ for (var k in o) {
35
+ if (typeof o[k] !== "undefined" && o[k] !== null && typeof o[k] !== "function") {
36
+ try {
37
+ _o.push("" + k + "=" + o[k].toString());
38
+ } catch (e) {
20
39
  }
21
40
  }
22
- return _o.join(" ");
23
41
  }
42
+ return _o.join(" ");
24
43
  }
44
+ };
45
+ Package("org.qcobjects.common.pipelog", [
46
+ PipeLog
25
47
  ]);
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ PipeLog
51
+ });
26
52
  //# sourceMappingURL=org.qcobjects.common.pipelog.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/org.qcobjects.common.pipelog.ts"],
4
- "sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\nconst {Package, InheritClass} = require(\"qcobjects\");\n\nPackage(\"org.qcobjects.common.pipelog\", [\n class PipeLog extends InheritClass {\n\n pipe(o:any) {\n var _o = [];\n for (var k in o) {\n if (typeof o[k] !== \"undefined\" &&\n o[k] !== null &&\n typeof o[k] !== \"function\") {\n try {\n _o.push(\"\" + k + \"=\" + o[k].toString());\n } catch (e) {\n // error logging, do nothing\n }\n }\n }\n return _o.join(\" \");\n }\n\n }\n]);"],
5
- "mappings": ";;;;;AAgCA,IAAM,EAAC,SAAS,aAAY,IAAI,QAAQ,WAAW;AAEnD,QAAQ,gCAAgC;AAAA,EACpC,MAAM,gBAAgB,aAAa;AAAA,IAnCvC,OAmCuC;AAAA;AAAA;AAAA,IAE/B,KAAK,GAAO;AACR,UAAI,KAAK,CAAC;AACV,eAAS,KAAK,GAAG;AACb,YAAI,OAAO,EAAE,CAAC,MAAM,eAChB,EAAE,CAAC,MAAM,QACT,OAAO,EAAE,CAAC,MAAM,YAAY;AAC5B,cAAI;AACA,eAAG,KAAK,KAAK,IAAI,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC;AAAA,UAC1C,SAAS,GAAG;AAAA,UAEZ;AAAA,QACJ;AAAA,MACJ;AACA,aAAO,GAAG,KAAK,GAAG;AAAA,IACtB;AAAA,EAEJ;AACJ,CAAC;",
4
+ "sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\nconst {Package, InheritClass} = require(\"qcobjects\");\n\nexport class PipeLog extends InheritClass {\n\n pipe(o:any) {\n var _o = [];\n for (var k in o) {\n if (typeof o[k] !== \"undefined\" &&\n o[k] !== null &&\n typeof o[k] !== \"function\") {\n try {\n _o.push(\"\" + k + \"=\" + o[k].toString());\n } catch (e) {\n // error logging, do nothing\n }\n }\n }\n return _o.join(\" \");\n }\n\n}\n\n\nPackage(\"org.qcobjects.common.pipelog\", [\n PipeLog\n]);"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCA,IAAM,EAAC,SAAS,aAAY,IAAI,QAAQ,WAAW;AAE5C,IAAM,UAAN,cAAsB,aAAa;AAAA,EAlC1C,OAkC0C;AAAA;AAAA;AAAA,EAEtC,KAAK,GAAO;AACR,QAAI,KAAK,CAAC;AACV,aAAS,KAAK,GAAG;AACb,UAAI,OAAO,EAAE,CAAC,MAAM,eAChB,EAAE,CAAC,MAAM,QACT,OAAO,EAAE,CAAC,MAAM,YAAY;AAC5B,YAAI;AACA,aAAG,KAAK,KAAK,IAAI,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC;AAAA,QAC1C,SAAS,GAAG;AAAA,QAEZ;AAAA,MACJ;AAAA,IACJ;AACA,WAAO,GAAG,KAAK,GAAG;AAAA,EACtB;AAEJ;AAGA,QAAQ,gCAAgC;AAAA,EACpC;AACJ,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,15 +1,30 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
3
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4
20
 
5
21
  // src/org.qcobjects.enterprise.commands.ts
6
- var fs = require("fs");
7
- var path = require("path");
8
- var absolutePath = path.resolve(__dirname, "./");
9
- var templatePath = path.resolve(__dirname, "./templates/apps/") + "/";
10
- var templatePwaPath = path.resolve(__dirname, "./templates/pwa/") + "/";
11
- var package_config = require(absolutePath + "/../package.json");
12
- var { exec, execSync } = require("child_process");
22
+ var org_qcobjects_enterprise_commands_exports = {};
23
+ __export(org_qcobjects_enterprise_commands_exports, {
24
+ QCObjectsEnterprise: () => QCObjectsEnterprise
25
+ });
26
+ module.exports = __toCommonJS(org_qcobjects_enterprise_commands_exports);
27
+ var import_node_child_process = require("node:child_process");
13
28
  var { Package, InheritClass, CONFIG, logger } = require("qcobjects");
14
29
  var license = CONFIG.get("enterprise-license", "1234");
15
30
  var email = CONFIG.get("enterprise-email", "a@b.com");
@@ -17,7 +32,7 @@ var QCObjectsEnterprise = class extends InheritClass {
17
32
  static {
18
33
  __name(this, "QCObjectsEnterprise");
19
34
  }
20
- install(switchCommander) {
35
+ install() {
21
36
  const instance = this;
22
37
  return instance.installEnterprise(license, email);
23
38
  }
@@ -34,7 +49,6 @@ var QCObjectsEnterprise = class extends InheritClass {
34
49
 
35
50
  Please tell me your e-Mail (\u{1F48C}):
36
51
  `, (email2) => {
37
- const asterisk = "*";
38
52
  if (email2 !== "") {
39
53
  var phoneNumberQuestion = /* @__PURE__ */ __name(function() {
40
54
  rl.question("Please tell me your phone number (\u{1F919}): \n", (phonenumber) => {
@@ -57,7 +71,7 @@ var QCObjectsEnterprise = class extends InheritClass {
57
71
  logger.infoEnabled = true;
58
72
  switch (interaction_option) {
59
73
  case "1":
60
- switchCommander.register(email2, phonenumber).then(function(response) {
74
+ switchCommander.register(email2, phonenumber).then(function() {
61
75
  logger.info(`\u{1F44F} Congrats! You have been successfully registered to the cloud! \u{1F44F}
62
76
  One of our executives will be in touch with you as soon as possible to give you the next steps
63
77
  to get a new License Number and start using QCObjects Entrprise Edition!
@@ -65,7 +79,7 @@ var QCObjectsEnterprise = class extends InheritClass {
65
79
  (In the meantime, you can continue using all the features of the QCObjects Community Edition)
66
80
  `);
67
81
  rl.close();
68
- }).catch((e) => {
82
+ }).catch(() => {
69
83
  rl.close();
70
84
  });
71
85
  break;
@@ -113,12 +127,11 @@ var QCObjectsEnterprise = class extends InheritClass {
113
127
  logger.info(`Your entered license number is ${asterisk.repeat(license2.length)} and the email that you have entered is ${email2}`);
114
128
  logger.info("Now, I'm installing QCObjects Enterprise Edition in your computer...");
115
129
  const cmdDownloadGit = `npm i --force -g git+https://license:${license2}@software.qcobjects.io/qcobjects-enterprise/qcobjects-enterprise.git`;
116
- exec(cmdDownloadGit, (err, stdout, stderr) => {
117
- if (!err) {
118
- exec("qcobjects --version", (err2, stdout2, stderr2) => {
119
- if (stdout2.lastIndexOf("Enterprise Edition") !== -1) {
120
- logger.info("\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \u{1F44F}");
121
- logger.info(`You can test it using:
130
+ (0, import_node_child_process.execSync)(cmdDownloadGit);
131
+ const stdout = (0, import_node_child_process.execSync)("qcobjects --version");
132
+ if (stdout.lastIndexOf("Enterprise Edition") !== -1) {
133
+ logger.info("\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \u{1F44F}");
134
+ logger.info(`You can test it using:
122
135
  > qcobjects --version
123
136
 
124
137
  To find more help, type the command:
@@ -127,26 +140,17 @@ To find more help, type the command:
127
140
 
128
141
  Enjoy!
129
142
  `);
130
- } else {
131
- console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
132
- console.log("Ask your executive to help");
133
- }
134
- });
135
- } else {
136
- console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
137
- if (stderr.lastIndexOf("Authentication failed") !== -1) {
138
- console.log("Please ask to your executive for the right license number");
139
- } else {
140
- console.log(stderr);
141
- }
142
- }
143
- }).stdout.on("data", function(data) {
144
- console.log(data);
145
- });
143
+ } else {
144
+ console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
145
+ console.log("Ask your executive to help");
146
+ }
146
147
  }
147
148
  };
148
149
  Package("org.qcobjects.enterprise.commands", [
149
150
  QCObjectsEnterprise
150
151
  ]);
151
- exports = { QCObjectsEnterprise };
152
+ // Annotate the CommonJS export names for ESM import in node:
153
+ 0 && (module.exports = {
154
+ QCObjectsEnterprise
155
+ });
152
156
  //# sourceMappingURL=org.qcobjects.enterprise.commands.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/org.qcobjects.enterprise.commands.ts"],
4
- "sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\nconst fs = require(\"fs\");\nconst path = require(\"path\");\nconst absolutePath = path.resolve( __dirname, \"./\" );\nconst templatePath = path.resolve( __dirname, \"./templates/apps/\" )+\"/\";\nconst templatePwaPath = path.resolve( __dirname, \"./templates/pwa/\" )+\"/\";\nconst package_config = require(absolutePath+\"/../package.json\");\nconst { exec,execSync } = require(\"child_process\");\n\nconst {Package, InheritClass, CONFIG, logger} = require(\"qcobjects\");\nconst license = CONFIG.get(\"enterprise-license\", \"1234\");\nconst email = CONFIG.get(\"enterprise-email\", \"a@b.com\");\n\nclass QCObjectsEnterprise extends InheritClass {\n \n install (switchCommander:any) {\n const instance = this;\n return instance.installEnterprise(license, email);\n }\n\n upgrade (switchCommander:any){\n const instance = this;\n const readline = require(\"readline\");\n\n const rl = readline.createInterface({\n input: process.stdin,\n output: process.stdout\n });\n\n var emailQuestion = function (){\n rl.question(`\n [NOTE: No information will be sent to a server until I got your consent]\n\n Please tell me your e-Mail (\\u{1F48C}):\n `, (email: string) => {\n const asterisk = \"*\";\n if (email !== \"\"){\n var phoneNumberQuestion = function (){\n rl.question (\"Please tell me your phone number (\\u{1F919}): \\n\", (phonenumber: string) => {\n if (phonenumber !== \"\"){\n rl.question (`\n Please select one of the following options (type a number):\n\n 1.- \\u{1F640} This is your first interaction \\u{1F60D} with QCObjects Enterprise Edition \\u{1F3E2},\n you want to send your email and phone number to one of our executives to process your\n inquiry, pay the license (when aplies) and receive a new fresh license number\n that will free up to you the most advanced features for large companies\n\n 2.- \\u{2714} Your assigned executive \\u{1F9D1} has given to you a new fresh QCObjects Enterprise Edition License Number\n and you want to enter it to follow up with the next steps.\n\n 3.- \\u{1F3C3} You want to quit this form, as you got here accidentally\n (You should think about it. It's not a coincidence, It's destiny \\u{1F600}).\n\n Please enter the number of the option and press [enter]: `, (interaction_option: any)=> {\n logger.infoEnabled=true;\n\n switch (interaction_option) {\n case \"1\":\n switchCommander.register(email,phonenumber).then(function (response: any){\n logger.info(`\\u{1F44F} Congrats! You have been successfully registered to the cloud! \\u{1F44F}\n One of our executives will be in touch with you as soon as possible to give you the next steps\n to get a new License Number and start using QCObjects Entrprise Edition!\n\n (In the meantime, you can continue using all the features of the QCObjects Community Edition)\n `);\n rl.close();\n }).catch ((e: any)=>{\n rl.close();\n });\n break;\n case \"2\":\n rl.stdoutMuted = true;\n rl._writeToOutput = function _writeToOutput(stringToWrite: any) {\n if (rl.stdoutMuted)\n rl.output.write(\"*\");\n else\n rl.output.write(stringToWrite);\n };\n rl.question(\"Please tell me the number of license that your executive has given to you: \\n\", (license: any) => {\n rl.stdoutMuted = false;\n instance.installEnterprise(license, email);\n\n rl.close();\n });\n\n break;\n default:\n logger.info(\"\\u{1F937} You can continue to use QCObjects Community Edition, see you! \\u{1F64B} \");\n rl.close();\n break;\n }\n\n });\n\n } else {\n console.log(`You need to enter a Phone Number if you want to be contacted.\n If you want to quit, press Ctrl-C.\n `);\n phoneNumberQuestion();\n }\n });\n };\n phoneNumberQuestion();\n\n } else {\n console.log(`You need to enter a real e-Mail adress if you want to be contacted.\n If you want to quit, press Ctrl-C.\n `);\n emailQuestion();\n }\n });\n\n };\n emailQuestion();\n\n }\n\n installEnterprise (license: string | any[], email: any) {\n const asterisk = \"*\";\n\n logger.info(`Your entered license number is ${asterisk.repeat(license.length)} and the email that you have entered is ${email}`);\n logger.info(\"Now, I'm installing QCObjects Enterprise Edition in your computer...\");\n const cmdDownloadGit = `npm i --force -g git+https://license:${license}@software.qcobjects.io/qcobjects-enterprise/qcobjects-enterprise.git`;\n exec(cmdDownloadGit,(err: any,stdout: any,stderr: string | string[])=>{\n if(!err){\n exec(\"qcobjects --version\",(err: any,stdout: string | string[],stderr: any)=>{\n if (stdout.lastIndexOf(\"Enterprise Edition\")!==-1){\n logger.info(\"\\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \\u{1F44F}\");\n logger.info(`You can test it using:\n> qcobjects --version\n\nTo find more help, type the command:\n\n> qcobjects --help\n\nEnjoy!\n`);\n } else {\n console.log(\"\\u{1F926} Something went wrong \\u{1F926} when trying to update your license to QCObjects Enterprise Edition\");\n console.log(\"Ask your executive to help\");\n }\n });\n\n } else {\n console.log(\"\\u{1F926} Something went wrong \\u{1F926} when trying to update your license to QCObjects Enterprise Edition\");\n if (stderr.lastIndexOf(\"Authentication failed\")!==-1){\n console.log(\"Please ask to your executive for the right license number\");\n } else {\n console.log(stderr);\n }\n }\n }).stdout.on(\"data\", function(data: any) {\n console.log(data);\n });\n\n }\n\n}\n\nPackage (\"org.qcobjects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E,UAAG,CAAC,KAAI;AACN,aAAK,uBAAsB,CAACC,MAASC,SAA0BC,YAAc;AAC3E,cAAID,QAAO,YAAY,oBAAoB,MAAI,IAAG;AAChD,mBAAO,KAAK,mFAAmF;AAC/F,mBAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAQvB;AAAA,UACS,OAAO;AACL,oBAAQ,IAAI,6GAA6G;AACzH,oBAAQ,IAAI,4BAA4B;AAAA,UAC1C;AAAA,QACF,CAAC;AAAA,MAEH,OAAO;AACL,gBAAQ,IAAI,6GAA6G;AACzH,YAAI,OAAO,YAAY,uBAAuB,MAAI,IAAG;AACnD,kBAAQ,IAAI,2DAA2D;AAAA,QACzE,OAAO;AACL,kBAAQ,IAAI,MAAM;AAAA,QACpB;AAAA,MACF;AAAA,IACF,CAAC,EAAE,OAAO,GAAG,QAAQ,SAAS,MAAW;AACrC,cAAQ,IAAI,IAAI;AAAA,IACpB,CAAC;AAAA,EAEH;AAEF;AAEA,QAAS,qCAAqC;AAAA,EAC5C;AACF,CAAC;AAED,UAAU,EAAC,oBAAmB;",
6
- "names": ["email", "license", "err", "stdout", "stderr"]
4
+ "sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\nimport { execSync } from \"node:child_process\";\n\nconst { Package, InheritClass, CONFIG, logger } = require(\"qcobjects\");\nconst license = CONFIG.get(\"enterprise-license\", \"1234\");\nconst email = CONFIG.get(\"enterprise-email\", \"a@b.com\");\n\nexport class QCObjectsEnterprise extends InheritClass {\n\n install() {\n const instance = this;\n return instance.installEnterprise(license, email);\n }\n\n upgrade(switchCommander: any) {\n const instance = this;\n const readline = require(\"readline\");\n\n const rl = readline.createInterface({\n input: process.stdin,\n output: process.stdout\n });\n\n var emailQuestion = function () {\n rl.question(`\n [NOTE: No information will be sent to a server until I got your consent]\n\n Please tell me your e-Mail (\\u{1F48C}):\n `, (email: string) => {\n if (email !== \"\") {\n var phoneNumberQuestion = function () {\n rl.question(\"Please tell me your phone number (\\u{1F919}): \\n\", (phonenumber: string) => {\n if (phonenumber !== \"\") {\n rl.question(`\n Please select one of the following options (type a number):\n\n 1.- \\u{1F640} This is your first interaction \\u{1F60D} with QCObjects Enterprise Edition \\u{1F3E2},\n you want to send your email and phone number to one of our executives to process your\n inquiry, pay the license (when aplies) and receive a new fresh license number\n that will free up to you the most advanced features for large companies\n\n 2.- \\u{2714} Your assigned executive \\u{1F9D1} has given to you a new fresh QCObjects Enterprise Edition License Number\n and you want to enter it to follow up with the next steps.\n\n 3.- \\u{1F3C3} You want to quit this form, as you got here accidentally\n (You should think about it. It's not a coincidence, It's destiny \\u{1F600}).\n\n Please enter the number of the option and press [enter]: `, (interaction_option: any) => {\n logger.infoEnabled = true;\n\n switch (interaction_option) {\n case \"1\":\n switchCommander.register(email, phonenumber).then(function () {\n logger.info(`\\u{1F44F} Congrats! You have been successfully registered to the cloud! \\u{1F44F}\n One of our executives will be in touch with you as soon as possible to give you the next steps\n to get a new License Number and start using QCObjects Entrprise Edition!\n\n (In the meantime, you can continue using all the features of the QCObjects Community Edition)\n `);\n rl.close();\n }).catch(() => {\n rl.close();\n });\n break;\n case \"2\":\n rl.stdoutMuted = true;\n rl._writeToOutput = function _writeToOutput(stringToWrite: any) {\n if (rl.stdoutMuted)\n rl.output.write(\"*\");\n else\n rl.output.write(stringToWrite);\n };\n rl.question(\"Please tell me the number of license that your executive has given to you: \\n\", (license: any) => {\n rl.stdoutMuted = false;\n instance.installEnterprise(license, email);\n\n rl.close();\n });\n\n break;\n default:\n logger.info(\"\\u{1F937} You can continue to use QCObjects Community Edition, see you! \\u{1F64B} \");\n rl.close();\n break;\n }\n\n });\n\n } else {\n console.log(`You need to enter a Phone Number if you want to be contacted.\n If you want to quit, press Ctrl-C.\n `);\n phoneNumberQuestion();\n }\n });\n };\n phoneNumberQuestion();\n\n } else {\n console.log(`You need to enter a real e-Mail adress if you want to be contacted.\n If you want to quit, press Ctrl-C.\n `);\n emailQuestion();\n }\n });\n\n };\n emailQuestion();\n\n }\n\n installEnterprise(license: string | any[], email: any) {\n const asterisk = \"*\";\n\n logger.info(`Your entered license number is ${asterisk.repeat(license.length)} and the email that you have entered is ${email}`);\n logger.info(\"Now, I'm installing QCObjects Enterprise Edition in your computer...\");\n const cmdDownloadGit = `npm i --force -g git+https://license:${license}@software.qcobjects.io/qcobjects-enterprise/qcobjects-enterprise.git`;\n execSync(cmdDownloadGit);\n const stdout = execSync(\"qcobjects --version\");\n if (stdout.lastIndexOf(\"Enterprise Edition\") !== -1) {\n logger.info(\"\\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \\u{1F44F}\");\n logger.info(`You can test it using:\n> qcobjects --version\n\nTo find more help, type the command:\n\n> qcobjects --help\n\nEnjoy!\n`);\n } else {\n console.log(\"\\u{1F926} Something went wrong \\u{1F926} when trying to update your license to QCObjects Enterprise Edition\");\n console.log(\"Ask your executive to help\");\n }\n\n }\n\n}\n\nPackage(\"org.qcobjects.enterprise.commands\", [\n QCObjectsEnterprise\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
  }
@@ -1,8 +1,29 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
3
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4
20
 
5
21
  // src/org.quickcorp.qcobjects.api.client_services.ts
22
+ var org_quickcorp_qcobjects_api_client_services_exports = {};
23
+ __export(org_quickcorp_qcobjects_api_client_services_exports, {
24
+ QuickCorpCloud: () => QuickCorpCloud
25
+ });
26
+ module.exports = __toCommonJS(org_quickcorp_qcobjects_api_client_services_exports);
6
27
  var { Package, Service, logger } = require("qcobjects");
7
28
  var QuickCorpCloud = class extends Service {
8
29
  static {
@@ -49,7 +70,8 @@ var QuickCorpCloud = class extends Service {
49
70
  Package("org.quickcorp.qcobjects.api.client_services", [
50
71
  QuickCorpCloud
51
72
  ]);
52
- exports = {
73
+ // Annotate the CommonJS export names for ESM import in node:
74
+ 0 && (module.exports = {
53
75
  QuickCorpCloud
54
- };
76
+ });
55
77
  //# sourceMappingURL=org.quickcorp.qcobjects.api.client_services.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/org.quickcorp.qcobjects.api.client_services.ts"],
4
- "sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\nconst {Package, Service, logger} = require(\"qcobjects\");\n\nclass QuickCorpCloud extends Service {\n constructor ({\n name= \"quickcorp_cloud\",\n external= true,\n useHTTP2=true,\n cached= false,\n method= \"post\",\n headers= {\n \"origin\": \"localhost\",\n \"content-type\": \"application/json\"\n },\n basePath= \"https://cloud.quickcorp.org/\",\n url= \"\",\n withCredentials= false\n }) {\n super({\n name,\n external,\n useHTTP2,\n cached,\n method,\n headers,\n basePath,\n url,\n withCredentials\n });\n\n }\n\n _new_(o:any) {\n // service instantiated\n this.headers[\"authorization\"] = \"Basic token\";\n this.url = this.basePath + o.apiMethod;\n this.data = o.data;\n }\n \n done(service:any,standardResponse:any) {\n // service loaded\n logger.debug(standardResponse);\n }\n\n fail(e:any){\n logger.debug(e);\n }\n\n}\n\nPackage(\"org.quickcorp.qcobjects.api.client_services\", [\nQuickCorpCloud\n]);\n\nexports = {\n QuickCorpCloud\n};"],
5
- "mappings": ";;;;;AAgCA,IAAM,EAAC,SAAS,SAAS,OAAM,IAAI,QAAQ,WAAW;AAEtD,IAAM,iBAAN,cAA6B,QAAQ;AAAA,EAlCrC,OAkCqC;AAAA;AAAA;AAAA,EACnC,YAAa;AAAA,IACX,OAAM;AAAA,IACN,WAAU;AAAA,IACV,WAAS;AAAA,IACT,SAAQ;AAAA,IACR,SAAQ;AAAA,IACR,UAAS;AAAA,MACP,UAAU;AAAA,MACV,gBAAgB;AAAA,IAClB;AAAA,IACA,WAAU;AAAA,IACV,MAAK;AAAA,IACL,kBAAiB;AAAA,EACnB,GAAG;AACD,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EAEH;AAAA,EAEA,MAAM,GAAO;AAEX,SAAK,QAAQ,eAAe,IAAI;AAChC,SAAK,MAAM,KAAK,WAAW,EAAE;AAC7B,SAAK,OAAO,EAAE;AAAA,EAChB;AAAA,EAEA,KAAK,SAAY,kBAAsB;AAErC,WAAO,MAAM,gBAAgB;AAAA,EAC/B;AAAA,EAEA,KAAK,GAAM;AACP,WAAO,MAAM,CAAC;AAAA,EAClB;AAEF;AAEA,QAAQ,+CAA+C;AAAA,EACvD;AACA,CAAC;AAED,UAAU;AAAA,EACR;AACF;",
4
+ "sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\nconst {Package, Service, logger} = require(\"qcobjects\");\n\nexport class QuickCorpCloud extends Service {\n constructor ({\n name= \"quickcorp_cloud\",\n external= true,\n useHTTP2=true,\n cached= false,\n method= \"post\",\n headers= {\n \"origin\": \"localhost\",\n \"content-type\": \"application/json\"\n },\n basePath= \"https://cloud.quickcorp.org/\",\n url= \"\",\n withCredentials= false\n }) {\n super({\n name,\n external,\n useHTTP2,\n cached,\n method,\n headers,\n basePath,\n url,\n withCredentials\n });\n\n }\n\n _new_(o:any) {\n // service instantiated\n this.headers[\"authorization\"] = \"Basic token\";\n this.url = this.basePath + o.apiMethod;\n this.data = o.data;\n }\n \n done(service:any,standardResponse:any) {\n // service loaded\n logger.debug(standardResponse);\n }\n\n fail(e:any){\n logger.debug(e);\n }\n\n}\n\nPackage(\"org.quickcorp.qcobjects.api.client_services\", [\nQuickCorpCloud\n]);\n\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCA,IAAM,EAAC,SAAS,SAAS,OAAM,IAAI,QAAQ,WAAW;AAE/C,IAAM,iBAAN,cAA6B,QAAQ;AAAA,EAlC5C,OAkC4C;AAAA;AAAA;AAAA,EAC1C,YAAa;AAAA,IACX,OAAM;AAAA,IACN,WAAU;AAAA,IACV,WAAS;AAAA,IACT,SAAQ;AAAA,IACR,SAAQ;AAAA,IACR,UAAS;AAAA,MACP,UAAU;AAAA,MACV,gBAAgB;AAAA,IAClB;AAAA,IACA,WAAU;AAAA,IACV,MAAK;AAAA,IACL,kBAAiB;AAAA,EACnB,GAAG;AACD,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EAEH;AAAA,EAEA,MAAM,GAAO;AAEX,SAAK,QAAQ,eAAe,IAAI;AAChC,SAAK,MAAM,KAAK,WAAW,EAAE;AAC7B,SAAK,OAAO,EAAE;AAAA,EAChB;AAAA,EAEA,KAAK,SAAY,kBAAsB;AAErC,WAAO,MAAM,gBAAgB;AAAA,EAC/B;AAAA,EAEA,KAAK,GAAM;AACP,WAAO,MAAM,CAAC;AAAA,EAClB;AAEF;AAEA,QAAQ,+CAA+C;AAAA,EACvD;AACA,CAAC;",
6
6
  "names": []
7
7
  }