qcobjects-cli 2.5.103-beta → 2.5.105-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 (89) hide show
  1. package/VERSION +1 -1
  2. package/build-esbuild.js +65 -12
  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/browser/templates/apps/spa-local.html +28 -0
  27. package/public/browser/templates/apps/spa-local.js +65 -0
  28. package/public/browser/templates/pwa/sw.js +112 -0
  29. package/public/cjs/com.qcobjects.cli.commands.cjs +377 -6
  30. package/public/cjs/com.qcobjects.cli.commands.cjs.map +4 -4
  31. package/public/cjs/com.qcobjects.cli.commands.jira.cjs +82 -24
  32. package/public/cjs/com.qcobjects.cli.commands.jira.cjs.map +4 -4
  33. package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs +25 -1
  34. package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs.map +2 -2
  35. package/public/cjs/com.qcobjects.cli.commands.version.cjs +25 -6
  36. package/public/cjs/com.qcobjects.cli.commands.version.cjs.map +2 -2
  37. package/public/cjs/index.cjs +4042 -13
  38. package/public/cjs/index.cjs.map +4 -4
  39. package/public/cjs/org.qcobjects.common.pipelog.cjs +40 -14
  40. package/public/cjs/org.qcobjects.common.pipelog.cjs.map +2 -2
  41. package/public/cjs/org.qcobjects.enterprise.commands.cjs +38 -34
  42. package/public/cjs/org.qcobjects.enterprise.commands.cjs.map +3 -3
  43. package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs +24 -2
  44. package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs.map +2 -2
  45. package/public/cjs/org.quickcorp.qcobjects.cli.cjs +1032 -118
  46. package/public/cjs/org.quickcorp.qcobjects.cli.cjs.map +4 -4
  47. package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs +362 -334
  48. package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs.map +2 -2
  49. package/public/cjs/qcobjects-cli.cjs +4047 -13
  50. package/public/cjs/qcobjects-cli.cjs.map +4 -4
  51. package/public/cjs/templates/apps/spa-local.html +28 -0
  52. package/public/cjs/templates/apps/spa-local.js +65 -0
  53. package/public/cjs/templates/pwa/sw.js +112 -0
  54. package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs +50 -57
  55. package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs.map +2 -2
  56. package/public/esm/com.qcobjects.cli.commands.jira.mjs +119 -94
  57. package/public/esm/com.qcobjects.cli.commands.jira.mjs.map +4 -4
  58. package/public/esm/com.qcobjects.cli.commands.mjs +357 -16
  59. package/public/esm/com.qcobjects.cli.commands.mjs.map +4 -4
  60. package/public/esm/com.qcobjects.cli.commands.version.mjs +204 -216
  61. package/public/esm/com.qcobjects.cli.commands.version.mjs.map +2 -2
  62. package/public/esm/index.mjs +4043 -13
  63. package/public/esm/index.mjs.map +4 -4
  64. package/public/esm/org.qcobjects.common.pipelog.mjs +21 -26
  65. package/public/esm/org.qcobjects.common.pipelog.mjs.map +2 -2
  66. package/public/esm/org.qcobjects.enterprise.commands.mjs +92 -119
  67. package/public/esm/org.qcobjects.enterprise.commands.mjs.map +3 -3
  68. package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs +48 -57
  69. package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs.map +2 -2
  70. package/public/esm/org.quickcorp.qcobjects.cli.mjs +1266 -380
  71. package/public/esm/org.quickcorp.qcobjects.cli.mjs.map +4 -4
  72. package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs +357 -361
  73. package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs.map +2 -2
  74. package/public/esm/qcobjects-cli.mjs +4046 -14
  75. package/public/esm/qcobjects-cli.mjs.map +4 -4
  76. package/public/esm/templates/apps/spa-local.html +28 -0
  77. package/public/esm/templates/apps/spa-local.js +65 -0
  78. package/public/esm/templates/pwa/sw.js +112 -0
  79. package/public/index.d.ts +140 -10
  80. package/src/com.qcobjects.cli.commands.jira.client_services.ts +19 -21
  81. package/src/com.qcobjects.cli.commands.jira.ts +11 -34
  82. package/src/com.qcobjects.cli.commands.ts +3 -9
  83. package/src/com.qcobjects.cli.commands.version.ts +1 -9
  84. package/src/org.qcobjects.common.pipelog.ts +18 -15
  85. package/src/org.qcobjects.enterprise.commands.ts +29 -50
  86. package/src/org.quickcorp.qcobjects.api.client_services.ts +1 -4
  87. package/src/org.quickcorp.qcobjects.cli.ts +28 -57
  88. package/src/org.quickcorp.qcobjects.defaultsettings.ts +359 -355
  89. package/src/qcobjects-cli.ts +4 -5
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  var global = (() => {
3
3
  var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
8
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
7
9
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -9,35 +11,46 @@ var global = (() => {
9
11
  if (typeof require !== "undefined") return require.apply(this, arguments);
10
12
  throw Error('Dynamic require of "' + x + '" is not supported');
11
13
  });
12
- var __commonJS = (cb, mod) => function __require2() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
14
17
  };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
27
 
16
28
  // src/org.qcobjects.common.pipelog.ts
17
- var require_org_qcobjects_common_pipelog = __commonJS({
18
- "src/org.qcobjects.common.pipelog.ts"() {
19
- var { Package, InheritClass } = __require("qcobjects");
20
- Package("org.qcobjects.common.pipelog", [
21
- class PipeLog extends InheritClass {
22
- static {
23
- __name(this, "PipeLog");
24
- }
25
- pipe(o) {
26
- var _o = [];
27
- for (var k in o) {
28
- if (typeof o[k] !== "undefined" && o[k] !== null && typeof o[k] !== "function") {
29
- try {
30
- _o.push("" + k + "=" + o[k].toString());
31
- } catch (e) {
32
- }
33
- }
34
- }
35
- return _o.join(" ");
29
+ var org_qcobjects_common_pipelog_exports = {};
30
+ __export(org_qcobjects_common_pipelog_exports, {
31
+ PipeLog: () => PipeLog
32
+ });
33
+ var { Package, InheritClass } = __require("qcobjects");
34
+ var PipeLog = class extends InheritClass {
35
+ static {
36
+ __name(this, "PipeLog");
37
+ }
38
+ pipe(o) {
39
+ var _o = [];
40
+ for (var k in o) {
41
+ if (typeof o[k] !== "undefined" && o[k] !== null && typeof o[k] !== "function") {
42
+ try {
43
+ _o.push("" + k + "=" + o[k].toString());
44
+ } catch (e) {
36
45
  }
37
46
  }
38
- ]);
47
+ }
48
+ return _o.join(" ");
39
49
  }
40
- });
41
- return require_org_qcobjects_common_pipelog();
50
+ };
51
+ Package("org.qcobjects.common.pipelog", [
52
+ PipeLog
53
+ ]);
54
+ return __toCommonJS(org_qcobjects_common_pipelog_exports);
42
55
  })();
43
56
  //# sourceMappingURL=org.qcobjects.common.pipelog.js.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": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAgCA,UAAM,EAAC,SAAS,aAAY,IAAI,UAAQ,WAAW;AAEnD,cAAQ,gCAAgC;AAAA,QACpC,MAAM,gBAAgB,aAAa;AAAA,UAnCvC,OAmCuC;AAAA;AAAA;AAAA,UAE/B,KAAK,GAAO;AACR,gBAAI,KAAK,CAAC;AACV,qBAAS,KAAK,GAAG;AACb,kBAAI,OAAO,EAAE,CAAC,MAAM,eAChB,EAAE,CAAC,MAAM,QACT,OAAO,EAAE,CAAC,MAAM,YAAY;AAC5B,oBAAI;AACA,qBAAG,KAAK,KAAK,IAAI,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC;AAAA,gBAC1C,SAAS,GAAG;AAAA,gBAEZ;AAAA,cACJ;AAAA,YACJ;AACA,mBAAO,GAAG,KAAK,GAAG;AAAA,UACtB;AAAA,QAEJ;AAAA,MACJ,CAAC;AAAA;AAAA;",
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;AAgCA,MAAM,EAAC,SAAS,aAAY,IAAI,UAAQ,WAAW;AAE5C,MAAM,UAAN,cAAsB,aAAa;AAAA,IAlC1C,OAkC0C;AAAA;AAAA;AAAA,IAEtC,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;AAGA,UAAQ,gCAAgC;AAAA,IACpC;AAAA,EACJ,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  var global = (() => {
3
3
  var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
8
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
7
9
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -9,50 +11,55 @@ var global = (() => {
9
11
  if (typeof require !== "undefined") return require.apply(this, arguments);
10
12
  throw Error('Dynamic require of "' + x + '" is not supported');
11
13
  });
12
- var __commonJS = (cb, mod) => function __require2() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
14
17
  };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
27
 
16
28
  // src/org.qcobjects.enterprise.commands.ts
17
- var require_org_qcobjects_enterprise_commands = __commonJS({
18
- "src/org.qcobjects.enterprise.commands.ts"(exports) {
19
- var fs = __require("fs");
20
- var path = __require("path");
21
- var absolutePath = path.resolve(__dirname, "./");
22
- var templatePath = path.resolve(__dirname, "./templates/apps/") + "/";
23
- var templatePwaPath = path.resolve(__dirname, "./templates/pwa/") + "/";
24
- var package_config = __require(absolutePath + "/../package.json");
25
- var { exec, execSync } = __require("child_process");
26
- var { Package, InheritClass, CONFIG, logger } = __require("qcobjects");
27
- var license = CONFIG.get("enterprise-license", "1234");
28
- var email = CONFIG.get("enterprise-email", "a@b.com");
29
- var QCObjectsEnterprise = class extends InheritClass {
30
- static {
31
- __name(this, "QCObjectsEnterprise");
32
- }
33
- install(switchCommander) {
34
- const instance = this;
35
- return instance.installEnterprise(license, email);
36
- }
37
- upgrade(switchCommander) {
38
- const instance = this;
39
- const readline = __require("readline");
40
- const rl = readline.createInterface({
41
- input: process.stdin,
42
- output: process.stdout
43
- });
44
- var emailQuestion = /* @__PURE__ */ __name(function() {
45
- rl.question(`
29
+ var org_qcobjects_enterprise_commands_exports = {};
30
+ __export(org_qcobjects_enterprise_commands_exports, {
31
+ QCObjectsEnterprise: () => QCObjectsEnterprise
32
+ });
33
+ var import_node_child_process = __require("node:child_process");
34
+ var { Package, InheritClass, CONFIG, logger } = __require("qcobjects");
35
+ var license = CONFIG.get("enterprise-license", "1234");
36
+ var email = CONFIG.get("enterprise-email", "a@b.com");
37
+ var QCObjectsEnterprise = class extends InheritClass {
38
+ static {
39
+ __name(this, "QCObjectsEnterprise");
40
+ }
41
+ install() {
42
+ const instance = this;
43
+ return instance.installEnterprise(license, email);
44
+ }
45
+ upgrade(switchCommander) {
46
+ const instance = this;
47
+ const readline = __require("readline");
48
+ const rl = readline.createInterface({
49
+ input: process.stdin,
50
+ output: process.stdout
51
+ });
52
+ var emailQuestion = /* @__PURE__ */ __name(function() {
53
+ rl.question(`
46
54
  [NOTE: No information will be sent to a server until I got your consent]
47
55
 
48
56
  Please tell me your e-Mail (\u{1F48C}):
49
57
  `, (email2) => {
50
- const asterisk = "*";
51
- if (email2 !== "") {
52
- var phoneNumberQuestion = /* @__PURE__ */ __name(function() {
53
- rl.question("Please tell me your phone number (\u{1F919}): \n", (phonenumber) => {
54
- if (phonenumber !== "") {
55
- rl.question(`
58
+ if (email2 !== "") {
59
+ var phoneNumberQuestion = /* @__PURE__ */ __name(function() {
60
+ rl.question("Please tell me your phone number (\u{1F919}): \n", (phonenumber) => {
61
+ if (phonenumber !== "") {
62
+ rl.question(`
56
63
  Please select one of the following options (type a number):
57
64
 
58
65
  1.- \u{1F640} This is your first interaction \u{1F60D} with QCObjects Enterprise Edition \u{1F3E2},
@@ -67,71 +74,70 @@ var global = (() => {
67
74
  (You should think about it. It's not a coincidence, It's destiny \u{1F600}).
68
75
 
69
76
  Please enter the number of the option and press [enter]: `, (interaction_option) => {
70
- logger.infoEnabled = true;
71
- switch (interaction_option) {
72
- case "1":
73
- switchCommander.register(email2, phonenumber).then(function(response) {
74
- logger.info(`\u{1F44F} Congrats! You have been successfully registered to the cloud! \u{1F44F}
77
+ logger.infoEnabled = true;
78
+ switch (interaction_option) {
79
+ case "1":
80
+ switchCommander.register(email2, phonenumber).then(function() {
81
+ logger.info(`\u{1F44F} Congrats! You have been successfully registered to the cloud! \u{1F44F}
75
82
  One of our executives will be in touch with you as soon as possible to give you the next steps
76
83
  to get a new License Number and start using QCObjects Entrprise Edition!
77
84
 
78
85
  (In the meantime, you can continue using all the features of the QCObjects Community Edition)
79
86
  `);
80
- rl.close();
81
- }).catch((e) => {
82
- rl.close();
83
- });
84
- break;
85
- case "2":
86
- rl.stdoutMuted = true;
87
- rl._writeToOutput = /* @__PURE__ */ __name(function _writeToOutput(stringToWrite) {
88
- if (rl.stdoutMuted)
89
- rl.output.write("*");
90
- else
91
- rl.output.write(stringToWrite);
92
- }, "_writeToOutput");
93
- rl.question("Please tell me the number of license that your executive has given to you: \n", (license2) => {
94
- rl.stdoutMuted = false;
95
- instance.installEnterprise(license2, email2);
96
- rl.close();
97
- });
98
- break;
99
- default:
100
- logger.info("\u{1F937} You can continue to use QCObjects Community Edition, see you! \u{1F64B} ");
101
- rl.close();
102
- break;
103
- }
104
- });
105
- } else {
106
- console.log(`You need to enter a Phone Number if you want to be contacted.
107
- If you want to quit, press Ctrl-C.
108
- `);
109
- phoneNumberQuestion();
87
+ rl.close();
88
+ }).catch(() => {
89
+ rl.close();
90
+ });
91
+ break;
92
+ case "2":
93
+ rl.stdoutMuted = true;
94
+ rl._writeToOutput = /* @__PURE__ */ __name(function _writeToOutput(stringToWrite) {
95
+ if (rl.stdoutMuted)
96
+ rl.output.write("*");
97
+ else
98
+ rl.output.write(stringToWrite);
99
+ }, "_writeToOutput");
100
+ rl.question("Please tell me the number of license that your executive has given to you: \n", (license2) => {
101
+ rl.stdoutMuted = false;
102
+ instance.installEnterprise(license2, email2);
103
+ rl.close();
104
+ });
105
+ break;
106
+ default:
107
+ logger.info("\u{1F937} You can continue to use QCObjects Community Edition, see you! \u{1F64B} ");
108
+ rl.close();
109
+ break;
110
110
  }
111
111
  });
112
- }, "phoneNumberQuestion");
113
- phoneNumberQuestion();
114
- } else {
115
- console.log(`You need to enter a real e-Mail adress if you want to be contacted.
112
+ } else {
113
+ console.log(`You need to enter a Phone Number if you want to be contacted.
114
+ If you want to quit, press Ctrl-C.
115
+ `);
116
+ phoneNumberQuestion();
117
+ }
118
+ });
119
+ }, "phoneNumberQuestion");
120
+ phoneNumberQuestion();
121
+ } else {
122
+ console.log(`You need to enter a real e-Mail adress if you want to be contacted.
116
123
  If you want to quit, press Ctrl-C.
117
124
  `);
118
- emailQuestion();
119
- }
120
- });
121
- }, "emailQuestion");
122
- emailQuestion();
123
- }
124
- installEnterprise(license2, email2) {
125
- const asterisk = "*";
126
- logger.info(`Your entered license number is ${asterisk.repeat(license2.length)} and the email that you have entered is ${email2}`);
127
- logger.info("Now, I'm installing QCObjects Enterprise Edition in your computer...");
128
- const cmdDownloadGit = `npm i --force -g git+https://license:${license2}@software.qcobjects.io/qcobjects-enterprise/qcobjects-enterprise.git`;
129
- exec(cmdDownloadGit, (err, stdout, stderr) => {
130
- if (!err) {
131
- exec("qcobjects --version", (err2, stdout2, stderr2) => {
132
- if (stdout2.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:
125
+ emailQuestion();
126
+ }
127
+ });
128
+ }, "emailQuestion");
129
+ emailQuestion();
130
+ }
131
+ installEnterprise(license2, email2) {
132
+ const asterisk = "*";
133
+ logger.info(`Your entered license number is ${asterisk.repeat(license2.length)} and the email that you have entered is ${email2}`);
134
+ logger.info("Now, I'm installing QCObjects Enterprise Edition in your computer...");
135
+ const cmdDownloadGit = `npm i --force -g git+https://license:${license2}@software.qcobjects.io/qcobjects-enterprise/qcobjects-enterprise.git`;
136
+ (0, import_node_child_process.execSync)(cmdDownloadGit);
137
+ const stdout = (0, import_node_child_process.execSync)("qcobjects --version");
138
+ if (stdout.lastIndexOf("Enterprise Edition") !== -1) {
139
+ logger.info("\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \u{1F44F}");
140
+ logger.info(`You can test it using:
135
141
  > qcobjects --version
136
142
 
137
143
  To find more help, type the command:
@@ -140,30 +146,15 @@ To find more help, type the command:
140
146
 
141
147
  Enjoy!
142
148
  `);
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
- }
147
- });
148
- } else {
149
- console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
150
- if (stderr.lastIndexOf("Authentication failed") !== -1) {
151
- console.log("Please ask to your executive for the right license number");
152
- } else {
153
- console.log(stderr);
154
- }
155
- }
156
- }).stdout.on("data", function(data) {
157
- console.log(data);
158
- });
159
- }
160
- };
161
- Package("org.qcobjects.enterprise.commands", [
162
- QCObjectsEnterprise
163
- ]);
164
- exports = { QCObjectsEnterprise };
149
+ } else {
150
+ console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
151
+ console.log("Ask your executive to help");
152
+ }
165
153
  }
166
- });
167
- return require_org_qcobjects_enterprise_commands();
154
+ };
155
+ Package("org.qcobjects.enterprise.commands", [
156
+ QCObjectsEnterprise
157
+ ]);
158
+ return __toCommonJS(org_qcobjects_enterprise_commands_exports);
168
159
  })();
169
160
  //# sourceMappingURL=org.qcobjects.enterprise.commands.js.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.enterprise.commands\", [\n QC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AAC,KAAS,QAAY,WAA4B;AACpE,gBAAG,CAAC,KAAI;AACN,mBAAK,uBAAsB,CAACC,MAASC,SAA0BC,YAAc;AAC3E,oBAAID,QAAO,YAAY,oBAAoB,MAAI,IAAG;AAChD,yBAAO,KAAK,mFAAmF;AAC/F,yBAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAQvB;AAAA,gBACS,OAAO;AACL,0BAAQ,IAAI,6GAA6G;AACzH,0BAAQ,IAAI,4BAA4B;AAAA,gBAC1C;AAAA,cACF,CAAC;AAAA,YAEH,OAAO;AACL,sBAAQ,IAAI,6GAA6G;AACzH,kBAAI,OAAO,YAAY,uBAAuB,MAAI,IAAG;AACnD,wBAAQ,IAAI,2DAA2D;AAAA,cACzE,OAAO;AACL,wBAAQ,IAAI,MAAM;AAAA,cACpB;AAAA,YACF;AAAA,UACF,CAAC,EAAE,OAAO,GAAG,QAAQ,SAAS,MAAW;AACrC,oBAAQ,IAAI,IAAI;AAAA,UACpB,CAAC;AAAA,QAEH;AAAA,MAEF;AAEA,cAAS,qCAAqC;AAAA,QAC5C;AAAA,MACF,CAAC;AAED,gBAAU,EAAC,oBAAmB;AAAA;AAAA;",
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 }\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EAEF;AAEA,UAAQ,qCAAqC;AAAA,IAC3C;AAAA,EACF,CAAC;",
6
+ "names": ["email", "license"]
7
7
  }
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  var global = (() => {
3
3
  var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
8
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
7
9
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -9,64 +11,71 @@ var global = (() => {
9
11
  if (typeof require !== "undefined") return require.apply(this, arguments);
10
12
  throw Error('Dynamic require of "' + x + '" is not supported');
11
13
  });
12
- var __commonJS = (cb, mod) => function __require2() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
14
17
  };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
27
 
16
28
  // src/org.quickcorp.qcobjects.api.client_services.ts
17
- var require_org_quickcorp_qcobjects_api_client_services = __commonJS({
18
- "src/org.quickcorp.qcobjects.api.client_services.ts"(exports) {
19
- var { Package, Service, logger } = __require("qcobjects");
20
- var QuickCorpCloud = class extends Service {
21
- static {
22
- __name(this, "QuickCorpCloud");
23
- }
24
- constructor({
25
- name = "quickcorp_cloud",
26
- external = true,
27
- useHTTP2 = true,
28
- cached = false,
29
- method = "post",
30
- headers = {
31
- "origin": "localhost",
32
- "content-type": "application/json"
33
- },
34
- basePath = "https://cloud.quickcorp.org/",
35
- url = "",
36
- withCredentials = false
37
- }) {
38
- super({
39
- name,
40
- external,
41
- useHTTP2,
42
- cached,
43
- method,
44
- headers,
45
- basePath,
46
- url,
47
- withCredentials
48
- });
49
- }
50
- _new_(o) {
51
- this.headers["authorization"] = "Basic token";
52
- this.url = this.basePath + o.apiMethod;
53
- this.data = o.data;
54
- }
55
- done(service, standardResponse) {
56
- logger.debug(standardResponse);
57
- }
58
- fail(e) {
59
- logger.debug(e);
60
- }
61
- };
62
- Package("org.quickcorp.qcobjects.api.client_services", [
63
- QuickCorpCloud
64
- ]);
65
- exports = {
66
- QuickCorpCloud
67
- };
68
- }
29
+ var org_quickcorp_qcobjects_api_client_services_exports = {};
30
+ __export(org_quickcorp_qcobjects_api_client_services_exports, {
31
+ QuickCorpCloud: () => QuickCorpCloud
69
32
  });
70
- return require_org_quickcorp_qcobjects_api_client_services();
33
+ var { Package, Service, logger } = __require("qcobjects");
34
+ var QuickCorpCloud = class extends Service {
35
+ static {
36
+ __name(this, "QuickCorpCloud");
37
+ }
38
+ constructor({
39
+ name = "quickcorp_cloud",
40
+ external = true,
41
+ useHTTP2 = true,
42
+ cached = false,
43
+ method = "post",
44
+ headers = {
45
+ "origin": "localhost",
46
+ "content-type": "application/json"
47
+ },
48
+ basePath = "https://cloud.quickcorp.org/",
49
+ url = "",
50
+ withCredentials = false
51
+ }) {
52
+ super({
53
+ name,
54
+ external,
55
+ useHTTP2,
56
+ cached,
57
+ method,
58
+ headers,
59
+ basePath,
60
+ url,
61
+ withCredentials
62
+ });
63
+ }
64
+ _new_(o) {
65
+ this.headers["authorization"] = "Basic token";
66
+ this.url = this.basePath + o.apiMethod;
67
+ this.data = o.data;
68
+ }
69
+ done(service, standardResponse) {
70
+ logger.debug(standardResponse);
71
+ }
72
+ fail(e) {
73
+ logger.debug(e);
74
+ }
75
+ };
76
+ Package("org.quickcorp.qcobjects.api.client_services", [
77
+ QuickCorpCloud
78
+ ]);
79
+ return __toCommonJS(org_quickcorp_qcobjects_api_client_services_exports);
71
80
  })();
72
81
  //# sourceMappingURL=org.quickcorp.qcobjects.api.client_services.js.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": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAgCA,UAAM,EAAC,SAAS,SAAS,OAAM,IAAI,UAAQ,WAAW;AAEtD,UAAM,iBAAN,cAA6B,QAAQ;AAAA,QAlCrC,OAkCqC;AAAA;AAAA;AAAA,QACnC,YAAa;AAAA,UACX,OAAM;AAAA,UACN,WAAU;AAAA,UACV,WAAS;AAAA,UACT,SAAQ;AAAA,UACR,SAAQ;AAAA,UACR,UAAS;AAAA,YACP,UAAU;AAAA,YACV,gBAAgB;AAAA,UAClB;AAAA,UACA,WAAU;AAAA,UACV,MAAK;AAAA,UACL,kBAAiB;AAAA,QACnB,GAAG;AACD,gBAAM;AAAA,YACJ;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UACF,CAAC;AAAA,QAEH;AAAA,QAEA,MAAM,GAAO;AAEX,eAAK,QAAQ,eAAe,IAAI;AAChC,eAAK,MAAM,KAAK,WAAW,EAAE;AAC7B,eAAK,OAAO,EAAE;AAAA,QAChB;AAAA,QAEA,KAAK,SAAY,kBAAsB;AAErC,iBAAO,MAAM,gBAAgB;AAAA,QAC/B;AAAA,QAEA,KAAK,GAAM;AACP,iBAAO,MAAM,CAAC;AAAA,QAClB;AAAA,MAEF;AAEA,cAAQ,+CAA+C;AAAA,QACvD;AAAA,MACA,CAAC;AAED,gBAAU;AAAA,QACR;AAAA,MACF;AAAA;AAAA;",
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;AAgCA,MAAM,EAAC,SAAS,SAAS,OAAM,IAAI,UAAQ,WAAW;AAE/C,MAAM,iBAAN,cAA6B,QAAQ;AAAA,IAlC5C,OAkC4C;AAAA;AAAA;AAAA,IAC1C,YAAa;AAAA,MACX,OAAM;AAAA,MACN,WAAU;AAAA,MACV,WAAS;AAAA,MACT,SAAQ;AAAA,MACR,SAAQ;AAAA,MACR,UAAS;AAAA,QACP,UAAU;AAAA,QACV,gBAAgB;AAAA,MAClB;AAAA,MACA,WAAU;AAAA,MACV,MAAK;AAAA,MACL,kBAAiB;AAAA,IACnB,GAAG;AACD,YAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IAEH;AAAA,IAEA,MAAM,GAAO;AAEX,WAAK,QAAQ,eAAe,IAAI;AAChC,WAAK,MAAM,KAAK,WAAW,EAAE;AAC7B,WAAK,OAAO,EAAE;AAAA,IAChB;AAAA,IAEA,KAAK,SAAY,kBAAsB;AAErC,aAAO,MAAM,gBAAgB;AAAA,IAC/B;AAAA,IAEA,KAAK,GAAM;AACP,aAAO,MAAM,CAAC;AAAA,IAClB;AAAA,EAEF;AAEA,UAAQ,+CAA+C;AAAA,IACvD;AAAA,EACA,CAAC;",
6
6
  "names": []
7
7
  }