testit-api-client 3.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (779) hide show
  1. package/LICENSE.md +201 -201
  2. package/README.MD +324 -298
  3. package/dist/api/apis.d.ts +50 -48
  4. package/dist/api/apis.js +68 -62
  5. package/dist/api/apis.js.map +1 -1
  6. package/dist/api/attachmentsApi.d.ts +62 -61
  7. package/dist/api/attachmentsApi.js +337 -337
  8. package/dist/api/autoTestsApi.d.ts +200 -191
  9. package/dist/api/autoTestsApi.js +1499 -1435
  10. package/dist/api/autoTestsApi.js.map +1 -1
  11. package/dist/api/backgroundJobsApi.d.ts +35 -0
  12. package/dist/api/backgroundJobsApi.js +147 -0
  13. package/dist/api/backgroundJobsApi.js.map +1 -0
  14. package/dist/api/configurationsApi.d.ts +80 -71
  15. package/dist/api/configurationsApi.js +456 -392
  16. package/dist/api/configurationsApi.js.map +1 -1
  17. package/dist/api/customAttributeTemplatesApi.d.ts +96 -96
  18. package/dist/api/customAttributeTemplatesApi.js +588 -588
  19. package/dist/api/customAttributesApi.d.ts +70 -70
  20. package/dist/api/customAttributesApi.js +400 -400
  21. package/dist/api/notificationsApi.d.ts +69 -69
  22. package/dist/api/notificationsApi.js +410 -410
  23. package/dist/api/parametersApi.d.ts +151 -142
  24. package/dist/api/parametersApi.js +1044 -968
  25. package/dist/api/parametersApi.js.map +1 -1
  26. package/dist/api/projectsApi.d.ts +506 -415
  27. package/dist/api/projectsApi.js +3976 -3255
  28. package/dist/api/projectsApi.js.map +1 -1
  29. package/dist/api/sectionsApi.d.ts +98 -88
  30. package/dist/api/sectionsApi.js +594 -530
  31. package/dist/api/sectionsApi.js.map +1 -1
  32. package/dist/api/tagsApi.d.ts +43 -43
  33. package/dist/api/tagsApi.js +206 -206
  34. package/dist/api/testPlansApi.d.ts +276 -249
  35. package/dist/api/testPlansApi.js +2020 -1822
  36. package/dist/api/testPlansApi.js.map +1 -1
  37. package/dist/api/testPointsApi.d.ts +62 -62
  38. package/dist/api/testPointsApi.js +351 -351
  39. package/dist/api/testResultsApi.d.ts +130 -130
  40. package/dist/api/testResultsApi.js +880 -880
  41. package/dist/api/testRunsApi.d.ts +159 -159
  42. package/dist/api/testRunsApi.js +1026 -1026
  43. package/dist/api/testSuitesApi.d.ts +148 -131
  44. package/dist/api/testSuitesApi.js +995 -868
  45. package/dist/api/testSuitesApi.js.map +1 -1
  46. package/dist/api/webhooksApi.d.ts +86 -86
  47. package/dist/api/webhooksApi.js +526 -526
  48. package/dist/api/webhooksLogsApi.d.ts +51 -51
  49. package/dist/api/webhooksLogsApi.js +276 -276
  50. package/dist/api/workItemsApi.d.ts +244 -219
  51. package/dist/api/workItemsApi.js +1782 -1588
  52. package/dist/api/workItemsApi.js.map +1 -1
  53. package/dist/api/workItemsCommentsApi.d.ts +61 -61
  54. package/dist/api/workItemsCommentsApi.js +319 -319
  55. package/dist/api.d.ts +2 -2
  56. package/dist/api.js +18 -14
  57. package/dist/api.js.map +1 -1
  58. package/dist/model/apiV2AttachmentsPostRequest.d.ts +15 -0
  59. package/dist/model/apiV2AttachmentsPostRequest.js +18 -0
  60. package/dist/model/apiV2AttachmentsPostRequest.js.map +1 -0
  61. package/dist/model/attachmentChangeViewModel.d.ts +17 -17
  62. package/dist/model/attachmentChangeViewModel.js +32 -32
  63. package/dist/model/attachmentChangeViewModel.js.map +1 -1
  64. package/dist/model/attachmentChangeViewModelArrayWorkItemChangedFieldViewModel.d.ts +16 -16
  65. package/dist/model/attachmentChangeViewModelArrayWorkItemChangedFieldViewModel.js +22 -22
  66. package/dist/model/attachmentChangeViewModelArrayWorkItemChangedFieldViewModel.js.map +1 -1
  67. package/dist/model/attachmentModel.d.ts +22 -22
  68. package/dist/model/attachmentModel.js +57 -57
  69. package/dist/model/attachmentModel.js.map +1 -1
  70. package/dist/model/attachmentModelAutoTestStepResultsModel.d.ts +27 -29
  71. package/dist/model/attachmentModelAutoTestStepResultsModel.js +62 -62
  72. package/dist/model/attachmentModelAutoTestStepResultsModel.js.map +1 -1
  73. package/dist/model/attachmentPutModel.d.ts +14 -14
  74. package/dist/model/attachmentPutModel.js +17 -17
  75. package/dist/model/attachmentPutModel.js.map +1 -1
  76. package/dist/model/attachmentPutModelAutoTestStepResultsModel.d.ts +27 -29
  77. package/dist/model/attachmentPutModelAutoTestStepResultsModel.js +62 -62
  78. package/dist/model/attachmentPutModelAutoTestStepResultsModel.js.map +1 -1
  79. package/dist/model/attachmentSubGetModel.d.ts +15 -15
  80. package/dist/model/attachmentSubGetModel.js +22 -22
  81. package/dist/model/attachmentSubGetModel.js.map +1 -1
  82. package/dist/model/autoTestAverageDurationModel.d.ts +15 -15
  83. package/dist/model/autoTestAverageDurationModel.js +22 -22
  84. package/dist/model/autoTestAverageDurationModel.js.map +1 -1
  85. package/dist/model/autoTestChangeViewModel.d.ts +17 -17
  86. package/dist/model/autoTestChangeViewModel.js +32 -32
  87. package/dist/model/autoTestChangeViewModel.js.map +1 -1
  88. package/dist/model/autoTestChangeViewModelArrayWorkItemChangedFieldViewModel.d.ts +16 -16
  89. package/dist/model/autoTestChangeViewModelArrayWorkItemChangedFieldViewModel.js +22 -22
  90. package/dist/model/autoTestChangeViewModelArrayWorkItemChangedFieldViewModel.js.map +1 -1
  91. package/dist/model/autoTestIdModel.d.ts +14 -14
  92. package/dist/model/autoTestIdModel.js +17 -17
  93. package/dist/model/autoTestIdModel.js.map +1 -1
  94. package/dist/model/autoTestModel.d.ts +42 -42
  95. package/dist/model/autoTestModel.js +142 -142
  96. package/dist/model/autoTestModel.js.map +1 -1
  97. package/dist/model/autoTestModelV2GetModel.d.ts +33 -33
  98. package/dist/model/autoTestModelV2GetModel.js +97 -97
  99. package/dist/model/autoTestModelV2GetModel.js.map +1 -1
  100. package/dist/model/autoTestNamespaceModel.d.ts +15 -15
  101. package/dist/model/autoTestNamespaceModel.js +22 -22
  102. package/dist/model/autoTestNamespaceModel.js.map +1 -1
  103. package/dist/model/autoTestPostModel.d.ts +31 -31
  104. package/dist/model/autoTestPostModel.js +87 -87
  105. package/dist/model/autoTestPostModel.js.map +1 -1
  106. package/dist/model/autoTestPutModel.d.ts +31 -31
  107. package/dist/model/autoTestPutModel.js +87 -87
  108. package/dist/model/autoTestPutModel.js.map +1 -1
  109. package/dist/model/autoTestResultsForTestRunModel.d.ts +38 -40
  110. package/dist/model/autoTestResultsForTestRunModel.js +92 -92
  111. package/dist/model/autoTestResultsForTestRunModel.js.map +1 -1
  112. package/dist/model/autoTestShortModel.d.ts +18 -18
  113. package/dist/model/autoTestShortModel.js +37 -37
  114. package/dist/model/autoTestShortModel.js.map +1 -1
  115. package/dist/model/autoTestStepModel.d.ts +16 -16
  116. package/dist/model/autoTestStepModel.js +27 -27
  117. package/dist/model/autoTestStepModel.js.map +1 -1
  118. package/dist/model/autotestFilterModel.d.ts +33 -35
  119. package/dist/model/autotestFilterModel.js +97 -97
  120. package/dist/model/autotestFilterModel.js.map +1 -1
  121. package/dist/model/autotestHistoricalResultSelectModel.d.ts +22 -22
  122. package/dist/model/autotestHistoricalResultSelectModel.js +47 -47
  123. package/dist/model/autotestHistoricalResultSelectModel.js.map +1 -1
  124. package/dist/model/autotestResultHistoricalGetModel.d.ts +28 -30
  125. package/dist/model/autotestResultHistoricalGetModel.js +82 -82
  126. package/dist/model/autotestResultHistoricalGetModel.js.map +1 -1
  127. package/dist/model/autotestResultOutcome.d.ts +7 -7
  128. package/dist/model/autotestResultOutcome.js +11 -11
  129. package/dist/model/autotestResultReasonSubGetModel.d.ts +16 -18
  130. package/dist/model/autotestResultReasonSubGetModel.js +22 -22
  131. package/dist/model/autotestResultReasonSubGetModel.js.map +1 -1
  132. package/dist/model/autotestSelectModel.d.ts +17 -17
  133. package/dist/model/autotestSelectModel.js +22 -22
  134. package/dist/model/autotestSelectModel.js.map +1 -1
  135. package/dist/model/autotestsExtractionModel.d.ts +15 -15
  136. package/dist/model/autotestsExtractionModel.js +17 -17
  137. package/dist/model/autotestsExtractionModel.js.map +1 -1
  138. package/dist/model/autotestsSelectModel.d.ts +17 -17
  139. package/dist/model/autotestsSelectModel.js +22 -22
  140. package/dist/model/autotestsSelectModel.js.map +1 -1
  141. package/dist/model/availableTestResultOutcome.d.ts +6 -6
  142. package/dist/model/availableTestResultOutcome.js +10 -10
  143. package/dist/model/backgroundJobAttachmentModel.d.ts +16 -0
  144. package/dist/model/backgroundJobAttachmentModel.js +28 -0
  145. package/dist/model/backgroundJobAttachmentModel.js.map +1 -0
  146. package/dist/model/backgroundJobModel.d.ts +26 -0
  147. package/dist/model/backgroundJobModel.js +63 -0
  148. package/dist/model/backgroundJobModel.js.map +1 -0
  149. package/dist/model/backgroundJobState.d.ts +6 -0
  150. package/dist/model/backgroundJobState.js +11 -0
  151. package/dist/model/backgroundJobState.js.map +1 -0
  152. package/dist/model/backgroundJobType.d.ts +13 -0
  153. package/dist/model/backgroundJobType.js +18 -0
  154. package/dist/model/backgroundJobType.js.map +1 -0
  155. package/dist/model/booleanNullableTestPlanChangedFieldViewModel.d.ts +15 -15
  156. package/dist/model/booleanNullableTestPlanChangedFieldViewModel.js +22 -22
  157. package/dist/model/booleanNullableTestPlanChangedFieldViewModel.js.map +1 -1
  158. package/dist/model/booleanTestPlanChangedFieldViewModel.d.ts +15 -15
  159. package/dist/model/booleanTestPlanChangedFieldViewModel.js +22 -22
  160. package/dist/model/booleanTestPlanChangedFieldViewModel.js.map +1 -1
  161. package/dist/model/booleanWorkItemChangedFieldViewModel.d.ts +15 -15
  162. package/dist/model/booleanWorkItemChangedFieldViewModel.js +22 -22
  163. package/dist/model/booleanWorkItemChangedFieldViewModel.js.map +1 -1
  164. package/dist/model/configurationByParametersModel.d.ts +15 -15
  165. package/dist/model/configurationByParametersModel.js +22 -22
  166. package/dist/model/configurationByParametersModel.js.map +1 -1
  167. package/dist/model/configurationModel.d.ts +31 -31
  168. package/dist/model/configurationModel.js +82 -82
  169. package/dist/model/configurationModel.js.map +1 -1
  170. package/dist/model/configurationPostModel.d.ts +24 -24
  171. package/dist/model/configurationPostModel.js +47 -47
  172. package/dist/model/configurationPostModel.js.map +1 -1
  173. package/dist/model/configurationPutModel.d.ts +25 -25
  174. package/dist/model/configurationPutModel.js +52 -52
  175. package/dist/model/configurationPutModel.js.map +1 -1
  176. package/dist/model/configurationSelectModel.d.ts +17 -17
  177. package/dist/model/configurationSelectModel.js +32 -32
  178. package/dist/model/configurationSelectModel.js.map +1 -1
  179. package/dist/model/customAttributeChangeModel.d.ts +18 -18
  180. package/dist/model/customAttributeChangeModel.js +37 -37
  181. package/dist/model/customAttributeChangeModel.js.map +1 -1
  182. package/dist/model/customAttributeGetModel.d.ts +23 -25
  183. package/dist/model/customAttributeGetModel.js +52 -52
  184. package/dist/model/customAttributeGetModel.js.map +1 -1
  185. package/dist/model/customAttributeModel.d.ts +23 -25
  186. package/dist/model/customAttributeModel.js +52 -52
  187. package/dist/model/customAttributeModel.js.map +1 -1
  188. package/dist/model/customAttributeOptionModel.d.ts +17 -17
  189. package/dist/model/customAttributeOptionModel.js +32 -32
  190. package/dist/model/customAttributeOptionModel.js.map +1 -1
  191. package/dist/model/customAttributeOptionPostModel.d.ts +15 -15
  192. package/dist/model/customAttributeOptionPostModel.js +22 -22
  193. package/dist/model/customAttributeOptionPostModel.js.map +1 -1
  194. package/dist/model/customAttributePostModel.d.ts +21 -23
  195. package/dist/model/customAttributePostModel.js +42 -42
  196. package/dist/model/customAttributePostModel.js.map +1 -1
  197. package/dist/model/customAttributePutModel.d.ts +23 -25
  198. package/dist/model/customAttributePutModel.js +52 -52
  199. package/dist/model/customAttributePutModel.js.map +1 -1
  200. package/dist/model/customAttributeSearchQueryModel.d.ts +20 -20
  201. package/dist/model/customAttributeSearchQueryModel.js +42 -42
  202. package/dist/model/customAttributeSearchQueryModel.js.map +1 -1
  203. package/dist/model/customAttributeTemplateModel.d.ts +16 -16
  204. package/dist/model/customAttributeTemplateModel.js +27 -27
  205. package/dist/model/customAttributeTemplateModel.js.map +1 -1
  206. package/dist/model/customAttributeTemplatePostModel.d.ts +15 -15
  207. package/dist/model/customAttributeTemplatePostModel.js +22 -22
  208. package/dist/model/customAttributeTemplatePostModel.js.map +1 -1
  209. package/dist/model/customAttributeTemplatePutModel.d.ts +16 -16
  210. package/dist/model/customAttributeTemplatePutModel.js +27 -27
  211. package/dist/model/customAttributeTemplatePutModel.js.map +1 -1
  212. package/dist/model/customAttributeTemplateSearchQueryModel.d.ts +18 -18
  213. package/dist/model/customAttributeTemplateSearchQueryModel.js +32 -32
  214. package/dist/model/customAttributeTemplateSearchQueryModel.js.map +1 -1
  215. package/dist/model/customAttributeTestPlanProjectRelationPutModel.d.ts +16 -16
  216. package/dist/model/customAttributeTestPlanProjectRelationPutModel.js +27 -27
  217. package/dist/model/customAttributeTestPlanProjectRelationPutModel.js.map +1 -1
  218. package/dist/model/customAttributeTypesEnum.d.ts +7 -7
  219. package/dist/model/customAttributeTypesEnum.js +11 -11
  220. package/dist/model/dateTimeRangeSelectorModel.d.ts +15 -15
  221. package/dist/model/dateTimeRangeSelectorModel.js +22 -22
  222. package/dist/model/dateTimeRangeSelectorModel.js.map +1 -1
  223. package/dist/model/deletionState.d.ts +5 -0
  224. package/dist/model/deletionState.js +10 -0
  225. package/dist/model/deletionState.js.map +1 -0
  226. package/dist/model/externalLinkModel.d.ts +21 -21
  227. package/dist/model/externalLinkModel.js +52 -52
  228. package/dist/model/externalLinkModel.js.map +1 -1
  229. package/dist/model/failureCategoryModel.d.ts +6 -6
  230. package/dist/model/failureCategoryModel.js +10 -10
  231. package/dist/model/failureClassModel.d.ts +24 -26
  232. package/dist/model/failureClassModel.js +57 -57
  233. package/dist/model/failureClassModel.js.map +1 -1
  234. package/dist/model/failureClassRegexModel.d.ts +17 -17
  235. package/dist/model/failureClassRegexModel.js +32 -32
  236. package/dist/model/failureClassRegexModel.js.map +1 -1
  237. package/dist/model/filterModel.d.ts +24 -24
  238. package/dist/model/filterModel.js +62 -62
  239. package/dist/model/filterModel.js.map +1 -1
  240. package/dist/model/flakyBulkModel.d.ts +16 -16
  241. package/dist/model/flakyBulkModel.js +22 -22
  242. package/dist/model/flakyBulkModel.js.map +1 -1
  243. package/dist/model/getXlsxTestPointsByTestPlanModel.d.ts +27 -27
  244. package/dist/model/getXlsxTestPointsByTestPlanModel.js +82 -82
  245. package/dist/model/getXlsxTestPointsByTestPlanModel.js.map +1 -1
  246. package/dist/model/globalCustomAttributePostModel.d.ts +20 -22
  247. package/dist/model/globalCustomAttributePostModel.js +37 -37
  248. package/dist/model/globalCustomAttributePostModel.js.map +1 -1
  249. package/dist/model/globalCustomAttributeUpdateModel.d.ts +18 -18
  250. package/dist/model/globalCustomAttributeUpdateModel.js +32 -32
  251. package/dist/model/globalCustomAttributeUpdateModel.js.map +1 -1
  252. package/dist/model/guidExtractionModel.d.ts +15 -15
  253. package/dist/model/guidExtractionModel.js +22 -22
  254. package/dist/model/guidExtractionModel.js.map +1 -1
  255. package/dist/model/guidWorkItemChangedFieldViewModel.d.ts +15 -15
  256. package/dist/model/guidWorkItemChangedFieldViewModel.js +22 -22
  257. package/dist/model/guidWorkItemChangedFieldViewModel.js.map +1 -1
  258. package/dist/model/imageResizeType.d.ts +4 -4
  259. package/dist/model/imageResizeType.js +8 -8
  260. package/dist/model/int32RangeSelectorModel.d.ts +15 -15
  261. package/dist/model/int32RangeSelectorModel.js +22 -22
  262. package/dist/model/int32RangeSelectorModel.js.map +1 -1
  263. package/dist/model/int32WorkItemChangedFieldViewModel.d.ts +15 -15
  264. package/dist/model/int32WorkItemChangedFieldViewModel.js +22 -22
  265. package/dist/model/int32WorkItemChangedFieldViewModel.js.map +1 -1
  266. package/dist/model/int64RangeSelectorModel.d.ts +15 -15
  267. package/dist/model/int64RangeSelectorModel.js +22 -22
  268. package/dist/model/int64RangeSelectorModel.js.map +1 -1
  269. package/dist/model/int64WorkItemChangedFieldViewModel.d.ts +15 -15
  270. package/dist/model/int64WorkItemChangedFieldViewModel.js +22 -22
  271. package/dist/model/int64WorkItemChangedFieldViewModel.js.map +1 -1
  272. package/dist/model/iterationModel.d.ts +16 -16
  273. package/dist/model/iterationModel.js +22 -22
  274. package/dist/model/iterationModel.js.map +1 -1
  275. package/dist/model/iterationPutModel.d.ts +16 -16
  276. package/dist/model/iterationPutModel.js +22 -22
  277. package/dist/model/iterationPutModel.js.map +1 -1
  278. package/dist/model/labelPostModel.d.ts +14 -14
  279. package/dist/model/labelPostModel.js +17 -17
  280. package/dist/model/labelPostModel.js.map +1 -1
  281. package/dist/model/labelShortModel.d.ts +15 -15
  282. package/dist/model/labelShortModel.js +22 -22
  283. package/dist/model/labelShortModel.js.map +1 -1
  284. package/dist/model/lastTestResultModel.d.ts +22 -22
  285. package/dist/model/lastTestResultModel.js +47 -47
  286. package/dist/model/lastTestResultModel.js.map +1 -1
  287. package/dist/model/linkModel.d.ts +20 -22
  288. package/dist/model/linkModel.js +42 -42
  289. package/dist/model/linkModel.js.map +1 -1
  290. package/dist/model/linkPostModel.d.ts +19 -21
  291. package/dist/model/linkPostModel.js +37 -37
  292. package/dist/model/linkPostModel.js.map +1 -1
  293. package/dist/model/linkPutModel.d.ts +20 -22
  294. package/dist/model/linkPutModel.js +42 -42
  295. package/dist/model/linkPutModel.js.map +1 -1
  296. package/dist/model/linkSubGetModel.d.ts +15 -15
  297. package/dist/model/linkSubGetModel.js +22 -22
  298. package/dist/model/linkSubGetModel.js.map +1 -1
  299. package/dist/model/linkType.d.ts +8 -8
  300. package/dist/model/linkType.js +12 -12
  301. package/dist/model/models.d.ts +290 -279
  302. package/dist/model/models.js +947 -913
  303. package/dist/model/models.js.map +1 -1
  304. package/dist/model/noContentResult.d.ts +14 -14
  305. package/dist/model/noContentResult.js +17 -17
  306. package/dist/model/noContentResult.js.map +1 -1
  307. package/dist/model/notificationModel.d.ts +28 -30
  308. package/dist/model/notificationModel.js +82 -82
  309. package/dist/model/notificationModel.js.map +1 -1
  310. package/dist/model/notificationQueryFilterModel.d.ts +18 -18
  311. package/dist/model/notificationQueryFilterModel.js +27 -27
  312. package/dist/model/notificationQueryFilterModel.js.map +1 -1
  313. package/dist/model/notificationTypeModel.d.ts +6 -6
  314. package/dist/model/notificationTypeModel.js +10 -10
  315. package/dist/model/operation.d.ts +17 -0
  316. package/dist/model/operation.js +33 -0
  317. package/dist/model/operation.js.map +1 -0
  318. package/dist/model/{dateRangeModel.d.ts → parameterFilterModel.d.ts} +15 -15
  319. package/dist/model/parameterFilterModel.js +23 -0
  320. package/dist/model/parameterFilterModel.js.map +1 -0
  321. package/dist/model/parameterGroupModel.d.ts +18 -18
  322. package/dist/model/parameterGroupModel.js +27 -27
  323. package/dist/model/parameterGroupModel.js.map +1 -1
  324. package/dist/model/parameterIterationModel.d.ts +14 -14
  325. package/dist/model/parameterIterationModel.js +17 -17
  326. package/dist/model/parameterIterationModel.js.map +1 -1
  327. package/dist/model/parameterModel.d.ts +22 -22
  328. package/dist/model/parameterModel.js +57 -57
  329. package/dist/model/parameterModel.js.map +1 -1
  330. package/dist/model/parameterPostModel.d.ts +15 -15
  331. package/dist/model/parameterPostModel.js +22 -22
  332. package/dist/model/parameterPostModel.js.map +1 -1
  333. package/dist/model/parameterPutModel.d.ts +16 -16
  334. package/dist/model/parameterPutModel.js +27 -27
  335. package/dist/model/parameterPutModel.js.map +1 -1
  336. package/dist/model/parameterShortModel.d.ts +17 -17
  337. package/dist/model/parameterShortModel.js +32 -32
  338. package/dist/model/parameterShortModel.js.map +1 -1
  339. package/dist/model/periodViewModel.d.ts +15 -15
  340. package/dist/model/periodViewModel.js +22 -22
  341. package/dist/model/periodViewModel.js.map +1 -1
  342. package/dist/model/periodViewModelTestPlanChangedFieldViewModel.d.ts +16 -16
  343. package/dist/model/periodViewModelTestPlanChangedFieldViewModel.js +22 -22
  344. package/dist/model/periodViewModelTestPlanChangedFieldViewModel.js.map +1 -1
  345. package/dist/model/problemDetails.d.ts +14 -14
  346. package/dist/model/problemDetails.js +37 -37
  347. package/dist/model/problemDetails.js.map +1 -1
  348. package/dist/model/projectAttributesFilterModel.d.ts +19 -19
  349. package/dist/model/projectAttributesFilterModel.js +37 -37
  350. package/dist/model/projectAttributesFilterModel.js.map +1 -1
  351. package/dist/model/projectCustomAttributeTemplateGetModel.d.ts +18 -18
  352. package/dist/model/projectCustomAttributeTemplateGetModel.js +32 -32
  353. package/dist/model/projectCustomAttributeTemplateGetModel.js.map +1 -1
  354. package/dist/model/projectCustomAttributesTemplatesFilterModel.d.ts +16 -16
  355. package/dist/model/projectCustomAttributesTemplatesFilterModel.js +22 -22
  356. package/dist/model/projectCustomAttributesTemplatesFilterModel.js.map +1 -1
  357. package/dist/model/projectExportQueryModel.d.ts +15 -15
  358. package/dist/model/projectExportQueryModel.js +22 -22
  359. package/dist/model/projectExportQueryModel.js.map +1 -1
  360. package/dist/model/projectExportWithTestPlansPostModel.d.ts +14 -14
  361. package/dist/model/projectExportWithTestPlansPostModel.js +17 -17
  362. package/dist/model/projectExportWithTestPlansPostModel.js.map +1 -1
  363. package/dist/model/projectModel.d.ts +30 -30
  364. package/dist/model/projectModel.js +92 -92
  365. package/dist/model/projectModel.js.map +1 -1
  366. package/dist/model/projectPostModel.d.ts +16 -15
  367. package/dist/model/projectPostModel.js +27 -22
  368. package/dist/model/projectPostModel.js.map +1 -1
  369. package/dist/model/projectPutModel.d.ts +17 -16
  370. package/dist/model/projectPutModel.js +32 -27
  371. package/dist/model/projectPutModel.js.map +1 -1
  372. package/dist/model/projectShortestModel.d.ts +17 -17
  373. package/dist/model/projectShortestModel.js +32 -32
  374. package/dist/model/projectShortestModel.js.map +1 -1
  375. package/dist/model/{testPlanSearchQueryModel.d.ts → projectTestPlansFilterModel.d.ts} +33 -33
  376. package/dist/model/{testPlanSearchQueryModel.js → projectTestPlansFilterModel.js} +93 -93
  377. package/dist/model/projectTestPlansFilterModel.js.map +1 -0
  378. package/dist/model/projectsFilterModel.d.ts +25 -25
  379. package/dist/model/projectsFilterModel.js +62 -62
  380. package/dist/model/projectsFilterModel.js.map +1 -1
  381. package/dist/model/publicTestPointModel.d.ts +19 -19
  382. package/dist/model/publicTestPointModel.js +37 -37
  383. package/dist/model/publicTestPointModel.js.map +1 -1
  384. package/dist/model/publicTestRunModel.d.ts +26 -26
  385. package/dist/model/publicTestRunModel.js +62 -62
  386. package/dist/model/publicTestRunModel.js.map +1 -1
  387. package/dist/model/requestTypeModel.d.ts +5 -5
  388. package/dist/model/requestTypeModel.js +9 -9
  389. package/dist/model/searchAutoTestsQueryIncludesModel.d.ts +16 -16
  390. package/dist/model/searchAutoTestsQueryIncludesModel.js +27 -27
  391. package/dist/model/searchAutoTestsQueryIncludesModel.js.map +1 -1
  392. package/dist/model/searchCustomAttributeTemplateGetModel.d.ts +20 -20
  393. package/dist/model/searchCustomAttributeTemplateGetModel.js +37 -37
  394. package/dist/model/searchCustomAttributeTemplateGetModel.js.map +1 -1
  395. package/dist/model/searchWebhooksQueryModel.d.ts +20 -20
  396. package/dist/model/searchWebhooksQueryModel.js +37 -37
  397. package/dist/model/searchWebhooksQueryModel.js.map +1 -1
  398. package/dist/model/sectionModel.d.ts +22 -22
  399. package/dist/model/sectionModel.js +57 -57
  400. package/dist/model/sectionModel.js.map +1 -1
  401. package/dist/model/sectionMoveModel.d.ts +17 -17
  402. package/dist/model/sectionMoveModel.js +32 -32
  403. package/dist/model/sectionMoveModel.js.map +1 -1
  404. package/dist/model/sectionPostModel.d.ts +19 -19
  405. package/dist/model/sectionPostModel.js +37 -37
  406. package/dist/model/sectionPostModel.js.map +1 -1
  407. package/dist/model/sectionPutModel.d.ts +20 -20
  408. package/dist/model/sectionPutModel.js +42 -42
  409. package/dist/model/sectionPutModel.js.map +1 -1
  410. package/dist/model/sectionRenameModel.d.ts +15 -15
  411. package/dist/model/sectionRenameModel.js +22 -22
  412. package/dist/model/sectionRenameModel.js.map +1 -1
  413. package/dist/model/sectionWithStepsModel.d.ts +25 -25
  414. package/dist/model/sectionWithStepsModel.js +67 -67
  415. package/dist/model/sectionWithStepsModel.js.map +1 -1
  416. package/dist/model/sharedStepChangeViewModel.d.ts +18 -18
  417. package/dist/model/sharedStepChangeViewModel.js +32 -32
  418. package/dist/model/sharedStepChangeViewModel.js.map +1 -1
  419. package/dist/model/sharedStepModel.d.ts +19 -19
  420. package/dist/model/sharedStepModel.js +37 -37
  421. package/dist/model/sharedStepModel.js.map +1 -1
  422. package/dist/model/sharedStepReferenceModel.d.ts +33 -35
  423. package/dist/model/sharedStepReferenceModel.js +102 -102
  424. package/dist/model/sharedStepReferenceModel.js.map +1 -1
  425. package/dist/model/sharedStepReferenceSectionModel.d.ts +22 -22
  426. package/dist/model/sharedStepReferenceSectionModel.js +57 -57
  427. package/dist/model/sharedStepReferenceSectionModel.js.map +1 -1
  428. package/dist/model/sharedStepReferenceSectionsQueryFilterModel.d.ts +19 -19
  429. package/dist/model/sharedStepReferenceSectionsQueryFilterModel.js +37 -37
  430. package/dist/model/sharedStepReferenceSectionsQueryFilterModel.js.map +1 -1
  431. package/dist/model/sharedStepReferencesQueryFilterModel.d.ts +28 -28
  432. package/dist/model/sharedStepReferencesQueryFilterModel.js +72 -72
  433. package/dist/model/sharedStepReferencesQueryFilterModel.js.map +1 -1
  434. package/dist/model/sharedStepResultModel.d.ts +15 -15
  435. package/dist/model/sharedStepResultModel.js +22 -22
  436. package/dist/model/sharedStepResultModel.js.map +1 -1
  437. package/dist/model/shortConfiguration.d.ts +15 -15
  438. package/dist/model/shortConfiguration.js +22 -22
  439. package/dist/model/shortConfiguration.js.map +1 -1
  440. package/dist/model/stepCommentModel.d.ts +24 -24
  441. package/dist/model/stepCommentModel.js +62 -62
  442. package/dist/model/stepCommentModel.js.map +1 -1
  443. package/dist/model/stepModel.d.ts +21 -21
  444. package/dist/model/stepModel.js +47 -47
  445. package/dist/model/stepModel.js.map +1 -1
  446. package/dist/model/stepPutModel.d.ts +19 -19
  447. package/dist/model/stepPutModel.js +42 -42
  448. package/dist/model/stepPutModel.js.map +1 -1
  449. package/dist/model/stepResultModel.d.ts +20 -18
  450. package/dist/model/stepResultModel.js +37 -32
  451. package/dist/model/stepResultModel.js.map +1 -1
  452. package/dist/model/stringArrayTestPlanChangedFieldViewModel.d.ts +15 -15
  453. package/dist/model/stringArrayTestPlanChangedFieldViewModel.js +22 -22
  454. package/dist/model/stringArrayTestPlanChangedFieldViewModel.js.map +1 -1
  455. package/dist/model/stringArrayWorkItemChangedFieldViewModel.d.ts +15 -15
  456. package/dist/model/stringArrayWorkItemChangedFieldViewModel.js +22 -22
  457. package/dist/model/stringArrayWorkItemChangedFieldViewModel.js.map +1 -1
  458. package/dist/model/stringTestPlanChangedFieldViewModel.d.ts +15 -15
  459. package/dist/model/stringTestPlanChangedFieldViewModel.js +22 -22
  460. package/dist/model/stringTestPlanChangedFieldViewModel.js.map +1 -1
  461. package/dist/model/stringWorkItemChangedFieldViewModel.d.ts +15 -15
  462. package/dist/model/stringWorkItemChangedFieldViewModel.js +22 -22
  463. package/dist/model/stringWorkItemChangedFieldViewModel.js.map +1 -1
  464. package/dist/model/tagShortModel.d.ts +14 -14
  465. package/dist/model/tagShortModel.js +17 -17
  466. package/dist/model/tagShortModel.js.map +1 -1
  467. package/dist/model/testPlanChangeModel.d.ts +19 -19
  468. package/dist/model/testPlanChangeModel.js +37 -37
  469. package/dist/model/testPlanChangeModel.js.map +1 -1
  470. package/dist/model/testPlanChangedFieldsViewModel.d.ts +37 -37
  471. package/dist/model/testPlanChangedFieldsViewModel.js +77 -77
  472. package/dist/model/testPlanChangedFieldsViewModel.js.map +1 -1
  473. package/dist/model/testPlanGroupByStatus.d.ts +15 -15
  474. package/dist/model/testPlanGroupByStatus.js +22 -22
  475. package/dist/model/testPlanGroupByStatus.js.map +1 -1
  476. package/dist/model/testPlanGroupByTestSuite.d.ts +16 -16
  477. package/dist/model/testPlanGroupByTestSuite.js +27 -27
  478. package/dist/model/testPlanGroupByTestSuite.js.map +1 -1
  479. package/dist/model/testPlanGroupByTester.d.ts +15 -15
  480. package/dist/model/testPlanGroupByTester.js +22 -22
  481. package/dist/model/testPlanGroupByTester.js.map +1 -1
  482. package/dist/model/testPlanGroupByTesterAndStatus.d.ts +16 -16
  483. package/dist/model/testPlanGroupByTesterAndStatus.js +27 -27
  484. package/dist/model/testPlanGroupByTesterAndStatus.js.map +1 -1
  485. package/dist/model/testPlanLink.d.ts +22 -22
  486. package/dist/model/testPlanLink.js +47 -47
  487. package/dist/model/testPlanLink.js.map +1 -1
  488. package/dist/model/testPlanModel.d.ts +39 -41
  489. package/dist/model/testPlanModel.js +122 -122
  490. package/dist/model/testPlanModel.js.map +1 -1
  491. package/dist/model/testPlanPostModel.d.ts +26 -26
  492. package/dist/model/testPlanPostModel.js +62 -62
  493. package/dist/model/testPlanPostModel.js.map +1 -1
  494. package/dist/model/testPlanPutModel.d.ts +28 -28
  495. package/dist/model/testPlanPutModel.js +72 -72
  496. package/dist/model/testPlanPutModel.js.map +1 -1
  497. package/dist/model/testPlanShortModel.d.ts +16 -16
  498. package/dist/model/testPlanShortModel.js +27 -27
  499. package/dist/model/testPlanShortModel.js.map +1 -1
  500. package/dist/model/testPlanStatusModel.d.ts +6 -6
  501. package/dist/model/testPlanStatusModel.js +10 -10
  502. package/dist/model/testPlanWithAnalyticModel.d.ts +41 -43
  503. package/dist/model/testPlanWithAnalyticModel.js +127 -127
  504. package/dist/model/testPlanWithAnalyticModel.js.map +1 -1
  505. package/dist/model/testPlanWithTestSuiteTreeModel.d.ts +41 -43
  506. package/dist/model/testPlanWithTestSuiteTreeModel.js +127 -127
  507. package/dist/model/testPlanWithTestSuiteTreeModel.js.map +1 -1
  508. package/dist/model/testPointAnalyticResult.d.ts +22 -22
  509. package/dist/model/testPointAnalyticResult.js +37 -37
  510. package/dist/model/testPointAnalyticResult.js.map +1 -1
  511. package/dist/model/testPointByTestSuiteModel.d.ts +20 -20
  512. package/dist/model/testPointByTestSuiteModel.js +47 -47
  513. package/dist/model/testPointByTestSuiteModel.js.map +1 -1
  514. package/dist/model/testPointChangeViewModel.d.ts +16 -16
  515. package/dist/model/testPointChangeViewModel.js +27 -27
  516. package/dist/model/testPointChangeViewModel.js.map +1 -1
  517. package/dist/model/testPointChangeViewModelTestPlanChangedFieldViewModel.d.ts +16 -16
  518. package/dist/model/testPointChangeViewModelTestPlanChangedFieldViewModel.js +22 -22
  519. package/dist/model/testPointChangeViewModelTestPlanChangedFieldViewModel.js.map +1 -1
  520. package/dist/model/testPointFilterModel.d.ts +36 -35
  521. package/dist/model/testPointFilterModel.js +97 -92
  522. package/dist/model/testPointFilterModel.js.map +1 -1
  523. package/dist/model/testPointPutModel.d.ts +22 -22
  524. package/dist/model/testPointPutModel.js +57 -57
  525. package/dist/model/testPointPutModel.js.map +1 -1
  526. package/dist/model/testPointResultModel.d.ts +22 -22
  527. package/dist/model/testPointResultModel.js +47 -47
  528. package/dist/model/testPointResultModel.js.map +1 -1
  529. package/dist/model/testPointSelectModel.d.ts +17 -0
  530. package/dist/model/testPointSelectModel.js +23 -0
  531. package/dist/model/testPointSelectModel.js.map +1 -0
  532. package/dist/model/testPointSelector.d.ts +15 -15
  533. package/dist/model/testPointSelector.js +22 -22
  534. package/dist/model/testPointSelector.js.map +1 -1
  535. package/dist/model/testPointShortGetModel.d.ts +45 -45
  536. package/dist/model/testPointShortGetModel.js +137 -127
  537. package/dist/model/testPointShortGetModel.js.map +1 -1
  538. package/dist/model/testPointShortModel.d.ts +21 -21
  539. package/dist/model/testPointShortModel.js +52 -52
  540. package/dist/model/testPointShortModel.js.map +1 -1
  541. package/dist/model/testPointStatus.d.ts +8 -8
  542. package/dist/model/testPointStatus.js +12 -12
  543. package/dist/model/testPointWithLastResultModel.d.ts +42 -44
  544. package/dist/model/testPointWithLastResultModel.js +132 -132
  545. package/dist/model/testPointWithLastResultModel.js.map +1 -1
  546. package/dist/model/testPointsExtractionModel.d.ts +15 -0
  547. package/dist/model/testPointsExtractionModel.js +18 -0
  548. package/dist/model/testPointsExtractionModel.js.map +1 -0
  549. package/dist/model/testResultChangeViewModel.d.ts +14 -14
  550. package/dist/model/testResultChangeViewModel.js +17 -17
  551. package/dist/model/testResultChangeViewModel.js.map +1 -1
  552. package/dist/model/testResultChangeViewModelTestPlanChangedFieldViewModel.d.ts +16 -16
  553. package/dist/model/testResultChangeViewModelTestPlanChangedFieldViewModel.js +22 -22
  554. package/dist/model/testResultChangeViewModelTestPlanChangedFieldViewModel.js.map +1 -1
  555. package/dist/model/testResultChronologyModel.d.ts +15 -15
  556. package/dist/model/testResultChronologyModel.js +22 -22
  557. package/dist/model/testResultChronologyModel.js.map +1 -1
  558. package/dist/model/testResultHistoryReportModel.d.ts +43 -43
  559. package/dist/model/testResultHistoryReportModel.js +142 -142
  560. package/dist/model/testResultHistoryReportModel.js.map +1 -1
  561. package/dist/model/testResultModel.d.ts +57 -57
  562. package/dist/model/testResultModel.js +177 -177
  563. package/dist/model/testResultModel.js.map +1 -1
  564. package/dist/model/testResultOutcome.d.ts +7 -7
  565. package/dist/model/testResultOutcome.js +11 -11
  566. package/dist/model/testResultShortGetModel.d.ts +30 -32
  567. package/dist/model/testResultShortGetModel.js +77 -77
  568. package/dist/model/testResultShortGetModel.js.map +1 -1
  569. package/dist/model/testResultShortModel.d.ts +25 -25
  570. package/dist/model/testResultShortModel.js +57 -57
  571. package/dist/model/testResultShortModel.js.map +1 -1
  572. package/dist/model/testResultStepCommentPutModel.d.ts +19 -19
  573. package/dist/model/testResultStepCommentPutModel.js +37 -37
  574. package/dist/model/testResultStepCommentPutModel.js.map +1 -1
  575. package/dist/model/testResultUpdateModel.d.ts +28 -28
  576. package/dist/model/testResultUpdateModel.js +62 -62
  577. package/dist/model/testResultUpdateModel.js.map +1 -1
  578. package/dist/model/testResultV2GetModel.d.ts +43 -43
  579. package/dist/model/testResultV2GetModel.js +117 -117
  580. package/dist/model/testResultV2GetModel.js.map +1 -1
  581. package/dist/model/testResultV2ShortModel.d.ts +39 -39
  582. package/dist/model/testResultV2ShortModel.js +107 -107
  583. package/dist/model/testResultV2ShortModel.js.map +1 -1
  584. package/dist/model/testResultsFilterModel.d.ts +21 -21
  585. package/dist/model/testResultsFilterModel.js +42 -42
  586. package/dist/model/testResultsFilterModel.js.map +1 -1
  587. package/dist/model/testResultsLocalFilterModel.d.ts +20 -20
  588. package/dist/model/testResultsLocalFilterModel.js +37 -37
  589. package/dist/model/testResultsLocalFilterModel.js.map +1 -1
  590. package/dist/model/testResultsStatisticsGetModel.d.ts +17 -17
  591. package/dist/model/testResultsStatisticsGetModel.js +22 -22
  592. package/dist/model/testResultsStatisticsGetModel.js.map +1 -1
  593. package/dist/model/testRunAnalyticResultModel.d.ts +17 -17
  594. package/dist/model/testRunAnalyticResultModel.js +22 -22
  595. package/dist/model/testRunAnalyticResultModel.js.map +1 -1
  596. package/dist/model/testRunFillByAutoTestsPostModel.d.ts +19 -19
  597. package/dist/model/testRunFillByAutoTestsPostModel.js +42 -42
  598. package/dist/model/testRunFillByAutoTestsPostModel.js.map +1 -1
  599. package/dist/model/testRunFillByConfigurationsPostModel.d.ts +20 -20
  600. package/dist/model/testRunFillByConfigurationsPostModel.js +42 -42
  601. package/dist/model/testRunFillByConfigurationsPostModel.js.map +1 -1
  602. package/dist/model/testRunFillByWorkItemsPostModel.d.ts +20 -20
  603. package/dist/model/testRunFillByWorkItemsPostModel.js +47 -47
  604. package/dist/model/testRunFillByWorkItemsPostModel.js.map +1 -1
  605. package/dist/model/testRunFilterModel.d.ts +20 -20
  606. package/dist/model/testRunFilterModel.js +37 -37
  607. package/dist/model/testRunFilterModel.js.map +1 -1
  608. package/dist/model/testRunGroupByFailureClassModel.d.ts +15 -15
  609. package/dist/model/testRunGroupByFailureClassModel.js +22 -22
  610. package/dist/model/testRunGroupByFailureClassModel.js.map +1 -1
  611. package/dist/model/testRunGroupByStatusModel.d.ts +15 -15
  612. package/dist/model/testRunGroupByStatusModel.js +22 -22
  613. package/dist/model/testRunGroupByStatusModel.js.map +1 -1
  614. package/dist/model/testRunModel.d.ts +43 -45
  615. package/dist/model/testRunModel.js +137 -137
  616. package/dist/model/testRunModel.js.map +1 -1
  617. package/dist/model/testRunSearchQueryModel.d.ts +21 -21
  618. package/dist/model/testRunSearchQueryModel.js +42 -42
  619. package/dist/model/testRunSearchQueryModel.js.map +1 -1
  620. package/dist/model/testRunShortGetModel.d.ts +27 -29
  621. package/dist/model/testRunShortGetModel.js +72 -72
  622. package/dist/model/testRunShortGetModel.js.map +1 -1
  623. package/dist/model/testRunShortModel.d.ts +21 -23
  624. package/dist/model/testRunShortModel.js +47 -47
  625. package/dist/model/testRunShortModel.js.map +1 -1
  626. package/dist/model/testRunState.d.ts +6 -6
  627. package/dist/model/testRunState.js +10 -10
  628. package/dist/model/testRunStatisticsErrorCategoriesGetModel.d.ts +18 -18
  629. package/dist/model/testRunStatisticsErrorCategoriesGetModel.js +37 -37
  630. package/dist/model/testRunStatisticsErrorCategoriesGetModel.js.map +1 -1
  631. package/dist/model/testRunStatisticsStatusesGetModel.d.ts +18 -18
  632. package/dist/model/testRunStatisticsStatusesGetModel.js +37 -37
  633. package/dist/model/testRunStatisticsStatusesGetModel.js.map +1 -1
  634. package/dist/model/testRunTestResultsPartialBulkSetModel.d.ts +20 -20
  635. package/dist/model/testRunTestResultsPartialBulkSetModel.js +37 -37
  636. package/dist/model/testRunTestResultsPartialBulkSetModel.js.map +1 -1
  637. package/dist/model/testRunTestResultsSelectModel.d.ts +17 -17
  638. package/dist/model/testRunTestResultsSelectModel.js +22 -22
  639. package/dist/model/testRunTestResultsSelectModel.js.map +1 -1
  640. package/dist/model/testRunV2GetModel.d.ts +30 -32
  641. package/dist/model/testRunV2GetModel.js +87 -87
  642. package/dist/model/testRunV2GetModel.js.map +1 -1
  643. package/dist/model/testRunV2PostShortModel.d.ts +17 -17
  644. package/dist/model/testRunV2PostShortModel.js +32 -32
  645. package/dist/model/testRunV2PostShortModel.js.map +1 -1
  646. package/dist/model/testRunV2PutModel.d.ts +17 -17
  647. package/dist/model/testRunV2PutModel.js +32 -32
  648. package/dist/model/testRunV2PutModel.js.map +1 -1
  649. package/dist/model/testSuiteChangeViewModel.d.ts +18 -18
  650. package/dist/model/testSuiteChangeViewModel.js +32 -32
  651. package/dist/model/testSuiteChangeViewModel.js.map +1 -1
  652. package/dist/model/testSuiteChangeViewModelTestPlanChangedFieldViewModel.d.ts +16 -16
  653. package/dist/model/testSuiteChangeViewModelTestPlanChangedFieldViewModel.js +22 -22
  654. package/dist/model/testSuiteChangeViewModelTestPlanChangedFieldViewModel.js.map +1 -1
  655. package/dist/model/testSuiteType.d.ts +4 -0
  656. package/dist/model/testSuiteType.js +9 -0
  657. package/dist/model/testSuiteType.js.map +1 -0
  658. package/dist/model/testSuiteV2GetModel.d.ts +20 -17
  659. package/dist/model/testSuiteV2GetModel.js +42 -32
  660. package/dist/model/testSuiteV2GetModel.js.map +1 -1
  661. package/dist/model/testSuiteV2PostModel.d.ts +19 -16
  662. package/dist/model/testSuiteV2PostModel.js +37 -27
  663. package/dist/model/testSuiteV2PostModel.js.map +1 -1
  664. package/dist/model/testSuiteV2PutModel.d.ts +17 -16
  665. package/dist/model/testSuiteV2PutModel.js +32 -27
  666. package/dist/model/testSuiteV2PutModel.js.map +1 -1
  667. package/dist/model/testSuiteV2TreeModel.d.ts +21 -18
  668. package/dist/model/testSuiteV2TreeModel.js +47 -37
  669. package/dist/model/testSuiteV2TreeModel.js.map +1 -1
  670. package/dist/model/testSuiteWithChildrenModel.d.ts +20 -20
  671. package/dist/model/testSuiteWithChildrenModel.js +47 -47
  672. package/dist/model/testSuiteWithChildrenModel.js.map +1 -1
  673. package/dist/model/testSuiteWorkItemsSearchModel.d.ts +34 -34
  674. package/dist/model/testSuiteWorkItemsSearchModel.js +87 -87
  675. package/dist/model/testSuiteWorkItemsSearchModel.js.map +1 -1
  676. package/dist/model/userRankModel.d.ts +19 -19
  677. package/dist/model/userRankModel.js +42 -42
  678. package/dist/model/userRankModel.js.map +1 -1
  679. package/dist/model/userWithRankModel.d.ts +28 -28
  680. package/dist/model/userWithRankModel.js +82 -82
  681. package/dist/model/userWithRankModel.js.map +1 -1
  682. package/dist/model/validateAntiForgeryTokenAttribute.d.ts +16 -16
  683. package/dist/model/validateAntiForgeryTokenAttribute.js +27 -27
  684. package/dist/model/validateAntiForgeryTokenAttribute.js.map +1 -1
  685. package/dist/model/validationProblemDetails.d.ts +17 -17
  686. package/dist/model/validationProblemDetails.js +42 -42
  687. package/dist/model/validationProblemDetails.js.map +1 -1
  688. package/dist/model/webHookEventType.d.ts +4 -4
  689. package/dist/model/webHookEventType.js +8 -8
  690. package/dist/model/webHookEventTypeModel.d.ts +4 -4
  691. package/dist/model/webHookEventTypeModel.js +8 -8
  692. package/dist/model/webHookLogModel.d.ts +32 -34
  693. package/dist/model/webHookLogModel.js +97 -97
  694. package/dist/model/webHookLogModel.js.map +1 -1
  695. package/dist/model/webHookModel.d.ts +40 -42
  696. package/dist/model/webHookModel.js +117 -117
  697. package/dist/model/webHookModel.js.map +1 -1
  698. package/dist/model/webHookPostModel.d.ts +33 -35
  699. package/dist/model/webHookPostModel.js +82 -82
  700. package/dist/model/webHookPostModel.js.map +1 -1
  701. package/dist/model/workItemChangeModel.d.ts +21 -21
  702. package/dist/model/workItemChangeModel.js +47 -47
  703. package/dist/model/workItemChangeModel.js.map +1 -1
  704. package/dist/model/workItemChangedAttributeViewModel.d.ts +18 -18
  705. package/dist/model/workItemChangedAttributeViewModel.js +37 -37
  706. package/dist/model/workItemChangedAttributeViewModel.js.map +1 -1
  707. package/dist/model/workItemChangedFieldsViewModel.d.ts +46 -46
  708. package/dist/model/workItemChangedFieldsViewModel.js +112 -112
  709. package/dist/model/workItemChangedFieldsViewModel.js.map +1 -1
  710. package/dist/model/workItemCommentModel.d.ts +21 -21
  711. package/dist/model/workItemCommentModel.js +47 -47
  712. package/dist/model/workItemCommentModel.js.map +1 -1
  713. package/dist/model/workItemCommentPostModel.d.ts +15 -15
  714. package/dist/model/workItemCommentPostModel.js +22 -22
  715. package/dist/model/workItemCommentPostModel.js.map +1 -1
  716. package/dist/model/workItemCommentPutModel.d.ts +15 -15
  717. package/dist/model/workItemCommentPutModel.js +22 -22
  718. package/dist/model/workItemCommentPutModel.js.map +1 -1
  719. package/dist/model/workItemEntityTypes.d.ts +5 -5
  720. package/dist/model/workItemEntityTypes.js +9 -9
  721. package/dist/model/workItemFilterModel.d.ts +41 -41
  722. package/dist/model/workItemFilterModel.js +117 -117
  723. package/dist/model/workItemFilterModel.js.map +1 -1
  724. package/dist/model/workItemIdModel.d.ts +14 -14
  725. package/dist/model/workItemIdModel.js +17 -17
  726. package/dist/model/workItemIdModel.js.map +1 -1
  727. package/dist/model/workItemIdentifierModel.d.ts +15 -15
  728. package/dist/model/workItemIdentifierModel.js +22 -22
  729. package/dist/model/workItemIdentifierModel.js.map +1 -1
  730. package/dist/model/workItemLikeModel.d.ts +20 -20
  731. package/dist/model/workItemLikeModel.js +47 -47
  732. package/dist/model/workItemLikeModel.js.map +1 -1
  733. package/dist/model/workItemLinkChangeViewModel.d.ts +19 -19
  734. package/dist/model/workItemLinkChangeViewModel.js +42 -42
  735. package/dist/model/workItemLinkChangeViewModel.js.map +1 -1
  736. package/dist/model/workItemLinkChangeViewModelArrayWorkItemChangedFieldViewModel.d.ts +16 -16
  737. package/dist/model/workItemLinkChangeViewModelArrayWorkItemChangedFieldViewModel.js +22 -22
  738. package/dist/model/workItemLinkChangeViewModelArrayWorkItemChangedFieldViewModel.js.map +1 -1
  739. package/dist/model/workItemModel.d.ts +54 -56
  740. package/dist/model/workItemModel.js +162 -162
  741. package/dist/model/workItemModel.js.map +1 -1
  742. package/dist/model/workItemMovePostModel.d.ts +17 -17
  743. package/dist/model/workItemMovePostModel.js +32 -32
  744. package/dist/model/workItemMovePostModel.js.map +1 -1
  745. package/dist/model/workItemPostModel.d.ts +41 -43
  746. package/dist/model/workItemPostModel.js +97 -97
  747. package/dist/model/workItemPostModel.js.map +1 -1
  748. package/dist/model/workItemPriorityModel.d.ts +7 -7
  749. package/dist/model/workItemPriorityModel.js +11 -11
  750. package/dist/model/workItemPutModel.d.ts +39 -41
  751. package/dist/model/workItemPutModel.js +92 -92
  752. package/dist/model/workItemPutModel.js.map +1 -1
  753. package/dist/model/workItemSearchQueryModel.d.ts +38 -38
  754. package/dist/model/workItemSearchQueryModel.js +102 -102
  755. package/dist/model/workItemSearchQueryModel.js.map +1 -1
  756. package/dist/model/workItemSelectModel.d.ts +17 -17
  757. package/dist/model/workItemSelectModel.js +22 -22
  758. package/dist/model/workItemSelectModel.js.map +1 -1
  759. package/dist/model/workItemShortModel.d.ts +38 -39
  760. package/dist/model/workItemShortModel.js +112 -107
  761. package/dist/model/workItemShortModel.js.map +1 -1
  762. package/dist/model/workItemStates.d.ts +5 -5
  763. package/dist/model/workItemStates.js +9 -9
  764. package/dist/model/workItemStepChangeViewModel.d.ts +21 -21
  765. package/dist/model/workItemStepChangeViewModel.js +47 -47
  766. package/dist/model/workItemStepChangeViewModel.js.map +1 -1
  767. package/dist/model/workItemStepChangeViewModelArrayWorkItemChangedFieldViewModel.d.ts +16 -16
  768. package/dist/model/workItemStepChangeViewModelArrayWorkItemChangedFieldViewModel.js +22 -22
  769. package/dist/model/workItemStepChangeViewModelArrayWorkItemChangedFieldViewModel.js.map +1 -1
  770. package/dist/model/workItemVersionModel.d.ts +17 -17
  771. package/dist/model/workItemVersionModel.js +32 -32
  772. package/dist/model/workItemVersionModel.js.map +1 -1
  773. package/dist/model/workItemsExtractionModel.d.ts +17 -17
  774. package/dist/model/workItemsExtractionModel.js +27 -27
  775. package/dist/model/workItemsExtractionModel.js.map +1 -1
  776. package/package.json +29 -29
  777. package/dist/model/dateRangeModel.js +0 -23
  778. package/dist/model/dateRangeModel.js.map +0 -1
  779. package/dist/model/testPlanSearchQueryModel.js.map +0 -1
@@ -1,531 +1,595 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.SectionsApi = exports.SectionsApiApiKeys = void 0;
16
- const request_1 = __importDefault(require("request"));
17
- const models_1 = require("../model/models");
18
- const models_2 = require("../model/models");
19
- const apis_1 = require("./apis");
20
- let defaultBasePath = 'http://localhost';
21
- var SectionsApiApiKeys;
22
- (function (SectionsApiApiKeys) {
23
- SectionsApiApiKeys[SectionsApiApiKeys["Bearer or PrivateToken"] = 0] = "Bearer or PrivateToken";
24
- })(SectionsApiApiKeys = exports.SectionsApiApiKeys || (exports.SectionsApiApiKeys = {}));
25
- class SectionsApi {
26
- constructor(basePathOrUsername, password, basePath) {
27
- this._basePath = defaultBasePath;
28
- this._defaultHeaders = {};
29
- this._useQuerystring = false;
30
- this.authentications = {
31
- 'default': new models_1.VoidAuth(),
32
- 'Bearer or PrivateToken': new models_2.ApiKeyAuth('header', 'Authorization'),
33
- };
34
- this.interceptors = [];
35
- if (password) {
36
- if (basePath) {
37
- this.basePath = basePath;
38
- }
39
- }
40
- else {
41
- if (basePathOrUsername) {
42
- this.basePath = basePathOrUsername;
43
- }
44
- }
45
- }
46
- set useQuerystring(value) {
47
- this._useQuerystring = value;
48
- }
49
- set basePath(basePath) {
50
- this._basePath = basePath;
51
- }
52
- set defaultHeaders(defaultHeaders) {
53
- this._defaultHeaders = defaultHeaders;
54
- }
55
- get defaultHeaders() {
56
- return this._defaultHeaders;
57
- }
58
- get basePath() {
59
- return this._basePath;
60
- }
61
- setDefaultAuthentication(auth) {
62
- this.authentications.default = auth;
63
- }
64
- setApiKey(key, value) {
65
- this.authentications[SectionsApiApiKeys[key]].apiKey = value;
66
- }
67
- addInterceptor(interceptor) {
68
- this.interceptors.push(interceptor);
69
- }
70
- createSection(sectionPostModel, options = { headers: {} }) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- const localVarPath = this.basePath + '/api/v2/sections';
73
- let localVarQueryParameters = {};
74
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
75
- const produces = ['application/json'];
76
- if (produces.indexOf('application/json') >= 0) {
77
- localVarHeaderParams.Accept = 'application/json';
78
- }
79
- else {
80
- localVarHeaderParams.Accept = produces.join(',');
81
- }
82
- let localVarFormParams = {};
83
- Object.assign(localVarHeaderParams, options.headers);
84
- let localVarUseFormData = false;
85
- let localVarRequestOptions = {
86
- method: 'POST',
87
- qs: localVarQueryParameters,
88
- headers: localVarHeaderParams,
89
- uri: localVarPath,
90
- useQuerystring: this._useQuerystring,
91
- json: true,
92
- body: models_1.ObjectSerializer.serialize(sectionPostModel, "SectionPostModel")
93
- };
94
- let authenticationPromise = Promise.resolve();
95
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
96
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
97
- }
98
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
99
- let interceptorPromise = authenticationPromise;
100
- for (const interceptor of this.interceptors) {
101
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
102
- }
103
- return interceptorPromise.then(() => {
104
- if (Object.keys(localVarFormParams).length) {
105
- if (localVarUseFormData) {
106
- localVarRequestOptions.formData = localVarFormParams;
107
- }
108
- else {
109
- localVarRequestOptions.form = localVarFormParams;
110
- }
111
- }
112
- return new Promise((resolve, reject) => {
113
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
114
- if (error) {
115
- reject(error);
116
- }
117
- else {
118
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
119
- body = models_1.ObjectSerializer.deserialize(body, "SectionWithStepsModel");
120
- resolve({ response: response, body: body });
121
- }
122
- else {
123
- reject(new apis_1.HttpError(response, body, response.statusCode));
124
- }
125
- }
126
- });
127
- });
128
- });
129
- });
130
- }
131
- deleteSection(id, options = { headers: {} }) {
132
- return __awaiter(this, void 0, void 0, function* () {
133
- const localVarPath = this.basePath + '/api/v2/sections/{id}'
134
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
135
- let localVarQueryParameters = {};
136
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
137
- const produces = ['application/json'];
138
- if (produces.indexOf('application/json') >= 0) {
139
- localVarHeaderParams.Accept = 'application/json';
140
- }
141
- else {
142
- localVarHeaderParams.Accept = produces.join(',');
143
- }
144
- let localVarFormParams = {};
145
- if (id === null || id === undefined) {
146
- throw new Error('Required parameter id was null or undefined when calling deleteSection.');
147
- }
148
- Object.assign(localVarHeaderParams, options.headers);
149
- let localVarUseFormData = false;
150
- let localVarRequestOptions = {
151
- method: 'DELETE',
152
- qs: localVarQueryParameters,
153
- headers: localVarHeaderParams,
154
- uri: localVarPath,
155
- useQuerystring: this._useQuerystring,
156
- json: true,
157
- };
158
- let authenticationPromise = Promise.resolve();
159
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
160
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
161
- }
162
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
163
- let interceptorPromise = authenticationPromise;
164
- for (const interceptor of this.interceptors) {
165
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
166
- }
167
- return interceptorPromise.then(() => {
168
- if (Object.keys(localVarFormParams).length) {
169
- if (localVarUseFormData) {
170
- localVarRequestOptions.formData = localVarFormParams;
171
- }
172
- else {
173
- localVarRequestOptions.form = localVarFormParams;
174
- }
175
- }
176
- return new Promise((resolve, reject) => {
177
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
178
- if (error) {
179
- reject(error);
180
- }
181
- else {
182
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
183
- resolve({ response: response, body: body });
184
- }
185
- else {
186
- reject(new apis_1.HttpError(response, body, response.statusCode));
187
- }
188
- }
189
- });
190
- });
191
- });
192
- });
193
- }
194
- getSectionById(id, isDeleted, options = { headers: {} }) {
195
- return __awaiter(this, void 0, void 0, function* () {
196
- const localVarPath = this.basePath + '/api/v2/sections/{id}'
197
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
198
- let localVarQueryParameters = {};
199
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
200
- const produces = ['application/json'];
201
- if (produces.indexOf('application/json') >= 0) {
202
- localVarHeaderParams.Accept = 'application/json';
203
- }
204
- else {
205
- localVarHeaderParams.Accept = produces.join(',');
206
- }
207
- let localVarFormParams = {};
208
- if (id === null || id === undefined) {
209
- throw new Error('Required parameter id was null or undefined when calling getSectionById.');
210
- }
211
- if (isDeleted !== undefined) {
212
- localVarQueryParameters['isDeleted'] = models_1.ObjectSerializer.serialize(isDeleted, "boolean");
213
- }
214
- Object.assign(localVarHeaderParams, options.headers);
215
- let localVarUseFormData = false;
216
- let localVarRequestOptions = {
217
- method: 'GET',
218
- qs: localVarQueryParameters,
219
- headers: localVarHeaderParams,
220
- uri: localVarPath,
221
- useQuerystring: this._useQuerystring,
222
- json: true,
223
- };
224
- let authenticationPromise = Promise.resolve();
225
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
226
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
227
- }
228
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
229
- let interceptorPromise = authenticationPromise;
230
- for (const interceptor of this.interceptors) {
231
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
232
- }
233
- return interceptorPromise.then(() => {
234
- if (Object.keys(localVarFormParams).length) {
235
- if (localVarUseFormData) {
236
- localVarRequestOptions.formData = localVarFormParams;
237
- }
238
- else {
239
- localVarRequestOptions.form = localVarFormParams;
240
- }
241
- }
242
- return new Promise((resolve, reject) => {
243
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
244
- if (error) {
245
- reject(error);
246
- }
247
- else {
248
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
249
- body = models_1.ObjectSerializer.deserialize(body, "SectionWithStepsModel");
250
- resolve({ response: response, body: body });
251
- }
252
- else {
253
- reject(new apis_1.HttpError(response, body, response.statusCode));
254
- }
255
- }
256
- });
257
- });
258
- });
259
- });
260
- }
261
- getWorkItemsBySectionId(id, isDeleted, tagNames, includeIterations, skip, take, orderBy, searchField, searchValue, options = { headers: {} }) {
262
- return __awaiter(this, void 0, void 0, function* () {
263
- const localVarPath = this.basePath + '/api/v2/sections/{id}/workItems'
264
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
265
- let localVarQueryParameters = {};
266
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
267
- const produces = ['application/json'];
268
- if (produces.indexOf('application/json') >= 0) {
269
- localVarHeaderParams.Accept = 'application/json';
270
- }
271
- else {
272
- localVarHeaderParams.Accept = produces.join(',');
273
- }
274
- let localVarFormParams = {};
275
- if (id === null || id === undefined) {
276
- throw new Error('Required parameter id was null or undefined when calling getWorkItemsBySectionId.');
277
- }
278
- if (isDeleted !== undefined) {
279
- localVarQueryParameters['isDeleted'] = models_1.ObjectSerializer.serialize(isDeleted, "boolean");
280
- }
281
- if (tagNames !== undefined) {
282
- localVarQueryParameters['tagNames'] = models_1.ObjectSerializer.serialize(tagNames, "Array<string>");
283
- }
284
- if (includeIterations !== undefined) {
285
- localVarQueryParameters['includeIterations'] = models_1.ObjectSerializer.serialize(includeIterations, "boolean");
286
- }
287
- if (skip !== undefined) {
288
- localVarQueryParameters['Skip'] = models_1.ObjectSerializer.serialize(skip, "number");
289
- }
290
- if (take !== undefined) {
291
- localVarQueryParameters['Take'] = models_1.ObjectSerializer.serialize(take, "number");
292
- }
293
- if (orderBy !== undefined) {
294
- localVarQueryParameters['OrderBy'] = models_1.ObjectSerializer.serialize(orderBy, "string");
295
- }
296
- if (searchField !== undefined) {
297
- localVarQueryParameters['SearchField'] = models_1.ObjectSerializer.serialize(searchField, "string");
298
- }
299
- if (searchValue !== undefined) {
300
- localVarQueryParameters['SearchValue'] = models_1.ObjectSerializer.serialize(searchValue, "string");
301
- }
302
- Object.assign(localVarHeaderParams, options.headers);
303
- let localVarUseFormData = false;
304
- let localVarRequestOptions = {
305
- method: 'GET',
306
- qs: localVarQueryParameters,
307
- headers: localVarHeaderParams,
308
- uri: localVarPath,
309
- useQuerystring: this._useQuerystring,
310
- json: true,
311
- };
312
- let authenticationPromise = Promise.resolve();
313
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
314
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
315
- }
316
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
317
- let interceptorPromise = authenticationPromise;
318
- for (const interceptor of this.interceptors) {
319
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
320
- }
321
- return interceptorPromise.then(() => {
322
- if (Object.keys(localVarFormParams).length) {
323
- if (localVarUseFormData) {
324
- localVarRequestOptions.formData = localVarFormParams;
325
- }
326
- else {
327
- localVarRequestOptions.form = localVarFormParams;
328
- }
329
- }
330
- return new Promise((resolve, reject) => {
331
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
332
- if (error) {
333
- reject(error);
334
- }
335
- else {
336
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
337
- body = models_1.ObjectSerializer.deserialize(body, "Array<WorkItemShortModel>");
338
- resolve({ response: response, body: body });
339
- }
340
- else {
341
- reject(new apis_1.HttpError(response, body, response.statusCode));
342
- }
343
- }
344
- });
345
- });
346
- });
347
- });
348
- }
349
- move(sectionMoveModel, options = { headers: {} }) {
350
- return __awaiter(this, void 0, void 0, function* () {
351
- const localVarPath = this.basePath + '/api/v2/sections/move';
352
- let localVarQueryParameters = {};
353
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
354
- const produces = ['application/json'];
355
- if (produces.indexOf('application/json') >= 0) {
356
- localVarHeaderParams.Accept = 'application/json';
357
- }
358
- else {
359
- localVarHeaderParams.Accept = produces.join(',');
360
- }
361
- let localVarFormParams = {};
362
- Object.assign(localVarHeaderParams, options.headers);
363
- let localVarUseFormData = false;
364
- let localVarRequestOptions = {
365
- method: 'POST',
366
- qs: localVarQueryParameters,
367
- headers: localVarHeaderParams,
368
- uri: localVarPath,
369
- useQuerystring: this._useQuerystring,
370
- json: true,
371
- body: models_1.ObjectSerializer.serialize(sectionMoveModel, "SectionMoveModel")
372
- };
373
- let authenticationPromise = Promise.resolve();
374
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
375
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
376
- }
377
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
378
- let interceptorPromise = authenticationPromise;
379
- for (const interceptor of this.interceptors) {
380
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
381
- }
382
- return interceptorPromise.then(() => {
383
- if (Object.keys(localVarFormParams).length) {
384
- if (localVarUseFormData) {
385
- localVarRequestOptions.formData = localVarFormParams;
386
- }
387
- else {
388
- localVarRequestOptions.form = localVarFormParams;
389
- }
390
- }
391
- return new Promise((resolve, reject) => {
392
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
393
- if (error) {
394
- reject(error);
395
- }
396
- else {
397
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
398
- resolve({ response: response, body: body });
399
- }
400
- else {
401
- reject(new apis_1.HttpError(response, body, response.statusCode));
402
- }
403
- }
404
- });
405
- });
406
- });
407
- });
408
- }
409
- rename(sectionRenameModel, options = { headers: {} }) {
410
- return __awaiter(this, void 0, void 0, function* () {
411
- const localVarPath = this.basePath + '/api/v2/sections/rename';
412
- let localVarQueryParameters = {};
413
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
414
- const produces = ['application/json'];
415
- if (produces.indexOf('application/json') >= 0) {
416
- localVarHeaderParams.Accept = 'application/json';
417
- }
418
- else {
419
- localVarHeaderParams.Accept = produces.join(',');
420
- }
421
- let localVarFormParams = {};
422
- Object.assign(localVarHeaderParams, options.headers);
423
- let localVarUseFormData = false;
424
- let localVarRequestOptions = {
425
- method: 'POST',
426
- qs: localVarQueryParameters,
427
- headers: localVarHeaderParams,
428
- uri: localVarPath,
429
- useQuerystring: this._useQuerystring,
430
- json: true,
431
- body: models_1.ObjectSerializer.serialize(sectionRenameModel, "SectionRenameModel")
432
- };
433
- let authenticationPromise = Promise.resolve();
434
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
435
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
436
- }
437
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
438
- let interceptorPromise = authenticationPromise;
439
- for (const interceptor of this.interceptors) {
440
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
441
- }
442
- return interceptorPromise.then(() => {
443
- if (Object.keys(localVarFormParams).length) {
444
- if (localVarUseFormData) {
445
- localVarRequestOptions.formData = localVarFormParams;
446
- }
447
- else {
448
- localVarRequestOptions.form = localVarFormParams;
449
- }
450
- }
451
- return new Promise((resolve, reject) => {
452
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
453
- if (error) {
454
- reject(error);
455
- }
456
- else {
457
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
458
- resolve({ response: response, body: body });
459
- }
460
- else {
461
- reject(new apis_1.HttpError(response, body, response.statusCode));
462
- }
463
- }
464
- });
465
- });
466
- });
467
- });
468
- }
469
- updateSection(sectionPutModel, options = { headers: {} }) {
470
- return __awaiter(this, void 0, void 0, function* () {
471
- const localVarPath = this.basePath + '/api/v2/sections';
472
- let localVarQueryParameters = {};
473
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
474
- const produces = ['application/json'];
475
- if (produces.indexOf('application/json') >= 0) {
476
- localVarHeaderParams.Accept = 'application/json';
477
- }
478
- else {
479
- localVarHeaderParams.Accept = produces.join(',');
480
- }
481
- let localVarFormParams = {};
482
- Object.assign(localVarHeaderParams, options.headers);
483
- let localVarUseFormData = false;
484
- let localVarRequestOptions = {
485
- method: 'PUT',
486
- qs: localVarQueryParameters,
487
- headers: localVarHeaderParams,
488
- uri: localVarPath,
489
- useQuerystring: this._useQuerystring,
490
- json: true,
491
- body: models_1.ObjectSerializer.serialize(sectionPutModel, "SectionPutModel")
492
- };
493
- let authenticationPromise = Promise.resolve();
494
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
495
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
496
- }
497
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
498
- let interceptorPromise = authenticationPromise;
499
- for (const interceptor of this.interceptors) {
500
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
501
- }
502
- return interceptorPromise.then(() => {
503
- if (Object.keys(localVarFormParams).length) {
504
- if (localVarUseFormData) {
505
- localVarRequestOptions.formData = localVarFormParams;
506
- }
507
- else {
508
- localVarRequestOptions.form = localVarFormParams;
509
- }
510
- }
511
- return new Promise((resolve, reject) => {
512
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
513
- if (error) {
514
- reject(error);
515
- }
516
- else {
517
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
518
- resolve({ response: response, body: body });
519
- }
520
- else {
521
- reject(new apis_1.HttpError(response, body, response.statusCode));
522
- }
523
- }
524
- });
525
- });
526
- });
527
- });
528
- }
529
- }
530
- exports.SectionsApi = SectionsApi;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.SectionsApi = exports.SectionsApiApiKeys = void 0;
16
+ const request_1 = __importDefault(require("request"));
17
+ const models_1 = require("../model/models");
18
+ const models_2 = require("../model/models");
19
+ const apis_1 = require("./apis");
20
+ let defaultBasePath = 'http://localhost';
21
+ var SectionsApiApiKeys;
22
+ (function (SectionsApiApiKeys) {
23
+ SectionsApiApiKeys[SectionsApiApiKeys["Bearer or PrivateToken"] = 0] = "Bearer or PrivateToken";
24
+ })(SectionsApiApiKeys = exports.SectionsApiApiKeys || (exports.SectionsApiApiKeys = {}));
25
+ class SectionsApi {
26
+ constructor(basePathOrUsername, password, basePath) {
27
+ this._basePath = defaultBasePath;
28
+ this._defaultHeaders = {};
29
+ this._useQuerystring = false;
30
+ this.authentications = {
31
+ 'default': new models_1.VoidAuth(),
32
+ 'Bearer or PrivateToken': new models_2.ApiKeyAuth('header', 'Authorization'),
33
+ };
34
+ this.interceptors = [];
35
+ if (password) {
36
+ if (basePath) {
37
+ this.basePath = basePath;
38
+ }
39
+ }
40
+ else {
41
+ if (basePathOrUsername) {
42
+ this.basePath = basePathOrUsername;
43
+ }
44
+ }
45
+ }
46
+ set useQuerystring(value) {
47
+ this._useQuerystring = value;
48
+ }
49
+ set basePath(basePath) {
50
+ this._basePath = basePath;
51
+ }
52
+ set defaultHeaders(defaultHeaders) {
53
+ this._defaultHeaders = defaultHeaders;
54
+ }
55
+ get defaultHeaders() {
56
+ return this._defaultHeaders;
57
+ }
58
+ get basePath() {
59
+ return this._basePath;
60
+ }
61
+ setDefaultAuthentication(auth) {
62
+ this.authentications.default = auth;
63
+ }
64
+ setApiKey(key, value) {
65
+ this.authentications[SectionsApiApiKeys[key]].apiKey = value;
66
+ }
67
+ addInterceptor(interceptor) {
68
+ this.interceptors.push(interceptor);
69
+ }
70
+ apiV2SectionsIdPatch(id, operation, options = { headers: {} }) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const localVarPath = this.basePath + '/api/v2/sections/{id}'
73
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
74
+ let localVarQueryParameters = {};
75
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
76
+ const produces = ['application/json'];
77
+ if (produces.indexOf('application/json') >= 0) {
78
+ localVarHeaderParams.Accept = 'application/json';
79
+ }
80
+ else {
81
+ localVarHeaderParams.Accept = produces.join(',');
82
+ }
83
+ let localVarFormParams = {};
84
+ if (id === null || id === undefined) {
85
+ throw new Error('Required parameter id was null or undefined when calling apiV2SectionsIdPatch.');
86
+ }
87
+ Object.assign(localVarHeaderParams, options.headers);
88
+ let localVarUseFormData = false;
89
+ let localVarRequestOptions = {
90
+ method: 'PATCH',
91
+ qs: localVarQueryParameters,
92
+ headers: localVarHeaderParams,
93
+ uri: localVarPath,
94
+ useQuerystring: this._useQuerystring,
95
+ json: true,
96
+ body: models_1.ObjectSerializer.serialize(operation, "Array<Operation>")
97
+ };
98
+ let authenticationPromise = Promise.resolve();
99
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
100
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
101
+ }
102
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
103
+ let interceptorPromise = authenticationPromise;
104
+ for (const interceptor of this.interceptors) {
105
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
106
+ }
107
+ return interceptorPromise.then(() => {
108
+ if (Object.keys(localVarFormParams).length) {
109
+ if (localVarUseFormData) {
110
+ localVarRequestOptions.formData = localVarFormParams;
111
+ }
112
+ else {
113
+ localVarRequestOptions.form = localVarFormParams;
114
+ }
115
+ }
116
+ return new Promise((resolve, reject) => {
117
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
118
+ if (error) {
119
+ reject(error);
120
+ }
121
+ else {
122
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
123
+ resolve({ response: response, body: body });
124
+ }
125
+ else {
126
+ reject(new apis_1.HttpError(response, body, response.statusCode));
127
+ }
128
+ }
129
+ });
130
+ });
131
+ });
132
+ });
133
+ }
134
+ createSection(sectionPostModel, options = { headers: {} }) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const localVarPath = this.basePath + '/api/v2/sections';
137
+ let localVarQueryParameters = {};
138
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
139
+ const produces = ['application/json'];
140
+ if (produces.indexOf('application/json') >= 0) {
141
+ localVarHeaderParams.Accept = 'application/json';
142
+ }
143
+ else {
144
+ localVarHeaderParams.Accept = produces.join(',');
145
+ }
146
+ let localVarFormParams = {};
147
+ Object.assign(localVarHeaderParams, options.headers);
148
+ let localVarUseFormData = false;
149
+ let localVarRequestOptions = {
150
+ method: 'POST',
151
+ qs: localVarQueryParameters,
152
+ headers: localVarHeaderParams,
153
+ uri: localVarPath,
154
+ useQuerystring: this._useQuerystring,
155
+ json: true,
156
+ body: models_1.ObjectSerializer.serialize(sectionPostModel, "SectionPostModel")
157
+ };
158
+ let authenticationPromise = Promise.resolve();
159
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
160
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
161
+ }
162
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
163
+ let interceptorPromise = authenticationPromise;
164
+ for (const interceptor of this.interceptors) {
165
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
166
+ }
167
+ return interceptorPromise.then(() => {
168
+ if (Object.keys(localVarFormParams).length) {
169
+ if (localVarUseFormData) {
170
+ localVarRequestOptions.formData = localVarFormParams;
171
+ }
172
+ else {
173
+ localVarRequestOptions.form = localVarFormParams;
174
+ }
175
+ }
176
+ return new Promise((resolve, reject) => {
177
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
178
+ if (error) {
179
+ reject(error);
180
+ }
181
+ else {
182
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
183
+ body = models_1.ObjectSerializer.deserialize(body, "SectionWithStepsModel");
184
+ resolve({ response: response, body: body });
185
+ }
186
+ else {
187
+ reject(new apis_1.HttpError(response, body, response.statusCode));
188
+ }
189
+ }
190
+ });
191
+ });
192
+ });
193
+ });
194
+ }
195
+ deleteSection(id, options = { headers: {} }) {
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ const localVarPath = this.basePath + '/api/v2/sections/{id}'
198
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
199
+ let localVarQueryParameters = {};
200
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
201
+ const produces = ['application/json'];
202
+ if (produces.indexOf('application/json') >= 0) {
203
+ localVarHeaderParams.Accept = 'application/json';
204
+ }
205
+ else {
206
+ localVarHeaderParams.Accept = produces.join(',');
207
+ }
208
+ let localVarFormParams = {};
209
+ if (id === null || id === undefined) {
210
+ throw new Error('Required parameter id was null or undefined when calling deleteSection.');
211
+ }
212
+ Object.assign(localVarHeaderParams, options.headers);
213
+ let localVarUseFormData = false;
214
+ let localVarRequestOptions = {
215
+ method: 'DELETE',
216
+ qs: localVarQueryParameters,
217
+ headers: localVarHeaderParams,
218
+ uri: localVarPath,
219
+ useQuerystring: this._useQuerystring,
220
+ json: true,
221
+ };
222
+ let authenticationPromise = Promise.resolve();
223
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
224
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
225
+ }
226
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
227
+ let interceptorPromise = authenticationPromise;
228
+ for (const interceptor of this.interceptors) {
229
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
230
+ }
231
+ return interceptorPromise.then(() => {
232
+ if (Object.keys(localVarFormParams).length) {
233
+ if (localVarUseFormData) {
234
+ localVarRequestOptions.formData = localVarFormParams;
235
+ }
236
+ else {
237
+ localVarRequestOptions.form = localVarFormParams;
238
+ }
239
+ }
240
+ return new Promise((resolve, reject) => {
241
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
242
+ if (error) {
243
+ reject(error);
244
+ }
245
+ else {
246
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
247
+ resolve({ response: response, body: body });
248
+ }
249
+ else {
250
+ reject(new apis_1.HttpError(response, body, response.statusCode));
251
+ }
252
+ }
253
+ });
254
+ });
255
+ });
256
+ });
257
+ }
258
+ getSectionById(id, isDeleted, options = { headers: {} }) {
259
+ return __awaiter(this, void 0, void 0, function* () {
260
+ const localVarPath = this.basePath + '/api/v2/sections/{id}'
261
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
262
+ let localVarQueryParameters = {};
263
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
264
+ const produces = ['application/json'];
265
+ if (produces.indexOf('application/json') >= 0) {
266
+ localVarHeaderParams.Accept = 'application/json';
267
+ }
268
+ else {
269
+ localVarHeaderParams.Accept = produces.join(',');
270
+ }
271
+ let localVarFormParams = {};
272
+ if (id === null || id === undefined) {
273
+ throw new Error('Required parameter id was null or undefined when calling getSectionById.');
274
+ }
275
+ if (isDeleted !== undefined) {
276
+ localVarQueryParameters['isDeleted'] = models_1.ObjectSerializer.serialize(isDeleted, "DeletionState");
277
+ }
278
+ Object.assign(localVarHeaderParams, options.headers);
279
+ let localVarUseFormData = false;
280
+ let localVarRequestOptions = {
281
+ method: 'GET',
282
+ qs: localVarQueryParameters,
283
+ headers: localVarHeaderParams,
284
+ uri: localVarPath,
285
+ useQuerystring: this._useQuerystring,
286
+ json: true,
287
+ };
288
+ let authenticationPromise = Promise.resolve();
289
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
290
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
291
+ }
292
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
293
+ let interceptorPromise = authenticationPromise;
294
+ for (const interceptor of this.interceptors) {
295
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
296
+ }
297
+ return interceptorPromise.then(() => {
298
+ if (Object.keys(localVarFormParams).length) {
299
+ if (localVarUseFormData) {
300
+ localVarRequestOptions.formData = localVarFormParams;
301
+ }
302
+ else {
303
+ localVarRequestOptions.form = localVarFormParams;
304
+ }
305
+ }
306
+ return new Promise((resolve, reject) => {
307
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
308
+ if (error) {
309
+ reject(error);
310
+ }
311
+ else {
312
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
313
+ body = models_1.ObjectSerializer.deserialize(body, "SectionWithStepsModel");
314
+ resolve({ response: response, body: body });
315
+ }
316
+ else {
317
+ reject(new apis_1.HttpError(response, body, response.statusCode));
318
+ }
319
+ }
320
+ });
321
+ });
322
+ });
323
+ });
324
+ }
325
+ getWorkItemsBySectionId(id, isDeleted, tagNames, includeIterations, skip, take, orderBy, searchField, searchValue, options = { headers: {} }) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ const localVarPath = this.basePath + '/api/v2/sections/{id}/workItems'
328
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
329
+ let localVarQueryParameters = {};
330
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
331
+ const produces = ['application/json'];
332
+ if (produces.indexOf('application/json') >= 0) {
333
+ localVarHeaderParams.Accept = 'application/json';
334
+ }
335
+ else {
336
+ localVarHeaderParams.Accept = produces.join(',');
337
+ }
338
+ let localVarFormParams = {};
339
+ if (id === null || id === undefined) {
340
+ throw new Error('Required parameter id was null or undefined when calling getWorkItemsBySectionId.');
341
+ }
342
+ if (isDeleted !== undefined) {
343
+ localVarQueryParameters['isDeleted'] = models_1.ObjectSerializer.serialize(isDeleted, "boolean");
344
+ }
345
+ if (tagNames !== undefined) {
346
+ localVarQueryParameters['tagNames'] = models_1.ObjectSerializer.serialize(tagNames, "Array<string>");
347
+ }
348
+ if (includeIterations !== undefined) {
349
+ localVarQueryParameters['includeIterations'] = models_1.ObjectSerializer.serialize(includeIterations, "boolean");
350
+ }
351
+ if (skip !== undefined) {
352
+ localVarQueryParameters['Skip'] = models_1.ObjectSerializer.serialize(skip, "number");
353
+ }
354
+ if (take !== undefined) {
355
+ localVarQueryParameters['Take'] = models_1.ObjectSerializer.serialize(take, "number");
356
+ }
357
+ if (orderBy !== undefined) {
358
+ localVarQueryParameters['OrderBy'] = models_1.ObjectSerializer.serialize(orderBy, "string");
359
+ }
360
+ if (searchField !== undefined) {
361
+ localVarQueryParameters['SearchField'] = models_1.ObjectSerializer.serialize(searchField, "string");
362
+ }
363
+ if (searchValue !== undefined) {
364
+ localVarQueryParameters['SearchValue'] = models_1.ObjectSerializer.serialize(searchValue, "string");
365
+ }
366
+ Object.assign(localVarHeaderParams, options.headers);
367
+ let localVarUseFormData = false;
368
+ let localVarRequestOptions = {
369
+ method: 'GET',
370
+ qs: localVarQueryParameters,
371
+ headers: localVarHeaderParams,
372
+ uri: localVarPath,
373
+ useQuerystring: this._useQuerystring,
374
+ json: true,
375
+ };
376
+ let authenticationPromise = Promise.resolve();
377
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
378
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
379
+ }
380
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
381
+ let interceptorPromise = authenticationPromise;
382
+ for (const interceptor of this.interceptors) {
383
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
384
+ }
385
+ return interceptorPromise.then(() => {
386
+ if (Object.keys(localVarFormParams).length) {
387
+ if (localVarUseFormData) {
388
+ localVarRequestOptions.formData = localVarFormParams;
389
+ }
390
+ else {
391
+ localVarRequestOptions.form = localVarFormParams;
392
+ }
393
+ }
394
+ return new Promise((resolve, reject) => {
395
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
396
+ if (error) {
397
+ reject(error);
398
+ }
399
+ else {
400
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
401
+ body = models_1.ObjectSerializer.deserialize(body, "Array<WorkItemShortModel>");
402
+ resolve({ response: response, body: body });
403
+ }
404
+ else {
405
+ reject(new apis_1.HttpError(response, body, response.statusCode));
406
+ }
407
+ }
408
+ });
409
+ });
410
+ });
411
+ });
412
+ }
413
+ move(sectionMoveModel, options = { headers: {} }) {
414
+ return __awaiter(this, void 0, void 0, function* () {
415
+ const localVarPath = this.basePath + '/api/v2/sections/move';
416
+ let localVarQueryParameters = {};
417
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
418
+ const produces = ['application/json'];
419
+ if (produces.indexOf('application/json') >= 0) {
420
+ localVarHeaderParams.Accept = 'application/json';
421
+ }
422
+ else {
423
+ localVarHeaderParams.Accept = produces.join(',');
424
+ }
425
+ let localVarFormParams = {};
426
+ Object.assign(localVarHeaderParams, options.headers);
427
+ let localVarUseFormData = false;
428
+ let localVarRequestOptions = {
429
+ method: 'POST',
430
+ qs: localVarQueryParameters,
431
+ headers: localVarHeaderParams,
432
+ uri: localVarPath,
433
+ useQuerystring: this._useQuerystring,
434
+ json: true,
435
+ body: models_1.ObjectSerializer.serialize(sectionMoveModel, "SectionMoveModel")
436
+ };
437
+ let authenticationPromise = Promise.resolve();
438
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
439
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
440
+ }
441
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
442
+ let interceptorPromise = authenticationPromise;
443
+ for (const interceptor of this.interceptors) {
444
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
445
+ }
446
+ return interceptorPromise.then(() => {
447
+ if (Object.keys(localVarFormParams).length) {
448
+ if (localVarUseFormData) {
449
+ localVarRequestOptions.formData = localVarFormParams;
450
+ }
451
+ else {
452
+ localVarRequestOptions.form = localVarFormParams;
453
+ }
454
+ }
455
+ return new Promise((resolve, reject) => {
456
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
457
+ if (error) {
458
+ reject(error);
459
+ }
460
+ else {
461
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
462
+ resolve({ response: response, body: body });
463
+ }
464
+ else {
465
+ reject(new apis_1.HttpError(response, body, response.statusCode));
466
+ }
467
+ }
468
+ });
469
+ });
470
+ });
471
+ });
472
+ }
473
+ rename(sectionRenameModel, options = { headers: {} }) {
474
+ return __awaiter(this, void 0, void 0, function* () {
475
+ const localVarPath = this.basePath + '/api/v2/sections/rename';
476
+ let localVarQueryParameters = {};
477
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
478
+ const produces = ['application/json'];
479
+ if (produces.indexOf('application/json') >= 0) {
480
+ localVarHeaderParams.Accept = 'application/json';
481
+ }
482
+ else {
483
+ localVarHeaderParams.Accept = produces.join(',');
484
+ }
485
+ let localVarFormParams = {};
486
+ Object.assign(localVarHeaderParams, options.headers);
487
+ let localVarUseFormData = false;
488
+ let localVarRequestOptions = {
489
+ method: 'POST',
490
+ qs: localVarQueryParameters,
491
+ headers: localVarHeaderParams,
492
+ uri: localVarPath,
493
+ useQuerystring: this._useQuerystring,
494
+ json: true,
495
+ body: models_1.ObjectSerializer.serialize(sectionRenameModel, "SectionRenameModel")
496
+ };
497
+ let authenticationPromise = Promise.resolve();
498
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
499
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
500
+ }
501
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
502
+ let interceptorPromise = authenticationPromise;
503
+ for (const interceptor of this.interceptors) {
504
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
505
+ }
506
+ return interceptorPromise.then(() => {
507
+ if (Object.keys(localVarFormParams).length) {
508
+ if (localVarUseFormData) {
509
+ localVarRequestOptions.formData = localVarFormParams;
510
+ }
511
+ else {
512
+ localVarRequestOptions.form = localVarFormParams;
513
+ }
514
+ }
515
+ return new Promise((resolve, reject) => {
516
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
517
+ if (error) {
518
+ reject(error);
519
+ }
520
+ else {
521
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
522
+ resolve({ response: response, body: body });
523
+ }
524
+ else {
525
+ reject(new apis_1.HttpError(response, body, response.statusCode));
526
+ }
527
+ }
528
+ });
529
+ });
530
+ });
531
+ });
532
+ }
533
+ updateSection(sectionPutModel, options = { headers: {} }) {
534
+ return __awaiter(this, void 0, void 0, function* () {
535
+ const localVarPath = this.basePath + '/api/v2/sections';
536
+ let localVarQueryParameters = {};
537
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
538
+ const produces = ['application/json'];
539
+ if (produces.indexOf('application/json') >= 0) {
540
+ localVarHeaderParams.Accept = 'application/json';
541
+ }
542
+ else {
543
+ localVarHeaderParams.Accept = produces.join(',');
544
+ }
545
+ let localVarFormParams = {};
546
+ Object.assign(localVarHeaderParams, options.headers);
547
+ let localVarUseFormData = false;
548
+ let localVarRequestOptions = {
549
+ method: 'PUT',
550
+ qs: localVarQueryParameters,
551
+ headers: localVarHeaderParams,
552
+ uri: localVarPath,
553
+ useQuerystring: this._useQuerystring,
554
+ json: true,
555
+ body: models_1.ObjectSerializer.serialize(sectionPutModel, "SectionPutModel")
556
+ };
557
+ let authenticationPromise = Promise.resolve();
558
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
559
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
560
+ }
561
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
562
+ let interceptorPromise = authenticationPromise;
563
+ for (const interceptor of this.interceptors) {
564
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
565
+ }
566
+ return interceptorPromise.then(() => {
567
+ if (Object.keys(localVarFormParams).length) {
568
+ if (localVarUseFormData) {
569
+ localVarRequestOptions.formData = localVarFormParams;
570
+ }
571
+ else {
572
+ localVarRequestOptions.form = localVarFormParams;
573
+ }
574
+ }
575
+ return new Promise((resolve, reject) => {
576
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
577
+ if (error) {
578
+ reject(error);
579
+ }
580
+ else {
581
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
582
+ resolve({ response: response, body: body });
583
+ }
584
+ else {
585
+ reject(new apis_1.HttpError(response, body, response.statusCode));
586
+ }
587
+ }
588
+ });
589
+ });
590
+ });
591
+ });
592
+ }
593
+ }
594
+ exports.SectionsApi = SectionsApi;
531
595
  //# sourceMappingURL=sectionsApi.js.map