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,5 +1,4 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __getOwnPropNames = Object.getOwnPropertyNames;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
3
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
4
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -7,34 +6,30 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
6
  if (typeof require !== "undefined") return require.apply(this, arguments);
8
7
  throw Error('Dynamic require of "' + x + '" is not supported');
9
8
  });
10
- var __commonJS = (cb, mod) => function __require2() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
- };
13
9
 
14
10
  // src/org.qcobjects.common.pipelog.ts
15
- var require_org_qcobjects_common_pipelog = __commonJS({
16
- "src/org.qcobjects.common.pipelog.ts"() {
17
- var { Package, InheritClass } = __require("qcobjects");
18
- Package("org.qcobjects.common.pipelog", [
19
- class PipeLog extends InheritClass {
20
- static {
21
- __name(this, "PipeLog");
22
- }
23
- pipe(o) {
24
- var _o = [];
25
- for (var k in o) {
26
- if (typeof o[k] !== "undefined" && o[k] !== null && typeof o[k] !== "function") {
27
- try {
28
- _o.push("" + k + "=" + o[k].toString());
29
- } catch (e) {
30
- }
31
- }
32
- }
33
- return _o.join(" ");
11
+ var { Package, InheritClass } = __require("qcobjects");
12
+ var PipeLog = class extends InheritClass {
13
+ static {
14
+ __name(this, "PipeLog");
15
+ }
16
+ pipe(o) {
17
+ var _o = [];
18
+ for (var k in o) {
19
+ if (typeof o[k] !== "undefined" && o[k] !== null && typeof o[k] !== "function") {
20
+ try {
21
+ _o.push("" + k + "=" + o[k].toString());
22
+ } catch (e) {
34
23
  }
35
24
  }
36
- ]);
25
+ }
26
+ return _o.join(" ");
37
27
  }
38
- });
39
- export default require_org_qcobjects_common_pipelog();
28
+ };
29
+ Package("org.qcobjects.common.pipelog", [
30
+ PipeLog
31
+ ]);
32
+ export {
33
+ PipeLog
34
+ };
40
35
  //# sourceMappingURL=org.qcobjects.common.pipelog.mjs.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,QAAM,EAAC,SAAS,aAAY,IAAI,UAAQ,WAAW;AAEnD,YAAQ,gCAAgC;AAAA,MACpC,MAAM,gBAAgB,aAAa;AAAA,QAnCvC,OAmCuC;AAAA;AAAA;AAAA,QAE/B,KAAK,GAAO;AACR,cAAI,KAAK,CAAC;AACV,mBAAS,KAAK,GAAG;AACb,gBAAI,OAAO,EAAE,CAAC,MAAM,eAChB,EAAE,CAAC,MAAM,QACT,OAAO,EAAE,CAAC,MAAM,YAAY;AAC5B,kBAAI;AACA,mBAAG,KAAK,KAAK,IAAI,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC;AAAA,cAC1C,SAAS,GAAG;AAAA,cAEZ;AAAA,YACJ;AAAA,UACJ;AACA,iBAAO,GAAG,KAAK,GAAG;AAAA,QACtB;AAAA,MAEJ;AAAA,IACJ,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": ";;;;;;;;;;AAgCA,IAAM,EAAC,SAAS,aAAY,IAAI,UAAQ,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,5 +1,4 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __getOwnPropNames = Object.getOwnPropertyNames;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
3
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
4
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -7,50 +6,38 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
6
  if (typeof require !== "undefined") return require.apply(this, arguments);
8
7
  throw Error('Dynamic require of "' + x + '" is not supported');
9
8
  });
10
- var __commonJS = (cb, mod) => function __require2() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
- };
13
9
 
14
10
  // src/org.qcobjects.enterprise.commands.ts
15
- var require_org_qcobjects_enterprise_commands = __commonJS({
16
- "src/org.qcobjects.enterprise.commands.ts"(exports) {
17
- var fs = __require("fs");
18
- var path = __require("path");
19
- var absolutePath = path.resolve(__dirname, "./");
20
- var templatePath = path.resolve(__dirname, "./templates/apps/") + "/";
21
- var templatePwaPath = path.resolve(__dirname, "./templates/pwa/") + "/";
22
- var package_config = __require(absolutePath + "/../package.json");
23
- var { exec, execSync } = __require("child_process");
24
- var { Package, InheritClass, CONFIG, logger } = __require("qcobjects");
25
- var license = CONFIG.get("enterprise-license", "1234");
26
- var email = CONFIG.get("enterprise-email", "a@b.com");
27
- var QCObjectsEnterprise = class extends InheritClass {
28
- static {
29
- __name(this, "QCObjectsEnterprise");
30
- }
31
- install(switchCommander) {
32
- const instance = this;
33
- return instance.installEnterprise(license, email);
34
- }
35
- upgrade(switchCommander) {
36
- const instance = this;
37
- const readline = __require("readline");
38
- const rl = readline.createInterface({
39
- input: process.stdin,
40
- output: process.stdout
41
- });
42
- var emailQuestion = /* @__PURE__ */ __name(function() {
43
- rl.question(`
11
+ import { execSync } from "node:child_process";
12
+ var { Package, InheritClass, CONFIG, logger } = __require("qcobjects");
13
+ var license = CONFIG.get("enterprise-license", "1234");
14
+ var email = CONFIG.get("enterprise-email", "a@b.com");
15
+ var QCObjectsEnterprise = class extends InheritClass {
16
+ static {
17
+ __name(this, "QCObjectsEnterprise");
18
+ }
19
+ install() {
20
+ const instance = this;
21
+ return instance.installEnterprise(license, email);
22
+ }
23
+ upgrade(switchCommander) {
24
+ const instance = this;
25
+ const readline = __require("readline");
26
+ const rl = readline.createInterface({
27
+ input: process.stdin,
28
+ output: process.stdout
29
+ });
30
+ var emailQuestion = /* @__PURE__ */ __name(function() {
31
+ rl.question(`
44
32
  [NOTE: No information will be sent to a server until I got your consent]
45
33
 
46
34
  Please tell me your e-Mail (\u{1F48C}):
47
35
  `, (email2) => {
48
- const asterisk = "*";
49
- if (email2 !== "") {
50
- var phoneNumberQuestion = /* @__PURE__ */ __name(function() {
51
- rl.question("Please tell me your phone number (\u{1F919}): \n", (phonenumber) => {
52
- if (phonenumber !== "") {
53
- rl.question(`
36
+ if (email2 !== "") {
37
+ var phoneNumberQuestion = /* @__PURE__ */ __name(function() {
38
+ rl.question("Please tell me your phone number (\u{1F919}): \n", (phonenumber) => {
39
+ if (phonenumber !== "") {
40
+ rl.question(`
54
41
  Please select one of the following options (type a number):
55
42
 
56
43
  1.- \u{1F640} This is your first interaction \u{1F60D} with QCObjects Enterprise Edition \u{1F3E2},
@@ -65,71 +52,70 @@ var require_org_qcobjects_enterprise_commands = __commonJS({
65
52
  (You should think about it. It's not a coincidence, It's destiny \u{1F600}).
66
53
 
67
54
  Please enter the number of the option and press [enter]: `, (interaction_option) => {
68
- logger.infoEnabled = true;
69
- switch (interaction_option) {
70
- case "1":
71
- switchCommander.register(email2, phonenumber).then(function(response) {
72
- logger.info(`\u{1F44F} Congrats! You have been successfully registered to the cloud! \u{1F44F}
55
+ logger.infoEnabled = true;
56
+ switch (interaction_option) {
57
+ case "1":
58
+ switchCommander.register(email2, phonenumber).then(function() {
59
+ logger.info(`\u{1F44F} Congrats! You have been successfully registered to the cloud! \u{1F44F}
73
60
  One of our executives will be in touch with you as soon as possible to give you the next steps
74
61
  to get a new License Number and start using QCObjects Entrprise Edition!
75
62
 
76
63
  (In the meantime, you can continue using all the features of the QCObjects Community Edition)
77
64
  `);
78
- rl.close();
79
- }).catch((e) => {
80
- rl.close();
81
- });
82
- break;
83
- case "2":
84
- rl.stdoutMuted = true;
85
- rl._writeToOutput = /* @__PURE__ */ __name(function _writeToOutput(stringToWrite) {
86
- if (rl.stdoutMuted)
87
- rl.output.write("*");
88
- else
89
- rl.output.write(stringToWrite);
90
- }, "_writeToOutput");
91
- rl.question("Please tell me the number of license that your executive has given to you: \n", (license2) => {
92
- rl.stdoutMuted = false;
93
- instance.installEnterprise(license2, email2);
94
- rl.close();
95
- });
96
- break;
97
- default:
98
- logger.info("\u{1F937} You can continue to use QCObjects Community Edition, see you! \u{1F64B} ");
99
- rl.close();
100
- break;
101
- }
102
- });
103
- } else {
104
- console.log(`You need to enter a Phone Number if you want to be contacted.
105
- If you want to quit, press Ctrl-C.
106
- `);
107
- phoneNumberQuestion();
65
+ rl.close();
66
+ }).catch(() => {
67
+ rl.close();
68
+ });
69
+ break;
70
+ case "2":
71
+ rl.stdoutMuted = true;
72
+ rl._writeToOutput = /* @__PURE__ */ __name(function _writeToOutput(stringToWrite) {
73
+ if (rl.stdoutMuted)
74
+ rl.output.write("*");
75
+ else
76
+ rl.output.write(stringToWrite);
77
+ }, "_writeToOutput");
78
+ rl.question("Please tell me the number of license that your executive has given to you: \n", (license2) => {
79
+ rl.stdoutMuted = false;
80
+ instance.installEnterprise(license2, email2);
81
+ rl.close();
82
+ });
83
+ break;
84
+ default:
85
+ logger.info("\u{1F937} You can continue to use QCObjects Community Edition, see you! \u{1F64B} ");
86
+ rl.close();
87
+ break;
108
88
  }
109
89
  });
110
- }, "phoneNumberQuestion");
111
- phoneNumberQuestion();
112
- } else {
113
- console.log(`You need to enter a real e-Mail adress if you want to be contacted.
90
+ } else {
91
+ console.log(`You need to enter a Phone Number if you want to be contacted.
114
92
  If you want to quit, press Ctrl-C.
115
93
  `);
116
- emailQuestion();
117
- }
118
- });
119
- }, "emailQuestion");
120
- emailQuestion();
121
- }
122
- installEnterprise(license2, email2) {
123
- const asterisk = "*";
124
- logger.info(`Your entered license number is ${asterisk.repeat(license2.length)} and the email that you have entered is ${email2}`);
125
- logger.info("Now, I'm installing QCObjects Enterprise Edition in your computer...");
126
- const cmdDownloadGit = `npm i --force -g git+https://license:${license2}@software.qcobjects.io/qcobjects-enterprise/qcobjects-enterprise.git`;
127
- exec(cmdDownloadGit, (err, stdout, stderr) => {
128
- if (!err) {
129
- exec("qcobjects --version", (err2, stdout2, stderr2) => {
130
- if (stdout2.lastIndexOf("Enterprise Edition") !== -1) {
131
- logger.info("\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \u{1F44F}");
132
- logger.info(`You can test it using:
94
+ phoneNumberQuestion();
95
+ }
96
+ });
97
+ }, "phoneNumberQuestion");
98
+ phoneNumberQuestion();
99
+ } else {
100
+ console.log(`You need to enter a real e-Mail adress if you want to be contacted.
101
+ If you want to quit, press Ctrl-C.
102
+ `);
103
+ emailQuestion();
104
+ }
105
+ });
106
+ }, "emailQuestion");
107
+ emailQuestion();
108
+ }
109
+ installEnterprise(license2, email2) {
110
+ const asterisk = "*";
111
+ logger.info(`Your entered license number is ${asterisk.repeat(license2.length)} and the email that you have entered is ${email2}`);
112
+ logger.info("Now, I'm installing QCObjects Enterprise Edition in your computer...");
113
+ const cmdDownloadGit = `npm i --force -g git+https://license:${license2}@software.qcobjects.io/qcobjects-enterprise/qcobjects-enterprise.git`;
114
+ execSync(cmdDownloadGit);
115
+ const stdout = execSync("qcobjects --version");
116
+ if (stdout.lastIndexOf("Enterprise Edition") !== -1) {
117
+ logger.info("\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \u{1F44F}");
118
+ logger.info(`You can test it using:
133
119
  > qcobjects --version
134
120
 
135
121
  To find more help, type the command:
@@ -138,29 +124,16 @@ To find more help, type the command:
138
124
 
139
125
  Enjoy!
140
126
  `);
141
- } else {
142
- console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
143
- console.log("Ask your executive to help");
144
- }
145
- });
146
- } else {
147
- console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
148
- if (stderr.lastIndexOf("Authentication failed") !== -1) {
149
- console.log("Please ask to your executive for the right license number");
150
- } else {
151
- console.log(stderr);
152
- }
153
- }
154
- }).stdout.on("data", function(data) {
155
- console.log(data);
156
- });
157
- }
158
- };
159
- Package("org.qcobjects.enterprise.commands", [
160
- QCObjectsEnterprise
161
- ]);
162
- exports = { QCObjectsEnterprise };
127
+ } else {
128
+ console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
129
+ console.log("Ask your executive to help");
130
+ }
163
131
  }
164
- });
165
- export default require_org_qcobjects_enterprise_commands();
132
+ };
133
+ Package("org.qcobjects.enterprise.commands", [
134
+ QCObjectsEnterprise
135
+ ]);
136
+ export {
137
+ QCObjectsEnterprise
138
+ };
166
139
  //# sourceMappingURL=org.qcobjects.enterprise.commands.mjs.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 QCObjectsEnterprise\n]);\n\nexports = {QCObjectsEnterprise};"],
5
- "mappings": "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",
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\n]);\n\n"],
5
+ "mappings": "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",
6
+ "names": ["email", "license"]
7
7
  }
@@ -1,5 +1,4 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __getOwnPropNames = Object.getOwnPropertyNames;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
3
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
4
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -7,63 +6,55 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
6
  if (typeof require !== "undefined") return require.apply(this, arguments);
8
7
  throw Error('Dynamic require of "' + x + '" is not supported');
9
8
  });
10
- var __commonJS = (cb, mod) => function __require2() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
- };
13
9
 
14
10
  // src/org.quickcorp.qcobjects.api.client_services.ts
15
- var require_org_quickcorp_qcobjects_api_client_services = __commonJS({
16
- "src/org.quickcorp.qcobjects.api.client_services.ts"(exports) {
17
- var { Package, Service, logger } = __require("qcobjects");
18
- var QuickCorpCloud = class extends Service {
19
- static {
20
- __name(this, "QuickCorpCloud");
21
- }
22
- constructor({
23
- name = "quickcorp_cloud",
24
- external = true,
25
- useHTTP2 = true,
26
- cached = false,
27
- method = "post",
28
- headers = {
29
- "origin": "localhost",
30
- "content-type": "application/json"
31
- },
32
- basePath = "https://cloud.quickcorp.org/",
33
- url = "",
34
- withCredentials = false
35
- }) {
36
- super({
37
- name,
38
- external,
39
- useHTTP2,
40
- cached,
41
- method,
42
- headers,
43
- basePath,
44
- url,
45
- withCredentials
46
- });
47
- }
48
- _new_(o) {
49
- this.headers["authorization"] = "Basic token";
50
- this.url = this.basePath + o.apiMethod;
51
- this.data = o.data;
52
- }
53
- done(service, standardResponse) {
54
- logger.debug(standardResponse);
55
- }
56
- fail(e) {
57
- logger.debug(e);
58
- }
59
- };
60
- Package("org.quickcorp.qcobjects.api.client_services", [
61
- QuickCorpCloud
62
- ]);
63
- exports = {
64
- QuickCorpCloud
65
- };
11
+ var { Package, Service, logger } = __require("qcobjects");
12
+ var QuickCorpCloud = class extends Service {
13
+ static {
14
+ __name(this, "QuickCorpCloud");
66
15
  }
67
- });
68
- export default require_org_quickcorp_qcobjects_api_client_services();
16
+ constructor({
17
+ name = "quickcorp_cloud",
18
+ external = true,
19
+ useHTTP2 = true,
20
+ cached = false,
21
+ method = "post",
22
+ headers = {
23
+ "origin": "localhost",
24
+ "content-type": "application/json"
25
+ },
26
+ basePath = "https://cloud.quickcorp.org/",
27
+ url = "",
28
+ withCredentials = false
29
+ }) {
30
+ super({
31
+ name,
32
+ external,
33
+ useHTTP2,
34
+ cached,
35
+ method,
36
+ headers,
37
+ basePath,
38
+ url,
39
+ withCredentials
40
+ });
41
+ }
42
+ _new_(o) {
43
+ this.headers["authorization"] = "Basic token";
44
+ this.url = this.basePath + o.apiMethod;
45
+ this.data = o.data;
46
+ }
47
+ done(service, standardResponse) {
48
+ logger.debug(standardResponse);
49
+ }
50
+ fail(e) {
51
+ logger.debug(e);
52
+ }
53
+ };
54
+ Package("org.quickcorp.qcobjects.api.client_services", [
55
+ QuickCorpCloud
56
+ ]);
57
+ export {
58
+ QuickCorpCloud
59
+ };
69
60
  //# sourceMappingURL=org.quickcorp.qcobjects.api.client_services.mjs.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,QAAM,EAAC,SAAS,SAAS,OAAM,IAAI,UAAQ,WAAW;AAEtD,QAAM,iBAAN,cAA6B,QAAQ;AAAA,MAlCrC,OAkCqC;AAAA;AAAA;AAAA,MACnC,YAAa;AAAA,QACX,OAAM;AAAA,QACN,WAAU;AAAA,QACV,WAAS;AAAA,QACT,SAAQ;AAAA,QACR,SAAQ;AAAA,QACR,UAAS;AAAA,UACP,UAAU;AAAA,UACV,gBAAgB;AAAA,QAClB;AAAA,QACA,WAAU;AAAA,QACV,MAAK;AAAA,QACL,kBAAiB;AAAA,MACnB,GAAG;AACD,cAAM;AAAA,UACJ;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MAEH;AAAA,MAEA,MAAM,GAAO;AAEX,aAAK,QAAQ,eAAe,IAAI;AAChC,aAAK,MAAM,KAAK,WAAW,EAAE;AAC7B,aAAK,OAAO,EAAE;AAAA,MAChB;AAAA,MAEA,KAAK,SAAY,kBAAsB;AAErC,eAAO,MAAM,gBAAgB;AAAA,MAC/B;AAAA,MAEA,KAAK,GAAM;AACP,eAAO,MAAM,CAAC;AAAA,MAClB;AAAA,IAEF;AAEA,YAAQ,+CAA+C;AAAA,MACvD;AAAA,IACA,CAAC;AAED,cAAU;AAAA,MACR;AAAA,IACF;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": ";;;;;;;;;;AAgCA,IAAM,EAAC,SAAS,SAAS,OAAM,IAAI,UAAQ,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
  }