simplify3x-connect 0.28.1 → 0.31.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 (226) hide show
  1. package/README.md +150 -55
  2. package/dist/adapters/http.d.ts.map +1 -1
  3. package/dist/adapters/http.js +3 -2
  4. package/dist/adapters/http.js.map +1 -1
  5. package/dist/adapters/simplifyqa/adapter.d.ts +442 -4
  6. package/dist/adapters/simplifyqa/adapter.d.ts.map +1 -1
  7. package/dist/adapters/simplifyqa/adapter.js +2321 -83
  8. package/dist/adapters/simplifyqa/adapter.js.map +1 -1
  9. package/dist/adapters/simplifyqa/executionFailures.d.ts +59 -1
  10. package/dist/adapters/simplifyqa/executionFailures.d.ts.map +1 -1
  11. package/dist/adapters/simplifyqa/executionFailures.js +429 -39
  12. package/dist/adapters/simplifyqa/executionFailures.js.map +1 -1
  13. package/dist/adapters/simplifyqa/failureAnalysis.d.ts +45 -0
  14. package/dist/adapters/simplifyqa/failureAnalysis.d.ts.map +1 -0
  15. package/dist/adapters/simplifyqa/failureAnalysis.js +373 -0
  16. package/dist/adapters/simplifyqa/failureAnalysis.js.map +1 -0
  17. package/dist/adapters/simplifyqa/failureAnalysisCard.d.ts +31 -0
  18. package/dist/adapters/simplifyqa/failureAnalysisCard.d.ts.map +1 -0
  19. package/dist/adapters/simplifyqa/failureAnalysisCard.js +371 -0
  20. package/dist/adapters/simplifyqa/failureAnalysisCard.js.map +1 -0
  21. package/dist/adapters/simplifyqa/failureAnalysisRun.d.ts +41 -0
  22. package/dist/adapters/simplifyqa/failureAnalysisRun.d.ts.map +1 -0
  23. package/dist/adapters/simplifyqa/failureAnalysisRun.js +138 -0
  24. package/dist/adapters/simplifyqa/failureAnalysisRun.js.map +1 -0
  25. package/dist/adapters/simplifyqa/failureAnalysisTypes.d.ts +84 -0
  26. package/dist/adapters/simplifyqa/failureAnalysisTypes.d.ts.map +1 -0
  27. package/dist/adapters/simplifyqa/failureAnalysisTypes.js +2 -0
  28. package/dist/adapters/simplifyqa/failureAnalysisTypes.js.map +1 -0
  29. package/dist/adapters/simplifyqa/failureHistory.d.ts +163 -0
  30. package/dist/adapters/simplifyqa/failureHistory.d.ts.map +1 -0
  31. package/dist/adapters/simplifyqa/failureHistory.js +174 -0
  32. package/dist/adapters/simplifyqa/failureHistory.js.map +1 -0
  33. package/dist/adapters/simplifyqa/failureImages.d.ts +13 -0
  34. package/dist/adapters/simplifyqa/failureImages.d.ts.map +1 -0
  35. package/dist/adapters/simplifyqa/failureImages.js +38 -0
  36. package/dist/adapters/simplifyqa/failureImages.js.map +1 -0
  37. package/dist/adapters/simplifyqa/failurePatterns.d.ts +54 -0
  38. package/dist/adapters/simplifyqa/failurePatterns.d.ts.map +1 -0
  39. package/dist/adapters/simplifyqa/failurePatterns.js +223 -0
  40. package/dist/adapters/simplifyqa/failurePatterns.js.map +1 -0
  41. package/dist/adapters/simplifyqa/failureReport.d.ts +35 -41
  42. package/dist/adapters/simplifyqa/failureReport.d.ts.map +1 -1
  43. package/dist/adapters/simplifyqa/failureReport.js +94 -249
  44. package/dist/adapters/simplifyqa/failureReport.js.map +1 -1
  45. package/dist/adapters/simplifyqa/failureReportModel.d.ts +73 -0
  46. package/dist/adapters/simplifyqa/failureReportModel.d.ts.map +1 -0
  47. package/dist/adapters/simplifyqa/failureReportModel.js +199 -0
  48. package/dist/adapters/simplifyqa/failureReportModel.js.map +1 -0
  49. package/dist/adapters/simplifyqa/failureReview.d.ts +36 -0
  50. package/dist/adapters/simplifyqa/failureReview.d.ts.map +1 -0
  51. package/dist/adapters/simplifyqa/failureReview.js +384 -0
  52. package/dist/adapters/simplifyqa/failureReview.js.map +1 -0
  53. package/dist/adapters/simplifyqa/failureSuggest.d.ts +13 -0
  54. package/dist/adapters/simplifyqa/failureSuggest.d.ts.map +1 -0
  55. package/dist/adapters/simplifyqa/failureSuggest.js +54 -0
  56. package/dist/adapters/simplifyqa/failureSuggest.js.map +1 -0
  57. package/dist/adapters/simplifyqa/failureTypes.d.ts +22 -1
  58. package/dist/adapters/simplifyqa/failureTypes.d.ts.map +1 -1
  59. package/dist/adapters/simplifyqa/loopConditions.d.ts +57 -0
  60. package/dist/adapters/simplifyqa/loopConditions.d.ts.map +1 -0
  61. package/dist/adapters/simplifyqa/loopConditions.js +145 -0
  62. package/dist/adapters/simplifyqa/loopConditions.js.map +1 -0
  63. package/dist/adapters/simplifyqa/mapper.d.ts.map +1 -1
  64. package/dist/adapters/simplifyqa/mapper.js +3 -1
  65. package/dist/adapters/simplifyqa/mapper.js.map +1 -1
  66. package/dist/adapters/simplifyqa/searchEngine.d.ts.map +1 -1
  67. package/dist/adapters/simplifyqa/searchEngine.js +6 -3
  68. package/dist/adapters/simplifyqa/searchEngine.js.map +1 -1
  69. package/dist/adapters/simplifyqa/searchRegistry.d.ts +7 -2
  70. package/dist/adapters/simplifyqa/searchRegistry.d.ts.map +1 -1
  71. package/dist/adapters/simplifyqa/searchRegistry.js +21 -2
  72. package/dist/adapters/simplifyqa/searchRegistry.js.map +1 -1
  73. package/dist/adapters/simplifyqa/spreadsheet.d.ts +15 -0
  74. package/dist/adapters/simplifyqa/spreadsheet.d.ts.map +1 -0
  75. package/dist/adapters/simplifyqa/spreadsheet.js +196 -0
  76. package/dist/adapters/simplifyqa/spreadsheet.js.map +1 -0
  77. package/dist/adapters/types.d.ts +24 -0
  78. package/dist/adapters/types.d.ts.map +1 -1
  79. package/dist/config.d.ts +0 -1
  80. package/dist/config.d.ts.map +1 -1
  81. package/dist/config.js +15 -12
  82. package/dist/config.js.map +1 -1
  83. package/dist/connection.d.ts +4 -1
  84. package/dist/connection.d.ts.map +1 -1
  85. package/dist/connection.js +12 -5
  86. package/dist/connection.js.map +1 -1
  87. package/dist/defaults.d.ts +45 -0
  88. package/dist/defaults.d.ts.map +1 -0
  89. package/dist/defaults.js +50 -0
  90. package/dist/defaults.js.map +1 -0
  91. package/dist/domain/types.d.ts +37 -0
  92. package/dist/domain/types.d.ts.map +1 -1
  93. package/dist/domain/types.js.map +1 -1
  94. package/dist/drafts/store.d.ts +0 -1
  95. package/dist/drafts/store.d.ts.map +1 -1
  96. package/dist/drafts/store.js +8 -3
  97. package/dist/drafts/store.js.map +1 -1
  98. package/dist/export/json.d.ts +4 -0
  99. package/dist/export/json.d.ts.map +1 -0
  100. package/dist/export/json.js +5 -0
  101. package/dist/export/json.js.map +1 -0
  102. package/dist/export/layout.d.ts +119 -0
  103. package/dist/export/layout.d.ts.map +1 -0
  104. package/dist/export/layout.js +198 -0
  105. package/dist/export/layout.js.map +1 -0
  106. package/dist/export/pdf.d.ts +67 -0
  107. package/dist/export/pdf.d.ts.map +1 -0
  108. package/dist/export/pdf.js +279 -0
  109. package/dist/export/pdf.js.map +1 -0
  110. package/dist/export/xlsx.d.ts +52 -0
  111. package/dist/export/xlsx.d.ts.map +1 -0
  112. package/dist/export/xlsx.js +251 -0
  113. package/dist/export/xlsx.js.map +1 -0
  114. package/dist/gateway.d.ts.map +1 -1
  115. package/dist/gateway.js +13 -3
  116. package/dist/gateway.js.map +1 -1
  117. package/dist/httpMain.js +3 -2
  118. package/dist/httpMain.js.map +1 -1
  119. package/dist/initAgents.d.ts.map +1 -1
  120. package/dist/initAgents.js +13 -5
  121. package/dist/initAgents.js.map +1 -1
  122. package/dist/mcpResult.d.ts +4 -3
  123. package/dist/mcpResult.d.ts.map +1 -1
  124. package/dist/mcpResult.js +4 -2
  125. package/dist/mcpResult.js.map +1 -1
  126. package/dist/mount.d.ts +7 -1
  127. package/dist/mount.d.ts.map +1 -1
  128. package/dist/mount.js +14 -7
  129. package/dist/mount.js.map +1 -1
  130. package/dist/requestConnection.d.ts.map +1 -1
  131. package/dist/requestConnection.js +8 -3
  132. package/dist/requestConnection.js.map +1 -1
  133. package/dist/server.d.ts +9 -0
  134. package/dist/server.d.ts.map +1 -1
  135. package/dist/server.js +53 -4
  136. package/dist/server.js.map +1 -1
  137. package/dist/tools/attachment.tools.d.ts.map +1 -1
  138. package/dist/tools/attachment.tools.js +54 -1
  139. package/dist/tools/attachment.tools.js.map +1 -1
  140. package/dist/tools/backlog.tools.d.ts.map +1 -1
  141. package/dist/tools/backlog.tools.js +41 -0
  142. package/dist/tools/backlog.tools.js.map +1 -1
  143. package/dist/tools/defectFromStep.tools.d.ts +16 -0
  144. package/dist/tools/defectFromStep.tools.d.ts.map +1 -0
  145. package/dist/tools/defectFromStep.tools.js +90 -0
  146. package/dist/tools/defectFromStep.tools.js.map +1 -0
  147. package/dist/tools/defectUpdate.tools.d.ts +15 -0
  148. package/dist/tools/defectUpdate.tools.d.ts.map +1 -0
  149. package/dist/tools/defectUpdate.tools.js +120 -0
  150. package/dist/tools/defectUpdate.tools.js.map +1 -0
  151. package/dist/tools/discovery.tools.d.ts +2 -0
  152. package/dist/tools/discovery.tools.d.ts.map +1 -1
  153. package/dist/tools/discovery.tools.js +8 -3
  154. package/dist/tools/discovery.tools.js.map +1 -1
  155. package/dist/tools/environment.tools.d.ts +18 -0
  156. package/dist/tools/environment.tools.d.ts.map +1 -0
  157. package/dist/tools/environment.tools.js +86 -0
  158. package/dist/tools/environment.tools.js.map +1 -0
  159. package/dist/tools/executionPlan.tools.d.ts.map +1 -1
  160. package/dist/tools/executionPlan.tools.js +37 -11
  161. package/dist/tools/executionPlan.tools.js.map +1 -1
  162. package/dist/tools/failure.tools.d.ts +12 -4
  163. package/dist/tools/failure.tools.d.ts.map +1 -1
  164. package/dist/tools/failure.tools.js +264 -33
  165. package/dist/tools/failure.tools.js.map +1 -1
  166. package/dist/tools/failureAnalysisStore.d.ts +30 -0
  167. package/dist/tools/failureAnalysisStore.d.ts.map +1 -0
  168. package/dist/tools/failureAnalysisStore.js +84 -0
  169. package/dist/tools/failureAnalysisStore.js.map +1 -0
  170. package/dist/tools/failureExport.tools.d.ts +26 -0
  171. package/dist/tools/failureExport.tools.d.ts.map +1 -0
  172. package/dist/tools/failureExport.tools.js +201 -0
  173. package/dist/tools/failureExport.tools.js.map +1 -0
  174. package/dist/tools/import.tools.d.ts +21 -0
  175. package/dist/tools/import.tools.d.ts.map +1 -0
  176. package/dist/tools/import.tools.js +187 -0
  177. package/dist/tools/import.tools.js.map +1 -0
  178. package/dist/tools/outDir.d.ts +9 -0
  179. package/dist/tools/outDir.d.ts.map +1 -0
  180. package/dist/tools/outDir.js +28 -0
  181. package/dist/tools/outDir.js.map +1 -0
  182. package/dist/tools/preference.tools.d.ts.map +1 -1
  183. package/dist/tools/preference.tools.js +29 -6
  184. package/dist/tools/preference.tools.js.map +1 -1
  185. package/dist/tools/query.tools.js +1 -1
  186. package/dist/tools/query.tools.js.map +1 -1
  187. package/dist/tools/releaseSprint.tools.d.ts +14 -0
  188. package/dist/tools/releaseSprint.tools.d.ts.map +1 -0
  189. package/dist/tools/releaseSprint.tools.js +130 -0
  190. package/dist/tools/releaseSprint.tools.js.map +1 -0
  191. package/dist/tools/report.tools.d.ts +2 -0
  192. package/dist/tools/report.tools.d.ts.map +1 -1
  193. package/dist/tools/report.tools.js +18 -4
  194. package/dist/tools/report.tools.js.map +1 -1
  195. package/dist/tools/run.tools.d.ts +7 -0
  196. package/dist/tools/run.tools.d.ts.map +1 -1
  197. package/dist/tools/run.tools.js +64 -9
  198. package/dist/tools/run.tools.js.map +1 -1
  199. package/dist/tools/schemas.d.ts +177 -0
  200. package/dist/tools/schemas.d.ts.map +1 -1
  201. package/dist/tools/schemas.js +4 -0
  202. package/dist/tools/schemas.js.map +1 -1
  203. package/dist/tools/tasks.tools.d.ts.map +1 -1
  204. package/dist/tools/tasks.tools.js +101 -0
  205. package/dist/tools/tasks.tools.js.map +1 -1
  206. package/dist/tools/testCaseLint.d.ts.map +1 -1
  207. package/dist/tools/testCaseLint.js +20 -0
  208. package/dist/tools/testCaseLint.js.map +1 -1
  209. package/dist/tools/testcase.tools.d.ts +4 -0
  210. package/dist/tools/testcase.tools.d.ts.map +1 -1
  211. package/dist/tools/testcase.tools.js +28 -0
  212. package/dist/tools/testcase.tools.js.map +1 -1
  213. package/dist/tools/testdata.tools.d.ts.map +1 -1
  214. package/dist/tools/testdata.tools.js +42 -1
  215. package/dist/tools/testdata.tools.js.map +1 -1
  216. package/dist/vendor/logger.d.ts +3 -5
  217. package/dist/vendor/logger.d.ts.map +1 -1
  218. package/dist/vendor/logger.js +13 -8
  219. package/dist/vendor/logger.js.map +1 -1
  220. package/dist/version.d.ts +1 -1
  221. package/dist/version.js +1 -1
  222. package/package.json +66 -64
  223. package/dist/tools/xlsx.d.ts +0 -8
  224. package/dist/tools/xlsx.d.ts.map +0 -1
  225. package/dist/tools/xlsx.js +0 -113
  226. package/dist/tools/xlsx.js.map +0 -1
@@ -109,6 +109,247 @@ export type PlanEntryRef = {
109
109
  tcName: string;
110
110
  assignedTo?: number;
111
111
  };
112
+ /** What `task_create` takes. Only `name` and `estimatedEffort` are required; the rest is defaulted and reported. */
113
+ export type TaskCreateInput = {
114
+ name: string;
115
+ estimatedEffort: number;
116
+ description?: string | undefined;
117
+ type?: string | undefined;
118
+ state?: string | undefined;
119
+ priority?: string | undefined;
120
+ plannedStartDate?: string | undefined;
121
+ plannedEndDate?: string | undefined;
122
+ assignee?: string | undefined;
123
+ releaseId?: string | undefined;
124
+ sprintId?: string | undefined;
125
+ storyId?: string | undefined;
126
+ };
127
+ /** The created task as read back; `defaults` lists what the caller did not give and was filled in. */
128
+ export type TaskCreateResult = {
129
+ id: string;
130
+ code: string;
131
+ name: string;
132
+ type: string;
133
+ state: string;
134
+ priority: string;
135
+ plannedStartDate: string;
136
+ plannedEndDate: string;
137
+ estimatedEffort: number;
138
+ ownerIds: number[];
139
+ release?: string;
140
+ sprint?: string;
141
+ storyId?: number;
142
+ defaults: string[];
143
+ warnings: string[];
144
+ };
145
+ /** What `attachment_download` saved (`files`), or — when an item has several attachments and none was chosen — what it has (`available`,
146
+ * with `needsChoice`). `sizeMatches` is null when SimplifyQA reports no size for the attachment. */
147
+ export type AttachmentDownloadResult = {
148
+ files: Array<{
149
+ id: string;
150
+ name: string;
151
+ path: string;
152
+ bytes: number;
153
+ reportedBytes?: number;
154
+ sizeMatches: boolean | null;
155
+ }>;
156
+ available: Array<{
157
+ id: string;
158
+ name: string;
159
+ bytes?: number;
160
+ }>;
161
+ needsChoice?: boolean;
162
+ warnings: string[];
163
+ };
164
+ /** What `backlog_unlink` removed: the link(s) as "DE-2293 (Clones)", and the links the source has left. */
165
+ export type BacklogUnlinkResult = {
166
+ sourceCode: string;
167
+ destinationCode: string;
168
+ removed: string[];
169
+ remaining: string[];
170
+ warnings: string[];
171
+ };
172
+ /** `defect_create`: log a defect by hand — what Defect Management → Create Defect takes. Only `name` is required; state / priority default to the
173
+ * project's own defaults and the answer says so. */
174
+ export type DefectCreateInput = {
175
+ name: string;
176
+ description?: string | undefined;
177
+ state?: string | undefined;
178
+ priority?: string | undefined;
179
+ severity?: string | undefined;
180
+ category?: string | undefined;
181
+ assignee?: string | undefined;
182
+ releaseId?: string | undefined;
183
+ sprintId?: string | undefined;
184
+ storyId?: string | undefined;
185
+ testCases?: string[] | undefined;
186
+ module?: string | undefined;
187
+ estimatedEffort?: number | undefined;
188
+ customFields?: Record<string, unknown> | undefined;
189
+ };
190
+ export type DefectCreateResult = {
191
+ defectId: string;
192
+ defectCode: string;
193
+ name: string;
194
+ state: string;
195
+ priority: string;
196
+ severity?: string;
197
+ testCases: string[];
198
+ storyId?: number;
199
+ defaults: string[];
200
+ warnings: string[];
201
+ };
202
+ /** `defect_create_from_step`: the failed step of an execution report (`executionId` EX-170, `step` number, `tc` when the execution ran several
203
+ * test cases) and what to call / set on the defect; everything else is pre-filled from the report. */
204
+ export type DefectFromStepInput = {
205
+ executionId: string;
206
+ step: number;
207
+ tc?: string | undefined;
208
+ name?: string | undefined;
209
+ description?: string | undefined;
210
+ state?: string | undefined;
211
+ priority?: string | undefined;
212
+ severity?: string | undefined;
213
+ assignee?: string | undefined;
214
+ };
215
+ export type DefectFromStepResult = {
216
+ defectId: string;
217
+ defectCode: string;
218
+ name: string;
219
+ execution: string;
220
+ testCase: string;
221
+ step: number;
222
+ attachments: number;
223
+ linkedToStep: boolean;
224
+ state: string;
225
+ priority: string;
226
+ warnings: string[];
227
+ };
228
+ /** `defect_link_step`: link a failed step (and so its test case and execution) to an existing defect. */
229
+ export type DefectLinkInput = {
230
+ executionId: string;
231
+ step: number;
232
+ defectId: string;
233
+ tc?: string | undefined;
234
+ };
235
+ export type DefectLinkResult = {
236
+ defectCode: string;
237
+ defectName: string;
238
+ execution: string;
239
+ testCase: string;
240
+ step: number;
241
+ stepLinked: boolean;
242
+ testCaseLinked: boolean;
243
+ warnings: string[];
244
+ };
245
+ /** What `defect_update` may change. `storyId` is the form's USER STORY field ("none" clears); `testCases` are added to the form's TEST CASE
246
+ * field ("TC-41" or "TC-41:v1.0"), `removeTestCases` taken out, `clearTestCases` empties it. */
247
+ export type DefectUpdateInput = {
248
+ storyId?: string | undefined;
249
+ testCases?: string[] | undefined;
250
+ removeTestCases?: string[] | undefined;
251
+ clearTestCases?: boolean | undefined;
252
+ state?: string | undefined;
253
+ priority?: string | undefined;
254
+ severity?: string | undefined;
255
+ name?: string | undefined;
256
+ description?: string | undefined;
257
+ assignee?: string | undefined;
258
+ unassign?: boolean | undefined;
259
+ releaseId?: string | undefined;
260
+ sprintId?: string | undefined;
261
+ };
262
+ /** The result of a defect update: each change as it read before and after; `written` is false when nothing needed changing. */
263
+ export type DefectUpdateResult = {
264
+ id: string;
265
+ code: string;
266
+ name: string;
267
+ changes: Array<{
268
+ field: string;
269
+ from: string;
270
+ to: string;
271
+ }>;
272
+ written: boolean;
273
+ warnings: string[];
274
+ };
275
+ /** What `task_update` may change. `assignee` is a user id, email, name or "me"; `unassign` clears it. */
276
+ export type TaskUpdateInput = {
277
+ name?: string | undefined;
278
+ state?: string | undefined;
279
+ priority?: string | undefined;
280
+ description?: string | undefined;
281
+ plannedStartDate?: string | undefined;
282
+ plannedEndDate?: string | undefined;
283
+ estimatedEffort?: number | undefined;
284
+ assignee?: string | undefined;
285
+ unassign?: boolean | undefined;
286
+ /** Release / sprint (id, code or exact name) and the linked user story (id or key); "none" clears each. */
287
+ releaseId?: string | undefined;
288
+ sprintId?: string | undefined;
289
+ storyId?: string | undefined;
290
+ actualEffort?: number | undefined;
291
+ remainingEffort?: number | undefined;
292
+ };
293
+ /** The result of a task update: each change as it read before and after; `written` is false when nothing needed changing. */
294
+ export type TaskUpdateResult = {
295
+ id: string;
296
+ code: string;
297
+ name: string;
298
+ changes: Array<{
299
+ field: string;
300
+ from: string;
301
+ to: string;
302
+ }>;
303
+ written: boolean;
304
+ };
305
+ /** What `release_create` / `sprint_create` take. `owners` are emails, names, user ids or "me" (default: the connected user). */
306
+ export type PmCreateInput = {
307
+ name: string;
308
+ plannedStartDate: string;
309
+ plannedEndDate: string;
310
+ estimatedEffort: number;
311
+ description?: string | undefined;
312
+ state?: string | undefined;
313
+ owners?: string[] | undefined;
314
+ releaseId?: string | undefined;
315
+ };
316
+ /** The created release / sprint, as read back (`release` is the code of a sprint's release). */
317
+ export type PmCreateResult = {
318
+ id: string;
319
+ code: string;
320
+ name: string;
321
+ state: string;
322
+ plannedStartDate: string;
323
+ plannedEndDate: string;
324
+ estimatedEffort: number;
325
+ ownerIds: number[];
326
+ release?: string;
327
+ warnings: string[];
328
+ };
329
+ /** What `release_update` / `sprint_update` may change. `close` = the project's completed-type state + the actual end date. */
330
+ export type PmUpdateInput = {
331
+ state?: string | undefined;
332
+ close?: boolean | undefined;
333
+ name?: string | undefined;
334
+ description?: string | undefined;
335
+ plannedStartDate?: string | undefined;
336
+ plannedEndDate?: string | undefined;
337
+ actualStartDate?: string | undefined;
338
+ actualEndDate?: string | undefined;
339
+ estimatedEffort?: number | undefined;
340
+ ownerIds?: number[] | undefined;
341
+ };
342
+ /** The result of a release / sprint update: `written` is false when nothing needed changing. */
343
+ export type PmUpdateResult = {
344
+ id: string;
345
+ code: string;
346
+ name: string;
347
+ stateBefore: string;
348
+ stateAfter: string;
349
+ changed: string[];
350
+ warnings: string[];
351
+ written: boolean;
352
+ };
112
353
  /** What a plan run started: the new execution id, the test cases sent, and those left out (with why). */
113
354
  export type PlanRunRef = {
114
355
  runId: string;
@@ -358,6 +599,60 @@ export declare class SimplifyQaAdapter {
358
599
  listDefects(q: DefectQuery): Promise<ListResult<DefectSummary>>;
359
600
  /** `POST /pm/task/search` — same searchFields protocol as defect/userstory search. */
360
601
  listTasks(q: TaskQuery): Promise<ListResult<TaskSummary>>;
602
+ /** One task as the backend stores it (`GET /pm/task/:id`), or undefined when there is none. */
603
+ private readTaskDoc;
604
+ /** The project's configured values of a default field of Task (parent 4) — `key` is what the row stores. Empty when they
605
+ * cannot be read; the caller then passes the given value through and lets the backend decide. */
606
+ private taskFieldValues;
607
+ /** Change a task the way the SimplifyQA editor does (a partial `PUT /pm/task/:id` carrying the project and the version it
608
+ * read), then read it back and compare. The assignee may be a user id, email, name or "me"; `unassign` clears it. */
609
+ updateTask(ref: string, patch: TaskUpdateInput): Promise<TaskUpdateResult>;
610
+ /** A task's release / sprint from what the caller said: "none" clears, a sprint brings its own release along, and a sprint that
611
+ * belongs to a different release than the one named is refused. `releaseId` / `iterationId` are what the task stores. */
612
+ private resolveTaskPlanning;
613
+ /** Create a task the way Tasks → Create Task does (`POST /pm/task`), then read it back. The backend requires a name, an
614
+ * estimate, a type and both planned dates, and refuses a duplicate name in the project — and answers any failure with a
615
+ * bare "Error While Creating Task" — so everything is checked here first. What the caller did not give is defaulted
616
+ * (type / state / priority from the project's own default values; dates from the sprint, else the release, else today)
617
+ * and the result says so. */
618
+ createTask(input: TaskCreateInput): Promise<TaskCreateResult>;
619
+ /** The project's configured values of a default field of a backlog entity (parent 4 = Task, 9 = Defect) — `key` is what the row
620
+ * stores. Empty when they cannot be read; the caller then passes the given value through. */
621
+ private defaultFieldValues;
622
+ /** A business code written with the other separator (US-25 / US_25) — tried second, since both appear in the product. */
623
+ private static codeVariants;
624
+ /** One defect of the active project as the backend stores it, by id, code (DE-61) or exact name. */
625
+ private findDefectDoc;
626
+ private readDefectDoc;
627
+ /** A test case (id or code, optionally ":version" / "@version") as the defect form stores it in `selectedTestCase`. */
628
+ private defectTestCaseEntry;
629
+ /** Change a defect the way the SimplifyQA defect form does (a partial `PUT /pm/defect/:id` carrying the project and the version it
630
+ * read), then read it back. USER STORY is `userstoryId`; TEST CASE is `selectedTestCase` — entries with the test case's id, code,
631
+ * name and chosen version — which the backend also writes onto the test case's own linked-defects list; that last step swallows its
632
+ * failures, so it is checked here (and redone through the same endpoint when missing). */
633
+ updateDefect(ref: string, patch: DefectUpdateInput): Promise<DefectUpdateResult>;
634
+ /** Log a defect the way Defect Management → Create Defect does (`POST /pm/defect`), then read it back. The backend requires a name,
635
+ * state and priority — defaulted here from the project's own defaults when not given — refuses a duplicate name, and (for a defect not
636
+ * logged from an execution) enforces the project's mandatory custom fields, which it reports in its own words. The User Story and
637
+ * Test Case fields are set as the form stores them, and each test case is checked to list the defect. */
638
+ createDefect(input: DefectCreateInput): Promise<DefectCreateResult>;
639
+ /** Make sure a test case's own linked-defects list shows the defect. The backend writes it when a defect is saved with the test case,
640
+ * but swallows any failure — so check it, redo it through the same endpoint when missing, check again. */
641
+ private ensureTestCaseListsDefect;
642
+ /** The failed step an execution report shows — with its run, test case and version — found by execution id (EX-170), step number
643
+ * and, for an execution of several test cases, the test case. Only a FAILED step can be logged / linked, as in the report. */
644
+ private resolveFailedStep;
645
+ /** Add defect ids to a step result — the way the report's "link defect" does (`POST /exec/stepResult?from=reports` with the stored
646
+ * step result). That save overwrites status, testdata, actualResult, screenShots and defectIds with what it is sent, so the stored
647
+ * values go back unchanged, and the step is read again to prove nothing else moved. */
648
+ private addDefectsToStep;
649
+ /** "Log Defect" on a failed step of an execution report: create the defect pre-filled with the test case + version, the steps to
650
+ * replicate up to the failure, the execution, environment, browser, expected / actual and error, and the step's screenshots, then
651
+ * link it to the step. */
652
+ logDefectFromStep(input: DefectFromStepInput): Promise<DefectFromStepResult>;
653
+ /** Link a failed step to an EXISTING defect (DE-60): the defect id goes onto the step result (what the report shows), and the step's
654
+ * test case + version is added to the defect's TEST CASE field so the link also shows from the defect and the test case. */
655
+ linkDefectToStep(input: DefectLinkInput): Promise<DefectLinkResult>;
361
656
  /** Fetch the project's default `state` and `priority` for a backlog entity.
362
657
  * parentId: 1 = Epic, 2 = Feature, 3 = User Story. Two-source resolution, in order:
363
658
  *
@@ -394,6 +689,18 @@ export declare class SimplifyQaAdapter {
394
689
  }>;
395
690
  /** Attachments of an epic / feature / user story (`/pm/attachment/:id/:parentType`). */
396
691
  entityAttachments(entityType: 'epic' | 'feature' | 'userstory', id: string): Promise<Array<Record<string, unknown>>>;
692
+ /** Download attachments of an epic / feature / user story from SimplifyQA into a local folder. The file is fetched from the attachment's
693
+ * `/download/…` URL through the SAME authenticated client the rest of the MCP uses (the user's token goes with the request — and only to the
694
+ * connected SimplifyQA host). With one attachment and no choice it downloads it; with several and no choice it lists them instead
695
+ * (`needsChoice`) so the caller can ask. Each saved file is compared with the size SimplifyQA reports, and a web page standing in for the file
696
+ * (an expired login) is refused rather than saved as a "download". Never overwrites: a name that exists gets " (1)". */
697
+ downloadAttachments(input: {
698
+ entityType: 'epic' | 'feature' | 'userstory';
699
+ itemId: string;
700
+ attachments?: string[] | undefined;
701
+ all?: boolean | undefined;
702
+ outDir: string;
703
+ }): Promise<AttachmentDownloadResult>;
397
704
  /** Remove one attachment (by id or stored/original name) from an epic / feature / user story.
398
705
  * Mirrors the UI: mark the row `deleted:true` and re-save the item (multipart, no file part). */
399
706
  removeAttachment(input: {
@@ -479,6 +786,23 @@ export declare class SimplifyQaAdapter {
479
786
  * fully empty (all `*Arr` are `{}` maps), the server actually deleted; otherwise it refused
480
787
  * and just handed back the deps. We do not assume — we inspect. */
481
788
  deleteVersion(input: VersionDeleteInput): Promise<VersionDeleteResult>;
789
+ /** The keys the backend's release / sprint validators accept (project-management releaseValidation.js / sprintValidation.js).
790
+ * The PUT validates the WHOLE body and refuses any other key (id, code, customerId, createdAt …), so only these are sent. */
791
+ private static readonly PM_FIELDS;
792
+ /** Every live release (of the active project) or sprint (of its releases) as the backend stores it. */
793
+ private pmRows;
794
+ /** One release / sprint by id, business code (RE-44) or exact name — never a guess when a name matches several. */
795
+ private findPm;
796
+ /** The project's configured `state` values for releases (fields 11) or sprints (12): `key` is what the row stores. Empty when
797
+ * they cannot be read — the caller then passes the given state through and lets the backend decide. */
798
+ private pmStates;
799
+ /** Update a release or a sprint the way the SimplifyQA editor does (read it, change what was asked, PUT the whole record),
800
+ * then read it back to confirm. `close` sets the project's completed-type state and the actual end date. */
801
+ updateReleaseOrSprint(kind: 'release' | 'sprint', ref: string, patch: PmUpdateInput): Promise<PmUpdateResult>;
802
+ /** Create a release or a sprint the way Releases → Create does (`POST /pm/release` / `/pm/sprint`), then read it back.
803
+ * The backend requires a state and at least one owner, so the state defaults to the project's first one (New) and the owner to
804
+ * the connected user. A sprint needs an existing release of this project. */
805
+ createReleaseOrSprint(kind: 'release' | 'sprint', input: PmCreateInput): Promise<PmCreateResult>;
482
806
  /** `list_releases` has no limit/offset of its own — it always wants the WHOLE visible set — so
483
807
  * page internally past `searchBody`'s default 100 instead of silently truncating (same fix as
484
808
  * listModules). */
@@ -517,6 +841,17 @@ export declare class SimplifyQaAdapter {
517
841
  destinationCode?: string;
518
842
  linkedIssues: Array<Record<string, unknown>>;
519
843
  }>;
844
+ /** Remove a link between two backlog items — the UI's Linkages delete. The link is a row stored on the SOURCE item and mirrored on the
845
+ * destination under the SAME id; the backend removes it when the source is saved with that row marked `deleted:true`, which drops both sides.
846
+ * The row is the stored one (it must carry its destination code, or the backend errors), the removal is read back from /pm/linkages, and the
847
+ * other side is checked too. With several links to the same item, `linkType` says which one. */
848
+ unlinkBacklogItem(input: {
849
+ sourceType: 'epic' | 'feature' | 'userstory' | 'defect' | 'task';
850
+ sourceId: string;
851
+ destType: 'epic' | 'feature' | 'userstory' | 'defect' | 'task';
852
+ destId: string;
853
+ linkType?: string | undefined;
854
+ }): Promise<BacklogUnlinkResult>;
520
855
  /** Create a PROJECT (`POST /pm/project`). The UI's new-project form sends a name, description and
521
856
  * the member `users` plus a defaults block; the backend accepts the minimal shape, so start there
522
857
  * and let the backend fill its own defaults. */
@@ -802,6 +1137,10 @@ export declare class SimplifyQaAdapter {
802
1137
  /** Populated by actionCatalog() on each fetch. Surfaced in resolveAutomationSteps error messages
803
1138
  * so a user hitting "no SQA action named X" can see what the fetch actually returned. */
804
1139
  private actionCatalogFetchDiag;
1140
+ /** Targeted `POST /tm/action/search` for ONE action by id, name or display name. The cached catalog can
1141
+ * miss a project's newer custom actions (type CUSTOM), and `GET /tm/action/:id` is not an option for
1142
+ * them (the backend reads the id as a project id → "Project not found"). Returns undefined on no hit. */
1143
+ private findActionLive;
805
1144
  private actionCatalog;
806
1145
  /** Which positional argument slots of each action are Runtime (store) slots, from the backend's own action rows
807
1146
  * (`parameters[].runtimeParameter`). A SEPARATE, failure-tolerant fetch — the main catalog request is left exactly as
@@ -917,8 +1256,29 @@ export declare class SimplifyQaAdapter {
917
1256
  * (`type:'EXECUTIONPLAN'`, `childExecution`, `parentExecutionId`) whose items are the assigned,
918
1257
  * non-blocked AUTOMATION entries matched to the shell's items. Every refusal happens before the
919
1258
  * first write. `POST /tm/execplantestcases/execute` (dead code) is never used. */
1259
+ /** The plan's saved STACK canvas (`/tm/executionFlow/EP/<id>/STACK`) or null. */
1260
+ getPlanStacks(planId: string): Promise<Record<string, any> | null>;
1261
+ /** Configure the plan's STACK canvas with N stacks and distribute its automation test cases across
1262
+ * them — the same document the UI's Stack Setup saves (`POST/PUT /tm/executionFlow`, flowType
1263
+ * 'STACK'). Round-robin by default; the backend divides the saved stacks at run time. */
1264
+ configurePlanStacks(planId: string, opts: {
1265
+ count: number;
1266
+ mode?: 'CLOUD' | 'LOCAL';
1267
+ browser?: string;
1268
+ }): Promise<{
1269
+ created: boolean;
1270
+ /** CLOUD stacks only: whether the project has a cloud machine to run them on. */
1271
+ cloudAvailable?: boolean;
1272
+ stacks: Array<{
1273
+ id: string;
1274
+ name: string;
1275
+ mode: string;
1276
+ codes: string[];
1277
+ }>;
1278
+ }>;
920
1279
  startExecutionPlanRun(planId: string, opts: {
921
1280
  agentId?: string;
1281
+ mode?: 'local' | 'remote' | 'cloud' | 'stack';
922
1282
  }): Promise<PlanRunRef>;
923
1283
  /** Every live entry of a plan (the search has no privilege check; scoped to the active project). */
924
1284
  private listPlanEntries;
@@ -935,6 +1295,12 @@ export declare class SimplifyQaAdapter {
935
1295
  private refsByIds;
936
1296
  /** A concurrency conflict becomes a plain instruction — never an automatic retry. */
937
1297
  private rethrowWrite;
1298
+ /** The names schedules already have in the active project (lower-case → id / code) — the Scheduler refuses a second one. */
1299
+ private scheduleNames;
1300
+ /** The Scheduler form's rule for a name: 3–501 characters, unique in the project. `selfId` is the schedule being renamed. */
1301
+ private checkScheduleName;
1302
+ /** The Scheduler's own duplicate answer (HTTP 409 / DUPLICATENAME), said in words. */
1303
+ private scheduleNameError;
938
1304
  /** A schedule — the scheduler form's body (scheduler-form.component.ts:363-388, +tz on create). TC:
939
1305
  * the browser as its platform; SU: one platform per technology in the suite (suitePlatform). An execution
940
1306
  * plan is refused: the Scheduler UI offers only test case and suite (its EP option is commented out). */
@@ -1166,6 +1532,22 @@ export declare class SimplifyQaAdapter {
1166
1532
  deleted: string[];
1167
1533
  rows: TestdataRows;
1168
1534
  }>;
1535
+ /** Make one iteration row the DEFAULT of an environment — the row a run executes — for a test case, function or suite. The default is not a flag
1536
+ * on the row: it is `defaultIteration` on the test data DEFINITION, a map of environment → iteration id, saved through the same update the test data page
1537
+ * uses (`PUT /tm/testdata/update`, which also records the change). That update takes at least one row (the backend reads the project from it) and
1538
+ * the definition's NUMERIC id, so the chosen row goes back unchanged. Other environments' defaults are kept, a stale version is retried once, and the
1539
+ * test data is read again to confirm the new default. */
1540
+ setDefaultTestdataIteration(q: {
1541
+ entityType: 'TC' | 'FN' | 'SU';
1542
+ id: string;
1543
+ environmentType: string;
1544
+ iteration: string;
1545
+ }): Promise<{
1546
+ iteration: string;
1547
+ previous?: string;
1548
+ changed: boolean;
1549
+ rows: TestdataRows;
1550
+ }>;
1169
1551
  /** Copy the default-iteration values of one TC onto another, matching parameters BY NAME. * Used by tc_automate: a manual TC converted to automated must carry the manual TC's testdata,
1170
1552
  * not the values that happened to be typed during the recording. Protected source values are read
1171
1553
  * unmasked internally so they can be copied — they are never returned to the model.
@@ -1197,6 +1579,17 @@ export declare class SimplifyQaAdapter {
1197
1579
  patched: number;
1198
1580
  skipped: string[];
1199
1581
  }>;
1582
+ /** Find and repair test-data cells that have no `type` in EVERY version of a test case.
1583
+ * The recorder window's save of a new version adds cells (`{paramId, value}`) to the first test-data
1584
+ * header it finds for the test case without filtering by version, so either version can end up with
1585
+ * typeless cells. Such a version cannot load its test data and its runs end Not Executed with no steps.
1586
+ * Each such cell gets `type:'OB'` plus the stepId / stepSeq of the step that uses the parameter in that
1587
+ * version; nothing is deleted and no value is touched. */
1588
+ repairTestdataCells(tcId: string): Promise<{
1589
+ checked: number;
1590
+ repaired: number;
1591
+ versions: string[];
1592
+ }>;
1200
1593
  /** Environment key: caller wins; else fetch the project's configured envs and pick the first;
1201
1594
  * else 'general' (matches the SQA UI fallback). */
1202
1595
  private resolveEnvironment;
@@ -1240,18 +1633,24 @@ export declare class SimplifyQaAdapter {
1240
1633
  versionId?: string | undefined;
1241
1634
  stepId?: string | undefined;
1242
1635
  }): Promise<RunStatus>;
1636
+ /** The failure-analysis engine (executionFailures.ts) bound to this connection. */
1637
+ private failureAnalyzer;
1243
1638
  /** Whole-execution failure analysis (executionFailures.ts) for TC-123 / SU-123 / PL-123 or one
1244
1639
  * named execution. */
1245
1640
  getExecutionFailures(input: import('./failureTypes.js').ExecutionFailureInput): Promise<import('./failureTypes.js').ExecutionFailureContext>;
1641
+ /** Level-1 history of each failed test case in `ctx`, searched across every execution of the test
1642
+ * case before it — standalone, any suite, any plan (failureHistory.ts). Keyed by
1643
+ * `executionItemId`; status `unknown` when its run search failed. `cache` (one per analysis)
1644
+ * makes a test case failing in several executions one search. "Edited since pass" carries
1645
+ * version names. */
1646
+ getFailureHistory(ctx: import('./failureTypes.js').ExecutionFailureContext, cache?: import('./failureHistory.js').HistoryCache): Promise<Map<string, import('./failureHistory.js').TestcaseHistory>>;
1647
+ /** Level-2: the failing step of `it` as it ran in the last passed run (failureHistory.ts). */
1648
+ compareWithLastPass(it: import('./failureTypes.js').FailureIteration, history: import('./failureHistory.js').TestcaseHistory, executionItemId: string, rows?: import('./failureHistory.js').StepRowsCache): Promise<import('./failureHistory.js').StepComparison | null>;
1246
1649
  /** A failure screenshot as base64 (see executionFailures.fetchFailureImage). */
1247
1650
  fetchFailureImage(absoluteUrl: string, maxBytes: number): Promise<{
1248
1651
  data: string;
1249
1652
  mimeType: string;
1250
1653
  } | null>;
1251
- /** The failure-analysis card + evidence text and the top causes' screenshots (failureReport.ts). */
1252
- getFailureReport(input: import('./failureTypes.js').ExecutionFailureInput & {
1253
- includeImages?: boolean;
1254
- }): Promise<import('./failureReport.js').FailureReport>;
1255
1654
  private baseUrl;
1256
1655
  /** Most recent execution runId for a SUITE or TC — same `/exec/execution/search` the /reports UI's
1257
1656
  * current-executions view drives, filtered by `type` + the entity's numeric id, sorted id desc,
@@ -1364,6 +1763,45 @@ export declare class SimplifyQaAdapter {
1364
1763
  /** Direct REST — same endpoint `resolveEnvironment` uses. Works without an agent hop.
1365
1764
  * `key` is what testdata iterations store as `environmentType`; `id` is the uuid used by run dispatch. */
1366
1765
  listEnvironments(): Promise<EnvInfo[]>;
1766
+ /** Raw environment rows of the active project (the rows `/pm/fields/savefields` round-trips). */
1767
+ private fetchEnvironmentRows;
1768
+ /** Persist the project's WHOLE environment list — byte-for-byte what the UI's Environment editor
1769
+ * posts: `POST /pm/fields/savefields { environment: [...], customlevel: false }`. A new row has an
1770
+ * empty id; an existing one is edited in place; a deleted one is sent back with `deleted: true`.
1771
+ * The backend then provisions that environment's test-data rows itself (the UI calls it
1772
+ * "Test Data environment creation has been initiated"). */
1773
+ private saveEnvironmentRows;
1774
+ /** The logged-in user's id, as the UI stamps createdBy/updatedBy (0 when it cannot be resolved). */
1775
+ private environmentActor;
1776
+ /** The project's customerId — the UI puts it inside the generated environment key. */
1777
+ private projectCustomerId;
1778
+ /** Key the UI would generate (`CUSTFIELD_<customerId><name>_<name.length>_<rand5>`). */
1779
+ private newEnvironmentKey;
1780
+ /** Create an ENVIRONMENT (project configuration > Environments) and return it as saved. */
1781
+ createEnvironment(input: {
1782
+ name: string;
1783
+ key?: string;
1784
+ }): Promise<{
1785
+ id: string;
1786
+ key: string;
1787
+ name: string;
1788
+ }>;
1789
+ /** Rename / re-key an EXISTING environment. `ref` is its name or key. */
1790
+ updateEnvironment(ref: string, patch: {
1791
+ name?: string;
1792
+ key?: string;
1793
+ }): Promise<{
1794
+ id: string;
1795
+ key: string;
1796
+ name: string;
1797
+ }>;
1798
+ /** Delete an environment the way the UI does: mark the row `deleted:true` and send the list back.
1799
+ * The default `general` environment is refused. */
1800
+ deleteEnvironment(ref: string): Promise<{
1801
+ id: string;
1802
+ name: string;
1803
+ key: string;
1804
+ }>;
1367
1805
  listDatasets(tcId?: string): Promise<DatasetInfo[]>;
1368
1806
  private agentUnreachable;
1369
1807
  readJournal(tcId: string): Promise<JournalView>;