@clickview/ship-it 0.0.33 → 0.0.35-dev.0

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 (108) hide show
  1. package/Dockerfile +33 -33
  2. package/README.md +48 -48
  3. package/config.json +19 -19
  4. package/lib/config.json +20 -20
  5. package/lib/src/api-clients/git-lab/GitLabApiClient.js +439 -439
  6. package/lib/src/api-clients/git-lab/GitLabMapper.js +82 -82
  7. package/lib/src/api-clients/index.js +20 -20
  8. package/lib/src/api-clients/slack/SlackApiClient.js +206 -206
  9. package/lib/src/api-clients/team-city/TeamCityApiClient.js +100 -100
  10. package/lib/src/api-clients/trello/TrelloApiClient.js +145 -145
  11. package/lib/src/commands/BumpPackagesCommand.js +84 -84
  12. package/lib/src/commands/CreateBranchCommand.js +100 -100
  13. package/lib/src/commands/CreateMergeRequestCommand.js +107 -107
  14. package/lib/src/commands/CreateNotesAuditCommand.js +84 -84
  15. package/lib/src/commands/CreateReleaseNotesCommand.js +95 -95
  16. package/lib/src/commands/CreateTrelloCardsCommand.js +77 -77
  17. package/lib/src/commands/InstallPackagesCommand.js +76 -76
  18. package/lib/src/commands/ListProjectsCommand.js +76 -76
  19. package/lib/src/commands/ReleaseCommand.js +129 -129
  20. package/lib/src/commands/StartProjectBuildsCommand.js +76 -76
  21. package/lib/src/commands/StatusCommand.js +88 -88
  22. package/lib/src/commands/TagMasterCommand.js +76 -76
  23. package/lib/src/commands/ValidateMergeRequestCommand.js +76 -76
  24. package/lib/src/commands/VersionCommand.js +76 -76
  25. package/lib/src/commands/index.js +30 -30
  26. package/lib/src/constants/CommandTypeMapping.js +20 -20
  27. package/lib/src/constants/GitLabMemberIds.js +6 -6
  28. package/lib/src/constants/MonorepoPackageJsonFiles.js +17 -17
  29. package/lib/src/constants/MonorepoProjectNames.js +16 -16
  30. package/lib/src/constants/ProjectNames.js +68 -68
  31. package/lib/src/constants/SlackUserEmailList.js +13 -13
  32. package/lib/src/constants/TeamCityBuildIDs.js +45 -45
  33. package/lib/src/constants/index.js +19 -19
  34. package/lib/src/errors/ShipItError.js +32 -32
  35. package/lib/src/errors/index.js +17 -17
  36. package/lib/src/index.js +18 -18
  37. package/lib/src/interfaces/Config.js +2 -2
  38. package/lib/src/interfaces/MergeRequestState.js +2 -2
  39. package/lib/src/interfaces/ProjectNames.js +2 -2
  40. package/lib/src/interfaces/ShipItCommand.js +2 -2
  41. package/lib/src/interfaces/ShipItTask.js +2 -2
  42. package/lib/src/interfaces/VersionType.js +2 -2
  43. package/lib/src/interfaces/command-cli-options/MilestoneCommandCliOptions.js +2 -2
  44. package/lib/src/interfaces/command-cli-options/ReleaseCommandCliOptions.js +2 -2
  45. package/lib/src/interfaces/command-cli-options/StatusCommandCliOptions.js +2 -2
  46. package/lib/src/interfaces/command-cli-options/index.js +19 -19
  47. package/lib/src/interfaces/command-options/BaseCommandOptions.js +2 -2
  48. package/lib/src/interfaces/command-options/BumpPackagesCommandOptions.js +2 -2
  49. package/lib/src/interfaces/command-options/DockerMilestoneCommandOptions.js +2 -2
  50. package/lib/src/interfaces/command-options/MilestoneCommandOptions.js +2 -2
  51. package/lib/src/interfaces/command-options/ReleaseCommandOptions.js +2 -2
  52. package/lib/src/interfaces/command-options/StatusCommandOptions.js +2 -2
  53. package/lib/src/interfaces/command-options/ValidateMRCommandOptions.js +2 -2
  54. package/lib/src/interfaces/command-options/index.js +22 -22
  55. package/lib/src/interfaces/index.js +26 -26
  56. package/lib/src/interfaces/models/Branch.js +2 -2
  57. package/lib/src/interfaces/models/Commit.js +2 -2
  58. package/lib/src/interfaces/models/CommitFile.js +2 -2
  59. package/lib/src/interfaces/models/File.js +2 -2
  60. package/lib/src/interfaces/models/Label.js +2 -2
  61. package/lib/src/interfaces/models/MergeRequest.js +2 -2
  62. package/lib/src/interfaces/models/Milestone.js +2 -2
  63. package/lib/src/interfaces/models/Project.js +2 -2
  64. package/lib/src/interfaces/models/ProjectConfig.js +9 -9
  65. package/lib/src/interfaces/models/Release.js +2 -2
  66. package/lib/src/interfaces/models/Tag.js +2 -2
  67. package/lib/src/interfaces/models/index.js +26 -26
  68. package/lib/src/interfaces/view-models/MilestoneProject.js +2 -2
  69. package/lib/src/interfaces/view-models/index.js +17 -17
  70. package/lib/src/inversify.config.js +75 -75
  71. package/lib/src/services/GitLabService.js +510 -508
  72. package/lib/src/services/SlackService.js +142 -142
  73. package/lib/src/services/TeamCityService.js +37 -37
  74. package/lib/src/services/TrelloService.js +84 -84
  75. package/lib/src/services/index.js +20 -20
  76. package/lib/src/startup/AddMilestoneCommand.js +96 -96
  77. package/lib/src/startup/GetAction.js +68 -68
  78. package/lib/src/startup/SetupCommands.js +168 -168
  79. package/lib/src/tasks/BumpPackagesTask.js +229 -229
  80. package/lib/src/tasks/BumpVersionTxtTask.js +110 -110
  81. package/lib/src/tasks/CommitPackageVersionsTask.js +116 -116
  82. package/lib/src/tasks/CreateBranchTask.js +104 -104
  83. package/lib/src/tasks/CreateMergeRequestTask.js +118 -118
  84. package/lib/src/tasks/CreateNotesAuditTask.js +140 -140
  85. package/lib/src/tasks/CreateReleaseNotesTask.js +144 -144
  86. package/lib/src/tasks/InstallPackagesTask.js +407 -407
  87. package/lib/src/tasks/ListProjectsTask.js +87 -87
  88. package/lib/src/tasks/PopulateTrelloBoardTask.js +140 -140
  89. package/lib/src/tasks/StartMonorepoBuildTask.js +109 -109
  90. package/lib/src/tasks/StartProjectBuildsTask.js +170 -170
  91. package/lib/src/tasks/TagMasterTask.js +186 -186
  92. package/lib/src/tasks/ValidateCommitsTask.js +143 -143
  93. package/lib/src/tasks/ValidateDescriptionsTask.js +178 -178
  94. package/lib/src/tasks/ValidateMergeRequestTask.js +115 -115
  95. package/lib/src/tasks/ValidateTask.js +419 -419
  96. package/lib/src/tasks/VersionTask.js +98 -98
  97. package/lib/src/tasks/index.js +34 -34
  98. package/lib/src/types.js +57 -57
  99. package/lib/src/utils/BranchNames.js +11 -11
  100. package/lib/src/utils/Commits.js +55 -55
  101. package/lib/src/utils/Csv.js +54 -54
  102. package/lib/src/utils/Descriptions.js +274 -274
  103. package/lib/src/utils/GroupIds.js +6 -6
  104. package/lib/src/utils/Logger.js +62 -62
  105. package/lib/src/utils/ProjectIds.js +47 -47
  106. package/lib/src/utils/Versions.js +20 -20
  107. package/lib/src/utils/index.js +22 -22
  108. package/package.json +50 -50
@@ -1,76 +1,76 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
- function verb(n) { return function (v) { return step([n, v]); }; }
27
- function step(op) {
28
- if (f) throw new TypeError("Generator is already executing.");
29
- while (_) try {
30
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
- if (y = 0, t) op = [op[0] & 2, t.value];
32
- switch (op[0]) {
33
- case 0: case 1: t = op; break;
34
- case 4: _.label++; return { value: op[1], done: false };
35
- case 5: _.label++; y = op[1]; op = [0]; continue;
36
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
- default:
38
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
- if (t[2]) _.ops.pop();
43
- _.trys.pop(); continue;
44
- }
45
- op = body.call(thisArg, _);
46
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
- }
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.ValidateMergeRequestCommand = void 0;
52
- require("reflect-metadata");
53
- var inversify_1 = require("inversify");
54
- var types_1 = require("../types");
55
- var ValidateMergeRequestCommand = /** @class */ (function () {
56
- function ValidateMergeRequestCommand(validateMergeRequestTask) {
57
- this.validateMergeRequestTask = validateMergeRequestTask;
58
- }
59
- ValidateMergeRequestCommand.prototype.run = function (options) {
60
- return __awaiter(this, void 0, void 0, function () {
61
- return __generator(this, function (_a) {
62
- switch (_a.label) {
63
- case 0: return [4 /*yield*/, this.validateMergeRequestTask.run(options)];
64
- case 1: return [2 /*return*/, _a.sent()];
65
- }
66
- });
67
- });
68
- };
69
- ValidateMergeRequestCommand = __decorate([
70
- (0, inversify_1.injectable)(),
71
- __param(0, (0, inversify_1.inject)(types_1.TASKS.ValidateMergeRequestTask)),
72
- __metadata("design:paramtypes", [Object])
73
- ], ValidateMergeRequestCommand);
74
- return ValidateMergeRequestCommand;
75
- }());
76
- exports.ValidateMergeRequestCommand = ValidateMergeRequestCommand;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ var __generator = (this && this.__generator) || function (thisArg, body) {
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
+ function verb(n) { return function (v) { return step([n, v]); }; }
27
+ function step(op) {
28
+ if (f) throw new TypeError("Generator is already executing.");
29
+ while (_) try {
30
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
+ if (y = 0, t) op = [op[0] & 2, t.value];
32
+ switch (op[0]) {
33
+ case 0: case 1: t = op; break;
34
+ case 4: _.label++; return { value: op[1], done: false };
35
+ case 5: _.label++; y = op[1]; op = [0]; continue;
36
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
+ default:
38
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
+ if (t[2]) _.ops.pop();
43
+ _.trys.pop(); continue;
44
+ }
45
+ op = body.call(thisArg, _);
46
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
+ }
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.ValidateMergeRequestCommand = void 0;
52
+ require("reflect-metadata");
53
+ var inversify_1 = require("inversify");
54
+ var types_1 = require("../types");
55
+ var ValidateMergeRequestCommand = /** @class */ (function () {
56
+ function ValidateMergeRequestCommand(validateMergeRequestTask) {
57
+ this.validateMergeRequestTask = validateMergeRequestTask;
58
+ }
59
+ ValidateMergeRequestCommand.prototype.run = function (options) {
60
+ return __awaiter(this, void 0, void 0, function () {
61
+ return __generator(this, function (_a) {
62
+ switch (_a.label) {
63
+ case 0: return [4 /*yield*/, this.validateMergeRequestTask.run(options)];
64
+ case 1: return [2 /*return*/, _a.sent()];
65
+ }
66
+ });
67
+ });
68
+ };
69
+ ValidateMergeRequestCommand = __decorate([
70
+ (0, inversify_1.injectable)(),
71
+ __param(0, (0, inversify_1.inject)(types_1.TASKS.ValidateMergeRequestTask)),
72
+ __metadata("design:paramtypes", [Object])
73
+ ], ValidateMergeRequestCommand);
74
+ return ValidateMergeRequestCommand;
75
+ }());
76
+ exports.ValidateMergeRequestCommand = ValidateMergeRequestCommand;
@@ -1,76 +1,76 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
- function verb(n) { return function (v) { return step([n, v]); }; }
27
- function step(op) {
28
- if (f) throw new TypeError("Generator is already executing.");
29
- while (_) try {
30
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
- if (y = 0, t) op = [op[0] & 2, t.value];
32
- switch (op[0]) {
33
- case 0: case 1: t = op; break;
34
- case 4: _.label++; return { value: op[1], done: false };
35
- case 5: _.label++; y = op[1]; op = [0]; continue;
36
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
- default:
38
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
- if (t[2]) _.ops.pop();
43
- _.trys.pop(); continue;
44
- }
45
- op = body.call(thisArg, _);
46
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
- }
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.VersionCommand = void 0;
52
- require("reflect-metadata");
53
- var inversify_1 = require("inversify");
54
- var types_1 = require("../types");
55
- var VersionCommand = /** @class */ (function () {
56
- function VersionCommand(versionTask) {
57
- this.versionTask = versionTask;
58
- }
59
- VersionCommand.prototype.run = function (options) {
60
- return __awaiter(this, void 0, void 0, function () {
61
- return __generator(this, function (_a) {
62
- switch (_a.label) {
63
- case 0: return [4 /*yield*/, this.versionTask.run(options)];
64
- case 1: return [2 /*return*/, _a.sent()];
65
- }
66
- });
67
- });
68
- };
69
- VersionCommand = __decorate([
70
- (0, inversify_1.injectable)(),
71
- __param(0, (0, inversify_1.inject)(types_1.TASKS.VersionTask)),
72
- __metadata("design:paramtypes", [Object])
73
- ], VersionCommand);
74
- return VersionCommand;
75
- }());
76
- exports.VersionCommand = VersionCommand;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ var __generator = (this && this.__generator) || function (thisArg, body) {
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
+ function verb(n) { return function (v) { return step([n, v]); }; }
27
+ function step(op) {
28
+ if (f) throw new TypeError("Generator is already executing.");
29
+ while (_) try {
30
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
+ if (y = 0, t) op = [op[0] & 2, t.value];
32
+ switch (op[0]) {
33
+ case 0: case 1: t = op; break;
34
+ case 4: _.label++; return { value: op[1], done: false };
35
+ case 5: _.label++; y = op[1]; op = [0]; continue;
36
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
+ default:
38
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
+ if (t[2]) _.ops.pop();
43
+ _.trys.pop(); continue;
44
+ }
45
+ op = body.call(thisArg, _);
46
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
+ }
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.VersionCommand = void 0;
52
+ require("reflect-metadata");
53
+ var inversify_1 = require("inversify");
54
+ var types_1 = require("../types");
55
+ var VersionCommand = /** @class */ (function () {
56
+ function VersionCommand(versionTask) {
57
+ this.versionTask = versionTask;
58
+ }
59
+ VersionCommand.prototype.run = function (options) {
60
+ return __awaiter(this, void 0, void 0, function () {
61
+ return __generator(this, function (_a) {
62
+ switch (_a.label) {
63
+ case 0: return [4 /*yield*/, this.versionTask.run(options)];
64
+ case 1: return [2 /*return*/, _a.sent()];
65
+ }
66
+ });
67
+ });
68
+ };
69
+ VersionCommand = __decorate([
70
+ (0, inversify_1.injectable)(),
71
+ __param(0, (0, inversify_1.inject)(types_1.TASKS.VersionTask)),
72
+ __metadata("design:paramtypes", [Object])
73
+ ], VersionCommand);
74
+ return VersionCommand;
75
+ }());
76
+ exports.VersionCommand = VersionCommand;
@@ -1,30 +1,30 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./BumpPackagesCommand"), exports);
18
- __exportStar(require("./CreateBranchCommand"), exports);
19
- __exportStar(require("./CreateMergeRequestCommand"), exports);
20
- __exportStar(require("./ListProjectsCommand"), exports);
21
- __exportStar(require("./CreateReleaseNotesCommand"), exports);
22
- __exportStar(require("./CreateNotesAuditCommand"), exports);
23
- __exportStar(require("./InstallPackagesCommand"), exports);
24
- __exportStar(require("./ReleaseCommand"), exports);
25
- __exportStar(require("./StartProjectBuildsCommand"), exports);
26
- __exportStar(require("./StatusCommand"), exports);
27
- __exportStar(require("./TagMasterCommand"), exports);
28
- __exportStar(require("./ValidateMergeRequestCommand"), exports);
29
- __exportStar(require("./VersionCommand"), exports);
30
- __exportStar(require("./CreateTrelloCardsCommand"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BumpPackagesCommand"), exports);
18
+ __exportStar(require("./CreateBranchCommand"), exports);
19
+ __exportStar(require("./CreateMergeRequestCommand"), exports);
20
+ __exportStar(require("./ListProjectsCommand"), exports);
21
+ __exportStar(require("./CreateReleaseNotesCommand"), exports);
22
+ __exportStar(require("./CreateNotesAuditCommand"), exports);
23
+ __exportStar(require("./InstallPackagesCommand"), exports);
24
+ __exportStar(require("./ReleaseCommand"), exports);
25
+ __exportStar(require("./StartProjectBuildsCommand"), exports);
26
+ __exportStar(require("./StatusCommand"), exports);
27
+ __exportStar(require("./TagMasterCommand"), exports);
28
+ __exportStar(require("./ValidateMergeRequestCommand"), exports);
29
+ __exportStar(require("./VersionCommand"), exports);
30
+ __exportStar(require("./CreateTrelloCardsCommand"), exports);
@@ -1,20 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommandTypeMapping = void 0;
4
- var types_1 = require("../types");
5
- exports.CommandTypeMapping = {
6
- 'status': types_1.COMMANDS.StatusCommand,
7
- 'version': types_1.COMMANDS.VersionCommand,
8
- 'release': types_1.COMMANDS.ReleaseCommand,
9
- 'create-branches': types_1.COMMANDS.CreateBranchCommand,
10
- 'create-mrs': types_1.COMMANDS.CreateMergeRequestCommand,
11
- 'create-notes': types_1.COMMANDS.CreateReleaseNotesCommand,
12
- 'create-notes-audit': types_1.COMMANDS.CreateNotesAuditCommand,
13
- 'install-packages': types_1.COMMANDS.InstallPackagesCommand,
14
- 'bump-packages': types_1.COMMANDS.BumpPackagesCommand,
15
- 'validate-mr': types_1.COMMANDS.ValidateMergeRequestCommand,
16
- 'start-project-builds': types_1.COMMANDS.StartProjectBuildsCommand,
17
- 'tag-master': types_1.COMMANDS.TagMasterCommand,
18
- 'list-projects': types_1.COMMANDS.ListProjectsCommand,
19
- 'create-trello-cards': types_1.COMMANDS.CreateTrelloCardsCommand
20
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommandTypeMapping = void 0;
4
+ var types_1 = require("../types");
5
+ exports.CommandTypeMapping = {
6
+ 'status': types_1.COMMANDS.StatusCommand,
7
+ 'version': types_1.COMMANDS.VersionCommand,
8
+ 'release': types_1.COMMANDS.ReleaseCommand,
9
+ 'create-branches': types_1.COMMANDS.CreateBranchCommand,
10
+ 'create-mrs': types_1.COMMANDS.CreateMergeRequestCommand,
11
+ 'create-notes': types_1.COMMANDS.CreateReleaseNotesCommand,
12
+ 'create-notes-audit': types_1.COMMANDS.CreateNotesAuditCommand,
13
+ 'install-packages': types_1.COMMANDS.InstallPackagesCommand,
14
+ 'bump-packages': types_1.COMMANDS.BumpPackagesCommand,
15
+ 'validate-mr': types_1.COMMANDS.ValidateMergeRequestCommand,
16
+ 'start-project-builds': types_1.COMMANDS.StartProjectBuildsCommand,
17
+ 'tag-master': types_1.COMMANDS.TagMasterCommand,
18
+ 'list-projects': types_1.COMMANDS.ListProjectsCommand,
19
+ 'create-trello-cards': types_1.COMMANDS.CreateTrelloCardsCommand
20
+ };
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GitLabMemberIds = void 0;
4
- exports.GitLabMemberIds = {
5
- SHIP_IT: 68
6
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GitLabMemberIds = void 0;
4
+ exports.GitLabMemberIds = {
5
+ SHIP_IT: 68
6
+ };
@@ -1,17 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MONOREPO_PACKAGE_JSON_FILES = void 0;
4
- exports.MONOREPO_PACKAGE_JSON_FILES = [
5
- 'packages/libs/analytics/package.json',
6
- 'packages/libs/styles/package.json',
7
- 'packages/libs/tooling/package.json',
8
- 'packages/projects/auth/package.json',
9
- 'packages/projects/curator/package.json',
10
- 'packages/projects/library-editor/package.json',
11
- 'packages/projects/lite/package.json',
12
- 'packages/projects/online/package.json',
13
- 'packages/projects/reports/package.json',
14
- 'packages/projects/exchange/package.json',
15
- 'packages/projects/player/package.json',
16
- 'packages/projects/streamable-learning/package.json'
17
- ];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MONOREPO_PACKAGE_JSON_FILES = void 0;
4
+ exports.MONOREPO_PACKAGE_JSON_FILES = [
5
+ 'packages/libs/analytics/package.json',
6
+ 'packages/libs/styles/package.json',
7
+ 'packages/libs/tooling/package.json',
8
+ 'packages/projects/auth/package.json',
9
+ 'packages/projects/curator/package.json',
10
+ 'packages/projects/library-editor/package.json',
11
+ 'packages/projects/lite/package.json',
12
+ 'packages/projects/online/package.json',
13
+ 'packages/projects/reports/package.json',
14
+ 'packages/projects/exchange/package.json',
15
+ 'packages/projects/player/package.json',
16
+ 'packages/projects/streamable-learning/package.json'
17
+ ];
@@ -1,16 +1,16 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MonorepoProjectNames = void 0;
5
- var constants_1 = require("../constants");
6
- exports.MonorepoProjectNames = (_a = {},
7
- _a[constants_1.PROJECT_NAMES.frontend.online] = 'online',
8
- _a[constants_1.PROJECT_NAMES.frontend.curator] = 'curator',
9
- _a[constants_1.PROJECT_NAMES.frontend.cloud] = 'library-editor',
10
- _a[constants_1.PROJECT_NAMES.frontend.reports] = 'reports',
11
- _a[constants_1.PROJECT_NAMES.frontend.lite] = 'lite',
12
- _a[constants_1.PROJECT_NAMES.backend.auth] = 'auth',
13
- _a[constants_1.PROJECT_NAMES.frontend.exchange] = 'exchange',
14
- _a[constants_1.PROJECT_NAMES.backend.player] = 'player',
15
- _a[constants_1.PROJECT_NAMES.frontend.streamable] = 'streamable-learning',
16
- _a);
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MonorepoProjectNames = void 0;
5
+ var constants_1 = require("../constants");
6
+ exports.MonorepoProjectNames = (_a = {},
7
+ _a[constants_1.PROJECT_NAMES.frontend.online] = 'online',
8
+ _a[constants_1.PROJECT_NAMES.frontend.curator] = 'curator',
9
+ _a[constants_1.PROJECT_NAMES.frontend.cloud] = 'library-editor',
10
+ _a[constants_1.PROJECT_NAMES.frontend.reports] = 'reports',
11
+ _a[constants_1.PROJECT_NAMES.frontend.lite] = 'lite',
12
+ _a[constants_1.PROJECT_NAMES.backend.auth] = 'auth',
13
+ _a[constants_1.PROJECT_NAMES.frontend.exchange] = 'exchange',
14
+ _a[constants_1.PROJECT_NAMES.backend.player] = 'player',
15
+ _a[constants_1.PROJECT_NAMES.frontend.streamable] = 'streamable-learning',
16
+ _a);
@@ -1,68 +1,68 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROJECT_NAMES = void 0;
4
- exports.PROJECT_NAMES = {
5
- frontend: {
6
- 'monorepo': '798',
7
- 'online': '109',
8
- 'curator': '62',
9
- 'lite': '822',
10
- 'exchange': '1114',
11
- // Project names listed below are projects that have multiple names internally. Either can be used as an argument
12
- 'cloud': '534',
13
- 'le': '534',
14
- 'library-editor': '534',
15
- 'analytics': '970',
16
- 'reports': '970',
17
- 'streamable-learning': '1144',
18
- 'streamable': '1144'
19
- },
20
- /**
21
- * IMPORTANT: Please don't append "api" or "service" to these names unless it makes sense (like for tvweb vs tvapi)
22
- * If someone passes for example "emailservice" or "onlineapi" as arguments,
23
- * it will still be detected by `ProjectIds.ts`
24
- */
25
- backend: {
26
- integrations: '850',
27
- auth: '54',
28
- online: '41',
29
- email: '66',
30
- launch: '969',
31
- videoprocessor: '84',
32
- image: '83',
33
- hydration: '844',
34
- index: '932',
35
- search: '936',
36
- videoviews: '835',
37
- domain: '108',
38
- batch: '981',
39
- discover: '934',
40
- library: '1033',
41
- krakend: '920',
42
- share: '922',
43
- webplayer: '262',
44
- player: '917',
45
- autocaptions: '852',
46
- realtimesalesforcesync: '689',
47
- master: '11',
48
- permission: '906',
49
- subject: '725',
50
- subjects: '725',
51
- filegen: '713',
52
- filegenerator: '713',
53
- object: '915',
54
- objects: '915',
55
- classroom: '921',
56
- classrooms: '921',
57
- user: '914',
58
- users: '914',
59
- tvweb: '161',
60
- cloud247web: '161',
61
- clients: '897',
62
- goodstuff: '1002'
63
- },
64
- mobile: {
65
- android: '887',
66
- interactiveforios: '395'
67
- }
68
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROJECT_NAMES = void 0;
4
+ exports.PROJECT_NAMES = {
5
+ frontend: {
6
+ 'monorepo': '798',
7
+ 'online': '109',
8
+ 'curator': '62',
9
+ 'lite': '822',
10
+ 'exchange': '1114',
11
+ // Project names listed below are projects that have multiple names internally. Either can be used as an argument
12
+ 'cloud': '534',
13
+ 'le': '534',
14
+ 'library-editor': '534',
15
+ 'analytics': '970',
16
+ 'reports': '970',
17
+ 'streamable-learning': '1144',
18
+ 'streamable': '1144'
19
+ },
20
+ /**
21
+ * IMPORTANT: Please don't append "api" or "service" to these names unless it makes sense (like for tvweb vs tvapi)
22
+ * If someone passes for example "emailservice" or "onlineapi" as arguments,
23
+ * it will still be detected by `ProjectIds.ts`
24
+ */
25
+ backend: {
26
+ integrations: '850',
27
+ auth: '54',
28
+ online: '41',
29
+ email: '66',
30
+ launch: '969',
31
+ videoprocessor: '84',
32
+ image: '83',
33
+ hydration: '844',
34
+ index: '932',
35
+ search: '936',
36
+ videoviews: '835',
37
+ domain: '108',
38
+ batch: '981',
39
+ discover: '934',
40
+ library: '1033',
41
+ krakend: '920',
42
+ share: '922',
43
+ webplayer: '262',
44
+ player: '917',
45
+ autocaptions: '852',
46
+ realtimesalesforcesync: '689',
47
+ master: '11',
48
+ permission: '906',
49
+ subject: '725',
50
+ subjects: '725',
51
+ filegen: '713',
52
+ filegenerator: '713',
53
+ object: '915',
54
+ objects: '915',
55
+ classroom: '921',
56
+ classrooms: '921',
57
+ user: '914',
58
+ users: '914',
59
+ tvweb: '161',
60
+ cloud247web: '161',
61
+ clients: '897',
62
+ goodstuff: '1002'
63
+ },
64
+ mobile: {
65
+ android: '887',
66
+ interactiveforios: '395'
67
+ }
68
+ };