@resolution/jira-api-client 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 (785) hide show
  1. package/.eslintrc.js +3 -0
  2. package/CHANGELOG.md +11 -0
  3. package/LICENSE.md +19 -0
  4. package/README.md +12 -0
  5. package/config/api-typescript-generator.config.ts +91 -0
  6. package/config/compare-schemas.ts +307 -0
  7. package/lib/index.d.ts +15 -0
  8. package/lib/index.js +25 -0
  9. package/lib/index.js.map +1 -0
  10. package/lib/openapi/platform/base-jira-platform-api-client.d.ts +868 -0
  11. package/lib/openapi/platform/base-jira-platform-api-client.js +808 -0
  12. package/lib/openapi/platform/base-jira-platform-api-client.js.map +1 -0
  13. package/lib/openapi/platform/core/common-http-client.d.ts +196 -0
  14. package/lib/openapi/platform/core/common-http-client.js +390 -0
  15. package/lib/openapi/platform/core/common-http-client.js.map +1 -0
  16. package/lib/openapi/platform/core/common-http-service.d.ts +7 -0
  17. package/lib/openapi/platform/core/common-http-service.js +20 -0
  18. package/lib/openapi/platform/core/common-http-service.js.map +1 -0
  19. package/lib/openapi/platform/core/common-validation-schema-storage.d.ts +35 -0
  20. package/lib/openapi/platform/core/common-validation-schema-storage.js +65 -0
  21. package/lib/openapi/platform/core/common-validation-schema-storage.js.map +1 -0
  22. package/lib/openapi/platform/models/announcement-banner.d.ts +27 -0
  23. package/lib/openapi/platform/models/announcement-banner.js +30 -0
  24. package/lib/openapi/platform/models/announcement-banner.js.map +1 -0
  25. package/lib/openapi/platform/models/app-data-policies.d.ts +31 -0
  26. package/lib/openapi/platform/models/app-data-policies.js +40 -0
  27. package/lib/openapi/platform/models/app-data-policies.js.map +1 -0
  28. package/lib/openapi/platform/models/app-migration.d.ts +86 -0
  29. package/lib/openapi/platform/models/app-migration.js +67 -0
  30. package/lib/openapi/platform/models/app-migration.js.map +1 -0
  31. package/lib/openapi/platform/models/app-properties.d.ts +15 -0
  32. package/lib/openapi/platform/models/app-properties.js +18 -0
  33. package/lib/openapi/platform/models/app-properties.js.map +1 -0
  34. package/lib/openapi/platform/models/audit-records.d.ts +70 -0
  35. package/lib/openapi/platform/models/audit-records.js +62 -0
  36. package/lib/openapi/platform/models/audit-records.js.map +1 -0
  37. package/lib/openapi/platform/models/avatars.d.ts +18 -0
  38. package/lib/openapi/platform/models/avatars.js +27 -0
  39. package/lib/openapi/platform/models/avatars.js.map +1 -0
  40. package/lib/openapi/platform/models/classification-levels.d.ts +25 -0
  41. package/lib/openapi/platform/models/classification-levels.js +31 -0
  42. package/lib/openapi/platform/models/classification-levels.js.map +1 -0
  43. package/lib/openapi/platform/models/common.d.ts +1490 -0
  44. package/lib/openapi/platform/models/common.js +937 -0
  45. package/lib/openapi/platform/models/common.js.map +1 -0
  46. package/lib/openapi/platform/models/dashboards.d.ts +414 -0
  47. package/lib/openapi/platform/models/dashboards.js +325 -0
  48. package/lib/openapi/platform/models/dashboards.js.map +1 -0
  49. package/lib/openapi/platform/models/dynamic-modules.d.ts +92 -0
  50. package/lib/openapi/platform/models/dynamic-modules.js +24 -0
  51. package/lib/openapi/platform/models/dynamic-modules.js.map +1 -0
  52. package/lib/openapi/platform/models/filter-sharing.d.ts +59 -0
  53. package/lib/openapi/platform/models/filter-sharing.js +36 -0
  54. package/lib/openapi/platform/models/filter-sharing.js.map +1 -0
  55. package/lib/openapi/platform/models/filters.d.ts +183 -0
  56. package/lib/openapi/platform/models/filters.js +115 -0
  57. package/lib/openapi/platform/models/filters.js.map +1 -0
  58. package/lib/openapi/platform/models/group-and-user-picker.d.ts +49 -0
  59. package/lib/openapi/platform/models/group-and-user-picker.js +31 -0
  60. package/lib/openapi/platform/models/group-and-user-picker.js.map +1 -0
  61. package/lib/openapi/platform/models/groups.d.ts +127 -0
  62. package/lib/openapi/platform/models/groups.js +98 -0
  63. package/lib/openapi/platform/models/groups.js.map +1 -0
  64. package/lib/openapi/platform/models/issue-attachments.d.ts +124 -0
  65. package/lib/openapi/platform/models/issue-attachments.js +129 -0
  66. package/lib/openapi/platform/models/issue-attachments.js.map +1 -0
  67. package/lib/openapi/platform/models/issue-comment-properties.d.ts +10 -0
  68. package/lib/openapi/platform/models/issue-comment-properties.js +18 -0
  69. package/lib/openapi/platform/models/issue-comment-properties.js.map +1 -0
  70. package/lib/openapi/platform/models/issue-comments.d.ts +36 -0
  71. package/lib/openapi/platform/models/issue-comments.js +49 -0
  72. package/lib/openapi/platform/models/issue-comments.js.map +1 -0
  73. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.d.ts +36 -0
  74. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.js +53 -0
  75. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.js.map +1 -0
  76. package/lib/openapi/platform/models/issue-custom-field-contexts.d.ts +417 -0
  77. package/lib/openapi/platform/models/issue-custom-field-contexts.js +458 -0
  78. package/lib/openapi/platform/models/issue-custom-field-contexts.js.map +1 -0
  79. package/lib/openapi/platform/models/issue-custom-field-options-apps.d.ts +119 -0
  80. package/lib/openapi/platform/models/issue-custom-field-options-apps.js +133 -0
  81. package/lib/openapi/platform/models/issue-custom-field-options-apps.js.map +1 -0
  82. package/lib/openapi/platform/models/issue-custom-field-options.d.ts +136 -0
  83. package/lib/openapi/platform/models/issue-custom-field-options.js +115 -0
  84. package/lib/openapi/platform/models/issue-custom-field-options.js.map +1 -0
  85. package/lib/openapi/platform/models/issue-custom-field-values-apps.d.ts +66 -0
  86. package/lib/openapi/platform/models/issue-custom-field-values-apps.js +42 -0
  87. package/lib/openapi/platform/models/issue-custom-field-values-apps.js.map +1 -0
  88. package/lib/openapi/platform/models/issue-field-configurations.d.ts +194 -0
  89. package/lib/openapi/platform/models/issue-field-configurations.js +182 -0
  90. package/lib/openapi/platform/models/issue-field-configurations.js.map +1 -0
  91. package/lib/openapi/platform/models/issue-fields.d.ts +227 -0
  92. package/lib/openapi/platform/models/issue-fields.js +119 -0
  93. package/lib/openapi/platform/models/issue-fields.js.map +1 -0
  94. package/lib/openapi/platform/models/issue-link-types.d.ts +9 -0
  95. package/lib/openapi/platform/models/issue-link-types.js +21 -0
  96. package/lib/openapi/platform/models/issue-link-types.js.map +1 -0
  97. package/lib/openapi/platform/models/issue-links.d.ts +90 -0
  98. package/lib/openapi/platform/models/issue-links.js +74 -0
  99. package/lib/openapi/platform/models/issue-links.js.map +1 -0
  100. package/lib/openapi/platform/models/issue-notification-schemes.d.ts +158 -0
  101. package/lib/openapi/platform/models/issue-notification-schemes.js +147 -0
  102. package/lib/openapi/platform/models/issue-notification-schemes.js.map +1 -0
  103. package/lib/openapi/platform/models/issue-priorities.d.ts +74 -0
  104. package/lib/openapi/platform/models/issue-priorities.js +89 -0
  105. package/lib/openapi/platform/models/issue-priorities.js.map +1 -0
  106. package/lib/openapi/platform/models/issue-properties.d.ts +80 -0
  107. package/lib/openapi/platform/models/issue-properties.js +158 -0
  108. package/lib/openapi/platform/models/issue-properties.js.map +1 -0
  109. package/lib/openapi/platform/models/issue-remote-links.d.ts +120 -0
  110. package/lib/openapi/platform/models/issue-remote-links.js +70 -0
  111. package/lib/openapi/platform/models/issue-remote-links.js.map +1 -0
  112. package/lib/openapi/platform/models/issue-resolutions.d.ts +81 -0
  113. package/lib/openapi/platform/models/issue-resolutions.js +79 -0
  114. package/lib/openapi/platform/models/issue-resolutions.js.map +1 -0
  115. package/lib/openapi/platform/models/issue-search.d.ts +196 -0
  116. package/lib/openapi/platform/models/issue-search.js +136 -0
  117. package/lib/openapi/platform/models/issue-search.js.map +1 -0
  118. package/lib/openapi/platform/models/issue-security-level.d.ts +36 -0
  119. package/lib/openapi/platform/models/issue-security-level.js +36 -0
  120. package/lib/openapi/platform/models/issue-security-level.js.map +1 -0
  121. package/lib/openapi/platform/models/issue-security-schemes.d.ts +214 -0
  122. package/lib/openapi/platform/models/issue-security-schemes.js +211 -0
  123. package/lib/openapi/platform/models/issue-security-schemes.js.map +1 -0
  124. package/lib/openapi/platform/models/issue-type-schemes.d.ts +146 -0
  125. package/lib/openapi/platform/models/issue-type-schemes.js +115 -0
  126. package/lib/openapi/platform/models/issue-type-schemes.js.map +1 -0
  127. package/lib/openapi/platform/models/issue-type-screen-schemes.d.ts +139 -0
  128. package/lib/openapi/platform/models/issue-type-screen-schemes.js +109 -0
  129. package/lib/openapi/platform/models/issue-type-screen-schemes.js.map +1 -0
  130. package/lib/openapi/platform/models/issue-types.d.ts +36 -0
  131. package/lib/openapi/platform/models/issue-types.js +28 -0
  132. package/lib/openapi/platform/models/issue-types.js.map +1 -0
  133. package/lib/openapi/platform/models/issue-votes.d.ts +18 -0
  134. package/lib/openapi/platform/models/issue-votes.js +22 -0
  135. package/lib/openapi/platform/models/issue-votes.js.map +1 -0
  136. package/lib/openapi/platform/models/issue-watchers.d.ts +27 -0
  137. package/lib/openapi/platform/models/issue-watchers.js +36 -0
  138. package/lib/openapi/platform/models/issue-watchers.js.map +1 -0
  139. package/lib/openapi/platform/models/issue-worklogs.d.ts +93 -0
  140. package/lib/openapi/platform/models/issue-worklogs.js +80 -0
  141. package/lib/openapi/platform/models/issue-worklogs.js.map +1 -0
  142. package/lib/openapi/platform/models/issues.d.ts +583 -0
  143. package/lib/openapi/platform/models/issues.js +545 -0
  144. package/lib/openapi/platform/models/issues.js.map +1 -0
  145. package/lib/openapi/platform/models/jira-expressions.d.ts +329 -0
  146. package/lib/openapi/platform/models/jira-expressions.js +180 -0
  147. package/lib/openapi/platform/models/jira-expressions.js.map +1 -0
  148. package/lib/openapi/platform/models/jira-settings.d.ts +62 -0
  149. package/lib/openapi/platform/models/jira-settings.js +49 -0
  150. package/lib/openapi/platform/models/jira-settings.js.map +1 -0
  151. package/lib/openapi/platform/models/jql-functions-apps.d.ts +61 -0
  152. package/lib/openapi/platform/models/jql-functions-apps.js +57 -0
  153. package/lib/openapi/platform/models/jql-functions-apps.js.map +1 -0
  154. package/lib/openapi/platform/models/jql.d.ts +348 -0
  155. package/lib/openapi/platform/models/jql.js +309 -0
  156. package/lib/openapi/platform/models/jql.js.map +1 -0
  157. package/lib/openapi/platform/models/labels.d.ts +20 -0
  158. package/lib/openapi/platform/models/labels.js +23 -0
  159. package/lib/openapi/platform/models/labels.js.map +1 -0
  160. package/lib/openapi/platform/models/license-metrics.d.ts +27 -0
  161. package/lib/openapi/platform/models/license-metrics.js +32 -0
  162. package/lib/openapi/platform/models/license-metrics.js.map +1 -0
  163. package/lib/openapi/platform/models/myself.d.ts +13 -0
  164. package/lib/openapi/platform/models/myself.js +17 -0
  165. package/lib/openapi/platform/models/myself.js.map +1 -0
  166. package/lib/openapi/platform/models/permission-schemes.d.ts +42 -0
  167. package/lib/openapi/platform/models/permission-schemes.js +39 -0
  168. package/lib/openapi/platform/models/permission-schemes.js.map +1 -0
  169. package/lib/openapi/platform/models/permissions.d.ts +97 -0
  170. package/lib/openapi/platform/models/permissions.js +176 -0
  171. package/lib/openapi/platform/models/permissions.js.map +1 -0
  172. package/lib/openapi/platform/models/priority-schemes.d.ts +233 -0
  173. package/lib/openapi/platform/models/priority-schemes.js +227 -0
  174. package/lib/openapi/platform/models/priority-schemes.js.map +1 -0
  175. package/lib/openapi/platform/models/project-avatars.d.ts +11 -0
  176. package/lib/openapi/platform/models/project-avatars.js +20 -0
  177. package/lib/openapi/platform/models/project-avatars.js.map +1 -0
  178. package/lib/openapi/platform/models/project-classification-levels.d.ts +8 -0
  179. package/lib/openapi/platform/models/project-classification-levels.js +17 -0
  180. package/lib/openapi/platform/models/project-classification-levels.js.map +1 -0
  181. package/lib/openapi/platform/models/project-components.d.ts +122 -0
  182. package/lib/openapi/platform/models/project-components.js +91 -0
  183. package/lib/openapi/platform/models/project-components.js.map +1 -0
  184. package/lib/openapi/platform/models/project-email.d.ts +10 -0
  185. package/lib/openapi/platform/models/project-email.js +18 -0
  186. package/lib/openapi/platform/models/project-email.js.map +1 -0
  187. package/lib/openapi/platform/models/project-features.d.ts +35 -0
  188. package/lib/openapi/platform/models/project-features.js +38 -0
  189. package/lib/openapi/platform/models/project-features.js.map +1 -0
  190. package/lib/openapi/platform/models/project-permission-schemes.d.ts +17 -0
  191. package/lib/openapi/platform/models/project-permission-schemes.js +25 -0
  192. package/lib/openapi/platform/models/project-permission-schemes.js.map +1 -0
  193. package/lib/openapi/platform/models/project-role-actors.d.ts +65 -0
  194. package/lib/openapi/platform/models/project-role-actors.js +37 -0
  195. package/lib/openapi/platform/models/project-role-actors.js.map +1 -0
  196. package/lib/openapi/platform/models/project-roles.d.ts +41 -0
  197. package/lib/openapi/platform/models/project-roles.js +34 -0
  198. package/lib/openapi/platform/models/project-roles.js.map +1 -0
  199. package/lib/openapi/platform/models/project-types.d.ts +16 -0
  200. package/lib/openapi/platform/models/project-types.js +21 -0
  201. package/lib/openapi/platform/models/project-types.js.map +1 -0
  202. package/lib/openapi/platform/models/project-versions.d.ts +110 -0
  203. package/lib/openapi/platform/models/project-versions.js +87 -0
  204. package/lib/openapi/platform/models/project-versions.js.map +1 -0
  205. package/lib/openapi/platform/models/projects.d.ts +216 -0
  206. package/lib/openapi/platform/models/projects.js +149 -0
  207. package/lib/openapi/platform/models/projects.js.map +1 -0
  208. package/lib/openapi/platform/models/screen-schemes.d.ts +94 -0
  209. package/lib/openapi/platform/models/screen-schemes.js +79 -0
  210. package/lib/openapi/platform/models/screen-schemes.js.map +1 -0
  211. package/lib/openapi/platform/models/screen-tab-fields.d.ts +19 -0
  212. package/lib/openapi/platform/models/screen-tab-fields.js +24 -0
  213. package/lib/openapi/platform/models/screen-tab-fields.js.map +1 -0
  214. package/lib/openapi/platform/models/screens.d.ts +82 -0
  215. package/lib/openapi/platform/models/screens.js +72 -0
  216. package/lib/openapi/platform/models/screens.js.map +1 -0
  217. package/lib/openapi/platform/models/server-info.d.ts +51 -0
  218. package/lib/openapi/platform/models/server-info.js +47 -0
  219. package/lib/openapi/platform/models/server-info.js.map +1 -0
  220. package/lib/openapi/platform/models/service-registry.d.ts +32 -0
  221. package/lib/openapi/platform/models/service-registry.js +34 -0
  222. package/lib/openapi/platform/models/service-registry.js.map +1 -0
  223. package/lib/openapi/platform/models/status.d.ts +95 -0
  224. package/lib/openapi/platform/models/status.js +107 -0
  225. package/lib/openapi/platform/models/status.js.map +1 -0
  226. package/lib/openapi/platform/models/time-tracking.d.ts +20 -0
  227. package/lib/openapi/platform/models/time-tracking.js +19 -0
  228. package/lib/openapi/platform/models/time-tracking.js.map +1 -0
  229. package/lib/openapi/platform/models/ui-modifications-apps.d.ts +127 -0
  230. package/lib/openapi/platform/models/ui-modifications-apps.js +85 -0
  231. package/lib/openapi/platform/models/ui-modifications-apps.js.map +1 -0
  232. package/lib/openapi/platform/models/user-search.d.ts +37 -0
  233. package/lib/openapi/platform/models/user-search.js +30 -0
  234. package/lib/openapi/platform/models/user-search.js.map +1 -0
  235. package/lib/openapi/platform/models/users.d.ts +60 -0
  236. package/lib/openapi/platform/models/users.js +53 -0
  237. package/lib/openapi/platform/models/users.js.map +1 -0
  238. package/lib/openapi/platform/models/webhooks.d.ts +147 -0
  239. package/lib/openapi/platform/models/webhooks.js +112 -0
  240. package/lib/openapi/platform/models/webhooks.js.map +1 -0
  241. package/lib/openapi/platform/models/workflow-scheme-drafts.d.ts +17 -0
  242. package/lib/openapi/platform/models/workflow-scheme-drafts.js +37 -0
  243. package/lib/openapi/platform/models/workflow-scheme-drafts.js.map +1 -0
  244. package/lib/openapi/platform/models/workflow-scheme-project-associations.d.ts +29 -0
  245. package/lib/openapi/platform/models/workflow-scheme-project-associations.js +33 -0
  246. package/lib/openapi/platform/models/workflow-scheme-project-associations.js.map +1 -0
  247. package/lib/openapi/platform/models/workflow-schemes.d.ts +217 -0
  248. package/lib/openapi/platform/models/workflow-schemes.js +261 -0
  249. package/lib/openapi/platform/models/workflow-schemes.js.map +1 -0
  250. package/lib/openapi/platform/models/workflow-transition-properties.d.ts +15 -0
  251. package/lib/openapi/platform/models/workflow-transition-properties.js +19 -0
  252. package/lib/openapi/platform/models/workflow-transition-properties.js.map +1 -0
  253. package/lib/openapi/platform/models/workflow-transition-rules.d.ts +106 -0
  254. package/lib/openapi/platform/models/workflow-transition-rules.js +117 -0
  255. package/lib/openapi/platform/models/workflow-transition-rules.js.map +1 -0
  256. package/lib/openapi/platform/models/workflows.d.ts +848 -0
  257. package/lib/openapi/platform/models/workflows.js +824 -0
  258. package/lib/openapi/platform/models/workflows.js.map +1 -0
  259. package/lib/openapi/platform/services/announcement-banner-service.d.ts +49 -0
  260. package/lib/openapi/platform/services/announcement-banner-service.js +99 -0
  261. package/lib/openapi/platform/services/announcement-banner-service.js.map +1 -0
  262. package/lib/openapi/platform/services/app-data-policies-service.d.ts +44 -0
  263. package/lib/openapi/platform/services/app-data-policies-service.js +101 -0
  264. package/lib/openapi/platform/services/app-data-policies-service.js.map +1 -0
  265. package/lib/openapi/platform/services/app-migration-service.d.ts +152 -0
  266. package/lib/openapi/platform/services/app-migration-service.js +178 -0
  267. package/lib/openapi/platform/services/app-migration-service.js.map +1 -0
  268. package/lib/openapi/platform/services/app-properties-service.d.ts +184 -0
  269. package/lib/openapi/platform/services/app-properties-service.js +325 -0
  270. package/lib/openapi/platform/services/app-properties-service.js.map +1 -0
  271. package/lib/openapi/platform/services/application-roles-service.d.ts +158 -0
  272. package/lib/openapi/platform/services/application-roles-service.js +209 -0
  273. package/lib/openapi/platform/services/application-roles-service.js.map +1 -0
  274. package/lib/openapi/platform/services/audit-records-service.d.ts +101 -0
  275. package/lib/openapi/platform/services/audit-records-service.js +125 -0
  276. package/lib/openapi/platform/services/audit-records-service.js.map +1 -0
  277. package/lib/openapi/platform/services/avatars-service.d.ts +363 -0
  278. package/lib/openapi/platform/services/avatars-service.js +523 -0
  279. package/lib/openapi/platform/services/avatars-service.js.map +1 -0
  280. package/lib/openapi/platform/services/classification-levels-service.d.ts +72 -0
  281. package/lib/openapi/platform/services/classification-levels-service.js +104 -0
  282. package/lib/openapi/platform/services/classification-levels-service.js.map +1 -0
  283. package/lib/openapi/platform/services/dashboards-service.d.ts +918 -0
  284. package/lib/openapi/platform/services/dashboards-service.js +1109 -0
  285. package/lib/openapi/platform/services/dashboards-service.js.map +1 -0
  286. package/lib/openapi/platform/services/dynamic-modules-service.d.ts +50 -0
  287. package/lib/openapi/platform/services/dynamic-modules-service.js +96 -0
  288. package/lib/openapi/platform/services/dynamic-modules-service.js.map +1 -0
  289. package/lib/openapi/platform/services/filter-sharing-service.d.ts +446 -0
  290. package/lib/openapi/platform/services/filter-sharing-service.js +565 -0
  291. package/lib/openapi/platform/services/filter-sharing-service.js.map +1 -0
  292. package/lib/openapi/platform/services/filters-service.d.ts +1320 -0
  293. package/lib/openapi/platform/services/filters-service.js +1351 -0
  294. package/lib/openapi/platform/services/filters-service.js.map +1 -0
  295. package/lib/openapi/platform/services/group-and-user-picker-service.d.ts +132 -0
  296. package/lib/openapi/platform/services/group-and-user-picker-service.js +140 -0
  297. package/lib/openapi/platform/services/group-and-user-picker-service.js.map +1 -0
  298. package/lib/openapi/platform/services/groups-service.d.ts +411 -0
  299. package/lib/openapi/platform/services/groups-service.js +448 -0
  300. package/lib/openapi/platform/services/groups-service.js.map +1 -0
  301. package/lib/openapi/platform/services/issue-attachments-service.d.ts +549 -0
  302. package/lib/openapi/platform/services/issue-attachments-service.js +724 -0
  303. package/lib/openapi/platform/services/issue-attachments-service.js.map +1 -0
  304. package/lib/openapi/platform/services/issue-comment-properties-service.d.ts +149 -0
  305. package/lib/openapi/platform/services/issue-comment-properties-service.js +239 -0
  306. package/lib/openapi/platform/services/issue-comment-properties-service.js.map +1 -0
  307. package/lib/openapi/platform/services/issue-comments-service.d.ts +528 -0
  308. package/lib/openapi/platform/services/issue-comments-service.js +563 -0
  309. package/lib/openapi/platform/services/issue-comments-service.js.map +1 -0
  310. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.d.ts +155 -0
  311. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.js +163 -0
  312. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.js.map +1 -0
  313. package/lib/openapi/platform/services/issue-custom-field-contexts-service.d.ts +659 -0
  314. package/lib/openapi/platform/services/issue-custom-field-contexts-service.js +854 -0
  315. package/lib/openapi/platform/services/issue-custom-field-contexts-service.js.map +1 -0
  316. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.d.ts +615 -0
  317. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.js +605 -0
  318. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.js.map +1 -0
  319. package/lib/openapi/platform/services/issue-custom-field-options-service.d.ts +339 -0
  320. package/lib/openapi/platform/services/issue-custom-field-options-service.js +420 -0
  321. package/lib/openapi/platform/services/issue-custom-field-options-service.js.map +1 -0
  322. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.d.ts +90 -0
  323. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.js +117 -0
  324. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.js.map +1 -0
  325. package/lib/openapi/platform/services/issue-field-configurations-service.d.ts +561 -0
  326. package/lib/openapi/platform/services/issue-field-configurations-service.js +801 -0
  327. package/lib/openapi/platform/services/issue-field-configurations-service.js.map +1 -0
  328. package/lib/openapi/platform/services/issue-fields-service.d.ts +420 -0
  329. package/lib/openapi/platform/services/issue-fields-service.js +555 -0
  330. package/lib/openapi/platform/services/issue-fields-service.js.map +1 -0
  331. package/lib/openapi/platform/services/issue-link-types-service.d.ts +165 -0
  332. package/lib/openapi/platform/services/issue-link-types-service.js +263 -0
  333. package/lib/openapi/platform/services/issue-link-types-service.js.map +1 -0
  334. package/lib/openapi/platform/services/issue-links-service.d.ts +237 -0
  335. package/lib/openapi/platform/services/issue-links-service.js +264 -0
  336. package/lib/openapi/platform/services/issue-links-service.js.map +1 -0
  337. package/lib/openapi/platform/services/issue-navigator-settings-service.d.ts +55 -0
  338. package/lib/openapi/platform/services/issue-navigator-settings-service.js +97 -0
  339. package/lib/openapi/platform/services/issue-navigator-settings-service.js.map +1 -0
  340. package/lib/openapi/platform/services/issue-notification-schemes-service.d.ts +809 -0
  341. package/lib/openapi/platform/services/issue-notification-schemes-service.js +917 -0
  342. package/lib/openapi/platform/services/issue-notification-schemes-service.js.map +1 -0
  343. package/lib/openapi/platform/services/issue-priorities-service.d.ts +238 -0
  344. package/lib/openapi/platform/services/issue-priorities-service.js +372 -0
  345. package/lib/openapi/platform/services/issue-priorities-service.js.map +1 -0
  346. package/lib/openapi/platform/services/issue-properties-service.d.ts +368 -0
  347. package/lib/openapi/platform/services/issue-properties-service.js +439 -0
  348. package/lib/openapi/platform/services/issue-properties-service.js.map +1 -0
  349. package/lib/openapi/platform/services/issue-remote-links-service.d.ts +351 -0
  350. package/lib/openapi/platform/services/issue-remote-links-service.js +429 -0
  351. package/lib/openapi/platform/services/issue-remote-links-service.js.map +1 -0
  352. package/lib/openapi/platform/services/issue-resolutions-service.d.ts +202 -0
  353. package/lib/openapi/platform/services/issue-resolutions-service.js +346 -0
  354. package/lib/openapi/platform/services/issue-resolutions-service.js.map +1 -0
  355. package/lib/openapi/platform/services/issue-search-service.d.ts +887 -0
  356. package/lib/openapi/platform/services/issue-search-service.js +878 -0
  357. package/lib/openapi/platform/services/issue-search-service.js.map +1 -0
  358. package/lib/openapi/platform/services/issue-security-level-service.d.ts +136 -0
  359. package/lib/openapi/platform/services/issue-security-level-service.js +174 -0
  360. package/lib/openapi/platform/services/issue-security-level-service.js.map +1 -0
  361. package/lib/openapi/platform/services/issue-security-schemes-service.d.ts +530 -0
  362. package/lib/openapi/platform/services/issue-security-schemes-service.js +721 -0
  363. package/lib/openapi/platform/services/issue-security-schemes-service.js.map +1 -0
  364. package/lib/openapi/platform/services/issue-type-properties-service.d.ts +150 -0
  365. package/lib/openapi/platform/services/issue-type-properties-service.js +227 -0
  366. package/lib/openapi/platform/services/issue-type-properties-service.js.map +1 -0
  367. package/lib/openapi/platform/services/issue-type-schemes-service.d.ts +460 -0
  368. package/lib/openapi/platform/services/issue-type-schemes-service.js +615 -0
  369. package/lib/openapi/platform/services/issue-type-schemes-service.js.map +1 -0
  370. package/lib/openapi/platform/services/issue-type-screen-schemes-service.d.ts +442 -0
  371. package/lib/openapi/platform/services/issue-type-screen-schemes-service.js +606 -0
  372. package/lib/openapi/platform/services/issue-type-screen-schemes-service.js.map +1 -0
  373. package/lib/openapi/platform/services/issue-types-service.d.ts +343 -0
  374. package/lib/openapi/platform/services/issue-types-service.js +495 -0
  375. package/lib/openapi/platform/services/issue-types-service.js.map +1 -0
  376. package/lib/openapi/platform/services/issue-votes-service.d.ts +117 -0
  377. package/lib/openapi/platform/services/issue-votes-service.js +179 -0
  378. package/lib/openapi/platform/services/issue-votes-service.js.map +1 -0
  379. package/lib/openapi/platform/services/issue-watchers-service.d.ts +168 -0
  380. package/lib/openapi/platform/services/issue-watchers-service.js +236 -0
  381. package/lib/openapi/platform/services/issue-watchers-service.js.map +1 -0
  382. package/lib/openapi/platform/services/issue-worklog-properties-service.d.ts +165 -0
  383. package/lib/openapi/platform/services/issue-worklog-properties-service.js +251 -0
  384. package/lib/openapi/platform/services/issue-worklog-properties-service.js.map +1 -0
  385. package/lib/openapi/platform/services/issue-worklogs-service.d.ts +694 -0
  386. package/lib/openapi/platform/services/issue-worklogs-service.js +701 -0
  387. package/lib/openapi/platform/services/issue-worklogs-service.js.map +1 -0
  388. package/lib/openapi/platform/services/issues-service.d.ts +2356 -0
  389. package/lib/openapi/platform/services/issues-service.js +2022 -0
  390. package/lib/openapi/platform/services/issues-service.js.map +1 -0
  391. package/lib/openapi/platform/services/jira-expressions-service.d.ts +298 -0
  392. package/lib/openapi/platform/services/jira-expressions-service.js +272 -0
  393. package/lib/openapi/platform/services/jira-expressions-service.js.map +1 -0
  394. package/lib/openapi/platform/services/jira-settings-service.d.ts +236 -0
  395. package/lib/openapi/platform/services/jira-settings-service.js +325 -0
  396. package/lib/openapi/platform/services/jira-settings-service.js.map +1 -0
  397. package/lib/openapi/platform/services/jql-functions-apps-service.d.ts +113 -0
  398. package/lib/openapi/platform/services/jql-functions-apps-service.js +142 -0
  399. package/lib/openapi/platform/services/jql-functions-apps-service.js.map +1 -0
  400. package/lib/openapi/platform/services/jql-service.d.ts +623 -0
  401. package/lib/openapi/platform/services/jql-service.js +697 -0
  402. package/lib/openapi/platform/services/jql-service.js.map +1 -0
  403. package/lib/openapi/platform/services/labels-service.d.ts +34 -0
  404. package/lib/openapi/platform/services/labels-service.js +67 -0
  405. package/lib/openapi/platform/services/labels-service.js.map +1 -0
  406. package/lib/openapi/platform/services/license-metrics-service.d.ts +82 -0
  407. package/lib/openapi/platform/services/license-metrics-service.js +160 -0
  408. package/lib/openapi/platform/services/license-metrics-service.js.map +1 -0
  409. package/lib/openapi/platform/services/myself-service.d.ts +254 -0
  410. package/lib/openapi/platform/services/myself-service.js +382 -0
  411. package/lib/openapi/platform/services/myself-service.js.map +1 -0
  412. package/lib/openapi/platform/services/permission-schemes-service.d.ts +554 -0
  413. package/lib/openapi/platform/services/permission-schemes-service.js +613 -0
  414. package/lib/openapi/platform/services/permission-schemes-service.js.map +1 -0
  415. package/lib/openapi/platform/services/permissions-service.d.ts +214 -0
  416. package/lib/openapi/platform/services/permissions-service.js +281 -0
  417. package/lib/openapi/platform/services/permissions-service.js.map +1 -0
  418. package/lib/openapi/platform/services/priority-schemes-service.d.ts +578 -0
  419. package/lib/openapi/platform/services/priority-schemes-service.js +655 -0
  420. package/lib/openapi/platform/services/priority-schemes-service.js.map +1 -0
  421. package/lib/openapi/platform/services/project-avatars-service.d.ts +170 -0
  422. package/lib/openapi/platform/services/project-avatars-service.js +254 -0
  423. package/lib/openapi/platform/services/project-avatars-service.js.map +1 -0
  424. package/lib/openapi/platform/services/project-categories-service.d.ts +128 -0
  425. package/lib/openapi/platform/services/project-categories-service.js +226 -0
  426. package/lib/openapi/platform/services/project-categories-service.js.map +1 -0
  427. package/lib/openapi/platform/services/project-classification-levels-service.d.ts +90 -0
  428. package/lib/openapi/platform/services/project-classification-levels-service.js +161 -0
  429. package/lib/openapi/platform/services/project-classification-levels-service.js.map +1 -0
  430. package/lib/openapi/platform/services/project-components-service.d.ts +955 -0
  431. package/lib/openapi/platform/services/project-components-service.js +1075 -0
  432. package/lib/openapi/platform/services/project-components-service.js.map +1 -0
  433. package/lib/openapi/platform/services/project-email-service.d.ts +60 -0
  434. package/lib/openapi/platform/services/project-email-service.js +113 -0
  435. package/lib/openapi/platform/services/project-email-service.js.map +1 -0
  436. package/lib/openapi/platform/services/project-features-service.d.ts +103 -0
  437. package/lib/openapi/platform/services/project-features-service.js +155 -0
  438. package/lib/openapi/platform/services/project-features-service.js.map +1 -0
  439. package/lib/openapi/platform/services/project-key-and-name-validation-service.d.ts +59 -0
  440. package/lib/openapi/platform/services/project-key-and-name-validation-service.js +135 -0
  441. package/lib/openapi/platform/services/project-key-and-name-validation-service.js.map +1 -0
  442. package/lib/openapi/platform/services/project-permission-schemes-service.d.ts +179 -0
  443. package/lib/openapi/platform/services/project-permission-schemes-service.js +255 -0
  444. package/lib/openapi/platform/services/project-permission-schemes-service.js.map +1 -0
  445. package/lib/openapi/platform/services/project-properties-service.d.ts +147 -0
  446. package/lib/openapi/platform/services/project-properties-service.js +224 -0
  447. package/lib/openapi/platform/services/project-properties-service.js.map +1 -0
  448. package/lib/openapi/platform/services/project-role-actors-service.d.ts +351 -0
  449. package/lib/openapi/platform/services/project-role-actors-service.js +413 -0
  450. package/lib/openapi/platform/services/project-role-actors-service.js.map +1 -0
  451. package/lib/openapi/platform/services/project-roles-service.d.ts +484 -0
  452. package/lib/openapi/platform/services/project-roles-service.js +647 -0
  453. package/lib/openapi/platform/services/project-roles-service.js.map +1 -0
  454. package/lib/openapi/platform/services/project-types-service.d.ts +121 -0
  455. package/lib/openapi/platform/services/project-types-service.js +220 -0
  456. package/lib/openapi/platform/services/project-types-service.js.map +1 -0
  457. package/lib/openapi/platform/services/project-versions-service.d.ts +632 -0
  458. package/lib/openapi/platform/services/project-versions-service.js +852 -0
  459. package/lib/openapi/platform/services/project-versions-service.js.map +1 -0
  460. package/lib/openapi/platform/services/projects-service.d.ts +1622 -0
  461. package/lib/openapi/platform/services/projects-service.js +1686 -0
  462. package/lib/openapi/platform/services/projects-service.js.map +1 -0
  463. package/lib/openapi/platform/services/screen-schemes-service.d.ts +166 -0
  464. package/lib/openapi/platform/services/screen-schemes-service.js +216 -0
  465. package/lib/openapi/platform/services/screen-schemes-service.js.map +1 -0
  466. package/lib/openapi/platform/services/screen-tab-fields-service.d.ts +103 -0
  467. package/lib/openapi/platform/services/screen-tab-fields-service.js +181 -0
  468. package/lib/openapi/platform/services/screen-tab-fields-service.js.map +1 -0
  469. package/lib/openapi/platform/services/screen-tabs-service.d.ts +164 -0
  470. package/lib/openapi/platform/services/screen-tabs-service.js +278 -0
  471. package/lib/openapi/platform/services/screen-tabs-service.js.map +1 -0
  472. package/lib/openapi/platform/services/screens-service.d.ts +226 -0
  473. package/lib/openapi/platform/services/screens-service.js +346 -0
  474. package/lib/openapi/platform/services/screens-service.js.map +1 -0
  475. package/lib/openapi/platform/services/server-info-service.d.ts +40 -0
  476. package/lib/openapi/platform/services/server-info-service.js +74 -0
  477. package/lib/openapi/platform/services/server-info-service.js.map +1 -0
  478. package/lib/openapi/platform/services/service-registry-service.d.ts +32 -0
  479. package/lib/openapi/platform/services/service-registry-service.js +60 -0
  480. package/lib/openapi/platform/services/service-registry-service.js.map +1 -0
  481. package/lib/openapi/platform/services/status-service.d.ts +268 -0
  482. package/lib/openapi/platform/services/status-service.js +321 -0
  483. package/lib/openapi/platform/services/status-service.js.map +1 -0
  484. package/lib/openapi/platform/services/tasks-service.d.ts +71 -0
  485. package/lib/openapi/platform/services/tasks-service.js +126 -0
  486. package/lib/openapi/platform/services/tasks-service.js.map +1 -0
  487. package/lib/openapi/platform/services/time-tracking-service.d.ts +140 -0
  488. package/lib/openapi/platform/services/time-tracking-service.js +260 -0
  489. package/lib/openapi/platform/services/time-tracking-service.js.map +1 -0
  490. package/lib/openapi/platform/services/ui-modifications-apps-service.d.ts +212 -0
  491. package/lib/openapi/platform/services/ui-modifications-apps-service.js +262 -0
  492. package/lib/openapi/platform/services/ui-modifications-apps-service.js.map +1 -0
  493. package/lib/openapi/platform/services/user-properties-service.d.ts +218 -0
  494. package/lib/openapi/platform/services/user-properties-service.js +254 -0
  495. package/lib/openapi/platform/services/user-properties-service.js.map +1 -0
  496. package/lib/openapi/platform/services/user-search-service.d.ts +782 -0
  497. package/lib/openapi/platform/services/user-search-service.js +784 -0
  498. package/lib/openapi/platform/services/user-search-service.js.map +1 -0
  499. package/lib/openapi/platform/services/users-service.d.ts +579 -0
  500. package/lib/openapi/platform/services/users-service.js +729 -0
  501. package/lib/openapi/platform/services/users-service.js.map +1 -0
  502. package/lib/openapi/platform/services/webhooks-service.d.ts +258 -0
  503. package/lib/openapi/platform/services/webhooks-service.js +307 -0
  504. package/lib/openapi/platform/services/webhooks-service.js.map +1 -0
  505. package/lib/openapi/platform/services/workflow-scheme-drafts-service.d.ts +744 -0
  506. package/lib/openapi/platform/services/workflow-scheme-drafts-service.js +956 -0
  507. package/lib/openapi/platform/services/workflow-scheme-drafts-service.js.map +1 -0
  508. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.d.ts +85 -0
  509. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.js +134 -0
  510. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.js.map +1 -0
  511. package/lib/openapi/platform/services/workflow-schemes-service.d.ts +843 -0
  512. package/lib/openapi/platform/services/workflow-schemes-service.js +1030 -0
  513. package/lib/openapi/platform/services/workflow-schemes-service.js.map +1 -0
  514. package/lib/openapi/platform/services/workflow-status-categories-service.d.ts +60 -0
  515. package/lib/openapi/platform/services/workflow-status-categories-service.js +115 -0
  516. package/lib/openapi/platform/services/workflow-status-categories-service.js.map +1 -0
  517. package/lib/openapi/platform/services/workflow-statuses-service.d.ts +87 -0
  518. package/lib/openapi/platform/services/workflow-statuses-service.js +142 -0
  519. package/lib/openapi/platform/services/workflow-statuses-service.js.map +1 -0
  520. package/lib/openapi/platform/services/workflow-transition-properties-service.d.ts +189 -0
  521. package/lib/openapi/platform/services/workflow-transition-properties-service.js +224 -0
  522. package/lib/openapi/platform/services/workflow-transition-properties-service.js.map +1 -0
  523. package/lib/openapi/platform/services/workflow-transition-rules-service.d.ts +319 -0
  524. package/lib/openapi/platform/services/workflow-transition-rules-service.js +326 -0
  525. package/lib/openapi/platform/services/workflow-transition-rules-service.js.map +1 -0
  526. package/lib/openapi/platform/services/workflows-service.d.ts +3032 -0
  527. package/lib/openapi/platform/services/workflows-service.js +2529 -0
  528. package/lib/openapi/platform/services/workflows-service.js.map +1 -0
  529. package/lib/openapi/platform/validation-schema-storage.d.ts +3 -0
  530. package/lib/openapi/platform/validation-schema-storage.js +144 -0
  531. package/lib/openapi/platform/validation-schema-storage.js.map +1 -0
  532. package/lib/openapi/software/base-jira-software-api-client.d.ts +426 -0
  533. package/lib/openapi/software/base-jira-software-api-client.js +444 -0
  534. package/lib/openapi/software/base-jira-software-api-client.js.map +1 -0
  535. package/lib/openapi/software/core/common-http-client.d.ts +196 -0
  536. package/lib/openapi/software/core/common-http-client.js +390 -0
  537. package/lib/openapi/software/core/common-http-client.js.map +1 -0
  538. package/lib/openapi/software/core/common-http-service.d.ts +7 -0
  539. package/lib/openapi/software/core/common-http-service.js +20 -0
  540. package/lib/openapi/software/core/common-http-service.js.map +1 -0
  541. package/lib/openapi/software/core/common-validation-schema-storage.d.ts +35 -0
  542. package/lib/openapi/software/core/common-validation-schema-storage.js +65 -0
  543. package/lib/openapi/software/core/common-validation-schema-storage.js.map +1 -0
  544. package/lib/openapi/software/models/board.d.ts +505 -0
  545. package/lib/openapi/software/models/board.js +389 -0
  546. package/lib/openapi/software/models/board.js.map +1 -0
  547. package/lib/openapi/software/services/backlog-service.d.ts +81 -0
  548. package/lib/openapi/software/services/backlog-service.js +113 -0
  549. package/lib/openapi/software/services/backlog-service.js.map +1 -0
  550. package/lib/openapi/software/services/board-service.d.ts +2254 -0
  551. package/lib/openapi/software/services/board-service.js +2653 -0
  552. package/lib/openapi/software/services/board-service.js.map +1 -0
  553. package/lib/openapi/software/services/builds-service.d.ts +368 -0
  554. package/lib/openapi/software/services/builds-service.js +230 -0
  555. package/lib/openapi/software/services/builds-service.js.map +1 -0
  556. package/lib/openapi/software/services/deployments-service.d.ts +217 -0
  557. package/lib/openapi/software/services/deployments-service.js +232 -0
  558. package/lib/openapi/software/services/deployments-service.js.map +1 -0
  559. package/lib/openapi/software/services/dev-ops-components-service.d.ts +246 -0
  560. package/lib/openapi/software/services/dev-ops-components-service.js +280 -0
  561. package/lib/openapi/software/services/dev-ops-components-service.js.map +1 -0
  562. package/lib/openapi/software/services/development-information-service.d.ts +1641 -0
  563. package/lib/openapi/software/services/development-information-service.js +474 -0
  564. package/lib/openapi/software/services/development-information-service.js.map +1 -0
  565. package/lib/openapi/software/services/epic-service.d.ts +596 -0
  566. package/lib/openapi/software/services/epic-service.js +633 -0
  567. package/lib/openapi/software/services/epic-service.js.map +1 -0
  568. package/lib/openapi/software/services/feature-flags-service.d.ts +170 -0
  569. package/lib/openapi/software/services/feature-flags-service.js +182 -0
  570. package/lib/openapi/software/services/feature-flags-service.js.map +1 -0
  571. package/lib/openapi/software/services/issue-service.d.ts +329 -0
  572. package/lib/openapi/software/services/issue-service.js +410 -0
  573. package/lib/openapi/software/services/issue-service.js.map +1 -0
  574. package/lib/openapi/software/services/operations-service.d.ts +456 -0
  575. package/lib/openapi/software/services/operations-service.js +444 -0
  576. package/lib/openapi/software/services/operations-service.js.map +1 -0
  577. package/lib/openapi/software/services/remote-links-service.d.ts +445 -0
  578. package/lib/openapi/software/services/remote-links-service.js +327 -0
  579. package/lib/openapi/software/services/remote-links-service.js.map +1 -0
  580. package/lib/openapi/software/services/security-information-service.d.ts +257 -0
  581. package/lib/openapi/software/services/security-information-service.js +310 -0
  582. package/lib/openapi/software/services/security-information-service.js.map +1 -0
  583. package/lib/openapi/software/services/sprint-service.d.ts +531 -0
  584. package/lib/openapi/software/services/sprint-service.js +665 -0
  585. package/lib/openapi/software/services/sprint-service.js.map +1 -0
  586. package/lib/openapi/software/validation-schema-storage.d.ts +3 -0
  587. package/lib/openapi/software/validation-schema-storage.js +144 -0
  588. package/lib/openapi/software/validation-schema-storage.js.map +1 -0
  589. package/package.json +37 -0
  590. package/src/index.ts +47 -0
  591. package/src/openapi/platform/base-jira-platform-api-client.ts +2298 -0
  592. package/src/openapi/platform/core/common-http-client.ts +723 -0
  593. package/src/openapi/platform/core/common-http-service.ts +22 -0
  594. package/src/openapi/platform/core/common-validation-schema-storage.ts +105 -0
  595. package/src/openapi/platform/models/announcement-banner.ts +59 -0
  596. package/src/openapi/platform/models/app-data-policies.ts +79 -0
  597. package/src/openapi/platform/models/app-migration.ts +172 -0
  598. package/src/openapi/platform/models/app-properties.ts +32 -0
  599. package/src/openapi/platform/models/audit-records.ts +140 -0
  600. package/src/openapi/platform/models/avatars.ts +48 -0
  601. package/src/openapi/platform/models/classification-levels.ts +58 -0
  602. package/src/openapi/platform/models/common.ts +2669 -0
  603. package/src/openapi/platform/models/dashboards.ts +849 -0
  604. package/src/openapi/platform/models/dynamic-modules.ts +121 -0
  605. package/src/openapi/platform/models/filter-sharing.ts +103 -0
  606. package/src/openapi/platform/models/filters.ts +319 -0
  607. package/src/openapi/platform/models/group-and-user-picker.ts +85 -0
  608. package/src/openapi/platform/models/groups.ts +247 -0
  609. package/src/openapi/platform/models/issue-attachments.ts +290 -0
  610. package/src/openapi/platform/models/issue-comment-properties.ts +27 -0
  611. package/src/openapi/platform/models/issue-comments.ts +91 -0
  612. package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +96 -0
  613. package/src/openapi/platform/models/issue-custom-field-contexts.ts +1072 -0
  614. package/src/openapi/platform/models/issue-custom-field-options-apps.ts +273 -0
  615. package/src/openapi/platform/models/issue-custom-field-options.ts +283 -0
  616. package/src/openapi/platform/models/issue-custom-field-values-apps.ts +118 -0
  617. package/src/openapi/platform/models/issue-field-configurations.ts +435 -0
  618. package/src/openapi/platform/models/issue-fields.ts +392 -0
  619. package/src/openapi/platform/models/issue-link-types.ts +28 -0
  620. package/src/openapi/platform/models/issue-links.ts +185 -0
  621. package/src/openapi/platform/models/issue-notification-schemes.ts +370 -0
  622. package/src/openapi/platform/models/issue-priorities.ts +196 -0
  623. package/src/openapi/platform/models/issue-properties.ts +259 -0
  624. package/src/openapi/platform/models/issue-remote-links.ts +207 -0
  625. package/src/openapi/platform/models/issue-resolutions.ts +180 -0
  626. package/src/openapi/platform/models/issue-search.ts +367 -0
  627. package/src/openapi/platform/models/issue-security-level.ts +76 -0
  628. package/src/openapi/platform/models/issue-security-schemes.ts +496 -0
  629. package/src/openapi/platform/models/issue-type-schemes.ts +290 -0
  630. package/src/openapi/platform/models/issue-type-screen-schemes.ts +286 -0
  631. package/src/openapi/platform/models/issue-types.ts +66 -0
  632. package/src/openapi/platform/models/issue-votes.ts +38 -0
  633. package/src/openapi/platform/models/issue-watchers.ts +67 -0
  634. package/src/openapi/platform/models/issue-worklogs.ts +190 -0
  635. package/src/openapi/platform/models/issues.ts +1268 -0
  636. package/src/openapi/platform/models/jira-expressions.ts +578 -0
  637. package/src/openapi/platform/models/jira-settings.ts +118 -0
  638. package/src/openapi/platform/models/jql-functions-apps.ts +128 -0
  639. package/src/openapi/platform/models/jql.ts +783 -0
  640. package/src/openapi/platform/models/labels.ts +42 -0
  641. package/src/openapi/platform/models/license-metrics.ts +68 -0
  642. package/src/openapi/platform/models/myself.ts +29 -0
  643. package/src/openapi/platform/models/permission-schemes.ts +89 -0
  644. package/src/openapi/platform/models/permissions.ts +308 -0
  645. package/src/openapi/platform/models/priority-schemes.ts +527 -0
  646. package/src/openapi/platform/models/project-avatars.ts +29 -0
  647. package/src/openapi/platform/models/project-classification-levels.ts +24 -0
  648. package/src/openapi/platform/models/project-components.ts +231 -0
  649. package/src/openapi/platform/models/project-email.ts +27 -0
  650. package/src/openapi/platform/models/project-features.ts +78 -0
  651. package/src/openapi/platform/models/project-permission-schemes.ts +43 -0
  652. package/src/openapi/platform/models/project-role-actors.ts +107 -0
  653. package/src/openapi/platform/models/project-roles.ts +76 -0
  654. package/src/openapi/platform/models/project-types.ts +36 -0
  655. package/src/openapi/platform/models/project-versions.ts +216 -0
  656. package/src/openapi/platform/models/projects.ts +429 -0
  657. package/src/openapi/platform/models/screen-schemes.ts +192 -0
  658. package/src/openapi/platform/models/screen-tab-fields.ts +45 -0
  659. package/src/openapi/platform/models/screens.ts +171 -0
  660. package/src/openapi/platform/models/server-info.ts +100 -0
  661. package/src/openapi/platform/models/service-registry.ts +68 -0
  662. package/src/openapi/platform/models/status.ts +229 -0
  663. package/src/openapi/platform/models/time-tracking.ts +38 -0
  664. package/src/openapi/platform/models/ui-modifications-apps.ts +229 -0
  665. package/src/openapi/platform/models/user-search.ts +69 -0
  666. package/src/openapi/platform/models/users.ts +121 -0
  667. package/src/openapi/platform/models/webhooks.ts +307 -0
  668. package/src/openapi/platform/models/workflow-scheme-drafts.ts +58 -0
  669. package/src/openapi/platform/models/workflow-scheme-project-associations.ts +68 -0
  670. package/src/openapi/platform/models/workflow-schemes.ts +545 -0
  671. package/src/openapi/platform/models/workflow-transition-properties.ts +33 -0
  672. package/src/openapi/platform/models/workflow-transition-rules.ts +261 -0
  673. package/src/openapi/platform/models/workflows.ts +1943 -0
  674. package/src/openapi/platform/services/announcement-banner-service.ts +142 -0
  675. package/src/openapi/platform/services/app-data-policies-service.ts +136 -0
  676. package/src/openapi/platform/services/app-migration-service.ts +289 -0
  677. package/src/openapi/platform/services/app-properties-service.ts +441 -0
  678. package/src/openapi/platform/services/application-roles-service.ts +247 -0
  679. package/src/openapi/platform/services/audit-records-service.ts +164 -0
  680. package/src/openapi/platform/services/avatars-service.ts +769 -0
  681. package/src/openapi/platform/services/classification-levels-service.ts +131 -0
  682. package/src/openapi/platform/services/dashboards-service.ts +1721 -0
  683. package/src/openapi/platform/services/dynamic-modules-service.ts +127 -0
  684. package/src/openapi/platform/services/filter-sharing-service.ts +687 -0
  685. package/src/openapi/platform/services/filters-service.ts +1901 -0
  686. package/src/openapi/platform/services/group-and-user-picker-service.ts +224 -0
  687. package/src/openapi/platform/services/groups-service.ts +751 -0
  688. package/src/openapi/platform/services/issue-attachments-service.ts +900 -0
  689. package/src/openapi/platform/services/issue-comment-properties-service.ts +324 -0
  690. package/src/openapi/platform/services/issue-comments-service.ts +812 -0
  691. package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +277 -0
  692. package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +1339 -0
  693. package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +994 -0
  694. package/src/openapi/platform/services/issue-custom-field-options-service.ts +651 -0
  695. package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +201 -0
  696. package/src/openapi/platform/services/issue-field-configurations-service.ts +1294 -0
  697. package/src/openapi/platform/services/issue-fields-service.ts +837 -0
  698. package/src/openapi/platform/services/issue-link-types-service.ts +360 -0
  699. package/src/openapi/platform/services/issue-links-service.ts +345 -0
  700. package/src/openapi/platform/services/issue-navigator-settings-service.ts +119 -0
  701. package/src/openapi/platform/services/issue-notification-schemes-service.ts +1209 -0
  702. package/src/openapi/platform/services/issue-priorities-service.ts +575 -0
  703. package/src/openapi/platform/services/issue-properties-service.ts +606 -0
  704. package/src/openapi/platform/services/issue-remote-links-service.ts +597 -0
  705. package/src/openapi/platform/services/issue-resolutions-service.ts +534 -0
  706. package/src/openapi/platform/services/issue-search-service.ts +1139 -0
  707. package/src/openapi/platform/services/issue-security-level-service.ts +250 -0
  708. package/src/openapi/platform/services/issue-security-schemes-service.ts +1240 -0
  709. package/src/openapi/platform/services/issue-type-properties-service.ts +325 -0
  710. package/src/openapi/platform/services/issue-type-schemes-service.ts +940 -0
  711. package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +994 -0
  712. package/src/openapi/platform/services/issue-types-service.ts +679 -0
  713. package/src/openapi/platform/services/issue-votes-service.ts +221 -0
  714. package/src/openapi/platform/services/issue-watchers-service.ts +331 -0
  715. package/src/openapi/platform/services/issue-worklog-properties-service.ts +348 -0
  716. package/src/openapi/platform/services/issue-worklogs-service.ts +1089 -0
  717. package/src/openapi/platform/services/issues-service.ts +3346 -0
  718. package/src/openapi/platform/services/jira-expressions-service.ts +407 -0
  719. package/src/openapi/platform/services/jira-settings-service.ts +415 -0
  720. package/src/openapi/platform/services/jql-functions-apps-service.ts +219 -0
  721. package/src/openapi/platform/services/jql-service.ts +896 -0
  722. package/src/openapi/platform/services/labels-service.ts +89 -0
  723. package/src/openapi/platform/services/license-metrics-service.ts +216 -0
  724. package/src/openapi/platform/services/myself-service.ts +520 -0
  725. package/src/openapi/platform/services/permission-schemes-service.ts +926 -0
  726. package/src/openapi/platform/services/permissions-service.ts +407 -0
  727. package/src/openapi/platform/services/priority-schemes-service.ts +1001 -0
  728. package/src/openapi/platform/services/project-avatars-service.ts +341 -0
  729. package/src/openapi/platform/services/project-categories-service.ts +318 -0
  730. package/src/openapi/platform/services/project-classification-levels-service.ts +232 -0
  731. package/src/openapi/platform/services/project-components-service.ts +1332 -0
  732. package/src/openapi/platform/services/project-email-service.ts +161 -0
  733. package/src/openapi/platform/services/project-features-service.ts +207 -0
  734. package/src/openapi/platform/services/project-key-and-name-validation-service.ts +200 -0
  735. package/src/openapi/platform/services/project-permission-schemes-service.ts +384 -0
  736. package/src/openapi/platform/services/project-properties-service.ts +320 -0
  737. package/src/openapi/platform/services/project-role-actors-service.ts +627 -0
  738. package/src/openapi/platform/services/project-roles-service.ts +867 -0
  739. package/src/openapi/platform/services/project-types-service.ts +297 -0
  740. package/src/openapi/platform/services/project-versions-service.ts +1287 -0
  741. package/src/openapi/platform/services/projects-service.ts +2196 -0
  742. package/src/openapi/platform/services/screen-schemes-service.ts +334 -0
  743. package/src/openapi/platform/services/screen-tab-fields-service.ts +276 -0
  744. package/src/openapi/platform/services/screen-tabs-service.ts +421 -0
  745. package/src/openapi/platform/services/screens-service.ts +528 -0
  746. package/src/openapi/platform/services/server-info-service.ts +88 -0
  747. package/src/openapi/platform/services/service-registry-service.ts +89 -0
  748. package/src/openapi/platform/services/status-service.ts +498 -0
  749. package/src/openapi/platform/services/tasks-service.ts +159 -0
  750. package/src/openapi/platform/services/time-tracking-service.ts +386 -0
  751. package/src/openapi/platform/services/ui-modifications-apps-service.ts +403 -0
  752. package/src/openapi/platform/services/user-properties-service.ts +413 -0
  753. package/src/openapi/platform/services/user-search-service.ts +1214 -0
  754. package/src/openapi/platform/services/users-service.ts +1108 -0
  755. package/src/openapi/platform/services/webhooks-service.ts +458 -0
  756. package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +1313 -0
  757. package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +189 -0
  758. package/src/openapi/platform/services/workflow-schemes-service.ts +1617 -0
  759. package/src/openapi/platform/services/workflow-status-categories-service.ts +151 -0
  760. package/src/openapi/platform/services/workflow-statuses-service.ts +176 -0
  761. package/src/openapi/platform/services/workflow-transition-properties-service.ts +388 -0
  762. package/src/openapi/platform/services/workflow-transition-rules-service.ts +485 -0
  763. package/src/openapi/platform/services/workflows-service.ts +3477 -0
  764. package/src/openapi/platform/validation-schema-storage.ts +186 -0
  765. package/src/openapi/software/base-jira-software-api-client.ts +447 -0
  766. package/src/openapi/software/core/common-http-client.ts +723 -0
  767. package/src/openapi/software/core/common-http-service.ts +22 -0
  768. package/src/openapi/software/core/common-validation-schema-storage.ts +105 -0
  769. package/src/openapi/software/models/board.ts +918 -0
  770. package/src/openapi/software/services/backlog-service.ts +160 -0
  771. package/src/openapi/software/services/board-service.ts +4189 -0
  772. package/src/openapi/software/services/builds-service.ts +571 -0
  773. package/src/openapi/software/services/deployments-service.ts +403 -0
  774. package/src/openapi/software/services/dev-ops-components-service.ts +371 -0
  775. package/src/openapi/software/services/development-information-service.ts +2357 -0
  776. package/src/openapi/software/services/epic-service.ts +854 -0
  777. package/src/openapi/software/services/feature-flags-service.ts +303 -0
  778. package/src/openapi/software/services/issue-service.ts +529 -0
  779. package/src/openapi/software/services/operations-service.ts +741 -0
  780. package/src/openapi/software/services/remote-links-service.ts +653 -0
  781. package/src/openapi/software/services/security-information-service.ts +495 -0
  782. package/src/openapi/software/services/sprint-service.ts +969 -0
  783. package/src/openapi/software/validation-schema-storage.ts +186 -0
  784. package/tsconfig.build.json +7 -0
  785. package/tsconfig.json +4 -0
@@ -0,0 +1,1617 @@
1
+ // DO NOT EDIT!
2
+ // This file is generated by "api-typescript-generator".
3
+ // To update this file run "yarn build:openapi".
4
+ import { z } from "zod";
5
+
6
+ import * as commonHttpClient from "../core/common-http-client";
7
+ import { CommonHttpService } from "../core/common-http-service";
8
+ import {
9
+ type DefaultWorkflow,
10
+ type IssueTypesWorkflowMapping,
11
+ type IssueTypeWorkflowMapping,
12
+ registerCommonValidationSchemas,
13
+ type WorkflowScheme,
14
+ } from "../models/common";
15
+ import {
16
+ type PageBeanWorkflowScheme,
17
+ registerWorkflowSchemesValidationSchemas,
18
+ type WorkflowSchemeReadRequest,
19
+ type WorkflowSchemeReadResponse,
20
+ type WorkflowSchemeUpdateRequest,
21
+ type WorkflowSchemeUpdateRequiredMappingsRequest,
22
+ type WorkflowSchemeUpdateRequiredMappingsResponse,
23
+ } from "../models/workflow-schemes";
24
+ import { validationSchemaStorage } from "../validation-schema-storage";
25
+ /**
26
+ * This resource represents workflow schemes. Use it to manage workflow schemes
27
+ * and the workflow scheme's workflows and issue types.
28
+ *
29
+ * A workflow scheme maps issue types to workflows. A workflow scheme can be
30
+ * associated with one or more projects, which enables the projects to use the
31
+ * workflow-issue type mappings.
32
+ *
33
+ * Active workflow schemes (workflow schemes that are used by projects) cannot be
34
+ * edited. When an active workflow scheme is edited, a draft copy of the scheme is
35
+ * created. The draft workflow scheme is then be edited and published (replacing
36
+ * the active scheme).
37
+ *
38
+ * See [Configuring workflow schemes](https://confluence.atlassian.com/x/tohKLg)
39
+ * for more information.
40
+ */
41
+ export class WorkflowSchemesService extends CommonHttpService {
42
+ /**
43
+ * Creates a workflow scheme.
44
+ *
45
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
46
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
47
+ *
48
+ * @returns Returned if the request is successful.
49
+ *
50
+ * example: {
51
+ * "defaultWorkflow": "jira",
52
+ * "description": "The description of the example workflow scheme.",
53
+ * "draft": false,
54
+ * "id": 101010,
55
+ * "issueTypeMappings": {
56
+ * "10000": "scrum workflow",
57
+ * "10001": "builds workflow"
58
+ * },
59
+ * "name": "Example workflow scheme",
60
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
61
+ * }
62
+ * @path {POST} /rest/api/3/workflowscheme
63
+ * @scopes-current manage:jira-configuration
64
+ * @scopes-beta write:workflow-scheme:jira, read:application-role:jira, read:avatar:jira,
65
+ * read:group:jira, read:issue-type:jira, read:project-category:jira,
66
+ * read:project:jira, read:user:jira, read:workflow-scheme:jira
67
+ */
68
+ createWorkflowScheme({
69
+ workflowScheme,
70
+ }: {
71
+ /**
72
+ * @example {
73
+ * "defaultWorkflow": "jira",
74
+ * "description": "The description of the example workflow scheme.",
75
+ * "issueTypeMappings": {
76
+ * "10000": "scrum workflow",
77
+ * "10001": "builds workflow"
78
+ * },
79
+ * "name": "Example workflow scheme"
80
+ * }
81
+ */
82
+ workflowScheme: WorkflowScheme;
83
+ }): Promise<WorkflowScheme> {
84
+ return this.getClientInstance()
85
+ .request({
86
+ path: "/rest/api/3/workflowscheme",
87
+ method: "POST",
88
+ headers: {
89
+ "Content-Type": "application/json",
90
+ },
91
+ body: workflowScheme,
92
+ })
93
+ .then(
94
+ this.getClientInstance().responseHandler({
95
+ 201: {
96
+ "application/json": "json",
97
+ },
98
+ }),
99
+ )
100
+ .then(
101
+ commonHttpClient.castResponse<{
102
+ status: 201;
103
+ mediaType: "application/json";
104
+ body: WorkflowScheme;
105
+ }>(),
106
+ )
107
+ .then(
108
+ validationSchemaStorage.validator(
109
+ "WorkflowSchemesService.createWorkflowScheme.response",
110
+ ),
111
+ )
112
+ .then(commonHttpClient.getBody);
113
+ }
114
+ /**
115
+ * Resets the default workflow for a workflow scheme. That is, the default
116
+ * workflow is set to Jira's system workflow (the *jira* workflow).
117
+ *
118
+ * Note that active workflow schemes cannot be edited. If the workflow scheme is
119
+ * active, set `updateDraftIfNeeded` to `true` and a draft workflow scheme is
120
+ * created or updated with the default workflow reset. The draft workflow scheme
121
+ * can be published in Jira.
122
+ *
123
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
124
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
125
+ *
126
+ * @returns Returned if the request is successful.
127
+ *
128
+ * example: {
129
+ * "defaultWorkflow": "jira",
130
+ * "description": "The description of the example workflow scheme.",
131
+ * "draft": false,
132
+ * "id": 101010,
133
+ * "issueTypeMappings": {
134
+ * "10000": "scrum workflow",
135
+ * "10001": "builds workflow"
136
+ * },
137
+ * "name": "Example workflow scheme",
138
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
139
+ * }
140
+ * @path {DELETE} /rest/api/3/workflowscheme/{id}/default
141
+ * @scopes-current manage:jira-configuration
142
+ * @scopes-beta read:workflow-scheme:jira, write:workflow-scheme:jira,
143
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
144
+ * read:issue-type:jira, read:project-category:jira, read:project:jira,
145
+ * read:user:jira
146
+ */
147
+ deleteDefaultWorkflow({
148
+ id,
149
+ updateDraftIfNeeded,
150
+ }: {
151
+ /** The ID of the workflow scheme. */
152
+ id: number;
153
+ /**
154
+ * Set to true to create or update the draft of a workflow scheme and delete the
155
+ * mapping from the draft, when the workflow scheme cannot be edited. Defaults to
156
+ * `false`.
157
+ */
158
+ updateDraftIfNeeded?: boolean;
159
+ }): Promise<WorkflowScheme> {
160
+ return this.getClientInstance()
161
+ .request({
162
+ path: "/rest/api/3/workflowscheme/{id}/default",
163
+ method: "DELETE",
164
+ pathParams: {
165
+ id,
166
+ },
167
+ query: {
168
+ updateDraftIfNeeded,
169
+ },
170
+ })
171
+ .then(
172
+ this.getClientInstance().responseHandler({
173
+ 200: {
174
+ "application/json": "json",
175
+ },
176
+ }),
177
+ )
178
+ .then(
179
+ commonHttpClient.castResponse<{
180
+ status: 200;
181
+ mediaType: "application/json";
182
+ body: WorkflowScheme;
183
+ }>(),
184
+ )
185
+ .then(
186
+ validationSchemaStorage.validator(
187
+ "WorkflowSchemesService.deleteDefaultWorkflow.response",
188
+ ),
189
+ )
190
+ .then(commonHttpClient.getBody);
191
+ }
192
+ /**
193
+ * Deletes the workflow-issue type mapping for a workflow in a workflow scheme.
194
+ *
195
+ * Note that active workflow schemes cannot be edited. If the workflow scheme is
196
+ * active, set `updateDraftIfNeeded` to `true` and a draft workflow scheme is
197
+ * created or updated with the workflow-issue type mapping deleted. The draft
198
+ * workflow scheme can be published in Jira.
199
+ *
200
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
201
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
202
+ *
203
+ * @path {DELETE} /rest/api/3/workflowscheme/{id}/workflow
204
+ * @scopes-current manage:jira-configuration
205
+ * @scopes-beta delete:workflow-scheme:jira
206
+ */
207
+ deleteWorkflowMapping({
208
+ id,
209
+ workflowName,
210
+ updateDraftIfNeeded,
211
+ }: {
212
+ /** The ID of the workflow scheme. */
213
+ id: number;
214
+ /** The name of the workflow. */
215
+ workflowName: string;
216
+ /**
217
+ * Set to true to create or update the draft of a workflow scheme and delete the
218
+ * mapping from the draft, when the workflow scheme cannot be edited. Defaults to
219
+ * `false`.
220
+ */
221
+ updateDraftIfNeeded?: boolean;
222
+ }): Promise<void> {
223
+ return this.getClientInstance()
224
+ .request({
225
+ path: "/rest/api/3/workflowscheme/{id}/workflow",
226
+ method: "DELETE",
227
+ pathParams: {
228
+ id,
229
+ },
230
+ query: {
231
+ workflowName,
232
+ updateDraftIfNeeded,
233
+ },
234
+ })
235
+ .then(commonHttpClient.discardResult);
236
+ }
237
+ /**
238
+ * Deletes a workflow scheme. Note that a workflow scheme cannot be deleted if it
239
+ * is active (that is, being used by at least one project).
240
+ *
241
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
242
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
243
+ *
244
+ * @returns Returned if the request is successful.
245
+ * @path {DELETE} /rest/api/3/workflowscheme/{id}
246
+ * @scopes-current manage:jira-configuration
247
+ * @scopes-beta delete:workflow-scheme:jira
248
+ */
249
+ deleteWorkflowScheme({
250
+ id,
251
+ }: {
252
+ /**
253
+ * The ID of the workflow scheme. Find this ID by editing the desired workflow
254
+ * scheme in Jira. The ID is shown in the URL as `schemeId`. For example,
255
+ * *schemeId=10301*.
256
+ */
257
+ id: number;
258
+ }): Promise<void> {
259
+ return this.getClientInstance()
260
+ .request({
261
+ path: "/rest/api/3/workflowscheme/{id}",
262
+ method: "DELETE",
263
+ pathParams: {
264
+ id,
265
+ },
266
+ })
267
+ .then(
268
+ this.getClientInstance().responseHandler({
269
+ 204: {
270
+ "application/json": "json",
271
+ },
272
+ }),
273
+ )
274
+ .then(
275
+ commonHttpClient.castResponse<{
276
+ status: 204;
277
+ mediaType: "application/json";
278
+ body: void;
279
+ }>(),
280
+ )
281
+ .then(
282
+ validationSchemaStorage.validator(
283
+ "WorkflowSchemesService.deleteWorkflowScheme.response",
284
+ ),
285
+ )
286
+ .then(commonHttpClient.getBody);
287
+ }
288
+ /**
289
+ * Deletes the issue type-workflow mapping for an issue type in a workflow scheme.
290
+ *
291
+ * Note that active workflow schemes cannot be edited. If the workflow scheme is
292
+ * active, set `updateDraftIfNeeded` to `true` and a draft workflow scheme is
293
+ * created or updated with the issue type-workflow mapping deleted. The draft
294
+ * workflow scheme can be published in Jira.
295
+ *
296
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
297
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
298
+ *
299
+ * @returns Returned if the request is successful.
300
+ *
301
+ * example: {
302
+ * "defaultWorkflow": "jira",
303
+ * "description": "The description of the example workflow scheme.",
304
+ * "draft": false,
305
+ * "id": 101010,
306
+ * "issueTypeMappings": {
307
+ * "10000": "scrum workflow",
308
+ * "10001": "builds workflow"
309
+ * },
310
+ * "name": "Example workflow scheme",
311
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
312
+ * }
313
+ * @path {DELETE} /rest/api/3/workflowscheme/{id}/issuetype/{issueType}
314
+ * @scopes-current manage:jira-configuration
315
+ * @scopes-beta delete:workflow-scheme:jira, read:application-role:jira, read:avatar:jira,
316
+ * read:group:jira, read:issue-type:jira, read:project-category:jira,
317
+ * read:project:jira, read:user:jira, read:workflow-scheme:jira, read:workflow:jira
318
+ */
319
+ deleteWorkflowSchemeIssueType({
320
+ id,
321
+ issueType,
322
+ updateDraftIfNeeded,
323
+ }: {
324
+ /** The ID of the workflow scheme. */
325
+ id: number;
326
+ /** The ID of the issue type. */
327
+ issueType: string;
328
+ /**
329
+ * Set to true to create or update the draft of a workflow scheme and update the
330
+ * mapping in the draft, when the workflow scheme cannot be edited. Defaults to
331
+ * `false`.
332
+ */
333
+ updateDraftIfNeeded?: boolean;
334
+ }): Promise<WorkflowScheme> {
335
+ return this.getClientInstance()
336
+ .request({
337
+ path: "/rest/api/3/workflowscheme/{id}/issuetype/{issueType}",
338
+ method: "DELETE",
339
+ pathParams: {
340
+ id,
341
+ issueType,
342
+ },
343
+ query: {
344
+ updateDraftIfNeeded,
345
+ },
346
+ })
347
+ .then(
348
+ this.getClientInstance().responseHandler({
349
+ 200: {
350
+ "application/json": "json",
351
+ },
352
+ }),
353
+ )
354
+ .then(
355
+ commonHttpClient.castResponse<{
356
+ status: 200;
357
+ mediaType: "application/json";
358
+ body: WorkflowScheme;
359
+ }>(),
360
+ )
361
+ .then(
362
+ validationSchemaStorage.validator(
363
+ "WorkflowSchemesService.deleteWorkflowSchemeIssueType.response",
364
+ ),
365
+ )
366
+ .then(commonHttpClient.getBody);
367
+ }
368
+ /**
369
+ * Returns a [paginated](#pagination) list of all workflow schemes, not including
370
+ * draft workflow schemes.
371
+ *
372
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
373
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
374
+ *
375
+ * @returns Returned if the request is successful.
376
+ *
377
+ * example: {
378
+ * "isLast": true,
379
+ * "maxResults": 50,
380
+ * "startAt": 0,
381
+ * "total": 2,
382
+ * "values": [
383
+ * {
384
+ * "defaultWorkflow": "jira",
385
+ * "description": "The description of the example workflow scheme.",
386
+ * "id": 101010,
387
+ * "issueTypeMappings": {
388
+ * "10000": "scrum workflow",
389
+ * "10001": "builds workflow"
390
+ * },
391
+ * "name": "Example workflow scheme",
392
+ * "self":
393
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
394
+ * },
395
+ * {
396
+ * "defaultWorkflow": "jira",
397
+ * "description": "The description of the another example workflow scheme.",
398
+ * "id": 101011,
399
+ * "issueTypeMappings": {
400
+ * "10000": "scrum workflow",
401
+ * "10001": "builds workflow"
402
+ * },
403
+ * "name": "Another example workflow scheme",
404
+ * "self":
405
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101011"
406
+ * }
407
+ * ]
408
+ * }
409
+ * @path {GET} /rest/api/3/workflowscheme
410
+ * @scopes-current manage:jira-configuration
411
+ * @scopes-beta read:workflow-scheme:jira, read:application-role:jira, read:avatar:jira,
412
+ * read:group:jira, read:issue-type:jira, read:project-category:jira,
413
+ * read:project:jira, read:user:jira
414
+ */
415
+ getAllWorkflowSchemes({
416
+ startAt,
417
+ maxResults,
418
+ }: {
419
+ /** The index of the first item to return in a page of results (page offset). */
420
+ startAt?: number;
421
+ /** The maximum number of items to return per page. */
422
+ maxResults?: number;
423
+ }): Promise<PageBeanWorkflowScheme> {
424
+ return this.getClientInstance()
425
+ .request({
426
+ path: "/rest/api/3/workflowscheme",
427
+ method: "GET",
428
+ query: {
429
+ startAt,
430
+ maxResults,
431
+ },
432
+ })
433
+ .then(
434
+ this.getClientInstance().responseHandler({
435
+ 200: {
436
+ "application/json": "json",
437
+ },
438
+ }),
439
+ )
440
+ .then(
441
+ commonHttpClient.castResponse<{
442
+ status: 200;
443
+ mediaType: "application/json";
444
+ body: PageBeanWorkflowScheme;
445
+ }>(),
446
+ )
447
+ .then(
448
+ validationSchemaStorage.validator(
449
+ "WorkflowSchemesService.getAllWorkflowSchemes.response",
450
+ ),
451
+ )
452
+ .then(commonHttpClient.getBody);
453
+ }
454
+ /**
455
+ * Returns the default workflow for a workflow scheme. The default workflow is the
456
+ * workflow that is assigned any issue types that have not been mapped to any
457
+ * other workflow. The default workflow has *All Unassigned Issue Types* listed in
458
+ * its issue types for the workflow scheme in Jira.
459
+ *
460
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
461
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
462
+ *
463
+ * @returns Returned if the request is successful.
464
+ *
465
+ * example: {
466
+ * "workflow": "jira"
467
+ * }
468
+ * @path {GET} /rest/api/3/workflowscheme/{id}/default
469
+ * @scopes-current manage:jira-configuration
470
+ * @scopes-beta read:workflow-scheme:jira, read:workflow:jira
471
+ */
472
+ getDefaultWorkflow({
473
+ id,
474
+ returnDraftIfExists,
475
+ }: {
476
+ /** The ID of the workflow scheme. */
477
+ id: number;
478
+ /**
479
+ * Set to `true` to return the default workflow for the workflow scheme's draft
480
+ * rather than scheme itself. If the workflow scheme does not have a draft, then
481
+ * the default workflow for the workflow scheme is returned.
482
+ */
483
+ returnDraftIfExists?: boolean;
484
+ }): Promise<DefaultWorkflow> {
485
+ return this.getClientInstance()
486
+ .request({
487
+ path: "/rest/api/3/workflowscheme/{id}/default",
488
+ method: "GET",
489
+ pathParams: {
490
+ id,
491
+ },
492
+ query: {
493
+ returnDraftIfExists,
494
+ },
495
+ })
496
+ .then(
497
+ this.getClientInstance().responseHandler({
498
+ 200: {
499
+ "application/json": "json",
500
+ },
501
+ }),
502
+ )
503
+ .then(
504
+ commonHttpClient.castResponse<{
505
+ status: 200;
506
+ mediaType: "application/json";
507
+ body: DefaultWorkflow;
508
+ }>(),
509
+ )
510
+ .then(
511
+ validationSchemaStorage.validator(
512
+ "WorkflowSchemesService.getDefaultWorkflow.response",
513
+ ),
514
+ )
515
+ .then(commonHttpClient.getBody);
516
+ }
517
+ /**
518
+ * Returns the workflow-issue type mappings for a workflow scheme.
519
+ *
520
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
521
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
522
+ *
523
+ * @returns Returned if the request is successful.
524
+ *
525
+ * example: {
526
+ * "defaultMapping": false,
527
+ * "issueTypes": [
528
+ * "10000",
529
+ * "10001"
530
+ * ],
531
+ * "workflow": "jira"
532
+ * }
533
+ * @path {GET} /rest/api/3/workflowscheme/{id}/workflow
534
+ * @scopes-current manage:jira-configuration
535
+ * @scopes-beta read:workflow-scheme:jira, read:workflow:jira, read:issue-type:jira
536
+ */
537
+ getWorkflow({
538
+ id,
539
+ workflowName,
540
+ returnDraftIfExists,
541
+ }: {
542
+ /** The ID of the workflow scheme. */
543
+ id: number;
544
+ /**
545
+ * The name of a workflow in the scheme. Limits the results to the workflow-issue
546
+ * type mapping for the specified workflow.
547
+ */
548
+ workflowName?: string;
549
+ /**
550
+ * Returns the mapping from the workflow scheme's draft rather than the workflow
551
+ * scheme, if set to true. If no draft exists, the mapping from the workflow
552
+ * scheme is returned.
553
+ */
554
+ returnDraftIfExists?: boolean;
555
+ }): Promise<IssueTypesWorkflowMapping> {
556
+ return this.getClientInstance()
557
+ .request({
558
+ path: "/rest/api/3/workflowscheme/{id}/workflow",
559
+ method: "GET",
560
+ pathParams: {
561
+ id,
562
+ },
563
+ query: {
564
+ workflowName,
565
+ returnDraftIfExists,
566
+ },
567
+ })
568
+ .then(
569
+ this.getClientInstance().responseHandler({
570
+ 200: {
571
+ "application/json": "json",
572
+ },
573
+ }),
574
+ )
575
+ .then(
576
+ commonHttpClient.castResponse<{
577
+ status: 200;
578
+ mediaType: "application/json";
579
+ body: IssueTypesWorkflowMapping;
580
+ }>(),
581
+ )
582
+ .then(
583
+ validationSchemaStorage.validator(
584
+ "WorkflowSchemesService.getWorkflow.response",
585
+ ),
586
+ )
587
+ .then(commonHttpClient.getBody);
588
+ }
589
+ /**
590
+ * Returns a workflow scheme.
591
+ *
592
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
593
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
594
+ *
595
+ * @returns Returned if the request is successful.
596
+ *
597
+ * example: {
598
+ * "defaultWorkflow": "jira",
599
+ * "description": "The description of the example workflow scheme.",
600
+ * "draft": false,
601
+ * "id": 101010,
602
+ * "issueTypeMappings": {
603
+ * "10000": "scrum workflow",
604
+ * "10001": "builds workflow"
605
+ * },
606
+ * "name": "Example workflow scheme",
607
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
608
+ * }
609
+ * @path {GET} /rest/api/3/workflowscheme/{id}
610
+ * @scopes-current manage:jira-configuration
611
+ * @scopes-beta read:workflow-scheme:jira, read:application-role:jira, read:avatar:jira,
612
+ * read:group:jira, read:issue-type:jira, read:project-category:jira,
613
+ * read:project:jira, read:user:jira
614
+ */
615
+ getWorkflowScheme({
616
+ id,
617
+ returnDraftIfExists,
618
+ }: {
619
+ /**
620
+ * The ID of the workflow scheme. Find this ID by editing the desired workflow
621
+ * scheme in Jira. The ID is shown in the URL as `schemeId`. For example,
622
+ * *schemeId=10301*.
623
+ */
624
+ id: number;
625
+ /**
626
+ * Returns the workflow scheme's draft rather than scheme itself, if set to true.
627
+ * If the workflow scheme does not have a draft, then the workflow scheme is
628
+ * returned.
629
+ */
630
+ returnDraftIfExists?: boolean;
631
+ }): Promise<WorkflowScheme> {
632
+ return this.getClientInstance()
633
+ .request({
634
+ path: "/rest/api/3/workflowscheme/{id}",
635
+ method: "GET",
636
+ pathParams: {
637
+ id,
638
+ },
639
+ query: {
640
+ returnDraftIfExists,
641
+ },
642
+ })
643
+ .then(
644
+ this.getClientInstance().responseHandler({
645
+ 200: {
646
+ "application/json": "json",
647
+ },
648
+ }),
649
+ )
650
+ .then(
651
+ commonHttpClient.castResponse<{
652
+ status: 200;
653
+ mediaType: "application/json";
654
+ body: WorkflowScheme;
655
+ }>(),
656
+ )
657
+ .then(
658
+ validationSchemaStorage.validator(
659
+ "WorkflowSchemesService.getWorkflowScheme.response",
660
+ ),
661
+ )
662
+ .then(commonHttpClient.getBody);
663
+ }
664
+ /**
665
+ * Returns the issue type-workflow mapping for an issue type in a workflow scheme.
666
+ *
667
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
668
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
669
+ *
670
+ * @returns Returned if the request is successful.
671
+ *
672
+ * example: {
673
+ * "issueType": "10000",
674
+ * "workflow": "jira"
675
+ * }
676
+ * @path {GET} /rest/api/3/workflowscheme/{id}/issuetype/{issueType}
677
+ * @scopes-current manage:jira-configuration
678
+ * @scopes-beta read:workflow-scheme:jira, read:workflow:jira, read:issue-type:jira
679
+ */
680
+ getWorkflowSchemeIssueType({
681
+ id,
682
+ issueType,
683
+ returnDraftIfExists,
684
+ }: {
685
+ /** The ID of the workflow scheme. */
686
+ id: number;
687
+ /** The ID of the issue type. */
688
+ issueType: string;
689
+ /**
690
+ * Returns the mapping from the workflow scheme's draft rather than the workflow
691
+ * scheme, if set to true. If no draft exists, the mapping from the workflow
692
+ * scheme is returned.
693
+ */
694
+ returnDraftIfExists?: boolean;
695
+ }): Promise<IssueTypeWorkflowMapping> {
696
+ return this.getClientInstance()
697
+ .request({
698
+ path: "/rest/api/3/workflowscheme/{id}/issuetype/{issueType}",
699
+ method: "GET",
700
+ pathParams: {
701
+ id,
702
+ issueType,
703
+ },
704
+ query: {
705
+ returnDraftIfExists,
706
+ },
707
+ })
708
+ .then(
709
+ this.getClientInstance().responseHandler({
710
+ 200: {
711
+ "application/json": "json",
712
+ },
713
+ }),
714
+ )
715
+ .then(
716
+ commonHttpClient.castResponse<{
717
+ status: 200;
718
+ mediaType: "application/json";
719
+ body: IssueTypeWorkflowMapping;
720
+ }>(),
721
+ )
722
+ .then(
723
+ validationSchemaStorage.validator(
724
+ "WorkflowSchemesService.getWorkflowSchemeIssueType.response",
725
+ ),
726
+ )
727
+ .then(commonHttpClient.getBody);
728
+ }
729
+ /**
730
+ * Returns a list of workflow schemes by providing workflow scheme IDs or project
731
+ * IDs.
732
+ *
733
+ * **[Permissions](#permissions) required:**
734
+ *
735
+ * * *Administer Jira* global permission to access all, including
736
+ * project-scoped, workflow schemes
737
+ * * *Administer projects* project permissions to access project-scoped workflow
738
+ * schemes
739
+ *
740
+ * @returns Returned if the request is successful.
741
+ *
742
+ * example: [
743
+ * {
744
+ * "defaultWorkflow": {
745
+ * "description": "This is the default workflow for Software Development
746
+ * projects.",
747
+ * "id": "3e59db0f-ed6c-47ce-8d50-80c0c4572677",
748
+ * "name": "Default Software Development Workflow",
749
+ * "usage": [
750
+ * {
751
+ * "issueTypeIds": [],
752
+ * "projectId": "10047"
753
+ * }
754
+ * ],
755
+ * "version": {
756
+ * "id": "657812fc-bc72-400f-aae0-df8d88db3d9g",
757
+ * "versionNumber": 1
758
+ * }
759
+ * },
760
+ * "description": "This is the workflow scheme for the Software Development
761
+ * project type.",
762
+ * "id": "3g78dg2a-ns2n-56ab-9812-42h5j1464567",
763
+ * "name": "Software Developer Workflow Scheme",
764
+ * "projectIdsUsingScheme": [
765
+ * "10047"
766
+ * ],
767
+ * "scope": {
768
+ * "project": {
769
+ * "id": "10047"
770
+ * },
771
+ * "type": "GLOBAL"
772
+ * },
773
+ * "taskId": "3f83dg2a-ns2n-56ab-9812-42h5j1461629",
774
+ * "version": {
775
+ * "id": "527213fc-bc72-400f-aae0-df8d88db2c8a",
776
+ * "versionNumber": 1
777
+ * },
778
+ * "workflowsForIssueTypes": [
779
+ * {
780
+ * "issueTypeIds": [
781
+ * "10013"
782
+ * ],
783
+ * "workflow": {
784
+ * "description": "This is the workflow for the Software Development bug
785
+ * issue type.",
786
+ * "id": "5e79ae0f-ed6c-47ce-8d50-80c0c4572745",
787
+ * "name": "Software Development Bug Workflow",
788
+ * "usage": [
789
+ * {
790
+ * "issueTypeIds": [
791
+ * "10013"
792
+ * ],
793
+ * "projectId": "10047"
794
+ * }
795
+ * ],
796
+ * "version": {
797
+ * "id": "897812dc-bc72-400f-aae0-df8d88fe3d8f",
798
+ * "versionNumber": 1
799
+ * }
800
+ * }
801
+ * }
802
+ * ]
803
+ * }
804
+ * ]
805
+ * @path {POST} /rest/api/3/workflowscheme/read
806
+ * @scopes-current manage:jira-configuration
807
+ * @scopes-beta read:workflow-scheme:jira
808
+ */
809
+ readWorkflowSchemes({
810
+ expand,
811
+ workflowSchemeReadRequest,
812
+ }: {
813
+ /**
814
+ * Use [expand](#expansion) to include additional information in the response.
815
+ * This parameter accepts a comma-separated list. Expand options include:
816
+ *
817
+ * * `workflows.usages` Returns the project and issue types that each workflow
818
+ * in the workflow scheme is associated with.
819
+ */
820
+ expand?: string;
821
+ /**
822
+ * @example {
823
+ * "projectIds": [
824
+ * "10047",
825
+ * "10048"
826
+ * ],
827
+ * "workflowSchemeIds": [
828
+ * "3e59db0f-ed6c-47ce-8d50-80c0c4572677"
829
+ * ]
830
+ * }
831
+ */
832
+ workflowSchemeReadRequest: WorkflowSchemeReadRequest;
833
+ }): Promise<WorkflowSchemeReadResponse[]> {
834
+ return this.getClientInstance()
835
+ .request({
836
+ path: "/rest/api/3/workflowscheme/read",
837
+ method: "POST",
838
+ query: {
839
+ expand,
840
+ },
841
+ headers: {
842
+ "Content-Type": "application/json",
843
+ },
844
+ body: workflowSchemeReadRequest,
845
+ })
846
+ .then(
847
+ this.getClientInstance().responseHandler({
848
+ 200: {
849
+ "application/json": "json",
850
+ },
851
+ }),
852
+ )
853
+ .then(
854
+ commonHttpClient.castResponse<{
855
+ status: 200;
856
+ mediaType: "application/json";
857
+ body: WorkflowSchemeReadResponse[];
858
+ }>(),
859
+ )
860
+ .then(
861
+ validationSchemaStorage.validator(
862
+ "WorkflowSchemesService.readWorkflowSchemes.response",
863
+ ),
864
+ )
865
+ .then(commonHttpClient.getBody);
866
+ }
867
+ /**
868
+ * Sets the workflow for an issue type in a workflow scheme.
869
+ *
870
+ * Note that active workflow schemes cannot be edited. If the workflow scheme is
871
+ * active, set `updateDraftIfNeeded` to `true` in the request body and a draft
872
+ * workflow scheme is created or updated with the new issue type-workflow mapping.
873
+ * The draft workflow scheme can be published in Jira.
874
+ *
875
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
876
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
877
+ *
878
+ * @returns Returned if the request is successful.
879
+ *
880
+ * example: {
881
+ * "defaultWorkflow": "jira",
882
+ * "description": "The description of the example workflow scheme.",
883
+ * "draft": false,
884
+ * "id": 101010,
885
+ * "issueTypeMappings": {
886
+ * "10000": "scrum workflow",
887
+ * "10001": "builds workflow"
888
+ * },
889
+ * "name": "Example workflow scheme",
890
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
891
+ * }
892
+ * @path {PUT} /rest/api/3/workflowscheme/{id}/issuetype/{issueType}
893
+ * @scopes-current manage:jira-configuration
894
+ * @scopes-beta write:workflow-scheme:jira, read:workflow-scheme:jira, read:workflow:jira,
895
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
896
+ * read:issue-type:jira, read:project-category:jira, read:project:jira,
897
+ * read:user:jira
898
+ */
899
+ setWorkflowSchemeIssueType({
900
+ id,
901
+ issueType,
902
+ issueTypeWorkflowMapping,
903
+ }: {
904
+ /** The ID of the workflow scheme. */
905
+ id: number;
906
+ /** The ID of the issue type. */
907
+ issueType: string;
908
+ /**
909
+ * The issue type-project mapping.
910
+ *
911
+ * @example {
912
+ * "issueType": "10000",
913
+ * "updateDraftIfNeeded": false,
914
+ * "workflow": "jira"
915
+ * }
916
+ */
917
+ issueTypeWorkflowMapping: IssueTypeWorkflowMapping;
918
+ }): Promise<WorkflowScheme> {
919
+ return this.getClientInstance()
920
+ .request({
921
+ path: "/rest/api/3/workflowscheme/{id}/issuetype/{issueType}",
922
+ method: "PUT",
923
+ pathParams: {
924
+ id,
925
+ issueType,
926
+ },
927
+ headers: {
928
+ "Content-Type": "application/json",
929
+ },
930
+ body: issueTypeWorkflowMapping,
931
+ })
932
+ .then(
933
+ this.getClientInstance().responseHandler({
934
+ 200: {
935
+ "application/json": "json",
936
+ },
937
+ }),
938
+ )
939
+ .then(
940
+ commonHttpClient.castResponse<{
941
+ status: 200;
942
+ mediaType: "application/json";
943
+ body: WorkflowScheme;
944
+ }>(),
945
+ )
946
+ .then(
947
+ validationSchemaStorage.validator(
948
+ "WorkflowSchemesService.setWorkflowSchemeIssueType.response",
949
+ ),
950
+ )
951
+ .then(commonHttpClient.getBody);
952
+ }
953
+ /**
954
+ * Sets the default workflow for a workflow scheme.
955
+ *
956
+ * Note that active workflow schemes cannot be edited. If the workflow scheme is
957
+ * active, set `updateDraftIfNeeded` to `true` in the request object and a draft
958
+ * workflow scheme is created or updated with the new default workflow. The draft
959
+ * workflow scheme can be published in Jira.
960
+ *
961
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
962
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
963
+ *
964
+ * @returns Returned if the request is successful.
965
+ *
966
+ * example: {
967
+ * "defaultWorkflow": "jira",
968
+ * "description": "The description of the example workflow scheme.",
969
+ * "draft": false,
970
+ * "id": 101010,
971
+ * "issueTypeMappings": {
972
+ * "10000": "scrum workflow",
973
+ * "10001": "builds workflow"
974
+ * },
975
+ * "name": "Example workflow scheme",
976
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
977
+ * }
978
+ * @path {PUT} /rest/api/3/workflowscheme/{id}/default
979
+ * @scopes-current manage:jira-configuration
980
+ * @scopes-beta read:workflow-scheme:jira, write:workflow-scheme:jira,
981
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
982
+ * read:issue-type:jira, read:project-category:jira, read:project:jira,
983
+ * read:user:jira
984
+ */
985
+ updateDefaultWorkflow({
986
+ id,
987
+ defaultWorkflow,
988
+ }: {
989
+ /** The ID of the workflow scheme. */
990
+ id: number;
991
+ /**
992
+ * The new default workflow.
993
+ *
994
+ * @example {
995
+ * "updateDraftIfNeeded": false,
996
+ * "workflow": "jira"
997
+ * }
998
+ */
999
+ defaultWorkflow: DefaultWorkflow;
1000
+ }): Promise<WorkflowScheme> {
1001
+ return this.getClientInstance()
1002
+ .request({
1003
+ path: "/rest/api/3/workflowscheme/{id}/default",
1004
+ method: "PUT",
1005
+ pathParams: {
1006
+ id,
1007
+ },
1008
+ headers: {
1009
+ "Content-Type": "application/json",
1010
+ },
1011
+ body: defaultWorkflow,
1012
+ })
1013
+ .then(
1014
+ this.getClientInstance().responseHandler({
1015
+ 200: {
1016
+ "application/json": "json",
1017
+ },
1018
+ }),
1019
+ )
1020
+ .then(
1021
+ commonHttpClient.castResponse<{
1022
+ status: 200;
1023
+ mediaType: "application/json";
1024
+ body: WorkflowScheme;
1025
+ }>(),
1026
+ )
1027
+ .then(
1028
+ validationSchemaStorage.validator(
1029
+ "WorkflowSchemesService.updateDefaultWorkflow.response",
1030
+ ),
1031
+ )
1032
+ .then(commonHttpClient.getBody);
1033
+ }
1034
+ /**
1035
+ * Updates company-managed and team-managed project workflow schemes. This API
1036
+ * doesn't have a concept of draft, so any changes made to a workflow scheme are
1037
+ * immediately available. When changing the available statuses for issue types, an
1038
+ * [asynchronous task](#async) migrates the issues as defined in the provided
1039
+ * mappings.
1040
+ *
1041
+ * **[Permissions](#permissions) required:**
1042
+ *
1043
+ * * *Administer Jira* project permission to update all, including
1044
+ * global-scoped, workflow schemes.
1045
+ * * *Administer projects* project permission to update project-scoped workflow
1046
+ * schemes.
1047
+ *
1048
+ * @returns Returned if the request is successful and there is no asynchronous task.
1049
+ * @path {POST} /rest/api/3/workflowscheme/update
1050
+ * @scopes-current manage:jira-configuration
1051
+ * @scopes-beta write:workflow-scheme:jira
1052
+ */
1053
+ updateSchemes({
1054
+ workflowSchemeUpdateRequest,
1055
+ }: {
1056
+ /**
1057
+ * @example {
1058
+ * "defaultWorkflowId": "3e59db0f-ed6c-47ce-8d50-80c0c4572677",
1059
+ * "description": "description",
1060
+ * "id": "10000",
1061
+ * "name": "name",
1062
+ * "statusMappingsByIssueTypeOverride": [
1063
+ * {
1064
+ * "issueTypeId": "10001",
1065
+ * "statusMappings": [
1066
+ * {
1067
+ * "newStatusId": "2",
1068
+ * "oldStatusId": "1"
1069
+ * },
1070
+ * {
1071
+ * "newStatusId": "4",
1072
+ * "oldStatusId": "3"
1073
+ * }
1074
+ * ]
1075
+ * },
1076
+ * {
1077
+ * "issueTypeId": "10002",
1078
+ * "statusMappings": [
1079
+ * {
1080
+ * "newStatusId": "4",
1081
+ * "oldStatusId": "1"
1082
+ * },
1083
+ * {
1084
+ * "newStatusId": "2",
1085
+ * "oldStatusId": "3"
1086
+ * }
1087
+ * ]
1088
+ * }
1089
+ * ],
1090
+ * "statusMappingsByWorkflows": [
1091
+ * {
1092
+ * "newWorkflowId": "3e59db0f-ed6c-47ce-8d50-80c0c4572677",
1093
+ * "oldWorkflowId": "3e59db0f-ed6c-47ce-8d50-80c0c4572677",
1094
+ * "statusMappings": [
1095
+ * {
1096
+ * "newStatusId": "2",
1097
+ * "oldStatusId": "1"
1098
+ * },
1099
+ * {
1100
+ * "newStatusId": "4",
1101
+ * "oldStatusId": "3"
1102
+ * }
1103
+ * ]
1104
+ * }
1105
+ * ],
1106
+ * "version": {
1107
+ * "id": "527213fc-bc72-400f-aae0-df8d88db2c8a",
1108
+ * "versionNumber": 1
1109
+ * },
1110
+ * "workflowsForIssueTypes": [
1111
+ * {
1112
+ * "issueTypeIds": [
1113
+ * "10000",
1114
+ * "10003"
1115
+ * ],
1116
+ * "workflowId": "3e59db0f-ed6c-47ce-8d50-80c0c4572677"
1117
+ * },
1118
+ * {
1119
+ * "issueTypeIds": [
1120
+ * "10001`",
1121
+ * "10002"
1122
+ * ],
1123
+ * "workflowId": "3f83dg2a-ns2n-56ab-9812-42h5j1461629"
1124
+ * }
1125
+ * ]
1126
+ * }
1127
+ */
1128
+ workflowSchemeUpdateRequest: WorkflowSchemeUpdateRequest;
1129
+ }): Promise<unknown> {
1130
+ return this.getClientInstance()
1131
+ .request({
1132
+ path: "/rest/api/3/workflowscheme/update",
1133
+ method: "POST",
1134
+ headers: {
1135
+ "Content-Type": "application/json",
1136
+ },
1137
+ body: workflowSchemeUpdateRequest,
1138
+ })
1139
+ .then(
1140
+ this.getClientInstance().responseHandler({
1141
+ 200: {
1142
+ "application/json": "json",
1143
+ },
1144
+ }),
1145
+ )
1146
+ .then(
1147
+ commonHttpClient.castResponse<{
1148
+ status: 200;
1149
+ mediaType: "application/json";
1150
+ body: unknown;
1151
+ }>(),
1152
+ )
1153
+ .then(
1154
+ validationSchemaStorage.validator(
1155
+ "WorkflowSchemesService.updateSchemes.response",
1156
+ ),
1157
+ )
1158
+ .then(commonHttpClient.getBody);
1159
+ }
1160
+ /**
1161
+ * Sets the issue types for a workflow in a workflow scheme. The workflow can also
1162
+ * be set as the default workflow for the workflow scheme. Unmapped issues types
1163
+ * are mapped to the default workflow.
1164
+ *
1165
+ * Note that active workflow schemes cannot be edited. If the workflow scheme is
1166
+ * active, set `updateDraftIfNeeded` to `true` in the request body and a draft
1167
+ * workflow scheme is created or updated with the new workflow-issue types
1168
+ * mappings. The draft workflow scheme can be published in Jira.
1169
+ *
1170
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
1171
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
1172
+ *
1173
+ * @returns Returned if the request is successful.
1174
+ *
1175
+ * example: {
1176
+ * "defaultWorkflow": "jira",
1177
+ * "description": "The description of the example workflow scheme.",
1178
+ * "draft": false,
1179
+ * "id": 101010,
1180
+ * "issueTypeMappings": {
1181
+ * "10000": "scrum workflow",
1182
+ * "10001": "builds workflow"
1183
+ * },
1184
+ * "name": "Example workflow scheme",
1185
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
1186
+ * }
1187
+ * @path {PUT} /rest/api/3/workflowscheme/{id}/workflow
1188
+ * @scopes-current manage:jira-configuration
1189
+ * @scopes-beta write:workflow-scheme:jira, read:workflow-scheme:jira, read:workflow:jira,
1190
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
1191
+ * read:issue-type:jira, read:project-category:jira, read:project:jira,
1192
+ * read:user:jira
1193
+ */
1194
+ updateWorkflowMapping({
1195
+ id,
1196
+ workflowName,
1197
+ issueTypesWorkflowMapping,
1198
+ }: {
1199
+ /** The ID of the workflow scheme. */
1200
+ id: number;
1201
+ /** The name of the workflow. */
1202
+ workflowName: string;
1203
+ /**
1204
+ * @example {
1205
+ * "issueTypes": [
1206
+ * "10000"
1207
+ * ],
1208
+ * "updateDraftIfNeeded": true,
1209
+ * "workflow": "jira"
1210
+ * }
1211
+ */
1212
+ issueTypesWorkflowMapping: IssueTypesWorkflowMapping;
1213
+ }): Promise<WorkflowScheme> {
1214
+ return this.getClientInstance()
1215
+ .request({
1216
+ path: "/rest/api/3/workflowscheme/{id}/workflow",
1217
+ method: "PUT",
1218
+ pathParams: {
1219
+ id,
1220
+ },
1221
+ query: {
1222
+ workflowName,
1223
+ },
1224
+ headers: {
1225
+ "Content-Type": "application/json",
1226
+ },
1227
+ body: issueTypesWorkflowMapping,
1228
+ })
1229
+ .then(
1230
+ this.getClientInstance().responseHandler({
1231
+ 200: {
1232
+ "application/json": "json",
1233
+ },
1234
+ }),
1235
+ )
1236
+ .then(
1237
+ commonHttpClient.castResponse<{
1238
+ status: 200;
1239
+ mediaType: "application/json";
1240
+ body: WorkflowScheme;
1241
+ }>(),
1242
+ )
1243
+ .then(
1244
+ validationSchemaStorage.validator(
1245
+ "WorkflowSchemesService.updateWorkflowMapping.response",
1246
+ ),
1247
+ )
1248
+ .then(commonHttpClient.getBody);
1249
+ }
1250
+ /**
1251
+ * Updates a company-manged project workflow scheme, including the name, default
1252
+ * workflow, issue type to project mappings, and more. If the workflow scheme is
1253
+ * active (that is, being used by at least one project), then a draft workflow
1254
+ * scheme is created or updated instead, provided that `updateDraftIfNeeded` is
1255
+ * set to `true`.
1256
+ *
1257
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
1258
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
1259
+ *
1260
+ * @returns Returned if the request is successful.
1261
+ *
1262
+ * example: {
1263
+ * "defaultWorkflow": "jira",
1264
+ * "description": "The description of the example workflow scheme.",
1265
+ * "draft": false,
1266
+ * "id": 101010,
1267
+ * "issueTypeMappings": {
1268
+ * "10000": "scrum workflow",
1269
+ * "10001": "builds workflow"
1270
+ * },
1271
+ * "name": "Example workflow scheme",
1272
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
1273
+ * }
1274
+ * @path {PUT} /rest/api/3/workflowscheme/{id}
1275
+ * @scopes-current manage:jira-configuration
1276
+ * @scopes-beta read:workflow-scheme:jira, write:workflow-scheme:jira,
1277
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
1278
+ * read:issue-type:jira, read:project-category:jira, read:project:jira,
1279
+ * read:user:jira
1280
+ */
1281
+ updateWorkflowScheme({
1282
+ id,
1283
+ workflowScheme,
1284
+ }: {
1285
+ /**
1286
+ * The ID of the workflow scheme. Find this ID by editing the desired workflow
1287
+ * scheme in Jira. The ID is shown in the URL as `schemeId`. For example,
1288
+ * *schemeId=10301*.
1289
+ */
1290
+ id: number;
1291
+ /**
1292
+ * @example {
1293
+ * "defaultWorkflow": "jira",
1294
+ * "description": "The description of the example workflow scheme.",
1295
+ * "issueTypeMappings": {
1296
+ * "10000": "scrum workflow"
1297
+ * },
1298
+ * "name": "Example workflow scheme",
1299
+ * "updateDraftIfNeeded": false
1300
+ * }
1301
+ */
1302
+ workflowScheme: WorkflowScheme;
1303
+ }): Promise<WorkflowScheme> {
1304
+ return this.getClientInstance()
1305
+ .request({
1306
+ path: "/rest/api/3/workflowscheme/{id}",
1307
+ method: "PUT",
1308
+ pathParams: {
1309
+ id,
1310
+ },
1311
+ headers: {
1312
+ "Content-Type": "application/json",
1313
+ },
1314
+ body: workflowScheme,
1315
+ })
1316
+ .then(
1317
+ this.getClientInstance().responseHandler({
1318
+ 200: {
1319
+ "application/json": "json",
1320
+ },
1321
+ }),
1322
+ )
1323
+ .then(
1324
+ commonHttpClient.castResponse<{
1325
+ status: 200;
1326
+ mediaType: "application/json";
1327
+ body: WorkflowScheme;
1328
+ }>(),
1329
+ )
1330
+ .then(
1331
+ validationSchemaStorage.validator(
1332
+ "WorkflowSchemesService.updateWorkflowScheme.response",
1333
+ ),
1334
+ )
1335
+ .then(commonHttpClient.getBody);
1336
+ }
1337
+ /**
1338
+ * Gets the required status mappings for the desired changes to a workflow scheme.
1339
+ * The results are provided per issue type and workflow. When updating a workflow
1340
+ * scheme, status mappings can be provided per issue type, per workflow, or both.
1341
+ *
1342
+ * **[Permissions](#permissions) required:**
1343
+ *
1344
+ * * *Administer Jira* permission to update all, including global-scoped,
1345
+ * workflow schemes.
1346
+ * * *Administer projects* project permission to update project-scoped workflow
1347
+ * schemes.
1348
+ *
1349
+ * @returns Returned if the request is successful.
1350
+ *
1351
+ * example: {
1352
+ * "statusMappingsByIssueTypes": [
1353
+ * {
1354
+ * "issueTypeId": "10000",
1355
+ * "statusIds": [
1356
+ * "10000",
1357
+ * "10001"
1358
+ * ]
1359
+ * }
1360
+ * ],
1361
+ * "statusMappingsByWorkflows": [
1362
+ * {
1363
+ * "sourceWorkflowId": "10000",
1364
+ * "statusIds": [
1365
+ * "10000",
1366
+ * "10001"
1367
+ * ],
1368
+ * "targetWorkflowId": "10001"
1369
+ * }
1370
+ * ],
1371
+ * "statuses": [
1372
+ * {
1373
+ * "category": "TODO",
1374
+ * "id": "10000",
1375
+ * "name": "To Do"
1376
+ * }
1377
+ * ],
1378
+ * "statusesPerWorkflow": [
1379
+ * {
1380
+ * "initialStatusId": "10000",
1381
+ * "statuses": [
1382
+ * "10000",
1383
+ * "10001"
1384
+ * ],
1385
+ * "workflowId": "10000"
1386
+ * }
1387
+ * ]
1388
+ * }
1389
+ * @path {POST} /rest/api/3/workflowscheme/update/mappings
1390
+ * @scopes-current manage:jira-configuration
1391
+ * @scopes-beta write:workflow-scheme:jira
1392
+ */
1393
+ updateWorkflowSchemeMappings({
1394
+ workflowSchemeUpdateRequiredMappingsRequest,
1395
+ }: {
1396
+ /**
1397
+ * @example {
1398
+ * "defaultWorkflowId": "10010",
1399
+ * "id": "10001",
1400
+ * "workflowsForIssueTypes": [
1401
+ * {
1402
+ * "issueTypeIds": [
1403
+ * "10010",
1404
+ * "10011"
1405
+ * ],
1406
+ * "workflowId": "10001"
1407
+ * }
1408
+ * ]
1409
+ * }
1410
+ */
1411
+ workflowSchemeUpdateRequiredMappingsRequest: WorkflowSchemeUpdateRequiredMappingsRequest;
1412
+ }): Promise<WorkflowSchemeUpdateRequiredMappingsResponse> {
1413
+ return this.getClientInstance()
1414
+ .request({
1415
+ path: "/rest/api/3/workflowscheme/update/mappings",
1416
+ method: "POST",
1417
+ headers: {
1418
+ "Content-Type": "application/json",
1419
+ },
1420
+ body: workflowSchemeUpdateRequiredMappingsRequest,
1421
+ })
1422
+ .then(
1423
+ this.getClientInstance().responseHandler({
1424
+ 200: {
1425
+ "application/json": "json",
1426
+ },
1427
+ }),
1428
+ )
1429
+ .then(
1430
+ commonHttpClient.castResponse<{
1431
+ status: 200;
1432
+ mediaType: "application/json";
1433
+ body: WorkflowSchemeUpdateRequiredMappingsResponse;
1434
+ }>(),
1435
+ )
1436
+ .then(
1437
+ validationSchemaStorage.validator(
1438
+ "WorkflowSchemesService.updateWorkflowSchemeMappings.response",
1439
+ ),
1440
+ )
1441
+ .then(commonHttpClient.getBody);
1442
+ }
1443
+ static initialize() {
1444
+ validationSchemaStorage.registerExtensible(
1445
+ "WorkflowSchemesService.getAllWorkflowSchemes.response",
1446
+ z
1447
+ .object({
1448
+ status: z.literal(200),
1449
+ mediaType: z.literal("application/json"),
1450
+ body: validationSchemaStorage.lazy("PageBeanWorkflowScheme"),
1451
+ })
1452
+ .describe("WorkflowSchemesService.getAllWorkflowSchemes.response"),
1453
+ );
1454
+ validationSchemaStorage.registerExtensible(
1455
+ "WorkflowSchemesService.createWorkflowScheme.response",
1456
+ z
1457
+ .object({
1458
+ status: z.literal(201),
1459
+ mediaType: z.literal("application/json"),
1460
+ body: validationSchemaStorage.lazy("WorkflowScheme"),
1461
+ })
1462
+ .describe("WorkflowSchemesService.createWorkflowScheme.response"),
1463
+ );
1464
+ validationSchemaStorage.registerExtensible(
1465
+ "WorkflowSchemesService.getWorkflowScheme.response",
1466
+ z
1467
+ .object({
1468
+ status: z.literal(200),
1469
+ mediaType: z.literal("application/json"),
1470
+ body: validationSchemaStorage.lazy("WorkflowScheme"),
1471
+ })
1472
+ .describe("WorkflowSchemesService.getWorkflowScheme.response"),
1473
+ );
1474
+ validationSchemaStorage.registerExtensible(
1475
+ "WorkflowSchemesService.updateWorkflowScheme.response",
1476
+ z
1477
+ .object({
1478
+ status: z.literal(200),
1479
+ mediaType: z.literal("application/json"),
1480
+ body: validationSchemaStorage.lazy("WorkflowScheme"),
1481
+ })
1482
+ .describe("WorkflowSchemesService.updateWorkflowScheme.response"),
1483
+ );
1484
+ validationSchemaStorage.registerExtensible(
1485
+ "WorkflowSchemesService.deleteWorkflowScheme.response",
1486
+ z
1487
+ .object({
1488
+ status: z.literal(204),
1489
+ mediaType: z.literal("application/json"),
1490
+ body: z.unknown(),
1491
+ })
1492
+ .describe("WorkflowSchemesService.deleteWorkflowScheme.response"),
1493
+ );
1494
+ validationSchemaStorage.registerExtensible(
1495
+ "WorkflowSchemesService.getDefaultWorkflow.response",
1496
+ z
1497
+ .object({
1498
+ status: z.literal(200),
1499
+ mediaType: z.literal("application/json"),
1500
+ body: validationSchemaStorage.lazy("DefaultWorkflow"),
1501
+ })
1502
+ .describe("WorkflowSchemesService.getDefaultWorkflow.response"),
1503
+ );
1504
+ validationSchemaStorage.registerExtensible(
1505
+ "WorkflowSchemesService.updateDefaultWorkflow.response",
1506
+ z
1507
+ .object({
1508
+ status: z.literal(200),
1509
+ mediaType: z.literal("application/json"),
1510
+ body: validationSchemaStorage.lazy("WorkflowScheme"),
1511
+ })
1512
+ .describe("WorkflowSchemesService.updateDefaultWorkflow.response"),
1513
+ );
1514
+ validationSchemaStorage.registerExtensible(
1515
+ "WorkflowSchemesService.deleteDefaultWorkflow.response",
1516
+ z
1517
+ .object({
1518
+ status: z.literal(200),
1519
+ mediaType: z.literal("application/json"),
1520
+ body: validationSchemaStorage.lazy("WorkflowScheme"),
1521
+ })
1522
+ .describe("WorkflowSchemesService.deleteDefaultWorkflow.response"),
1523
+ );
1524
+ validationSchemaStorage.registerExtensible(
1525
+ "WorkflowSchemesService.getWorkflowSchemeIssueType.response",
1526
+ z
1527
+ .object({
1528
+ status: z.literal(200),
1529
+ mediaType: z.literal("application/json"),
1530
+ body: validationSchemaStorage.lazy("IssueTypeWorkflowMapping"),
1531
+ })
1532
+ .describe("WorkflowSchemesService.getWorkflowSchemeIssueType.response"),
1533
+ );
1534
+ validationSchemaStorage.registerExtensible(
1535
+ "WorkflowSchemesService.setWorkflowSchemeIssueType.response",
1536
+ z
1537
+ .object({
1538
+ status: z.literal(200),
1539
+ mediaType: z.literal("application/json"),
1540
+ body: validationSchemaStorage.lazy("WorkflowScheme"),
1541
+ })
1542
+ .describe("WorkflowSchemesService.setWorkflowSchemeIssueType.response"),
1543
+ );
1544
+ validationSchemaStorage.registerExtensible(
1545
+ "WorkflowSchemesService.deleteWorkflowSchemeIssueType.response",
1546
+ z
1547
+ .object({
1548
+ status: z.literal(200),
1549
+ mediaType: z.literal("application/json"),
1550
+ body: validationSchemaStorage.lazy("WorkflowScheme"),
1551
+ })
1552
+ .describe(
1553
+ "WorkflowSchemesService.deleteWorkflowSchemeIssueType.response",
1554
+ ),
1555
+ );
1556
+ validationSchemaStorage.registerExtensible(
1557
+ "WorkflowSchemesService.getWorkflow.response",
1558
+ z
1559
+ .object({
1560
+ status: z.literal(200),
1561
+ mediaType: z.literal("application/json"),
1562
+ body: validationSchemaStorage.lazy("IssueTypesWorkflowMapping"),
1563
+ })
1564
+ .describe("WorkflowSchemesService.getWorkflow.response"),
1565
+ );
1566
+ validationSchemaStorage.registerExtensible(
1567
+ "WorkflowSchemesService.updateWorkflowMapping.response",
1568
+ z
1569
+ .object({
1570
+ status: z.literal(200),
1571
+ mediaType: z.literal("application/json"),
1572
+ body: validationSchemaStorage.lazy("WorkflowScheme"),
1573
+ })
1574
+ .describe("WorkflowSchemesService.updateWorkflowMapping.response"),
1575
+ );
1576
+ validationSchemaStorage.registerExtensible(
1577
+ "WorkflowSchemesService.readWorkflowSchemes.response",
1578
+ z
1579
+ .object({
1580
+ status: z.literal(200),
1581
+ mediaType: z.literal("application/json"),
1582
+ body: z.array(
1583
+ validationSchemaStorage.lazy("WorkflowSchemeReadResponse"),
1584
+ ),
1585
+ })
1586
+ .describe("WorkflowSchemesService.readWorkflowSchemes.response"),
1587
+ );
1588
+ validationSchemaStorage.registerExtensible(
1589
+ "WorkflowSchemesService.updateSchemes.response",
1590
+ z
1591
+ .object({
1592
+ status: z.literal(200),
1593
+ mediaType: z.literal("application/json"),
1594
+ body: z.unknown(),
1595
+ })
1596
+ .describe("WorkflowSchemesService.updateSchemes.response"),
1597
+ );
1598
+ validationSchemaStorage.registerExtensible(
1599
+ "WorkflowSchemesService.updateWorkflowSchemeMappings.response",
1600
+ z
1601
+ .object({
1602
+ status: z.literal(200),
1603
+ mediaType: z.literal("application/json"),
1604
+ body: validationSchemaStorage.lazy(
1605
+ "WorkflowSchemeUpdateRequiredMappingsResponse",
1606
+ ),
1607
+ })
1608
+ .describe(
1609
+ "WorkflowSchemesService.updateWorkflowSchemeMappings.response",
1610
+ ),
1611
+ );
1612
+ validationSchemaStorage.registerOnce([
1613
+ registerWorkflowSchemesValidationSchemas,
1614
+ registerCommonValidationSchemas,
1615
+ ]);
1616
+ }
1617
+ }