@makeplane/plane-node-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/.github/workflows/publish-node-sdk.yml +24 -0
  2. package/.openapi-generator/FILES +119 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/README.md +95 -0
  6. package/dist/apis/AssetsApi.d.ts +100 -0
  7. package/dist/apis/AssetsApi.js +522 -0
  8. package/dist/apis/CyclesApi.d.ts +225 -0
  9. package/dist/apis/CyclesApi.js +1142 -0
  10. package/dist/apis/IntakeApi.d.ts +96 -0
  11. package/dist/apis/IntakeApi.js +485 -0
  12. package/dist/apis/LabelsApi.d.ts +97 -0
  13. package/dist/apis/LabelsApi.js +488 -0
  14. package/dist/apis/MembersApi.d.ts +44 -0
  15. package/dist/apis/MembersApi.js +228 -0
  16. package/dist/apis/ModulesApi.d.ts +198 -0
  17. package/dist/apis/ModulesApi.js +991 -0
  18. package/dist/apis/ProjectsApi.d.ts +120 -0
  19. package/dist/apis/ProjectsApi.js +621 -0
  20. package/dist/apis/StatesApi.d.ts +96 -0
  21. package/dist/apis/StatesApi.js +485 -0
  22. package/dist/apis/UsersApi.d.ts +27 -0
  23. package/dist/apis/UsersApi.js +149 -0
  24. package/dist/apis/WorkItemActivityApi.d.ts +58 -0
  25. package/dist/apis/WorkItemActivityApi.js +270 -0
  26. package/dist/apis/WorkItemAttachmentsApi.d.ts +80 -0
  27. package/dist/apis/WorkItemAttachmentsApi.js +400 -0
  28. package/dist/apis/WorkItemCommentsApi.d.ts +102 -0
  29. package/dist/apis/WorkItemCommentsApi.js +500 -0
  30. package/dist/apis/WorkItemLinksApi.d.ts +106 -0
  31. package/dist/apis/WorkItemLinksApi.js +515 -0
  32. package/dist/apis/WorkItemPropertiesApi.d.ts +210 -0
  33. package/dist/apis/WorkItemPropertiesApi.js +1066 -0
  34. package/dist/apis/WorkItemTypesApi.d.ts +92 -0
  35. package/dist/apis/WorkItemTypesApi.js +473 -0
  36. package/dist/apis/WorkItemWorklogsApi.d.ts +95 -0
  37. package/dist/apis/WorkItemWorklogsApi.js +479 -0
  38. package/dist/apis/WorkItemsApi.d.ts +134 -0
  39. package/dist/apis/WorkItemsApi.js +674 -0
  40. package/dist/apis/index.d.ts +17 -0
  41. package/dist/apis/index.js +34 -0
  42. package/dist/index.d.ts +3 -0
  43. package/dist/index.js +20 -0
  44. package/dist/models/AccessEnum.d.ts +25 -0
  45. package/dist/models/AccessEnum.js +51 -0
  46. package/dist/models/Cycle.d.ts +215 -0
  47. package/dist/models/Cycle.js +93 -0
  48. package/dist/models/CycleCreateRequest.d.ts +77 -0
  49. package/dist/models/CycleCreateRequest.js +67 -0
  50. package/dist/models/CycleIssue.d.ts +94 -0
  51. package/dist/models/CycleIssue.js +65 -0
  52. package/dist/models/CycleIssueRequestRequest.d.ts +34 -0
  53. package/dist/models/CycleIssueRequestRequest.js +50 -0
  54. package/dist/models/CycleLite.d.ts +161 -0
  55. package/dist/models/CycleLite.js +96 -0
  56. package/dist/models/EntityTypeEnum.d.ts +25 -0
  57. package/dist/models/EntityTypeEnum.js +51 -0
  58. package/dist/models/GenericAssetUploadRequest.d.ts +65 -0
  59. package/dist/models/GenericAssetUploadRequest.js +62 -0
  60. package/dist/models/GetWorkspaceMembers200ResponseInner.d.ts +73 -0
  61. package/dist/models/GetWorkspaceMembers200ResponseInner.js +55 -0
  62. package/dist/models/GroupEnum.d.ts +33 -0
  63. package/dist/models/GroupEnum.js +59 -0
  64. package/dist/models/IntakeIssue.d.ts +150 -0
  65. package/dist/models/IntakeIssue.js +80 -0
  66. package/dist/models/IntakeIssueCreateRequest.d.ts +72 -0
  67. package/dist/models/IntakeIssueCreateRequest.js +66 -0
  68. package/dist/models/IntakeWorkItemStatusEnum.d.ts +31 -0
  69. package/dist/models/IntakeWorkItemStatusEnum.js +57 -0
  70. package/dist/models/Issue.d.ts +197 -0
  71. package/dist/models/Issue.js +98 -0
  72. package/dist/models/IssueActivity.d.ts +136 -0
  73. package/dist/models/IssueActivity.js +83 -0
  74. package/dist/models/IssueAttachment.d.ts +172 -0
  75. package/dist/models/IssueAttachment.js +89 -0
  76. package/dist/models/IssueAttachmentUploadRequest.d.ts +58 -0
  77. package/dist/models/IssueAttachmentUploadRequest.js +60 -0
  78. package/dist/models/IssueComment.d.ts +137 -0
  79. package/dist/models/IssueComment.js +74 -0
  80. package/dist/models/IssueCommentCreateRequest.d.ts +59 -0
  81. package/dist/models/IssueCommentCreateRequest.js +57 -0
  82. package/dist/models/IssueExpand.d.ts +226 -0
  83. package/dist/models/IssueExpand.js +105 -0
  84. package/dist/models/IssueForIntakeRequest.d.ts +53 -0
  85. package/dist/models/IssueForIntakeRequest.js +57 -0
  86. package/dist/models/IssueLink.d.ts +100 -0
  87. package/dist/models/IssueLink.js +64 -0
  88. package/dist/models/IssueLinkCreateRequest.d.ts +34 -0
  89. package/dist/models/IssueLinkCreateRequest.js +50 -0
  90. package/dist/models/IssuePropertyAPI.d.ts +171 -0
  91. package/dist/models/IssuePropertyAPI.js +88 -0
  92. package/dist/models/IssuePropertyAPIRequest.d.ts +99 -0
  93. package/dist/models/IssuePropertyAPIRequest.js +76 -0
  94. package/dist/models/IssuePropertyOptionAPI.d.ts +133 -0
  95. package/dist/models/IssuePropertyOptionAPI.js +73 -0
  96. package/dist/models/IssuePropertyOptionAPIRequest.d.ts +67 -0
  97. package/dist/models/IssuePropertyOptionAPIRequest.js +62 -0
  98. package/dist/models/IssuePropertyValueAPI.d.ts +133 -0
  99. package/dist/models/IssuePropertyValueAPI.js +78 -0
  100. package/dist/models/IssuePropertyValueAPIRequest.d.ts +85 -0
  101. package/dist/models/IssuePropertyValueAPIRequest.js +70 -0
  102. package/dist/models/IssueRequest.d.ts +167 -0
  103. package/dist/models/IssueRequest.js +95 -0
  104. package/dist/models/IssueSearch.d.ts +64 -0
  105. package/dist/models/IssueSearch.js +70 -0
  106. package/dist/models/IssueTypeAPI.d.ts +127 -0
  107. package/dist/models/IssueTypeAPI.js +72 -0
  108. package/dist/models/IssueTypeAPIRequest.d.ts +67 -0
  109. package/dist/models/IssueTypeAPIRequest.js +62 -0
  110. package/dist/models/IssueWorkLogAPI.d.ts +85 -0
  111. package/dist/models/IssueWorkLogAPI.js +60 -0
  112. package/dist/models/IssueWorkLogAPIRequest.d.ts +49 -0
  113. package/dist/models/IssueWorkLogAPIRequest.js +54 -0
  114. package/dist/models/Label.d.ts +118 -0
  115. package/dist/models/Label.js +70 -0
  116. package/dist/models/LabelCreateUpdateRequest.d.ts +70 -0
  117. package/dist/models/LabelCreateUpdateRequest.js +62 -0
  118. package/dist/models/LabelLite.d.ts +46 -0
  119. package/dist/models/LabelLite.js +53 -0
  120. package/dist/models/Module.d.ts +197 -0
  121. package/dist/models/Module.js +91 -0
  122. package/dist/models/ModuleCreateRequest.d.ts +83 -0
  123. package/dist/models/ModuleCreateRequest.js +67 -0
  124. package/dist/models/ModuleIssue.d.ts +94 -0
  125. package/dist/models/ModuleIssue.js +63 -0
  126. package/dist/models/ModuleIssueRequestRequest.d.ts +34 -0
  127. package/dist/models/ModuleIssueRequestRequest.js +50 -0
  128. package/dist/models/ModuleLite.d.ts +167 -0
  129. package/dist/models/ModuleLite.js +97 -0
  130. package/dist/models/ModuleStatusEnum.d.ts +33 -0
  131. package/dist/models/ModuleStatusEnum.js +59 -0
  132. package/dist/models/NetworkEnum.d.ts +25 -0
  133. package/dist/models/NetworkEnum.js +51 -0
  134. package/dist/models/PaginatedArchivedCycleResponse.d.ts +98 -0
  135. package/dist/models/PaginatedArchivedCycleResponse.js +95 -0
  136. package/dist/models/PaginatedArchivedModuleResponse.d.ts +98 -0
  137. package/dist/models/PaginatedArchivedModuleResponse.js +95 -0
  138. package/dist/models/PaginatedCycleIssueResponse.d.ts +98 -0
  139. package/dist/models/PaginatedCycleIssueResponse.js +95 -0
  140. package/dist/models/PaginatedCycleResponse.d.ts +98 -0
  141. package/dist/models/PaginatedCycleResponse.js +95 -0
  142. package/dist/models/PaginatedIntakeIssueResponse.d.ts +98 -0
  143. package/dist/models/PaginatedIntakeIssueResponse.js +95 -0
  144. package/dist/models/PaginatedIssueActivityDetailResponse.d.ts +98 -0
  145. package/dist/models/PaginatedIssueActivityDetailResponse.js +95 -0
  146. package/dist/models/PaginatedIssueActivityResponse.d.ts +98 -0
  147. package/dist/models/PaginatedIssueActivityResponse.js +95 -0
  148. package/dist/models/PaginatedIssueCommentResponse.d.ts +98 -0
  149. package/dist/models/PaginatedIssueCommentResponse.js +95 -0
  150. package/dist/models/PaginatedIssueLinkDetailResponse.d.ts +98 -0
  151. package/dist/models/PaginatedIssueLinkDetailResponse.js +95 -0
  152. package/dist/models/PaginatedIssueLinkResponse.d.ts +98 -0
  153. package/dist/models/PaginatedIssueLinkResponse.js +95 -0
  154. package/dist/models/PaginatedLabelResponse.d.ts +98 -0
  155. package/dist/models/PaginatedLabelResponse.js +95 -0
  156. package/dist/models/PaginatedModuleIssueResponse.d.ts +98 -0
  157. package/dist/models/PaginatedModuleIssueResponse.js +95 -0
  158. package/dist/models/PaginatedModuleResponse.d.ts +98 -0
  159. package/dist/models/PaginatedModuleResponse.js +95 -0
  160. package/dist/models/PaginatedProjectResponse.d.ts +98 -0
  161. package/dist/models/PaginatedProjectResponse.js +95 -0
  162. package/dist/models/PaginatedStateResponse.d.ts +98 -0
  163. package/dist/models/PaginatedStateResponse.js +95 -0
  164. package/dist/models/PaginatedWorkItemResponse.d.ts +98 -0
  165. package/dist/models/PaginatedWorkItemResponse.js +95 -0
  166. package/dist/models/PatchedAssetUpdateRequest.d.ts +34 -0
  167. package/dist/models/PatchedAssetUpdateRequest.js +48 -0
  168. package/dist/models/PatchedCycleUpdateRequest.d.ts +77 -0
  169. package/dist/models/PatchedCycleUpdateRequest.js +63 -0
  170. package/dist/models/PatchedGenericAssetUpdateRequest.d.ts +34 -0
  171. package/dist/models/PatchedGenericAssetUpdateRequest.js +48 -0
  172. package/dist/models/PatchedIntakeIssueUpdateRequest.d.ts +66 -0
  173. package/dist/models/PatchedIntakeIssueUpdateRequest.js +60 -0
  174. package/dist/models/PatchedIssueCommentCreateRequest.d.ts +59 -0
  175. package/dist/models/PatchedIssueCommentCreateRequest.js +57 -0
  176. package/dist/models/PatchedIssueLinkUpdateRequest.d.ts +34 -0
  177. package/dist/models/PatchedIssueLinkUpdateRequest.js +48 -0
  178. package/dist/models/PatchedIssuePropertyAPIRequest.d.ts +99 -0
  179. package/dist/models/PatchedIssuePropertyAPIRequest.js +72 -0
  180. package/dist/models/PatchedIssuePropertyOptionAPIRequest.d.ts +67 -0
  181. package/dist/models/PatchedIssuePropertyOptionAPIRequest.js +60 -0
  182. package/dist/models/PatchedIssueRequest.d.ts +167 -0
  183. package/dist/models/PatchedIssueRequest.js +93 -0
  184. package/dist/models/PatchedIssueTypeAPIRequest.d.ts +67 -0
  185. package/dist/models/PatchedIssueTypeAPIRequest.js +60 -0
  186. package/dist/models/PatchedIssueWorkLogAPIRequest.d.ts +49 -0
  187. package/dist/models/PatchedIssueWorkLogAPIRequest.js +54 -0
  188. package/dist/models/PatchedLabelCreateUpdateRequest.d.ts +70 -0
  189. package/dist/models/PatchedLabelCreateUpdateRequest.js +60 -0
  190. package/dist/models/PatchedModuleUpdateRequest.d.ts +83 -0
  191. package/dist/models/PatchedModuleUpdateRequest.js +65 -0
  192. package/dist/models/PatchedProjectUpdateRequest.d.ts +143 -0
  193. package/dist/models/PatchedProjectUpdateRequest.js +85 -0
  194. package/dist/models/PatchedStateRequest.d.ts +83 -0
  195. package/dist/models/PatchedStateRequest.js +65 -0
  196. package/dist/models/PriorityEnum.d.ts +31 -0
  197. package/dist/models/PriorityEnum.js +57 -0
  198. package/dist/models/Project.d.ts +294 -0
  199. package/dist/models/Project.js +124 -0
  200. package/dist/models/ProjectCreateRequest.d.ts +131 -0
  201. package/dist/models/ProjectCreateRequest.js +85 -0
  202. package/dist/models/ProjectWorklogSummary.d.ts +37 -0
  203. package/dist/models/ProjectWorklogSummary.js +54 -0
  204. package/dist/models/PropertyTypeEnum.d.ts +39 -0
  205. package/dist/models/PropertyTypeEnum.js +65 -0
  206. package/dist/models/RelationTypeEnum.d.ts +25 -0
  207. package/dist/models/RelationTypeEnum.js +51 -0
  208. package/dist/models/RetrieveWorkItemAttachment400Response.d.ts +37 -0
  209. package/dist/models/RetrieveWorkItemAttachment400Response.js +50 -0
  210. package/dist/models/State.d.ts +137 -0
  211. package/dist/models/State.js +78 -0
  212. package/dist/models/StateLite.d.ts +53 -0
  213. package/dist/models/StateLite.js +50 -0
  214. package/dist/models/StateRequest.d.ts +83 -0
  215. package/dist/models/StateRequest.js +69 -0
  216. package/dist/models/TimezoneEnum.d.ts +887 -0
  217. package/dist/models/TimezoneEnum.js +913 -0
  218. package/dist/models/TransferCycleIssueRequestRequest.d.ts +34 -0
  219. package/dist/models/TransferCycleIssueRequestRequest.js +50 -0
  220. package/dist/models/TransferCycleWorkItems200Response.d.ts +31 -0
  221. package/dist/models/TransferCycleWorkItems200Response.js +48 -0
  222. package/dist/models/TransferCycleWorkItems400Response.d.ts +31 -0
  223. package/dist/models/TransferCycleWorkItems400Response.js +48 -0
  224. package/dist/models/TypeEnum.d.ts +31 -0
  225. package/dist/models/TypeEnum.js +57 -0
  226. package/dist/models/UserAssetUploadRequest.d.ts +64 -0
  227. package/dist/models/UserAssetUploadRequest.js +62 -0
  228. package/dist/models/UserLite.d.ts +70 -0
  229. package/dist/models/UserLite.js +52 -0
  230. package/dist/models/index.d.ts +93 -0
  231. package/dist/models/index.js +110 -0
  232. package/dist/runtime.d.ts +183 -0
  233. package/dist/runtime.js +563 -0
  234. package/eslint.config.mjs +11 -0
  235. package/package.json +23 -0
  236. package/src/apis/AssetsApi.ts +388 -0
  237. package/src/apis/CyclesApi.ts +1031 -0
  238. package/src/apis/IntakeApi.ts +401 -0
  239. package/src/apis/LabelsApi.ts +406 -0
  240. package/src/apis/MembersApi.ts +146 -0
  241. package/src/apis/ModulesApi.ts +890 -0
  242. package/src/apis/ProjectsApi.ts +486 -0
  243. package/src/apis/StatesApi.ts +401 -0
  244. package/src/apis/UsersApi.ts +71 -0
  245. package/src/apis/WorkItemActivityApi.ts +228 -0
  246. package/src/apis/WorkItemAttachmentsApi.ts +335 -0
  247. package/src/apis/WorkItemCommentsApi.ts +439 -0
  248. package/src/apis/WorkItemLinksApi.ts +469 -0
  249. package/src/apis/WorkItemPropertiesApi.ts +981 -0
  250. package/src/apis/WorkItemTypesApi.ts +378 -0
  251. package/src/apis/WorkItemWorklogsApi.ts +398 -0
  252. package/src/apis/WorkItemsApi.ts +591 -0
  253. package/src/apis/index.ts +19 -0
  254. package/src/index.ts +5 -0
  255. package/src/models/AccessEnum.ts +53 -0
  256. package/src/models/Cycle.ts +300 -0
  257. package/src/models/CycleCreateRequest.ts +135 -0
  258. package/src/models/CycleIssue.ts +142 -0
  259. package/src/models/CycleIssueRequestRequest.ts +68 -0
  260. package/src/models/CycleLite.ts +246 -0
  261. package/src/models/EntityTypeEnum.ts +53 -0
  262. package/src/models/GenericAssetUploadRequest.ts +110 -0
  263. package/src/models/GetWorkspaceMembers200ResponseInner.ts +113 -0
  264. package/src/models/GroupEnum.ts +61 -0
  265. package/src/models/IntakeIssue.ts +227 -0
  266. package/src/models/IntakeIssueCreateRequest.ts +134 -0
  267. package/src/models/IntakeWorkItemStatusEnum.ts +59 -0
  268. package/src/models/Issue.ts +287 -0
  269. package/src/models/IssueActivity.ts +202 -0
  270. package/src/models/IssueAttachment.ts +245 -0
  271. package/src/models/IssueAttachmentUploadRequest.ts +101 -0
  272. package/src/models/IssueComment.ts +204 -0
  273. package/src/models/IssueCommentCreateRequest.ts +109 -0
  274. package/src/models/IssueExpand.ts +348 -0
  275. package/src/models/IssueForIntakeRequest.ts +102 -0
  276. package/src/models/IssueLink.ts +148 -0
  277. package/src/models/IssueLinkCreateRequest.ts +68 -0
  278. package/src/models/IssuePropertyAPI.ts +255 -0
  279. package/src/models/IssuePropertyAPIRequest.ts +171 -0
  280. package/src/models/IssuePropertyOptionAPI.ts +190 -0
  281. package/src/models/IssuePropertyOptionAPIRequest.ts +113 -0
  282. package/src/models/IssuePropertyValueAPI.ts +194 -0
  283. package/src/models/IssuePropertyValueAPIRequest.ts +138 -0
  284. package/src/models/IssueRequest.ts +254 -0
  285. package/src/models/IssueSearch.ts +113 -0
  286. package/src/models/IssueTypeAPI.ts +183 -0
  287. package/src/models/IssueTypeAPIRequest.ts +113 -0
  288. package/src/models/IssueWorkLogAPI.ts +130 -0
  289. package/src/models/IssueWorkLogAPIRequest.ts +88 -0
  290. package/src/models/Label.ts +172 -0
  291. package/src/models/LabelCreateUpdateRequest.ts +116 -0
  292. package/src/models/LabelLite.ts +83 -0
  293. package/src/models/Module.ts +280 -0
  294. package/src/models/ModuleCreateRequest.ts +142 -0
  295. package/src/models/ModuleIssue.ts +140 -0
  296. package/src/models/ModuleIssueRequestRequest.ts +68 -0
  297. package/src/models/ModuleLite.ts +253 -0
  298. package/src/models/ModuleStatusEnum.ts +61 -0
  299. package/src/models/NetworkEnum.ts +53 -0
  300. package/src/models/PaginatedArchivedCycleResponse.ts +172 -0
  301. package/src/models/PaginatedArchivedModuleResponse.ts +172 -0
  302. package/src/models/PaginatedCycleIssueResponse.ts +172 -0
  303. package/src/models/PaginatedCycleResponse.ts +172 -0
  304. package/src/models/PaginatedIntakeIssueResponse.ts +172 -0
  305. package/src/models/PaginatedIssueActivityDetailResponse.ts +172 -0
  306. package/src/models/PaginatedIssueActivityResponse.ts +172 -0
  307. package/src/models/PaginatedIssueCommentResponse.ts +172 -0
  308. package/src/models/PaginatedIssueLinkDetailResponse.ts +172 -0
  309. package/src/models/PaginatedIssueLinkResponse.ts +172 -0
  310. package/src/models/PaginatedLabelResponse.ts +172 -0
  311. package/src/models/PaginatedModuleIssueResponse.ts +172 -0
  312. package/src/models/PaginatedModuleResponse.ts +172 -0
  313. package/src/models/PaginatedProjectResponse.ts +172 -0
  314. package/src/models/PaginatedStateResponse.ts +172 -0
  315. package/src/models/PaginatedWorkItemResponse.ts +172 -0
  316. package/src/models/PatchedAssetUpdateRequest.ts +67 -0
  317. package/src/models/PatchedCycleUpdateRequest.ts +133 -0
  318. package/src/models/PatchedGenericAssetUpdateRequest.ts +67 -0
  319. package/src/models/PatchedIntakeIssueUpdateRequest.ts +124 -0
  320. package/src/models/PatchedIssueCommentCreateRequest.ts +109 -0
  321. package/src/models/PatchedIssueLinkUpdateRequest.ts +67 -0
  322. package/src/models/PatchedIssuePropertyAPIRequest.ts +169 -0
  323. package/src/models/PatchedIssuePropertyOptionAPIRequest.ts +112 -0
  324. package/src/models/PatchedIssueRequest.ts +253 -0
  325. package/src/models/PatchedIssueTypeAPIRequest.ts +112 -0
  326. package/src/models/PatchedIssueWorkLogAPIRequest.ts +88 -0
  327. package/src/models/PatchedLabelCreateUpdateRequest.ts +115 -0
  328. package/src/models/PatchedModuleUpdateRequest.ts +141 -0
  329. package/src/models/PatchedProjectUpdateRequest.ts +221 -0
  330. package/src/models/PatchedStateRequest.ts +141 -0
  331. package/src/models/PriorityEnum.ts +59 -0
  332. package/src/models/Project.ts +414 -0
  333. package/src/models/ProjectCreateRequest.ts +207 -0
  334. package/src/models/ProjectWorklogSummary.ts +74 -0
  335. package/src/models/PropertyTypeEnum.ts +67 -0
  336. package/src/models/RelationTypeEnum.ts +53 -0
  337. package/src/models/RetrieveWorkItemAttachment400Response.ts +72 -0
  338. package/src/models/State.ts +206 -0
  339. package/src/models/StateLite.ts +97 -0
  340. package/src/models/StateRequest.ts +143 -0
  341. package/src/models/TimezoneEnum.ts +915 -0
  342. package/src/models/TransferCycleIssueRequestRequest.ts +68 -0
  343. package/src/models/TransferCycleWorkItems200Response.ts +64 -0
  344. package/src/models/TransferCycleWorkItems400Response.ts +64 -0
  345. package/src/models/TypeEnum.ts +59 -0
  346. package/src/models/UserAssetUploadRequest.ts +121 -0
  347. package/src/models/UserLite.ts +108 -0
  348. package/src/models/index.ts +95 -0
  349. package/src/runtime.ts +431 -0
  350. package/tsconfig.json +20 -0
@@ -0,0 +1,981 @@
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.1
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
+ IssuePropertyAPI,
18
+ IssuePropertyAPIRequest,
19
+ IssuePropertyOptionAPI,
20
+ IssuePropertyOptionAPIRequest,
21
+ IssuePropertyValueAPI,
22
+ IssuePropertyValueAPIRequest,
23
+ PatchedIssuePropertyAPIRequest,
24
+ PatchedIssuePropertyOptionAPIRequest,
25
+ } from '../models/index';
26
+ import {
27
+ IssuePropertyAPIFromJSON,
28
+ IssuePropertyAPIToJSON,
29
+ IssuePropertyAPIRequestFromJSON,
30
+ IssuePropertyAPIRequestToJSON,
31
+ IssuePropertyOptionAPIFromJSON,
32
+ IssuePropertyOptionAPIToJSON,
33
+ IssuePropertyOptionAPIRequestFromJSON,
34
+ IssuePropertyOptionAPIRequestToJSON,
35
+ IssuePropertyValueAPIFromJSON,
36
+ IssuePropertyValueAPIToJSON,
37
+ IssuePropertyValueAPIRequestFromJSON,
38
+ IssuePropertyValueAPIRequestToJSON,
39
+ PatchedIssuePropertyAPIRequestFromJSON,
40
+ PatchedIssuePropertyAPIRequestToJSON,
41
+ PatchedIssuePropertyOptionAPIRequestFromJSON,
42
+ PatchedIssuePropertyOptionAPIRequestToJSON,
43
+ } from '../models/index';
44
+
45
+ export interface CreateIssuePropertyRequest {
46
+ projectId: string;
47
+ slug: string;
48
+ typeId: string;
49
+ issuePropertyAPIRequest: IssuePropertyAPIRequest;
50
+ }
51
+
52
+ export interface CreateIssuePropertyOptionRequest {
53
+ projectId: string;
54
+ propertyId: string;
55
+ slug: string;
56
+ issuePropertyOptionAPIRequest: IssuePropertyOptionAPIRequest;
57
+ }
58
+
59
+ export interface CreateIssuePropertyValueRequest {
60
+ issueId: string;
61
+ projectId: string;
62
+ propertyId: string;
63
+ slug: string;
64
+ issuePropertyValueAPIRequest: IssuePropertyValueAPIRequest;
65
+ }
66
+
67
+ export interface DeleteIssuePropertyRequest {
68
+ projectId: string;
69
+ propertyId: string;
70
+ slug: string;
71
+ typeId: string;
72
+ }
73
+
74
+ export interface DeleteIssuePropertyOptionRequest {
75
+ optionId: string;
76
+ projectId: string;
77
+ propertyId: string;
78
+ slug: string;
79
+ }
80
+
81
+ export interface ListIssuePropertiesRequest {
82
+ projectId: string;
83
+ slug: string;
84
+ typeId: string;
85
+ }
86
+
87
+ export interface ListIssuePropertyOptionsRequest {
88
+ projectId: string;
89
+ propertyId: string;
90
+ slug: string;
91
+ }
92
+
93
+ export interface ListIssuePropertyValuesRequest {
94
+ issueId: string;
95
+ projectId: string;
96
+ propertyId: string;
97
+ slug: string;
98
+ }
99
+
100
+ export interface RetrieveIssuePropertyRequest {
101
+ projectId: string;
102
+ propertyId: string;
103
+ slug: string;
104
+ typeId: string;
105
+ }
106
+
107
+ export interface RetrieveIssuePropertyOptionRequest {
108
+ optionId: string;
109
+ projectId: string;
110
+ propertyId: string;
111
+ slug: string;
112
+ }
113
+
114
+ export interface UpdateIssuePropertyRequest {
115
+ projectId: string;
116
+ propertyId: string;
117
+ slug: string;
118
+ typeId: string;
119
+ patchedIssuePropertyAPIRequest?: PatchedIssuePropertyAPIRequest;
120
+ }
121
+
122
+ export interface UpdateIssuePropertyOptionRequest {
123
+ optionId: string;
124
+ projectId: string;
125
+ propertyId: string;
126
+ slug: string;
127
+ patchedIssuePropertyOptionAPIRequest?: PatchedIssuePropertyOptionAPIRequest;
128
+ }
129
+
130
+ /**
131
+ *
132
+ */
133
+ export class WorkItemPropertiesApi extends runtime.BaseAPI {
134
+
135
+ /**
136
+ * Create a new issue property
137
+ * Create a new issue property
138
+ */
139
+ async createIssuePropertyRaw(requestParameters: CreateIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI>> {
140
+ if (requestParameters['projectId'] == null) {
141
+ throw new runtime.RequiredError(
142
+ 'projectId',
143
+ 'Required parameter "projectId" was null or undefined when calling createIssueProperty().'
144
+ );
145
+ }
146
+
147
+ if (requestParameters['slug'] == null) {
148
+ throw new runtime.RequiredError(
149
+ 'slug',
150
+ 'Required parameter "slug" was null or undefined when calling createIssueProperty().'
151
+ );
152
+ }
153
+
154
+ if (requestParameters['typeId'] == null) {
155
+ throw new runtime.RequiredError(
156
+ 'typeId',
157
+ 'Required parameter "typeId" was null or undefined when calling createIssueProperty().'
158
+ );
159
+ }
160
+
161
+ if (requestParameters['issuePropertyAPIRequest'] == null) {
162
+ throw new runtime.RequiredError(
163
+ 'issuePropertyAPIRequest',
164
+ 'Required parameter "issuePropertyAPIRequest" was null or undefined when calling createIssueProperty().'
165
+ );
166
+ }
167
+
168
+ const queryParameters: any = {};
169
+
170
+ const headerParameters: runtime.HTTPHeaders = {};
171
+
172
+ headerParameters['Content-Type'] = 'application/json';
173
+
174
+ if (this.configuration && this.configuration.apiKey) {
175
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
176
+ }
177
+
178
+ if (this.configuration && this.configuration.accessToken) {
179
+ // oauth required
180
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
181
+ }
182
+
183
+ if (this.configuration && this.configuration.accessToken) {
184
+ // oauth required
185
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
186
+ }
187
+
188
+ const response = await this.request({
189
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
190
+ method: 'POST',
191
+ headers: headerParameters,
192
+ query: queryParameters,
193
+ body: IssuePropertyAPIRequestToJSON(requestParameters['issuePropertyAPIRequest']),
194
+ }, initOverrides);
195
+
196
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON(jsonValue));
197
+ }
198
+
199
+ /**
200
+ * Create a new issue property
201
+ * Create a new issue property
202
+ */
203
+ async createIssueProperty(requestParameters: CreateIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI> {
204
+ const response = await this.createIssuePropertyRaw(requestParameters, initOverrides);
205
+ return await response.value();
206
+ }
207
+
208
+ /**
209
+ * Create a new issue property option
210
+ * Create a new issue property option
211
+ */
212
+ async createIssuePropertyOptionRaw(requestParameters: CreateIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI>> {
213
+ if (requestParameters['projectId'] == null) {
214
+ throw new runtime.RequiredError(
215
+ 'projectId',
216
+ 'Required parameter "projectId" was null or undefined when calling createIssuePropertyOption().'
217
+ );
218
+ }
219
+
220
+ if (requestParameters['propertyId'] == null) {
221
+ throw new runtime.RequiredError(
222
+ 'propertyId',
223
+ 'Required parameter "propertyId" was null or undefined when calling createIssuePropertyOption().'
224
+ );
225
+ }
226
+
227
+ if (requestParameters['slug'] == null) {
228
+ throw new runtime.RequiredError(
229
+ 'slug',
230
+ 'Required parameter "slug" was null or undefined when calling createIssuePropertyOption().'
231
+ );
232
+ }
233
+
234
+ if (requestParameters['issuePropertyOptionAPIRequest'] == null) {
235
+ throw new runtime.RequiredError(
236
+ 'issuePropertyOptionAPIRequest',
237
+ 'Required parameter "issuePropertyOptionAPIRequest" was null or undefined when calling createIssuePropertyOption().'
238
+ );
239
+ }
240
+
241
+ const queryParameters: any = {};
242
+
243
+ const headerParameters: runtime.HTTPHeaders = {};
244
+
245
+ headerParameters['Content-Type'] = 'application/json';
246
+
247
+ if (this.configuration && this.configuration.apiKey) {
248
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
249
+ }
250
+
251
+ if (this.configuration && this.configuration.accessToken) {
252
+ // oauth required
253
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
254
+ }
255
+
256
+ if (this.configuration && this.configuration.accessToken) {
257
+ // oauth required
258
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
259
+ }
260
+
261
+ const response = await this.request({
262
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
263
+ method: 'POST',
264
+ headers: headerParameters,
265
+ query: queryParameters,
266
+ body: IssuePropertyOptionAPIRequestToJSON(requestParameters['issuePropertyOptionAPIRequest']),
267
+ }, initOverrides);
268
+
269
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON(jsonValue));
270
+ }
271
+
272
+ /**
273
+ * Create a new issue property option
274
+ * Create a new issue property option
275
+ */
276
+ async createIssuePropertyOption(requestParameters: CreateIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI> {
277
+ const response = await this.createIssuePropertyOptionRaw(requestParameters, initOverrides);
278
+ return await response.value();
279
+ }
280
+
281
+ /**
282
+ * Create/update an issue property value
283
+ * Create/update an issue property value
284
+ */
285
+ async createIssuePropertyValueRaw(requestParameters: CreateIssuePropertyValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyValueAPI>> {
286
+ if (requestParameters['issueId'] == null) {
287
+ throw new runtime.RequiredError(
288
+ 'issueId',
289
+ 'Required parameter "issueId" was null or undefined when calling createIssuePropertyValue().'
290
+ );
291
+ }
292
+
293
+ if (requestParameters['projectId'] == null) {
294
+ throw new runtime.RequiredError(
295
+ 'projectId',
296
+ 'Required parameter "projectId" was null or undefined when calling createIssuePropertyValue().'
297
+ );
298
+ }
299
+
300
+ if (requestParameters['propertyId'] == null) {
301
+ throw new runtime.RequiredError(
302
+ 'propertyId',
303
+ 'Required parameter "propertyId" was null or undefined when calling createIssuePropertyValue().'
304
+ );
305
+ }
306
+
307
+ if (requestParameters['slug'] == null) {
308
+ throw new runtime.RequiredError(
309
+ 'slug',
310
+ 'Required parameter "slug" was null or undefined when calling createIssuePropertyValue().'
311
+ );
312
+ }
313
+
314
+ if (requestParameters['issuePropertyValueAPIRequest'] == null) {
315
+ throw new runtime.RequiredError(
316
+ 'issuePropertyValueAPIRequest',
317
+ 'Required parameter "issuePropertyValueAPIRequest" was null or undefined when calling createIssuePropertyValue().'
318
+ );
319
+ }
320
+
321
+ const queryParameters: any = {};
322
+
323
+ const headerParameters: runtime.HTTPHeaders = {};
324
+
325
+ headerParameters['Content-Type'] = 'application/json';
326
+
327
+ if (this.configuration && this.configuration.apiKey) {
328
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
329
+ }
330
+
331
+ if (this.configuration && this.configuration.accessToken) {
332
+ // oauth required
333
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
334
+ }
335
+
336
+ if (this.configuration && this.configuration.accessToken) {
337
+ // oauth required
338
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
339
+ }
340
+
341
+ const response = await this.request({
342
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/{property_id}/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']))),
343
+ method: 'POST',
344
+ headers: headerParameters,
345
+ query: queryParameters,
346
+ body: IssuePropertyValueAPIRequestToJSON(requestParameters['issuePropertyValueAPIRequest']),
347
+ }, initOverrides);
348
+
349
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyValueAPIFromJSON(jsonValue));
350
+ }
351
+
352
+ /**
353
+ * Create/update an issue property value
354
+ * Create/update an issue property value
355
+ */
356
+ async createIssuePropertyValue(requestParameters: CreateIssuePropertyValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyValueAPI> {
357
+ const response = await this.createIssuePropertyValueRaw(requestParameters, initOverrides);
358
+ return await response.value();
359
+ }
360
+
361
+ /**
362
+ * Delete an issue property
363
+ * Delete an issue property
364
+ */
365
+ async deleteIssuePropertyRaw(requestParameters: DeleteIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
366
+ if (requestParameters['projectId'] == null) {
367
+ throw new runtime.RequiredError(
368
+ 'projectId',
369
+ 'Required parameter "projectId" was null or undefined when calling deleteIssueProperty().'
370
+ );
371
+ }
372
+
373
+ if (requestParameters['propertyId'] == null) {
374
+ throw new runtime.RequiredError(
375
+ 'propertyId',
376
+ 'Required parameter "propertyId" was null or undefined when calling deleteIssueProperty().'
377
+ );
378
+ }
379
+
380
+ if (requestParameters['slug'] == null) {
381
+ throw new runtime.RequiredError(
382
+ 'slug',
383
+ 'Required parameter "slug" was null or undefined when calling deleteIssueProperty().'
384
+ );
385
+ }
386
+
387
+ if (requestParameters['typeId'] == null) {
388
+ throw new runtime.RequiredError(
389
+ 'typeId',
390
+ 'Required parameter "typeId" was null or undefined when calling deleteIssueProperty().'
391
+ );
392
+ }
393
+
394
+ const queryParameters: any = {};
395
+
396
+ const headerParameters: runtime.HTTPHeaders = {};
397
+
398
+ if (this.configuration && this.configuration.apiKey) {
399
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
400
+ }
401
+
402
+ if (this.configuration && this.configuration.accessToken) {
403
+ // oauth required
404
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
405
+ }
406
+
407
+ if (this.configuration && this.configuration.accessToken) {
408
+ // oauth required
409
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
410
+ }
411
+
412
+ const response = await this.request({
413
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
414
+ method: 'DELETE',
415
+ headers: headerParameters,
416
+ query: queryParameters,
417
+ }, initOverrides);
418
+
419
+ return new runtime.VoidApiResponse(response);
420
+ }
421
+
422
+ /**
423
+ * Delete an issue property
424
+ * Delete an issue property
425
+ */
426
+ async deleteIssueProperty(requestParameters: DeleteIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
427
+ await this.deleteIssuePropertyRaw(requestParameters, initOverrides);
428
+ }
429
+
430
+ /**
431
+ * Delete an issue property option
432
+ * Delete an issue property option
433
+ */
434
+ async deleteIssuePropertyOptionRaw(requestParameters: DeleteIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
435
+ if (requestParameters['optionId'] == null) {
436
+ throw new runtime.RequiredError(
437
+ 'optionId',
438
+ 'Required parameter "optionId" was null or undefined when calling deleteIssuePropertyOption().'
439
+ );
440
+ }
441
+
442
+ if (requestParameters['projectId'] == null) {
443
+ throw new runtime.RequiredError(
444
+ 'projectId',
445
+ 'Required parameter "projectId" was null or undefined when calling deleteIssuePropertyOption().'
446
+ );
447
+ }
448
+
449
+ if (requestParameters['propertyId'] == null) {
450
+ throw new runtime.RequiredError(
451
+ 'propertyId',
452
+ 'Required parameter "propertyId" was null or undefined when calling deleteIssuePropertyOption().'
453
+ );
454
+ }
455
+
456
+ if (requestParameters['slug'] == null) {
457
+ throw new runtime.RequiredError(
458
+ 'slug',
459
+ 'Required parameter "slug" was null or undefined when calling deleteIssuePropertyOption().'
460
+ );
461
+ }
462
+
463
+ const queryParameters: any = {};
464
+
465
+ const headerParameters: runtime.HTTPHeaders = {};
466
+
467
+ if (this.configuration && this.configuration.apiKey) {
468
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
469
+ }
470
+
471
+ if (this.configuration && this.configuration.accessToken) {
472
+ // oauth required
473
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
474
+ }
475
+
476
+ if (this.configuration && this.configuration.accessToken) {
477
+ // oauth required
478
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
479
+ }
480
+
481
+ const response = await this.request({
482
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/`.replace(`{${"option_id"}}`, encodeURIComponent(String(requestParameters['optionId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
483
+ method: 'DELETE',
484
+ headers: headerParameters,
485
+ query: queryParameters,
486
+ }, initOverrides);
487
+
488
+ return new runtime.VoidApiResponse(response);
489
+ }
490
+
491
+ /**
492
+ * Delete an issue property option
493
+ * Delete an issue property option
494
+ */
495
+ async deleteIssuePropertyOption(requestParameters: DeleteIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
496
+ await this.deleteIssuePropertyOptionRaw(requestParameters, initOverrides);
497
+ }
498
+
499
+ /**
500
+ * List issue properties
501
+ * List issue properties
502
+ */
503
+ async listIssuePropertiesRaw(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI>> {
504
+ if (requestParameters['projectId'] == null) {
505
+ throw new runtime.RequiredError(
506
+ 'projectId',
507
+ 'Required parameter "projectId" was null or undefined when calling listIssueProperties().'
508
+ );
509
+ }
510
+
511
+ if (requestParameters['slug'] == null) {
512
+ throw new runtime.RequiredError(
513
+ 'slug',
514
+ 'Required parameter "slug" was null or undefined when calling listIssueProperties().'
515
+ );
516
+ }
517
+
518
+ if (requestParameters['typeId'] == null) {
519
+ throw new runtime.RequiredError(
520
+ 'typeId',
521
+ 'Required parameter "typeId" was null or undefined when calling listIssueProperties().'
522
+ );
523
+ }
524
+
525
+ const queryParameters: any = {};
526
+
527
+ const headerParameters: runtime.HTTPHeaders = {};
528
+
529
+ if (this.configuration && this.configuration.apiKey) {
530
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
531
+ }
532
+
533
+ if (this.configuration && this.configuration.accessToken) {
534
+ // oauth required
535
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
536
+ }
537
+
538
+ if (this.configuration && this.configuration.accessToken) {
539
+ // oauth required
540
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
541
+ }
542
+
543
+ const response = await this.request({
544
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
545
+ method: 'GET',
546
+ headers: headerParameters,
547
+ query: queryParameters,
548
+ }, initOverrides);
549
+
550
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON(jsonValue));
551
+ }
552
+
553
+ /**
554
+ * List issue properties
555
+ * List issue properties
556
+ */
557
+ async listIssueProperties(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI> {
558
+ const response = await this.listIssuePropertiesRaw(requestParameters, initOverrides);
559
+ return await response.value();
560
+ }
561
+
562
+ /**
563
+ * List issue property options
564
+ * List issue property options
565
+ */
566
+ async listIssuePropertyOptionsRaw(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI>> {
567
+ if (requestParameters['projectId'] == null) {
568
+ throw new runtime.RequiredError(
569
+ 'projectId',
570
+ 'Required parameter "projectId" was null or undefined when calling listIssuePropertyOptions().'
571
+ );
572
+ }
573
+
574
+ if (requestParameters['propertyId'] == null) {
575
+ throw new runtime.RequiredError(
576
+ 'propertyId',
577
+ 'Required parameter "propertyId" was null or undefined when calling listIssuePropertyOptions().'
578
+ );
579
+ }
580
+
581
+ if (requestParameters['slug'] == null) {
582
+ throw new runtime.RequiredError(
583
+ 'slug',
584
+ 'Required parameter "slug" was null or undefined when calling listIssuePropertyOptions().'
585
+ );
586
+ }
587
+
588
+ const queryParameters: any = {};
589
+
590
+ const headerParameters: runtime.HTTPHeaders = {};
591
+
592
+ if (this.configuration && this.configuration.apiKey) {
593
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
594
+ }
595
+
596
+ if (this.configuration && this.configuration.accessToken) {
597
+ // oauth required
598
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
599
+ }
600
+
601
+ if (this.configuration && this.configuration.accessToken) {
602
+ // oauth required
603
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
604
+ }
605
+
606
+ const response = await this.request({
607
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
608
+ method: 'GET',
609
+ headers: headerParameters,
610
+ query: queryParameters,
611
+ }, initOverrides);
612
+
613
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON(jsonValue));
614
+ }
615
+
616
+ /**
617
+ * List issue property options
618
+ * List issue property options
619
+ */
620
+ async listIssuePropertyOptions(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI> {
621
+ const response = await this.listIssuePropertyOptionsRaw(requestParameters, initOverrides);
622
+ return await response.value();
623
+ }
624
+
625
+ /**
626
+ * List issue property values
627
+ * List issue property values
628
+ */
629
+ async listIssuePropertyValuesRaw(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyValueAPI>> {
630
+ if (requestParameters['issueId'] == null) {
631
+ throw new runtime.RequiredError(
632
+ 'issueId',
633
+ 'Required parameter "issueId" was null or undefined when calling listIssuePropertyValues().'
634
+ );
635
+ }
636
+
637
+ if (requestParameters['projectId'] == null) {
638
+ throw new runtime.RequiredError(
639
+ 'projectId',
640
+ 'Required parameter "projectId" was null or undefined when calling listIssuePropertyValues().'
641
+ );
642
+ }
643
+
644
+ if (requestParameters['propertyId'] == null) {
645
+ throw new runtime.RequiredError(
646
+ 'propertyId',
647
+ 'Required parameter "propertyId" was null or undefined when calling listIssuePropertyValues().'
648
+ );
649
+ }
650
+
651
+ if (requestParameters['slug'] == null) {
652
+ throw new runtime.RequiredError(
653
+ 'slug',
654
+ 'Required parameter "slug" was null or undefined when calling listIssuePropertyValues().'
655
+ );
656
+ }
657
+
658
+ const queryParameters: any = {};
659
+
660
+ const headerParameters: runtime.HTTPHeaders = {};
661
+
662
+ if (this.configuration && this.configuration.apiKey) {
663
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
664
+ }
665
+
666
+ if (this.configuration && this.configuration.accessToken) {
667
+ // oauth required
668
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
669
+ }
670
+
671
+ if (this.configuration && this.configuration.accessToken) {
672
+ // oauth required
673
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
674
+ }
675
+
676
+ const response = await this.request({
677
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/{property_id}/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']))),
678
+ method: 'GET',
679
+ headers: headerParameters,
680
+ query: queryParameters,
681
+ }, initOverrides);
682
+
683
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyValueAPIFromJSON(jsonValue));
684
+ }
685
+
686
+ /**
687
+ * List issue property values
688
+ * List issue property values
689
+ */
690
+ async listIssuePropertyValues(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyValueAPI> {
691
+ const response = await this.listIssuePropertyValuesRaw(requestParameters, initOverrides);
692
+ return await response.value();
693
+ }
694
+
695
+ /**
696
+ * Get issue property by id
697
+ * Get issue property by id
698
+ */
699
+ async retrieveIssuePropertyRaw(requestParameters: RetrieveIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI>> {
700
+ if (requestParameters['projectId'] == null) {
701
+ throw new runtime.RequiredError(
702
+ 'projectId',
703
+ 'Required parameter "projectId" was null or undefined when calling retrieveIssueProperty().'
704
+ );
705
+ }
706
+
707
+ if (requestParameters['propertyId'] == null) {
708
+ throw new runtime.RequiredError(
709
+ 'propertyId',
710
+ 'Required parameter "propertyId" was null or undefined when calling retrieveIssueProperty().'
711
+ );
712
+ }
713
+
714
+ if (requestParameters['slug'] == null) {
715
+ throw new runtime.RequiredError(
716
+ 'slug',
717
+ 'Required parameter "slug" was null or undefined when calling retrieveIssueProperty().'
718
+ );
719
+ }
720
+
721
+ if (requestParameters['typeId'] == null) {
722
+ throw new runtime.RequiredError(
723
+ 'typeId',
724
+ 'Required parameter "typeId" was null or undefined when calling retrieveIssueProperty().'
725
+ );
726
+ }
727
+
728
+ const queryParameters: any = {};
729
+
730
+ const headerParameters: runtime.HTTPHeaders = {};
731
+
732
+ if (this.configuration && this.configuration.apiKey) {
733
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
734
+ }
735
+
736
+ if (this.configuration && this.configuration.accessToken) {
737
+ // oauth required
738
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
739
+ }
740
+
741
+ if (this.configuration && this.configuration.accessToken) {
742
+ // oauth required
743
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
744
+ }
745
+
746
+ const response = await this.request({
747
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
748
+ method: 'GET',
749
+ headers: headerParameters,
750
+ query: queryParameters,
751
+ }, initOverrides);
752
+
753
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON(jsonValue));
754
+ }
755
+
756
+ /**
757
+ * Get issue property by id
758
+ * Get issue property by id
759
+ */
760
+ async retrieveIssueProperty(requestParameters: RetrieveIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI> {
761
+ const response = await this.retrieveIssuePropertyRaw(requestParameters, initOverrides);
762
+ return await response.value();
763
+ }
764
+
765
+ /**
766
+ * Get issue property option by id
767
+ * Get issue property option by id
768
+ */
769
+ async retrieveIssuePropertyOptionRaw(requestParameters: RetrieveIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI>> {
770
+ if (requestParameters['optionId'] == null) {
771
+ throw new runtime.RequiredError(
772
+ 'optionId',
773
+ 'Required parameter "optionId" was null or undefined when calling retrieveIssuePropertyOption().'
774
+ );
775
+ }
776
+
777
+ if (requestParameters['projectId'] == null) {
778
+ throw new runtime.RequiredError(
779
+ 'projectId',
780
+ 'Required parameter "projectId" was null or undefined when calling retrieveIssuePropertyOption().'
781
+ );
782
+ }
783
+
784
+ if (requestParameters['propertyId'] == null) {
785
+ throw new runtime.RequiredError(
786
+ 'propertyId',
787
+ 'Required parameter "propertyId" was null or undefined when calling retrieveIssuePropertyOption().'
788
+ );
789
+ }
790
+
791
+ if (requestParameters['slug'] == null) {
792
+ throw new runtime.RequiredError(
793
+ 'slug',
794
+ 'Required parameter "slug" was null or undefined when calling retrieveIssuePropertyOption().'
795
+ );
796
+ }
797
+
798
+ const queryParameters: any = {};
799
+
800
+ const headerParameters: runtime.HTTPHeaders = {};
801
+
802
+ if (this.configuration && this.configuration.apiKey) {
803
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
804
+ }
805
+
806
+ if (this.configuration && this.configuration.accessToken) {
807
+ // oauth required
808
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
809
+ }
810
+
811
+ if (this.configuration && this.configuration.accessToken) {
812
+ // oauth required
813
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
814
+ }
815
+
816
+ const response = await this.request({
817
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/`.replace(`{${"option_id"}}`, encodeURIComponent(String(requestParameters['optionId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
818
+ method: 'GET',
819
+ headers: headerParameters,
820
+ query: queryParameters,
821
+ }, initOverrides);
822
+
823
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON(jsonValue));
824
+ }
825
+
826
+ /**
827
+ * Get issue property option by id
828
+ * Get issue property option by id
829
+ */
830
+ async retrieveIssuePropertyOption(requestParameters: RetrieveIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI> {
831
+ const response = await this.retrieveIssuePropertyOptionRaw(requestParameters, initOverrides);
832
+ return await response.value();
833
+ }
834
+
835
+ /**
836
+ * Update an issue property
837
+ * Update an issue property
838
+ */
839
+ async updateIssuePropertyRaw(requestParameters: UpdateIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI>> {
840
+ if (requestParameters['projectId'] == null) {
841
+ throw new runtime.RequiredError(
842
+ 'projectId',
843
+ 'Required parameter "projectId" was null or undefined when calling updateIssueProperty().'
844
+ );
845
+ }
846
+
847
+ if (requestParameters['propertyId'] == null) {
848
+ throw new runtime.RequiredError(
849
+ 'propertyId',
850
+ 'Required parameter "propertyId" was null or undefined when calling updateIssueProperty().'
851
+ );
852
+ }
853
+
854
+ if (requestParameters['slug'] == null) {
855
+ throw new runtime.RequiredError(
856
+ 'slug',
857
+ 'Required parameter "slug" was null or undefined when calling updateIssueProperty().'
858
+ );
859
+ }
860
+
861
+ if (requestParameters['typeId'] == null) {
862
+ throw new runtime.RequiredError(
863
+ 'typeId',
864
+ 'Required parameter "typeId" was null or undefined when calling updateIssueProperty().'
865
+ );
866
+ }
867
+
868
+ const queryParameters: any = {};
869
+
870
+ const headerParameters: runtime.HTTPHeaders = {};
871
+
872
+ headerParameters['Content-Type'] = 'application/json';
873
+
874
+ if (this.configuration && this.configuration.apiKey) {
875
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
876
+ }
877
+
878
+ if (this.configuration && this.configuration.accessToken) {
879
+ // oauth required
880
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
881
+ }
882
+
883
+ if (this.configuration && this.configuration.accessToken) {
884
+ // oauth required
885
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
886
+ }
887
+
888
+ const response = await this.request({
889
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
890
+ method: 'PATCH',
891
+ headers: headerParameters,
892
+ query: queryParameters,
893
+ body: PatchedIssuePropertyAPIRequestToJSON(requestParameters['patchedIssuePropertyAPIRequest']),
894
+ }, initOverrides);
895
+
896
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON(jsonValue));
897
+ }
898
+
899
+ /**
900
+ * Update an issue property
901
+ * Update an issue property
902
+ */
903
+ async updateIssueProperty(requestParameters: UpdateIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI> {
904
+ const response = await this.updateIssuePropertyRaw(requestParameters, initOverrides);
905
+ return await response.value();
906
+ }
907
+
908
+ /**
909
+ * Update an issue property option
910
+ * Update an issue property option
911
+ */
912
+ async updateIssuePropertyOptionRaw(requestParameters: UpdateIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI>> {
913
+ if (requestParameters['optionId'] == null) {
914
+ throw new runtime.RequiredError(
915
+ 'optionId',
916
+ 'Required parameter "optionId" was null or undefined when calling updateIssuePropertyOption().'
917
+ );
918
+ }
919
+
920
+ if (requestParameters['projectId'] == null) {
921
+ throw new runtime.RequiredError(
922
+ 'projectId',
923
+ 'Required parameter "projectId" was null or undefined when calling updateIssuePropertyOption().'
924
+ );
925
+ }
926
+
927
+ if (requestParameters['propertyId'] == null) {
928
+ throw new runtime.RequiredError(
929
+ 'propertyId',
930
+ 'Required parameter "propertyId" was null or undefined when calling updateIssuePropertyOption().'
931
+ );
932
+ }
933
+
934
+ if (requestParameters['slug'] == null) {
935
+ throw new runtime.RequiredError(
936
+ 'slug',
937
+ 'Required parameter "slug" was null or undefined when calling updateIssuePropertyOption().'
938
+ );
939
+ }
940
+
941
+ const queryParameters: any = {};
942
+
943
+ const headerParameters: runtime.HTTPHeaders = {};
944
+
945
+ headerParameters['Content-Type'] = 'application/json';
946
+
947
+ if (this.configuration && this.configuration.apiKey) {
948
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
949
+ }
950
+
951
+ if (this.configuration && this.configuration.accessToken) {
952
+ // oauth required
953
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
954
+ }
955
+
956
+ if (this.configuration && this.configuration.accessToken) {
957
+ // oauth required
958
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
959
+ }
960
+
961
+ const response = await this.request({
962
+ path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/`.replace(`{${"option_id"}}`, encodeURIComponent(String(requestParameters['optionId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
963
+ method: 'PATCH',
964
+ headers: headerParameters,
965
+ query: queryParameters,
966
+ body: PatchedIssuePropertyOptionAPIRequestToJSON(requestParameters['patchedIssuePropertyOptionAPIRequest']),
967
+ }, initOverrides);
968
+
969
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON(jsonValue));
970
+ }
971
+
972
+ /**
973
+ * Update an issue property option
974
+ * Update an issue property option
975
+ */
976
+ async updateIssuePropertyOption(requestParameters: UpdateIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI> {
977
+ const response = await this.updateIssuePropertyOptionRaw(requestParameters, initOverrides);
978
+ return await response.value();
979
+ }
980
+
981
+ }