@makeplane/plane-node-sdk 0.1.3 → 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 (400) hide show
  1. package/.github/workflows/publish-node-sdk.yml +23 -5
  2. package/.openapi-generator/FILES +18 -3
  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 +24 -8
  35. package/dist/apis/WorkItemPropertiesApi.js +86 -4
  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 +56 -4
  41. package/dist/apis/WorkItemsApi.js +262 -2
  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 +211 -0
  87. package/dist/models/IssueDetail.js +108 -0
  88. package/dist/models/IssueExpand.d.ts +5 -7
  89. package/dist/models/IssueExpand.js +3 -5
  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 +39 -0
  109. package/dist/models/IssuePropertyValueAPIDetail.js +54 -0
  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 +4 -5
  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 +15 -3
  259. package/dist/models/index.js +15 -3
  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 +90 -10
  279. package/src/apis/WorkItemTypesApi.ts +1 -1
  280. package/src/apis/WorkItemWorklogsApi.ts +1 -1
  281. package/src/apis/WorkItemsApi.ts +272 -4
  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 +319 -0
  305. package/src/models/IssueExpand.ts +7 -21
  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 +76 -0
  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 +4 -5
  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 +15 -3
  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/LabelLite.d.ts +0 -46
  395. package/dist/models/LabelLite.js +0 -53
  396. package/dist/models/RelationTypeEnum.d.ts +0 -25
  397. package/dist/models/RelationTypeEnum.js +0 -51
  398. package/src/models/AccessEnum.ts +0 -53
  399. package/src/models/LabelLite.ts +0 -83
  400. package/src/models/RelationTypeEnum.ts +0 -53
@@ -0,0 +1,301 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The Plane REST API
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
+ *
7
+ * The version of the API Spec: 0.0.2
8
+ * Contact: support@plane.so
9
+ *
10
+ * NOTE: This class is auto generated.
11
+ * Do not edit the class manually.
12
+ */
13
+
14
+
15
+ import * as runtime from '../runtime';
16
+ import type {
17
+ PageCreateAPI,
18
+ PageCreateAPIRequest,
19
+ PageDetailAPI,
20
+ } from '../models/index';
21
+ import {
22
+ PageCreateAPIFromJSON,
23
+ PageCreateAPIToJSON,
24
+ PageCreateAPIRequestFromJSON,
25
+ PageCreateAPIRequestToJSON,
26
+ PageDetailAPIFromJSON,
27
+ PageDetailAPIToJSON,
28
+ } from '../models/index';
29
+
30
+ export interface CreateProjectPageRequest {
31
+ projectId: string;
32
+ slug: string;
33
+ pageCreateAPIRequest: PageCreateAPIRequest;
34
+ }
35
+
36
+ export interface CreateWorkspacePageRequest {
37
+ slug: string;
38
+ pageCreateAPIRequest: PageCreateAPIRequest;
39
+ }
40
+
41
+ export interface GetProjectPageDetailRequest {
42
+ pk: string;
43
+ projectId: string;
44
+ slug: string;
45
+ }
46
+
47
+ export interface GetWorkspacePageDetailRequest {
48
+ pk: string;
49
+ slug: string;
50
+ }
51
+
52
+ /**
53
+ *
54
+ */
55
+ export class PagesApi extends runtime.BaseAPI {
56
+
57
+ /**
58
+ * Create a project page
59
+ * Create a project page
60
+ */
61
+ async createProjectPageRaw(requestParameters: CreateProjectPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageCreateAPI>> {
62
+ if (requestParameters['projectId'] == null) {
63
+ throw new runtime.RequiredError(
64
+ 'projectId',
65
+ 'Required parameter "projectId" was null or undefined when calling createProjectPage().'
66
+ );
67
+ }
68
+
69
+ if (requestParameters['slug'] == null) {
70
+ throw new runtime.RequiredError(
71
+ 'slug',
72
+ 'Required parameter "slug" was null or undefined when calling createProjectPage().'
73
+ );
74
+ }
75
+
76
+ if (requestParameters['pageCreateAPIRequest'] == null) {
77
+ throw new runtime.RequiredError(
78
+ 'pageCreateAPIRequest',
79
+ 'Required parameter "pageCreateAPIRequest" was null or undefined when calling createProjectPage().'
80
+ );
81
+ }
82
+
83
+ const queryParameters: any = {};
84
+
85
+ const headerParameters: runtime.HTTPHeaders = {};
86
+
87
+ headerParameters['Content-Type'] = 'application/json';
88
+
89
+ if (this.configuration && this.configuration.apiKey) {
90
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
91
+ }
92
+
93
+ if (this.configuration && this.configuration.accessToken) {
94
+ // oauth required
95
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
96
+ }
97
+
98
+ if (this.configuration && this.configuration.accessToken) {
99
+ // oauth required
100
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
101
+ }
102
+
103
+ const response = await this.request({
104
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/pages/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
105
+ method: 'POST',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ body: PageCreateAPIRequestToJSON(requestParameters['pageCreateAPIRequest']),
109
+ }, initOverrides);
110
+
111
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageCreateAPIFromJSON(jsonValue));
112
+ }
113
+
114
+ /**
115
+ * Create a project page
116
+ * Create a project page
117
+ */
118
+ async createProjectPage(requestParameters: CreateProjectPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageCreateAPI> {
119
+ const response = await this.createProjectPageRaw(requestParameters, initOverrides);
120
+ return await response.value();
121
+ }
122
+
123
+ /**
124
+ * Create a workspace page
125
+ * Create a workspace page
126
+ */
127
+ async createWorkspacePageRaw(requestParameters: CreateWorkspacePageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageCreateAPI>> {
128
+ if (requestParameters['slug'] == null) {
129
+ throw new runtime.RequiredError(
130
+ 'slug',
131
+ 'Required parameter "slug" was null or undefined when calling createWorkspacePage().'
132
+ );
133
+ }
134
+
135
+ if (requestParameters['pageCreateAPIRequest'] == null) {
136
+ throw new runtime.RequiredError(
137
+ 'pageCreateAPIRequest',
138
+ 'Required parameter "pageCreateAPIRequest" was null or undefined when calling createWorkspacePage().'
139
+ );
140
+ }
141
+
142
+ const queryParameters: any = {};
143
+
144
+ const headerParameters: runtime.HTTPHeaders = {};
145
+
146
+ headerParameters['Content-Type'] = 'application/json';
147
+
148
+ if (this.configuration && this.configuration.apiKey) {
149
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
150
+ }
151
+
152
+ if (this.configuration && this.configuration.accessToken) {
153
+ // oauth required
154
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
155
+ }
156
+
157
+ if (this.configuration && this.configuration.accessToken) {
158
+ // oauth required
159
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
160
+ }
161
+
162
+ const response = await this.request({
163
+ path: `/api/v1/workspaces/{slug}/pages/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
164
+ method: 'POST',
165
+ headers: headerParameters,
166
+ query: queryParameters,
167
+ body: PageCreateAPIRequestToJSON(requestParameters['pageCreateAPIRequest']),
168
+ }, initOverrides);
169
+
170
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageCreateAPIFromJSON(jsonValue));
171
+ }
172
+
173
+ /**
174
+ * Create a workspace page
175
+ * Create a workspace page
176
+ */
177
+ async createWorkspacePage(requestParameters: CreateWorkspacePageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageCreateAPI> {
178
+ const response = await this.createWorkspacePageRaw(requestParameters, initOverrides);
179
+ return await response.value();
180
+ }
181
+
182
+ /**
183
+ * Get a project page by ID
184
+ * Get a project page by ID
185
+ */
186
+ async getProjectPageDetailRaw(requestParameters: GetProjectPageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageDetailAPI>> {
187
+ if (requestParameters['pk'] == null) {
188
+ throw new runtime.RequiredError(
189
+ 'pk',
190
+ 'Required parameter "pk" was null or undefined when calling getProjectPageDetail().'
191
+ );
192
+ }
193
+
194
+ if (requestParameters['projectId'] == null) {
195
+ throw new runtime.RequiredError(
196
+ 'projectId',
197
+ 'Required parameter "projectId" was null or undefined when calling getProjectPageDetail().'
198
+ );
199
+ }
200
+
201
+ if (requestParameters['slug'] == null) {
202
+ throw new runtime.RequiredError(
203
+ 'slug',
204
+ 'Required parameter "slug" was null or undefined when calling getProjectPageDetail().'
205
+ );
206
+ }
207
+
208
+ const queryParameters: any = {};
209
+
210
+ const headerParameters: runtime.HTTPHeaders = {};
211
+
212
+ if (this.configuration && this.configuration.apiKey) {
213
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
214
+ }
215
+
216
+ if (this.configuration && this.configuration.accessToken) {
217
+ // oauth required
218
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
219
+ }
220
+
221
+ if (this.configuration && this.configuration.accessToken) {
222
+ // oauth required
223
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
224
+ }
225
+
226
+ const response = await this.request({
227
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/pages/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
228
+ method: 'GET',
229
+ headers: headerParameters,
230
+ query: queryParameters,
231
+ }, initOverrides);
232
+
233
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageDetailAPIFromJSON(jsonValue));
234
+ }
235
+
236
+ /**
237
+ * Get a project page by ID
238
+ * Get a project page by ID
239
+ */
240
+ async getProjectPageDetail(requestParameters: GetProjectPageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageDetailAPI> {
241
+ const response = await this.getProjectPageDetailRaw(requestParameters, initOverrides);
242
+ return await response.value();
243
+ }
244
+
245
+ /**
246
+ * Get a workspace page by ID
247
+ * Get a workspace page by ID
248
+ */
249
+ async getWorkspacePageDetailRaw(requestParameters: GetWorkspacePageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageDetailAPI>> {
250
+ if (requestParameters['pk'] == null) {
251
+ throw new runtime.RequiredError(
252
+ 'pk',
253
+ 'Required parameter "pk" was null or undefined when calling getWorkspacePageDetail().'
254
+ );
255
+ }
256
+
257
+ if (requestParameters['slug'] == null) {
258
+ throw new runtime.RequiredError(
259
+ 'slug',
260
+ 'Required parameter "slug" was null or undefined when calling getWorkspacePageDetail().'
261
+ );
262
+ }
263
+
264
+ const queryParameters: any = {};
265
+
266
+ const headerParameters: runtime.HTTPHeaders = {};
267
+
268
+ if (this.configuration && this.configuration.apiKey) {
269
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
270
+ }
271
+
272
+ if (this.configuration && this.configuration.accessToken) {
273
+ // oauth required
274
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
275
+ }
276
+
277
+ if (this.configuration && this.configuration.accessToken) {
278
+ // oauth required
279
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
280
+ }
281
+
282
+ const response = await this.request({
283
+ path: `/api/v1/workspaces/{slug}/pages/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
284
+ method: 'GET',
285
+ headers: headerParameters,
286
+ query: queryParameters,
287
+ }, initOverrides);
288
+
289
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageDetailAPIFromJSON(jsonValue));
290
+ }
291
+
292
+ /**
293
+ * Get a workspace page by ID
294
+ * Get a workspace page by ID
295
+ */
296
+ async getWorkspacePageDetail(requestParameters: GetWorkspacePageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageDetailAPI> {
297
+ const response = await this.getWorkspacePageDetailRaw(requestParameters, initOverrides);
298
+ return await response.value();
299
+ }
300
+
301
+ }
@@ -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.
@@ -19,6 +19,7 @@ import type {
19
19
  IssuePropertyOptionAPI,
20
20
  IssuePropertyOptionAPIRequest,
21
21
  IssuePropertyValueAPI,
22
+ IssuePropertyValueAPIDetail,
22
23
  IssuePropertyValueAPIRequest,
23
24
  PatchedIssuePropertyAPIRequest,
24
25
  PatchedIssuePropertyOptionAPIRequest,
@@ -34,6 +35,8 @@ import {
34
35
  IssuePropertyOptionAPIRequestToJSON,
35
36
  IssuePropertyValueAPIFromJSON,
36
37
  IssuePropertyValueAPIToJSON,
38
+ IssuePropertyValueAPIDetailFromJSON,
39
+ IssuePropertyValueAPIDetailToJSON,
37
40
  IssuePropertyValueAPIRequestFromJSON,
38
41
  IssuePropertyValueAPIRequestToJSON,
39
42
  PatchedIssuePropertyAPIRequestFromJSON,
@@ -97,6 +100,13 @@ export interface ListIssuePropertyValuesRequest {
97
100
  slug: string;
98
101
  }
99
102
 
103
+ export interface ListIssuePropertyValuesForAWorkitemRequest {
104
+ issueId: string;
105
+ projectId: string;
106
+ propertyId: string;
107
+ slug: string;
108
+ }
109
+
100
110
  export interface RetrieveIssuePropertyRequest {
101
111
  projectId: string;
102
112
  propertyId: string;
@@ -500,7 +510,7 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
500
510
  * List issue properties
501
511
  * List issue properties
502
512
  */
503
- async listIssuePropertiesRaw(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI>> {
513
+ async listIssuePropertiesRaw(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyAPI>>> {
504
514
  if (requestParameters['projectId'] == null) {
505
515
  throw new runtime.RequiredError(
506
516
  'projectId',
@@ -547,14 +557,14 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
547
557
  query: queryParameters,
548
558
  }, initOverrides);
549
559
 
550
- return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON(jsonValue));
560
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyAPIFromJSON));
551
561
  }
552
562
 
553
563
  /**
554
564
  * List issue properties
555
565
  * List issue properties
556
566
  */
557
- async listIssueProperties(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI> {
567
+ async listIssueProperties(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyAPI>> {
558
568
  const response = await this.listIssuePropertiesRaw(requestParameters, initOverrides);
559
569
  return await response.value();
560
570
  }
@@ -563,7 +573,7 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
563
573
  * List issue property options
564
574
  * List issue property options
565
575
  */
566
- async listIssuePropertyOptionsRaw(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI>> {
576
+ async listIssuePropertyOptionsRaw(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyOptionAPI>>> {
567
577
  if (requestParameters['projectId'] == null) {
568
578
  throw new runtime.RequiredError(
569
579
  'projectId',
@@ -610,14 +620,14 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
610
620
  query: queryParameters,
611
621
  }, initOverrides);
612
622
 
613
- return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON(jsonValue));
623
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyOptionAPIFromJSON));
614
624
  }
615
625
 
616
626
  /**
617
627
  * List issue property options
618
628
  * List issue property options
619
629
  */
620
- async listIssuePropertyOptions(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI> {
630
+ async listIssuePropertyOptions(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyOptionAPI>> {
621
631
  const response = await this.listIssuePropertyOptionsRaw(requestParameters, initOverrides);
622
632
  return await response.value();
623
633
  }
@@ -626,7 +636,7 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
626
636
  * List issue property values
627
637
  * List issue property values
628
638
  */
629
- async listIssuePropertyValuesRaw(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyValueAPI>> {
639
+ async listIssuePropertyValuesRaw(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyValueAPIDetail>>> {
630
640
  if (requestParameters['issueId'] == null) {
631
641
  throw new runtime.RequiredError(
632
642
  'issueId',
@@ -680,18 +690,88 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
680
690
  query: queryParameters,
681
691
  }, initOverrides);
682
692
 
683
- return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyValueAPIFromJSON(jsonValue));
693
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyValueAPIDetailFromJSON));
684
694
  }
685
695
 
686
696
  /**
687
697
  * List issue property values
688
698
  * List issue property values
689
699
  */
690
- async listIssuePropertyValues(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyValueAPI> {
700
+ async listIssuePropertyValues(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyValueAPIDetail>> {
691
701
  const response = await this.listIssuePropertyValuesRaw(requestParameters, initOverrides);
692
702
  return await response.value();
693
703
  }
694
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
+
695
775
  /**
696
776
  * Get issue property by id
697
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.