testit-api-client 7.0.0-rc1 → 7.0.0-rc2

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 (493) hide show
  1. package/README.MD +8 -10
  2. package/dist/ApiClient.js +30 -23
  3. package/dist/api/AttachmentsApi.js +81 -52
  4. package/dist/api/AutoTestsApi.js +360 -196
  5. package/dist/api/BackgroundJobsApi.js +97 -62
  6. package/dist/api/ConfigurationsApi.js +189 -119
  7. package/dist/api/CustomAttributeTemplatesApi.js +149 -90
  8. package/dist/api/CustomAttributesApi.js +98 -63
  9. package/dist/api/ExternalIssuesApi.js +19 -14
  10. package/dist/api/NotificationsApi.js +91 -52
  11. package/dist/api/ParametersApi.js +264 -149
  12. package/dist/api/ProjectAttributeTemplatesApi.js +57 -32
  13. package/dist/api/ProjectAttributesApi.js +107 -62
  14. package/dist/api/ProjectConfigurationsApi.js +19 -14
  15. package/dist/api/ProjectSectionsApi.js +25 -14
  16. package/dist/api/ProjectSettingsApi.js +34 -23
  17. package/dist/api/ProjectTestPlanAttributesApi.js +90 -51
  18. package/dist/api/ProjectTestPlanTestPointsApi.js +38 -23
  19. package/dist/api/ProjectTestPlansApi.js +114 -63
  20. package/dist/api/ProjectWorkItemsApi.js +130 -64
  21. package/dist/api/ProjectsApi.js +422 -244
  22. package/dist/api/SearchApi.js +18 -14
  23. package/dist/api/SectionsApi.js +140 -79
  24. package/dist/api/TagsApi.js +108 -62
  25. package/dist/api/TestPlansApi.js +524 -299
  26. package/dist/api/TestPointsApi.js +72 -44
  27. package/dist/api/TestResultsApi.js +242 -149
  28. package/dist/api/TestRunsApi.js +379 -235
  29. package/dist/api/TestSuitesApi.js +211 -127
  30. package/dist/api/UsersApi.js +18 -14
  31. package/dist/api/WebhooksApi.js +157 -102
  32. package/dist/api/WebhooksLogsApi.js +52 -33
  33. package/dist/api/WorkItemsApi.js +450 -256
  34. package/dist/api/WorkItemsCommentsApi.js +78 -52
  35. package/dist/model/AIServiceModelApiResult.js +1 -1
  36. package/dist/model/AIServiceModelApiResultReply.js +1 -1
  37. package/dist/model/AssignAttachmentApiModel.js +1 -1
  38. package/dist/model/AssignIterationApiModel.js +1 -1
  39. package/dist/model/AttachmentApiResult.js +1 -1
  40. package/dist/model/AttachmentChangeViewModel.js +1 -1
  41. package/dist/model/AttachmentChangeViewModelArrayChangedFieldViewModel.js +1 -1
  42. package/dist/model/AttachmentModel.js +1 -1
  43. package/dist/model/AttachmentPutModel.js +1 -1
  44. package/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +1 -1
  45. package/dist/model/AttachmentUpdateRequest.js +1 -1
  46. package/dist/model/AuditApiResult.js +1 -1
  47. package/dist/model/AutoTest.js +1 -1
  48. package/dist/model/AutoTestApiResult.js +1 -1
  49. package/dist/model/AutoTestAverageDurationApiResult.js +1 -1
  50. package/dist/model/AutoTestBulkDeleteApiModel.js +1 -1
  51. package/dist/model/AutoTestBulkDeleteApiResult.js +1 -1
  52. package/dist/model/AutoTestChangeViewModel.js +1 -1
  53. package/dist/model/AutoTestChangeViewModelArrayChangedFieldViewModel.js +1 -1
  54. package/dist/model/AutoTestClassCountApiModel.js +1 -1
  55. package/dist/model/AutoTestCreateApiModel.js +1 -1
  56. package/dist/model/AutoTestExtractionApiModel.js +1 -1
  57. package/dist/model/AutoTestFilterApiModel.js +1 -1
  58. package/dist/model/AutoTestFilterModel.js +1 -1
  59. package/dist/model/AutoTestFlakyBulkApiModel.js +1 -1
  60. package/dist/model/AutoTestIdModel.js +1 -1
  61. package/dist/model/AutoTestModel.js +1 -1
  62. package/dist/model/AutoTestModelV2GetModel.js +1 -1
  63. package/dist/model/AutoTestNamespaceApiResult.js +1 -1
  64. package/dist/model/AutoTestNamespaceCountApiModel.js +1 -1
  65. package/dist/model/AutoTestNamespacesCountResponse.js +1 -1
  66. package/dist/model/AutoTestProjectSettingsApiModel.js +1 -1
  67. package/dist/model/AutoTestProjectSettingsApiResult.js +1 -1
  68. package/dist/model/AutoTestResultHistoryApiResult.js +1 -1
  69. package/dist/model/AutoTestResultHistorySelectApiModel.js +1 -1
  70. package/dist/model/AutoTestResultReasonShort.js +1 -1
  71. package/dist/model/AutoTestResultReasonsCountItemModel.js +1 -1
  72. package/dist/model/AutoTestResultReasonsCountModel.js +1 -1
  73. package/dist/model/AutoTestResultsForTestRunModel.js +1 -1
  74. package/dist/model/AutoTestSearchApiModel.js +1 -1
  75. package/dist/model/AutoTestSearchIncludeApiModel.js +1 -1
  76. package/dist/model/AutoTestSelectApiModel.js +1 -1
  77. package/dist/model/AutoTestSelectModel.js +1 -1
  78. package/dist/model/AutoTestShortApiResult.js +1 -1
  79. package/dist/model/AutoTestStep.js +1 -1
  80. package/dist/model/AutoTestStepApiModel.js +1 -1
  81. package/dist/model/AutoTestStepApiResult.js +1 -1
  82. package/dist/model/AutoTestStepModel.js +1 -1
  83. package/dist/model/AutoTestStepResult.js +1 -1
  84. package/dist/model/AutoTestStepResultUpdateRequest.js +1 -1
  85. package/dist/model/AutoTestStepResultsApiResult.js +1 -1
  86. package/dist/model/AutoTestUpdateApiModel.js +1 -1
  87. package/dist/model/AutoTestWorkItemIdentifierApiResult.js +1 -1
  88. package/dist/model/AutoTestsExtractionModel.js +1 -1
  89. package/dist/model/AutotestResultReasonFilterModel.js +1 -1
  90. package/dist/model/AutotestResultReasonShortGetModel.js +1 -1
  91. package/dist/model/BackgroundJobAttachmentModel.js +1 -1
  92. package/dist/model/BackgroundJobFilterModel.js +1 -1
  93. package/dist/model/BackgroundJobGetModel.js +1 -1
  94. package/dist/model/BooleanChangedFieldViewModel.js +1 -1
  95. package/dist/model/BooleanNullableChangedFieldViewModel.js +1 -1
  96. package/dist/model/CollectionFilter.js +1 -1
  97. package/dist/model/CompositeFilter.js +1 -1
  98. package/dist/model/ConfigurationByParametersModel.js +1 -1
  99. package/dist/model/ConfigurationExtractionApiModel.js +1 -1
  100. package/dist/model/ConfigurationExtractionModel.js +1 -1
  101. package/dist/model/ConfigurationFilterApiModel.js +1 -1
  102. package/dist/model/ConfigurationFilterModel.js +1 -1
  103. package/dist/model/ConfigurationModel.js +1 -1
  104. package/dist/model/ConfigurationPostModel.js +1 -1
  105. package/dist/model/ConfigurationPutModel.js +1 -1
  106. package/dist/model/ConfigurationSelectApiModel.js +1 -1
  107. package/dist/model/ConfigurationSelectModel.js +1 -1
  108. package/dist/model/ConfigurationShort.js +1 -1
  109. package/dist/model/ConfigurationShortApiResult.js +1 -1
  110. package/dist/model/ConfigurationShortModel.js +1 -1
  111. package/dist/model/CreateDefectApiModel.js +1 -1
  112. package/dist/model/CreateEmptyTestRunApiModel.js +1 -1
  113. package/dist/model/CreateFailureCategoryApiModel.js +1 -1
  114. package/dist/model/CreateFailureClassRegexApiModel.js +1 -1
  115. package/dist/model/CreateLinkApiModel.js +1 -1
  116. package/dist/model/CreateParameterApiModel.js +1 -1
  117. package/dist/model/CreateProjectApiModel.js +1 -1
  118. package/dist/model/CreateProjectFailureCategoryApiModel.js +1 -1
  119. package/dist/model/CreateStepApiModel.js +1 -1
  120. package/dist/model/CreateTagApiModel.js +1 -1
  121. package/dist/model/CreateTestPlanApiModel.js +1 -1
  122. package/dist/model/CreateTestRunAndFillByAutoTestsApiModel.js +1 -1
  123. package/dist/model/CreateTestRunAndFillByConfigurationsApiModel.js +1 -1
  124. package/dist/model/CreateTestRunAndFillByWorkItemsApiModel.js +1 -1
  125. package/dist/model/CreateTestStatusApiModel.js +1 -1
  126. package/dist/model/CreateWorkItemApiModel.js +1 -1
  127. package/dist/model/CreateWorkItemPreviewsApiModel.js +1 -1
  128. package/dist/model/CreateWorkflowApiModel.js +1 -1
  129. package/dist/model/CustomAttributeApiResult.js +1 -1
  130. package/dist/model/CustomAttributeChangeModel.js +1 -1
  131. package/dist/model/CustomAttributeGetModel.js +1 -1
  132. package/dist/model/CustomAttributeModel.js +1 -1
  133. package/dist/model/CustomAttributeOptionApiResult.js +1 -1
  134. package/dist/model/CustomAttributeOptionModel.js +1 -1
  135. package/dist/model/CustomAttributeOptionPostModel.js +1 -1
  136. package/dist/model/CustomAttributePostModel.js +1 -1
  137. package/dist/model/CustomAttributePutModel.js +1 -1
  138. package/dist/model/CustomAttributeSearchQueryModel.js +1 -1
  139. package/dist/model/CustomAttributeSearchResponseModel.js +1 -1
  140. package/dist/model/CustomAttributeTemplateModel.js +1 -1
  141. package/dist/model/CustomAttributeTemplatePostModel.js +1 -1
  142. package/dist/model/CustomAttributeTemplatePutModel.js +1 -1
  143. package/dist/model/CustomAttributeTemplateSearchQueryModel.js +1 -1
  144. package/dist/model/CustomAttributeTemplateValidationResult.js +1 -1
  145. package/dist/model/CustomAttributeTestPlanProjectRelationPutModel.js +1 -1
  146. package/dist/model/CustomAttributeValidationResult.js +1 -1
  147. package/dist/model/DateTimeRangeSelectorModel.js +1 -1
  148. package/dist/model/DefectApiModel.js +1 -1
  149. package/dist/model/DemoProjectApiResult.js +1 -1
  150. package/dist/model/EnableProjectExternalServiceApiModel.js +1 -1
  151. package/dist/model/ExternalFormAllowedValueModel.js +1 -1
  152. package/dist/model/ExternalFormCreateModel.js +1 -1
  153. package/dist/model/ExternalFormFieldModel.js +1 -1
  154. package/dist/model/ExternalFormLinkModel.js +1 -1
  155. package/dist/model/ExternalFormModel.js +1 -1
  156. package/dist/model/ExternalIssueApiFieldSuggestion.js +1 -1
  157. package/dist/model/ExternalIssueApiFieldSuggestionReply.js +1 -1
  158. package/dist/model/ExternalIssueApiMetadata.js +1 -1
  159. package/dist/model/ExternalIssueApiPriority.js +1 -1
  160. package/dist/model/ExternalIssueApiResult.js +1 -1
  161. package/dist/model/ExternalIssueApiType.js +1 -1
  162. package/dist/model/ExternalIssueExternalServiceApiResult.js +1 -1
  163. package/dist/model/ExternalIssueMetadataModel.js +1 -1
  164. package/dist/model/ExternalIssueModel.js +1 -1
  165. package/dist/model/ExternalIssuePriorityModel.js +1 -1
  166. package/dist/model/ExternalIssueTypeModel.js +1 -1
  167. package/dist/model/ExternalLinkModel.js +1 -1
  168. package/dist/model/ExternalServiceMetadataApiResult.js +1 -1
  169. package/dist/model/ExternalServicesMetadataApiResult.js +1 -1
  170. package/dist/model/FailureCategoryApiResult.js +1 -1
  171. package/dist/model/FailureCategoryGroupApiModel.js +1 -1
  172. package/dist/model/FailureCategoryGroupApiResult.js +1 -1
  173. package/dist/model/FailureCategoryGroupItemApiResult.js +1 -1
  174. package/dist/model/FailureCategoryGroupItemApiResultReply.js +1 -1
  175. package/dist/model/FailureCategoryGroupSearchApiModel.js +1 -1
  176. package/dist/model/FailureCategoryItemApiResult.js +1 -1
  177. package/dist/model/FailureClassRegexApiResult.js +1 -1
  178. package/dist/model/Filter.js +1 -1
  179. package/dist/model/FilterModel.js +1 -1
  180. package/dist/model/GenerateWorkItemPreviewsApiModel.js +1 -1
  181. package/dist/model/GenerateWorkItemPreviewsApiResult.js +1 -1
  182. package/dist/model/GetAIServiceModelsApiModel.js +1 -1
  183. package/dist/model/GetExternalFormApiResult.js +1 -1
  184. package/dist/model/GetExternalIssueSuggestionsApiModel.js +1 -1
  185. package/dist/model/GetShortProjectsApiModel.js +1 -1
  186. package/dist/model/GetXlsxTestPointsByTestPlanModel.js +1 -1
  187. package/dist/model/GlobalCustomAttributePostModel.js +1 -1
  188. package/dist/model/GlobalCustomAttributeUpdateModel.js +1 -1
  189. package/dist/model/GlobalSearchItemResult.js +1 -1
  190. package/dist/model/GlobalSearchRequest.js +1 -1
  191. package/dist/model/GlobalSearchResponse.js +1 -1
  192. package/dist/model/GuidChangedFieldViewModel.js +1 -1
  193. package/dist/model/GuidExtractionModel.js +1 -1
  194. package/dist/model/IFilter.js +1 -1
  195. package/dist/model/Inquiry.js +1 -1
  196. package/dist/model/Int32ChangedFieldViewModel.js +1 -1
  197. package/dist/model/Int32RangeSelectorModel.js +1 -1
  198. package/dist/model/Int64ChangedFieldViewModel.js +1 -1
  199. package/dist/model/Int64RangeSelectorModel.js +1 -1
  200. package/dist/model/IterationApiResult.js +1 -1
  201. package/dist/model/IterationModel.js +1 -1
  202. package/dist/model/Label.js +1 -1
  203. package/dist/model/LabelApiModel.js +1 -1
  204. package/dist/model/LabelApiResult.js +1 -1
  205. package/dist/model/LabelShortModel.js +1 -1
  206. package/dist/model/LastTestResultApiResult.js +1 -1
  207. package/dist/model/LastTestResultModel.js +1 -1
  208. package/dist/model/Link.js +1 -1
  209. package/dist/model/LinkApiResult.js +1 -1
  210. package/dist/model/LinkCreateApiModel.js +1 -1
  211. package/dist/model/LinkModel.js +1 -1
  212. package/dist/model/LinkPostModel.js +1 -1
  213. package/dist/model/LinkPutModel.js +1 -1
  214. package/dist/model/LinkShort.js +1 -1
  215. package/dist/model/LinkShortApiResult.js +1 -1
  216. package/dist/model/LinkShortModel.js +1 -1
  217. package/dist/model/LinkUpdateApiModel.js +1 -1
  218. package/dist/model/ManualRerunApiResult.js +1 -1
  219. package/dist/model/ManualRerunSelectTestResultsApiModel.js +1 -1
  220. package/dist/model/ManualRerunTestResultApiModel.js +1 -1
  221. package/dist/model/NamedEntityApiModel.js +1 -1
  222. package/dist/model/NotificationModel.js +1 -1
  223. package/dist/model/NotificationQueryFilterModel.js +1 -1
  224. package/dist/model/Operation.js +1 -1
  225. package/dist/model/Order.js +1 -1
  226. package/dist/model/Page.js +1 -1
  227. package/dist/model/ParameterApiResult.js +1 -1
  228. package/dist/model/ParameterGroupApiResult.js +1 -1
  229. package/dist/model/ParameterGroupsFilterApiModel.js +1 -1
  230. package/dist/model/ParameterIterationModel.js +1 -1
  231. package/dist/model/ParameterShortApiResult.js +1 -1
  232. package/dist/model/ParameterShortModel.js +1 -1
  233. package/dist/model/ParametersFilterApiModel.js +1 -1
  234. package/dist/model/PeriodViewModel.js +1 -1
  235. package/dist/model/PeriodViewModelChangedFieldViewModel.js +1 -1
  236. package/dist/model/PreviewsIssueLinkApiModel.js +1 -1
  237. package/dist/model/PreviewsIssueLinkApiResult.js +1 -1
  238. package/dist/model/ProblemDetails.js +1 -1
  239. package/dist/model/ProjectApiResult.js +1 -1
  240. package/dist/model/ProjectAttributesFilterModel.js +1 -1
  241. package/dist/model/ProjectCustomAttributeTemplateGetModel.js +1 -1
  242. package/dist/model/ProjectCustomAttributesTemplatesFilterModel.js +1 -1
  243. package/dist/model/ProjectDetailedFailureCategoryApiResult.js +1 -1
  244. package/dist/model/ProjectExternalServiceApiResult.js +1 -1
  245. package/dist/model/ProjectExternalServiceSettingsApiResult.js +1 -1
  246. package/dist/model/ProjectExternalServicesApiResult.js +1 -1
  247. package/dist/model/ProjectExtractionModel.js +1 -1
  248. package/dist/model/ProjectFailureCategoryApiResult.js +1 -1
  249. package/dist/model/ProjectFailureCategoryGroupItemApiResult.js +1 -1
  250. package/dist/model/ProjectFailureCategoryGroupItemApiResultReply.js +1 -1
  251. package/dist/model/ProjectModel.js +1 -1
  252. package/dist/model/ProjectNameApiResult.js +1 -1
  253. package/dist/model/ProjectSelectModel.js +1 -1
  254. package/dist/model/ProjectShortApiResult.js +1 -1
  255. package/dist/model/ProjectShortApiResultReply.js +1 -1
  256. package/dist/model/ProjectShortModel.js +1 -1
  257. package/dist/model/ProjectShortestModel.js +1 -1
  258. package/dist/model/ProjectTestPlansFilterModel.js +1 -1
  259. package/dist/model/ProjectsFilterModel.js +1 -1
  260. package/dist/model/ReplaceProjectExternalServiceApiModel.js +1 -1
  261. package/dist/model/RerunTestResultApiResult.js +1 -1
  262. package/dist/model/RerunTestResultModel.js +1 -1
  263. package/dist/model/RerunsModel.js +1 -1
  264. package/dist/model/SearchCustomAttributeTemplateGetModel.js +1 -1
  265. package/dist/model/SearchExternalIssuesApiModel.js +1 -1
  266. package/dist/model/SearchTestRunsApiModel.js +1 -1
  267. package/dist/model/SearchTestStatusesApiModel.js +1 -1
  268. package/dist/model/SearchWebhooksQueryModel.js +1 -1
  269. package/dist/model/SearchWorkItemLinkUrlsApiResult.js +1 -1
  270. package/dist/model/SearchWorkflowProjectsApiModel.js +1 -1
  271. package/dist/model/SearchWorkflowsApiModel.js +1 -1
  272. package/dist/model/SectionModel.js +1 -1
  273. package/dist/model/SectionMoveModel.js +1 -1
  274. package/dist/model/SectionPostModel.js +1 -1
  275. package/dist/model/SectionPutModel.js +1 -1
  276. package/dist/model/SectionRenameModel.js +1 -1
  277. package/dist/model/SectionWithStepsModel.js +1 -1
  278. package/dist/model/SelectTagsApiModel.js +1 -1
  279. package/dist/model/SharedStepChangeViewModel.js +1 -1
  280. package/dist/model/SharedStepModel.js +1 -1
  281. package/dist/model/SharedStepReferenceModel.js +1 -1
  282. package/dist/model/SharedStepReferenceSectionModel.js +1 -1
  283. package/dist/model/SharedStepReferenceSectionsQueryFilterModel.js +1 -1
  284. package/dist/model/SharedStepReferencesQueryFilterModel.js +1 -1
  285. package/dist/model/SharedStepResultApiModel.js +1 -1
  286. package/dist/model/ShortConfiguration.js +1 -1
  287. package/dist/model/StepCommentApiModel.js +1 -1
  288. package/dist/model/StepModel.js +1 -1
  289. package/dist/model/StepPostModel.js +1 -1
  290. package/dist/model/StepPutModel.js +1 -1
  291. package/dist/model/StepResultApiModel.js +1 -1
  292. package/dist/model/StringArrayChangedFieldViewModel.js +1 -1
  293. package/dist/model/StringChangedFieldViewModel.js +1 -1
  294. package/dist/model/StringChangedFieldWithDiffsViewModel.js +1 -1
  295. package/dist/model/StringExtractionModel.js +1 -1
  296. package/dist/model/TagApiModel.js +1 -1
  297. package/dist/model/TagApiResult.js +1 -1
  298. package/dist/model/TagModel.js +1 -1
  299. package/dist/model/TagShortApiResult.js +1 -1
  300. package/dist/model/TagsExtractionApiModel.js +1 -1
  301. package/dist/model/TagsFilterApiModel.js +1 -1
  302. package/dist/model/TestPlanApiResult.js +1 -1
  303. package/dist/model/TestPlanChangeModel.js +1 -1
  304. package/dist/model/TestPlanChangedFieldsViewModel.js +1 -1
  305. package/dist/model/TestPlanExtractionModel.js +1 -1
  306. package/dist/model/TestPlanGroupByStatus.js +1 -1
  307. package/dist/model/TestPlanGroupByStatusCode.js +1 -1
  308. package/dist/model/TestPlanGroupByStatusType.js +1 -1
  309. package/dist/model/TestPlanGroupByTestSuite.js +1 -1
  310. package/dist/model/TestPlanGroupByTester.js +1 -1
  311. package/dist/model/TestPlanGroupByTesterAndStatus.js +1 -1
  312. package/dist/model/TestPlanGroupByTesterAndStatusCode.js +1 -1
  313. package/dist/model/TestPlanLink.js +1 -1
  314. package/dist/model/TestPlanModel.js +1 -1
  315. package/dist/model/TestPlanSelectModel.js +1 -1
  316. package/dist/model/TestPlanShortModel.js +1 -1
  317. package/dist/model/TestPlanSummaryModel.js +1 -1
  318. package/dist/model/TestPlanTagApiResult.js +1 -1
  319. package/dist/model/TestPlanTestPointsAnalyticsApiModel.js +1 -1
  320. package/dist/model/TestPlanTestPointsAnalyticsApiResult.js +1 -1
  321. package/dist/model/TestPlanTestPointsApiModel.js +1 -1
  322. package/dist/model/TestPlanTestPointsAutoTestsRerunApiModel.js +1 -1
  323. package/dist/model/TestPlanTestPointsAutoTestsRunApiModel.js +1 -1
  324. package/dist/model/TestPlanTestPointsExtractionApiModel.js +1 -1
  325. package/dist/model/TestPlanTestPointsGroupApiModel.js +1 -1
  326. package/dist/model/TestPlanTestPointsGroupApiResult.js +1 -1
  327. package/dist/model/TestPlanTestPointsGroupSearchApiResult.js +1 -1
  328. package/dist/model/TestPlanTestPointsGroupSearchItemApiResult.js +1 -1
  329. package/dist/model/TestPlanTestPointsInquiryApiModel.js +1 -1
  330. package/dist/model/TestPlanTestPointsSearchApiModel.js +1 -1
  331. package/dist/model/TestPlanTestPointsSearchApiResult.js +1 -1
  332. package/dist/model/TestPlanTestPointsSearchStatusCountersApiResult.js +1 -1
  333. package/dist/model/TestPlanTestPointsSectionSearchApiResult.js +1 -1
  334. package/dist/model/TestPlanTestPointsSetTestersApiModel.js +1 -1
  335. package/dist/model/TestPlanTestPointsStatusCodeGroupApiResult.js +1 -1
  336. package/dist/model/TestPlanTestPointsStatusGroupApiResult.js +1 -1
  337. package/dist/model/TestPlanTestPointsStatusTypeGroupApiResult.js +1 -1
  338. package/dist/model/TestPlanTestPointsTestSuiteSearchApiResult.js +1 -1
  339. package/dist/model/TestPlanTestPointsTesterAndStatusGroupApiResult.js +1 -1
  340. package/dist/model/TestPlanTestPointsTesterAndStatusTypeGroupApiResult.js +1 -1
  341. package/dist/model/TestPlanTestPointsTesterGroupApiResult.js +1 -1
  342. package/dist/model/TestPlanTestPointsWorkItemSearchApiResult.js +1 -1
  343. package/dist/model/TestPlanWithAnalyticModel.js +1 -1
  344. package/dist/model/TestPlanWithTestSuiteTreeModel.js +1 -1
  345. package/dist/model/TestPoint.js +1 -1
  346. package/dist/model/TestPointAnalyticResult.js +1 -1
  347. package/dist/model/TestPointByTestSuiteModel.js +1 -1
  348. package/dist/model/TestPointChangeViewModel.js +1 -1
  349. package/dist/model/TestPointChangeViewModelChangedFieldViewModel.js +1 -1
  350. package/dist/model/TestPointFilterModel.js +1 -1
  351. package/dist/model/TestPointFilterRequestModel.js +1 -1
  352. package/dist/model/TestPointResultApiResult.js +1 -1
  353. package/dist/model/TestPointSelectModel.js +1 -1
  354. package/dist/model/TestPointSelector.js +1 -1
  355. package/dist/model/TestPointShortApiResult.js +1 -1
  356. package/dist/model/TestPointShortModel.js +1 -1
  357. package/dist/model/TestPointShortResponseModel.js +1 -1
  358. package/dist/model/TestPointWithLastResultResponseModel.js +1 -1
  359. package/dist/model/TestPointsExtractionModel.js +1 -1
  360. package/dist/model/TestResultApiResult.js +1 -1
  361. package/dist/model/TestResultChangeViewModel.js +1 -1
  362. package/dist/model/TestResultChangeViewModelChangedFieldViewModel.js +1 -1
  363. package/dist/model/TestResultChronologyModel.js +1 -1
  364. package/dist/model/TestResultFailureClassApiResult.js +1 -1
  365. package/dist/model/TestResultHistoryReportApiResult.js +1 -1
  366. package/dist/model/TestResultResponse.js +1 -1
  367. package/dist/model/TestResultShortApiResult.js +1 -1
  368. package/dist/model/TestResultShortResponse.js +1 -1
  369. package/dist/model/TestResultStepCommentUpdateRequest.js +1 -1
  370. package/dist/model/TestResultUpdateV2Request.js +1 -1
  371. package/dist/model/TestResultV2GetModel.js +1 -1
  372. package/dist/model/TestResultV2ShortModel.js +1 -1
  373. package/dist/model/TestResultsExtractionApiModel.js +1 -1
  374. package/dist/model/TestResultsFilterApiModel.js +1 -1
  375. package/dist/model/TestResultsLocalFilterModel.js +1 -1
  376. package/dist/model/TestResultsSelectApiModel.js +1 -1
  377. package/dist/model/TestResultsStatisticsApiResult.js +1 -1
  378. package/dist/model/TestResultsStatisticsFailureCategoriesApiResult.js +1 -1
  379. package/dist/model/TestResultsStatisticsStatusesApiResult.js +1 -1
  380. package/dist/model/TestRunAnalyticApiResult.js +1 -1
  381. package/dist/model/TestRunApiResult.js +1 -1
  382. package/dist/model/TestRunByAutoTestApiResult.js +1 -1
  383. package/dist/model/TestRunExtractionApiModel.js +1 -1
  384. package/dist/model/TestRunFilterApiModel.js +1 -1
  385. package/dist/model/TestRunGroupByFailureClassApiResult.js +1 -1
  386. package/dist/model/TestRunGroupByStatusApiResult.js +1 -1
  387. package/dist/model/TestRunGroupByStatusTypeApiResult.js +1 -1
  388. package/dist/model/TestRunNameApiResult.js +1 -1
  389. package/dist/model/TestRunSelectApiModel.js +1 -1
  390. package/dist/model/TestRunShortApiResult.js +1 -1
  391. package/dist/model/TestRunStatisticsFilterApiModel.js +1 -1
  392. package/dist/model/TestRunTestResultsPartialBulkSetModel.js +1 -1
  393. package/dist/model/TestRunTestResultsSelectModel.js +1 -1
  394. package/dist/model/TestRunV2ApiResult.js +1 -1
  395. package/dist/model/TestStatusApiResult.js +1 -1
  396. package/dist/model/TestStatusApiResultReply.js +1 -1
  397. package/dist/model/TestStatusModel.js +1 -1
  398. package/dist/model/TestStatusShortApiResult.js +1 -1
  399. package/dist/model/TestSuiteApiResult.js +1 -1
  400. package/dist/model/TestSuiteChangeViewModel.js +1 -1
  401. package/dist/model/TestSuiteChangeViewModelChangedFieldViewModel.js +1 -1
  402. package/dist/model/TestSuiteHierarchyApiResult.js +1 -1
  403. package/dist/model/TestSuiteTestPlanApiModel.js +1 -1
  404. package/dist/model/TestSuiteV2GetModel.js +1 -1
  405. package/dist/model/TestSuiteV2PostModel.js +1 -1
  406. package/dist/model/TestSuiteV2PutModel.js +1 -1
  407. package/dist/model/TestSuiteWithChildrenModel.js +1 -1
  408. package/dist/model/TestSuiteWorkItemsSearchModel.js +1 -1
  409. package/dist/model/UpdateEmptyTestRunApiModel.js +1 -1
  410. package/dist/model/UpdateFailureCategoryApiModel.js +1 -1
  411. package/dist/model/UpdateFailureCategoryProjectApiModel.js +1 -1
  412. package/dist/model/UpdateFailureClassRegexApiModel.js +1 -1
  413. package/dist/model/UpdateLinkApiModel.js +1 -1
  414. package/dist/model/UpdateMultipleAttachmentsApiModel.js +1 -1
  415. package/dist/model/UpdateMultipleLinksApiModel.js +1 -1
  416. package/dist/model/UpdateMultipleTestRunsApiModel.js +1 -1
  417. package/dist/model/UpdateParameterApiModel.js +1 -1
  418. package/dist/model/UpdateProjectApiModel.js +1 -1
  419. package/dist/model/UpdateStepApiModel.js +1 -1
  420. package/dist/model/UpdateTagApiModel.js +1 -1
  421. package/dist/model/UpdateTestPlanApiModel.js +1 -1
  422. package/dist/model/UpdateTestStatusApiModel.js +1 -1
  423. package/dist/model/UpdateWorkItemApiModel.js +1 -1
  424. package/dist/model/UpdateWorkflowApiModel.js +1 -1
  425. package/dist/model/UserCustomNameValidationResponse.js +1 -1
  426. package/dist/model/UserNameApiResult.js +1 -1
  427. package/dist/model/UserRankModel.js +1 -1
  428. package/dist/model/UserWithRankModel.js +1 -1
  429. package/dist/model/ValidationProblemDetails.js +1 -1
  430. package/dist/model/WebHookModel.js +1 -1
  431. package/dist/model/WebHookPostModel.js +1 -1
  432. package/dist/model/WebHookTestModel.js +1 -1
  433. package/dist/model/WebhookBulkUpdateApiModel.js +1 -1
  434. package/dist/model/WebhookLogApiResult.js +1 -1
  435. package/dist/model/WebhookResponse.js +1 -1
  436. package/dist/model/WebhooksDeleteApiModel.js +1 -1
  437. package/dist/model/WebhooksDeleteFilterApiModel.js +1 -1
  438. package/dist/model/WebhooksExtractionApiModel.js +1 -1
  439. package/dist/model/WebhooksFilterApiModel.js +1 -1
  440. package/dist/model/WebhooksUpdateApiModel.js +1 -1
  441. package/dist/model/WebhooksUpdateApiResult.js +1 -1
  442. package/dist/model/WorkItemApiResult.js +1 -1
  443. package/dist/model/WorkItemChangeModel.js +1 -1
  444. package/dist/model/WorkItemChangedAttributeViewModel.js +1 -1
  445. package/dist/model/WorkItemChangedFieldsViewModel.js +1 -1
  446. package/dist/model/WorkItemCommentModel.js +1 -1
  447. package/dist/model/WorkItemCommentPostModel.js +1 -1
  448. package/dist/model/WorkItemCommentPutModel.js +1 -1
  449. package/dist/model/WorkItemExternalMetadataFieldFilterApiModel.js +1 -1
  450. package/dist/model/WorkItemExternalMetadataFieldFilterModel.js +1 -1
  451. package/dist/model/WorkItemExternalMetadataFilterApiModel.js +1 -1
  452. package/dist/model/WorkItemExternalMetadataFilterModel.js +1 -1
  453. package/dist/model/WorkItemExtractionApiModel.js +1 -1
  454. package/dist/model/WorkItemExtractionModel.js +1 -1
  455. package/dist/model/WorkItemFilterApiModel.js +1 -1
  456. package/dist/model/WorkItemFilterModel.js +1 -1
  457. package/dist/model/WorkItemGroupGetModel.js +1 -1
  458. package/dist/model/WorkItemGroupModel.js +1 -1
  459. package/dist/model/WorkItemIdApiModel.js +1 -1
  460. package/dist/model/WorkItemIndexApiResult.js +1 -1
  461. package/dist/model/WorkItemLikeModel.js +1 -1
  462. package/dist/model/WorkItemLinkChangeViewModel.js +1 -1
  463. package/dist/model/WorkItemLinkChangeViewModelArrayChangedFieldViewModel.js +1 -1
  464. package/dist/model/WorkItemLinkExtractionApiModel.js +1 -1
  465. package/dist/model/WorkItemLinkFilterApiModel.js +1 -1
  466. package/dist/model/WorkItemLinkFilterModel.js +1 -1
  467. package/dist/model/WorkItemLinkUrlApiModel.js +1 -1
  468. package/dist/model/WorkItemLinkUrlApiResult.js +1 -1
  469. package/dist/model/WorkItemLinkUrlFilterApiModel.js +1 -1
  470. package/dist/model/WorkItemLocalFilterModel.js +1 -1
  471. package/dist/model/WorkItemLocalSelectModel.js +1 -1
  472. package/dist/model/WorkItemModel.js +1 -1
  473. package/dist/model/WorkItemMovePostModel.js +1 -1
  474. package/dist/model/WorkItemPreviewApiModel.js +1 -1
  475. package/dist/model/WorkItemPreviewStepApiModel.js +1 -1
  476. package/dist/model/WorkItemSearchQueryModel.js +1 -1
  477. package/dist/model/WorkItemSelectApiModel.js +1 -1
  478. package/dist/model/WorkItemSelectModel.js +1 -1
  479. package/dist/model/WorkItemShortApiResult.js +1 -1
  480. package/dist/model/WorkItemShortModel.js +1 -1
  481. package/dist/model/WorkItemStepChangeViewModel.js +1 -1
  482. package/dist/model/WorkItemStepChangeViewModelArrayChangedFieldWithDiffsViewModel.js +1 -1
  483. package/dist/model/WorkItemVersionModel.js +1 -1
  484. package/dist/model/WorkflowApiResult.js +1 -1
  485. package/dist/model/WorkflowExistsByNameApiResult.js +1 -1
  486. package/dist/model/WorkflowProjectApiResult.js +1 -1
  487. package/dist/model/WorkflowProjectApiResultApiCollectionPreview.js +1 -1
  488. package/dist/model/WorkflowProjectApiResultReply.js +1 -1
  489. package/dist/model/WorkflowShortApiResult.js +1 -1
  490. package/dist/model/WorkflowShortApiResultReply.js +1 -1
  491. package/dist/model/WorkflowStatusApiModel.js +1 -1
  492. package/dist/model/WorkflowStatusApiResult.js +1 -1
  493. package/package.json +1 -1
@@ -40,7 +40,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
40
40
  /**
41
41
  * TestResults service.
42
42
  * @module api/TestResultsApi
43
- * @version 7.0.0-rc1
43
+ * @version 7.0.0-rc2
44
44
  */
45
45
  var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
46
46
  /**
@@ -55,24 +55,15 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
55
55
  this.apiClient = apiClient || _ApiClient["default"].instance;
56
56
  }
57
57
 
58
- /**
59
- * Callback function to receive the result of the apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost operation.
60
- * @callback module:api/TestResultsApi~apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostCallback
61
- * @param {String} error Error message, if any.
62
- * @param {module:model/GetExternalFormApiResult} data The data returned by the service call.
63
- * @param {String} response The complete HTTP response.
64
- */
65
-
66
58
  /**
67
59
  * @param {String} externalProjectId
68
60
  * @param {Object} opts Optional parameters
69
61
  * @param {module:model/TestResultsSelectApiModel} [testResultsSelectApiModel]
70
- * @param {module:api/TestResultsApi~apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostCallback} callback The callback function, accepting three arguments: error, data, response
71
- * data is of type: {@link module:model/GetExternalFormApiResult}
62
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetExternalFormApiResult} and HTTP response
72
63
  */
73
64
  return _createClass(TestResultsApi, [{
74
- key: "apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost",
75
- value: function apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost(externalProjectId, opts, callback) {
65
+ key: "apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostWithHttpInfo",
66
+ value: function apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostWithHttpInfo(externalProjectId, opts) {
76
67
  opts = opts || {};
77
68
  var postBody = opts['testResultsSelectApiModel'];
78
69
  // verify the required parameter 'externalProjectId' is set
@@ -89,27 +80,32 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
89
80
  var contentTypes = ['application/json'];
90
81
  var accepts = ['application/json'];
91
82
  var returnType = _GetExternalFormApiResult["default"];
92
- return this.apiClient.callApi('/api/v2/testResults/external-projects/{externalProjectId}/defects/external-forms', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
83
+ return this.apiClient.callApi('/api/v2/testResults/external-projects/{externalProjectId}/defects/external-forms', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
93
84
  }
94
85
 
95
86
  /**
96
- * Callback function to receive the result of the apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost operation.
97
- * @callback module:api/TestResultsApi~apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostCallback
98
- * @param {String} error Error message, if any.
99
- * @param {module:model/DefectApiModel} data The data returned by the service call.
100
- * @param {String} response The complete HTTP response.
87
+ * @param {String} externalProjectId
88
+ * @param {Object} opts Optional parameters
89
+ * @param {module:model/TestResultsSelectApiModel} opts.testResultsSelectApiModel
90
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetExternalFormApiResult}
101
91
  */
92
+ }, {
93
+ key: "apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost",
94
+ value: function apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost(externalProjectId, opts) {
95
+ return this.apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostWithHttpInfo(externalProjectId, opts).then(function (response_and_data) {
96
+ return response_and_data.data;
97
+ });
98
+ }
102
99
 
103
100
  /**
104
101
  * @param {String} externalProjectId
105
102
  * @param {Object} opts Optional parameters
106
103
  * @param {module:model/CreateDefectApiModel} [createDefectApiModel]
107
- * @param {module:api/TestResultsApi~apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostCallback} callback The callback function, accepting three arguments: error, data, response
108
- * data is of type: {@link module:model/DefectApiModel}
104
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DefectApiModel} and HTTP response
109
105
  */
110
106
  }, {
111
- key: "apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost",
112
- value: function apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost(externalProjectId, opts, callback) {
107
+ key: "apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostWithHttpInfo",
108
+ value: function apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostWithHttpInfo(externalProjectId, opts) {
113
109
  opts = opts || {};
114
110
  var postBody = opts['createDefectApiModel'];
115
111
  // verify the required parameter 'externalProjectId' is set
@@ -126,26 +122,31 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
126
122
  var contentTypes = ['application/json'];
127
123
  var accepts = ['application/json'];
128
124
  var returnType = _DefectApiModel["default"];
129
- return this.apiClient.callApi('/api/v2/testResults/external-projects/{externalProjectId}/defects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
125
+ return this.apiClient.callApi('/api/v2/testResults/external-projects/{externalProjectId}/defects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
130
126
  }
131
127
 
132
128
  /**
133
- * Callback function to receive the result of the apiV2TestResultsIdAggregatedGet operation.
134
- * @callback module:api/TestResultsApi~apiV2TestResultsIdAggregatedGetCallback
135
- * @param {String} error Error message, if any.
136
- * @param {module:model/TestResultResponse} data The data returned by the service call.
137
- * @param {String} response The complete HTTP response.
129
+ * @param {String} externalProjectId
130
+ * @param {Object} opts Optional parameters
131
+ * @param {module:model/CreateDefectApiModel} opts.createDefectApiModel
132
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DefectApiModel}
138
133
  */
134
+ }, {
135
+ key: "apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost",
136
+ value: function apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost(externalProjectId, opts) {
137
+ return this.apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostWithHttpInfo(externalProjectId, opts).then(function (response_and_data) {
138
+ return response_and_data.data;
139
+ });
140
+ }
139
141
 
140
142
  /**
141
143
  * Get test result by ID aggregated with previous results
142
144
  * @param {String} id Test result unique ID
143
- * @param {module:api/TestResultsApi~apiV2TestResultsIdAggregatedGetCallback} callback The callback function, accepting three arguments: error, data, response
144
- * data is of type: {@link module:model/TestResultResponse}
145
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TestResultResponse} and HTTP response
145
146
  */
146
147
  }, {
147
- key: "apiV2TestResultsIdAggregatedGet",
148
- value: function apiV2TestResultsIdAggregatedGet(id, callback) {
148
+ key: "apiV2TestResultsIdAggregatedGetWithHttpInfo",
149
+ value: function apiV2TestResultsIdAggregatedGetWithHttpInfo(id) {
149
150
  var postBody = null;
150
151
  // verify the required parameter 'id' is set
151
152
  if (id === undefined || id === null) {
@@ -161,26 +162,31 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
161
162
  var contentTypes = [];
162
163
  var accepts = ['application/json'];
163
164
  var returnType = _TestResultResponse["default"];
164
- return this.apiClient.callApi('/api/v2/testResults/{id}/aggregated', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
165
+ return this.apiClient.callApi('/api/v2/testResults/{id}/aggregated', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
165
166
  }
166
167
 
167
168
  /**
168
- * Callback function to receive the result of the apiV2TestResultsIdAttachmentsAttachmentIdPut operation.
169
- * @callback module:api/TestResultsApi~apiV2TestResultsIdAttachmentsAttachmentIdPutCallback
170
- * @param {String} error Error message, if any.
171
- * @param data This operation does not return a value.
172
- * @param {String} response The complete HTTP response.
169
+ * Get test result by ID aggregated with previous results
170
+ * @param {String} id Test result unique ID
171
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TestResultResponse}
173
172
  */
173
+ }, {
174
+ key: "apiV2TestResultsIdAggregatedGet",
175
+ value: function apiV2TestResultsIdAggregatedGet(id) {
176
+ return this.apiV2TestResultsIdAggregatedGetWithHttpInfo(id).then(function (response_and_data) {
177
+ return response_and_data.data;
178
+ });
179
+ }
174
180
 
175
181
  /**
176
182
  * Attach file to the test result
177
183
  * @param {String} id Test result unique ID
178
184
  * @param {String} attachmentId Attachment unique ID
179
- * @param {module:api/TestResultsApi~apiV2TestResultsIdAttachmentsAttachmentIdPutCallback} callback The callback function, accepting three arguments: error, data, response
185
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
180
186
  */
181
187
  }, {
182
- key: "apiV2TestResultsIdAttachmentsAttachmentIdPut",
183
- value: function apiV2TestResultsIdAttachmentsAttachmentIdPut(id, attachmentId, callback) {
188
+ key: "apiV2TestResultsIdAttachmentsAttachmentIdPutWithHttpInfo",
189
+ value: function apiV2TestResultsIdAttachmentsAttachmentIdPutWithHttpInfo(id, attachmentId) {
184
190
  var postBody = null;
185
191
  // verify the required parameter 'id' is set
186
192
  if (id === undefined || id === null) {
@@ -201,26 +207,31 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
201
207
  var contentTypes = [];
202
208
  var accepts = ['application/json'];
203
209
  var returnType = null;
204
- return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/{attachmentId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
210
+ return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/{attachmentId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
205
211
  }
206
212
 
207
213
  /**
208
- * Callback function to receive the result of the apiV2TestResultsIdAttachmentsInfoGet operation.
209
- * @callback module:api/TestResultsApi~apiV2TestResultsIdAttachmentsInfoGetCallback
210
- * @param {String} error Error message, if any.
211
- * @param {Array.<module:model/AttachmentApiResult>} data The data returned by the service call.
212
- * @param {String} response The complete HTTP response.
214
+ * Attach file to the test result
215
+ * @param {String} id Test result unique ID
216
+ * @param {String} attachmentId Attachment unique ID
217
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
213
218
  */
219
+ }, {
220
+ key: "apiV2TestResultsIdAttachmentsAttachmentIdPut",
221
+ value: function apiV2TestResultsIdAttachmentsAttachmentIdPut(id, attachmentId) {
222
+ return this.apiV2TestResultsIdAttachmentsAttachmentIdPutWithHttpInfo(id, attachmentId).then(function (response_and_data) {
223
+ return response_and_data.data;
224
+ });
225
+ }
214
226
 
215
227
  /**
216
228
  * Get test result attachments meta-information
217
229
  * @param {String} id Test result unique ID
218
- * @param {module:api/TestResultsApi~apiV2TestResultsIdAttachmentsInfoGetCallback} callback The callback function, accepting three arguments: error, data, response
219
- * data is of type: {@link Array.<module:model/AttachmentApiResult>}
230
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AttachmentApiResult>} and HTTP response
220
231
  */
221
232
  }, {
222
- key: "apiV2TestResultsIdAttachmentsInfoGet",
223
- value: function apiV2TestResultsIdAttachmentsInfoGet(id, callback) {
233
+ key: "apiV2TestResultsIdAttachmentsInfoGetWithHttpInfo",
234
+ value: function apiV2TestResultsIdAttachmentsInfoGetWithHttpInfo(id) {
224
235
  var postBody = null;
225
236
  // verify the required parameter 'id' is set
226
237
  if (id === undefined || id === null) {
@@ -236,26 +247,30 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
236
247
  var contentTypes = [];
237
248
  var accepts = ['application/json'];
238
249
  var returnType = [_AttachmentApiResult["default"]];
239
- return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
250
+ return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
240
251
  }
241
252
 
242
253
  /**
243
- * Callback function to receive the result of the apiV2TestResultsIdGet operation.
244
- * @callback module:api/TestResultsApi~apiV2TestResultsIdGetCallback
245
- * @param {String} error Error message, if any.
246
- * @param {module:model/TestResultResponse} data The data returned by the service call.
247
- * @param {String} response The complete HTTP response.
254
+ * Get test result attachments meta-information
255
+ * @param {String} id Test result unique ID
256
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AttachmentApiResult>}
248
257
  */
258
+ }, {
259
+ key: "apiV2TestResultsIdAttachmentsInfoGet",
260
+ value: function apiV2TestResultsIdAttachmentsInfoGet(id) {
261
+ return this.apiV2TestResultsIdAttachmentsInfoGetWithHttpInfo(id).then(function (response_and_data) {
262
+ return response_and_data.data;
263
+ });
264
+ }
249
265
 
250
266
  /**
251
267
  * Get test result by ID
252
268
  * @param {String} id Test result unique ID
253
- * @param {module:api/TestResultsApi~apiV2TestResultsIdGetCallback} callback The callback function, accepting three arguments: error, data, response
254
- * data is of type: {@link module:model/TestResultResponse}
269
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TestResultResponse} and HTTP response
255
270
  */
256
271
  }, {
257
- key: "apiV2TestResultsIdGet",
258
- value: function apiV2TestResultsIdGet(id, callback) {
272
+ key: "apiV2TestResultsIdGetWithHttpInfo",
273
+ value: function apiV2TestResultsIdGetWithHttpInfo(id) {
259
274
  var postBody = null;
260
275
  // verify the required parameter 'id' is set
261
276
  if (id === undefined || id === null) {
@@ -271,27 +286,32 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
271
286
  var contentTypes = [];
272
287
  var accepts = ['application/json'];
273
288
  var returnType = _TestResultResponse["default"];
274
- return this.apiClient.callApi('/api/v2/testResults/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
289
+ return this.apiClient.callApi('/api/v2/testResults/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
275
290
  }
276
291
 
277
292
  /**
278
- * Callback function to receive the result of the apiV2TestResultsIdPut operation.
279
- * @callback module:api/TestResultsApi~apiV2TestResultsIdPutCallback
280
- * @param {String} error Error message, if any.
281
- * @param data This operation does not return a value.
282
- * @param {String} response The complete HTTP response.
293
+ * Get test result by ID
294
+ * @param {String} id Test result unique ID
295
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TestResultResponse}
283
296
  */
297
+ }, {
298
+ key: "apiV2TestResultsIdGet",
299
+ value: function apiV2TestResultsIdGet(id) {
300
+ return this.apiV2TestResultsIdGetWithHttpInfo(id).then(function (response_and_data) {
301
+ return response_and_data.data;
302
+ });
303
+ }
284
304
 
285
305
  /**
286
306
  * Edit test result by ID
287
307
  * @param {String} id Test result unique ID
288
308
  * @param {Object} opts Optional parameters
289
309
  * @param {module:model/TestResultUpdateV2Request} [testResultUpdateV2Request]
290
- * @param {module:api/TestResultsApi~apiV2TestResultsIdPutCallback} callback The callback function, accepting three arguments: error, data, response
310
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
291
311
  */
292
312
  }, {
293
- key: "apiV2TestResultsIdPut",
294
- value: function apiV2TestResultsIdPut(id, opts, callback) {
313
+ key: "apiV2TestResultsIdPutWithHttpInfo",
314
+ value: function apiV2TestResultsIdPutWithHttpInfo(id, opts) {
295
315
  opts = opts || {};
296
316
  var postBody = opts['testResultUpdateV2Request'];
297
317
  // verify the required parameter 'id' is set
@@ -308,26 +328,32 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
308
328
  var contentTypes = ['application/json'];
309
329
  var accepts = ['application/json'];
310
330
  var returnType = null;
311
- return this.apiClient.callApi('/api/v2/testResults/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
331
+ return this.apiClient.callApi('/api/v2/testResults/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
312
332
  }
313
333
 
314
334
  /**
315
- * Callback function to receive the result of the apiV2TestResultsIdRerunsGet operation.
316
- * @callback module:api/TestResultsApi~apiV2TestResultsIdRerunsGetCallback
317
- * @param {String} error Error message, if any.
318
- * @param {module:model/RerunsModel} data The data returned by the service call.
319
- * @param {String} response The complete HTTP response.
335
+ * Edit test result by ID
336
+ * @param {String} id Test result unique ID
337
+ * @param {Object} opts Optional parameters
338
+ * @param {module:model/TestResultUpdateV2Request} opts.testResultUpdateV2Request
339
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
320
340
  */
341
+ }, {
342
+ key: "apiV2TestResultsIdPut",
343
+ value: function apiV2TestResultsIdPut(id, opts) {
344
+ return this.apiV2TestResultsIdPutWithHttpInfo(id, opts).then(function (response_and_data) {
345
+ return response_and_data.data;
346
+ });
347
+ }
321
348
 
322
349
  /**
323
350
  * Get reruns
324
351
  * @param {String} id Test result unique ID
325
- * @param {module:api/TestResultsApi~apiV2TestResultsIdRerunsGetCallback} callback The callback function, accepting three arguments: error, data, response
326
- * data is of type: {@link module:model/RerunsModel}
352
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RerunsModel} and HTTP response
327
353
  */
328
354
  }, {
329
- key: "apiV2TestResultsIdRerunsGet",
330
- value: function apiV2TestResultsIdRerunsGet(id, callback) {
355
+ key: "apiV2TestResultsIdRerunsGetWithHttpInfo",
356
+ value: function apiV2TestResultsIdRerunsGetWithHttpInfo(id) {
331
357
  var postBody = null;
332
358
  // verify the required parameter 'id' is set
333
359
  if (id === undefined || id === null) {
@@ -343,16 +369,21 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
343
369
  var contentTypes = [];
344
370
  var accepts = ['application/json'];
345
371
  var returnType = _RerunsModel["default"];
346
- return this.apiClient.callApi('/api/v2/testResults/{id}/reruns', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
372
+ return this.apiClient.callApi('/api/v2/testResults/{id}/reruns', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
347
373
  }
348
374
 
349
375
  /**
350
- * Callback function to receive the result of the apiV2TestResultsSearchPost operation.
351
- * @callback module:api/TestResultsApi~apiV2TestResultsSearchPostCallback
352
- * @param {String} error Error message, if any.
353
- * @param {Array.<module:model/TestResultShortResponse>} data The data returned by the service call.
354
- * @param {String} response The complete HTTP response.
376
+ * Get reruns
377
+ * @param {String} id Test result unique ID
378
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RerunsModel}
355
379
  */
380
+ }, {
381
+ key: "apiV2TestResultsIdRerunsGet",
382
+ value: function apiV2TestResultsIdRerunsGet(id) {
383
+ return this.apiV2TestResultsIdRerunsGetWithHttpInfo(id).then(function (response_and_data) {
384
+ return response_and_data.data;
385
+ });
386
+ }
356
387
 
357
388
  /**
358
389
  * Search for test results
@@ -363,12 +394,11 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
363
394
  * @param {String} [searchField] Property name for searching
364
395
  * @param {String} [searchValue] Value for searching
365
396
  * @param {module:model/TestResultsFilterApiModel} [testResultsFilterApiModel]
366
- * @param {module:api/TestResultsApi~apiV2TestResultsSearchPostCallback} callback The callback function, accepting three arguments: error, data, response
367
- * data is of type: {@link Array.<module:model/TestResultShortResponse>}
397
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/TestResultShortResponse>} and HTTP response
368
398
  */
369
399
  }, {
370
- key: "apiV2TestResultsSearchPost",
371
- value: function apiV2TestResultsSearchPost(opts, callback) {
400
+ key: "apiV2TestResultsSearchPostWithHttpInfo",
401
+ value: function apiV2TestResultsSearchPostWithHttpInfo(opts) {
372
402
  opts = opts || {};
373
403
  var postBody = opts['testResultsFilterApiModel'];
374
404
  var pathParams = {};
@@ -385,27 +415,37 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
385
415
  var contentTypes = ['application/json'];
386
416
  var accepts = ['application/json'];
387
417
  var returnType = [_TestResultShortResponse["default"]];
388
- return this.apiClient.callApi('/api/v2/testResults/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
418
+ return this.apiClient.callApi('/api/v2/testResults/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
389
419
  }
390
420
 
391
421
  /**
392
- * Callback function to receive the result of the apiV2TestResultsStatisticsFilterPost operation.
393
- * @callback module:api/TestResultsApi~apiV2TestResultsStatisticsFilterPostCallback
394
- * @param {String} error Error message, if any.
395
- * @param {module:model/TestResultsStatisticsApiResult} data The data returned by the service call.
396
- * @param {String} response The complete HTTP response.
422
+ * Search for test results
423
+ * @param {Object} opts Optional parameters
424
+ * @param {Number} opts.skip Amount of items to be skipped (offset)
425
+ * @param {Number} opts.take Amount of items to be taken (limit)
426
+ * @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
427
+ * @param {String} opts.searchField Property name for searching
428
+ * @param {String} opts.searchValue Value for searching
429
+ * @param {module:model/TestResultsFilterApiModel} opts.testResultsFilterApiModel
430
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/TestResultShortResponse>}
397
431
  */
432
+ }, {
433
+ key: "apiV2TestResultsSearchPost",
434
+ value: function apiV2TestResultsSearchPost(opts) {
435
+ return this.apiV2TestResultsSearchPostWithHttpInfo(opts).then(function (response_and_data) {
436
+ return response_and_data.data;
437
+ });
438
+ }
398
439
 
399
440
  /**
400
441
  * Search for test results and extract statistics
401
442
  * @param {Object} opts Optional parameters
402
443
  * @param {module:model/TestResultsFilterApiModel} [testResultsFilterApiModel]
403
- * @param {module:api/TestResultsApi~apiV2TestResultsStatisticsFilterPostCallback} callback The callback function, accepting three arguments: error, data, response
404
- * data is of type: {@link module:model/TestResultsStatisticsApiResult}
444
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TestResultsStatisticsApiResult} and HTTP response
405
445
  */
406
446
  }, {
407
- key: "apiV2TestResultsStatisticsFilterPost",
408
- value: function apiV2TestResultsStatisticsFilterPost(opts, callback) {
447
+ key: "apiV2TestResultsStatisticsFilterPostWithHttpInfo",
448
+ value: function apiV2TestResultsStatisticsFilterPostWithHttpInfo(opts) {
409
449
  opts = opts || {};
410
450
  var postBody = opts['testResultsFilterApiModel'];
411
451
  var pathParams = {};
@@ -416,16 +456,22 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
416
456
  var contentTypes = ['application/json'];
417
457
  var accepts = ['application/json'];
418
458
  var returnType = _TestResultsStatisticsApiResult["default"];
419
- return this.apiClient.callApi('/api/v2/testResults/statistics/filter', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
459
+ return this.apiClient.callApi('/api/v2/testResults/statistics/filter', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
420
460
  }
421
461
 
422
462
  /**
423
- * Callback function to receive the result of the createAttachment operation.
424
- * @callback module:api/TestResultsApi~createAttachmentCallback
425
- * @param {String} error Error message, if any.
426
- * @param data This operation does not return a value.
427
- * @param {String} response The complete HTTP response.
463
+ * Search for test results and extract statistics
464
+ * @param {Object} opts Optional parameters
465
+ * @param {module:model/TestResultsFilterApiModel} opts.testResultsFilterApiModel
466
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TestResultsStatisticsApiResult}
428
467
  */
468
+ }, {
469
+ key: "apiV2TestResultsStatisticsFilterPost",
470
+ value: function apiV2TestResultsStatisticsFilterPost(opts) {
471
+ return this.apiV2TestResultsStatisticsFilterPostWithHttpInfo(opts).then(function (response_and_data) {
472
+ return response_and_data.data;
473
+ });
474
+ }
429
475
 
430
476
  /**
431
477
  * Upload and link attachment to TestResult
@@ -433,11 +479,11 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
433
479
  * @param {String} id Test result internal identifier (guid format)
434
480
  * @param {Object} opts Optional parameters
435
481
  * @param {File} [file] Select file
436
- * @param {module:api/TestResultsApi~createAttachmentCallback} callback The callback function, accepting three arguments: error, data, response
482
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
437
483
  */
438
484
  }, {
439
- key: "createAttachment",
440
- value: function createAttachment(id, opts, callback) {
485
+ key: "createAttachmentWithHttpInfo",
486
+ value: function createAttachmentWithHttpInfo(id, opts) {
441
487
  opts = opts || {};
442
488
  var postBody = null;
443
489
  // verify the required parameter 'id' is set
@@ -456,27 +502,35 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
456
502
  var contentTypes = ['multipart/form-data'];
457
503
  var accepts = ['application/json'];
458
504
  var returnType = null;
459
- return this.apiClient.callApi('/api/v2/testResults/{id}/attachments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
505
+ return this.apiClient.callApi('/api/v2/testResults/{id}/attachments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
460
506
  }
461
507
 
462
508
  /**
463
- * Callback function to receive the result of the deleteAttachment operation.
464
- * @callback module:api/TestResultsApi~deleteAttachmentCallback
465
- * @param {String} error Error message, if any.
466
- * @param data This operation does not return a value.
467
- * @param {String} response The complete HTTP response.
509
+ * Upload and link attachment to TestResult
510
+ * Use case User sets testResultId User attaches a file System creates attachment and links it to the test result System returns attachment identifier
511
+ * @param {String} id Test result internal identifier (guid format)
512
+ * @param {Object} opts Optional parameters
513
+ * @param {File} opts.file Select file
514
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
468
515
  */
516
+ }, {
517
+ key: "createAttachment",
518
+ value: function createAttachment(id, opts) {
519
+ return this.createAttachmentWithHttpInfo(id, opts).then(function (response_and_data) {
520
+ return response_and_data.data;
521
+ });
522
+ }
469
523
 
470
524
  /**
471
525
  * Remove attachment and unlink from TestResult
472
526
  * Use case User sets testResultId and attachmentId User attaches a file User runs method execution System deletes attachment and unlinks it from the test result System returns attachment identifier
473
527
  * @param {String} id Test result internal identifier (guid format)
474
528
  * @param {String} attachmentId Attachment internal identifier (guid format)
475
- * @param {module:api/TestResultsApi~deleteAttachmentCallback} callback The callback function, accepting three arguments: error, data, response
529
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
476
530
  */
477
531
  }, {
478
- key: "deleteAttachment",
479
- value: function deleteAttachment(id, attachmentId, callback) {
532
+ key: "deleteAttachmentWithHttpInfo",
533
+ value: function deleteAttachmentWithHttpInfo(id, attachmentId) {
480
534
  var postBody = null;
481
535
  // verify the required parameter 'id' is set
482
536
  if (id === undefined || id === null) {
@@ -497,16 +551,23 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
497
551
  var contentTypes = [];
498
552
  var accepts = ['application/json'];
499
553
  var returnType = null;
500
- return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/{attachmentId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
554
+ return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/{attachmentId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
501
555
  }
502
556
 
503
557
  /**
504
- * Callback function to receive the result of the downloadAttachment operation.
505
- * @callback module:api/TestResultsApi~downloadAttachmentCallback
506
- * @param {String} error Error message, if any.
507
- * @param data This operation does not return a value.
508
- * @param {String} response The complete HTTP response.
558
+ * Remove attachment and unlink from TestResult
559
+ * Use case User sets testResultId and attachmentId User attaches a file User runs method execution System deletes attachment and unlinks it from the test result System returns attachment identifier
560
+ * @param {String} id Test result internal identifier (guid format)
561
+ * @param {String} attachmentId Attachment internal identifier (guid format)
562
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
509
563
  */
564
+ }, {
565
+ key: "deleteAttachment",
566
+ value: function deleteAttachment(id, attachmentId) {
567
+ return this.deleteAttachmentWithHttpInfo(id, attachmentId).then(function (response_and_data) {
568
+ return response_and_data.data;
569
+ });
570
+ }
510
571
 
511
572
  /**
512
573
  * Get attachment of TestResult
@@ -519,11 +580,11 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
519
580
  * @param {module:model/ImageResizeType} [resizeType] Type of resizing to apply to the result image
520
581
  * @param {String} [backgroundColor] Color of the background if the `resizeType` is `AddBackgroundStripes`
521
582
  * @param {Boolean} [preview] If image must be converted to a preview (lower quality, no animation)
522
- * @param {module:api/TestResultsApi~downloadAttachmentCallback} callback The callback function, accepting three arguments: error, data, response
583
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
523
584
  */
524
585
  }, {
525
- key: "downloadAttachment",
526
- value: function downloadAttachment(attachmentId, id, opts, callback) {
586
+ key: "downloadAttachmentWithHttpInfo",
587
+ value: function downloadAttachmentWithHttpInfo(attachmentId, id, opts) {
527
588
  opts = opts || {};
528
589
  var postBody = null;
529
590
  // verify the required parameter 'attachmentId' is set
@@ -551,28 +612,40 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
551
612
  var contentTypes = [];
552
613
  var accepts = ['application/json'];
553
614
  var returnType = null;
554
- return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/{attachmentId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
615
+ return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/{attachmentId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
555
616
  }
556
617
 
557
618
  /**
558
- * Callback function to receive the result of the getAttachment operation.
559
- * @callback module:api/TestResultsApi~getAttachmentCallback
560
- * @param {String} error Error message, if any.
561
- * @param {module:model/AttachmentApiResult} data The data returned by the service call.
562
- * @param {String} response The complete HTTP response.
619
+ * Get attachment of TestResult
620
+ * Use case User sets attachmentId and testResultId [Optional] User sets resize configuration User runs method execution System search attachments by the attachmentId and the testResultId [Optional] If resize configuration is set, System resizes the attachment according to the resize configuration [Optional] Otherwise, System does not resize the attachment System returns attachment as a file
621
+ * @param {String} attachmentId Attachment internal identifier (guid format)
622
+ * @param {String} id Test result internal identifier (guid format)
623
+ * @param {Object} opts Optional parameters
624
+ * @param {Number} opts.width Width of the result image
625
+ * @param {Number} opts.height Height of the result image
626
+ * @param {module:model/ImageResizeType} opts.resizeType Type of resizing to apply to the result image
627
+ * @param {String} opts.backgroundColor Color of the background if the `resizeType` is `AddBackgroundStripes`
628
+ * @param {Boolean} opts.preview If image must be converted to a preview (lower quality, no animation)
629
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
563
630
  */
631
+ }, {
632
+ key: "downloadAttachment",
633
+ value: function downloadAttachment(attachmentId, id, opts) {
634
+ return this.downloadAttachmentWithHttpInfo(attachmentId, id, opts).then(function (response_and_data) {
635
+ return response_and_data.data;
636
+ });
637
+ }
564
638
 
565
639
  /**
566
640
  * Get Metadata of TestResult's attachment
567
641
  * Use case User sets attachmentId and testResultId User runs method execution System search attachment by the attachmentId and the testResultId System returns attachment data
568
642
  * @param {String} id Test result internal identifier (guid format)
569
643
  * @param {String} attachmentId Attachment internal identifier (guid format)
570
- * @param {module:api/TestResultsApi~getAttachmentCallback} callback The callback function, accepting three arguments: error, data, response
571
- * data is of type: {@link module:model/AttachmentApiResult}
644
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AttachmentApiResult} and HTTP response
572
645
  */
573
646
  }, {
574
- key: "getAttachment",
575
- value: function getAttachment(id, attachmentId, callback) {
647
+ key: "getAttachmentWithHttpInfo",
648
+ value: function getAttachmentWithHttpInfo(id, attachmentId) {
576
649
  var postBody = null;
577
650
  // verify the required parameter 'id' is set
578
651
  if (id === undefined || id === null) {
@@ -593,27 +666,33 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
593
666
  var contentTypes = [];
594
667
  var accepts = ['application/json'];
595
668
  var returnType = _AttachmentApiResult["default"];
596
- return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/{attachmentId}/info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
669
+ return this.apiClient.callApi('/api/v2/testResults/{id}/attachments/{attachmentId}/info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
597
670
  }
598
671
 
599
672
  /**
600
- * Callback function to receive the result of the getAttachments operation.
601
- * @callback module:api/TestResultsApi~getAttachmentsCallback
602
- * @param {String} error Error message, if any.
603
- * @param {Array.<module:model/AttachmentApiResult>} data The data returned by the service call.
604
- * @param {String} response The complete HTTP response.
673
+ * Get Metadata of TestResult's attachment
674
+ * Use case User sets attachmentId and testResultId User runs method execution System search attachment by the attachmentId and the testResultId System returns attachment data
675
+ * @param {String} id Test result internal identifier (guid format)
676
+ * @param {String} attachmentId Attachment internal identifier (guid format)
677
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AttachmentApiResult}
605
678
  */
679
+ }, {
680
+ key: "getAttachment",
681
+ value: function getAttachment(id, attachmentId) {
682
+ return this.getAttachmentWithHttpInfo(id, attachmentId).then(function (response_and_data) {
683
+ return response_and_data.data;
684
+ });
685
+ }
606
686
 
607
687
  /**
608
688
  * Get all attachments of TestResult
609
689
  * Use case User sets testResultId User runs method execution System search all attachments of the test result System returns attachments enumeration
610
690
  * @param {String} id Test result internal identifier (guid format)
611
- * @param {module:api/TestResultsApi~getAttachmentsCallback} callback The callback function, accepting three arguments: error, data, response
612
- * data is of type: {@link Array.<module:model/AttachmentApiResult>}
691
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AttachmentApiResult>} and HTTP response
613
692
  */
614
693
  }, {
615
- key: "getAttachments",
616
- value: function getAttachments(id, callback) {
694
+ key: "getAttachmentsWithHttpInfo",
695
+ value: function getAttachmentsWithHttpInfo(id) {
617
696
  var postBody = null;
618
697
  // verify the required parameter 'id' is set
619
698
  if (id === undefined || id === null) {
@@ -629,7 +708,21 @@ var TestResultsApi = exports["default"] = /*#__PURE__*/function () {
629
708
  var contentTypes = [];
630
709
  var accepts = ['application/json'];
631
710
  var returnType = [_AttachmentApiResult["default"]];
632
- return this.apiClient.callApi('/api/v2/testResults/{id}/attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
711
+ return this.apiClient.callApi('/api/v2/testResults/{id}/attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
712
+ }
713
+
714
+ /**
715
+ * Get all attachments of TestResult
716
+ * Use case User sets testResultId User runs method execution System search all attachments of the test result System returns attachments enumeration
717
+ * @param {String} id Test result internal identifier (guid format)
718
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AttachmentApiResult>}
719
+ */
720
+ }, {
721
+ key: "getAttachments",
722
+ value: function getAttachments(id) {
723
+ return this.getAttachmentsWithHttpInfo(id).then(function (response_and_data) {
724
+ return response_and_data.data;
725
+ });
633
726
  }
634
727
  }]);
635
728
  }();