qcobjects-cli 2.4.66 → 2.5.103-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/.github/workflows/npmpublish-beta.yml +4 -4
- package/.github/workflows/npmpublish-lts.yml +4 -4
- package/.github/workflows/npmpublish-main.yml +4 -4
- package/VERSION +1 -1
- package/build-esbuild.js +69 -0
- package/eslint.config.mjs +88 -0
- package/package.json +74 -46
- package/public/browser/backend/com.qcobjects.backend.microservice.static.js +318 -0
- package/public/browser/backend/com.qcobjects.backend.microservice.static.js.map +7 -0
- package/public/browser/backend/org.qcobjects.backend.php.js +290 -0
- package/public/browser/backend/org.qcobjects.backend.php.js.map +7 -0
- package/public/browser/com.qcobjects.cli.commands.jira.client_services.js +72 -0
- package/public/browser/com.qcobjects.cli.commands.jira.client_services.js.map +7 -0
- package/public/browser/com.qcobjects.cli.commands.jira.js +117 -0
- package/public/browser/com.qcobjects.cli.commands.jira.js.map +7 -0
- package/public/browser/com.qcobjects.cli.commands.js +30 -0
- package/public/browser/com.qcobjects.cli.commands.js.map +7 -0
- package/public/browser/com.qcobjects.cli.commands.version.js +241 -0
- package/public/browser/com.qcobjects.cli.commands.version.js.map +7 -0
- package/public/browser/index.js +97 -0
- package/public/browser/index.js.map +7 -0
- package/public/browser/org.qcobjects.common.pipelog.js +43 -0
- package/public/browser/org.qcobjects.common.pipelog.js.map +7 -0
- package/public/browser/org.qcobjects.enterprise.commands.js +169 -0
- package/public/browser/org.qcobjects.enterprise.commands.js.map +7 -0
- package/public/browser/org.quickcorp.qcobjects.api.client_services.js +72 -0
- package/public/browser/org.quickcorp.qcobjects.api.client_services.js.map +7 -0
- package/public/browser/org.quickcorp.qcobjects.cli.js +3185 -0
- package/public/browser/org.quickcorp.qcobjects.cli.js.map +7 -0
- package/public/browser/org.quickcorp.qcobjects.collab.server.js +422 -0
- package/public/browser/org.quickcorp.qcobjects.collab.server.js.map +7 -0
- package/public/browser/org.quickcorp.qcobjects.defaultsettings.js +383 -0
- package/public/browser/org.quickcorp.qcobjects.defaultsettings.js.map +7 -0
- package/public/browser/org.quickcorp.qcobjects.main.file.js +248 -0
- package/public/browser/org.quickcorp.qcobjects.main.file.js.map +7 -0
- package/public/browser/org.quickcorp.qcobjects.main.http.gae.server.js +538 -0
- package/public/browser/org.quickcorp.qcobjects.main.http.gae.server.js.map +7 -0
- package/public/browser/org.quickcorp.qcobjects.main.http.server.js +600 -0
- package/public/browser/org.quickcorp.qcobjects.main.http.server.js.map +7 -0
- package/public/browser/org.quickcorp.qcobjects.main.http2.server.js +465 -0
- package/public/browser/org.quickcorp.qcobjects.main.http2.server.js.map +7 -0
- package/public/browser/qcobjects-cli.js +89 -0
- package/public/browser/qcobjects-cli.js.map +7 -0
- package/public/browser/qcobjects-collab.js +41 -0
- package/public/browser/qcobjects-collab.js.map +7 -0
- package/public/browser/qcobjects-createcert.js +67 -0
- package/public/browser/qcobjects-createcert.js.map +7 -0
- package/public/browser/qcobjects-gae-http-server.js +41 -0
- package/public/browser/qcobjects-gae-http-server.js.map +7 -0
- package/public/browser/qcobjects-http-server.js +41 -0
- package/public/browser/qcobjects-http-server.js.map +7 -0
- package/public/browser/qcobjects-http2-server.js +44 -0
- package/public/browser/qcobjects-http2-server.js.map +7 -0
- package/public/browser/qcobjects-shell.js +50 -0
- package/public/browser/qcobjects-shell.js.map +7 -0
- package/public/browser/types/global/index.d.js +15 -0
- package/public/browser/types/global/index.d.js.map +7 -0
- package/public/cjs/backend/com.qcobjects.backend.microservice.static.cjs +305 -0
- package/public/cjs/backend/com.qcobjects.backend.microservice.static.cjs.map +7 -0
- package/public/cjs/backend/org.qcobjects.backend.php.cjs +273 -0
- package/public/cjs/backend/org.qcobjects.backend.php.cjs.map +7 -0
- package/public/cjs/com.qcobjects.cli.commands.cjs +13 -0
- package/public/cjs/com.qcobjects.cli.commands.cjs.map +7 -0
- package/public/cjs/com.qcobjects.cli.commands.jira.cjs +100 -0
- package/public/cjs/com.qcobjects.cli.commands.jira.cjs.map +7 -0
- package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs +55 -0
- package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs.map +7 -0
- package/public/cjs/com.qcobjects.cli.commands.version.cjs +224 -0
- package/public/cjs/com.qcobjects.cli.commands.version.cjs.map +7 -0
- package/public/cjs/index.cjs +89 -0
- package/public/cjs/index.cjs.map +7 -0
- package/public/cjs/org.qcobjects.common.pipelog.cjs +26 -0
- package/public/cjs/org.qcobjects.common.pipelog.cjs.map +7 -0
- package/public/cjs/org.qcobjects.enterprise.commands.cjs +152 -0
- package/public/cjs/org.qcobjects.enterprise.commands.cjs.map +7 -0
- package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs +55 -0
- package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs.map +7 -0
- package/public/cjs/org.quickcorp.qcobjects.cli.cjs +3172 -0
- package/public/cjs/org.quickcorp.qcobjects.cli.cjs.map +7 -0
- package/public/cjs/org.quickcorp.qcobjects.collab.server.cjs +405 -0
- package/public/cjs/org.quickcorp.qcobjects.collab.server.cjs.map +7 -0
- package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs +366 -0
- package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs.map +7 -0
- package/public/cjs/org.quickcorp.qcobjects.main.file.cjs +235 -0
- package/public/cjs/org.quickcorp.qcobjects.main.file.cjs.map +7 -0
- package/public/cjs/org.quickcorp.qcobjects.main.http.gae.server.cjs +525 -0
- package/public/cjs/org.quickcorp.qcobjects.main.http.gae.server.cjs.map +7 -0
- package/public/cjs/org.quickcorp.qcobjects.main.http.server.cjs +587 -0
- package/public/cjs/org.quickcorp.qcobjects.main.http.server.cjs.map +7 -0
- package/public/cjs/org.quickcorp.qcobjects.main.http2.server.cjs +452 -0
- package/public/cjs/org.quickcorp.qcobjects.main.http2.server.cjs.map +7 -0
- package/public/cjs/qcobjects-cli.cjs +81 -0
- package/public/cjs/qcobjects-cli.cjs.map +7 -0
- package/public/cjs/qcobjects-collab.cjs +24 -0
- package/public/cjs/qcobjects-collab.cjs.map +7 -0
- package/public/cjs/qcobjects-createcert.cjs +50 -0
- package/public/cjs/qcobjects-createcert.cjs.map +7 -0
- package/public/cjs/qcobjects-gae-http-server.cjs +24 -0
- package/public/cjs/qcobjects-gae-http-server.cjs.map +7 -0
- package/public/cjs/qcobjects-http-server.cjs +24 -0
- package/public/cjs/qcobjects-http-server.cjs.map +7 -0
- package/public/cjs/qcobjects-http2-server.cjs +27 -0
- package/public/cjs/qcobjects-http2-server.cjs.map +7 -0
- package/public/cjs/qcobjects-shell.cjs +34 -0
- package/public/cjs/qcobjects-shell.cjs.map +7 -0
- package/public/cjs/types/global/index.d.cjs +2 -0
- package/public/cjs/types/global/index.d.cjs.map +7 -0
- package/public/esm/backend/com.qcobjects.backend.microservice.static.mjs +315 -0
- package/public/esm/backend/com.qcobjects.backend.microservice.static.mjs.map +7 -0
- package/public/esm/backend/org.qcobjects.backend.php.mjs +287 -0
- package/public/esm/backend/org.qcobjects.backend.php.mjs.map +7 -0
- package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs +69 -0
- package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs.map +7 -0
- package/public/esm/com.qcobjects.cli.commands.jira.mjs +114 -0
- package/public/esm/com.qcobjects.cli.commands.jira.mjs.map +7 -0
- package/public/esm/com.qcobjects.cli.commands.mjs +27 -0
- package/public/esm/com.qcobjects.cli.commands.mjs.map +7 -0
- package/public/esm/com.qcobjects.cli.commands.version.mjs +238 -0
- package/public/esm/com.qcobjects.cli.commands.version.mjs.map +7 -0
- package/public/esm/index.mjs +78 -0
- package/public/esm/index.mjs.map +7 -0
- package/public/esm/org.qcobjects.common.pipelog.mjs +40 -0
- package/public/esm/org.qcobjects.common.pipelog.mjs.map +7 -0
- package/public/esm/org.qcobjects.enterprise.commands.mjs +166 -0
- package/public/esm/org.qcobjects.enterprise.commands.mjs.map +7 -0
- package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs +69 -0
- package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs.map +7 -0
- package/public/esm/org.quickcorp.qcobjects.cli.mjs +3182 -0
- package/public/esm/org.quickcorp.qcobjects.cli.mjs.map +7 -0
- package/public/esm/org.quickcorp.qcobjects.collab.server.mjs +419 -0
- package/public/esm/org.quickcorp.qcobjects.collab.server.mjs.map +7 -0
- package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs +380 -0
- package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs.map +7 -0
- package/public/esm/org.quickcorp.qcobjects.main.file.mjs +245 -0
- package/public/esm/org.quickcorp.qcobjects.main.file.mjs.map +7 -0
- package/public/esm/org.quickcorp.qcobjects.main.http.gae.server.mjs +535 -0
- package/public/esm/org.quickcorp.qcobjects.main.http.gae.server.mjs.map +7 -0
- package/public/esm/org.quickcorp.qcobjects.main.http.server.mjs +597 -0
- package/public/esm/org.quickcorp.qcobjects.main.http.server.mjs.map +7 -0
- package/public/esm/org.quickcorp.qcobjects.main.http2.server.mjs +462 -0
- package/public/esm/org.quickcorp.qcobjects.main.http2.server.mjs.map +7 -0
- package/public/esm/qcobjects-cli.mjs +68 -0
- package/public/esm/qcobjects-cli.mjs.map +7 -0
- package/public/esm/qcobjects-collab.mjs +38 -0
- package/public/esm/qcobjects-collab.mjs.map +7 -0
- package/public/esm/qcobjects-createcert.mjs +64 -0
- package/public/esm/qcobjects-createcert.mjs.map +7 -0
- package/public/esm/qcobjects-gae-http-server.mjs +38 -0
- package/public/esm/qcobjects-gae-http-server.mjs.map +7 -0
- package/public/esm/qcobjects-http-server.mjs +38 -0
- package/public/esm/qcobjects-http-server.mjs.map +7 -0
- package/public/esm/qcobjects-http2-server.mjs +41 -0
- package/public/esm/qcobjects-http2-server.mjs.map +7 -0
- package/public/esm/qcobjects-shell.mjs +26 -0
- package/public/esm/qcobjects-shell.mjs.map +7 -0
- package/public/esm/types/global/index.d.mjs +12 -0
- package/public/esm/types/global/index.d.mjs.map +7 -0
- package/public/index.d.ts +35 -0
- package/spec/support/jasmine.json +7 -4
- package/src/backend/{com.qcobjects.backend.microservice.static.js → com.qcobjects.backend.microservice.static.ts} +42 -28
- package/src/backend/org.qcobjects.backend.php.ts +348 -0
- package/src/{com.qcobjects.cli.commands.jira.client_services.js → com.qcobjects.cli.commands.jira.client_services.ts} +49 -33
- package/src/com.qcobjects.cli.commands.jira.ts +147 -0
- package/src/com.qcobjects.cli.commands.version.ts +293 -0
- package/src/{index.mjs → index.cts} +1 -1
- package/src/index.mts +2 -0
- package/src/index.ts +1 -1
- package/src/{org.qcobjects.common.pipelog.js → org.qcobjects.common.pipelog.ts} +4 -4
- package/src/org.qcobjects.enterprise.commands.ts +195 -0
- package/src/{org.quickcorp.qcobjects.api.client_services.js → org.quickcorp.qcobjects.api.client_services.ts} +49 -32
- package/src/org.quickcorp.qcobjects.cli.ts +533 -0
- package/src/org.quickcorp.qcobjects.collab.server.ts +420 -0
- package/src/{org.quickcorp.qcobjects.defaultsettings.js → org.quickcorp.qcobjects.defaultsettings.ts} +118 -95
- package/src/org.quickcorp.qcobjects.main.file.ts +180 -0
- package/src/org.quickcorp.qcobjects.main.http.gae.server.ts +507 -0
- package/src/org.quickcorp.qcobjects.main.http.server.ts +551 -0
- package/src/org.quickcorp.qcobjects.main.http2.server.ts +419 -0
- package/src/{qcobjects-cli.js → qcobjects-cli.ts} +7 -8
- package/src/{qcobjects-collab.js → qcobjects-collab.ts} +4 -4
- package/src/{qcobjects-createcert.js → qcobjects-createcert.ts} +5 -3
- package/src/{qcobjects-gae-http-server.js → qcobjects-gae-http-server.ts} +4 -4
- package/src/{qcobjects-http-server.js → qcobjects-http-server.ts} +4 -4
- package/src/{qcobjects-http2-server.js → qcobjects-http2-server.ts} +6 -8
- package/src/{qcobjects-shell.js → qcobjects-shell.ts} +11 -14
- package/src/types/global/index.d.ts +2 -0
- package/tsconfig.d.json +45 -3
- package/tsconfig.jasmine.json +39 -0
- package/tsconfig.json +50 -7
- package/.eslintignore +0 -5
- package/.eslintrc.cjs +0 -6
- package/src/backend/org.qcobjects.backend.php.js +0 -334
- package/src/com.qcobjects.cli.commands.jira.js +0 -144
- package/src/com.qcobjects.cli.commands.version.js +0 -285
- package/src/index.cjs +0 -2
- package/src/index.d.ts +0 -2
- package/src/org.qcobjects.enterprise.commands.js +0 -194
- package/src/org.quickcorp.qcobjects.cli.js +0 -523
- package/src/org.quickcorp.qcobjects.collab.server.js +0 -415
- package/src/org.quickcorp.qcobjects.main.file.js +0 -159
- package/src/org.quickcorp.qcobjects.main.http.gae.server.js +0 -495
- package/src/org.quickcorp.qcobjects.main.http.server.js +0 -529
- package/src/org.quickcorp.qcobjects.main.http2.server.js +0 -392
- /package/spec/{testsSpec.js → testsSpec.ts} +0 -0
- /package/src/{com.qcobjects.cli.commands.js → com.qcobjects.cli.commands.ts} +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var global = (() => {
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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);
|
|
27
|
+
|
|
28
|
+
// src/index.ts
|
|
29
|
+
var src_exports = {};
|
|
30
|
+
__export(src_exports, {
|
|
31
|
+
default: () => src_default
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// src/qcobjects-cli.ts
|
|
35
|
+
var qcobjects_cli_exports = {};
|
|
36
|
+
__export(qcobjects_cli_exports, {
|
|
37
|
+
default: () => qcobjects_cli_default
|
|
38
|
+
});
|
|
39
|
+
var path = __require("path");
|
|
40
|
+
var absolutePath = path.resolve(__dirname, "./");
|
|
41
|
+
var templatePath = path.resolve(__dirname, "./templates/apps/") + "/";
|
|
42
|
+
var package_config = __require(absolutePath + "/../package.json");
|
|
43
|
+
var { logger, InheritClass } = __require("qcobjects");
|
|
44
|
+
logger.debugEnabled = false;
|
|
45
|
+
var welcometo = "Welcome to \n";
|
|
46
|
+
var instructions = `
|
|
47
|
+
Community Edition
|
|
48
|
+
=================
|
|
49
|
+
|
|
50
|
+
This edition has the most of features that you can use for free but if you want to
|
|
51
|
+
|
|
52
|
+
Upgrade to \u{1F3E2} Enterprise Edition,
|
|
53
|
+
type the command:
|
|
54
|
+
|
|
55
|
+
> qcobjects upgrade-to-enterprise
|
|
56
|
+
`;
|
|
57
|
+
var logo = ` .d88888b. .d8888b. .d88888b. 888 d8b 888 \r
|
|
58
|
+
d88P" "Y88bd88P Y88bd88P" "Y88b888 Y8P 888 \r
|
|
59
|
+
888 888888 888888 888888 888 \r
|
|
60
|
+
888 888888 888 88888888b. 8888 .d88b. .d8888b888888.d8888b \r
|
|
61
|
+
888 888888 888 888888 "88b "888d8P Y8bd88P" 888 88K \r
|
|
62
|
+
888 Y8b 888888 888888 888888 888 88888888888888 888 "Y8888b. \r
|
|
63
|
+
Y88b.Y8b88PY88b d88PY88b. .d88P888 d88P 888Y8b. Y88b. Y88b. X88 \r
|
|
64
|
+
"Y888888" "Y8888P" "Y88888P" 88888P" 888 "Y8888 "Y8888P "Y888 88888P' \r
|
|
65
|
+
Y8b 888 \r
|
|
66
|
+
d88P \r
|
|
67
|
+
888P" `;
|
|
68
|
+
if (process.argv.length < 3 || process.argv[2] === "create") {
|
|
69
|
+
console.log(welcometo);
|
|
70
|
+
console.log(logo);
|
|
71
|
+
console.log(instructions);
|
|
72
|
+
}
|
|
73
|
+
logger.debugEnabled = false;
|
|
74
|
+
logger.warnEnabled = false;
|
|
75
|
+
logger.infoEnabled = false;
|
|
76
|
+
__require(absolutePath + "/org.quickcorp.qcobjects.defaultsettings.js");
|
|
77
|
+
var { SwitchCommander } = __require(absolutePath + "/org.quickcorp.qcobjects.cli");
|
|
78
|
+
var Main = class extends InheritClass {
|
|
79
|
+
static {
|
|
80
|
+
__name(this, "Main");
|
|
81
|
+
}
|
|
82
|
+
constructor() {
|
|
83
|
+
super();
|
|
84
|
+
const main = this;
|
|
85
|
+
const switchCommander = new SwitchCommander();
|
|
86
|
+
switchCommander.initCommand();
|
|
87
|
+
logger.debug("initialized");
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var __main__ = new Main();
|
|
91
|
+
var qcobjects_cli_default = __main__;
|
|
92
|
+
|
|
93
|
+
// src/index.ts
|
|
94
|
+
var src_default = qcobjects_cli_exports;
|
|
95
|
+
return __toCommonJS(src_exports);
|
|
96
|
+
})();
|
|
97
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts", "../../src/qcobjects-cli.ts"],
|
|
4
|
+
"sourcesContent": ["import * as cli from \"./qcobjects-cli.js\";\nexport default cli;", "#!/usr/bin/env node\n/**\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 path = require(\"path\");\nconst absolutePath = path.resolve( __dirname, \"./\" );\nconst templatePath = path.resolve( __dirname, \"./templates/apps/\" )+\"/\";\nconst package_config = require(absolutePath+\"/../package.json\");\n\n\nconst {logger, InheritClass } = require(\"qcobjects\");\n\nlogger.debugEnabled = false;\nconst welcometo = \"Welcome to \\n\";\nconst instructions = `\nCommunity Edition\n=================\n\nThis edition has the most of features that you can use for free but if you want to\n\nUpgrade to \\u{1F3E2} Enterprise Edition,\ntype the command:\n\n> qcobjects upgrade-to-enterprise\n`;\nconst logo = \" .d88888b. .d8888b. .d88888b. 888 d8b 888 \\r\\nd88P\\\" \\\"Y88bd88P Y88bd88P\\\" \\\"Y88b888 Y8P 888 \\r\\n888 888888 888888 888888 888 \\r\\n888 888888 888 88888888b. 8888 .d88b. .d8888b888888.d8888b \\r\\n888 888888 888 888888 \\\"88b \\\"888d8P Y8bd88P\\\" 888 88K \\r\\n888 Y8b 888888 888888 888888 888 88888888888888 888 \\\"Y8888b. \\r\\nY88b.Y8b88PY88b d88PY88b. .d88P888 d88P 888Y8b. Y88b. Y88b. X88 \\r\\n \\\"Y888888\\\" \\\"Y8888P\\\" \\\"Y88888P\\\" 88888P\\\" 888 \\\"Y8888 \\\"Y8888P \\\"Y888 88888P' \\r\\n Y8b 888 \\r\\n d88P \\r\\n 888P\\\" \";\nif (process.argv.length<3 || process.argv[2] === \"create\"){\n console.log(welcometo);\n console.log(logo);\n console.log(instructions);\n}\nlogger.debugEnabled = false;\nlogger.warnEnabled = false;\nlogger.infoEnabled = false;\n\nrequire(absolutePath+\"/org.quickcorp.qcobjects.defaultsettings.js\");\n\nconst {SwitchCommander} = require(absolutePath+\"/org.quickcorp.qcobjects.cli\");\n\nclass Main extends InheritClass {\n constructor (){\n super();\n const main = this;\n\n const switchCommander = new SwitchCommander();\n switchCommander.initCommand();\n\n logger.debug(\"initialized\");\n\n\n }\n\n}\n\nconst __main__ = new Main ();\nexport default __main__;"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAgCA,MAAM,OAAO,UAAQ,MAAM;AAC3B,MAAM,eAAe,KAAK,QAAS,WAAW,IAAK;AACnD,MAAM,eAAe,KAAK,QAAS,WAAW,mBAAoB,IAAE;AACpE,MAAM,iBAAiB,UAAQ,eAAa,kBAAkB;AAG9D,MAAM,EAAC,QAAQ,aAAa,IAAI,UAAQ,WAAW;AAEnD,SAAO,eAAe;AACtB,MAAM,YAAY;AAClB,MAAM,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWrB,MAAM,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACb,MAAI,QAAQ,KAAK,SAAO,KAAK,QAAQ,KAAK,CAAC,MAAM,UAAS;AACxD,YAAQ,IAAI,SAAS;AACrB,YAAQ,IAAI,IAAI;AAChB,YAAQ,IAAI,YAAY;AAAA,EAC1B;AACA,SAAO,eAAe;AACtB,SAAO,cAAc;AACrB,SAAO,cAAc;AAErB,YAAQ,eAAa,6CAA6C;AAElE,MAAM,EAAC,gBAAe,IAAI,UAAQ,eAAa,8BAA8B;AAE7E,MAAM,OAAN,cAAmB,aAAa;AAAA,IAnEhC,OAmEgC;AAAA;AAAA;AAAA,IAC9B,cAAc;AACZ,YAAM;AACN,YAAM,OAAO;AAEb,YAAM,kBAAkB,IAAI,gBAAgB;AAC5C,sBAAgB,YAAY;AAE5B,aAAO,MAAM,aAAa;AAAA,IAG5B;AAAA,EAEF;AAEA,MAAM,WAAW,IAAI,KAAM;AAC3B,MAAO,wBAAQ;;;ADlFf,MAAO,cAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var global = (() => {
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
7
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
8
|
+
}) : x)(function(x) {
|
|
9
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
10
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
11
|
+
});
|
|
12
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// 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(" ");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return require_org_qcobjects_common_pipelog();
|
|
42
|
+
})();
|
|
43
|
+
//# sourceMappingURL=org.qcobjects.common.pipelog.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var global = (() => {
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
7
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
8
|
+
}) : x)(function(x) {
|
|
9
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
10
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
11
|
+
});
|
|
12
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// 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(`
|
|
46
|
+
[NOTE: No information will be sent to a server until I got your consent]
|
|
47
|
+
|
|
48
|
+
Please tell me your e-Mail (\u{1F48C}):
|
|
49
|
+
`, (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(`
|
|
56
|
+
Please select one of the following options (type a number):
|
|
57
|
+
|
|
58
|
+
1.- \u{1F640} This is your first interaction \u{1F60D} with QCObjects Enterprise Edition \u{1F3E2},
|
|
59
|
+
you want to send your email and phone number to one of our executives to process your
|
|
60
|
+
inquiry, pay the license (when aplies) and receive a new fresh license number
|
|
61
|
+
that will free up to you the most advanced features for large companies
|
|
62
|
+
|
|
63
|
+
2.- \u2714 Your assigned executive \u{1F9D1} has given to you a new fresh QCObjects Enterprise Edition License Number
|
|
64
|
+
and you want to enter it to follow up with the next steps.
|
|
65
|
+
|
|
66
|
+
3.- \u{1F3C3} You want to quit this form, as you got here accidentally
|
|
67
|
+
(You should think about it. It's not a coincidence, It's destiny \u{1F600}).
|
|
68
|
+
|
|
69
|
+
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}
|
|
75
|
+
One of our executives will be in touch with you as soon as possible to give you the next steps
|
|
76
|
+
to get a new License Number and start using QCObjects Entrprise Edition!
|
|
77
|
+
|
|
78
|
+
(In the meantime, you can continue using all the features of the QCObjects Community Edition)
|
|
79
|
+
`);
|
|
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();
|
|
110
|
+
}
|
|
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.
|
|
116
|
+
If you want to quit, press Ctrl-C.
|
|
117
|
+
`);
|
|
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:
|
|
135
|
+
> qcobjects --version
|
|
136
|
+
|
|
137
|
+
To find more help, type the command:
|
|
138
|
+
|
|
139
|
+
> qcobjects --help
|
|
140
|
+
|
|
141
|
+
Enjoy!
|
|
142
|
+
`);
|
|
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 };
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
return require_org_qcobjects_enterprise_commands();
|
|
168
|
+
})();
|
|
169
|
+
//# sourceMappingURL=org.qcobjects.enterprise.commands.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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": ";;;;;;;;;;;;;;;;AAAA;AAAA;AA+BA,UAAM,KAAK,UAAQ,IAAI;AACvB,UAAM,OAAO,UAAQ,MAAM;AAC3B,UAAM,eAAe,KAAK,QAAS,WAAW,IAAK;AACnD,UAAM,eAAe,KAAK,QAAS,WAAW,mBAAoB,IAAE;AACpE,UAAM,kBAAkB,KAAK,QAAS,WAAW,kBAAmB,IAAE;AACtE,UAAM,iBAAiB,UAAQ,eAAa,kBAAkB;AAC9D,UAAM,EAAE,MAAK,SAAS,IAAI,UAAQ,eAAe;AAEjD,UAAM,EAAC,SAAS,cAAc,QAAQ,OAAM,IAAI,UAAQ,WAAW;AACnE,UAAM,UAAU,OAAO,IAAI,sBAAsB,MAAM;AACvD,UAAM,QAAQ,OAAO,IAAI,oBAAoB,SAAS;AAEtD,UAAM,sBAAN,cAAkC,aAAa;AAAA,QA3C/C,OA2C+C;AAAA;AAAA;AAAA,QAE7C,QAAS,iBAAqB;AAC5B,gBAAM,WAAW;AACjB,iBAAO,SAAS,kBAAkB,SAAS,KAAK;AAAA,QAClD;AAAA,QAEA,QAAS,iBAAoB;AAC3B,gBAAM,WAAW;AACjB,gBAAM,WAAW,UAAQ,UAAU;AAEnC,gBAAM,KAAK,SAAS,gBAAgB;AAAA,YAClC,OAAO,QAAQ;AAAA,YACf,QAAQ,QAAQ;AAAA,UAClB,CAAC;AAED,cAAI,gBAAgB,kCAAW;AAC7B,eAAG,SAAS;AAAA;AAAA;AAAA;AAAA,KAIb,CAACA,WAAkB;AAChB,oBAAM,WAAW;AACjB,kBAAIA,WAAU,IAAG;AACf,oBAAI,sBAAsB,kCAAW;AACnC,qBAAG,SAAU,oDAAoD,CAAC,gBAAwB;AACxF,wBAAI,gBAAgB,IAAG;AACrB,yBAAG,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8DAciC,CAAC,uBAA2B;AACxE,+BAAO,cAAY;AAEnB,gCAAQ,oBAAoB;AAAA,0BAC1B,KAAK;AACH,4CAAgB,SAASA,QAAM,WAAW,EAAE,KAAK,SAAU,UAAc;AACvE,qCAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,GAKjC;AACqB,iCAAG,MAAM;AAAA,4BACX,CAAC,EAAE,MAAO,CAAC,MAAS;AAClB,iCAAG,MAAM;AAAA,4BACX,CAAC;AACD;AAAA,0BACF,KAAK;AACH,+BAAG,cAAc;AACjB,+BAAG,iBAAiB,gCAAS,eAAe,eAAoB;AAC9D,kCAAI,GAAG;AACL,mCAAG,OAAO,MAAM,GAAG;AAAA;AAEnB,mCAAG,OAAO,MAAM,aAAa;AAAA,4BACjC,GALoB;AAMpB,+BAAG,SAAS,iFAAiF,CAACC,aAAiB;AAC7G,iCAAG,cAAc;AACjB,uCAAS,kBAAkBA,UAASD,MAAK;AAEzC,iCAAG,MAAM;AAAA,4BACX,CAAC;AAED;AAAA,0BACF;AACE,mCAAO,KAAK,oFAAoF;AAChG,+BAAG,MAAM;AACT;AAAA,wBACJ;AAAA,sBAEF,CAAC;AAAA,oBAEH,OAAO;AACL,8BAAQ,IAAI;AAAA;AAAA,GAEzB;AACa,0CAAoB;AAAA,oBACtB;AAAA,kBACF,CAAC;AAAA,gBACH,GAjE0B;AAkE1B,oCAAoB;AAAA,cAEtB,OAAO;AACL,wBAAQ,IAAI;AAAA;AAAA,GAEnB;AACO,8BAAc;AAAA,cAChB;AAAA,YACF,CAAC;AAAA,UAEH,GApFoB;AAqFpB,wBAAc;AAAA,QAEhB;AAAA,QAEA,kBAAmBC,UAAyBD,QAAY;AACtD,gBAAM,WAAW;AAEjB,iBAAO,KAAK,kCAAkC,SAAS,OAAOC,SAAQ,MAAM,CAAC,2CAA2CD,MAAK,EAAE;AAC/H,iBAAO,KAAK,sEAAsE;AAClF,gBAAM,iBAAiB,wCAAwCC,QAAO;AACtE,eAAK,gBAAe,CAAC,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"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var global = (() => {
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
7
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
8
|
+
}) : x)(function(x) {
|
|
9
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
10
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
11
|
+
});
|
|
12
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// 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
|
+
}
|
|
69
|
+
});
|
|
70
|
+
return require_org_quickcorp_qcobjects_api_client_services();
|
|
71
|
+
})();
|
|
72
|
+
//# sourceMappingURL=org.quickcorp.qcobjects.api.client_services.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|