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