@clickview/ship-it 0.0.33 → 0.0.34

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 (175) hide show
  1. package/Dockerfile +33 -33
  2. package/README.md +48 -48
  3. package/config.json +19 -19
  4. package/dist/F1/Analytics Web.md +8 -0
  5. package/dist/F1/AutoCaptions.md +30 -0
  6. package/dist/F1/Classroom.Api.md +23 -0
  7. package/dist/F1/ClickView Online.md +17 -0
  8. package/dist/F1/ClickView.Curator.md +100 -0
  9. package/dist/F1/ClickView.EmailService.md +53 -0
  10. package/dist/F1/ClickView.OnlineApi.md +13 -0
  11. package/dist/F1/Clients.md +19 -0
  12. package/dist/F1/Domain.Api.md +23 -0
  13. package/dist/F1/Exchange.Web.md +8 -0
  14. package/dist/F1/Image.Api.md +8 -0
  15. package/dist/F1/Integrations.Api.md +23 -0
  16. package/dist/F1/Krakend.md +8 -0
  17. package/dist/F1/Library Editor.md +0 -0
  18. package/dist/F1/Lite.md +60 -0
  19. package/dist/F1/Master.Api.md +58 -0
  20. package/dist/F1/Master.Auth.md +22 -0
  21. package/dist/F1/Objects.Api.md +12 -0
  22. package/dist/F1/Permissions.Api.md +12 -0
  23. package/dist/F1/RealtimeSalesforceSync.md +14 -0
  24. package/dist/F1/Release Notes.md +990 -0
  25. package/dist/F1/Search.Api.md +12 -0
  26. package/dist/F1/StreamableLearning.Web.md +35 -0
  27. package/dist/F1/Users.Api.md +13 -0
  28. package/dist/F1/VideoProcessorService.md +23 -0
  29. package/dist/F1/clickview.md +321 -0
  30. package/dist/F2/Analytics Web.md +7 -0
  31. package/dist/F2/Batch.Api.md +27 -0
  32. package/dist/F2/ClickView Online.md +12 -0
  33. package/dist/F2/ClickView.Curator.md +166 -0
  34. package/dist/F2/Clients.md +14 -0
  35. package/dist/F2/CurriculumIngestion.Api.md +13 -0
  36. package/dist/F2/Discover.Api.md +64 -0
  37. package/dist/F2/Domain.Api.md +16 -0
  38. package/dist/F2/Exchange.Web.md +7 -0
  39. package/dist/F2/Krakend.md +12 -0
  40. package/dist/F2/Library Editor.md +11 -0
  41. package/dist/F2/Lite.md +30 -0
  42. package/dist/F2/Objects.Api.md +12 -0
  43. package/dist/F2/Release Notes.md +759 -0
  44. package/dist/F2/Search.Api.md +30 -0
  45. package/dist/F2/Share.Api.md +12 -0
  46. package/dist/F2/StreamableLearning.Web.md +14 -0
  47. package/dist/F2/Subjects.API.md +12 -0
  48. package/dist/F2/Tv.Web.md +8 -0
  49. package/dist/F2/Users.Api.md +21 -0
  50. package/dist/F2/clickview.md +200 -0
  51. package/dist/F2/shortcode-api.md +8 -0
  52. package/dist/F3.1/Analytics Web.md +8 -0
  53. package/dist/F3.1/ClickView.Curator.md +14 -0
  54. package/dist/F3.1/Discover.Api.md +14 -0
  55. package/dist/F3.1/Domain.Api.md +7 -0
  56. package/dist/F3.1/Exchange.Web.md +8 -0
  57. package/dist/F3.1/Library Editor.md +8 -0
  58. package/dist/F3.1/Lite.md +8 -0
  59. package/dist/F3.1/Objects.Api.md +7 -0
  60. package/dist/F3.1/Release Notes.md +207 -0
  61. package/dist/F3.1/Search.Api.md +14 -0
  62. package/dist/F3.1/Share.Api.md +10 -0
  63. package/dist/F3.1/Subjects.API.md +35 -0
  64. package/dist/F3.1/VideoViews.Api.md +7 -0
  65. package/dist/F3.1/clickview.md +28 -0
  66. package/lib/config.json +20 -20
  67. package/lib/src/api-clients/git-lab/GitLabApiClient.js +439 -439
  68. package/lib/src/api-clients/git-lab/GitLabMapper.js +82 -82
  69. package/lib/src/api-clients/index.js +20 -20
  70. package/lib/src/api-clients/slack/SlackApiClient.js +206 -206
  71. package/lib/src/api-clients/team-city/TeamCityApiClient.js +100 -100
  72. package/lib/src/api-clients/trello/TrelloApiClient.js +145 -145
  73. package/lib/src/commands/BumpPackagesCommand.js +84 -84
  74. package/lib/src/commands/CreateBranchCommand.js +100 -100
  75. package/lib/src/commands/CreateMergeRequestCommand.js +107 -107
  76. package/lib/src/commands/CreateNotesAuditCommand.js +84 -84
  77. package/lib/src/commands/CreateReleaseNotesCommand.js +95 -95
  78. package/lib/src/commands/CreateTestingNotesCommand.js +84 -0
  79. package/lib/src/commands/CreateTrelloCardsCommand.js +77 -77
  80. package/lib/src/commands/InstallPackagesCommand.js +76 -76
  81. package/lib/src/commands/ListProjectsCommand.js +76 -76
  82. package/lib/src/commands/ReleaseCommand.js +129 -129
  83. package/lib/src/commands/StartConsumingProjectBuildsCommand.js +76 -0
  84. package/lib/src/commands/StartProjectBuildsCommand.js +76 -76
  85. package/lib/src/commands/StatusCommand.js +88 -88
  86. package/lib/src/commands/TagMasterCommand.js +76 -76
  87. package/lib/src/commands/ValidateMergeRequestCommand.js +76 -76
  88. package/lib/src/commands/VersionCommand.js +76 -76
  89. package/lib/src/commands/index.js +30 -30
  90. package/lib/src/constants/CommandTypeMapping.js +20 -20
  91. package/lib/src/constants/GitLabMemberIds.js +6 -6
  92. package/lib/src/constants/MonorepoPackageJsonFiles.js +17 -17
  93. package/lib/src/constants/MonorepoProjectNames.js +16 -16
  94. package/lib/src/constants/ProjectNames.js +68 -68
  95. package/lib/src/constants/SlackUserEmailList.js +13 -13
  96. package/lib/src/constants/TeamCityBuildIDs.js +45 -45
  97. package/lib/src/constants/index.js +19 -19
  98. package/lib/src/errors/ShipItError.js +32 -32
  99. package/lib/src/errors/index.js +17 -17
  100. package/lib/src/index.js +18 -18
  101. package/lib/src/interfaces/Config.js +2 -2
  102. package/lib/src/interfaces/MergeRequestState.js +2 -2
  103. package/lib/src/interfaces/ProjectNames.js +2 -2
  104. package/lib/src/interfaces/ShipItCommand.js +2 -2
  105. package/lib/src/interfaces/ShipItTask.js +2 -2
  106. package/lib/src/interfaces/VersionType.js +2 -2
  107. package/lib/src/interfaces/command-cli-options/MilestoneCommandCliOptions.js +2 -2
  108. package/lib/src/interfaces/command-cli-options/ReleaseCommandCliOptions.js +2 -2
  109. package/lib/src/interfaces/command-cli-options/StatusCommandCliOptions.js +2 -2
  110. package/lib/src/interfaces/command-cli-options/index.js +19 -19
  111. package/lib/src/interfaces/command-options/BaseCommandOptions.js +2 -2
  112. package/lib/src/interfaces/command-options/BumpPackagesCommandOptions.js +2 -2
  113. package/lib/src/interfaces/command-options/DockerMilestoneCommandOptions.js +2 -2
  114. package/lib/src/interfaces/command-options/MilestoneCommandOptions.js +2 -2
  115. package/lib/src/interfaces/command-options/ReleaseCommandOptions.js +2 -2
  116. package/lib/src/interfaces/command-options/StatusCommandOptions.js +2 -2
  117. package/lib/src/interfaces/command-options/ValidateMRCommandOptions.js +2 -2
  118. package/lib/src/interfaces/command-options/index.js +22 -22
  119. package/lib/src/interfaces/index.js +26 -26
  120. package/lib/src/interfaces/models/Branch.js +2 -2
  121. package/lib/src/interfaces/models/Commit.js +2 -2
  122. package/lib/src/interfaces/models/CommitFile.js +2 -2
  123. package/lib/src/interfaces/models/File.js +2 -2
  124. package/lib/src/interfaces/models/Label.js +2 -2
  125. package/lib/src/interfaces/models/MergeRequest.js +2 -2
  126. package/lib/src/interfaces/models/Milestone.js +2 -2
  127. package/lib/src/interfaces/models/Project.js +2 -2
  128. package/lib/src/interfaces/models/ProjectConfig.js +9 -9
  129. package/lib/src/interfaces/models/Release.js +2 -2
  130. package/lib/src/interfaces/models/Tag.js +2 -2
  131. package/lib/src/interfaces/models/index.js +26 -26
  132. package/lib/src/interfaces/view-models/MilestoneProject.js +2 -2
  133. package/lib/src/interfaces/view-models/index.js +17 -17
  134. package/lib/src/inversify.config.js +75 -75
  135. package/lib/src/services/GitLabService.js +508 -508
  136. package/lib/src/services/SlackService.js +142 -142
  137. package/lib/src/services/TeamCityService.js +37 -37
  138. package/lib/src/services/TrelloService.js +84 -84
  139. package/lib/src/services/index.js +20 -20
  140. package/lib/src/startup/AddMilestoneCommand.js +96 -96
  141. package/lib/src/startup/GetAction.js +68 -68
  142. package/lib/src/startup/SetupCommands.js +168 -168
  143. package/lib/src/tasks/BumpPackagesTask.js +229 -229
  144. package/lib/src/tasks/BumpVersionTxtTask.js +110 -110
  145. package/lib/src/tasks/CommitPackageVersionsTask.js +116 -116
  146. package/lib/src/tasks/CreateBranchTask.js +104 -104
  147. package/lib/src/tasks/CreateMergeRequestTask.js +118 -118
  148. package/lib/src/tasks/CreateNotesAuditTask.js +140 -140
  149. package/lib/src/tasks/CreateReleaseNotesTask.js +144 -144
  150. package/lib/src/tasks/CreateTestingNotesTask.js +135 -0
  151. package/lib/src/tasks/InstallPackagesTask.js +407 -407
  152. package/lib/src/tasks/ListProjectsTask.js +87 -87
  153. package/lib/src/tasks/MergeMasterToDevTask.js +147 -0
  154. package/lib/src/tasks/PopulateTrelloBoardTask.js +140 -140
  155. package/lib/src/tasks/StartConsumingProjectBuildsTask.js +149 -0
  156. package/lib/src/tasks/StartMonorepoBuildTask.js +109 -109
  157. package/lib/src/tasks/StartProjectBuildsTask.js +170 -170
  158. package/lib/src/tasks/TagMasterTask.js +186 -186
  159. package/lib/src/tasks/ValidateCommitsTask.js +143 -143
  160. package/lib/src/tasks/ValidateDescriptionsTask.js +178 -178
  161. package/lib/src/tasks/ValidateMergeRequestTask.js +115 -115
  162. package/lib/src/tasks/ValidateTask.js +419 -419
  163. package/lib/src/tasks/VersionTask.js +98 -98
  164. package/lib/src/tasks/index.js +34 -34
  165. package/lib/src/types.js +57 -57
  166. package/lib/src/utils/BranchNames.js +11 -11
  167. package/lib/src/utils/Commits.js +55 -55
  168. package/lib/src/utils/Csv.js +54 -54
  169. package/lib/src/utils/Descriptions.js +274 -274
  170. package/lib/src/utils/GroupIds.js +6 -6
  171. package/lib/src/utils/Logger.js +62 -62
  172. package/lib/src/utils/ProjectIds.js +47 -47
  173. package/lib/src/utils/Versions.js +20 -20
  174. package/lib/src/utils/index.js +22 -22
  175. package/package.json +50 -50
@@ -1,168 +1,168 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- 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;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.setupCommands = void 0;
40
- var AddMilestoneCommand_1 = require("./AddMilestoneCommand");
41
- var GetAction_1 = require("./GetAction");
42
- function setupCommands(program, container) {
43
- var _this = this;
44
- var getAction = (0, GetAction_1.getActionBuilder)(program, container);
45
- var addMilestoneCommand = (0, AddMilestoneCommand_1.getAddMilestoneCommand)(program, getAction);
46
- // All commands below accept the same options
47
- addMilestoneCommand('version', 'Display the versions that will be used for the release');
48
- addMilestoneCommand('create-branches', 'Create release branches for all projects that are part of a milestone');
49
- addMilestoneCommand('create-mrs', 'Create merge requests for all projects that are part of a milestone');
50
- addMilestoneCommand('create-notes-audit', 'Builds a spreadsheet of all the customer changes and who wrote them.');
51
- addMilestoneCommand('tag-master', 'Tags master for all release MRs that are part of a milestone');
52
- addMilestoneCommand('create-trello-cards', 'Creates the cards on the ship-it trello board for all projects that are part of a milestone');
53
- program.command('status')
54
- .description('Get the status of all MRs in a milestone')
55
- .requiredOption('-m, --milestone <milestone>')
56
- .option('-p, --projectIds <projectIds...>')
57
- .option('-o, --omit <omittedProjectIds...>')
58
- .option('--slack-notifier')
59
- .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
60
- var options;
61
- return __generator(this, function (_a) {
62
- switch (_a.label) {
63
- case 0:
64
- options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
65
- return [4 /*yield*/, getAction('status')(options)];
66
- case 1:
67
- _a.sent();
68
- return [2 /*return*/];
69
- }
70
- });
71
- }); });
72
- program.command('create-notes')
73
- .description('Get the status of all MRs in a milestone')
74
- .requiredOption('-m, --milestone <milestone>')
75
- .option('-p, --projectIds <projectIds...>')
76
- .option('-o, --omit <omittedProjectIds...>')
77
- .option('--slack-notifier')
78
- .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
79
- var options;
80
- return __generator(this, function (_a) {
81
- switch (_a.label) {
82
- case 0:
83
- options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
84
- return [4 /*yield*/, getAction('create-notes')(options)];
85
- case 1:
86
- _a.sent();
87
- return [2 /*return*/];
88
- }
89
- });
90
- }); });
91
- program.command('release')
92
- .description('Create releases for all projects that are part of a milestone')
93
- .requiredOption('-m, --milestone <milestone>')
94
- .option('-p, --projectIds <projectIds...>')
95
- .option('-o, --omit <omittedProjectIds...>')
96
- .option('-nm, --nextMilestone <nextMilestone>')
97
- .option('--hotfix')
98
- .option('--major')
99
- .option('--trigger-monorepo-build')
100
- .option('--slack-notifier')
101
- .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
102
- var options;
103
- return __generator(this, function (_a) {
104
- switch (_a.label) {
105
- case 0:
106
- options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
107
- return [4 /*yield*/, getAction('release')(options)];
108
- case 1:
109
- _a.sent();
110
- return [2 /*return*/];
111
- }
112
- });
113
- }); });
114
- program.command('bump-packages')
115
- .description('Bump clickview npm package versions in monorepo to their next version')
116
- .requiredOption('-b, --branchName <branchName>')
117
- .option('-p, --preId <preId>')
118
- .action(getAction('bump-packages'));
119
- program.command('install-packages')
120
- .description('Install the latest clickview npm packages in all consuming projects that are part of a milestone')
121
- .option('-m, --milestone <milestone>')
122
- .option('-b, --monorepoBranchName <monorepoBranchName>')
123
- .option('-p, --projectIds <projectIds...>')
124
- .option('-o, --omit <omittedProjectIds...>')
125
- .option('-t, --targetBranchName <targetBranchName>')
126
- .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
127
- var options;
128
- return __generator(this, function (_a) {
129
- switch (_a.label) {
130
- case 0:
131
- options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
132
- return [4 /*yield*/, getAction('install-packages')(options)];
133
- case 1:
134
- _a.sent();
135
- return [2 /*return*/];
136
- }
137
- });
138
- }); });
139
- program.command('validate-mr')
140
- .description('Validate a merge request in a single project, ensuring it has a milestone and valid description')
141
- .option('-p, --projectId <projectId>')
142
- .option('-b, --branchName <branchName>')
143
- .action(getAction('validate-mr'));
144
- program.command('start-project-builds')
145
- .description('Trigger TeamCity builds in all projects that are a part of a milestone')
146
- .option('-m, --milestone <milestone>')
147
- .option('--monorepoBranchName <monorepoBranchName>')
148
- .option('-p, --projectIds <projectIds...>')
149
- .option('-o, --omit <omittedProjectIds...>')
150
- .option('-t, --targetBranchName <targetBranchName>')
151
- .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
152
- var options;
153
- return __generator(this, function (_a) {
154
- switch (_a.label) {
155
- case 0:
156
- options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
157
- return [4 /*yield*/, getAction('start-project-builds')(options)];
158
- case 1:
159
- _a.sent();
160
- return [2 /*return*/];
161
- }
162
- });
163
- }); });
164
- program.command('list-projects')
165
- .description('Displays a list of all project names that can be used with the -p argument')
166
- .action(getAction('list-projects'));
167
- }
168
- exports.setupCommands = setupCommands;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.setupCommands = void 0;
40
+ var AddMilestoneCommand_1 = require("./AddMilestoneCommand");
41
+ var GetAction_1 = require("./GetAction");
42
+ function setupCommands(program, container) {
43
+ var _this = this;
44
+ var getAction = (0, GetAction_1.getActionBuilder)(program, container);
45
+ var addMilestoneCommand = (0, AddMilestoneCommand_1.getAddMilestoneCommand)(program, getAction);
46
+ // All commands below accept the same options
47
+ addMilestoneCommand('version', 'Display the versions that will be used for the release');
48
+ addMilestoneCommand('create-branches', 'Create release branches for all projects that are part of a milestone');
49
+ addMilestoneCommand('create-mrs', 'Create merge requests for all projects that are part of a milestone');
50
+ addMilestoneCommand('create-notes-audit', 'Builds a spreadsheet of all the customer changes and who wrote them.');
51
+ addMilestoneCommand('tag-master', 'Tags master for all release MRs that are part of a milestone');
52
+ addMilestoneCommand('create-trello-cards', 'Creates the cards on the ship-it trello board for all projects that are part of a milestone');
53
+ program.command('status')
54
+ .description('Get the status of all MRs in a milestone')
55
+ .requiredOption('-m, --milestone <milestone>')
56
+ .option('-p, --projectIds <projectIds...>')
57
+ .option('-o, --omit <omittedProjectIds...>')
58
+ .option('--slack-notifier')
59
+ .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
60
+ var options;
61
+ return __generator(this, function (_a) {
62
+ switch (_a.label) {
63
+ case 0:
64
+ options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
65
+ return [4 /*yield*/, getAction('status')(options)];
66
+ case 1:
67
+ _a.sent();
68
+ return [2 /*return*/];
69
+ }
70
+ });
71
+ }); });
72
+ program.command('create-notes')
73
+ .description('Get the status of all MRs in a milestone')
74
+ .requiredOption('-m, --milestone <milestone>')
75
+ .option('-p, --projectIds <projectIds...>')
76
+ .option('-o, --omit <omittedProjectIds...>')
77
+ .option('--slack-notifier')
78
+ .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
79
+ var options;
80
+ return __generator(this, function (_a) {
81
+ switch (_a.label) {
82
+ case 0:
83
+ options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
84
+ return [4 /*yield*/, getAction('create-notes')(options)];
85
+ case 1:
86
+ _a.sent();
87
+ return [2 /*return*/];
88
+ }
89
+ });
90
+ }); });
91
+ program.command('release')
92
+ .description('Create releases for all projects that are part of a milestone')
93
+ .requiredOption('-m, --milestone <milestone>')
94
+ .option('-p, --projectIds <projectIds...>')
95
+ .option('-o, --omit <omittedProjectIds...>')
96
+ .option('-nm, --nextMilestone <nextMilestone>')
97
+ .option('--hotfix')
98
+ .option('--major')
99
+ .option('--trigger-monorepo-build')
100
+ .option('--slack-notifier')
101
+ .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
102
+ var options;
103
+ return __generator(this, function (_a) {
104
+ switch (_a.label) {
105
+ case 0:
106
+ options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
107
+ return [4 /*yield*/, getAction('release')(options)];
108
+ case 1:
109
+ _a.sent();
110
+ return [2 /*return*/];
111
+ }
112
+ });
113
+ }); });
114
+ program.command('bump-packages')
115
+ .description('Bump clickview npm package versions in monorepo to their next version')
116
+ .requiredOption('-b, --branchName <branchName>')
117
+ .option('-p, --preId <preId>')
118
+ .action(getAction('bump-packages'));
119
+ program.command('install-packages')
120
+ .description('Install the latest clickview npm packages in all consuming projects that are part of a milestone')
121
+ .option('-m, --milestone <milestone>')
122
+ .option('-b, --monorepoBranchName <monorepoBranchName>')
123
+ .option('-p, --projectIds <projectIds...>')
124
+ .option('-o, --omit <omittedProjectIds...>')
125
+ .option('-t, --targetBranchName <targetBranchName>')
126
+ .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
127
+ var options;
128
+ return __generator(this, function (_a) {
129
+ switch (_a.label) {
130
+ case 0:
131
+ options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
132
+ return [4 /*yield*/, getAction('install-packages')(options)];
133
+ case 1:
134
+ _a.sent();
135
+ return [2 /*return*/];
136
+ }
137
+ });
138
+ }); });
139
+ program.command('validate-mr')
140
+ .description('Validate a merge request in a single project, ensuring it has a milestone and valid description')
141
+ .option('-p, --projectId <projectId>')
142
+ .option('-b, --branchName <branchName>')
143
+ .action(getAction('validate-mr'));
144
+ program.command('start-project-builds')
145
+ .description('Trigger TeamCity builds in all projects that are a part of a milestone')
146
+ .option('-m, --milestone <milestone>')
147
+ .option('--monorepoBranchName <monorepoBranchName>')
148
+ .option('-p, --projectIds <projectIds...>')
149
+ .option('-o, --omit <omittedProjectIds...>')
150
+ .option('-t, --targetBranchName <targetBranchName>')
151
+ .action(function (opts) { return __awaiter(_this, void 0, void 0, function () {
152
+ var options;
153
+ return __generator(this, function (_a) {
154
+ switch (_a.label) {
155
+ case 0:
156
+ options = (0, AddMilestoneCommand_1.processMilestoneCommandOptions)(opts);
157
+ return [4 /*yield*/, getAction('start-project-builds')(options)];
158
+ case 1:
159
+ _a.sent();
160
+ return [2 /*return*/];
161
+ }
162
+ });
163
+ }); });
164
+ program.command('list-projects')
165
+ .description('Displays a list of all project names that can be used with the -p argument')
166
+ .action(getAction('list-projects'));
167
+ }
168
+ exports.setupCommands = setupCommands;