qcobjects-cli 2.5.103-beta → 2.5.104-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/build-esbuild.js +4 -3
- package/package.json +55 -21
- package/public/browser/com.qcobjects.cli.commands.jira.client_services.js +66 -55
- package/public/browser/com.qcobjects.cli.commands.jira.client_services.js.map +2 -2
- package/public/browser/com.qcobjects.cli.commands.jira.js +138 -93
- package/public/browser/com.qcobjects.cli.commands.jira.js.map +4 -4
- package/public/browser/com.qcobjects.cli.commands.js +371 -14
- package/public/browser/com.qcobjects.cli.commands.js.map +4 -4
- package/public/browser/com.qcobjects.cli.commands.version.js +220 -214
- package/public/browser/com.qcobjects.cli.commands.version.js.map +2 -2
- package/public/browser/index.js +4042 -13
- package/public/browser/index.js.map +4 -4
- package/public/browser/org.qcobjects.common.pipelog.js +37 -24
- package/public/browser/org.qcobjects.common.pipelog.js.map +2 -2
- package/public/browser/org.qcobjects.enterprise.commands.js +108 -117
- package/public/browser/org.qcobjects.enterprise.commands.js.map +3 -3
- package/public/browser/org.quickcorp.qcobjects.api.client_services.js +64 -55
- package/public/browser/org.quickcorp.qcobjects.api.client_services.js.map +2 -2
- package/public/browser/org.quickcorp.qcobjects.cli.js +1280 -379
- package/public/browser/org.quickcorp.qcobjects.cli.js.map +4 -4
- package/public/browser/org.quickcorp.qcobjects.defaultsettings.js +373 -359
- package/public/browser/org.quickcorp.qcobjects.defaultsettings.js.map +2 -2
- package/public/browser/qcobjects-cli.js +4042 -13
- package/public/browser/qcobjects-cli.js.map +4 -4
- package/public/cjs/com.qcobjects.cli.commands.cjs +377 -6
- package/public/cjs/com.qcobjects.cli.commands.cjs.map +4 -4
- package/public/cjs/com.qcobjects.cli.commands.jira.cjs +82 -24
- package/public/cjs/com.qcobjects.cli.commands.jira.cjs.map +4 -4
- package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs +25 -1
- package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs.map +2 -2
- package/public/cjs/com.qcobjects.cli.commands.version.cjs +25 -6
- package/public/cjs/com.qcobjects.cli.commands.version.cjs.map +2 -2
- package/public/cjs/index.cjs +4042 -13
- package/public/cjs/index.cjs.map +4 -4
- package/public/cjs/org.qcobjects.common.pipelog.cjs +40 -14
- package/public/cjs/org.qcobjects.common.pipelog.cjs.map +2 -2
- package/public/cjs/org.qcobjects.enterprise.commands.cjs +38 -34
- package/public/cjs/org.qcobjects.enterprise.commands.cjs.map +3 -3
- package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs +24 -2
- package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs.map +2 -2
- package/public/cjs/org.quickcorp.qcobjects.cli.cjs +1032 -118
- package/public/cjs/org.quickcorp.qcobjects.cli.cjs.map +4 -4
- package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs +362 -334
- package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs.map +2 -2
- package/public/cjs/qcobjects-cli.cjs +4047 -13
- package/public/cjs/qcobjects-cli.cjs.map +4 -4
- package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs +50 -57
- package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs.map +2 -2
- package/public/esm/com.qcobjects.cli.commands.jira.mjs +119 -94
- package/public/esm/com.qcobjects.cli.commands.jira.mjs.map +4 -4
- package/public/esm/com.qcobjects.cli.commands.mjs +357 -16
- package/public/esm/com.qcobjects.cli.commands.mjs.map +4 -4
- package/public/esm/com.qcobjects.cli.commands.version.mjs +204 -216
- package/public/esm/com.qcobjects.cli.commands.version.mjs.map +2 -2
- package/public/esm/index.mjs +4043 -13
- package/public/esm/index.mjs.map +4 -4
- package/public/esm/org.qcobjects.common.pipelog.mjs +21 -26
- package/public/esm/org.qcobjects.common.pipelog.mjs.map +2 -2
- package/public/esm/org.qcobjects.enterprise.commands.mjs +92 -119
- package/public/esm/org.qcobjects.enterprise.commands.mjs.map +3 -3
- package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs +48 -57
- package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs.map +2 -2
- package/public/esm/org.quickcorp.qcobjects.cli.mjs +1266 -380
- package/public/esm/org.quickcorp.qcobjects.cli.mjs.map +4 -4
- package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs +357 -361
- package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs.map +2 -2
- package/public/esm/qcobjects-cli.mjs +4046 -14
- package/public/esm/qcobjects-cli.mjs.map +4 -4
- package/public/index.d.ts +140 -10
- package/src/com.qcobjects.cli.commands.jira.client_services.ts +19 -21
- package/src/com.qcobjects.cli.commands.jira.ts +11 -34
- package/src/com.qcobjects.cli.commands.ts +3 -9
- package/src/com.qcobjects.cli.commands.version.ts +1 -9
- package/src/org.qcobjects.common.pipelog.ts +18 -15
- package/src/org.qcobjects.enterprise.commands.ts +29 -50
- package/src/org.quickcorp.qcobjects.api.client_services.ts +1 -4
- package/src/org.quickcorp.qcobjects.cli.ts +28 -57
- package/src/org.quickcorp.qcobjects.defaultsettings.ts +359 -355
- 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
|
|
13
|
-
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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\
|
|
5
|
-
"mappings": "
|
|
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
|
|
13
|
-
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
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\";\
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["email", "license"
|
|
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,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
|
|
13
|
-
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
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\
|
|
5
|
-
"mappings": "
|
|
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
|
}
|