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,589 +1,589 @@
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.CustomAttributeTemplatesApi = exports.CustomAttributeTemplatesApiApiKeys = 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 CustomAttributeTemplatesApiApiKeys;
22
- (function (CustomAttributeTemplatesApiApiKeys) {
23
- CustomAttributeTemplatesApiApiKeys[CustomAttributeTemplatesApiApiKeys["Bearer or PrivateToken"] = 0] = "Bearer or PrivateToken";
24
- })(CustomAttributeTemplatesApiApiKeys = exports.CustomAttributeTemplatesApiApiKeys || (exports.CustomAttributeTemplatesApiApiKeys = {}));
25
- class CustomAttributeTemplatesApi {
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[CustomAttributeTemplatesApiApiKeys[key]].apiKey = value;
66
- }
67
- addInterceptor(interceptor) {
68
- this.interceptors.push(interceptor);
69
- }
70
- apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost(id, requestBody, options = { headers: {} }) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{id}/customAttributes/exclude'
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 apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost.');
86
- }
87
- Object.assign(localVarHeaderParams, options.headers);
88
- let localVarUseFormData = false;
89
- let localVarRequestOptions = {
90
- method: 'POST',
91
- qs: localVarQueryParameters,
92
- headers: localVarHeaderParams,
93
- uri: localVarPath,
94
- useQuerystring: this._useQuerystring,
95
- json: true,
96
- body: models_1.ObjectSerializer.serialize(requestBody, "Set<string>")
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
- apiV2CustomAttributesTemplatesIdCustomAttributesIncludePost(id, requestBody, options = { headers: {} }) {
135
- return __awaiter(this, void 0, void 0, function* () {
136
- const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{id}/customAttributes/include'
137
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
138
- let localVarQueryParameters = {};
139
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
140
- const produces = ['application/json'];
141
- if (produces.indexOf('application/json') >= 0) {
142
- localVarHeaderParams.Accept = 'application/json';
143
- }
144
- else {
145
- localVarHeaderParams.Accept = produces.join(',');
146
- }
147
- let localVarFormParams = {};
148
- if (id === null || id === undefined) {
149
- throw new Error('Required parameter id was null or undefined when calling apiV2CustomAttributesTemplatesIdCustomAttributesIncludePost.');
150
- }
151
- Object.assign(localVarHeaderParams, options.headers);
152
- let localVarUseFormData = false;
153
- let localVarRequestOptions = {
154
- method: 'POST',
155
- qs: localVarQueryParameters,
156
- headers: localVarHeaderParams,
157
- uri: localVarPath,
158
- useQuerystring: this._useQuerystring,
159
- json: true,
160
- body: models_1.ObjectSerializer.serialize(requestBody, "Set<string>")
161
- };
162
- let authenticationPromise = Promise.resolve();
163
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
164
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
165
- }
166
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
167
- let interceptorPromise = authenticationPromise;
168
- for (const interceptor of this.interceptors) {
169
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
170
- }
171
- return interceptorPromise.then(() => {
172
- if (Object.keys(localVarFormParams).length) {
173
- if (localVarUseFormData) {
174
- localVarRequestOptions.formData = localVarFormParams;
175
- }
176
- else {
177
- localVarRequestOptions.form = localVarFormParams;
178
- }
179
- }
180
- return new Promise((resolve, reject) => {
181
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
182
- if (error) {
183
- reject(error);
184
- }
185
- else {
186
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
187
- resolve({ response: response, body: body });
188
- }
189
- else {
190
- reject(new apis_1.HttpError(response, body, response.statusCode));
191
- }
192
- }
193
- });
194
- });
195
- });
196
- });
197
- }
198
- apiV2CustomAttributesTemplatesIdDelete(id, options = { headers: {} }) {
199
- return __awaiter(this, void 0, void 0, function* () {
200
- const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{id}'
201
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
202
- let localVarQueryParameters = {};
203
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
204
- const produces = ['application/json'];
205
- if (produces.indexOf('application/json') >= 0) {
206
- localVarHeaderParams.Accept = 'application/json';
207
- }
208
- else {
209
- localVarHeaderParams.Accept = produces.join(',');
210
- }
211
- let localVarFormParams = {};
212
- if (id === null || id === undefined) {
213
- throw new Error('Required parameter id was null or undefined when calling apiV2CustomAttributesTemplatesIdDelete.');
214
- }
215
- Object.assign(localVarHeaderParams, options.headers);
216
- let localVarUseFormData = false;
217
- let localVarRequestOptions = {
218
- method: 'DELETE',
219
- qs: localVarQueryParameters,
220
- headers: localVarHeaderParams,
221
- uri: localVarPath,
222
- useQuerystring: this._useQuerystring,
223
- json: true,
224
- };
225
- let authenticationPromise = Promise.resolve();
226
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
227
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
228
- }
229
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
230
- let interceptorPromise = authenticationPromise;
231
- for (const interceptor of this.interceptors) {
232
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
233
- }
234
- return interceptorPromise.then(() => {
235
- if (Object.keys(localVarFormParams).length) {
236
- if (localVarUseFormData) {
237
- localVarRequestOptions.formData = localVarFormParams;
238
- }
239
- else {
240
- localVarRequestOptions.form = localVarFormParams;
241
- }
242
- }
243
- return new Promise((resolve, reject) => {
244
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
245
- if (error) {
246
- reject(error);
247
- }
248
- else {
249
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
250
- body = models_1.ObjectSerializer.deserialize(body, "NoContentResult");
251
- resolve({ response: response, body: body });
252
- }
253
- else {
254
- reject(new apis_1.HttpError(response, body, response.statusCode));
255
- }
256
- }
257
- });
258
- });
259
- });
260
- });
261
- }
262
- apiV2CustomAttributesTemplatesIdGet(id, options = { headers: {} }) {
263
- return __awaiter(this, void 0, void 0, function* () {
264
- const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{id}'
265
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
266
- let localVarQueryParameters = {};
267
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
268
- const produces = ['application/json'];
269
- if (produces.indexOf('application/json') >= 0) {
270
- localVarHeaderParams.Accept = 'application/json';
271
- }
272
- else {
273
- localVarHeaderParams.Accept = produces.join(',');
274
- }
275
- let localVarFormParams = {};
276
- if (id === null || id === undefined) {
277
- throw new Error('Required parameter id was null or undefined when calling apiV2CustomAttributesTemplatesIdGet.');
278
- }
279
- Object.assign(localVarHeaderParams, options.headers);
280
- let localVarUseFormData = false;
281
- let localVarRequestOptions = {
282
- method: 'GET',
283
- qs: localVarQueryParameters,
284
- headers: localVarHeaderParams,
285
- uri: localVarPath,
286
- useQuerystring: this._useQuerystring,
287
- json: true,
288
- };
289
- let authenticationPromise = Promise.resolve();
290
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
291
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
292
- }
293
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
294
- let interceptorPromise = authenticationPromise;
295
- for (const interceptor of this.interceptors) {
296
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
297
- }
298
- return interceptorPromise.then(() => {
299
- if (Object.keys(localVarFormParams).length) {
300
- if (localVarUseFormData) {
301
- localVarRequestOptions.formData = localVarFormParams;
302
- }
303
- else {
304
- localVarRequestOptions.form = localVarFormParams;
305
- }
306
- }
307
- return new Promise((resolve, reject) => {
308
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
309
- if (error) {
310
- reject(error);
311
- }
312
- else {
313
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
314
- body = models_1.ObjectSerializer.deserialize(body, "CustomAttributeTemplateModel");
315
- resolve({ response: response, body: body });
316
- }
317
- else {
318
- reject(new apis_1.HttpError(response, body, response.statusCode));
319
- }
320
- }
321
- });
322
- });
323
- });
324
- });
325
- }
326
- apiV2CustomAttributesTemplatesNameGet(name, options = { headers: {} }) {
327
- return __awaiter(this, void 0, void 0, function* () {
328
- const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{name}'
329
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
330
- let localVarQueryParameters = {};
331
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
332
- const produces = ['application/json'];
333
- if (produces.indexOf('application/json') >= 0) {
334
- localVarHeaderParams.Accept = 'application/json';
335
- }
336
- else {
337
- localVarHeaderParams.Accept = produces.join(',');
338
- }
339
- let localVarFormParams = {};
340
- if (name === null || name === undefined) {
341
- throw new Error('Required parameter name was null or undefined when calling apiV2CustomAttributesTemplatesNameGet.');
342
- }
343
- Object.assign(localVarHeaderParams, options.headers);
344
- let localVarUseFormData = false;
345
- let localVarRequestOptions = {
346
- method: 'GET',
347
- qs: localVarQueryParameters,
348
- headers: localVarHeaderParams,
349
- uri: localVarPath,
350
- useQuerystring: this._useQuerystring,
351
- json: true,
352
- };
353
- let authenticationPromise = Promise.resolve();
354
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
355
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
356
- }
357
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
358
- let interceptorPromise = authenticationPromise;
359
- for (const interceptor of this.interceptors) {
360
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
361
- }
362
- return interceptorPromise.then(() => {
363
- if (Object.keys(localVarFormParams).length) {
364
- if (localVarUseFormData) {
365
- localVarRequestOptions.formData = localVarFormParams;
366
- }
367
- else {
368
- localVarRequestOptions.form = localVarFormParams;
369
- }
370
- }
371
- return new Promise((resolve, reject) => {
372
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
373
- if (error) {
374
- reject(error);
375
- }
376
- else {
377
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
378
- body = models_1.ObjectSerializer.deserialize(body, "CustomAttributeTemplateModel");
379
- resolve({ response: response, body: body });
380
- }
381
- else {
382
- reject(new apis_1.HttpError(response, body, response.statusCode));
383
- }
384
- }
385
- });
386
- });
387
- });
388
- });
389
- }
390
- apiV2CustomAttributesTemplatesPost(customAttributeTemplatePostModel, options = { headers: {} }) {
391
- return __awaiter(this, void 0, void 0, function* () {
392
- const localVarPath = this.basePath + '/api/v2/customAttributes/templates';
393
- let localVarQueryParameters = {};
394
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
395
- const produces = ['application/json'];
396
- if (produces.indexOf('application/json') >= 0) {
397
- localVarHeaderParams.Accept = 'application/json';
398
- }
399
- else {
400
- localVarHeaderParams.Accept = produces.join(',');
401
- }
402
- let localVarFormParams = {};
403
- Object.assign(localVarHeaderParams, options.headers);
404
- let localVarUseFormData = false;
405
- let localVarRequestOptions = {
406
- method: 'POST',
407
- qs: localVarQueryParameters,
408
- headers: localVarHeaderParams,
409
- uri: localVarPath,
410
- useQuerystring: this._useQuerystring,
411
- json: true,
412
- body: models_1.ObjectSerializer.serialize(customAttributeTemplatePostModel, "CustomAttributeTemplatePostModel")
413
- };
414
- let authenticationPromise = Promise.resolve();
415
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
416
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
417
- }
418
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
419
- let interceptorPromise = authenticationPromise;
420
- for (const interceptor of this.interceptors) {
421
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
422
- }
423
- return interceptorPromise.then(() => {
424
- if (Object.keys(localVarFormParams).length) {
425
- if (localVarUseFormData) {
426
- localVarRequestOptions.formData = localVarFormParams;
427
- }
428
- else {
429
- localVarRequestOptions.form = localVarFormParams;
430
- }
431
- }
432
- return new Promise((resolve, reject) => {
433
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
434
- if (error) {
435
- reject(error);
436
- }
437
- else {
438
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
439
- body = models_1.ObjectSerializer.deserialize(body, "CustomAttributeTemplateModel");
440
- resolve({ response: response, body: body });
441
- }
442
- else {
443
- reject(new apis_1.HttpError(response, body, response.statusCode));
444
- }
445
- }
446
- });
447
- });
448
- });
449
- });
450
- }
451
- apiV2CustomAttributesTemplatesPut(customAttributeTemplatePutModel, options = { headers: {} }) {
452
- return __awaiter(this, void 0, void 0, function* () {
453
- const localVarPath = this.basePath + '/api/v2/customAttributes/templates';
454
- let localVarQueryParameters = {};
455
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
456
- const produces = ['application/json'];
457
- if (produces.indexOf('application/json') >= 0) {
458
- localVarHeaderParams.Accept = 'application/json';
459
- }
460
- else {
461
- localVarHeaderParams.Accept = produces.join(',');
462
- }
463
- let localVarFormParams = {};
464
- Object.assign(localVarHeaderParams, options.headers);
465
- let localVarUseFormData = false;
466
- let localVarRequestOptions = {
467
- method: 'PUT',
468
- qs: localVarQueryParameters,
469
- headers: localVarHeaderParams,
470
- uri: localVarPath,
471
- useQuerystring: this._useQuerystring,
472
- json: true,
473
- body: models_1.ObjectSerializer.serialize(customAttributeTemplatePutModel, "CustomAttributeTemplatePutModel")
474
- };
475
- let authenticationPromise = Promise.resolve();
476
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
477
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
478
- }
479
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
480
- let interceptorPromise = authenticationPromise;
481
- for (const interceptor of this.interceptors) {
482
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
483
- }
484
- return interceptorPromise.then(() => {
485
- if (Object.keys(localVarFormParams).length) {
486
- if (localVarUseFormData) {
487
- localVarRequestOptions.formData = localVarFormParams;
488
- }
489
- else {
490
- localVarRequestOptions.form = localVarFormParams;
491
- }
492
- }
493
- return new Promise((resolve, reject) => {
494
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
495
- if (error) {
496
- reject(error);
497
- }
498
- else {
499
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
500
- resolve({ response: response, body: body });
501
- }
502
- else {
503
- reject(new apis_1.HttpError(response, body, response.statusCode));
504
- }
505
- }
506
- });
507
- });
508
- });
509
- });
510
- }
511
- apiV2CustomAttributesTemplatesSearchPost(skip, take, orderBy, searchField, searchValue, customAttributeTemplateSearchQueryModel, options = { headers: {} }) {
512
- return __awaiter(this, void 0, void 0, function* () {
513
- const localVarPath = this.basePath + '/api/v2/customAttributes/templates/search';
514
- let localVarQueryParameters = {};
515
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
516
- const produces = ['application/json'];
517
- if (produces.indexOf('application/json') >= 0) {
518
- localVarHeaderParams.Accept = 'application/json';
519
- }
520
- else {
521
- localVarHeaderParams.Accept = produces.join(',');
522
- }
523
- let localVarFormParams = {};
524
- if (skip !== undefined) {
525
- localVarQueryParameters['Skip'] = models_1.ObjectSerializer.serialize(skip, "number");
526
- }
527
- if (take !== undefined) {
528
- localVarQueryParameters['Take'] = models_1.ObjectSerializer.serialize(take, "number");
529
- }
530
- if (orderBy !== undefined) {
531
- localVarQueryParameters['OrderBy'] = models_1.ObjectSerializer.serialize(orderBy, "string");
532
- }
533
- if (searchField !== undefined) {
534
- localVarQueryParameters['SearchField'] = models_1.ObjectSerializer.serialize(searchField, "string");
535
- }
536
- if (searchValue !== undefined) {
537
- localVarQueryParameters['SearchValue'] = models_1.ObjectSerializer.serialize(searchValue, "string");
538
- }
539
- Object.assign(localVarHeaderParams, options.headers);
540
- let localVarUseFormData = false;
541
- let localVarRequestOptions = {
542
- method: 'POST',
543
- qs: localVarQueryParameters,
544
- headers: localVarHeaderParams,
545
- uri: localVarPath,
546
- useQuerystring: this._useQuerystring,
547
- json: true,
548
- body: models_1.ObjectSerializer.serialize(customAttributeTemplateSearchQueryModel, "CustomAttributeTemplateSearchQueryModel")
549
- };
550
- let authenticationPromise = Promise.resolve();
551
- if (this.authentications['Bearer or PrivateToken'].apiKey) {
552
- authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
553
- }
554
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
555
- let interceptorPromise = authenticationPromise;
556
- for (const interceptor of this.interceptors) {
557
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
558
- }
559
- return interceptorPromise.then(() => {
560
- if (Object.keys(localVarFormParams).length) {
561
- if (localVarUseFormData) {
562
- localVarRequestOptions.formData = localVarFormParams;
563
- }
564
- else {
565
- localVarRequestOptions.form = localVarFormParams;
566
- }
567
- }
568
- return new Promise((resolve, reject) => {
569
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
570
- if (error) {
571
- reject(error);
572
- }
573
- else {
574
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
575
- body = models_1.ObjectSerializer.deserialize(body, "Array<SearchCustomAttributeTemplateGetModel>");
576
- resolve({ response: response, body: body });
577
- }
578
- else {
579
- reject(new apis_1.HttpError(response, body, response.statusCode));
580
- }
581
- }
582
- });
583
- });
584
- });
585
- });
586
- }
587
- }
588
- exports.CustomAttributeTemplatesApi = CustomAttributeTemplatesApi;
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.CustomAttributeTemplatesApi = exports.CustomAttributeTemplatesApiApiKeys = 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 CustomAttributeTemplatesApiApiKeys;
22
+ (function (CustomAttributeTemplatesApiApiKeys) {
23
+ CustomAttributeTemplatesApiApiKeys[CustomAttributeTemplatesApiApiKeys["Bearer or PrivateToken"] = 0] = "Bearer or PrivateToken";
24
+ })(CustomAttributeTemplatesApiApiKeys = exports.CustomAttributeTemplatesApiApiKeys || (exports.CustomAttributeTemplatesApiApiKeys = {}));
25
+ class CustomAttributeTemplatesApi {
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[CustomAttributeTemplatesApiApiKeys[key]].apiKey = value;
66
+ }
67
+ addInterceptor(interceptor) {
68
+ this.interceptors.push(interceptor);
69
+ }
70
+ apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost(id, requestBody, options = { headers: {} }) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{id}/customAttributes/exclude'
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 apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost.');
86
+ }
87
+ Object.assign(localVarHeaderParams, options.headers);
88
+ let localVarUseFormData = false;
89
+ let localVarRequestOptions = {
90
+ method: 'POST',
91
+ qs: localVarQueryParameters,
92
+ headers: localVarHeaderParams,
93
+ uri: localVarPath,
94
+ useQuerystring: this._useQuerystring,
95
+ json: true,
96
+ body: models_1.ObjectSerializer.serialize(requestBody, "Set<string>")
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
+ apiV2CustomAttributesTemplatesIdCustomAttributesIncludePost(id, requestBody, options = { headers: {} }) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{id}/customAttributes/include'
137
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
138
+ let localVarQueryParameters = {};
139
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
140
+ const produces = ['application/json'];
141
+ if (produces.indexOf('application/json') >= 0) {
142
+ localVarHeaderParams.Accept = 'application/json';
143
+ }
144
+ else {
145
+ localVarHeaderParams.Accept = produces.join(',');
146
+ }
147
+ let localVarFormParams = {};
148
+ if (id === null || id === undefined) {
149
+ throw new Error('Required parameter id was null or undefined when calling apiV2CustomAttributesTemplatesIdCustomAttributesIncludePost.');
150
+ }
151
+ Object.assign(localVarHeaderParams, options.headers);
152
+ let localVarUseFormData = false;
153
+ let localVarRequestOptions = {
154
+ method: 'POST',
155
+ qs: localVarQueryParameters,
156
+ headers: localVarHeaderParams,
157
+ uri: localVarPath,
158
+ useQuerystring: this._useQuerystring,
159
+ json: true,
160
+ body: models_1.ObjectSerializer.serialize(requestBody, "Set<string>")
161
+ };
162
+ let authenticationPromise = Promise.resolve();
163
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
164
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
165
+ }
166
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
167
+ let interceptorPromise = authenticationPromise;
168
+ for (const interceptor of this.interceptors) {
169
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
170
+ }
171
+ return interceptorPromise.then(() => {
172
+ if (Object.keys(localVarFormParams).length) {
173
+ if (localVarUseFormData) {
174
+ localVarRequestOptions.formData = localVarFormParams;
175
+ }
176
+ else {
177
+ localVarRequestOptions.form = localVarFormParams;
178
+ }
179
+ }
180
+ return new Promise((resolve, reject) => {
181
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
182
+ if (error) {
183
+ reject(error);
184
+ }
185
+ else {
186
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
187
+ resolve({ response: response, body: body });
188
+ }
189
+ else {
190
+ reject(new apis_1.HttpError(response, body, response.statusCode));
191
+ }
192
+ }
193
+ });
194
+ });
195
+ });
196
+ });
197
+ }
198
+ apiV2CustomAttributesTemplatesIdDelete(id, options = { headers: {} }) {
199
+ return __awaiter(this, void 0, void 0, function* () {
200
+ const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{id}'
201
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
202
+ let localVarQueryParameters = {};
203
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
204
+ const produces = ['application/json'];
205
+ if (produces.indexOf('application/json') >= 0) {
206
+ localVarHeaderParams.Accept = 'application/json';
207
+ }
208
+ else {
209
+ localVarHeaderParams.Accept = produces.join(',');
210
+ }
211
+ let localVarFormParams = {};
212
+ if (id === null || id === undefined) {
213
+ throw new Error('Required parameter id was null or undefined when calling apiV2CustomAttributesTemplatesIdDelete.');
214
+ }
215
+ Object.assign(localVarHeaderParams, options.headers);
216
+ let localVarUseFormData = false;
217
+ let localVarRequestOptions = {
218
+ method: 'DELETE',
219
+ qs: localVarQueryParameters,
220
+ headers: localVarHeaderParams,
221
+ uri: localVarPath,
222
+ useQuerystring: this._useQuerystring,
223
+ json: true,
224
+ };
225
+ let authenticationPromise = Promise.resolve();
226
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
227
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
228
+ }
229
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
230
+ let interceptorPromise = authenticationPromise;
231
+ for (const interceptor of this.interceptors) {
232
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
233
+ }
234
+ return interceptorPromise.then(() => {
235
+ if (Object.keys(localVarFormParams).length) {
236
+ if (localVarUseFormData) {
237
+ localVarRequestOptions.formData = localVarFormParams;
238
+ }
239
+ else {
240
+ localVarRequestOptions.form = localVarFormParams;
241
+ }
242
+ }
243
+ return new Promise((resolve, reject) => {
244
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
245
+ if (error) {
246
+ reject(error);
247
+ }
248
+ else {
249
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
250
+ body = models_1.ObjectSerializer.deserialize(body, "NoContentResult");
251
+ resolve({ response: response, body: body });
252
+ }
253
+ else {
254
+ reject(new apis_1.HttpError(response, body, response.statusCode));
255
+ }
256
+ }
257
+ });
258
+ });
259
+ });
260
+ });
261
+ }
262
+ apiV2CustomAttributesTemplatesIdGet(id, options = { headers: {} }) {
263
+ return __awaiter(this, void 0, void 0, function* () {
264
+ const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{id}'
265
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
266
+ let localVarQueryParameters = {};
267
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
268
+ const produces = ['application/json'];
269
+ if (produces.indexOf('application/json') >= 0) {
270
+ localVarHeaderParams.Accept = 'application/json';
271
+ }
272
+ else {
273
+ localVarHeaderParams.Accept = produces.join(',');
274
+ }
275
+ let localVarFormParams = {};
276
+ if (id === null || id === undefined) {
277
+ throw new Error('Required parameter id was null or undefined when calling apiV2CustomAttributesTemplatesIdGet.');
278
+ }
279
+ Object.assign(localVarHeaderParams, options.headers);
280
+ let localVarUseFormData = false;
281
+ let localVarRequestOptions = {
282
+ method: 'GET',
283
+ qs: localVarQueryParameters,
284
+ headers: localVarHeaderParams,
285
+ uri: localVarPath,
286
+ useQuerystring: this._useQuerystring,
287
+ json: true,
288
+ };
289
+ let authenticationPromise = Promise.resolve();
290
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
291
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
292
+ }
293
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
294
+ let interceptorPromise = authenticationPromise;
295
+ for (const interceptor of this.interceptors) {
296
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
297
+ }
298
+ return interceptorPromise.then(() => {
299
+ if (Object.keys(localVarFormParams).length) {
300
+ if (localVarUseFormData) {
301
+ localVarRequestOptions.formData = localVarFormParams;
302
+ }
303
+ else {
304
+ localVarRequestOptions.form = localVarFormParams;
305
+ }
306
+ }
307
+ return new Promise((resolve, reject) => {
308
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
309
+ if (error) {
310
+ reject(error);
311
+ }
312
+ else {
313
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
314
+ body = models_1.ObjectSerializer.deserialize(body, "CustomAttributeTemplateModel");
315
+ resolve({ response: response, body: body });
316
+ }
317
+ else {
318
+ reject(new apis_1.HttpError(response, body, response.statusCode));
319
+ }
320
+ }
321
+ });
322
+ });
323
+ });
324
+ });
325
+ }
326
+ apiV2CustomAttributesTemplatesNameGet(name, options = { headers: {} }) {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ const localVarPath = this.basePath + '/api/v2/customAttributes/templates/{name}'
329
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
330
+ let localVarQueryParameters = {};
331
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
332
+ const produces = ['application/json'];
333
+ if (produces.indexOf('application/json') >= 0) {
334
+ localVarHeaderParams.Accept = 'application/json';
335
+ }
336
+ else {
337
+ localVarHeaderParams.Accept = produces.join(',');
338
+ }
339
+ let localVarFormParams = {};
340
+ if (name === null || name === undefined) {
341
+ throw new Error('Required parameter name was null or undefined when calling apiV2CustomAttributesTemplatesNameGet.');
342
+ }
343
+ Object.assign(localVarHeaderParams, options.headers);
344
+ let localVarUseFormData = false;
345
+ let localVarRequestOptions = {
346
+ method: 'GET',
347
+ qs: localVarQueryParameters,
348
+ headers: localVarHeaderParams,
349
+ uri: localVarPath,
350
+ useQuerystring: this._useQuerystring,
351
+ json: true,
352
+ };
353
+ let authenticationPromise = Promise.resolve();
354
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
355
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
356
+ }
357
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
358
+ let interceptorPromise = authenticationPromise;
359
+ for (const interceptor of this.interceptors) {
360
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
361
+ }
362
+ return interceptorPromise.then(() => {
363
+ if (Object.keys(localVarFormParams).length) {
364
+ if (localVarUseFormData) {
365
+ localVarRequestOptions.formData = localVarFormParams;
366
+ }
367
+ else {
368
+ localVarRequestOptions.form = localVarFormParams;
369
+ }
370
+ }
371
+ return new Promise((resolve, reject) => {
372
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
373
+ if (error) {
374
+ reject(error);
375
+ }
376
+ else {
377
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
378
+ body = models_1.ObjectSerializer.deserialize(body, "CustomAttributeTemplateModel");
379
+ resolve({ response: response, body: body });
380
+ }
381
+ else {
382
+ reject(new apis_1.HttpError(response, body, response.statusCode));
383
+ }
384
+ }
385
+ });
386
+ });
387
+ });
388
+ });
389
+ }
390
+ apiV2CustomAttributesTemplatesPost(customAttributeTemplatePostModel, options = { headers: {} }) {
391
+ return __awaiter(this, void 0, void 0, function* () {
392
+ const localVarPath = this.basePath + '/api/v2/customAttributes/templates';
393
+ let localVarQueryParameters = {};
394
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
395
+ const produces = ['application/json'];
396
+ if (produces.indexOf('application/json') >= 0) {
397
+ localVarHeaderParams.Accept = 'application/json';
398
+ }
399
+ else {
400
+ localVarHeaderParams.Accept = produces.join(',');
401
+ }
402
+ let localVarFormParams = {};
403
+ Object.assign(localVarHeaderParams, options.headers);
404
+ let localVarUseFormData = false;
405
+ let localVarRequestOptions = {
406
+ method: 'POST',
407
+ qs: localVarQueryParameters,
408
+ headers: localVarHeaderParams,
409
+ uri: localVarPath,
410
+ useQuerystring: this._useQuerystring,
411
+ json: true,
412
+ body: models_1.ObjectSerializer.serialize(customAttributeTemplatePostModel, "CustomAttributeTemplatePostModel")
413
+ };
414
+ let authenticationPromise = Promise.resolve();
415
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
416
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
417
+ }
418
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
419
+ let interceptorPromise = authenticationPromise;
420
+ for (const interceptor of this.interceptors) {
421
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
422
+ }
423
+ return interceptorPromise.then(() => {
424
+ if (Object.keys(localVarFormParams).length) {
425
+ if (localVarUseFormData) {
426
+ localVarRequestOptions.formData = localVarFormParams;
427
+ }
428
+ else {
429
+ localVarRequestOptions.form = localVarFormParams;
430
+ }
431
+ }
432
+ return new Promise((resolve, reject) => {
433
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
434
+ if (error) {
435
+ reject(error);
436
+ }
437
+ else {
438
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
439
+ body = models_1.ObjectSerializer.deserialize(body, "CustomAttributeTemplateModel");
440
+ resolve({ response: response, body: body });
441
+ }
442
+ else {
443
+ reject(new apis_1.HttpError(response, body, response.statusCode));
444
+ }
445
+ }
446
+ });
447
+ });
448
+ });
449
+ });
450
+ }
451
+ apiV2CustomAttributesTemplatesPut(customAttributeTemplatePutModel, options = { headers: {} }) {
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ const localVarPath = this.basePath + '/api/v2/customAttributes/templates';
454
+ let localVarQueryParameters = {};
455
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
456
+ const produces = ['application/json'];
457
+ if (produces.indexOf('application/json') >= 0) {
458
+ localVarHeaderParams.Accept = 'application/json';
459
+ }
460
+ else {
461
+ localVarHeaderParams.Accept = produces.join(',');
462
+ }
463
+ let localVarFormParams = {};
464
+ Object.assign(localVarHeaderParams, options.headers);
465
+ let localVarUseFormData = false;
466
+ let localVarRequestOptions = {
467
+ method: 'PUT',
468
+ qs: localVarQueryParameters,
469
+ headers: localVarHeaderParams,
470
+ uri: localVarPath,
471
+ useQuerystring: this._useQuerystring,
472
+ json: true,
473
+ body: models_1.ObjectSerializer.serialize(customAttributeTemplatePutModel, "CustomAttributeTemplatePutModel")
474
+ };
475
+ let authenticationPromise = Promise.resolve();
476
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
477
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
478
+ }
479
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
480
+ let interceptorPromise = authenticationPromise;
481
+ for (const interceptor of this.interceptors) {
482
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
483
+ }
484
+ return interceptorPromise.then(() => {
485
+ if (Object.keys(localVarFormParams).length) {
486
+ if (localVarUseFormData) {
487
+ localVarRequestOptions.formData = localVarFormParams;
488
+ }
489
+ else {
490
+ localVarRequestOptions.form = localVarFormParams;
491
+ }
492
+ }
493
+ return new Promise((resolve, reject) => {
494
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
495
+ if (error) {
496
+ reject(error);
497
+ }
498
+ else {
499
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
500
+ resolve({ response: response, body: body });
501
+ }
502
+ else {
503
+ reject(new apis_1.HttpError(response, body, response.statusCode));
504
+ }
505
+ }
506
+ });
507
+ });
508
+ });
509
+ });
510
+ }
511
+ apiV2CustomAttributesTemplatesSearchPost(skip, take, orderBy, searchField, searchValue, customAttributeTemplateSearchQueryModel, options = { headers: {} }) {
512
+ return __awaiter(this, void 0, void 0, function* () {
513
+ const localVarPath = this.basePath + '/api/v2/customAttributes/templates/search';
514
+ let localVarQueryParameters = {};
515
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
516
+ const produces = ['application/json'];
517
+ if (produces.indexOf('application/json') >= 0) {
518
+ localVarHeaderParams.Accept = 'application/json';
519
+ }
520
+ else {
521
+ localVarHeaderParams.Accept = produces.join(',');
522
+ }
523
+ let localVarFormParams = {};
524
+ if (skip !== undefined) {
525
+ localVarQueryParameters['Skip'] = models_1.ObjectSerializer.serialize(skip, "number");
526
+ }
527
+ if (take !== undefined) {
528
+ localVarQueryParameters['Take'] = models_1.ObjectSerializer.serialize(take, "number");
529
+ }
530
+ if (orderBy !== undefined) {
531
+ localVarQueryParameters['OrderBy'] = models_1.ObjectSerializer.serialize(orderBy, "string");
532
+ }
533
+ if (searchField !== undefined) {
534
+ localVarQueryParameters['SearchField'] = models_1.ObjectSerializer.serialize(searchField, "string");
535
+ }
536
+ if (searchValue !== undefined) {
537
+ localVarQueryParameters['SearchValue'] = models_1.ObjectSerializer.serialize(searchValue, "string");
538
+ }
539
+ Object.assign(localVarHeaderParams, options.headers);
540
+ let localVarUseFormData = false;
541
+ let localVarRequestOptions = {
542
+ method: 'POST',
543
+ qs: localVarQueryParameters,
544
+ headers: localVarHeaderParams,
545
+ uri: localVarPath,
546
+ useQuerystring: this._useQuerystring,
547
+ json: true,
548
+ body: models_1.ObjectSerializer.serialize(customAttributeTemplateSearchQueryModel, "CustomAttributeTemplateSearchQueryModel")
549
+ };
550
+ let authenticationPromise = Promise.resolve();
551
+ if (this.authentications['Bearer or PrivateToken'].apiKey) {
552
+ authenticationPromise = authenticationPromise.then(() => this.authentications['Bearer or PrivateToken'].applyToRequest(localVarRequestOptions));
553
+ }
554
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
555
+ let interceptorPromise = authenticationPromise;
556
+ for (const interceptor of this.interceptors) {
557
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
558
+ }
559
+ return interceptorPromise.then(() => {
560
+ if (Object.keys(localVarFormParams).length) {
561
+ if (localVarUseFormData) {
562
+ localVarRequestOptions.formData = localVarFormParams;
563
+ }
564
+ else {
565
+ localVarRequestOptions.form = localVarFormParams;
566
+ }
567
+ }
568
+ return new Promise((resolve, reject) => {
569
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
570
+ if (error) {
571
+ reject(error);
572
+ }
573
+ else {
574
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
575
+ body = models_1.ObjectSerializer.deserialize(body, "Array<SearchCustomAttributeTemplateGetModel>");
576
+ resolve({ response: response, body: body });
577
+ }
578
+ else {
579
+ reject(new apis_1.HttpError(response, body, response.statusCode));
580
+ }
581
+ }
582
+ });
583
+ });
584
+ });
585
+ });
586
+ }
587
+ }
588
+ exports.CustomAttributeTemplatesApi = CustomAttributeTemplatesApi;
589
589
  //# sourceMappingURL=customAttributeTemplatesApi.js.map