testit-api-client 7.0.0-rc1 → 7.0.0-rc3

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
@@ -49,7 +49,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
49
49
  /**
50
50
  * WorkItems service.
51
51
  * @module api/WorkItemsApi
52
- * @version 7.0.0-rc1
52
+ * @version 7.0.0-rc3
53
53
  */
54
54
  var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
55
55
  /**
@@ -64,25 +64,17 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
64
64
  this.apiClient = apiClient || _ApiClient["default"].instance;
65
65
  }
66
66
 
67
- /**
68
- * Callback function to receive the result of the apiV2WorkItemsIdAttachmentsPost operation.
69
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdAttachmentsPostCallback
70
- * @param {String} error Error message, if any.
71
- * @param data This operation does not return a value.
72
- * @param {String} response The complete HTTP response.
73
- */
74
-
75
67
  /**
76
68
  * Upload and link attachment to WorkItem
77
69
  * Use case User sets workItemId User attaches a file System creates attachment and links it to the work item System returns attachment identifier
78
70
  * @param {String} id Work item internal identifier (guid format)
79
71
  * @param {Object} opts Optional parameters
80
72
  * @param {File} [file] Select file
81
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdAttachmentsPostCallback} callback The callback function, accepting three arguments: error, data, response
73
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
82
74
  */
83
75
  return _createClass(WorkItemsApi, [{
84
- key: "apiV2WorkItemsIdAttachmentsPost",
85
- value: function apiV2WorkItemsIdAttachmentsPost(id, opts, callback) {
76
+ key: "apiV2WorkItemsIdAttachmentsPostWithHttpInfo",
77
+ value: function apiV2WorkItemsIdAttachmentsPostWithHttpInfo(id, opts) {
86
78
  opts = opts || {};
87
79
  var postBody = null;
88
80
  // verify the required parameter 'id' is set
@@ -101,27 +93,34 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
101
93
  var contentTypes = ['multipart/form-data'];
102
94
  var accepts = ['application/json'];
103
95
  var returnType = null;
104
- return this.apiClient.callApi('/api/v2/workItems/{id}/attachments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
96
+ return this.apiClient.callApi('/api/v2/workItems/{id}/attachments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
105
97
  }
106
98
 
107
99
  /**
108
- * Callback function to receive the result of the apiV2WorkItemsIdCheckListTransformToTestCasePost operation.
109
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdCheckListTransformToTestCasePostCallback
110
- * @param {String} error Error message, if any.
111
- * @param {module:model/WorkItemModel} data The data returned by the service call.
112
- * @param {String} response The complete HTTP response.
100
+ * Upload and link attachment to WorkItem
101
+ * Use case User sets workItemId User attaches a file System creates attachment and links it to the work item System returns attachment identifier
102
+ * @param {String} id Work item internal identifier (guid format)
103
+ * @param {Object} opts Optional parameters
104
+ * @param {File} opts.file Select file
105
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
113
106
  */
107
+ }, {
108
+ key: "apiV2WorkItemsIdAttachmentsPost",
109
+ value: function apiV2WorkItemsIdAttachmentsPost(id, opts) {
110
+ return this.apiV2WorkItemsIdAttachmentsPostWithHttpInfo(id, opts).then(function (response_and_data) {
111
+ return response_and_data.data;
112
+ });
113
+ }
114
114
 
115
115
  /**
116
116
  * Transform CheckList to TestCase
117
117
  * Use case User sets checklist identifier User runs method execution System transform CheckList to TestCase
118
118
  * @param {String} id
119
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdCheckListTransformToTestCasePostCallback} callback The callback function, accepting three arguments: error, data, response
120
- * data is of type: {@link module:model/WorkItemModel}
119
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkItemModel} and HTTP response
121
120
  */
122
121
  }, {
123
- key: "apiV2WorkItemsIdCheckListTransformToTestCasePost",
124
- value: function apiV2WorkItemsIdCheckListTransformToTestCasePost(id, callback) {
122
+ key: "apiV2WorkItemsIdCheckListTransformToTestCasePostWithHttpInfo",
123
+ value: function apiV2WorkItemsIdCheckListTransformToTestCasePostWithHttpInfo(id) {
125
124
  var postBody = null;
126
125
  // verify the required parameter 'id' is set
127
126
  if (id === undefined || id === null) {
@@ -137,16 +136,22 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
137
136
  var contentTypes = [];
138
137
  var accepts = ['application/json'];
139
138
  var returnType = _WorkItemModel["default"];
140
- return this.apiClient.callApi('/api/v2/workItems/{id}/checkList/transformTo/testCase', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
139
+ return this.apiClient.callApi('/api/v2/workItems/{id}/checkList/transformTo/testCase', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
141
140
  }
142
141
 
143
142
  /**
144
- * Callback function to receive the result of the apiV2WorkItemsIdHistoryGet operation.
145
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdHistoryGetCallback
146
- * @param {String} error Error message, if any.
147
- * @param {Array.<module:model/WorkItemChangeModel>} data The data returned by the service call.
148
- * @param {String} response The complete HTTP response.
143
+ * Transform CheckList to TestCase
144
+ * Use case User sets checklist identifier User runs method execution System transform CheckList to TestCase
145
+ * @param {String} id
146
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkItemModel}
149
147
  */
148
+ }, {
149
+ key: "apiV2WorkItemsIdCheckListTransformToTestCasePost",
150
+ value: function apiV2WorkItemsIdCheckListTransformToTestCasePost(id) {
151
+ return this.apiV2WorkItemsIdCheckListTransformToTestCasePostWithHttpInfo(id).then(function (response_and_data) {
152
+ return response_and_data.data;
153
+ });
154
+ }
150
155
 
151
156
  /**
152
157
  * Get change history of WorkItem
@@ -158,12 +163,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
158
163
  * @param {String} [orderBy] SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
159
164
  * @param {String} [searchField] Property name for searching
160
165
  * @param {String} [searchValue] Value for searching
161
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdHistoryGetCallback} callback The callback function, accepting three arguments: error, data, response
162
- * data is of type: {@link Array.<module:model/WorkItemChangeModel>}
166
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/WorkItemChangeModel>} and HTTP response
163
167
  */
164
168
  }, {
165
- key: "apiV2WorkItemsIdHistoryGet",
166
- value: function apiV2WorkItemsIdHistoryGet(id, opts, callback) {
169
+ key: "apiV2WorkItemsIdHistoryGetWithHttpInfo",
170
+ value: function apiV2WorkItemsIdHistoryGetWithHttpInfo(id, opts) {
167
171
  opts = opts || {};
168
172
  var postBody = null;
169
173
  // verify the required parameter 'id' is set
@@ -186,26 +190,38 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
186
190
  var contentTypes = [];
187
191
  var accepts = ['application/json'];
188
192
  var returnType = [_WorkItemChangeModel["default"]];
189
- return this.apiClient.callApi('/api/v2/workItems/{id}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
193
+ return this.apiClient.callApi('/api/v2/workItems/{id}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
190
194
  }
191
195
 
192
196
  /**
193
- * Callback function to receive the result of the apiV2WorkItemsIdLikeDelete operation.
194
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdLikeDeleteCallback
195
- * @param {String} error Error message, if any.
196
- * @param data This operation does not return a value.
197
- * @param {String} response The complete HTTP response.
197
+ * Get change history of WorkItem
198
+ * Use case User sets work item identifier User runs method execution System return change history of WorkItem
199
+ * @param {String} id
200
+ * @param {Object} opts Optional parameters
201
+ * @param {Number} opts.skip Amount of items to be skipped (offset)
202
+ * @param {Number} opts.take Amount of items to be taken (limit)
203
+ * @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
204
+ * @param {String} opts.searchField Property name for searching
205
+ * @param {String} opts.searchValue Value for searching
206
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/WorkItemChangeModel>}
198
207
  */
208
+ }, {
209
+ key: "apiV2WorkItemsIdHistoryGet",
210
+ value: function apiV2WorkItemsIdHistoryGet(id, opts) {
211
+ return this.apiV2WorkItemsIdHistoryGetWithHttpInfo(id, opts).then(function (response_and_data) {
212
+ return response_and_data.data;
213
+ });
214
+ }
199
215
 
200
216
  /**
201
217
  * Delete like from WorkItem
202
218
  * Use case User sets WorkItem identifier User runs method execution System delete like from WorkItem
203
219
  * @param {String} id
204
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdLikeDeleteCallback} callback The callback function, accepting three arguments: error, data, response
220
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
205
221
  */
206
222
  }, {
207
- key: "apiV2WorkItemsIdLikeDelete",
208
- value: function apiV2WorkItemsIdLikeDelete(id, callback) {
223
+ key: "apiV2WorkItemsIdLikeDeleteWithHttpInfo",
224
+ value: function apiV2WorkItemsIdLikeDeleteWithHttpInfo(id) {
209
225
  var postBody = null;
210
226
  // verify the required parameter 'id' is set
211
227
  if (id === undefined || id === null) {
@@ -221,26 +237,32 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
221
237
  var contentTypes = [];
222
238
  var accepts = ['application/json'];
223
239
  var returnType = null;
224
- return this.apiClient.callApi('/api/v2/workItems/{id}/like', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
240
+ return this.apiClient.callApi('/api/v2/workItems/{id}/like', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
225
241
  }
226
242
 
227
243
  /**
228
- * Callback function to receive the result of the apiV2WorkItemsIdLikePost operation.
229
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdLikePostCallback
230
- * @param {String} error Error message, if any.
231
- * @param data This operation does not return a value.
232
- * @param {String} response The complete HTTP response.
244
+ * Delete like from WorkItem
245
+ * Use case User sets WorkItem identifier User runs method execution System delete like from WorkItem
246
+ * @param {String} id
247
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
233
248
  */
249
+ }, {
250
+ key: "apiV2WorkItemsIdLikeDelete",
251
+ value: function apiV2WorkItemsIdLikeDelete(id) {
252
+ return this.apiV2WorkItemsIdLikeDeleteWithHttpInfo(id).then(function (response_and_data) {
253
+ return response_and_data.data;
254
+ });
255
+ }
234
256
 
235
257
  /**
236
258
  * Set like to WorkItem
237
259
  * Use case User sets WorkItem identifier User runs method execution System set like to WorkItem
238
260
  * @param {String} id
239
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdLikePostCallback} callback The callback function, accepting three arguments: error, data, response
261
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
240
262
  */
241
263
  }, {
242
- key: "apiV2WorkItemsIdLikePost",
243
- value: function apiV2WorkItemsIdLikePost(id, callback) {
264
+ key: "apiV2WorkItemsIdLikePostWithHttpInfo",
265
+ value: function apiV2WorkItemsIdLikePostWithHttpInfo(id) {
244
266
  var postBody = null;
245
267
  // verify the required parameter 'id' is set
246
268
  if (id === undefined || id === null) {
@@ -256,27 +278,32 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
256
278
  var contentTypes = [];
257
279
  var accepts = ['application/json'];
258
280
  var returnType = null;
259
- return this.apiClient.callApi('/api/v2/workItems/{id}/like', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
281
+ return this.apiClient.callApi('/api/v2/workItems/{id}/like', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
260
282
  }
261
283
 
262
284
  /**
263
- * Callback function to receive the result of the apiV2WorkItemsIdLikesCountGet operation.
264
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdLikesCountGetCallback
265
- * @param {String} error Error message, if any.
266
- * @param {Number} data The data returned by the service call.
267
- * @param {String} response The complete HTTP response.
285
+ * Set like to WorkItem
286
+ * Use case User sets WorkItem identifier User runs method execution System set like to WorkItem
287
+ * @param {String} id
288
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
268
289
  */
290
+ }, {
291
+ key: "apiV2WorkItemsIdLikePost",
292
+ value: function apiV2WorkItemsIdLikePost(id) {
293
+ return this.apiV2WorkItemsIdLikePostWithHttpInfo(id).then(function (response_and_data) {
294
+ return response_and_data.data;
295
+ });
296
+ }
269
297
 
270
298
  /**
271
299
  * Get likes count of WorkItem
272
300
  * Use case User sets WorkItem identifier User runs method execution System return likes count of WorkItem
273
301
  * @param {String} id
274
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdLikesCountGetCallback} callback The callback function, accepting three arguments: error, data, response
275
- * data is of type: {@link Number}
302
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Number} and HTTP response
276
303
  */
277
304
  }, {
278
- key: "apiV2WorkItemsIdLikesCountGet",
279
- value: function apiV2WorkItemsIdLikesCountGet(id, callback) {
305
+ key: "apiV2WorkItemsIdLikesCountGetWithHttpInfo",
306
+ value: function apiV2WorkItemsIdLikesCountGetWithHttpInfo(id) {
280
307
  var postBody = null;
281
308
  // verify the required parameter 'id' is set
282
309
  if (id === undefined || id === null) {
@@ -292,27 +319,32 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
292
319
  var contentTypes = [];
293
320
  var accepts = ['application/json'];
294
321
  var returnType = 'Number';
295
- return this.apiClient.callApi('/api/v2/workItems/{id}/likes/count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
322
+ return this.apiClient.callApi('/api/v2/workItems/{id}/likes/count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
296
323
  }
297
324
 
298
325
  /**
299
- * Callback function to receive the result of the apiV2WorkItemsIdLikesGet operation.
300
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdLikesGetCallback
301
- * @param {String} error Error message, if any.
302
- * @param {Array.<module:model/WorkItemLikeModel>} data The data returned by the service call.
303
- * @param {String} response The complete HTTP response.
326
+ * Get likes count of WorkItem
327
+ * Use case User sets WorkItem identifier User runs method execution System return likes count of WorkItem
328
+ * @param {String} id
329
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Number}
304
330
  */
331
+ }, {
332
+ key: "apiV2WorkItemsIdLikesCountGet",
333
+ value: function apiV2WorkItemsIdLikesCountGet(id) {
334
+ return this.apiV2WorkItemsIdLikesCountGetWithHttpInfo(id).then(function (response_and_data) {
335
+ return response_and_data.data;
336
+ });
337
+ }
305
338
 
306
339
  /**
307
340
  * Get likes of WorkItem
308
341
  * Use case User sets WorkItem identifier User runs method execution System return likes of WorkItem
309
342
  * @param {String} id
310
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdLikesGetCallback} callback The callback function, accepting three arguments: error, data, response
311
- * data is of type: {@link Array.<module:model/WorkItemLikeModel>}
343
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/WorkItemLikeModel>} and HTTP response
312
344
  */
313
345
  }, {
314
- key: "apiV2WorkItemsIdLikesGet",
315
- value: function apiV2WorkItemsIdLikesGet(id, callback) {
346
+ key: "apiV2WorkItemsIdLikesGetWithHttpInfo",
347
+ value: function apiV2WorkItemsIdLikesGetWithHttpInfo(id) {
316
348
  var postBody = null;
317
349
  // verify the required parameter 'id' is set
318
350
  if (id === undefined || id === null) {
@@ -328,16 +360,22 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
328
360
  var contentTypes = [];
329
361
  var accepts = ['application/json'];
330
362
  var returnType = [_WorkItemLikeModel["default"]];
331
- return this.apiClient.callApi('/api/v2/workItems/{id}/likes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
363
+ return this.apiClient.callApi('/api/v2/workItems/{id}/likes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
332
364
  }
333
365
 
334
366
  /**
335
- * Callback function to receive the result of the apiV2WorkItemsIdTestResultsHistoryGet operation.
336
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdTestResultsHistoryGetCallback
337
- * @param {String} error Error message, if any.
338
- * @param {Array.<module:model/TestResultHistoryReportApiResult>} data The data returned by the service call.
339
- * @param {String} response The complete HTTP response.
367
+ * Get likes of WorkItem
368
+ * Use case User sets WorkItem identifier User runs method execution System return likes of WorkItem
369
+ * @param {String} id
370
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/WorkItemLikeModel>}
340
371
  */
372
+ }, {
373
+ key: "apiV2WorkItemsIdLikesGet",
374
+ value: function apiV2WorkItemsIdLikesGet(id) {
375
+ return this.apiV2WorkItemsIdLikesGetWithHttpInfo(id).then(function (response_and_data) {
376
+ return response_and_data.data;
377
+ });
378
+ }
341
379
 
342
380
  /**
343
381
  * Get test results history of WorkItem
@@ -359,12 +397,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
359
397
  * @param {String} [orderBy] SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
360
398
  * @param {String} [searchField] Property name for searching
361
399
  * @param {String} [searchValue] Value for searching
362
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdTestResultsHistoryGetCallback} callback The callback function, accepting three arguments: error, data, response
363
- * data is of type: {@link Array.<module:model/TestResultHistoryReportApiResult>}
400
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/TestResultHistoryReportApiResult>} and HTTP response
364
401
  */
365
402
  }, {
366
- key: "apiV2WorkItemsIdTestResultsHistoryGet",
367
- value: function apiV2WorkItemsIdTestResultsHistoryGet(id, opts, callback) {
403
+ key: "apiV2WorkItemsIdTestResultsHistoryGetWithHttpInfo",
404
+ value: function apiV2WorkItemsIdTestResultsHistoryGetWithHttpInfo(id, opts) {
368
405
  opts = opts || {};
369
406
  var postBody = null;
370
407
  // verify the required parameter 'id' is set
@@ -397,28 +434,49 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
397
434
  var contentTypes = [];
398
435
  var accepts = ['application/json'];
399
436
  var returnType = [_TestResultHistoryReportApiResult["default"]];
400
- return this.apiClient.callApi('/api/v2/workItems/{id}/testResults/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
437
+ return this.apiClient.callApi('/api/v2/workItems/{id}/testResults/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
401
438
  }
402
439
 
403
440
  /**
404
- * Callback function to receive the result of the apiV2WorkItemsIdVersionVersionIdActualPost operation.
405
- * @callback module:api/WorkItemsApi~apiV2WorkItemsIdVersionVersionIdActualPostCallback
406
- * @param {String} error Error message, if any.
407
- * @param {module:model/WorkItemModel} data The data returned by the service call.
408
- * @param {String} response The complete HTTP response.
441
+ * Get test results history of WorkItem
442
+ * Use case User sets WorkItem identifier User runs method execution System return test results history of WorkItem
443
+ * @param {String} id
444
+ * @param {Object} opts Optional parameters
445
+ * @param {Date} opts.from Take results from this date
446
+ * @param {Date} opts.to Take results until this date
447
+ * @param {Array.<String>} opts.configurationIds Identifiers of test result configurations
448
+ * @param {Array.<String>} opts.testPlanIds Identifiers of test plans which contain test results
449
+ * @param {Array.<String>} opts.userIds Identifiers of users who set test results
450
+ * @param {Array.<String>} opts.outcomes List of outcomes of test results
451
+ * @param {Array.<String>} opts.statusCodes List of status codes of test results
452
+ * @param {Boolean} opts.isAutomated OBSOLETE: Use `Automated` instead
453
+ * @param {Boolean} opts.automated If result must consist of only manual/automated test results
454
+ * @param {Array.<String>} opts.testRunIds Identifiers of test runs which contain test results
455
+ * @param {Number} opts.skip Amount of items to be skipped (offset)
456
+ * @param {Number} opts.take Amount of items to be taken (limit)
457
+ * @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
458
+ * @param {String} opts.searchField Property name for searching
459
+ * @param {String} opts.searchValue Value for searching
460
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/TestResultHistoryReportApiResult>}
409
461
  */
462
+ }, {
463
+ key: "apiV2WorkItemsIdTestResultsHistoryGet",
464
+ value: function apiV2WorkItemsIdTestResultsHistoryGet(id, opts) {
465
+ return this.apiV2WorkItemsIdTestResultsHistoryGetWithHttpInfo(id, opts).then(function (response_and_data) {
466
+ return response_and_data.data;
467
+ });
468
+ }
410
469
 
411
470
  /**
412
471
  * Set WorkItem as actual
413
472
  * Use case User sets work item identifier User runs method execution System set WorkItem as actual
414
473
  * @param {String} id
415
474
  * @param {String} versionId
416
- * @param {module:api/WorkItemsApi~apiV2WorkItemsIdVersionVersionIdActualPostCallback} callback The callback function, accepting three arguments: error, data, response
417
- * data is of type: {@link module:model/WorkItemModel}
475
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkItemModel} and HTTP response
418
476
  */
419
477
  }, {
420
- key: "apiV2WorkItemsIdVersionVersionIdActualPost",
421
- value: function apiV2WorkItemsIdVersionVersionIdActualPost(id, versionId, callback) {
478
+ key: "apiV2WorkItemsIdVersionVersionIdActualPostWithHttpInfo",
479
+ value: function apiV2WorkItemsIdVersionVersionIdActualPostWithHttpInfo(id, versionId) {
422
480
  var postBody = null;
423
481
  // verify the required parameter 'id' is set
424
482
  if (id === undefined || id === null) {
@@ -439,16 +497,23 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
439
497
  var contentTypes = [];
440
498
  var accepts = ['application/json'];
441
499
  var returnType = _WorkItemModel["default"];
442
- return this.apiClient.callApi('/api/v2/workItems/{id}/version/{versionId}/actual', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
500
+ return this.apiClient.callApi('/api/v2/workItems/{id}/version/{versionId}/actual', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
443
501
  }
444
502
 
445
503
  /**
446
- * Callback function to receive the result of the apiV2WorkItemsLinksUrlsSearchPost operation.
447
- * @callback module:api/WorkItemsApi~apiV2WorkItemsLinksUrlsSearchPostCallback
448
- * @param {String} error Error message, if any.
449
- * @param {module:model/SearchWorkItemLinkUrlsApiResult} data The data returned by the service call.
450
- * @param {String} response The complete HTTP response.
504
+ * Set WorkItem as actual
505
+ * Use case User sets work item identifier User runs method execution System set WorkItem as actual
506
+ * @param {String} id
507
+ * @param {String} versionId
508
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkItemModel}
451
509
  */
510
+ }, {
511
+ key: "apiV2WorkItemsIdVersionVersionIdActualPost",
512
+ value: function apiV2WorkItemsIdVersionVersionIdActualPost(id, versionId) {
513
+ return this.apiV2WorkItemsIdVersionVersionIdActualPostWithHttpInfo(id, versionId).then(function (response_and_data) {
514
+ return response_and_data.data;
515
+ });
516
+ }
452
517
 
453
518
  /**
454
519
  * @param {Object} opts Optional parameters
@@ -458,12 +523,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
458
523
  * @param {String} [searchField] Property name for searching
459
524
  * @param {String} [searchValue] Value for searching
460
525
  * @param {module:model/WorkItemLinkUrlApiModel} [workItemLinkUrlApiModel]
461
- * @param {module:api/WorkItemsApi~apiV2WorkItemsLinksUrlsSearchPostCallback} callback The callback function, accepting three arguments: error, data, response
462
- * data is of type: {@link module:model/SearchWorkItemLinkUrlsApiResult}
526
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SearchWorkItemLinkUrlsApiResult} and HTTP response
463
527
  */
464
528
  }, {
465
- key: "apiV2WorkItemsLinksUrlsSearchPost",
466
- value: function apiV2WorkItemsLinksUrlsSearchPost(opts, callback) {
529
+ key: "apiV2WorkItemsLinksUrlsSearchPostWithHttpInfo",
530
+ value: function apiV2WorkItemsLinksUrlsSearchPostWithHttpInfo(opts) {
467
531
  opts = opts || {};
468
532
  var postBody = opts['workItemLinkUrlApiModel'];
469
533
  var pathParams = {};
@@ -480,28 +544,37 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
480
544
  var contentTypes = ['application/json'];
481
545
  var accepts = ['application/json'];
482
546
  var returnType = _SearchWorkItemLinkUrlsApiResult["default"];
483
- return this.apiClient.callApi('/api/v2/workItems/links/urls/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
547
+ return this.apiClient.callApi('/api/v2/workItems/links/urls/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
484
548
  }
485
549
 
486
550
  /**
487
- * Callback function to receive the result of the apiV2WorkItemsMovePost operation.
488
- * @callback module:api/WorkItemsApi~apiV2WorkItemsMovePostCallback
489
- * @param {String} error Error message, if any.
490
- * @param {module:model/WorkItemShortModel} data The data returned by the service call.
491
- * @param {String} response The complete HTTP response.
551
+ * @param {Object} opts Optional parameters
552
+ * @param {Number} opts.skip Amount of items to be skipped (offset)
553
+ * @param {Number} opts.take Amount of items to be taken (limit)
554
+ * @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
555
+ * @param {String} opts.searchField Property name for searching
556
+ * @param {String} opts.searchValue Value for searching
557
+ * @param {module:model/WorkItemLinkUrlApiModel} opts.workItemLinkUrlApiModel
558
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SearchWorkItemLinkUrlsApiResult}
492
559
  */
560
+ }, {
561
+ key: "apiV2WorkItemsLinksUrlsSearchPost",
562
+ value: function apiV2WorkItemsLinksUrlsSearchPost(opts) {
563
+ return this.apiV2WorkItemsLinksUrlsSearchPostWithHttpInfo(opts).then(function (response_and_data) {
564
+ return response_and_data.data;
565
+ });
566
+ }
493
567
 
494
568
  /**
495
569
  * Move WorkItem to another section
496
570
  * Use case User sets WorkItem identifier User runs method execution System move WorkItem to another section
497
571
  * @param {Object} opts Optional parameters
498
572
  * @param {module:model/WorkItemMovePostModel} [workItemMovePostModel]
499
- * @param {module:api/WorkItemsApi~apiV2WorkItemsMovePostCallback} callback The callback function, accepting three arguments: error, data, response
500
- * data is of type: {@link module:model/WorkItemShortModel}
573
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkItemShortModel} and HTTP response
501
574
  */
502
575
  }, {
503
- key: "apiV2WorkItemsMovePost",
504
- value: function apiV2WorkItemsMovePost(opts, callback) {
576
+ key: "apiV2WorkItemsMovePostWithHttpInfo",
577
+ value: function apiV2WorkItemsMovePostWithHttpInfo(opts) {
505
578
  opts = opts || {};
506
579
  var postBody = opts['workItemMovePostModel'];
507
580
  var pathParams = {};
@@ -512,27 +585,33 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
512
585
  var contentTypes = ['application/json'];
513
586
  var accepts = ['application/json'];
514
587
  var returnType = _WorkItemShortModel["default"];
515
- return this.apiClient.callApi('/api/v2/workItems/move', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
588
+ return this.apiClient.callApi('/api/v2/workItems/move', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
516
589
  }
517
590
 
518
591
  /**
519
- * Callback function to receive the result of the apiV2WorkItemsPost operation.
520
- * @callback module:api/WorkItemsApi~apiV2WorkItemsPostCallback
521
- * @param {String} error Error message, if any.
522
- * @param {module:model/WorkItemApiResult} data The data returned by the service call.
523
- * @param {String} response The complete HTTP response.
592
+ * Move WorkItem to another section
593
+ * Use case User sets WorkItem identifier User runs method execution System move WorkItem to another section
594
+ * @param {Object} opts Optional parameters
595
+ * @param {module:model/WorkItemMovePostModel} opts.workItemMovePostModel
596
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkItemShortModel}
524
597
  */
598
+ }, {
599
+ key: "apiV2WorkItemsMovePost",
600
+ value: function apiV2WorkItemsMovePost(opts) {
601
+ return this.apiV2WorkItemsMovePostWithHttpInfo(opts).then(function (response_and_data) {
602
+ return response_and_data.data;
603
+ });
604
+ }
525
605
 
526
606
  /**
527
607
  * Creates work item
528
608
  * @param {Object} opts Optional parameters
529
609
  * @param {module:model/CreateWorkItemApiModel} [createWorkItemApiModel]
530
- * @param {module:api/WorkItemsApi~apiV2WorkItemsPostCallback} callback The callback function, accepting three arguments: error, data, response
531
- * data is of type: {@link module:model/WorkItemApiResult}
610
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkItemApiResult} and HTTP response
532
611
  */
533
612
  }, {
534
- key: "apiV2WorkItemsPost",
535
- value: function apiV2WorkItemsPost(opts, callback) {
613
+ key: "apiV2WorkItemsPostWithHttpInfo",
614
+ value: function apiV2WorkItemsPostWithHttpInfo(opts) {
536
615
  opts = opts || {};
537
616
  var postBody = opts['createWorkItemApiModel'];
538
617
  var pathParams = {};
@@ -543,16 +622,22 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
543
622
  var contentTypes = ['application/json'];
544
623
  var accepts = ['application/json'];
545
624
  var returnType = _WorkItemApiResult["default"];
546
- return this.apiClient.callApi('/api/v2/workItems', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
625
+ return this.apiClient.callApi('/api/v2/workItems', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
547
626
  }
548
627
 
549
628
  /**
550
- * Callback function to receive the result of the apiV2WorkItemsSearchPost operation.
551
- * @callback module:api/WorkItemsApi~apiV2WorkItemsSearchPostCallback
552
- * @param {String} error Error message, if any.
553
- * @param {Array.<module:model/WorkItemShortApiResult>} data The data returned by the service call.
554
- * @param {String} response The complete HTTP response.
629
+ * Creates work item
630
+ * @param {Object} opts Optional parameters
631
+ * @param {module:model/CreateWorkItemApiModel} opts.createWorkItemApiModel
632
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkItemApiResult}
555
633
  */
634
+ }, {
635
+ key: "apiV2WorkItemsPost",
636
+ value: function apiV2WorkItemsPost(opts) {
637
+ return this.apiV2WorkItemsPostWithHttpInfo(opts).then(function (response_and_data) {
638
+ return response_and_data.data;
639
+ });
640
+ }
556
641
 
557
642
  /**
558
643
  * Search for work items
@@ -563,12 +648,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
563
648
  * @param {String} [searchField] Property name for searching
564
649
  * @param {String} [searchValue] Value for searching
565
650
  * @param {module:model/WorkItemSelectApiModel} [workItemSelectApiModel]
566
- * @param {module:api/WorkItemsApi~apiV2WorkItemsSearchPostCallback} callback The callback function, accepting three arguments: error, data, response
567
- * data is of type: {@link Array.<module:model/WorkItemShortApiResult>}
651
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/WorkItemShortApiResult>} and HTTP response
568
652
  */
569
653
  }, {
570
- key: "apiV2WorkItemsSearchPost",
571
- value: function apiV2WorkItemsSearchPost(opts, callback) {
654
+ key: "apiV2WorkItemsSearchPostWithHttpInfo",
655
+ value: function apiV2WorkItemsSearchPostWithHttpInfo(opts) {
572
656
  opts = opts || {};
573
657
  var postBody = opts['workItemSelectApiModel'];
574
658
  var pathParams = {};
@@ -585,16 +669,27 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
585
669
  var contentTypes = ['application/json'];
586
670
  var accepts = ['application/json'];
587
671
  var returnType = [_WorkItemShortApiResult["default"]];
588
- return this.apiClient.callApi('/api/v2/workItems/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
672
+ return this.apiClient.callApi('/api/v2/workItems/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
589
673
  }
590
674
 
591
675
  /**
592
- * Callback function to receive the result of the apiV2WorkItemsSharedStepIdReferencesSectionsPost operation.
593
- * @callback module:api/WorkItemsApi~apiV2WorkItemsSharedStepIdReferencesSectionsPostCallback
594
- * @param {String} error Error message, if any.
595
- * @param {Array.<module:model/SharedStepReferenceSectionModel>} data The data returned by the service call.
596
- * @param {String} response The complete HTTP response.
676
+ * Search for work items
677
+ * @param {Object} opts Optional parameters
678
+ * @param {Number} opts.skip Amount of items to be skipped (offset)
679
+ * @param {Number} opts.take Amount of items to be taken (limit)
680
+ * @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
681
+ * @param {String} opts.searchField Property name for searching
682
+ * @param {String} opts.searchValue Value for searching
683
+ * @param {module:model/WorkItemSelectApiModel} opts.workItemSelectApiModel
684
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/WorkItemShortApiResult>}
597
685
  */
686
+ }, {
687
+ key: "apiV2WorkItemsSearchPost",
688
+ value: function apiV2WorkItemsSearchPost(opts) {
689
+ return this.apiV2WorkItemsSearchPostWithHttpInfo(opts).then(function (response_and_data) {
690
+ return response_and_data.data;
691
+ });
692
+ }
598
693
 
599
694
  /**
600
695
  * Get SharedStep references in sections
@@ -607,12 +702,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
607
702
  * @param {String} [searchField] Property name for searching
608
703
  * @param {String} [searchValue] Value for searching
609
704
  * @param {module:model/SharedStepReferenceSectionsQueryFilterModel} [sharedStepReferenceSectionsQueryFilterModel]
610
- * @param {module:api/WorkItemsApi~apiV2WorkItemsSharedStepIdReferencesSectionsPostCallback} callback The callback function, accepting three arguments: error, data, response
611
- * data is of type: {@link Array.<module:model/SharedStepReferenceSectionModel>}
705
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SharedStepReferenceSectionModel>} and HTTP response
612
706
  */
613
707
  }, {
614
- key: "apiV2WorkItemsSharedStepIdReferencesSectionsPost",
615
- value: function apiV2WorkItemsSharedStepIdReferencesSectionsPost(sharedStepId, opts, callback) {
708
+ key: "apiV2WorkItemsSharedStepIdReferencesSectionsPostWithHttpInfo",
709
+ value: function apiV2WorkItemsSharedStepIdReferencesSectionsPostWithHttpInfo(sharedStepId, opts) {
616
710
  opts = opts || {};
617
711
  var postBody = opts['sharedStepReferenceSectionsQueryFilterModel'];
618
712
  // verify the required parameter 'sharedStepId' is set
@@ -635,16 +729,29 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
635
729
  var contentTypes = ['application/json'];
636
730
  var accepts = ['application/json'];
637
731
  var returnType = [_SharedStepReferenceSectionModel["default"]];
638
- return this.apiClient.callApi('/api/v2/workItems/{sharedStepId}/references/sections', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
732
+ return this.apiClient.callApi('/api/v2/workItems/{sharedStepId}/references/sections', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
639
733
  }
640
734
 
641
735
  /**
642
- * Callback function to receive the result of the apiV2WorkItemsSharedStepIdReferencesWorkItemsPost operation.
643
- * @callback module:api/WorkItemsApi~apiV2WorkItemsSharedStepIdReferencesWorkItemsPostCallback
644
- * @param {String} error Error message, if any.
645
- * @param {Array.<module:model/SharedStepReferenceModel>} data The data returned by the service call.
646
- * @param {String} response The complete HTTP response.
736
+ * Get SharedStep references in sections
737
+ * Use case User sets SharedStep identifier User runs method execution System return SharedStep references
738
+ * @param {String} sharedStepId
739
+ * @param {Object} opts Optional parameters
740
+ * @param {Number} opts.skip Amount of items to be skipped (offset)
741
+ * @param {Number} opts.take Amount of items to be taken (limit)
742
+ * @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
743
+ * @param {String} opts.searchField Property name for searching
744
+ * @param {String} opts.searchValue Value for searching
745
+ * @param {module:model/SharedStepReferenceSectionsQueryFilterModel} opts.sharedStepReferenceSectionsQueryFilterModel
746
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SharedStepReferenceSectionModel>}
647
747
  */
748
+ }, {
749
+ key: "apiV2WorkItemsSharedStepIdReferencesSectionsPost",
750
+ value: function apiV2WorkItemsSharedStepIdReferencesSectionsPost(sharedStepId, opts) {
751
+ return this.apiV2WorkItemsSharedStepIdReferencesSectionsPostWithHttpInfo(sharedStepId, opts).then(function (response_and_data) {
752
+ return response_and_data.data;
753
+ });
754
+ }
648
755
 
649
756
  /**
650
757
  * Get SharedStep references in work items
@@ -657,12 +764,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
657
764
  * @param {String} [searchField] Property name for searching
658
765
  * @param {String} [searchValue] Value for searching
659
766
  * @param {module:model/SharedStepReferencesQueryFilterModel} [sharedStepReferencesQueryFilterModel]
660
- * @param {module:api/WorkItemsApi~apiV2WorkItemsSharedStepIdReferencesWorkItemsPostCallback} callback The callback function, accepting three arguments: error, data, response
661
- * data is of type: {@link Array.<module:model/SharedStepReferenceModel>}
767
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SharedStepReferenceModel>} and HTTP response
662
768
  */
663
769
  }, {
664
- key: "apiV2WorkItemsSharedStepIdReferencesWorkItemsPost",
665
- value: function apiV2WorkItemsSharedStepIdReferencesWorkItemsPost(sharedStepId, opts, callback) {
770
+ key: "apiV2WorkItemsSharedStepIdReferencesWorkItemsPostWithHttpInfo",
771
+ value: function apiV2WorkItemsSharedStepIdReferencesWorkItemsPostWithHttpInfo(sharedStepId, opts) {
666
772
  opts = opts || {};
667
773
  var postBody = opts['sharedStepReferencesQueryFilterModel'];
668
774
  // verify the required parameter 'sharedStepId' is set
@@ -685,27 +791,39 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
685
791
  var contentTypes = ['application/json'];
686
792
  var accepts = ['application/json'];
687
793
  var returnType = [_SharedStepReferenceModel["default"]];
688
- return this.apiClient.callApi('/api/v2/workItems/{sharedStepId}/references/workItems', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
794
+ return this.apiClient.callApi('/api/v2/workItems/{sharedStepId}/references/workItems', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
689
795
  }
690
796
 
691
797
  /**
692
- * Callback function to receive the result of the apiV2WorkItemsSharedStepsSharedStepIdReferencesGet operation.
693
- * @callback module:api/WorkItemsApi~apiV2WorkItemsSharedStepsSharedStepIdReferencesGetCallback
694
- * @param {String} error Error message, if any.
695
- * @param {Array.<module:model/SharedStepReferenceModel>} data The data returned by the service call.
696
- * @param {String} response The complete HTTP response.
798
+ * Get SharedStep references in work items
799
+ * Use case User sets SharedStep identifier User runs method execution System return SharedStep references
800
+ * @param {String} sharedStepId
801
+ * @param {Object} opts Optional parameters
802
+ * @param {Number} opts.skip Amount of items to be skipped (offset)
803
+ * @param {Number} opts.take Amount of items to be taken (limit)
804
+ * @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
805
+ * @param {String} opts.searchField Property name for searching
806
+ * @param {String} opts.searchValue Value for searching
807
+ * @param {module:model/SharedStepReferencesQueryFilterModel} opts.sharedStepReferencesQueryFilterModel
808
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SharedStepReferenceModel>}
697
809
  */
810
+ }, {
811
+ key: "apiV2WorkItemsSharedStepIdReferencesWorkItemsPost",
812
+ value: function apiV2WorkItemsSharedStepIdReferencesWorkItemsPost(sharedStepId, opts) {
813
+ return this.apiV2WorkItemsSharedStepIdReferencesWorkItemsPostWithHttpInfo(sharedStepId, opts).then(function (response_and_data) {
814
+ return response_and_data.data;
815
+ });
816
+ }
698
817
 
699
818
  /**
700
819
  * Get SharedStep references
701
820
  * Use case User sets SharedStep identifier User runs method execution System return SharedStep references
702
821
  * @param {String} sharedStepId
703
- * @param {module:api/WorkItemsApi~apiV2WorkItemsSharedStepsSharedStepIdReferencesGetCallback} callback The callback function, accepting three arguments: error, data, response
704
- * data is of type: {@link Array.<module:model/SharedStepReferenceModel>}
822
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SharedStepReferenceModel>} and HTTP response
705
823
  */
706
824
  }, {
707
- key: "apiV2WorkItemsSharedStepsSharedStepIdReferencesGet",
708
- value: function apiV2WorkItemsSharedStepsSharedStepIdReferencesGet(sharedStepId, callback) {
825
+ key: "apiV2WorkItemsSharedStepsSharedStepIdReferencesGetWithHttpInfo",
826
+ value: function apiV2WorkItemsSharedStepsSharedStepIdReferencesGetWithHttpInfo(sharedStepId) {
709
827
  var postBody = null;
710
828
  // verify the required parameter 'sharedStepId' is set
711
829
  if (sharedStepId === undefined || sharedStepId === null) {
@@ -721,26 +839,32 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
721
839
  var contentTypes = [];
722
840
  var accepts = ['application/json'];
723
841
  var returnType = [_SharedStepReferenceModel["default"]];
724
- return this.apiClient.callApi('/api/v2/workItems/sharedSteps/{sharedStepId}/references', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
842
+ return this.apiClient.callApi('/api/v2/workItems/sharedSteps/{sharedStepId}/references', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
725
843
  }
726
844
 
727
845
  /**
728
- * Callback function to receive the result of the deleteAllWorkItemsFromAutoTest operation.
729
- * @callback module:api/WorkItemsApi~deleteAllWorkItemsFromAutoTestCallback
730
- * @param {String} error Error message, if any.
731
- * @param data This operation does not return a value.
732
- * @param {String} response The complete HTTP response.
846
+ * Get SharedStep references
847
+ * Use case User sets SharedStep identifier User runs method execution System return SharedStep references
848
+ * @param {String} sharedStepId
849
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SharedStepReferenceModel>}
733
850
  */
851
+ }, {
852
+ key: "apiV2WorkItemsSharedStepsSharedStepIdReferencesGet",
853
+ value: function apiV2WorkItemsSharedStepsSharedStepIdReferencesGet(sharedStepId) {
854
+ return this.apiV2WorkItemsSharedStepsSharedStepIdReferencesGetWithHttpInfo(sharedStepId).then(function (response_and_data) {
855
+ return response_and_data.data;
856
+ });
857
+ }
734
858
 
735
859
  /**
736
860
  * Delete all links AutoTests from WorkItem by Id or GlobalId
737
861
  * Use case User sets work item identifier User runs method execution System search work item by identifier System search and delete all autotests, related to found work item System returns no content response
738
862
  * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
739
- * @param {module:api/WorkItemsApi~deleteAllWorkItemsFromAutoTestCallback} callback The callback function, accepting three arguments: error, data, response
863
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
740
864
  */
741
865
  }, {
742
- key: "deleteAllWorkItemsFromAutoTest",
743
- value: function deleteAllWorkItemsFromAutoTest(id, callback) {
866
+ key: "deleteAllWorkItemsFromAutoTestWithHttpInfo",
867
+ value: function deleteAllWorkItemsFromAutoTestWithHttpInfo(id) {
744
868
  var postBody = null;
745
869
  // verify the required parameter 'id' is set
746
870
  if (id === undefined || id === null) {
@@ -756,26 +880,32 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
756
880
  var contentTypes = [];
757
881
  var accepts = ['application/json'];
758
882
  var returnType = null;
759
- return this.apiClient.callApi('/api/v2/workItems/{id}/autoTests', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
883
+ return this.apiClient.callApi('/api/v2/workItems/{id}/autoTests', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
760
884
  }
761
885
 
762
886
  /**
763
- * Callback function to receive the result of the deleteWorkItem operation.
764
- * @callback module:api/WorkItemsApi~deleteWorkItemCallback
765
- * @param {String} error Error message, if any.
766
- * @param data This operation does not return a value.
767
- * @param {String} response The complete HTTP response.
887
+ * Delete all links AutoTests from WorkItem by Id or GlobalId
888
+ * Use case User sets work item identifier User runs method execution System search work item by identifier System search and delete all autotests, related to found work item System returns no content response
889
+ * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
890
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
768
891
  */
892
+ }, {
893
+ key: "deleteAllWorkItemsFromAutoTest",
894
+ value: function deleteAllWorkItemsFromAutoTest(id) {
895
+ return this.deleteAllWorkItemsFromAutoTestWithHttpInfo(id).then(function (response_and_data) {
896
+ return response_and_data.data;
897
+ });
898
+ }
769
899
 
770
900
  /**
771
901
  * Delete Test Case, Checklist or Shared Step by Id or GlobalId
772
902
  * Use case User sets work item identifier User runs method execution System deletes work item System returns no content response
773
903
  * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
774
- * @param {module:api/WorkItemsApi~deleteWorkItemCallback} callback The callback function, accepting three arguments: error, data, response
904
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
775
905
  */
776
906
  }, {
777
- key: "deleteWorkItem",
778
- value: function deleteWorkItem(id, callback) {
907
+ key: "deleteWorkItemWithHttpInfo",
908
+ value: function deleteWorkItemWithHttpInfo(id) {
779
909
  var postBody = null;
780
910
  // verify the required parameter 'id' is set
781
911
  if (id === undefined || id === null) {
@@ -791,27 +921,32 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
791
921
  var contentTypes = [];
792
922
  var accepts = ['application/json'];
793
923
  var returnType = null;
794
- return this.apiClient.callApi('/api/v2/workItems/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
924
+ return this.apiClient.callApi('/api/v2/workItems/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
795
925
  }
796
926
 
797
927
  /**
798
- * Callback function to receive the result of the getAutoTestsForWorkItem operation.
799
- * @callback module:api/WorkItemsApi~getAutoTestsForWorkItemCallback
800
- * @param {String} error Error message, if any.
801
- * @param {Array.<module:model/AutoTestModel>} data The data returned by the service call.
802
- * @param {String} response The complete HTTP response.
928
+ * Delete Test Case, Checklist or Shared Step by Id or GlobalId
929
+ * Use case User sets work item identifier User runs method execution System deletes work item System returns no content response
930
+ * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
931
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
803
932
  */
933
+ }, {
934
+ key: "deleteWorkItem",
935
+ value: function deleteWorkItem(id) {
936
+ return this.deleteWorkItemWithHttpInfo(id).then(function (response_and_data) {
937
+ return response_and_data.data;
938
+ });
939
+ }
804
940
 
805
941
  /**
806
942
  * Get all AutoTests linked to WorkItem by Id or GlobalId
807
943
  * Use case User sets work item identifier User runs method execution System search work item by identifier System search all autotests, related to found work item System returns list of found autotests
808
944
  * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
809
- * @param {module:api/WorkItemsApi~getAutoTestsForWorkItemCallback} callback The callback function, accepting three arguments: error, data, response
810
- * data is of type: {@link Array.<module:model/AutoTestModel>}
945
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AutoTestModel>} and HTTP response
811
946
  */
812
947
  }, {
813
- key: "getAutoTestsForWorkItem",
814
- value: function getAutoTestsForWorkItem(id, callback) {
948
+ key: "getAutoTestsForWorkItemWithHttpInfo",
949
+ value: function getAutoTestsForWorkItemWithHttpInfo(id) {
815
950
  var postBody = null;
816
951
  // verify the required parameter 'id' is set
817
952
  if (id === undefined || id === null) {
@@ -827,16 +962,22 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
827
962
  var contentTypes = [];
828
963
  var accepts = ['application/json'];
829
964
  var returnType = [_AutoTestModel["default"]];
830
- return this.apiClient.callApi('/api/v2/workItems/{id}/autoTests', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
965
+ return this.apiClient.callApi('/api/v2/workItems/{id}/autoTests', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
831
966
  }
832
967
 
833
968
  /**
834
- * Callback function to receive the result of the getIterations operation.
835
- * @callback module:api/WorkItemsApi~getIterationsCallback
836
- * @param {String} error Error message, if any.
837
- * @param {Array.<module:model/IterationModel>} data The data returned by the service call.
838
- * @param {String} response The complete HTTP response.
969
+ * Get all AutoTests linked to WorkItem by Id or GlobalId
970
+ * Use case User sets work item identifier User runs method execution System search work item by identifier System search all autotests, related to found work item System returns list of found autotests
971
+ * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
972
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AutoTestModel>}
839
973
  */
974
+ }, {
975
+ key: "getAutoTestsForWorkItem",
976
+ value: function getAutoTestsForWorkItem(id) {
977
+ return this.getAutoTestsForWorkItemWithHttpInfo(id).then(function (response_and_data) {
978
+ return response_and_data.data;
979
+ });
980
+ }
840
981
 
841
982
  /**
842
983
  * Get iterations by work item Id or GlobalId
@@ -844,12 +985,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
844
985
  * @param {Object} opts Optional parameters
845
986
  * @param {String} [versionId] WorkItem version (guid format) identifier
846
987
  * @param {Number} [versionNumber] WorkItem version number (0 is the last version)\"
847
- * @param {module:api/WorkItemsApi~getIterationsCallback} callback The callback function, accepting three arguments: error, data, response
848
- * data is of type: {@link Array.<module:model/IterationModel>}
988
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/IterationModel>} and HTTP response
849
989
  */
850
990
  }, {
851
- key: "getIterations",
852
- value: function getIterations(id, opts, callback) {
991
+ key: "getIterationsWithHttpInfo",
992
+ value: function getIterationsWithHttpInfo(id, opts) {
853
993
  opts = opts || {};
854
994
  var postBody = null;
855
995
  // verify the required parameter 'id' is set
@@ -869,16 +1009,24 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
869
1009
  var contentTypes = [];
870
1010
  var accepts = ['application/json'];
871
1011
  var returnType = [_IterationModel["default"]];
872
- return this.apiClient.callApi('/api/v2/workItems/{id}/iterations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1012
+ return this.apiClient.callApi('/api/v2/workItems/{id}/iterations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
873
1013
  }
874
1014
 
875
1015
  /**
876
- * Callback function to receive the result of the getWorkItemById operation.
877
- * @callback module:api/WorkItemsApi~getWorkItemByIdCallback
878
- * @param {String} error Error message, if any.
879
- * @param {module:model/WorkItemModel} data The data returned by the service call.
880
- * @param {String} response The complete HTTP response.
1016
+ * Get iterations by work item Id or GlobalId
1017
+ * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
1018
+ * @param {Object} opts Optional parameters
1019
+ * @param {String} opts.versionId WorkItem version (guid format) identifier
1020
+ * @param {Number} opts.versionNumber WorkItem version number (0 is the last version)\"
1021
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/IterationModel>}
881
1022
  */
1023
+ }, {
1024
+ key: "getIterations",
1025
+ value: function getIterations(id, opts) {
1026
+ return this.getIterationsWithHttpInfo(id, opts).then(function (response_and_data) {
1027
+ return response_and_data.data;
1028
+ });
1029
+ }
882
1030
 
883
1031
  /**
884
1032
  * Get Test Case, Checklist or Shared Step by Id or GlobalId
@@ -887,12 +1035,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
887
1035
  * @param {Object} opts Optional parameters
888
1036
  * @param {String} [versionId] WorkItem version (guid format) identifier\"
889
1037
  * @param {Number} [versionNumber] WorkItem version number (0 is the last version)\"
890
- * @param {module:api/WorkItemsApi~getWorkItemByIdCallback} callback The callback function, accepting three arguments: error, data, response
891
- * data is of type: {@link module:model/WorkItemModel}
1038
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkItemModel} and HTTP response
892
1039
  */
893
1040
  }, {
894
- key: "getWorkItemById",
895
- value: function getWorkItemById(id, opts, callback) {
1041
+ key: "getWorkItemByIdWithHttpInfo",
1042
+ value: function getWorkItemByIdWithHttpInfo(id, opts) {
896
1043
  opts = opts || {};
897
1044
  var postBody = null;
898
1045
  // verify the required parameter 'id' is set
@@ -912,27 +1059,35 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
912
1059
  var contentTypes = [];
913
1060
  var accepts = ['application/json'];
914
1061
  var returnType = _WorkItemModel["default"];
915
- return this.apiClient.callApi('/api/v2/workItems/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1062
+ return this.apiClient.callApi('/api/v2/workItems/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
916
1063
  }
917
1064
 
918
1065
  /**
919
- * Callback function to receive the result of the getWorkItemChronology operation.
920
- * @callback module:api/WorkItemsApi~getWorkItemChronologyCallback
921
- * @param {String} error Error message, if any.
922
- * @param {Array.<module:model/TestResultChronologyModel>} data The data returned by the service call.
923
- * @param {String} response The complete HTTP response.
1066
+ * Get Test Case, Checklist or Shared Step by Id or GlobalId
1067
+ * Use case User sets work item identifier [Optional] User sets work item version identifier [Optional] User sets work item version number User runs method execution System search work item by identifier [Optional] if User sets work item version identifier, system search work item version by identifier. [Optional] if user sets work item version number, system search work item version by number Otherwise, system search last work item version System returns work item
1068
+ * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
1069
+ * @param {Object} opts Optional parameters
1070
+ * @param {String} opts.versionId WorkItem version (guid format) identifier\"
1071
+ * @param {Number} opts.versionNumber WorkItem version number (0 is the last version)\"
1072
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkItemModel}
924
1073
  */
1074
+ }, {
1075
+ key: "getWorkItemById",
1076
+ value: function getWorkItemById(id, opts) {
1077
+ return this.getWorkItemByIdWithHttpInfo(id, opts).then(function (response_and_data) {
1078
+ return response_and_data.data;
1079
+ });
1080
+ }
925
1081
 
926
1082
  /**
927
1083
  * Get WorkItem chronology by Id or GlobalId
928
1084
  * Use case User sets work item identifier User runs method execution System search work item by identifier System search test results of all autotests, related to found work item System sort results by CompletedOn ascending, then by CreatedDate ascending System returns sorted collection of test results
929
1085
  * @param {String} id Internal (UUID) or global (integer) identifier
930
- * @param {module:api/WorkItemsApi~getWorkItemChronologyCallback} callback The callback function, accepting three arguments: error, data, response
931
- * data is of type: {@link Array.<module:model/TestResultChronologyModel>}
1086
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/TestResultChronologyModel>} and HTTP response
932
1087
  */
933
1088
  }, {
934
- key: "getWorkItemChronology",
935
- value: function getWorkItemChronology(id, callback) {
1089
+ key: "getWorkItemChronologyWithHttpInfo",
1090
+ value: function getWorkItemChronologyWithHttpInfo(id) {
936
1091
  var postBody = null;
937
1092
  // verify the required parameter 'id' is set
938
1093
  if (id === undefined || id === null) {
@@ -948,16 +1103,22 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
948
1103
  var contentTypes = [];
949
1104
  var accepts = ['application/json'];
950
1105
  var returnType = [_TestResultChronologyModel["default"]];
951
- return this.apiClient.callApi('/api/v2/workItems/{id}/chronology', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1106
+ return this.apiClient.callApi('/api/v2/workItems/{id}/chronology', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
952
1107
  }
953
1108
 
954
1109
  /**
955
- * Callback function to receive the result of the getWorkItemVersions operation.
956
- * @callback module:api/WorkItemsApi~getWorkItemVersionsCallback
957
- * @param {String} error Error message, if any.
958
- * @param {Array.<module:model/WorkItemVersionModel>} data The data returned by the service call.
959
- * @param {String} response The complete HTTP response.
1110
+ * Get WorkItem chronology by Id or GlobalId
1111
+ * Use case User sets work item identifier User runs method execution System search work item by identifier System search test results of all autotests, related to found work item System sort results by CompletedOn ascending, then by CreatedDate ascending System returns sorted collection of test results
1112
+ * @param {String} id Internal (UUID) or global (integer) identifier
1113
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/TestResultChronologyModel>}
960
1114
  */
1115
+ }, {
1116
+ key: "getWorkItemChronology",
1117
+ value: function getWorkItemChronology(id) {
1118
+ return this.getWorkItemChronologyWithHttpInfo(id).then(function (response_and_data) {
1119
+ return response_and_data.data;
1120
+ });
1121
+ }
961
1122
 
962
1123
  /**
963
1124
  * Get WorkItem versions
@@ -966,12 +1127,11 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
966
1127
  * @param {Object} opts Optional parameters
967
1128
  * @param {String} [workItemVersionId] WorkItem version (guid format) identifier\"
968
1129
  * @param {Number} [versionNumber] WorkItem version (integer format) number\"
969
- * @param {module:api/WorkItemsApi~getWorkItemVersionsCallback} callback The callback function, accepting three arguments: error, data, response
970
- * data is of type: {@link Array.<module:model/WorkItemVersionModel>}
1130
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/WorkItemVersionModel>} and HTTP response
971
1131
  */
972
1132
  }, {
973
- key: "getWorkItemVersions",
974
- value: function getWorkItemVersions(id, opts, callback) {
1133
+ key: "getWorkItemVersionsWithHttpInfo",
1134
+ value: function getWorkItemVersionsWithHttpInfo(id, opts) {
975
1135
  opts = opts || {};
976
1136
  var postBody = null;
977
1137
  // verify the required parameter 'id' is set
@@ -991,25 +1151,34 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
991
1151
  var contentTypes = [];
992
1152
  var accepts = ['application/json'];
993
1153
  var returnType = [_WorkItemVersionModel["default"]];
994
- return this.apiClient.callApi('/api/v2/workItems/{id}/versions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1154
+ return this.apiClient.callApi('/api/v2/workItems/{id}/versions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
995
1155
  }
996
1156
 
997
1157
  /**
998
- * Callback function to receive the result of the purgeWorkItem operation.
999
- * @callback module:api/WorkItemsApi~purgeWorkItemCallback
1000
- * @param {String} error Error message, if any.
1001
- * @param data This operation does not return a value.
1002
- * @param {String} response The complete HTTP response.
1158
+ * Get WorkItem versions
1159
+ * Use case User sets work item identifier [Optional] User sets work item version identifier User runs method execution System search work item by identifier [Optional] If User set work item version identifier, System search work item version by version identifier Otherwise, system search all version of work item System returns array of work item version models (listed in response example)
1160
+ * @param {String} id WorkItem internal (guid format) or global(integer format) identifier\"
1161
+ * @param {Object} opts Optional parameters
1162
+ * @param {String} opts.workItemVersionId WorkItem version (guid format) identifier\"
1163
+ * @param {Number} opts.versionNumber WorkItem version (integer format) number\"
1164
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/WorkItemVersionModel>}
1003
1165
  */
1166
+ }, {
1167
+ key: "getWorkItemVersions",
1168
+ value: function getWorkItemVersions(id, opts) {
1169
+ return this.getWorkItemVersionsWithHttpInfo(id, opts).then(function (response_and_data) {
1170
+ return response_and_data.data;
1171
+ });
1172
+ }
1004
1173
 
1005
1174
  /**
1006
1175
  * Permanently delete test case, checklist or shared steps from archive
1007
1176
  * @param {String} id Unique or global ID of the work item
1008
- * @param {module:api/WorkItemsApi~purgeWorkItemCallback} callback The callback function, accepting three arguments: error, data, response
1177
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1009
1178
  */
1010
1179
  }, {
1011
- key: "purgeWorkItem",
1012
- value: function purgeWorkItem(id, callback) {
1180
+ key: "purgeWorkItemWithHttpInfo",
1181
+ value: function purgeWorkItemWithHttpInfo(id) {
1013
1182
  var postBody = null;
1014
1183
  // verify the required parameter 'id' is set
1015
1184
  if (id === undefined || id === null) {
@@ -1025,25 +1194,30 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
1025
1194
  var contentTypes = [];
1026
1195
  var accepts = ['application/json'];
1027
1196
  var returnType = null;
1028
- return this.apiClient.callApi('/api/v2/workItems/{id}/purge', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1197
+ return this.apiClient.callApi('/api/v2/workItems/{id}/purge', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1029
1198
  }
1030
1199
 
1031
1200
  /**
1032
- * Callback function to receive the result of the restoreWorkItem operation.
1033
- * @callback module:api/WorkItemsApi~restoreWorkItemCallback
1034
- * @param {String} error Error message, if any.
1035
- * @param data This operation does not return a value.
1036
- * @param {String} response The complete HTTP response.
1201
+ * Permanently delete test case, checklist or shared steps from archive
1202
+ * @param {String} id Unique or global ID of the work item
1203
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1037
1204
  */
1205
+ }, {
1206
+ key: "purgeWorkItem",
1207
+ value: function purgeWorkItem(id) {
1208
+ return this.purgeWorkItemWithHttpInfo(id).then(function (response_and_data) {
1209
+ return response_and_data.data;
1210
+ });
1211
+ }
1038
1212
 
1039
1213
  /**
1040
1214
  * Restore test case, checklist or shared steps from archive
1041
1215
  * @param {String} id Unique or global ID of the work item
1042
- * @param {module:api/WorkItemsApi~restoreWorkItemCallback} callback The callback function, accepting three arguments: error, data, response
1216
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1043
1217
  */
1044
1218
  }, {
1045
- key: "restoreWorkItem",
1046
- value: function restoreWorkItem(id, callback) {
1219
+ key: "restoreWorkItemWithHttpInfo",
1220
+ value: function restoreWorkItemWithHttpInfo(id) {
1047
1221
  var postBody = null;
1048
1222
  // verify the required parameter 'id' is set
1049
1223
  if (id === undefined || id === null) {
@@ -1059,27 +1233,32 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
1059
1233
  var contentTypes = [];
1060
1234
  var accepts = ['application/json'];
1061
1235
  var returnType = null;
1062
- return this.apiClient.callApi('/api/v2/workItems/{id}/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1236
+ return this.apiClient.callApi('/api/v2/workItems/{id}/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1063
1237
  }
1064
1238
 
1065
1239
  /**
1066
- * Callback function to receive the result of the updateWorkItem operation.
1067
- * @callback module:api/WorkItemsApi~updateWorkItemCallback
1068
- * @param {String} error Error message, if any.
1069
- * @param data This operation does not return a value.
1070
- * @param {String} response The complete HTTP response.
1240
+ * Restore test case, checklist or shared steps from archive
1241
+ * @param {String} id Unique or global ID of the work item
1242
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1071
1243
  */
1244
+ }, {
1245
+ key: "restoreWorkItem",
1246
+ value: function restoreWorkItem(id) {
1247
+ return this.restoreWorkItemWithHttpInfo(id).then(function (response_and_data) {
1248
+ return response_and_data.data;
1249
+ });
1250
+ }
1072
1251
 
1073
1252
  /**
1074
1253
  * Update Test Case, Checklist or Shared Step
1075
1254
  * Use case User sets work item properties (listed in request parameters) User runs method execution System updates work item by identifier System returns updated work item model (listed in response parameters)
1076
1255
  * @param {Object} opts Optional parameters
1077
1256
  * @param {module:model/UpdateWorkItemApiModel} [updateWorkItemApiModel]
1078
- * @param {module:api/WorkItemsApi~updateWorkItemCallback} callback The callback function, accepting three arguments: error, data, response
1257
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1079
1258
  */
1080
1259
  }, {
1081
- key: "updateWorkItem",
1082
- value: function updateWorkItem(opts, callback) {
1260
+ key: "updateWorkItemWithHttpInfo",
1261
+ value: function updateWorkItemWithHttpInfo(opts) {
1083
1262
  opts = opts || {};
1084
1263
  var postBody = opts['updateWorkItemApiModel'];
1085
1264
  var pathParams = {};
@@ -1090,7 +1269,22 @@ var WorkItemsApi = exports["default"] = /*#__PURE__*/function () {
1090
1269
  var contentTypes = ['application/json'];
1091
1270
  var accepts = ['application/json'];
1092
1271
  var returnType = null;
1093
- return this.apiClient.callApi('/api/v2/workItems', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1272
+ return this.apiClient.callApi('/api/v2/workItems', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1273
+ }
1274
+
1275
+ /**
1276
+ * Update Test Case, Checklist or Shared Step
1277
+ * Use case User sets work item properties (listed in request parameters) User runs method execution System updates work item by identifier System returns updated work item model (listed in response parameters)
1278
+ * @param {Object} opts Optional parameters
1279
+ * @param {module:model/UpdateWorkItemApiModel} opts.updateWorkItemApiModel
1280
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1281
+ */
1282
+ }, {
1283
+ key: "updateWorkItem",
1284
+ value: function updateWorkItem(opts) {
1285
+ return this.updateWorkItemWithHttpInfo(opts).then(function (response_and_data) {
1286
+ return response_and_data.data;
1287
+ });
1094
1288
  }
1095
1289
  }]);
1096
1290
  }();