@makeplane/plane-node-sdk 0.1.4 → 0.1.5

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 (397) hide show
  1. package/.github/workflows/publish-node-sdk.yml +1 -2
  2. package/.openapi-generator/FILES +16 -2
  3. package/README.md +2 -2
  4. package/dist/apis/AssetsApi.d.ts +1 -1
  5. package/dist/apis/AssetsApi.js +1 -1
  6. package/dist/apis/CyclesApi.d.ts +3 -3
  7. package/dist/apis/CyclesApi.js +2 -2
  8. package/dist/apis/EpicsApi.d.ts +49 -0
  9. package/dist/apis/EpicsApi.js +243 -0
  10. package/dist/apis/IntakeApi.d.ts +1 -1
  11. package/dist/apis/IntakeApi.js +1 -1
  12. package/dist/apis/LabelsApi.d.ts +1 -1
  13. package/dist/apis/LabelsApi.js +1 -1
  14. package/dist/apis/MembersApi.d.ts +1 -1
  15. package/dist/apis/MembersApi.js +1 -1
  16. package/dist/apis/ModulesApi.d.ts +3 -3
  17. package/dist/apis/ModulesApi.js +2 -2
  18. package/dist/apis/PagesApi.d.ts +75 -0
  19. package/dist/apis/PagesApi.js +393 -0
  20. package/dist/apis/ProjectsApi.d.ts +1 -1
  21. package/dist/apis/ProjectsApi.js +1 -1
  22. package/dist/apis/StatesApi.d.ts +1 -1
  23. package/dist/apis/StatesApi.js +1 -1
  24. package/dist/apis/UsersApi.d.ts +1 -1
  25. package/dist/apis/UsersApi.js +1 -1
  26. package/dist/apis/WorkItemActivityApi.d.ts +1 -1
  27. package/dist/apis/WorkItemActivityApi.js +1 -1
  28. package/dist/apis/WorkItemAttachmentsApi.d.ts +18 -1
  29. package/dist/apis/WorkItemAttachmentsApi.js +83 -1
  30. package/dist/apis/WorkItemCommentsApi.d.ts +1 -1
  31. package/dist/apis/WorkItemCommentsApi.js +1 -1
  32. package/dist/apis/WorkItemLinksApi.d.ts +1 -1
  33. package/dist/apis/WorkItemLinksApi.js +1 -1
  34. package/dist/apis/WorkItemPropertiesApi.d.ts +17 -1
  35. package/dist/apis/WorkItemPropertiesApi.js +83 -1
  36. package/dist/apis/WorkItemTypesApi.d.ts +1 -1
  37. package/dist/apis/WorkItemTypesApi.js +1 -1
  38. package/dist/apis/WorkItemWorklogsApi.d.ts +1 -1
  39. package/dist/apis/WorkItemWorklogsApi.js +1 -1
  40. package/dist/apis/WorkItemsApi.d.ts +54 -2
  41. package/dist/apis/WorkItemsApi.js +261 -1
  42. package/dist/apis/WorkspacesApi.d.ts +28 -0
  43. package/dist/apis/WorkspacesApi.js +150 -0
  44. package/dist/apis/index.d.ts +3 -0
  45. package/dist/apis/index.js +3 -0
  46. package/dist/models/AccessBd4Enum.d.ts +25 -0
  47. package/dist/models/AccessBd4Enum.js +51 -0
  48. package/dist/models/Cycle.d.ts +1 -1
  49. package/dist/models/Cycle.js +1 -1
  50. package/dist/models/CycleCreateRequest.d.ts +1 -1
  51. package/dist/models/CycleCreateRequest.js +1 -1
  52. package/dist/models/CycleIssue.d.ts +1 -1
  53. package/dist/models/CycleIssue.js +1 -1
  54. package/dist/models/CycleIssueRequestRequest.d.ts +1 -1
  55. package/dist/models/CycleIssueRequestRequest.js +1 -1
  56. package/dist/models/CycleLite.d.ts +1 -1
  57. package/dist/models/CycleLite.js +1 -1
  58. package/dist/models/EntityTypeEnum.d.ts +1 -1
  59. package/dist/models/EntityTypeEnum.js +1 -1
  60. package/dist/models/Epic.d.ts +206 -0
  61. package/dist/models/Epic.js +106 -0
  62. package/dist/models/GenericAssetUploadRequest.d.ts +1 -1
  63. package/dist/models/GenericAssetUploadRequest.js +1 -1
  64. package/dist/models/GetWorkspaceMembers200ResponseInner.d.ts +1 -1
  65. package/dist/models/GetWorkspaceMembers200ResponseInner.js +1 -1
  66. package/dist/models/GroupEnum.d.ts +1 -1
  67. package/dist/models/GroupEnum.js +1 -1
  68. package/dist/models/IntakeIssue.d.ts +1 -1
  69. package/dist/models/IntakeIssue.js +1 -1
  70. package/dist/models/IntakeIssueCreateRequest.d.ts +1 -1
  71. package/dist/models/IntakeIssueCreateRequest.js +1 -1
  72. package/dist/models/IntakeWorkItemStatusEnum.d.ts +1 -1
  73. package/dist/models/IntakeWorkItemStatusEnum.js +1 -1
  74. package/dist/models/Issue.d.ts +1 -1
  75. package/dist/models/Issue.js +1 -1
  76. package/dist/models/IssueActivity.d.ts +1 -1
  77. package/dist/models/IssueActivity.js +1 -1
  78. package/dist/models/IssueAttachment.d.ts +1 -1
  79. package/dist/models/IssueAttachment.js +1 -1
  80. package/dist/models/IssueAttachmentUploadRequest.d.ts +1 -1
  81. package/dist/models/IssueAttachmentUploadRequest.js +1 -1
  82. package/dist/models/IssueComment.d.ts +4 -4
  83. package/dist/models/IssueComment.js +4 -4
  84. package/dist/models/IssueCommentCreateRequest.d.ts +4 -4
  85. package/dist/models/IssueCommentCreateRequest.js +4 -4
  86. package/dist/models/IssueDetail.d.ts +1 -1
  87. package/dist/models/IssueDetail.js +1 -1
  88. package/dist/models/IssueExpand.d.ts +1 -1
  89. package/dist/models/IssueExpand.js +1 -1
  90. package/dist/models/IssueForIntakeRequest.d.ts +1 -1
  91. package/dist/models/IssueForIntakeRequest.js +1 -1
  92. package/dist/models/IssueLink.d.ts +1 -1
  93. package/dist/models/IssueLink.js +1 -1
  94. package/dist/models/IssueLinkCreateRequest.d.ts +1 -1
  95. package/dist/models/IssueLinkCreateRequest.js +1 -1
  96. package/dist/models/IssuePropertyAPI.d.ts +4 -4
  97. package/dist/models/IssuePropertyAPI.js +4 -4
  98. package/dist/models/IssuePropertyAPIRelationTypeEnum.d.ts +25 -0
  99. package/dist/models/IssuePropertyAPIRelationTypeEnum.js +51 -0
  100. package/dist/models/IssuePropertyAPIRequest.d.ts +4 -4
  101. package/dist/models/IssuePropertyAPIRequest.js +4 -4
  102. package/dist/models/IssuePropertyOptionAPI.d.ts +1 -1
  103. package/dist/models/IssuePropertyOptionAPI.js +1 -1
  104. package/dist/models/IssuePropertyOptionAPIRequest.d.ts +1 -1
  105. package/dist/models/IssuePropertyOptionAPIRequest.js +1 -1
  106. package/dist/models/IssuePropertyValueAPI.d.ts +1 -1
  107. package/dist/models/IssuePropertyValueAPI.js +1 -1
  108. package/dist/models/IssuePropertyValueAPIDetail.d.ts +1 -1
  109. package/dist/models/IssuePropertyValueAPIDetail.js +1 -1
  110. package/dist/models/IssuePropertyValueAPIRequest.d.ts +1 -1
  111. package/dist/models/IssuePropertyValueAPIRequest.js +1 -1
  112. package/dist/models/IssueRelation.d.ts +106 -0
  113. package/dist/models/IssueRelation.js +58 -0
  114. package/dist/models/IssueRelationCreateRelationTypeEnum.d.ts +37 -0
  115. package/dist/models/IssueRelationCreateRelationTypeEnum.js +63 -0
  116. package/dist/models/IssueRelationCreateRequest.d.ts +50 -0
  117. package/dist/models/IssueRelationCreateRequest.js +55 -0
  118. package/dist/models/IssueRelationRemoveRequest.d.ts +34 -0
  119. package/dist/models/IssueRelationRemoveRequest.js +50 -0
  120. package/dist/models/IssueRelationResponse.d.ts +75 -0
  121. package/dist/models/IssueRelationResponse.js +78 -0
  122. package/dist/models/IssueRequest.d.ts +1 -1
  123. package/dist/models/IssueRequest.js +1 -1
  124. package/dist/models/IssueSearch.d.ts +1 -1
  125. package/dist/models/IssueSearch.js +1 -1
  126. package/dist/models/IssueSearchItem.d.ts +1 -1
  127. package/dist/models/IssueSearchItem.js +1 -1
  128. package/dist/models/IssueTypeAPI.d.ts +1 -1
  129. package/dist/models/IssueTypeAPI.js +1 -1
  130. package/dist/models/IssueTypeAPIRequest.d.ts +1 -1
  131. package/dist/models/IssueTypeAPIRequest.js +1 -1
  132. package/dist/models/IssueWorkLogAPI.d.ts +1 -1
  133. package/dist/models/IssueWorkLogAPI.js +1 -1
  134. package/dist/models/IssueWorkLogAPIRequest.d.ts +1 -1
  135. package/dist/models/IssueWorkLogAPIRequest.js +1 -1
  136. package/dist/models/Label.d.ts +1 -1
  137. package/dist/models/Label.js +1 -1
  138. package/dist/models/LabelCreateUpdateRequest.d.ts +1 -1
  139. package/dist/models/LabelCreateUpdateRequest.js +1 -1
  140. package/dist/models/Module.d.ts +1 -1
  141. package/dist/models/Module.js +1 -1
  142. package/dist/models/ModuleCreateRequest.d.ts +1 -1
  143. package/dist/models/ModuleCreateRequest.js +1 -1
  144. package/dist/models/ModuleIssue.d.ts +1 -1
  145. package/dist/models/ModuleIssue.js +1 -1
  146. package/dist/models/ModuleIssueRequestRequest.d.ts +1 -1
  147. package/dist/models/ModuleIssueRequestRequest.js +1 -1
  148. package/dist/models/ModuleLite.d.ts +1 -1
  149. package/dist/models/ModuleLite.js +1 -1
  150. package/dist/models/ModuleStatusEnum.d.ts +1 -1
  151. package/dist/models/ModuleStatusEnum.js +1 -1
  152. package/dist/models/NetworkEnum.d.ts +1 -1
  153. package/dist/models/NetworkEnum.js +1 -1
  154. package/dist/models/PageCreateAPI.d.ts +134 -0
  155. package/dist/models/PageCreateAPI.js +79 -0
  156. package/dist/models/PageCreateAPIAccessEnum.d.ts +25 -0
  157. package/dist/models/PageCreateAPIAccessEnum.js +51 -0
  158. package/dist/models/PageCreateAPIRequest.d.ts +86 -0
  159. package/dist/models/PageCreateAPIRequest.js +71 -0
  160. package/dist/models/PageDetailAPI.d.ts +79 -0
  161. package/dist/models/PageDetailAPI.js +57 -0
  162. package/dist/models/PaginatedArchivedCycleResponse.d.ts +1 -1
  163. package/dist/models/PaginatedArchivedCycleResponse.js +1 -1
  164. package/dist/models/PaginatedArchivedModuleResponse.d.ts +1 -1
  165. package/dist/models/PaginatedArchivedModuleResponse.js +1 -1
  166. package/dist/models/PaginatedCycleIssueResponse.d.ts +1 -1
  167. package/dist/models/PaginatedCycleIssueResponse.js +1 -1
  168. package/dist/models/PaginatedCycleResponse.d.ts +1 -1
  169. package/dist/models/PaginatedCycleResponse.js +1 -1
  170. package/dist/models/PaginatedEpicResponse.d.ts +98 -0
  171. package/dist/models/PaginatedEpicResponse.js +95 -0
  172. package/dist/models/PaginatedIntakeIssueResponse.d.ts +1 -1
  173. package/dist/models/PaginatedIntakeIssueResponse.js +1 -1
  174. package/dist/models/PaginatedIssueActivityDetailResponse.d.ts +1 -1
  175. package/dist/models/PaginatedIssueActivityDetailResponse.js +1 -1
  176. package/dist/models/PaginatedIssueActivityResponse.d.ts +1 -1
  177. package/dist/models/PaginatedIssueActivityResponse.js +1 -1
  178. package/dist/models/PaginatedIssueCommentResponse.d.ts +1 -1
  179. package/dist/models/PaginatedIssueCommentResponse.js +1 -1
  180. package/dist/models/PaginatedIssueLinkDetailResponse.d.ts +1 -1
  181. package/dist/models/PaginatedIssueLinkDetailResponse.js +1 -1
  182. package/dist/models/PaginatedIssueLinkResponse.d.ts +1 -1
  183. package/dist/models/PaginatedIssueLinkResponse.js +1 -1
  184. package/dist/models/PaginatedLabelResponse.d.ts +1 -1
  185. package/dist/models/PaginatedLabelResponse.js +1 -1
  186. package/dist/models/PaginatedModuleIssueResponse.d.ts +1 -1
  187. package/dist/models/PaginatedModuleIssueResponse.js +1 -1
  188. package/dist/models/PaginatedModuleResponse.d.ts +1 -1
  189. package/dist/models/PaginatedModuleResponse.js +1 -1
  190. package/dist/models/PaginatedProjectResponse.d.ts +1 -1
  191. package/dist/models/PaginatedProjectResponse.js +1 -1
  192. package/dist/models/PaginatedStateResponse.d.ts +1 -1
  193. package/dist/models/PaginatedStateResponse.js +1 -1
  194. package/dist/models/PaginatedWorkItemResponse.d.ts +1 -1
  195. package/dist/models/PaginatedWorkItemResponse.js +1 -1
  196. package/dist/models/PatchedAssetUpdateRequest.d.ts +1 -1
  197. package/dist/models/PatchedAssetUpdateRequest.js +1 -1
  198. package/dist/models/PatchedCycleUpdateRequest.d.ts +1 -1
  199. package/dist/models/PatchedCycleUpdateRequest.js +1 -1
  200. package/dist/models/PatchedGenericAssetUpdateRequest.d.ts +1 -1
  201. package/dist/models/PatchedGenericAssetUpdateRequest.js +1 -1
  202. package/dist/models/PatchedIntakeIssueUpdateRequest.d.ts +1 -1
  203. package/dist/models/PatchedIntakeIssueUpdateRequest.js +1 -1
  204. package/dist/models/PatchedIssueCommentCreateRequest.d.ts +4 -4
  205. package/dist/models/PatchedIssueCommentCreateRequest.js +4 -4
  206. package/dist/models/PatchedIssueLinkUpdateRequest.d.ts +1 -1
  207. package/dist/models/PatchedIssueLinkUpdateRequest.js +1 -1
  208. package/dist/models/PatchedIssuePropertyAPIRequest.d.ts +4 -4
  209. package/dist/models/PatchedIssuePropertyAPIRequest.js +4 -4
  210. package/dist/models/PatchedIssuePropertyOptionAPIRequest.d.ts +1 -1
  211. package/dist/models/PatchedIssuePropertyOptionAPIRequest.js +1 -1
  212. package/dist/models/PatchedIssueRequest.d.ts +1 -1
  213. package/dist/models/PatchedIssueRequest.js +1 -1
  214. package/dist/models/PatchedIssueTypeAPIRequest.d.ts +1 -1
  215. package/dist/models/PatchedIssueTypeAPIRequest.js +1 -1
  216. package/dist/models/PatchedIssueWorkLogAPIRequest.d.ts +1 -1
  217. package/dist/models/PatchedIssueWorkLogAPIRequest.js +1 -1
  218. package/dist/models/PatchedLabelCreateUpdateRequest.d.ts +1 -1
  219. package/dist/models/PatchedLabelCreateUpdateRequest.js +1 -1
  220. package/dist/models/PatchedModuleUpdateRequest.d.ts +1 -1
  221. package/dist/models/PatchedModuleUpdateRequest.js +1 -1
  222. package/dist/models/PatchedProjectUpdateRequest.d.ts +25 -1
  223. package/dist/models/PatchedProjectUpdateRequest.js +9 -1
  224. package/dist/models/PatchedStateRequest.d.ts +1 -1
  225. package/dist/models/PatchedStateRequest.js +1 -1
  226. package/dist/models/PriorityEnum.d.ts +1 -1
  227. package/dist/models/PriorityEnum.js +1 -1
  228. package/dist/models/Project.d.ts +1 -1
  229. package/dist/models/Project.js +1 -1
  230. package/dist/models/ProjectCreateRequest.d.ts +25 -1
  231. package/dist/models/ProjectCreateRequest.js +9 -1
  232. package/dist/models/ProjectWorklogSummary.d.ts +1 -1
  233. package/dist/models/ProjectWorklogSummary.js +1 -1
  234. package/dist/models/PropertyTypeEnum.d.ts +1 -1
  235. package/dist/models/PropertyTypeEnum.js +1 -1
  236. package/dist/models/RetrieveWorkItemAttachment400Response.d.ts +1 -1
  237. package/dist/models/RetrieveWorkItemAttachment400Response.js +1 -1
  238. package/dist/models/State.d.ts +1 -1
  239. package/dist/models/State.js +1 -1
  240. package/dist/models/StateLite.d.ts +1 -1
  241. package/dist/models/StateLite.js +1 -1
  242. package/dist/models/StateRequest.d.ts +1 -1
  243. package/dist/models/StateRequest.js +1 -1
  244. package/dist/models/TimezoneEnum.d.ts +1 -1
  245. package/dist/models/TimezoneEnum.js +1 -1
  246. package/dist/models/TransferCycleIssueRequestRequest.d.ts +1 -1
  247. package/dist/models/TransferCycleIssueRequestRequest.js +1 -1
  248. package/dist/models/TransferCycleWorkItems200Response.d.ts +1 -1
  249. package/dist/models/TransferCycleWorkItems200Response.js +1 -1
  250. package/dist/models/TransferCycleWorkItems400Response.d.ts +1 -1
  251. package/dist/models/TransferCycleWorkItems400Response.js +1 -1
  252. package/dist/models/TypeEnum.d.ts +1 -1
  253. package/dist/models/TypeEnum.js +1 -1
  254. package/dist/models/UserAssetUploadRequest.d.ts +1 -1
  255. package/dist/models/UserAssetUploadRequest.js +1 -1
  256. package/dist/models/UserLite.d.ts +1 -1
  257. package/dist/models/UserLite.js +1 -1
  258. package/dist/models/index.d.ts +13 -2
  259. package/dist/models/index.js +13 -2
  260. package/dist/runtime.d.ts +1 -1
  261. package/dist/runtime.js +1 -1
  262. package/package.json +1 -1
  263. package/src/apis/AssetsApi.ts +1 -1
  264. package/src/apis/CyclesApi.ts +4 -4
  265. package/src/apis/EpicsApi.ts +177 -0
  266. package/src/apis/IntakeApi.ts +1 -1
  267. package/src/apis/LabelsApi.ts +1 -1
  268. package/src/apis/MembersApi.ts +1 -1
  269. package/src/apis/ModulesApi.ts +4 -4
  270. package/src/apis/PagesApi.ts +301 -0
  271. package/src/apis/ProjectsApi.ts +1 -1
  272. package/src/apis/StatesApi.ts +1 -1
  273. package/src/apis/UsersApi.ts +1 -1
  274. package/src/apis/WorkItemActivityApi.ts +1 -1
  275. package/src/apis/WorkItemAttachmentsApi.ts +81 -1
  276. package/src/apis/WorkItemCommentsApi.ts +1 -1
  277. package/src/apis/WorkItemLinksApi.ts +1 -1
  278. package/src/apis/WorkItemPropertiesApi.ts +78 -1
  279. package/src/apis/WorkItemTypesApi.ts +1 -1
  280. package/src/apis/WorkItemWorklogsApi.ts +1 -1
  281. package/src/apis/WorkItemsApi.ts +266 -1
  282. package/src/apis/WorkspacesApi.ts +80 -0
  283. package/src/apis/index.ts +3 -0
  284. package/src/models/AccessBd4Enum.ts +53 -0
  285. package/src/models/Cycle.ts +1 -1
  286. package/src/models/CycleCreateRequest.ts +1 -1
  287. package/src/models/CycleIssue.ts +1 -1
  288. package/src/models/CycleIssueRequestRequest.ts +1 -1
  289. package/src/models/CycleLite.ts +1 -1
  290. package/src/models/EntityTypeEnum.ts +1 -1
  291. package/src/models/Epic.ts +302 -0
  292. package/src/models/GenericAssetUploadRequest.ts +1 -1
  293. package/src/models/GetWorkspaceMembers200ResponseInner.ts +1 -1
  294. package/src/models/GroupEnum.ts +1 -1
  295. package/src/models/IntakeIssue.ts +1 -1
  296. package/src/models/IntakeIssueCreateRequest.ts +1 -1
  297. package/src/models/IntakeWorkItemStatusEnum.ts +1 -1
  298. package/src/models/Issue.ts +1 -1
  299. package/src/models/IssueActivity.ts +1 -1
  300. package/src/models/IssueAttachment.ts +1 -1
  301. package/src/models/IssueAttachmentUploadRequest.ts +1 -1
  302. package/src/models/IssueComment.ts +11 -11
  303. package/src/models/IssueCommentCreateRequest.ts +11 -11
  304. package/src/models/IssueDetail.ts +1 -1
  305. package/src/models/IssueExpand.ts +1 -1
  306. package/src/models/IssueForIntakeRequest.ts +1 -1
  307. package/src/models/IssueLink.ts +1 -1
  308. package/src/models/IssueLinkCreateRequest.ts +1 -1
  309. package/src/models/IssuePropertyAPI.ts +11 -11
  310. package/src/models/IssuePropertyAPIRelationTypeEnum.ts +53 -0
  311. package/src/models/IssuePropertyAPIRequest.ts +11 -11
  312. package/src/models/IssuePropertyOptionAPI.ts +1 -1
  313. package/src/models/IssuePropertyOptionAPIRequest.ts +1 -1
  314. package/src/models/IssuePropertyValueAPI.ts +1 -1
  315. package/src/models/IssuePropertyValueAPIDetail.ts +1 -1
  316. package/src/models/IssuePropertyValueAPIRequest.ts +1 -1
  317. package/src/models/IssueRelation.ts +150 -0
  318. package/src/models/IssueRelationCreateRelationTypeEnum.ts +65 -0
  319. package/src/models/IssueRelationCreateRequest.ts +96 -0
  320. package/src/models/IssueRelationRemoveRequest.ts +68 -0
  321. package/src/models/IssueRelationResponse.ts +130 -0
  322. package/src/models/IssueRequest.ts +1 -1
  323. package/src/models/IssueSearch.ts +1 -1
  324. package/src/models/IssueSearchItem.ts +1 -1
  325. package/src/models/IssueTypeAPI.ts +1 -1
  326. package/src/models/IssueTypeAPIRequest.ts +1 -1
  327. package/src/models/IssueWorkLogAPI.ts +1 -1
  328. package/src/models/IssueWorkLogAPIRequest.ts +1 -1
  329. package/src/models/Label.ts +1 -1
  330. package/src/models/LabelCreateUpdateRequest.ts +1 -1
  331. package/src/models/Module.ts +1 -1
  332. package/src/models/ModuleCreateRequest.ts +1 -1
  333. package/src/models/ModuleIssue.ts +1 -1
  334. package/src/models/ModuleIssueRequestRequest.ts +1 -1
  335. package/src/models/ModuleLite.ts +1 -1
  336. package/src/models/ModuleStatusEnum.ts +1 -1
  337. package/src/models/NetworkEnum.ts +1 -1
  338. package/src/models/PageCreateAPI.ts +204 -0
  339. package/src/models/PageCreateAPIAccessEnum.ts +53 -0
  340. package/src/models/PageCreateAPIRequest.ts +148 -0
  341. package/src/models/PageDetailAPI.ts +121 -0
  342. package/src/models/PaginatedArchivedCycleResponse.ts +1 -1
  343. package/src/models/PaginatedArchivedModuleResponse.ts +1 -1
  344. package/src/models/PaginatedCycleIssueResponse.ts +1 -1
  345. package/src/models/PaginatedCycleResponse.ts +1 -1
  346. package/src/models/PaginatedEpicResponse.ts +172 -0
  347. package/src/models/PaginatedIntakeIssueResponse.ts +1 -1
  348. package/src/models/PaginatedIssueActivityDetailResponse.ts +1 -1
  349. package/src/models/PaginatedIssueActivityResponse.ts +1 -1
  350. package/src/models/PaginatedIssueCommentResponse.ts +1 -1
  351. package/src/models/PaginatedIssueLinkDetailResponse.ts +1 -1
  352. package/src/models/PaginatedIssueLinkResponse.ts +1 -1
  353. package/src/models/PaginatedLabelResponse.ts +1 -1
  354. package/src/models/PaginatedModuleIssueResponse.ts +1 -1
  355. package/src/models/PaginatedModuleResponse.ts +1 -1
  356. package/src/models/PaginatedProjectResponse.ts +1 -1
  357. package/src/models/PaginatedStateResponse.ts +1 -1
  358. package/src/models/PaginatedWorkItemResponse.ts +1 -1
  359. package/src/models/PatchedAssetUpdateRequest.ts +1 -1
  360. package/src/models/PatchedCycleUpdateRequest.ts +1 -1
  361. package/src/models/PatchedGenericAssetUpdateRequest.ts +1 -1
  362. package/src/models/PatchedIntakeIssueUpdateRequest.ts +1 -1
  363. package/src/models/PatchedIssueCommentCreateRequest.ts +11 -11
  364. package/src/models/PatchedIssueLinkUpdateRequest.ts +1 -1
  365. package/src/models/PatchedIssuePropertyAPIRequest.ts +11 -11
  366. package/src/models/PatchedIssuePropertyOptionAPIRequest.ts +1 -1
  367. package/src/models/PatchedIssueRequest.ts +1 -1
  368. package/src/models/PatchedIssueTypeAPIRequest.ts +1 -1
  369. package/src/models/PatchedIssueWorkLogAPIRequest.ts +1 -1
  370. package/src/models/PatchedLabelCreateUpdateRequest.ts +1 -1
  371. package/src/models/PatchedModuleUpdateRequest.ts +1 -1
  372. package/src/models/PatchedProjectUpdateRequest.ts +33 -1
  373. package/src/models/PatchedStateRequest.ts +1 -1
  374. package/src/models/PriorityEnum.ts +1 -1
  375. package/src/models/Project.ts +1 -1
  376. package/src/models/ProjectCreateRequest.ts +33 -1
  377. package/src/models/ProjectWorklogSummary.ts +1 -1
  378. package/src/models/PropertyTypeEnum.ts +1 -1
  379. package/src/models/RetrieveWorkItemAttachment400Response.ts +1 -1
  380. package/src/models/State.ts +1 -1
  381. package/src/models/StateLite.ts +1 -1
  382. package/src/models/StateRequest.ts +1 -1
  383. package/src/models/TimezoneEnum.ts +1 -1
  384. package/src/models/TransferCycleIssueRequestRequest.ts +1 -1
  385. package/src/models/TransferCycleWorkItems200Response.ts +1 -1
  386. package/src/models/TransferCycleWorkItems400Response.ts +1 -1
  387. package/src/models/TypeEnum.ts +1 -1
  388. package/src/models/UserAssetUploadRequest.ts +1 -1
  389. package/src/models/UserLite.ts +1 -1
  390. package/src/models/index.ts +13 -2
  391. package/src/runtime.ts +1 -1
  392. package/dist/models/AccessEnum.d.ts +0 -25
  393. package/dist/models/AccessEnum.js +0 -51
  394. package/dist/models/RelationTypeEnum.d.ts +0 -25
  395. package/dist/models/RelationTypeEnum.js +0 -51
  396. package/src/models/AccessEnum.ts +0 -53
  397. package/src/models/RelationTypeEnum.ts +0 -53
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -54,6 +54,14 @@ export interface RetrieveWorkItemAttachmentRequest {
54
54
  slug: string;
55
55
  }
56
56
 
57
+ export interface UploadWorkItemAttachmentRequest {
58
+ issueId: string;
59
+ pk: string;
60
+ projectId: string;
61
+ slug: string;
62
+ body?: any | null;
63
+ }
64
+
57
65
  /**
58
66
  *
59
67
  */
@@ -332,4 +340,76 @@ export class WorkItemAttachmentsApi extends runtime.BaseAPI {
332
340
  await this.retrieveWorkItemAttachmentRaw(requestParameters, initOverrides);
333
341
  }
334
342
 
343
+ /**
344
+ * Mark an attachment as uploaded after successful file transfer to storage.
345
+ * Endpoints for issue attachment create/update/delete and fetch issue attachment details
346
+ */
347
+ async uploadWorkItemAttachmentRaw(requestParameters: UploadWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
348
+ if (requestParameters['issueId'] == null) {
349
+ throw new runtime.RequiredError(
350
+ 'issueId',
351
+ 'Required parameter "issueId" was null or undefined when calling uploadWorkItemAttachment().'
352
+ );
353
+ }
354
+
355
+ if (requestParameters['pk'] == null) {
356
+ throw new runtime.RequiredError(
357
+ 'pk',
358
+ 'Required parameter "pk" was null or undefined when calling uploadWorkItemAttachment().'
359
+ );
360
+ }
361
+
362
+ if (requestParameters['projectId'] == null) {
363
+ throw new runtime.RequiredError(
364
+ 'projectId',
365
+ 'Required parameter "projectId" was null or undefined when calling uploadWorkItemAttachment().'
366
+ );
367
+ }
368
+
369
+ if (requestParameters['slug'] == null) {
370
+ throw new runtime.RequiredError(
371
+ 'slug',
372
+ 'Required parameter "slug" was null or undefined when calling uploadWorkItemAttachment().'
373
+ );
374
+ }
375
+
376
+ const queryParameters: any = {};
377
+
378
+ const headerParameters: runtime.HTTPHeaders = {};
379
+
380
+ headerParameters['Content-Type'] = 'application/json';
381
+
382
+ if (this.configuration && this.configuration.apiKey) {
383
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
384
+ }
385
+
386
+ if (this.configuration && this.configuration.accessToken) {
387
+ // oauth required
388
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
389
+ }
390
+
391
+ if (this.configuration && this.configuration.accessToken) {
392
+ // oauth required
393
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
394
+ }
395
+
396
+ const response = await this.request({
397
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-attachments/{pk}/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
398
+ method: 'PATCH',
399
+ headers: headerParameters,
400
+ query: queryParameters,
401
+ body: requestParameters['body'] as any,
402
+ }, initOverrides);
403
+
404
+ return new runtime.VoidApiResponse(response);
405
+ }
406
+
407
+ /**
408
+ * Mark an attachment as uploaded after successful file transfer to storage.
409
+ * Endpoints for issue attachment create/update/delete and fetch issue attachment details
410
+ */
411
+ async uploadWorkItemAttachment(requestParameters: UploadWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
412
+ await this.uploadWorkItemAttachmentRaw(requestParameters, initOverrides);
413
+ }
414
+
335
415
  }
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -100,6 +100,13 @@ export interface ListIssuePropertyValuesRequest {
100
100
  slug: string;
101
101
  }
102
102
 
103
+ export interface ListIssuePropertyValuesForAWorkitemRequest {
104
+ issueId: string;
105
+ projectId: string;
106
+ propertyId: string;
107
+ slug: string;
108
+ }
109
+
103
110
  export interface RetrieveIssuePropertyRequest {
104
111
  projectId: string;
105
112
  propertyId: string;
@@ -695,6 +702,76 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
695
702
  return await response.value();
696
703
  }
697
704
 
705
+ /**
706
+ * List issue property values for a workitem
707
+ * List issue property values for a workitem
708
+ */
709
+ async listIssuePropertyValuesForAWorkitemRaw(requestParameters: ListIssuePropertyValuesForAWorkitemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyValueAPI>> {
710
+ if (requestParameters['issueId'] == null) {
711
+ throw new runtime.RequiredError(
712
+ 'issueId',
713
+ 'Required parameter "issueId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
714
+ );
715
+ }
716
+
717
+ if (requestParameters['projectId'] == null) {
718
+ throw new runtime.RequiredError(
719
+ 'projectId',
720
+ 'Required parameter "projectId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
721
+ );
722
+ }
723
+
724
+ if (requestParameters['propertyId'] == null) {
725
+ throw new runtime.RequiredError(
726
+ 'propertyId',
727
+ 'Required parameter "propertyId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
728
+ );
729
+ }
730
+
731
+ if (requestParameters['slug'] == null) {
732
+ throw new runtime.RequiredError(
733
+ 'slug',
734
+ 'Required parameter "slug" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
735
+ );
736
+ }
737
+
738
+ const queryParameters: any = {};
739
+
740
+ const headerParameters: runtime.HTTPHeaders = {};
741
+
742
+ if (this.configuration && this.configuration.apiKey) {
743
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
744
+ }
745
+
746
+ if (this.configuration && this.configuration.accessToken) {
747
+ // oauth required
748
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
749
+ }
750
+
751
+ if (this.configuration && this.configuration.accessToken) {
752
+ // oauth required
753
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
754
+ }
755
+
756
+ const response = await this.request({
757
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/values/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
758
+ method: 'GET',
759
+ headers: headerParameters,
760
+ query: queryParameters,
761
+ }, initOverrides);
762
+
763
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyValueAPIFromJSON(jsonValue));
764
+ }
765
+
766
+ /**
767
+ * List issue property values for a workitem
768
+ * List issue property values for a workitem
769
+ */
770
+ async listIssuePropertyValuesForAWorkitem(requestParameters: ListIssuePropertyValuesForAWorkitemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyValueAPI> {
771
+ const response = await this.listIssuePropertyValuesForAWorkitemRaw(requestParameters, initOverrides);
772
+ return await response.value();
773
+ }
774
+
698
775
  /**
699
776
  * Get issue property by id
700
777
  * Get issue property by id
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -4,7 +4,7 @@
4
4
  * The Plane REST API
5
5
  * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
6
6
  *
7
- * The version of the API Spec: 0.0.1
7
+ * The version of the API Spec: 0.0.2
8
8
  * Contact: support@plane.so
9
9
  *
10
10
  * NOTE: This class is auto generated.
@@ -16,6 +16,10 @@ import * as runtime from '../runtime';
16
16
  import type {
17
17
  Issue,
18
18
  IssueDetail,
19
+ IssueRelation,
20
+ IssueRelationCreateRequest,
21
+ IssueRelationRemoveRequest,
22
+ IssueRelationResponse,
19
23
  IssueRequest,
20
24
  IssueSearch,
21
25
  PaginatedWorkItemResponse,
@@ -26,6 +30,14 @@ import {
26
30
  IssueToJSON,
27
31
  IssueDetailFromJSON,
28
32
  IssueDetailToJSON,
33
+ IssueRelationFromJSON,
34
+ IssueRelationToJSON,
35
+ IssueRelationCreateRequestFromJSON,
36
+ IssueRelationCreateRequestToJSON,
37
+ IssueRelationRemoveRequestFromJSON,
38
+ IssueRelationRemoveRequestToJSON,
39
+ IssueRelationResponseFromJSON,
40
+ IssueRelationResponseToJSON,
29
41
  IssueRequestFromJSON,
30
42
  IssueRequestToJSON,
31
43
  IssueSearchFromJSON,
@@ -42,6 +54,13 @@ export interface CreateWorkItemRequest {
42
54
  issueRequest: IssueRequest;
43
55
  }
44
56
 
57
+ export interface CreateWorkItemRelationRequest {
58
+ issueId: string;
59
+ projectId: string;
60
+ slug: string;
61
+ issueRelationCreateRequest: IssueRelationCreateRequest;
62
+ }
63
+
45
64
  export interface DeleteWorkItemRequest {
46
65
  pk: string;
47
66
  projectId: string;
@@ -54,6 +73,17 @@ export interface GetWorkspaceWorkItemRequest {
54
73
  slug: string;
55
74
  }
56
75
 
76
+ export interface ListWorkItemRelationsRequest {
77
+ issueId: string;
78
+ projectId: string;
79
+ slug: string;
80
+ cursor?: string;
81
+ expand?: string;
82
+ fields?: string;
83
+ orderBy?: string;
84
+ perPage?: number;
85
+ }
86
+
57
87
  export interface ListWorkItemsRequest {
58
88
  projectId: string;
59
89
  slug: string;
@@ -66,6 +96,13 @@ export interface ListWorkItemsRequest {
66
96
  perPage?: number;
67
97
  }
68
98
 
99
+ export interface RemoveWorkItemRelationRequest {
100
+ issueId: string;
101
+ projectId: string;
102
+ slug: string;
103
+ issueRelationRemoveRequest: IssueRelationRemoveRequest;
104
+ }
105
+
69
106
  export interface RetrieveWorkItemRequest {
70
107
  pk: string;
71
108
  projectId: string;
@@ -163,6 +200,79 @@ export class WorkItemsApi extends runtime.BaseAPI {
163
200
  return await response.value();
164
201
  }
165
202
 
203
+ /**
204
+ * Create relationships between work items. Supports various relation types including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after.
205
+ * Create work item relation
206
+ */
207
+ async createWorkItemRelationRaw(requestParameters: CreateWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssueRelation>>> {
208
+ if (requestParameters['issueId'] == null) {
209
+ throw new runtime.RequiredError(
210
+ 'issueId',
211
+ 'Required parameter "issueId" was null or undefined when calling createWorkItemRelation().'
212
+ );
213
+ }
214
+
215
+ if (requestParameters['projectId'] == null) {
216
+ throw new runtime.RequiredError(
217
+ 'projectId',
218
+ 'Required parameter "projectId" was null or undefined when calling createWorkItemRelation().'
219
+ );
220
+ }
221
+
222
+ if (requestParameters['slug'] == null) {
223
+ throw new runtime.RequiredError(
224
+ 'slug',
225
+ 'Required parameter "slug" was null or undefined when calling createWorkItemRelation().'
226
+ );
227
+ }
228
+
229
+ if (requestParameters['issueRelationCreateRequest'] == null) {
230
+ throw new runtime.RequiredError(
231
+ 'issueRelationCreateRequest',
232
+ 'Required parameter "issueRelationCreateRequest" was null or undefined when calling createWorkItemRelation().'
233
+ );
234
+ }
235
+
236
+ const queryParameters: any = {};
237
+
238
+ const headerParameters: runtime.HTTPHeaders = {};
239
+
240
+ headerParameters['Content-Type'] = 'application/json';
241
+
242
+ if (this.configuration && this.configuration.apiKey) {
243
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
244
+ }
245
+
246
+ if (this.configuration && this.configuration.accessToken) {
247
+ // oauth required
248
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
249
+ }
250
+
251
+ if (this.configuration && this.configuration.accessToken) {
252
+ // oauth required
253
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
254
+ }
255
+
256
+ const response = await this.request({
257
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
258
+ method: 'POST',
259
+ headers: headerParameters,
260
+ query: queryParameters,
261
+ body: IssueRelationCreateRequestToJSON(requestParameters['issueRelationCreateRequest']),
262
+ }, initOverrides);
263
+
264
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssueRelationFromJSON));
265
+ }
266
+
267
+ /**
268
+ * Create relationships between work items. Supports various relation types including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after.
269
+ * Create work item relation
270
+ */
271
+ async createWorkItemRelation(requestParameters: CreateWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssueRelation>> {
272
+ const response = await this.createWorkItemRelationRaw(requestParameters, initOverrides);
273
+ return await response.value();
274
+ }
275
+
166
276
  /**
167
277
  * Permanently delete an existing work item from the project. Only admins or the item creator can perform this action.
168
278
  * Delete work item
@@ -288,6 +398,89 @@ export class WorkItemsApi extends runtime.BaseAPI {
288
398
  return await response.value();
289
399
  }
290
400
 
401
+ /**
402
+ * Retrieve all relationships for a work item including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after relations.
403
+ * List work item relations
404
+ */
405
+ async listWorkItemRelationsRaw(requestParameters: ListWorkItemRelationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueRelationResponse>> {
406
+ if (requestParameters['issueId'] == null) {
407
+ throw new runtime.RequiredError(
408
+ 'issueId',
409
+ 'Required parameter "issueId" was null or undefined when calling listWorkItemRelations().'
410
+ );
411
+ }
412
+
413
+ if (requestParameters['projectId'] == null) {
414
+ throw new runtime.RequiredError(
415
+ 'projectId',
416
+ 'Required parameter "projectId" was null or undefined when calling listWorkItemRelations().'
417
+ );
418
+ }
419
+
420
+ if (requestParameters['slug'] == null) {
421
+ throw new runtime.RequiredError(
422
+ 'slug',
423
+ 'Required parameter "slug" was null or undefined when calling listWorkItemRelations().'
424
+ );
425
+ }
426
+
427
+ const queryParameters: any = {};
428
+
429
+ if (requestParameters['cursor'] != null) {
430
+ queryParameters['cursor'] = requestParameters['cursor'];
431
+ }
432
+
433
+ if (requestParameters['expand'] != null) {
434
+ queryParameters['expand'] = requestParameters['expand'];
435
+ }
436
+
437
+ if (requestParameters['fields'] != null) {
438
+ queryParameters['fields'] = requestParameters['fields'];
439
+ }
440
+
441
+ if (requestParameters['orderBy'] != null) {
442
+ queryParameters['order_by'] = requestParameters['orderBy'];
443
+ }
444
+
445
+ if (requestParameters['perPage'] != null) {
446
+ queryParameters['per_page'] = requestParameters['perPage'];
447
+ }
448
+
449
+ const headerParameters: runtime.HTTPHeaders = {};
450
+
451
+ if (this.configuration && this.configuration.apiKey) {
452
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
453
+ }
454
+
455
+ if (this.configuration && this.configuration.accessToken) {
456
+ // oauth required
457
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
458
+ }
459
+
460
+ if (this.configuration && this.configuration.accessToken) {
461
+ // oauth required
462
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
463
+ }
464
+
465
+ const response = await this.request({
466
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
467
+ method: 'GET',
468
+ headers: headerParameters,
469
+ query: queryParameters,
470
+ }, initOverrides);
471
+
472
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssueRelationResponseFromJSON(jsonValue));
473
+ }
474
+
475
+ /**
476
+ * Retrieve all relationships for a work item including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after relations.
477
+ * List work item relations
478
+ */
479
+ async listWorkItemRelations(requestParameters: ListWorkItemRelationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueRelationResponse> {
480
+ const response = await this.listWorkItemRelationsRaw(requestParameters, initOverrides);
481
+ return await response.value();
482
+ }
483
+
291
484
  /**
292
485
  * Retrieve a paginated list of all work items in a project. Supports filtering, ordering, and field selection through query parameters.
293
486
  * List work items
@@ -372,6 +565,78 @@ export class WorkItemsApi extends runtime.BaseAPI {
372
565
  return await response.value();
373
566
  }
374
567
 
568
+ /**
569
+ * Remove a relationship between work items by specifying the related work item ID.
570
+ * Remove work item relation
571
+ */
572
+ async removeWorkItemRelationRaw(requestParameters: RemoveWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
573
+ if (requestParameters['issueId'] == null) {
574
+ throw new runtime.RequiredError(
575
+ 'issueId',
576
+ 'Required parameter "issueId" was null or undefined when calling removeWorkItemRelation().'
577
+ );
578
+ }
579
+
580
+ if (requestParameters['projectId'] == null) {
581
+ throw new runtime.RequiredError(
582
+ 'projectId',
583
+ 'Required parameter "projectId" was null or undefined when calling removeWorkItemRelation().'
584
+ );
585
+ }
586
+
587
+ if (requestParameters['slug'] == null) {
588
+ throw new runtime.RequiredError(
589
+ 'slug',
590
+ 'Required parameter "slug" was null or undefined when calling removeWorkItemRelation().'
591
+ );
592
+ }
593
+
594
+ if (requestParameters['issueRelationRemoveRequest'] == null) {
595
+ throw new runtime.RequiredError(
596
+ 'issueRelationRemoveRequest',
597
+ 'Required parameter "issueRelationRemoveRequest" was null or undefined when calling removeWorkItemRelation().'
598
+ );
599
+ }
600
+
601
+ const queryParameters: any = {};
602
+
603
+ const headerParameters: runtime.HTTPHeaders = {};
604
+
605
+ headerParameters['Content-Type'] = 'application/json';
606
+
607
+ if (this.configuration && this.configuration.apiKey) {
608
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
609
+ }
610
+
611
+ if (this.configuration && this.configuration.accessToken) {
612
+ // oauth required
613
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
614
+ }
615
+
616
+ if (this.configuration && this.configuration.accessToken) {
617
+ // oauth required
618
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
619
+ }
620
+
621
+ const response = await this.request({
622
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/remove/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
623
+ method: 'POST',
624
+ headers: headerParameters,
625
+ query: queryParameters,
626
+ body: IssueRelationRemoveRequestToJSON(requestParameters['issueRelationRemoveRequest']),
627
+ }, initOverrides);
628
+
629
+ return new runtime.VoidApiResponse(response);
630
+ }
631
+
632
+ /**
633
+ * Remove a relationship between work items by specifying the related work item ID.
634
+ * Remove work item relation
635
+ */
636
+ async removeWorkItemRelation(requestParameters: RemoveWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
637
+ await this.removeWorkItemRelationRaw(requestParameters, initOverrides);
638
+ }
639
+
375
640
  /**
376
641
  * Retrieve details of a specific work item.
377
642
  * Retrieve work item