qcobjects-cli 2.5.103-beta → 2.5.104-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/VERSION +1 -1
  2. package/build-esbuild.js +4 -3
  3. package/package.json +55 -21
  4. package/public/browser/com.qcobjects.cli.commands.jira.client_services.js +66 -55
  5. package/public/browser/com.qcobjects.cli.commands.jira.client_services.js.map +2 -2
  6. package/public/browser/com.qcobjects.cli.commands.jira.js +138 -93
  7. package/public/browser/com.qcobjects.cli.commands.jira.js.map +4 -4
  8. package/public/browser/com.qcobjects.cli.commands.js +371 -14
  9. package/public/browser/com.qcobjects.cli.commands.js.map +4 -4
  10. package/public/browser/com.qcobjects.cli.commands.version.js +220 -214
  11. package/public/browser/com.qcobjects.cli.commands.version.js.map +2 -2
  12. package/public/browser/index.js +4042 -13
  13. package/public/browser/index.js.map +4 -4
  14. package/public/browser/org.qcobjects.common.pipelog.js +37 -24
  15. package/public/browser/org.qcobjects.common.pipelog.js.map +2 -2
  16. package/public/browser/org.qcobjects.enterprise.commands.js +108 -117
  17. package/public/browser/org.qcobjects.enterprise.commands.js.map +3 -3
  18. package/public/browser/org.quickcorp.qcobjects.api.client_services.js +64 -55
  19. package/public/browser/org.quickcorp.qcobjects.api.client_services.js.map +2 -2
  20. package/public/browser/org.quickcorp.qcobjects.cli.js +1280 -379
  21. package/public/browser/org.quickcorp.qcobjects.cli.js.map +4 -4
  22. package/public/browser/org.quickcorp.qcobjects.defaultsettings.js +373 -359
  23. package/public/browser/org.quickcorp.qcobjects.defaultsettings.js.map +2 -2
  24. package/public/browser/qcobjects-cli.js +4042 -13
  25. package/public/browser/qcobjects-cli.js.map +4 -4
  26. package/public/cjs/com.qcobjects.cli.commands.cjs +377 -6
  27. package/public/cjs/com.qcobjects.cli.commands.cjs.map +4 -4
  28. package/public/cjs/com.qcobjects.cli.commands.jira.cjs +82 -24
  29. package/public/cjs/com.qcobjects.cli.commands.jira.cjs.map +4 -4
  30. package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs +25 -1
  31. package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs.map +2 -2
  32. package/public/cjs/com.qcobjects.cli.commands.version.cjs +25 -6
  33. package/public/cjs/com.qcobjects.cli.commands.version.cjs.map +2 -2
  34. package/public/cjs/index.cjs +4042 -13
  35. package/public/cjs/index.cjs.map +4 -4
  36. package/public/cjs/org.qcobjects.common.pipelog.cjs +40 -14
  37. package/public/cjs/org.qcobjects.common.pipelog.cjs.map +2 -2
  38. package/public/cjs/org.qcobjects.enterprise.commands.cjs +38 -34
  39. package/public/cjs/org.qcobjects.enterprise.commands.cjs.map +3 -3
  40. package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs +24 -2
  41. package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs.map +2 -2
  42. package/public/cjs/org.quickcorp.qcobjects.cli.cjs +1032 -118
  43. package/public/cjs/org.quickcorp.qcobjects.cli.cjs.map +4 -4
  44. package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs +362 -334
  45. package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs.map +2 -2
  46. package/public/cjs/qcobjects-cli.cjs +4047 -13
  47. package/public/cjs/qcobjects-cli.cjs.map +4 -4
  48. package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs +50 -57
  49. package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs.map +2 -2
  50. package/public/esm/com.qcobjects.cli.commands.jira.mjs +119 -94
  51. package/public/esm/com.qcobjects.cli.commands.jira.mjs.map +4 -4
  52. package/public/esm/com.qcobjects.cli.commands.mjs +357 -16
  53. package/public/esm/com.qcobjects.cli.commands.mjs.map +4 -4
  54. package/public/esm/com.qcobjects.cli.commands.version.mjs +204 -216
  55. package/public/esm/com.qcobjects.cli.commands.version.mjs.map +2 -2
  56. package/public/esm/index.mjs +4043 -13
  57. package/public/esm/index.mjs.map +4 -4
  58. package/public/esm/org.qcobjects.common.pipelog.mjs +21 -26
  59. package/public/esm/org.qcobjects.common.pipelog.mjs.map +2 -2
  60. package/public/esm/org.qcobjects.enterprise.commands.mjs +92 -119
  61. package/public/esm/org.qcobjects.enterprise.commands.mjs.map +3 -3
  62. package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs +48 -57
  63. package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs.map +2 -2
  64. package/public/esm/org.quickcorp.qcobjects.cli.mjs +1266 -380
  65. package/public/esm/org.quickcorp.qcobjects.cli.mjs.map +4 -4
  66. package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs +357 -361
  67. package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs.map +2 -2
  68. package/public/esm/qcobjects-cli.mjs +4046 -14
  69. package/public/esm/qcobjects-cli.mjs.map +4 -4
  70. package/public/index.d.ts +140 -10
  71. package/src/com.qcobjects.cli.commands.jira.client_services.ts +19 -21
  72. package/src/com.qcobjects.cli.commands.jira.ts +11 -34
  73. package/src/com.qcobjects.cli.commands.ts +3 -9
  74. package/src/com.qcobjects.cli.commands.version.ts +1 -9
  75. package/src/org.qcobjects.common.pipelog.ts +18 -15
  76. package/src/org.qcobjects.enterprise.commands.ts +29 -50
  77. package/src/org.quickcorp.qcobjects.api.client_services.ts +1 -4
  78. package/src/org.quickcorp.qcobjects.cli.ts +28 -57
  79. package/src/org.quickcorp.qcobjects.defaultsettings.ts +359 -355
  80. package/src/qcobjects-cli.ts +4 -5
@@ -1,13 +1,384 @@
1
1
  "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2
20
 
3
21
  // src/com.qcobjects.cli.commands.ts
22
+ var com_qcobjects_cli_commands_exports = {};
23
+ __export(com_qcobjects_cli_commands_exports, {
24
+ jiraCommand: () => com_qcobjects_cli_commands_jira_exports,
25
+ versionCommand: () => com_qcobjects_cli_commands_version_exports
26
+ });
27
+ module.exports = __toCommonJS(com_qcobjects_cli_commands_exports);
28
+
29
+ // src/com.qcobjects.cli.commands.version.ts
30
+ var com_qcobjects_cli_commands_version_exports = {};
31
+ __export(com_qcobjects_cli_commands_version_exports, {
32
+ CommandHandler: () => CommandHandler
33
+ });
4
34
  var fs = require("fs");
5
35
  var path = require("path");
6
- var absolutePath = path.resolve(__dirname, "./");
7
- var templatePath = path.resolve(__dirname, "./templates/apps/") + "/";
8
- var templatePwaPath = path.resolve(__dirname, "./templates/pwa/") + "/";
9
- var package_config = require(absolutePath + "/../package.json");
10
36
  var { exec, execSync } = require("child_process");
11
- require(absolutePath + "/com.qcobjects.cli.commands.version");
12
- require(absolutePath + "/com.qcobjects.cli.commands.jira");
37
+ var { Package, InheritClass, logger } = require("qcobjects");
38
+ var CommandHandler = class extends InheritClass {
39
+ static {
40
+ __name(this, "CommandHandler");
41
+ }
42
+ constructor({ switchCommander }) {
43
+ super({ switchCommander });
44
+ const commandHandler = this;
45
+ this.choiceOption = {
46
+ v_major(filename, options) {
47
+ filename = typeof filename === "undefined" ? "VERSION" : filename;
48
+ const versionString = this.getVersionStringFromFile(filename);
49
+ const versionSuffix = this.parseVersionSuffix(versionString);
50
+ const versionObject = this.parseVersionString(versionString);
51
+ const major = parseInt(versionObject.major);
52
+ const minor = parseInt(versionObject.minor);
53
+ const patch = parseInt(versionObject.patch);
54
+ const newVersion = this.buildNewVersionString({ major: major + 1, minor, patch }, versionSuffix);
55
+ this.saveNewVersionFile(filename, newVersion);
56
+ if (options.syncGit) {
57
+ var commitMsg = options.commitMsg || `New Version v${newVersion}`;
58
+ this.syncGit(newVersion, commitMsg, options.syncNpm);
59
+ }
60
+ },
61
+ v_minor(filename, options) {
62
+ filename = typeof filename === "undefined" ? "VERSION" : filename;
63
+ const versionString = this.getVersionStringFromFile(filename);
64
+ const versionSuffix = this.parseVersionSuffix(versionString);
65
+ const versionObject = this.parseVersionString(versionString);
66
+ const major = parseInt(versionObject.major);
67
+ const minor = parseInt(versionObject.minor);
68
+ const patch = parseInt(versionObject.patch);
69
+ const newVersion = this.buildNewVersionString({ major, minor: minor + 1, patch }, versionSuffix);
70
+ this.saveNewVersionFile(filename, newVersion);
71
+ if (options.syncGit) {
72
+ var commitMsg = options.commitMsg || `New Version v${newVersion}`;
73
+ this.syncGit(newVersion, commitMsg, options.syncNpm);
74
+ }
75
+ },
76
+ v_patch(filename, options) {
77
+ filename = typeof filename === "undefined" ? "VERSION" : filename;
78
+ const versionString = this.getVersionStringFromFile(filename);
79
+ const versionSuffix = this.parseVersionSuffix(versionString);
80
+ const versionObject = this.parseVersionString(versionString);
81
+ const major = parseInt(versionObject.major);
82
+ const minor = parseInt(versionObject.minor);
83
+ const patch = parseInt(versionObject.patch);
84
+ const newVersion = this.buildNewVersionString({ major, minor, patch: patch + 1 }, versionSuffix);
85
+ this.saveNewVersionFile(filename, newVersion);
86
+ if (options.syncGit) {
87
+ var commitMsg = options.commitMsg || `New Version v${newVersion}`;
88
+ this.syncGit(newVersion, commitMsg, options.syncNpm);
89
+ }
90
+ },
91
+ v_sync(filename, options) {
92
+ filename = typeof filename === "undefined" ? "VERSION" : filename;
93
+ var commandHandler2 = this;
94
+ commandHandler2.switchCommander.shellCommands([
95
+ "echo $(git describe)"
96
+ ]).then(function(response) {
97
+ const versionString = response[0].split("-")[0].slice(1).replace("\n", "");
98
+ console.log(versionString);
99
+ const versionSuffix = commandHandler2.parseVersionSuffix(versionString);
100
+ const versionObject = commandHandler2.parseVersionString(versionString);
101
+ const major = parseInt(versionObject.major);
102
+ const minor = parseInt(versionObject.minor);
103
+ const patch = parseInt(versionObject.patch);
104
+ const newVersion = commandHandler2.buildNewVersionString({ major, minor, patch }, versionSuffix);
105
+ commandHandler2.saveNewVersionFile(filename, newVersion);
106
+ var commitMsg = options.commitMsg || `Synced Version v${newVersion}`;
107
+ commandHandler2.switchCommander.shellCommands(
108
+ [
109
+ "git fetch --tags -f",
110
+ `git add . && git commit -am "${commitMsg}"`,
111
+ "git fetch origin --tags",
112
+ "git tag -ln",
113
+ `npm version "${newVersion}" --allow-same-version -m "${commitMsg}"`,
114
+ "git push && git push --tags"
115
+ ]
116
+ ).then(function(response2) {
117
+ console.log(response2);
118
+ });
119
+ });
120
+ },
121
+ v_changelog() {
122
+ const commandHandler2 = this;
123
+ commandHandler2.switchCommander.shellCommands(
124
+ [
125
+ "git tag -ln"
126
+ ]
127
+ ).then(function(response) {
128
+ var versionTags = response[0].split("\n").map((tag) => tag.split(" ").unique()).unique().map(
129
+ (tag) => {
130
+ return {
131
+ "version": tag[0],
132
+ "major": tag[0].split(".")[0],
133
+ "minor": tag[0].split(".")[0] + "." + tag[0].split(".")[1],
134
+ "description": tag.slice(1).join(" ").trim()
135
+ };
136
+ }
137
+ );
138
+ var minorVersionTags = versionTags.filter((tag) => tag.version !== "").map((tag) => tag.version.split(".")[0] + "." + tag.version.split(".")[1]).unique();
139
+ var history = minorVersionTags.map((minor) => {
140
+ return {
141
+ "major": minor.split(".")[0],
142
+ "minor": minor,
143
+ "history": "\n - " + versionTags.filter((tag) => tag.minor === minor).map(
144
+ function(tag) {
145
+ return tag.description;
146
+ }
147
+ ).filter((desc) => !desc.startsWith(minor.slice(1))).sort().unique().join("\n - ")
148
+ };
149
+ }).map((hist) => {
150
+ return `## ${hist.major} -> ${hist.minor}
151
+ ` + hist.history;
152
+ }).join("\n");
153
+ const subtitle = "This is an automatic Changelog history of versions generated using the command: **qcobjects v-changelog > CHANGELOG.md**";
154
+ console.log("# Changelog \n\n" + subtitle + "\n\n" + history);
155
+ });
156
+ }
157
+ };
158
+ switchCommander.program.command("v-major [filename]").option("--git, --sync-git", "Sync with Git").option("--npm, --sync-npm", "Sync with NPM").option("-m, --commit-msg [message]", "Commit Message").description("Semantic Versioning: Upgrade to a new major version").action(function(args, options) {
159
+ commandHandler.choiceOption.v_major.call(commandHandler, args, options);
160
+ });
161
+ switchCommander.program.command("v-minor [filename]").option("--git, --sync-git", "Sync with Git").option("--npm, --sync-npm", "Sync with NPM").option("-m, --commit-msg [message]", "Commit Message").description("Semantic Versioning: Upgrade to a new minor version").action(function(args, options) {
162
+ commandHandler.choiceOption.v_minor.call(commandHandler, args, options);
163
+ });
164
+ switchCommander.program.command("v-patch [filename]").option("--git, --sync-git", "Sync with Git").option("--npm, --sync-npm", "Sync with NPM").option("-m, --commit-msg [message]", "Commit Message").description("Semantic Versioning: Upgrade to a new patch version").action(function(args, options) {
165
+ commandHandler.choiceOption.v_patch.call(commandHandler, args, options);
166
+ });
167
+ switchCommander.program.command("v-sync [filename]").option("-m, --commit-msg [message]", "Commit Message").description("Semantic Versioning: Sync the version of NPM with version of GIT").action(function(args, options) {
168
+ commandHandler.choiceOption.v_sync.call(commandHandler, args, options);
169
+ });
170
+ switchCommander.program.command("v-changelog").description("Semantic Versioning: Shows a changelog using Semantic Versioning").action(function(args, options) {
171
+ commandHandler.choiceOption.v_changelog.call(commandHandler, args, options);
172
+ });
173
+ }
174
+ syncGit(versionString, commitMsg, syncNpm = false) {
175
+ let _commands_ = [];
176
+ if (syncNpm) {
177
+ _commands_ = _commands_.concat(
178
+ [
179
+ "git fetch --tags -f",
180
+ `npm version "${versionString}" -m "${commitMsg}"`
181
+ ]
182
+ );
183
+ }
184
+ _commands_ = _commands_.concat(
185
+ [
186
+ `git add . && git commit -am "${commitMsg}"`,
187
+ "git fetch origin --tags",
188
+ "git tag -ln"
189
+ ]
190
+ );
191
+ if (!syncNpm) {
192
+ _commands_ = _commands_.concat(
193
+ [
194
+ `git tag -a "v${versionString}" -m "${commitMsg}"`
195
+ ]
196
+ );
197
+ }
198
+ _commands_ = _commands_.concat(
199
+ [
200
+ "git push && git push --tags"
201
+ ]
202
+ );
203
+ this.switchCommander.shellCommands(_commands_).then(function(response) {
204
+ logger.info("Synced to Git");
205
+ logger.debug(response);
206
+ }).catch(function(e) {
207
+ logger.info("Something went wrong trying to sync to git");
208
+ logger.debug(e);
209
+ });
210
+ }
211
+ parseVersionString(versionString) {
212
+ versionString = versionString.replace("\n", "");
213
+ const regexpVer = /^(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
214
+ const versionObject = { ...versionString.match(regexpVer)?.groups };
215
+ return versionObject;
216
+ }
217
+ getVersionStringFromFile(filename) {
218
+ let versionString;
219
+ try {
220
+ versionString = fs.readFileSync(filename).toString().replace("\n", "");
221
+ } catch (e) {
222
+ versionString = "0.0.1";
223
+ }
224
+ return versionString;
225
+ }
226
+ buildNewSemVersionString({ major, minor, patch }) {
227
+ return `${major}.${minor}.${patch}`;
228
+ }
229
+ parseVersionSuffix(versionString) {
230
+ versionString = versionString.replace("\n", "");
231
+ const versionObject = this.parseVersionString(versionString);
232
+ const semVersionString = this.buildNewSemVersionString(versionObject);
233
+ return versionString.replace(semVersionString, "");
234
+ }
235
+ buildNewVersionString({ major, minor, patch }, suffix) {
236
+ const semVersionString = this.buildNewSemVersionString({ major, minor, patch });
237
+ return `${semVersionString}${suffix}`;
238
+ }
239
+ saveNewVersionFile(filename, versionString) {
240
+ fs.writeFileSync(filename, versionString);
241
+ }
242
+ };
243
+ Package("com.qcobjects.cli.commands.version", [
244
+ CommandHandler
245
+ ]);
246
+
247
+ // src/com.qcobjects.cli.commands.jira.ts
248
+ var com_qcobjects_cli_commands_jira_exports = {};
249
+ __export(com_qcobjects_cli_commands_jira_exports, {
250
+ CommandHandler: () => CommandHandler2
251
+ });
252
+
253
+ // src/com.qcobjects.cli.commands.jira.client_services.ts
254
+ var { Package: Package2, Service, logger: logger2 } = require("qcobjects");
255
+ var JiraCloud = class extends Service {
256
+ static {
257
+ __name(this, "JiraCloud");
258
+ }
259
+ constructor({
260
+ name = "jira_cloud",
261
+ external = true,
262
+ useHTTP2 = true,
263
+ cached = false,
264
+ method = "POST",
265
+ headers = {
266
+ "accept": "application/json",
267
+ "content-type": "application/json"
268
+ },
269
+ basePath = "",
270
+ url = "",
271
+ withCredentials = false
272
+ }) {
273
+ super({
274
+ name,
275
+ external,
276
+ useHTTP2,
277
+ cached,
278
+ method,
279
+ headers,
280
+ basePath,
281
+ url,
282
+ withCredentials
283
+ });
284
+ var o = this;
285
+ this.domain = `${o.domain}`;
286
+ this.basePath = `https://${this.domain}/`;
287
+ this.username_password = `${o.username}:${o.password}`;
288
+ this.headers["authorization"] = `Basic ${Buffer.from(this.username_password).toString("base64")}`;
289
+ this.url = this.basePath + o.apiMethod;
290
+ this.data = o.data;
291
+ }
292
+ done(service, standardResponse) {
293
+ logger2.debug(standardResponse);
294
+ }
295
+ fail(e) {
296
+ logger2.debug(e);
297
+ }
298
+ };
299
+ Package2("com.qcobjects.cli.commands.jira.client_services", [
300
+ JiraCloud
301
+ ]);
302
+
303
+ // src/com.qcobjects.cli.commands.jira.ts
304
+ var path2 = require("path");
305
+ var absolutePath = path2.resolve(__dirname, "./");
306
+ var {
307
+ exec: exec2,
308
+ execSync: execSync2
309
+ } = require("child_process");
310
+ var { Package: Package3, InheritClass: InheritClass2, _DataStringify, New, CONFIG, logger: logger3, serviceLoader } = require("qcobjects");
311
+ var CommandHandler2 = class extends InheritClass2 {
312
+ static {
313
+ __name(this, "CommandHandler");
314
+ }
315
+ constructor({
316
+ switchCommander
317
+ }) {
318
+ super({ switchCommander });
319
+ this.choiceOption = {
320
+ issues: /* @__PURE__ */ __name(function() {
321
+ this.getIssueList().then(function(response) {
322
+ console.log(_DataStringify(response));
323
+ }).catch((e) => {
324
+ console.log(e);
325
+ process.exit(1);
326
+ });
327
+ }, "issues")
328
+ };
329
+ const commandHandler = this;
330
+ switchCommander.program.command("jira <subcommand>").option("-u, --from-user [username]", "User name").option("-fp,--from-project <projectName>", "Project name").option("-p, --pwd <password>", "Password").option("-f, --format <format>", "Format (json, table)").description(`Jira Integration:
331
+ Sub-Commands can be:
332
+ issues: To get the issues list from JIRA
333
+ `).action(function(subcommand, options) {
334
+ if (commandHandler.choiceOption.hasOwnProperty.call(commandHandler.choiceOption, subcommand)) {
335
+ commandHandler.choiceOption[subcommand].call(commandHandler, subcommand, options);
336
+ } else {
337
+ console.error(`Sub-Command (jira ${subcommand}... ) is not available`);
338
+ process.exit(1);
339
+ }
340
+ });
341
+ }
342
+ getIssueList() {
343
+ return new Promise(function(resolve, reject) {
344
+ logger3.info("I'm going to get the issue list from the jira cloud...");
345
+ const jira_config = CONFIG.get("jira", null);
346
+ if (jira_config !== null) {
347
+ const jira_username = jira_config.username;
348
+ const jira_password = jira_config.auth_token;
349
+ const jira_project = jira_config.project;
350
+ const jira_domain = jira_config.domain;
351
+ const jira_issue_fields = ["id", "key", "summary", "timetracking"];
352
+ const cloudClient = New(JiraCloud, {
353
+ domain: `${jira_domain}`,
354
+ username: `${jira_username}`,
355
+ password: `${jira_password}`,
356
+ apiMethod: "rest/api/latest/search",
357
+ data: {
358
+ "jql": `project = ${jira_project}`,
359
+ "startAt": 0,
360
+ "maxResults": 5e3,
361
+ "fields": jira_issue_fields
362
+ }
363
+ });
364
+ try {
365
+ } catch (e) {
366
+ console.error("\u{1F926} Something went wrong \u{1F926} when trying to get jira issues from the cloud");
367
+ reject(e);
368
+ }
369
+ } else {
370
+ console.error("\u{1F926} Something went wrong \u{1F926} You need to set the jira config settings");
371
+ reject(new Error("\u{1F926} Something went wrong \u{1F926} You need to set the jira config settings"));
372
+ }
373
+ });
374
+ }
375
+ };
376
+ Package3("com.qcobjects.cli.commands.jira", [
377
+ CommandHandler2
378
+ ]);
379
+ // Annotate the CommonJS export names for ESM import in node:
380
+ 0 && (module.exports = {
381
+ jiraCommand,
382
+ versionCommand
383
+ });
13
384
  //# sourceMappingURL=com.qcobjects.cli.commands.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/com.qcobjects.cli.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\n// plugin commands here\nrequire(absolutePath+\"/com.qcobjects.cli.commands.version\");\nrequire(absolutePath+\"/com.qcobjects.cli.commands.jira\");\n"],
5
- "mappings": ";;;AA+BA,IAAM,KAAK,QAAQ,IAAI;AACvB,IAAM,OAAO,QAAQ,MAAM;AAC3B,IAAM,eAAe,KAAK,QAAS,WAAW,IAAK;AACnD,IAAM,eAAe,KAAK,QAAS,WAAW,mBAAoB,IAAE;AACpE,IAAM,kBAAkB,KAAK,QAAS,WAAW,kBAAmB,IAAE;AACtE,IAAM,iBAAiB,QAAQ,eAAa,kBAAkB;AAC9D,IAAM,EAAE,MAAK,SAAS,IAAI,QAAQ,eAAe;AAGjD,QAAQ,eAAa,qCAAqC;AAC1D,QAAQ,eAAa,kCAAkC;",
6
- "names": []
3
+ "sources": ["../../src/com.qcobjects.cli.commands.ts", "../../src/com.qcobjects.cli.commands.version.ts", "../../src/com.qcobjects.cli.commands.jira.ts", "../../src/com.qcobjects.cli.commands.jira.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\n// plugin commands here\n\nexport * as versionCommand from \"./com.qcobjects.cli.commands.version\";\nexport * as jiraCommand from \"./com.qcobjects.cli.commands.jira\";\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 fs = require(\"fs\");\nconst path = require(\"path\");\nconst { exec, execSync } = require(\"child_process\");\n\nconst { Package, InheritClass, logger } = require(\"qcobjects\");\n\nexport class CommandHandler extends InheritClass {\n\n constructor({ switchCommander }: { switchCommander: any }) {\n super({ switchCommander });\n\n const commandHandler = this;\n\n this.choiceOption = {\n v_major(filename: string, options: any) {\n filename = (typeof filename === \"undefined\") ? (\"VERSION\") : (filename);\n const versionString = this.getVersionStringFromFile(filename);\n const versionSuffix = this.parseVersionSuffix(versionString);\n const versionObject = this.parseVersionString(versionString);\n const major = parseInt(versionObject.major);\n const minor = parseInt(versionObject.minor);\n const patch = parseInt(versionObject.patch);\n const newVersion = this.buildNewVersionString({ major: major + 1, minor: minor, patch: patch }, versionSuffix);\n this.saveNewVersionFile(filename, newVersion);\n if (options.syncGit) {\n var commitMsg = options.commitMsg || `New Version v${newVersion}`;\n this.syncGit(newVersion, commitMsg, options.syncNpm);\n }\n },\n v_minor(filename: string, options: any) {\n filename = (typeof filename === \"undefined\") ? (\"VERSION\") : (filename);\n const versionString = this.getVersionStringFromFile(filename);\n const versionSuffix = this.parseVersionSuffix(versionString);\n const versionObject = this.parseVersionString(versionString);\n const major = parseInt(versionObject.major);\n const minor = parseInt(versionObject.minor);\n const patch = parseInt(versionObject.patch);\n const newVersion = this.buildNewVersionString({ major: major, minor: minor + 1, patch: patch }, versionSuffix);\n this.saveNewVersionFile(filename, newVersion);\n if (options.syncGit) {\n var commitMsg = options.commitMsg || `New Version v${newVersion}`;\n this.syncGit(newVersion, commitMsg, options.syncNpm);\n }\n },\n v_patch(filename: string, options: any) {\n filename = (typeof filename === \"undefined\") ? (\"VERSION\") : (filename);\n const versionString = this.getVersionStringFromFile(filename);\n const versionSuffix = this.parseVersionSuffix(versionString);\n const versionObject = this.parseVersionString(versionString);\n const major = parseInt(versionObject.major);\n const minor = parseInt(versionObject.minor);\n const patch = parseInt(versionObject.patch);\n const newVersion = this.buildNewVersionString({ major: major, minor: minor, patch: patch + 1 }, versionSuffix);\n this.saveNewVersionFile(filename, newVersion);\n if (options.syncGit) {\n var commitMsg = options.commitMsg || `New Version v${newVersion}`;\n this.syncGit(newVersion, commitMsg, options.syncNpm);\n }\n },\n v_sync(filename: string, options: any) {\n filename = (typeof filename === \"undefined\") ? (\"VERSION\") : (filename);\n var commandHandler = this;\n commandHandler.switchCommander.shellCommands([\n \"echo $(git describe)\"\n ]).then(function (response: any) {\n const versionString = response[0].split(\"-\")[0].slice(1).replace(\"\\n\", \"\");\n console.log(versionString);\n const versionSuffix = commandHandler.parseVersionSuffix(versionString);\n const versionObject = commandHandler.parseVersionString(versionString);\n const major = parseInt(versionObject.major);\n const minor = parseInt(versionObject.minor);\n const patch = parseInt(versionObject.patch);\n const newVersion = commandHandler.buildNewVersionString({ major: major, minor: minor, patch: patch }, versionSuffix);\n commandHandler.saveNewVersionFile(filename, newVersion);\n var commitMsg = options.commitMsg || `Synced Version v${newVersion}`;\n commandHandler.switchCommander.shellCommands(\n [\n \"git fetch --tags -f\",\n `git add . && git commit -am \"${commitMsg}\"`,\n \"git fetch origin --tags\",\n \"git tag -ln\",\n `npm version \"${newVersion}\" --allow-same-version -m \"${commitMsg}\"`,\n \"git push && git push --tags\"\n ]\n ).then(function (response: any) {\n console.log(response);\n });\n });\n },\n v_changelog() {\n const commandHandler = this;\n commandHandler.switchCommander.shellCommands(\n [\n \"git tag -ln\"\n ]\n ).then(function (response: any) {\n var versionTags = response[0].split(\"\\n\").map((tag: any) => tag.split(\" \").unique()).unique().map(\n (tag: any) => {\n return {\n \"version\": tag[0],\n \"major\": tag[0].split(\".\")[0],\n \"minor\": tag[0].split(\".\")[0] + \".\" + tag[0].split(\".\")[1],\n \"description\": tag.slice(1).join(\" \").trim()\n };\n }\n );\n var minorVersionTags = versionTags.filter((tag: { version: string; }) => tag.version !== \"\").map((tag: { version: string; }) => tag.version.split(\".\")[0] + \".\" + tag.version.split(\".\")[1]).unique();\n var history = minorVersionTags.map((minor: string) => {\n return {\n \"major\": minor.split(\".\")[0],\n \"minor\": minor,\n \"history\": \"\\n\\t- \" + versionTags.filter((tag: { minor: any; }) => tag.minor === minor).map(\n function (tag: { description: any; }) {\n return tag.description;\n }\n ).filter((desc: string) => !desc.startsWith(minor.slice(1))).sort().unique().join(\"\\n\\t- \")\n };\n }).map((hist: { major: any; minor: any; history: string; }) => { return `## ${hist.major} -> ${hist.minor}` + \"\\n\" + hist.history; }).join(\"\\n\");\n const subtitle = \"This is an automatic Changelog history of versions generated using the command: **qcobjects v-changelog > CHANGELOG.md**\";\n console.log(\"# Changelog \\n\\n\" + subtitle + \"\\n\\n\" + history);\n\n });\n }\n };\n\n switchCommander.program.command(\"v-major [filename]\")\n .option(\"--git, --sync-git\", \"Sync with Git\")\n .option(\"--npm, --sync-npm\", \"Sync with NPM\")\n .option(\"-m, --commit-msg [message]\", \"Commit Message\")\n .description(\"Semantic Versioning: Upgrade to a new major version\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_major.call(commandHandler, args, options);\n });\n switchCommander.program.command(\"v-minor [filename]\")\n .option(\"--git, --sync-git\", \"Sync with Git\")\n .option(\"--npm, --sync-npm\", \"Sync with NPM\")\n .option(\"-m, --commit-msg [message]\", \"Commit Message\")\n .description(\"Semantic Versioning: Upgrade to a new minor version\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_minor.call(commandHandler, args, options);\n });\n\n switchCommander.program.command(\"v-patch [filename]\")\n .option(\"--git, --sync-git\", \"Sync with Git\")\n .option(\"--npm, --sync-npm\", \"Sync with NPM\")\n .option(\"-m, --commit-msg [message]\", \"Commit Message\")\n .description(\"Semantic Versioning: Upgrade to a new patch version\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_patch.call(commandHandler, args, options);\n });\n\n switchCommander.program.command(\"v-sync [filename]\")\n .option(\"-m, --commit-msg [message]\", \"Commit Message\")\n .description(\"Semantic Versioning: Sync the version of NPM with version of GIT\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_sync.call(commandHandler, args, options);\n });\n\n switchCommander.program.command(\"v-changelog\")\n .description(\"Semantic Versioning: Shows a changelog using Semantic Versioning\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_changelog.call(commandHandler, args, options);\n });\n\n\n }\n\n\n syncGit(versionString: any, commitMsg: any, syncNpm = false) {\n let _commands_: any[] = [];\n if (syncNpm) {\n _commands_ = _commands_.concat(\n [\n \"git fetch --tags -f\",\n `npm version \"${versionString}\" -m \"${commitMsg}\"`\n ]\n );\n }\n _commands_ = _commands_.concat(\n [\n `git add . && git commit -am \"${commitMsg}\"`,\n \"git fetch origin --tags\",\n \"git tag -ln\"\n ]);\n\n if (!syncNpm) {\n _commands_ = _commands_.concat(\n [\n `git tag -a \"v${versionString}\" -m \"${commitMsg}\"`,\n ]\n );\n }\n\n _commands_ = _commands_.concat([\n \"git push && git push --tags\"\n ]\n );\n\n this.switchCommander.shellCommands(_commands_).then(function (response: any) {\n logger.info(\"Synced to Git\");\n logger.debug(response);\n }).catch(function (e: any) {\n logger.info(\"Something went wrong trying to sync to git\");\n logger.debug(e);\n });\n }\n\n parseVersionString(versionString: string): { major: string, minor: string, patch: string } {\n versionString = versionString.replace(\"\\n\", \"\");\n const regexpVer = /^(?<major>0|[1-9]\\d*)\\.(?<minor>0|[1-9]\\d*)\\.(?<patch>0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n const versionObject = { ...versionString.match(regexpVer)?.groups };\n return versionObject as { major: string, minor: string, patch: string };\n }\n\n getVersionStringFromFile(filename: any) {\n let versionString;\n try {\n versionString = fs.readFileSync(filename).toString().replace(\"\\n\", \"\");\n } catch (e) {\n versionString = \"0.0.1\";\n }\n return versionString;\n }\n\n buildNewSemVersionString({ major, minor, patch }: { major: string, minor: string, patch: string }) {\n return `${major}.${minor}.${patch}`;\n }\n\n parseVersionSuffix(versionString: string) {\n versionString = versionString.replace(\"\\n\", \"\");\n const versionObject = this.parseVersionString(versionString);\n const semVersionString = this.buildNewSemVersionString(versionObject);\n return versionString.replace(semVersionString, \"\");\n }\n\n buildNewVersionString({ major, minor, patch }: any, suffix: any) {\n const semVersionString = this.buildNewSemVersionString({ major, minor, patch });\n return `${semVersionString}${suffix}`;\n }\n\n saveNewVersionFile(filename: any, versionString: any) {\n fs.writeFileSync(filename, versionString);\n }\n\n\n\n\n\n}\n\n\nPackage(\"com.qcobjects.cli.commands.version\", [\n CommandHandler\n]);\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 {\n exec,\n execSync\n} = require(\"child_process\");\n\nconst { Package, InheritClass, _DataStringify, New, CONFIG, logger, serviceLoader } = require(\"qcobjects\");\n\nimport { JiraCloud } from \"./com.qcobjects.cli.commands.jira.client_services\";\n\nexport class CommandHandler extends InheritClass {\n constructor({\n switchCommander\n }: { switchCommander: any }) {\n super({ switchCommander });\n this.choiceOption = {\n issues: function () {\n\n this.getIssueList().then(function (response: any) {\n console.log(_DataStringify(response));\n }).catch((e: any) => {\n console.log(e);\n process.exit(1);\n });\n\n }\n };\n\n const commandHandler = this;\n\n switchCommander.program.command(\"jira <subcommand>\")\n .option(\"-u, --from-user [username]\", \"User name\")\n .option(\"-fp,--from-project <projectName>\", \"Project name\")\n .option(\"-p, --pwd <password>\", \"Password\")\n .option(\"-f, --format <format>\", \"Format (json, table)\")\n .description(`Jira Integration:\n Sub-Commands can be:\n issues: To get the issues list from JIRA\n `)\n .action(function (subcommand: string | number, options: any) {\n if (commandHandler.choiceOption.hasOwnProperty.call(commandHandler.choiceOption, subcommand)) {\n commandHandler.choiceOption[subcommand].call(commandHandler, subcommand, options);\n } else {\n console.error(`Sub-Command (jira ${subcommand}... ) is not available`);\n process.exit(1);\n }\n });\n\n }\n\n getIssueList() {\n return new Promise<void>(function (resolve, reject) {\n logger.info(\"I'm going to get the issue list from the jira cloud...\");\n const jira_config = CONFIG.get(\"jira\", null);\n if (jira_config !== null) {\n const jira_username = jira_config.username;\n const jira_password = jira_config.auth_token;\n const jira_project = jira_config.project;\n const jira_domain = jira_config.domain;\n const jira_issue_fields = [\"id\", \"key\", \"summary\", \"timetracking\"];\n const cloudClient = New(JiraCloud, {\n domain: `${jira_domain}`,\n username: `${jira_username}`,\n password: `${jira_password}`,\n apiMethod: \"rest/api/latest/search\",\n data: {\n \"jql\": `project = ${jira_project}`,\n \"startAt\": 0,\n \"maxResults\": 5000,\n \"fields\": jira_issue_fields\n }\n });\n try {\n } catch (e) {\n console.error(\"\\u{1F926} Something went wrong \\u{1F926} when trying to get jira issues from the cloud\");\n reject(e as Error);\n }\n\n } else {\n console.error(\"\\u{1F926} Something went wrong \\u{1F926} You need to set the jira config settings\");\n reject(new Error(\"\\u{1F926} Something went wrong \\u{1F926} You need to set the jira config settings\"));\n }\n\n });\n }\n\n\n}\n\nPackage(\"com.qcobjects.cli.commands.jira\", [\n CommandHandler\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\";\n\nconst { Package, Service, logger } = require(\"qcobjects\");\n\nexport class JiraCloud extends Service {\n constructor({\n name = \"jira_cloud\",\n external = true,\n useHTTP2 = true,\n cached = false,\n method = \"POST\",\n headers = {\n \"accept\": \"application/json\",\n \"content-type\": \"application/json\"\n },\n basePath = \"\",\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 var o = this;\n this.domain = `${o.domain}`;\n this.basePath = `https://${this.domain}/`;\n this.username_password = `${o.username}:${o.password}`;\n this.headers[\"authorization\"] = `Basic ${Buffer.from(this.username_password).toString(\"base64\")}`;\n this.url = this.basePath + o.apiMethod;\n this.data = o.data;\n\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(\"com.qcobjects.cli.commands.jira.client_services\", [\n JiraCloud\n]);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AA+BA,IAAM,KAAK,QAAQ,IAAI;AACvB,IAAM,OAAO,QAAQ,MAAM;AAC3B,IAAM,EAAE,MAAM,SAAS,IAAI,QAAQ,eAAe;AAElD,IAAM,EAAE,SAAS,cAAc,OAAO,IAAI,QAAQ,WAAW;AAEtD,IAAM,iBAAN,cAA6B,aAAa;AAAA,EArCjD,OAqCiD;AAAA;AAAA;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ACJ,SAAS,GAAG;AACV,kBAAQ,MAAM,wFAAwF;AACtG,iBAAO,CAAU;AAAA,QACnB;AAAA,MAEF,OAAO;AACL,gBAAQ,MAAM,mFAAmF;AACjG,eAAO,IAAI,MAAM,mFAAmF,CAAC;AAAA,MACvG;AAAA,IAEF,CAAC;AAAA,EACH;AAGF;AAEAF,SAAQ,mCAAmC;AAAA,EACzCG;AACF,CAAC;",
6
+ "names": ["commandHandler", "response", "CommandHandler", "Package", "logger", "path", "exec", "execSync", "Package", "InheritClass", "logger", "CommandHandler"]
7
7
  }
@@ -1,20 +1,88 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
3
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/com.qcobjects.cli.commands.jira.ts
22
+ var com_qcobjects_cli_commands_jira_exports = {};
23
+ __export(com_qcobjects_cli_commands_jira_exports, {
24
+ CommandHandler: () => CommandHandler
25
+ });
26
+ module.exports = __toCommonJS(com_qcobjects_cli_commands_jira_exports);
27
+
28
+ // src/com.qcobjects.cli.commands.jira.client_services.ts
29
+ var { Package, Service, logger } = require("qcobjects");
30
+ var JiraCloud = class extends Service {
31
+ static {
32
+ __name(this, "JiraCloud");
33
+ }
34
+ constructor({
35
+ name = "jira_cloud",
36
+ external = true,
37
+ useHTTP2 = true,
38
+ cached = false,
39
+ method = "POST",
40
+ headers = {
41
+ "accept": "application/json",
42
+ "content-type": "application/json"
43
+ },
44
+ basePath = "",
45
+ url = "",
46
+ withCredentials = false
47
+ }) {
48
+ super({
49
+ name,
50
+ external,
51
+ useHTTP2,
52
+ cached,
53
+ method,
54
+ headers,
55
+ basePath,
56
+ url,
57
+ withCredentials
58
+ });
59
+ var o = this;
60
+ this.domain = `${o.domain}`;
61
+ this.basePath = `https://${this.domain}/`;
62
+ this.username_password = `${o.username}:${o.password}`;
63
+ this.headers["authorization"] = `Basic ${Buffer.from(this.username_password).toString("base64")}`;
64
+ this.url = this.basePath + o.apiMethod;
65
+ this.data = o.data;
66
+ }
67
+ done(service, standardResponse) {
68
+ logger.debug(standardResponse);
69
+ }
70
+ fail(e) {
71
+ logger.debug(e);
72
+ }
73
+ };
74
+ Package("com.qcobjects.cli.commands.jira.client_services", [
75
+ JiraCloud
76
+ ]);
4
77
 
5
78
  // src/com.qcobjects.cli.commands.jira.ts
6
- var fs = require("fs");
7
79
  var path = require("path");
8
80
  var absolutePath = path.resolve(__dirname, "./");
9
- var templatePath = path.resolve(__dirname, "./templates/apps/") + "/";
10
- var templatePwaPath = path.resolve(__dirname, "./templates/pwa/") + "/";
11
- var package_config = require(absolutePath + "/../package.json");
12
81
  var {
13
82
  exec,
14
83
  execSync
15
84
  } = require("child_process");
16
- var { Package, InheritClass, _DataStringify, New, CONFIG, logger, serviceLoader } = require("qcobjects");
17
- var { JiraCloud } = require(absolutePath + "/com.qcobjects.cli.commands.jira.client_services");
85
+ var { Package: Package2, InheritClass, _DataStringify, New, CONFIG, logger: logger2, serviceLoader } = require("qcobjects");
18
86
  var CommandHandler = class extends InheritClass {
19
87
  static {
20
88
  __name(this, "CommandHandler");
@@ -24,7 +92,7 @@ var CommandHandler = class extends InheritClass {
24
92
  }) {
25
93
  super({ switchCommander });
26
94
  this.choiceOption = {
27
- issues: /* @__PURE__ */ __name(function(options) {
95
+ issues: /* @__PURE__ */ __name(function() {
28
96
  this.getIssueList().then(function(response) {
29
97
  console.log(_DataStringify(response));
30
98
  }).catch((e) => {
@@ -46,9 +114,9 @@ var CommandHandler = class extends InheritClass {
46
114
  }
47
115
  });
48
116
  }
49
- getIssueList(username, password, project) {
117
+ getIssueList() {
50
118
  return new Promise(function(resolve, reject) {
51
- logger.info("I'm going to get the issue list from the jira cloud...");
119
+ logger2.info("I'm going to get the issue list from the jira cloud...");
52
120
  const jira_config = CONFIG.get("jira", null);
53
121
  if (jira_config !== null) {
54
122
  const jira_username = jira_config.username;
@@ -69,20 +137,6 @@ var CommandHandler = class extends InheritClass {
69
137
  }
70
138
  });
71
139
  try {
72
- const service = serviceLoader(cloudClient).then((successResponse) => {
73
- const template = successResponse.service.template;
74
- const responseHeaders = successResponse.responseHeaders;
75
- if (responseHeaders[":status"] === 200 || !cloudClient.useHTTP2) {
76
- const response = JSON.parse(template);
77
- resolve(response);
78
- } else {
79
- console.error("\u{1F926} Something went wrong \u{1F926} when trying to get jira issues from the cloud. The status was: " + responseHeaders[":status"]);
80
- reject(template);
81
- }
82
- }).catch((e) => {
83
- console.error("\u{1F926} Something went wrong \u{1F926} when trying to get jira issues from the cloud");
84
- reject(e);
85
- });
86
140
  } catch (e) {
87
141
  console.error("\u{1F926} Something went wrong \u{1F926} when trying to get jira issues from the cloud");
88
142
  reject(e);
@@ -94,7 +148,11 @@ var CommandHandler = class extends InheritClass {
94
148
  });
95
149
  }
96
150
  };
97
- Package("com.qcobjects.cli.commands.jira", [
151
+ Package2("com.qcobjects.cli.commands.jira", [
98
152
  CommandHandler
99
153
  ]);
154
+ // Annotate the CommonJS export names for ESM import in node:
155
+ 0 && (module.exports = {
156
+ CommandHandler
157
+ });
100
158
  //# sourceMappingURL=com.qcobjects.cli.commands.jira.cjs.map