@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,2529 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowsService = void 0;
4
+ // DO NOT EDIT!
5
+ // This file is generated by "api-typescript-generator".
6
+ // To update this file run "yarn build:openapi".
7
+ const zod_1 = require("zod");
8
+ const commonHttpClient = require("../core/common-http-client");
9
+ const common_http_service_1 = require("../core/common-http-service");
10
+ const workflows_1 = require("../models/workflows");
11
+ const validation_schema_storage_1 = require("../validation-schema-storage");
12
+ /**
13
+ * This resource represents workflows. Use it to:
14
+ *
15
+ * * Get workflows
16
+ * * Create workflows
17
+ * * Update workflows
18
+ * * Delete inactive workflows
19
+ * * Get workflow capabilities
20
+ */
21
+ class WorkflowsService extends common_http_service_1.CommonHttpService {
22
+ /**
23
+ * Creates a workflow. You can define transition rules using the shapes detailed
24
+ * in the following sections. If no transitional rules are specified the default
25
+ * system transition rules are used. Note: This only applies to company-managed
26
+ * scoped workflows. Use [bulk create
27
+ * workflows](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflows-create-post)
28
+ * to create both team and company-managed scoped workflows.
29
+ *
30
+ * #### Conditions ####
31
+ *
32
+ * Conditions enable workflow rules that govern whether a transition can execute.
33
+ *
34
+ * ##### Always false condition #####
35
+ *
36
+ * A condition that always fails.
37
+ *
38
+ * {
39
+ * "type": "AlwaysFalseCondition"
40
+ * }
41
+ *
42
+ * ##### Block transition until approval #####
43
+ *
44
+ * A condition that blocks issue transition if there is a pending approval.
45
+ *
46
+ * {
47
+ * "type": "BlockInProgressApprovalCondition"
48
+ * }
49
+ *
50
+ * ##### Compare number custom field condition #####
51
+ *
52
+ * A condition that allows transition if a comparison between a number custom
53
+ * field and a value is true.
54
+ *
55
+ * {
56
+ * "type": "CompareNumberCFCondition",
57
+ * "configuration": {
58
+ * "comparator": "=",
59
+ * "fieldId": "customfield_10029",
60
+ * "fieldValue": 2
61
+ * }
62
+ * }
63
+ *
64
+ * * `comparator` One of the supported comparator: `=`, `>`, and `<`.
65
+ * * `fieldId` The custom numeric field ID. Allowed field types:
66
+ *
67
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:float`
68
+ * * `com.pyxis.greenhopper.jira:jsw-story-points`
69
+ * * `fieldValue` The value for comparison.
70
+ *
71
+ * ##### Hide from user condition #####
72
+ *
73
+ * A condition that hides a transition from users. The transition can only be
74
+ * triggered from a workflow function or REST API operation.
75
+ *
76
+ * {
77
+ * "type": "RemoteOnlyCondition"
78
+ * }
79
+ *
80
+ * ##### Only assignee condition #####
81
+ *
82
+ * A condition that allows only the assignee to execute a transition.
83
+ *
84
+ * {
85
+ * "type": "AllowOnlyAssignee"
86
+ * }
87
+ *
88
+ * ##### Only Bamboo notifications workflow condition (deprecated) #####
89
+ *
90
+ * A condition that makes the transition available only to Bamboo build
91
+ * notifications.
92
+ *
93
+ * {
94
+ * "type": "OnlyBambooNotificationsCondition"
95
+ * }
96
+ *
97
+ * ##### Only reporter condition #####
98
+ *
99
+ * A condition that allows only the reporter to execute a transition.
100
+ *
101
+ * {
102
+ * "type": "AllowOnlyReporter"
103
+ * }
104
+ *
105
+ * ##### Permission condition #####
106
+ *
107
+ * A condition that allows only users with a permission to execute a transition.
108
+ *
109
+ * {
110
+ * "type": "PermissionCondition",
111
+ * "configuration": {
112
+ * "permissionKey": "BROWSE_PROJECTS"
113
+ * }
114
+ * }
115
+ *
116
+ * * `permissionKey` The permission required to perform the transition. Allowed
117
+ * values:
118
+ * [built-in](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions)
119
+ * or app defined permissions.
120
+ *
121
+ * ##### Previous status condition #####
122
+ *
123
+ * A condition that allows a transition based on whether an issue has or has not
124
+ * transitioned through a status.
125
+ *
126
+ * {
127
+ * "type": "PreviousStatusCondition",
128
+ * "configuration": {
129
+ * "ignoreLoopTransitions": true,
130
+ * "includeCurrentStatus": true,
131
+ * "mostRecentStatusOnly": true,
132
+ * "reverseCondition": true,
133
+ * "previousStatus": {
134
+ * "id": "5"
135
+ * }
136
+ * }
137
+ * }
138
+ *
139
+ * By default this condition allows the transition if the status, as defined by
140
+ * its ID in the `previousStatus` object, matches any previous issue status,
141
+ * unless:
142
+ *
143
+ * * `ignoreLoopTransitions` is `true`, then loop transitions (from and to the
144
+ * same status) are ignored.
145
+ * * `includeCurrentStatus` is `true`, then the current issue status is also
146
+ * checked.
147
+ * * `mostRecentStatusOnly` is `true`, then only the issue's preceding status
148
+ * (the one immediately before the current status) is checked.
149
+ * * `reverseCondition` is `true`, then the status must not be present.
150
+ *
151
+ * ##### Separation of duties condition #####
152
+ *
153
+ * A condition that prevents a user to perform the transition, if the user has
154
+ * already performed a transition on the issue.
155
+ *
156
+ * {
157
+ * "type": "SeparationOfDutiesCondition",
158
+ * "configuration": {
159
+ * "fromStatus": {
160
+ * "id": "5"
161
+ * },
162
+ * "toStatus": {
163
+ * "id": "6"
164
+ * }
165
+ * }
166
+ * }
167
+ *
168
+ * * `fromStatus` OPTIONAL. An object containing the ID of the source status of
169
+ * the transition that is blocked. If omitted any transition to `toStatus` is
170
+ * blocked.
171
+ * * `toStatus` An object containing the ID of the target status of the
172
+ * transition that is blocked.
173
+ *
174
+ * ##### Subtask blocking condition #####
175
+ *
176
+ * A condition that blocks transition on a parent issue if any of its subtasks are
177
+ * in any of one or more statuses.
178
+ *
179
+ * {
180
+ * "type": "SubTaskBlockingCondition",
181
+ * "configuration": {
182
+ * "statuses": [
183
+ * {
184
+ * "id": "1"
185
+ * },
186
+ * {
187
+ * "id": "3"
188
+ * }
189
+ * ]
190
+ * }
191
+ * }
192
+ *
193
+ * * `statuses` A list of objects containing status IDs.
194
+ *
195
+ * ##### User is in any group condition #####
196
+ *
197
+ * A condition that allows users belonging to any group from a list of groups to
198
+ * execute a transition.
199
+ *
200
+ * {
201
+ * "type": "UserInAnyGroupCondition",
202
+ * "configuration": {
203
+ * "groups": [
204
+ * "administrators",
205
+ * "atlassian-addons-admin"
206
+ * ]
207
+ * }
208
+ * }
209
+ *
210
+ * * `groups` A list of group names.
211
+ *
212
+ * ##### User is in any project role condition #####
213
+ *
214
+ * A condition that allows only users with at least one project roles from a list
215
+ * of project roles to execute a transition.
216
+ *
217
+ * {
218
+ * "type": "InAnyProjectRoleCondition",
219
+ * "configuration": {
220
+ * "projectRoles": [
221
+ * {
222
+ * "id": "10002"
223
+ * },
224
+ * {
225
+ * "id": "10003"
226
+ * },
227
+ * {
228
+ * "id": "10012"
229
+ * },
230
+ * {
231
+ * "id": "10013"
232
+ * }
233
+ * ]
234
+ * }
235
+ * }
236
+ *
237
+ * * `projectRoles` A list of objects containing project role IDs.
238
+ *
239
+ * ##### User is in custom field condition #####
240
+ *
241
+ * A condition that allows only users listed in a given custom field to execute
242
+ * the transition.
243
+ *
244
+ * {
245
+ * "type": "UserIsInCustomFieldCondition",
246
+ * "configuration": {
247
+ * "allowUserInField": false,
248
+ * "fieldId": "customfield_10010"
249
+ * }
250
+ * }
251
+ *
252
+ * * `allowUserInField` If `true` only a user who is listed in `fieldId` can
253
+ * perform the transition, otherwise, only a user who is not listed in `fieldId`
254
+ * can perform the transition.
255
+ * * `fieldId` The ID of the field containing the list of users.
256
+ *
257
+ * ##### User is in group condition #####
258
+ *
259
+ * A condition that allows users belonging to a group to execute a transition.
260
+ *
261
+ * {
262
+ * "type": "UserInGroupCondition",
263
+ * "configuration": {
264
+ * "group": "administrators"
265
+ * }
266
+ * }
267
+ *
268
+ * * `group` The name of the group.
269
+ *
270
+ * ##### User is in group custom field condition #####
271
+ *
272
+ * A condition that allows users belonging to a group specified in a custom field
273
+ * to execute a transition.
274
+ *
275
+ * {
276
+ * "type": "InGroupCFCondition",
277
+ * "configuration": {
278
+ * "fieldId": "customfield_10012"
279
+ * }
280
+ * }
281
+ *
282
+ * * `fieldId` The ID of the field. Allowed field types:
283
+ *
284
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multigrouppicker`
285
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:grouppicker`
286
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:select`
287
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multiselect`
288
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons`
289
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes`
290
+ * * `com.pyxis.greenhopper.jira:gh-epic-status`
291
+ *
292
+ * ##### User is in project role condition #####
293
+ *
294
+ * A condition that allows users with a project role to execute a transition.
295
+ *
296
+ * {
297
+ * "type": "InProjectRoleCondition",
298
+ * "configuration": {
299
+ * "projectRole": {
300
+ * "id": "10002"
301
+ * }
302
+ * }
303
+ * }
304
+ *
305
+ * * `projectRole` An object containing the ID of a project role.
306
+ *
307
+ * ##### Value field condition #####
308
+ *
309
+ * A conditions that allows a transition to execute if the value of a field is
310
+ * equal to a constant value or simply set.
311
+ *
312
+ * {
313
+ * "type": "ValueFieldCondition",
314
+ * "configuration": {
315
+ * "fieldId": "assignee",
316
+ * "fieldValue":
317
+ * "qm:6e1ecee6-8e64-4db6-8c85-916bb3275f51:54b56885-2bd2-4381-8239-78263442520f",
318
+ * "comparisonType": "NUMBER",
319
+ * "comparator": "="
320
+ * }
321
+ * }
322
+ *
323
+ * * `fieldId` The ID of a field used in the comparison.
324
+ * * `fieldValue` The expected value of the field.
325
+ * * `comparisonType` The type of the comparison. Allowed values: `STRING`,
326
+ * `NUMBER`, `DATE`, `DATE_WITHOUT_TIME`, or `OPTIONID`.
327
+ * * `comparator` One of the supported comparator: `>`, `>=`, `=`, `<=`, `<`,
328
+ * `!=`.
329
+ *
330
+ * **Notes:**
331
+ *
332
+ * * If you choose the comparison type `STRING`, only `=` and `!=` are valid
333
+ * options.
334
+ * * You may leave `fieldValue` empty when comparison type is `!=` to indicate
335
+ * that a value is required in the field.
336
+ * * For date fields without time format values as `yyyy-MM-dd`, and for those
337
+ * with time as `yyyy-MM-dd HH:mm`. For example, for July 16 2021 use
338
+ * `2021-07-16`, for 8:05 AM use `2021-07-16 08:05`, and for 4 PM: `2021-07-16
339
+ * 16:00`.
340
+ *
341
+ * #### Validators ####
342
+ *
343
+ * Validators check that any input made to the transition is valid before the
344
+ * transition is performed.
345
+ *
346
+ * ##### Date field validator #####
347
+ *
348
+ * A validator that compares two dates.
349
+ *
350
+ * {
351
+ * "type": "DateFieldValidator",
352
+ * "configuration": {
353
+ * "comparator": ">",
354
+ * "date1": "updated",
355
+ * "date2": "created",
356
+ * "expression": "1d",
357
+ * "includeTime": true
358
+ * }
359
+ * }
360
+ *
361
+ * * `comparator` One of the supported comparator: `>`, `>=`, `=`, `<=`, `<`, or
362
+ * `!=`.
363
+ * * `date1` The date field to validate. Allowed field types:
364
+ *
365
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datepicker`
366
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datetime`
367
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-end`
368
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-start`
369
+ * * `duedate`
370
+ * * `created`
371
+ * * `updated`
372
+ * * `resolutiondate`
373
+ * * `date2` The second date field. Required, if `expression` is not passed.
374
+ * Allowed field types:
375
+ *
376
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datepicker`
377
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datetime`
378
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-end`
379
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-start`
380
+ * * `duedate`
381
+ * * `created`
382
+ * * `updated`
383
+ * * `resolutiondate`
384
+ * * `expression` An expression specifying an offset. Required, if `date2` is
385
+ * not passed. Offsets are built with a number, with `-` as prefix for the past,
386
+ * and one of these time units: `d` for day, `w` for week, `m` for month, or `y`
387
+ * for year. For example, -2d means two days into the past and 1w means one week
388
+ * into the future. The `now` keyword enables a comparison with the current date.
389
+ * * `includeTime` If `true`, then the time part of the data is included for the
390
+ * comparison. If the field doesn't have a time part, 00:00:00 is used.
391
+ *
392
+ * ##### Windows date validator #####
393
+ *
394
+ * A validator that checks that a date falls on or after a reference date and
395
+ * before or on the reference date plus a number of days.
396
+ *
397
+ * {
398
+ * "type": "WindowsDateValidator",
399
+ * "configuration": {
400
+ * "date1": "customfield_10009",
401
+ * "date2": "created",
402
+ * "windowsDays": 5
403
+ * }
404
+ * }
405
+ *
406
+ * * `date1` The date field to validate. Allowed field types:
407
+ *
408
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datepicker`
409
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datetime`
410
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-end`
411
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-start`
412
+ * * `duedate`
413
+ * * `created`
414
+ * * `updated`
415
+ * * `resolutiondate`
416
+ * * `date2` The reference date. Allowed field types:
417
+ *
418
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datepicker`
419
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datetime`
420
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-end`
421
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-start`
422
+ * * `duedate`
423
+ * * `created`
424
+ * * `updated`
425
+ * * `resolutiondate`
426
+ * * `windowsDays` A positive integer indicating a number of days.
427
+ *
428
+ * ##### Field required validator #####
429
+ *
430
+ * A validator that checks fields are not empty. By default, if a field is not
431
+ * included in the current context it's ignored and not validated.
432
+ *
433
+ * {
434
+ * "type": "FieldRequiredValidator",
435
+ * "configuration": {
436
+ * "ignoreContext": true,
437
+ * "errorMessage": "Hey",
438
+ * "fieldIds": [
439
+ * "versions",
440
+ * "customfield_10037",
441
+ * "customfield_10003"
442
+ * ]
443
+ * }
444
+ * }
445
+ *
446
+ * * `ignoreContext` If `true`, then the context is ignored and all the fields
447
+ * are validated.
448
+ * * `errorMessage` OPTIONAL. The error message displayed when one or more
449
+ * fields are empty. A default error message is shown if an error message is not
450
+ * provided.
451
+ * * `fieldIds` The list of fields to validate.
452
+ *
453
+ * ##### Field changed validator #####
454
+ *
455
+ * A validator that checks that a field value is changed. However, this validation
456
+ * can be ignored for users from a list of groups.
457
+ *
458
+ * {
459
+ * "type": "FieldChangedValidator",
460
+ * "configuration": {
461
+ * "fieldId": "comment",
462
+ * "errorMessage": "Hey",
463
+ * "exemptedGroups": [
464
+ * "administrators",
465
+ * "atlassian-addons-admin"
466
+ * ]
467
+ * }
468
+ * }
469
+ *
470
+ * * `fieldId` The ID of a field.
471
+ * * `errorMessage` OPTIONAL. The error message displayed if the field is not
472
+ * changed. A default error message is shown if the error message is not provided.
473
+ * * `exemptedGroups` OPTIONAL. The list of groups.
474
+ *
475
+ * ##### Field has single value validator #####
476
+ *
477
+ * A validator that checks that a multi-select field has only one value.
478
+ * Optionally, the validation can ignore values copied from subtasks.
479
+ *
480
+ * {
481
+ * "type": "FieldHasSingleValueValidator",
482
+ * "configuration": {
483
+ * "fieldId": "attachment,
484
+ * "excludeSubtasks": true
485
+ * }
486
+ * }
487
+ *
488
+ * * `fieldId` The ID of a field.
489
+ * * `excludeSubtasks` If `true`, then values copied from subtasks are ignored.
490
+ *
491
+ * ##### Parent status validator #####
492
+ *
493
+ * A validator that checks the status of the parent issue of a subtask. Ìf the
494
+ * issue is not a subtask, no validation is performed.
495
+ *
496
+ * {
497
+ * "type": "ParentStatusValidator",
498
+ * "configuration": {
499
+ * "parentStatuses": [
500
+ * {
501
+ * "id":"1"
502
+ * },
503
+ * {
504
+ * "id":"2"
505
+ * }
506
+ * ]
507
+ * }
508
+ * }
509
+ *
510
+ * * `parentStatus` The list of required parent issue statuses.
511
+ *
512
+ * ##### Permission validator #####
513
+ *
514
+ * A validator that checks the user has a permission.
515
+ *
516
+ * {
517
+ * "type": "PermissionValidator",
518
+ * "configuration": {
519
+ * "permissionKey": "ADMINISTER_PROJECTS"
520
+ * }
521
+ * }
522
+ *
523
+ * * `permissionKey` The permission required to perform the transition. Allowed
524
+ * values:
525
+ * [built-in](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions)
526
+ * or app defined permissions.
527
+ *
528
+ * ##### Previous status validator #####
529
+ *
530
+ * A validator that checks if the issue has held a status.
531
+ *
532
+ * {
533
+ * "type": "PreviousStatusValidator",
534
+ * "configuration": {
535
+ * "mostRecentStatusOnly": false,
536
+ * "previousStatus": {
537
+ * "id": "15"
538
+ * }
539
+ * }
540
+ * }
541
+ *
542
+ * * `mostRecentStatusOnly` If `true`, then only the issue's preceding status
543
+ * (the one immediately before the current status) is checked.
544
+ * * `previousStatus` An object containing the ID of an issue status.
545
+ *
546
+ * ##### Regular expression validator #####
547
+ *
548
+ * A validator that checks the content of a field against a regular expression.
549
+ *
550
+ * {
551
+ * "type": "RegexpFieldValidator",
552
+ * "configuration": {
553
+ * "regExp": "[0-9]",
554
+ * "fieldId": "customfield_10029"
555
+ * }
556
+ * }
557
+ *
558
+ * * `regExp`A regular expression.
559
+ * * `fieldId` The ID of a field. Allowed field types:
560
+ *
561
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:select`
562
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multiselect`
563
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons`
564
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes`
565
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:textarea`
566
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:textfield`
567
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:url`
568
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:float`
569
+ * * `com.pyxis.greenhopper.jira:jsw-story-points`
570
+ * * `com.pyxis.greenhopper.jira:gh-epic-status`
571
+ * * `description`
572
+ * * `summary`
573
+ *
574
+ * ##### User permission validator #####
575
+ *
576
+ * A validator that checks if a user has a permission. Obsolete. You may encounter
577
+ * this validator when getting transition rules and can pass it when updating or
578
+ * creating rules, for example, when you want to duplicate the rules from a
579
+ * workflow on a new workflow.
580
+ *
581
+ * {
582
+ * "type": "UserPermissionValidator",
583
+ * "configuration": {
584
+ * "permissionKey": "BROWSE_PROJECTS",
585
+ * "nullAllowed": false,
586
+ * "username": "TestUser"
587
+ * }
588
+ * }
589
+ *
590
+ * * `permissionKey` The permission to be validated. Allowed values:
591
+ * [built-in](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions)
592
+ * or app defined permissions.
593
+ * * `nullAllowed` If `true`, allows the transition when `username` is empty.
594
+ * * `username` The username to validate against the `permissionKey`.
595
+ *
596
+ * #### Post functions ####
597
+ *
598
+ * Post functions carry out any additional processing required after a Jira
599
+ * workflow transition is executed.
600
+ *
601
+ * ##### Fire issue event function #####
602
+ *
603
+ * A post function that fires an event that is processed by the listeners.
604
+ *
605
+ * {
606
+ * "type": "FireIssueEventFunction",
607
+ * "configuration": {
608
+ * "event": {
609
+ * "id":"1"
610
+ * }
611
+ * }
612
+ * }
613
+ *
614
+ * **Note:** If provided, this post function overrides the default
615
+ * `FireIssueEventFunction`. Can be included once in a transition.
616
+ *
617
+ * * `event` An object containing the ID of the issue event.
618
+ *
619
+ * ##### Update issue status #####
620
+ *
621
+ * A post function that sets issue status to the linked status of the destination
622
+ * workflow status.
623
+ *
624
+ * {
625
+ * "type": "UpdateIssueStatusFunction"
626
+ * }
627
+ *
628
+ * **Note:** This post function is a default function in global and directed
629
+ * transitions. It can only be added to the initial transition and can only be
630
+ * added once.
631
+ *
632
+ * ##### Create comment #####
633
+ *
634
+ * A post function that adds a comment entered during the transition to an issue.
635
+ *
636
+ * {
637
+ * "type": "CreateCommentFunction"
638
+ * }
639
+ *
640
+ * **Note:** This post function is a default function in global and directed
641
+ * transitions. It can only be added to the initial transition and can only be
642
+ * added once.
643
+ *
644
+ * ##### Store issue #####
645
+ *
646
+ * A post function that stores updates to an issue.
647
+ *
648
+ * {
649
+ * "type": "IssueStoreFunction"
650
+ * }
651
+ *
652
+ * **Note:** This post function can only be added to the initial transition and
653
+ * can only be added once.
654
+ *
655
+ * ##### Assign to current user function #####
656
+ *
657
+ * A post function that assigns the issue to the current user if the current user
658
+ * has the `ASSIGNABLE_USER` permission.
659
+ *
660
+ * {
661
+ * "type": "AssignToCurrentUserFunction"
662
+ * }
663
+ *
664
+ * **Note:** This post function can be included once in a transition.
665
+ *
666
+ * ##### Assign to lead function #####
667
+ *
668
+ * A post function that assigns the issue to the project or component lead
669
+ * developer.
670
+ *
671
+ * {
672
+ * "type": "AssignToLeadFunction"
673
+ * }
674
+ *
675
+ * **Note:** This post function can be included once in a transition.
676
+ *
677
+ * ##### Assign to reporter function #####
678
+ *
679
+ * A post function that assigns the issue to the reporter.
680
+ *
681
+ * {
682
+ * "type": "AssignToReporterFunction"
683
+ * }
684
+ *
685
+ * **Note:** This post function can be included once in a transition.
686
+ *
687
+ * ##### Clear field value function #####
688
+ *
689
+ * A post function that clears the value from a field.
690
+ *
691
+ * {
692
+ * "type": "ClearFieldValuePostFunction",
693
+ * "configuration": {
694
+ * "fieldId": "assignee"
695
+ * }
696
+ * }
697
+ *
698
+ * * `fieldId` The ID of the field.
699
+ *
700
+ * ##### Copy value from other field function #####
701
+ *
702
+ * A post function that copies the value of one field to another, either within an
703
+ * issue or from parent to subtask.
704
+ *
705
+ * {
706
+ * "type": "CopyValueFromOtherFieldPostFunction",
707
+ * "configuration": {
708
+ * "sourceFieldId": "assignee",
709
+ * "destinationFieldId": "creator",
710
+ * "copyType": "same"
711
+ * }
712
+ * }
713
+ *
714
+ * * `sourceFieldId` The ID of the source field.
715
+ * * `destinationFieldId` The ID of the destination field.
716
+ * * `copyType` Use `same` to copy the value from a field inside the issue, or
717
+ * `parent` to copy the value from the parent issue.
718
+ *
719
+ * ##### Create Crucible review workflow function (deprecated) #####
720
+ *
721
+ * A post function that creates a Crucible review for all unreviewed code for the
722
+ * issue.
723
+ *
724
+ * {
725
+ * "type": "CreateCrucibleReviewWorkflowFunction"
726
+ * }
727
+ *
728
+ * **Note:** This post function can be included once in a transition.
729
+ *
730
+ * ##### Set issue security level based on user's project role function #####
731
+ *
732
+ * A post function that sets the issue's security level if the current user has a
733
+ * project role.
734
+ *
735
+ * {
736
+ * "type": "SetIssueSecurityFromRoleFunction",
737
+ * "configuration": {
738
+ * "projectRole": {
739
+ * "id":"10002"
740
+ * },
741
+ * "issueSecurityLevel": {
742
+ * "id":"10000"
743
+ * }
744
+ * }
745
+ * }
746
+ *
747
+ * * `projectRole` An object containing the ID of the project role.
748
+ * * `issueSecurityLevel` OPTIONAL. The object containing the ID of the security
749
+ * level. If not passed, then the security level is set to `none`.
750
+ *
751
+ * ##### Trigger a webhook function #####
752
+ *
753
+ * A post function that triggers a webhook.
754
+ *
755
+ * {
756
+ * "type": "TriggerWebhookFunction",
757
+ * "configuration": {
758
+ * "webhook": {
759
+ * "id": "1"
760
+ * }
761
+ * }
762
+ * }
763
+ *
764
+ * * `webhook` An object containing the ID of the webhook listener to trigger.
765
+ *
766
+ * ##### Update issue custom field function #####
767
+ *
768
+ * A post function that updates the content of an issue custom field.
769
+ *
770
+ * {
771
+ * "type": "UpdateIssueCustomFieldPostFunction",
772
+ * "configuration": {
773
+ * "mode": "append",
774
+ * "fieldId": "customfield_10003",
775
+ * "fieldValue": "yikes"
776
+ * }
777
+ * }
778
+ *
779
+ * * `mode` Use `replace` to override the field content with `fieldValue` or
780
+ * `append` to add `fieldValue` to the end of the field content.
781
+ * * `fieldId` The ID of the field.
782
+ * * `fieldValue` The update content.
783
+ *
784
+ * ##### Update issue field function #####
785
+ *
786
+ * A post function that updates a simple issue field.
787
+ *
788
+ * {
789
+ * "type": "UpdateIssueFieldFunction",
790
+ * "configuration": {
791
+ * "fieldId": "assignee",
792
+ * "fieldValue": "5f0c277e70b8a90025a00776"
793
+ * }
794
+ * }
795
+ *
796
+ * * `fieldId` The ID of the field. Allowed field types:
797
+ *
798
+ * * `assignee`
799
+ * * `description`
800
+ * * `environment`
801
+ * * `priority`
802
+ * * `resolution`
803
+ * * `summary`
804
+ * * `timeoriginalestimate`
805
+ * * `timeestimate`
806
+ * * `timespent`
807
+ * * `fieldValue` The update value.
808
+ * * If the `fieldId` is `assignee`, the `fieldValue` should be one of these
809
+ * values:
810
+ *
811
+ * * an account ID.
812
+ * * `automatic`.
813
+ * * a blank string, which sets the value to `unassigned`.
814
+ *
815
+ * #### Connect rules ####
816
+ *
817
+ * Connect rules are conditions, validators, and post functions of a transition
818
+ * that are registered by Connect apps. To create a rule registered by the app,
819
+ * the app must be enabled and the rule's module must exist.
820
+ *
821
+ * {
822
+ * "type": "appKey__moduleKey",
823
+ * "configuration": {
824
+ * "value":"{\"isValid\":\"true\"}"
825
+ * }
826
+ * }
827
+ *
828
+ * * `type` A Connect rule key in a form of `appKey__moduleKey`.
829
+ * * `value` The stringified JSON configuration of a Connect rule.
830
+ *
831
+ * #### Forge rules ####
832
+ *
833
+ * Forge transition rules are not yet supported.
834
+ *
835
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
836
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
837
+ *
838
+ * @deprecated
839
+ * @returns Returned if the workflow is created.
840
+ *
841
+ * example: {
842
+ * "entityId": "d7178e8d-bf6c-4c0c-9e90-758a0b965b67",
843
+ * "name": "Workflow 1"
844
+ * }
845
+ * @path {POST} /rest/api/3/workflow
846
+ * @scopes-current manage:jira-configuration
847
+ * @scopes-beta write:workflow:jira, read:workflow:jira
848
+ */
849
+ createWorkflow({ createWorkflowDetails, }) {
850
+ return this.getClientInstance()
851
+ .request({
852
+ path: "/rest/api/3/workflow",
853
+ method: "POST",
854
+ headers: {
855
+ "Content-Type": "application/json",
856
+ },
857
+ body: createWorkflowDetails,
858
+ })
859
+ .then(this.getClientInstance().responseHandler({
860
+ 201: {
861
+ "application/json": "json",
862
+ },
863
+ }))
864
+ .then(commonHttpClient.castResponse())
865
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.createWorkflow.response"))
866
+ .then(commonHttpClient.getBody);
867
+ }
868
+ /**
869
+ * Create workflows and related statuses.
870
+ *
871
+ * **[Permissions](#permissions) required:**
872
+ *
873
+ * * *Administer Jira* project permission to create all, including
874
+ * global-scoped, workflows
875
+ * * *Administer projects* project permissions to create project-scoped workflows
876
+ *
877
+ * @returns Returned if the request is successful.
878
+ *
879
+ * example: {
880
+ * "statuses": [
881
+ * {
882
+ * "description": "",
883
+ * "id": "10001",
884
+ * "name": "To Do",
885
+ * "scope": {
886
+ * "type": "GLOBAL"
887
+ * },
888
+ * "statusCategory": "TODO",
889
+ * "statusReference": "10001",
890
+ * "usages": []
891
+ * },
892
+ * {
893
+ * "description": "",
894
+ * "id": "10002",
895
+ * "name": "In Progress",
896
+ * "scope": {
897
+ * "type": "GLOBAL"
898
+ * },
899
+ * "statusCategory": "IN_PROGRESS",
900
+ * "statusReference": "10002",
901
+ * "usages": []
902
+ * },
903
+ * {
904
+ * "description": "",
905
+ * "id": "10003",
906
+ * "name": "Done",
907
+ * "scope": {
908
+ * "type": "GLOBAL"
909
+ * },
910
+ * "statusCategory": "DONE",
911
+ * "statusReference": "10003",
912
+ * "usages": []
913
+ * }
914
+ * ],
915
+ * "workflows": [
916
+ * {
917
+ * "description": "",
918
+ * "id": "b9ff2384-d3b6-4d4e-9509-3ee19f607168",
919
+ * "isEditable": true,
920
+ * "name": "Software workflow 1",
921
+ * "scope": {
922
+ * "type": "GLOBAL"
923
+ * },
924
+ * "startPointLayout": {
925
+ * "x": -100.00030899047852,
926
+ * "y": -153.00020599365234
927
+ * },
928
+ * "statuses": [
929
+ * {
930
+ * "deprecated": false,
931
+ * "layout": {
932
+ * "x": 114.99993896484375,
933
+ * "y": -16
934
+ * },
935
+ * "properties": {},
936
+ * "statusReference": "10001"
937
+ * },
938
+ * {
939
+ * "deprecated": false,
940
+ * "layout": {
941
+ * "x": 317.0000915527344,
942
+ * "y": -16
943
+ * },
944
+ * "properties": {},
945
+ * "statusReference": "10002"
946
+ * },
947
+ * {
948
+ * "deprecated": false,
949
+ * "layout": {
950
+ * "x": 508.000244140625,
951
+ * "y": -16
952
+ * },
953
+ * "properties": {},
954
+ * "statusReference": "10003"
955
+ * }
956
+ * ],
957
+ * "transitions": [
958
+ * {
959
+ * "actions": [],
960
+ * "description": "",
961
+ * "from": [],
962
+ * "id": "31",
963
+ * "name": "Done",
964
+ * "properties": {},
965
+ * "to": {
966
+ * "statusReference": "10003"
967
+ * },
968
+ * "triggers": [],
969
+ * "type": "GLOBAL",
970
+ * "validators": []
971
+ * },
972
+ * {
973
+ * "actions": [],
974
+ * "description": "",
975
+ * "from": [],
976
+ * "id": "11",
977
+ * "name": "To Do",
978
+ * "properties": {},
979
+ * "to": {
980
+ * "statusReference": "10001"
981
+ * },
982
+ * "triggers": [],
983
+ * "type": "GLOBAL",
984
+ * "validators": []
985
+ * },
986
+ * {
987
+ * "actions": [],
988
+ * "description": "",
989
+ * "from": [],
990
+ * "id": "21",
991
+ * "name": "In Progress",
992
+ * "properties": {},
993
+ * "to": {
994
+ * "statusReference": "10002"
995
+ * },
996
+ * "triggers": [],
997
+ * "type": "GLOBAL",
998
+ * "validators": []
999
+ * },
1000
+ * {
1001
+ * "actions": [],
1002
+ * "description": "",
1003
+ * "from": [],
1004
+ * "id": "1",
1005
+ * "name": "Create",
1006
+ * "properties": {},
1007
+ * "to": {
1008
+ * "statusReference": "10001"
1009
+ * },
1010
+ * "triggers": [],
1011
+ * "type": "INITIAL",
1012
+ * "validators": []
1013
+ * }
1014
+ * ],
1015
+ * "usages": [],
1016
+ * "version": {
1017
+ * "id": "f010ac1b-3dd3-43a3-aa66-0ee8a447f76e",
1018
+ * "versionNumber": 0
1019
+ * }
1020
+ * }
1021
+ * ]
1022
+ * }
1023
+ * @path {POST} /rest/api/3/workflows/create
1024
+ * @scopes-current manage:jira-configuration
1025
+ * @scopes-beta write:workflow:jira
1026
+ */
1027
+ createWorkflows({ workflowCreateRequest, }) {
1028
+ return this.getClientInstance()
1029
+ .request({
1030
+ path: "/rest/api/3/workflows/create",
1031
+ method: "POST",
1032
+ headers: {
1033
+ "Content-Type": "application/json",
1034
+ },
1035
+ body: workflowCreateRequest,
1036
+ })
1037
+ .then(this.getClientInstance().responseHandler({
1038
+ 200: {
1039
+ "application/json": "json",
1040
+ },
1041
+ }))
1042
+ .then(commonHttpClient.castResponse())
1043
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.createWorkflows.response"))
1044
+ .then(commonHttpClient.getBody);
1045
+ }
1046
+ /**
1047
+ * Deletes a workflow.
1048
+ *
1049
+ * The workflow cannot be deleted if it is:
1050
+ *
1051
+ * * an active workflow.
1052
+ * * a system workflow.
1053
+ * * associated with any workflow scheme.
1054
+ * * associated with any draft workflow scheme.
1055
+ *
1056
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
1057
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
1058
+ *
1059
+ * @path {DELETE} /rest/api/3/workflow/{entityId}
1060
+ * @scopes-current manage:jira-configuration
1061
+ * @scopes-beta delete:workflow:jira
1062
+ */
1063
+ deleteInactiveWorkflow({ entityId, }) {
1064
+ return this.getClientInstance()
1065
+ .request({
1066
+ path: "/rest/api/3/workflow/{entityId}",
1067
+ method: "DELETE",
1068
+ pathParams: {
1069
+ entityId,
1070
+ },
1071
+ })
1072
+ .then(commonHttpClient.discardResult);
1073
+ }
1074
+ /**
1075
+ * Returns all workflows in Jira or a workflow. Deprecated, use [Get workflows
1076
+ * paginated](#api-rest-api-3-workflow-search-get).
1077
+ *
1078
+ * If the `workflowName` parameter is specified, the workflow is returned as an
1079
+ * object (not in an array). Otherwise, an array of workflow objects is returned.
1080
+ *
1081
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
1082
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
1083
+ *
1084
+ * @deprecated
1085
+ * @returns Returned if the request is successful.
1086
+ *
1087
+ * example: [
1088
+ * {
1089
+ * "default": true,
1090
+ * "description": "A classic Jira workflow",
1091
+ * "lastModifiedDate": "01-01-2011",
1092
+ * "lastModifiedUser": "admin",
1093
+ * "lastModifiedUserAccountId": "5b10a2844c20165700ede21g",
1094
+ * "name": "classic workflow",
1095
+ * "steps": 5
1096
+ * }
1097
+ * ]
1098
+ * @path {GET} /rest/api/3/workflow
1099
+ * @scopes-current manage:jira-configuration
1100
+ * @scopes-beta read:workflow:jira, read:project:jira, read:project-category:jira,
1101
+ * read:avatar:jira
1102
+ */
1103
+ getAllWorkflows({ workflowName, }) {
1104
+ return this.getClientInstance()
1105
+ .request({
1106
+ path: "/rest/api/3/workflow",
1107
+ method: "GET",
1108
+ query: {
1109
+ workflowName,
1110
+ },
1111
+ })
1112
+ .then(this.getClientInstance().responseHandler({
1113
+ 200: {
1114
+ "application/json": "json",
1115
+ },
1116
+ }))
1117
+ .then(commonHttpClient.castResponse())
1118
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.getAllWorkflows.response"))
1119
+ .then(commonHttpClient.getBody);
1120
+ }
1121
+ /**
1122
+ * Returns a [paginated](#pagination) list of published classic workflows. When
1123
+ * workflow names are specified, details of those workflows are returned.
1124
+ * Otherwise, all published classic workflows are returned.
1125
+ *
1126
+ * This operation does not return next-gen workflows.
1127
+ *
1128
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
1129
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
1130
+ *
1131
+ * @returns Returned if the request is successful.
1132
+ *
1133
+ * example: {
1134
+ * "isLast": false,
1135
+ * "maxResults": 1,
1136
+ * "startAt": 0,
1137
+ * "total": 5,
1138
+ * "values": [
1139
+ * {
1140
+ * "id": {
1141
+ * "name": "SCRUM Workflow",
1142
+ * "entityId": "5ed312c5-f7a6-4a78-a1f6-8ff7f307d063"
1143
+ * },
1144
+ * "description": "A workflow used for Software projects in the SCRUM
1145
+ * methodology",
1146
+ * "transitions": [
1147
+ * {
1148
+ * "id": "5",
1149
+ * "name": "In Progress",
1150
+ * "description": "Start working on the issue.",
1151
+ * "from": [
1152
+ * "10",
1153
+ * "13"
1154
+ * ],
1155
+ * "to": "14",
1156
+ * "type": "directed",
1157
+ * "screen": {
1158
+ * "id": "10000",
1159
+ * "name": "Issue screen"
1160
+ * },
1161
+ * "rules": {
1162
+ * "conditionsTree": {
1163
+ * "nodeType": "compound",
1164
+ * "operator": "AND",
1165
+ * "conditions": [
1166
+ * {
1167
+ * "nodeType": "simple",
1168
+ * "type": "PermissionCondition",
1169
+ * "configuration": {
1170
+ * "permissionKey": "WORK_ON_ISSUES"
1171
+ * }
1172
+ * },
1173
+ * {
1174
+ * "nodeType": "simple",
1175
+ * "type": "PermissionCondition",
1176
+ * "configuration": {
1177
+ * "permissionKey": "RESOLVE_ISSUES"
1178
+ * }
1179
+ * }
1180
+ * ]
1181
+ * },
1182
+ * "validators": [
1183
+ * {
1184
+ * "type": "FieldRequiredValidator",
1185
+ * "configuration": {
1186
+ * "errorMessage": "A custom error message",
1187
+ * "fields": [
1188
+ * "description",
1189
+ * "assignee"
1190
+ * ],
1191
+ * "ignoreContext": true
1192
+ * }
1193
+ * }
1194
+ * ],
1195
+ * "postFunctions": [
1196
+ * {
1197
+ * "type": "UpdateIssueStatusFunction"
1198
+ * },
1199
+ * {
1200
+ * "type": "GenerateChangeHistoryFunction"
1201
+ * },
1202
+ * {
1203
+ * "type": "FireIssueEventFunction"
1204
+ * }
1205
+ * ]
1206
+ * },
1207
+ * "properties": {
1208
+ * "jira.fieldscreen.id": 1
1209
+ * }
1210
+ * }
1211
+ * ],
1212
+ * "statuses": [
1213
+ * {
1214
+ * "id": "3",
1215
+ * "name": "In Progress",
1216
+ * "properties": {
1217
+ * "issueEditable": false,
1218
+ * "jira.issue.editable": "false"
1219
+ * }
1220
+ * }
1221
+ * ],
1222
+ * "isDefault": false,
1223
+ * "schemes": [
1224
+ * {
1225
+ * "id": "10001",
1226
+ * "name": "Test Workflow Scheme"
1227
+ * }
1228
+ * ],
1229
+ * "projects": [
1230
+ * {
1231
+ * "avatarUrls": {
1232
+ * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
1233
+ * "24x24": "secure/projectavatar?size=small&pid=10000",
1234
+ * "32x32": "secure/projectavatar?size=medium&pid=10000",
1235
+ * "48x48": "secure/projectavatar?size=large&pid=10000"
1236
+ * },
1237
+ * "id": "10000",
1238
+ * "key": "EX",
1239
+ * "name": "Example",
1240
+ * "projectCategory": {
1241
+ * "description": "Project category description",
1242
+ * "id": "10000",
1243
+ * "name": "A project category"
1244
+ * },
1245
+ * "projectTypeKey": "ProjectTypeKey{key='software'}",
1246
+ * "self": "project/EX",
1247
+ * "simplified": false
1248
+ * }
1249
+ * ],
1250
+ * "hasDraftWorkflow": true,
1251
+ * "operations": {
1252
+ * "canEdit": true,
1253
+ * "canDelete": false
1254
+ * },
1255
+ * "created": "2018-12-10T16:30:15.000+0000",
1256
+ * "updated": "2018-12-11T11:45:13.000+0000"
1257
+ * }
1258
+ * ]
1259
+ * }
1260
+ * @path {GET} /rest/api/3/workflow/search
1261
+ * @scopes-current manage:jira-project
1262
+ * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
1263
+ * read:screen:jira, read:status:jira, read:user:jira, read:workflow:jira,
1264
+ * read:webhook:jira, read:avatar:jira, read:project-category:jira,
1265
+ * read:project:jira
1266
+ */
1267
+ getWorkflowsPaginated({ startAt, maxResults, workflowName, expand, queryString, orderBy, isActive, }) {
1268
+ return this.getClientInstance()
1269
+ .request({
1270
+ path: "/rest/api/3/workflow/search",
1271
+ method: "GET",
1272
+ query: {
1273
+ startAt,
1274
+ maxResults,
1275
+ workflowName,
1276
+ expand,
1277
+ queryString,
1278
+ orderBy,
1279
+ isActive,
1280
+ },
1281
+ })
1282
+ .then(this.getClientInstance().responseHandler({
1283
+ 200: {
1284
+ "application/json": "json",
1285
+ },
1286
+ }))
1287
+ .then(commonHttpClient.castResponse())
1288
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.getWorkflowsPaginated.response"))
1289
+ .then(commonHttpClient.getBody);
1290
+ }
1291
+ /**
1292
+ * Returns a list of workflows and related statuses by providing workflow names,
1293
+ * workflow IDs, or project and issue types.
1294
+ *
1295
+ * **[Permissions](#permissions) required:**
1296
+ *
1297
+ * * *Administer Jira* global permission to access all, including
1298
+ * project-scoped, workflows
1299
+ * * At least one of the *Administer projects* and *View (read-only) workflow*
1300
+ * project permissions to access project-scoped workflows
1301
+ *
1302
+ * @returns Returned if the request is successful.
1303
+ *
1304
+ * example: {
1305
+ * "statuses": [
1306
+ * {
1307
+ * "description": "",
1308
+ * "id": "10001",
1309
+ * "name": "To Do",
1310
+ * "scope": {
1311
+ * "type": "GLOBAL"
1312
+ * },
1313
+ * "statusCategory": "TODO",
1314
+ * "statusReference": "10001",
1315
+ * "usages": []
1316
+ * },
1317
+ * {
1318
+ * "description": "",
1319
+ * "id": "10002",
1320
+ * "name": "In Progress",
1321
+ * "scope": {
1322
+ * "type": "GLOBAL"
1323
+ * },
1324
+ * "statusCategory": "IN_PROGRESS",
1325
+ * "statusReference": "10002",
1326
+ * "usages": []
1327
+ * },
1328
+ * {
1329
+ * "description": "",
1330
+ * "id": "10003",
1331
+ * "name": "Done",
1332
+ * "scope": {
1333
+ * "type": "GLOBAL"
1334
+ * },
1335
+ * "statusCategory": "DONE",
1336
+ * "statusReference": "10003",
1337
+ * "usages": []
1338
+ * }
1339
+ * ],
1340
+ * "workflows": [
1341
+ * {
1342
+ * "description": "",
1343
+ * "id": "b9ff2384-d3b6-4d4e-9509-3ee19f607168",
1344
+ * "isEditable": true,
1345
+ * "name": "Workflow 1",
1346
+ * "scope": {
1347
+ * "type": "GLOBAL"
1348
+ * },
1349
+ * "startPointLayout": {
1350
+ * "x": -100.00030899047852,
1351
+ * "y": -153.00020599365234
1352
+ * },
1353
+ * "statuses": [
1354
+ * {
1355
+ * "deprecated": false,
1356
+ * "layout": {
1357
+ * "x": 114.99993896484375,
1358
+ * "y": -16
1359
+ * },
1360
+ * "properties": {},
1361
+ * "statusReference": "10001"
1362
+ * },
1363
+ * {
1364
+ * "deprecated": false,
1365
+ * "layout": {
1366
+ * "x": 317.0000915527344,
1367
+ * "y": -16
1368
+ * },
1369
+ * "properties": {},
1370
+ * "statusReference": "10002"
1371
+ * },
1372
+ * {
1373
+ * "deprecated": false,
1374
+ * "layout": {
1375
+ * "x": 508.000244140625,
1376
+ * "y": -16
1377
+ * },
1378
+ * "properties": {},
1379
+ * "statusReference": "10003"
1380
+ * }
1381
+ * ],
1382
+ * "transitions": [
1383
+ * {
1384
+ * "actions": [],
1385
+ * "description": "",
1386
+ * "from": [],
1387
+ * "id": "31",
1388
+ * "name": "Done",
1389
+ * "properties": {},
1390
+ * "to": {
1391
+ * "statusReference": "10003"
1392
+ * },
1393
+ * "triggers": [],
1394
+ * "type": "GLOBAL",
1395
+ * "validators": []
1396
+ * },
1397
+ * {
1398
+ * "actions": [],
1399
+ * "description": "",
1400
+ * "from": [],
1401
+ * "id": "11",
1402
+ * "name": "To Do",
1403
+ * "properties": {},
1404
+ * "to": {
1405
+ * "statusReference": "10001"
1406
+ * },
1407
+ * "triggers": [],
1408
+ * "type": "GLOBAL",
1409
+ * "validators": []
1410
+ * },
1411
+ * {
1412
+ * "actions": [],
1413
+ * "description": "",
1414
+ * "from": [],
1415
+ * "id": "21",
1416
+ * "name": "In Progress",
1417
+ * "properties": {},
1418
+ * "to": {
1419
+ * "statusReference": "10002"
1420
+ * },
1421
+ * "triggers": [],
1422
+ * "type": "GLOBAL",
1423
+ * "validators": []
1424
+ * },
1425
+ * {
1426
+ * "actions": [],
1427
+ * "description": "",
1428
+ * "from": [],
1429
+ * "id": "1",
1430
+ * "name": "Create",
1431
+ * "properties": {},
1432
+ * "to": {
1433
+ * "statusReference": "10001"
1434
+ * },
1435
+ * "triggers": [],
1436
+ * "type": "INITIAL",
1437
+ * "validators": []
1438
+ * }
1439
+ * ],
1440
+ * "usages": [],
1441
+ * "version": {
1442
+ * "id": "f010ac1b-3dd3-43a3-aa66-0ee8a447f76e",
1443
+ * "versionNumber": 0
1444
+ * }
1445
+ * }
1446
+ * ]
1447
+ * }
1448
+ * @path {POST} /rest/api/3/workflows
1449
+ * @scopes-current manage:jira-configuration
1450
+ * @scopes-beta read:workflow:jira
1451
+ */
1452
+ readWorkflows({ expand, workflowReadRequest, }) {
1453
+ return this.getClientInstance()
1454
+ .request({
1455
+ path: "/rest/api/3/workflows",
1456
+ method: "POST",
1457
+ query: {
1458
+ expand,
1459
+ },
1460
+ headers: {
1461
+ "Content-Type": "application/json",
1462
+ },
1463
+ body: workflowReadRequest,
1464
+ })
1465
+ .then(this.getClientInstance().responseHandler({
1466
+ 200: {
1467
+ "application/json": "json",
1468
+ },
1469
+ }))
1470
+ .then(commonHttpClient.castResponse())
1471
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.readWorkflows.response"))
1472
+ .then(commonHttpClient.getBody);
1473
+ }
1474
+ /**
1475
+ * Update workflows and related statuses.
1476
+ *
1477
+ * **[Permissions](#permissions) required:**
1478
+ *
1479
+ * * *Administer Jira* project permission to create all, including
1480
+ * global-scoped, workflows
1481
+ * * *Administer projects* project permissions to create project-scoped workflows
1482
+ *
1483
+ * @returns Returned if the request is successful.
1484
+ *
1485
+ * example: {
1486
+ * "statuses": [
1487
+ * {
1488
+ * "description": "",
1489
+ * "id": "10001",
1490
+ * "name": "To Do",
1491
+ * "scope": {
1492
+ * "type": "GLOBAL"
1493
+ * },
1494
+ * "statusCategory": "TODO",
1495
+ * "statusReference": "10001",
1496
+ * "usages": []
1497
+ * },
1498
+ * {
1499
+ * "description": "",
1500
+ * "id": "10002",
1501
+ * "name": "In Progress",
1502
+ * "scope": {
1503
+ * "type": "GLOBAL"
1504
+ * },
1505
+ * "statusCategory": "IN_PROGRESS",
1506
+ * "statusReference": "10002",
1507
+ * "usages": []
1508
+ * },
1509
+ * {
1510
+ * "description": "",
1511
+ * "id": "10003",
1512
+ * "name": "Done",
1513
+ * "scope": {
1514
+ * "type": "GLOBAL"
1515
+ * },
1516
+ * "statusCategory": "DONE",
1517
+ * "statusReference": "10003",
1518
+ * "usages": []
1519
+ * }
1520
+ * ],
1521
+ * "taskId": "10001",
1522
+ * "workflows": [
1523
+ * {
1524
+ * "description": "",
1525
+ * "id": "b9ff2384-d3b6-4d4e-9509-3ee19f607168",
1526
+ * "isEditable": true,
1527
+ * "name": "Software workflow 1",
1528
+ * "scope": {
1529
+ * "type": "GLOBAL"
1530
+ * },
1531
+ * "startPointLayout": {
1532
+ * "x": -100.00030899047852,
1533
+ * "y": -153.00020599365234
1534
+ * },
1535
+ * "statuses": [
1536
+ * {
1537
+ * "deprecated": false,
1538
+ * "layout": {
1539
+ * "x": 114.99993896484375,
1540
+ * "y": -16
1541
+ * },
1542
+ * "properties": {},
1543
+ * "statusReference": "10001"
1544
+ * },
1545
+ * {
1546
+ * "deprecated": false,
1547
+ * "layout": {
1548
+ * "x": 317.0000915527344,
1549
+ * "y": -16
1550
+ * },
1551
+ * "properties": {},
1552
+ * "statusReference": "10002"
1553
+ * },
1554
+ * {
1555
+ * "deprecated": false,
1556
+ * "layout": {
1557
+ * "x": 508.000244140625,
1558
+ * "y": -16
1559
+ * },
1560
+ * "properties": {},
1561
+ * "statusReference": "10003"
1562
+ * }
1563
+ * ],
1564
+ * "transitions": [
1565
+ * {
1566
+ * "actions": [],
1567
+ * "description": "",
1568
+ * "from": [],
1569
+ * "id": "31",
1570
+ * "name": "Done",
1571
+ * "properties": {},
1572
+ * "to": {
1573
+ * "statusReference": "10003"
1574
+ * },
1575
+ * "triggers": [],
1576
+ * "type": "GLOBAL",
1577
+ * "validators": []
1578
+ * },
1579
+ * {
1580
+ * "actions": [],
1581
+ * "description": "",
1582
+ * "from": [],
1583
+ * "id": "11",
1584
+ * "name": "To Do",
1585
+ * "properties": {},
1586
+ * "to": {
1587
+ * "statusReference": "10001"
1588
+ * },
1589
+ * "triggers": [],
1590
+ * "type": "GLOBAL",
1591
+ * "validators": []
1592
+ * },
1593
+ * {
1594
+ * "actions": [],
1595
+ * "description": "",
1596
+ * "from": [],
1597
+ * "id": "21",
1598
+ * "name": "In Progress",
1599
+ * "properties": {},
1600
+ * "to": {
1601
+ * "statusReference": "10002"
1602
+ * },
1603
+ * "triggers": [],
1604
+ * "type": "GLOBAL",
1605
+ * "validators": []
1606
+ * },
1607
+ * {
1608
+ * "actions": [],
1609
+ * "description": "",
1610
+ * "from": [],
1611
+ * "id": "1",
1612
+ * "name": "Create",
1613
+ * "properties": {},
1614
+ * "to": {
1615
+ * "statusReference": "10001"
1616
+ * },
1617
+ * "triggers": [],
1618
+ * "type": "INITIAL",
1619
+ * "validators": []
1620
+ * }
1621
+ * ],
1622
+ * "usages": [],
1623
+ * "version": {
1624
+ * "id": "f010ac1b-3dd3-43a3-aa66-0ee8a447f76e",
1625
+ * "versionNumber": 0
1626
+ * }
1627
+ * }
1628
+ * ]
1629
+ * }
1630
+ * @path {POST} /rest/api/3/workflows/update
1631
+ * @scopes-current manage:jira-configuration
1632
+ * @scopes-beta write:workflow:jira
1633
+ */
1634
+ updateWorkflows({ expand, workflowUpdateRequest, }) {
1635
+ return this.getClientInstance()
1636
+ .request({
1637
+ path: "/rest/api/3/workflows/update",
1638
+ method: "POST",
1639
+ query: {
1640
+ expand,
1641
+ },
1642
+ headers: {
1643
+ "Content-Type": "application/json",
1644
+ },
1645
+ body: workflowUpdateRequest,
1646
+ })
1647
+ .then(this.getClientInstance().responseHandler({
1648
+ 200: {
1649
+ "application/json": "json",
1650
+ },
1651
+ }))
1652
+ .then(commonHttpClient.castResponse())
1653
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.updateWorkflows.response"))
1654
+ .then(commonHttpClient.getBody);
1655
+ }
1656
+ /**
1657
+ * Validate the payload for bulk create workflows.
1658
+ *
1659
+ * **[Permissions](#permissions) required:**
1660
+ *
1661
+ * * *Administer Jira* project permission to create all, including
1662
+ * global-scoped, workflows
1663
+ * * *Administer projects* project permissions to create project-scoped workflows
1664
+ *
1665
+ * @returns Returned if the request is successful.
1666
+ *
1667
+ * example: {
1668
+ * "errors": [
1669
+ * {
1670
+ * "code": "NON_UNIQUE_STATUS_NAME",
1671
+ * "elementReference": {
1672
+ * "statusReference": "1f0443ff-47e4-4306-9c26-0af696059a43"
1673
+ * },
1674
+ * "level": "ERROR",
1675
+ * "message": "You must use a unique status name.",
1676
+ * "type": "STATUS"
1677
+ * }
1678
+ * ]
1679
+ * }
1680
+ * @path {POST} /rest/api/3/workflows/create/validation
1681
+ * @scopes-current manage:jira-configuration
1682
+ * @scopes-beta write:workflow:jira
1683
+ */
1684
+ validateCreateWorkflows({ workflowCreateValidateRequest, }) {
1685
+ return this.getClientInstance()
1686
+ .request({
1687
+ path: "/rest/api/3/workflows/create/validation",
1688
+ method: "POST",
1689
+ headers: {
1690
+ "Content-Type": "application/json",
1691
+ },
1692
+ body: workflowCreateValidateRequest,
1693
+ })
1694
+ .then(this.getClientInstance().responseHandler({
1695
+ 200: {
1696
+ "application/json": "json",
1697
+ },
1698
+ }))
1699
+ .then(commonHttpClient.castResponse())
1700
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.validateCreateWorkflows.response"))
1701
+ .then(commonHttpClient.getBody);
1702
+ }
1703
+ /**
1704
+ * Validate the payload for bulk update workflows.
1705
+ *
1706
+ * **[Permissions](#permissions) required:**
1707
+ *
1708
+ * * *Administer Jira* project permission to create all, including
1709
+ * global-scoped, workflows
1710
+ * * *Administer projects* project permissions to create project-scoped workflows
1711
+ *
1712
+ * @returns Returned if the request is successful.
1713
+ *
1714
+ * example: {
1715
+ * "errors": [
1716
+ * {
1717
+ * "code": "NON_UNIQUE_STATUS_NAME",
1718
+ * "elementReference": {
1719
+ * "statusReference": "1f0443ff-47e4-4306-9c26-0af696059a43"
1720
+ * },
1721
+ * "level": "ERROR",
1722
+ * "message": "You must use a unique status name.",
1723
+ * "type": "STATUS"
1724
+ * }
1725
+ * ]
1726
+ * }
1727
+ * @path {POST} /rest/api/3/workflows/update/validation
1728
+ * @scopes-current manage:jira-configuration
1729
+ * @scopes-beta write:workflow:jira
1730
+ */
1731
+ validateUpdateWorkflows({ workflowUpdateValidateRequestBean, }) {
1732
+ return this.getClientInstance()
1733
+ .request({
1734
+ path: "/rest/api/3/workflows/update/validation",
1735
+ method: "POST",
1736
+ headers: {
1737
+ "Content-Type": "application/json",
1738
+ },
1739
+ body: workflowUpdateValidateRequestBean,
1740
+ })
1741
+ .then(this.getClientInstance().responseHandler({
1742
+ 200: {
1743
+ "application/json": "json",
1744
+ },
1745
+ }))
1746
+ .then(commonHttpClient.castResponse())
1747
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.validateUpdateWorkflows.response"))
1748
+ .then(commonHttpClient.getBody);
1749
+ }
1750
+ /**
1751
+ * Get the list of workflow capabilities for a specific workflow using either the
1752
+ * workflow ID, or the project and issue type ID pair. The response includes the
1753
+ * scope of the workflow, defined as global/project-based, and a list of project
1754
+ * types that the workflow is scoped to. It also includes all rules organised into
1755
+ * their broad categories (conditions, validators, actions, triggers, screens) as
1756
+ * well as the source location (Atlassian-provided, Connect, Forge).
1757
+ *
1758
+ * **[Permissions](#permissions) required:**
1759
+ *
1760
+ * * *Administer Jira* project permission to access all, including
1761
+ * global-scoped, workflows
1762
+ * * *Administer projects* project permissions to access project-scoped workflows
1763
+ *
1764
+ * The current list of Atlassian-provided rules:
1765
+ *
1766
+ * #### Validators ####
1767
+ *
1768
+ * A validator rule that checks if a user has the required permissions to execute
1769
+ * the transition in the workflow.
1770
+ *
1771
+ * ##### Permission validator #####
1772
+ *
1773
+ * A validator rule that checks if a user has the required permissions to execute
1774
+ * the transition in the workflow.
1775
+ *
1776
+ * {
1777
+ * "ruleKey": "system:check-permission-validator",
1778
+ * "parameters": {
1779
+ * "permissionKey": "ADMINISTER_PROJECTS"
1780
+ * }
1781
+ * }
1782
+ *
1783
+ * Parameters:
1784
+ *
1785
+ * * `permissionKey` The permission required to perform the transition. Allowed
1786
+ * values: [built-in Jira
1787
+ * permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions).
1788
+ *
1789
+ * ##### Parent or child blocking validator #####
1790
+ *
1791
+ * A validator to block the child issue\\u2019s transition depending on the parent
1792
+ * issue\\u2019s status.
1793
+ *
1794
+ * {
1795
+ * "ruleKey" : "system:parent-or-child-blocking-validator"
1796
+ * "parameters" : {
1797
+ * "blocker" : "PARENT"
1798
+ * "statusIds" : "1,2,3"
1799
+ * }
1800
+ * }
1801
+ *
1802
+ * Parameters:
1803
+ *
1804
+ * * `blocker` currently only supports `PARENT`.
1805
+ * * `statusIds` a comma-separated list of status IDs.
1806
+ *
1807
+ * ##### Previous status validator #####
1808
+ *
1809
+ * A validator that checks if an issue has transitioned through specified previous
1810
+ * status(es) before allowing the current transition to occur.
1811
+ *
1812
+ * {
1813
+ * "ruleKey": "system:previous-status-validator",
1814
+ * "parameters": {
1815
+ * "previousStatusIds": "10014",
1816
+ * "mostRecentStatusOnly": "true"
1817
+ * }
1818
+ * }
1819
+ *
1820
+ * Parameters:
1821
+ *
1822
+ * * `previousStatusIds` a comma-separated list of status IDs, currently only
1823
+ * support one ID.
1824
+ * * `mostRecentStatusOnly` when `true` only considers the most recent status
1825
+ * for the condition evaluation. Allowed values: `true`, `false`.
1826
+ *
1827
+ * ##### Validate a field value #####
1828
+ *
1829
+ * A validation that ensures a specific field's value meets the defined criteria
1830
+ * before allowing an issue to transition in the workflow.
1831
+ *
1832
+ * Depending on the rule type, the result will vary:
1833
+ *
1834
+ * ###### Field required ######
1835
+ *
1836
+ * {
1837
+ * "ruleKey": "system:validate-field-value",
1838
+ * "parameters": {
1839
+ * "ruleType": "fieldRequired",
1840
+ * "fieldsRequired": "assignee",
1841
+ * "ignoreContext": "true",
1842
+ * "errorMessage": "An assignee must be set!"
1843
+ * }
1844
+ * }
1845
+ *
1846
+ * Parameters:
1847
+ *
1848
+ * * `fieldsRequired` the ID of the field that is required. For a custom field,
1849
+ * it would look like `customfield_123`.
1850
+ * * `ignoreContext` controls the impact of context settings on field
1851
+ * validation. When set to `true`, the validator doesn't check a required field if
1852
+ * its context isn't configured for the current issue. When set to `false`, the
1853
+ * validator requires a field even if its context is invalid. Allowed values:
1854
+ * `true`, `false`.
1855
+ * * `errorMessage` is the error message to display if the user does not provide
1856
+ * a value during the transition. A default error message will be shown if you
1857
+ * don't provide one (Optional).
1858
+ *
1859
+ * ###### Field changed ######
1860
+ *
1861
+ * {
1862
+ * "ruleKey": "system:validate-field-value",
1863
+ * "parameters": {
1864
+ * "ruleType": "fieldChanged",
1865
+ * "groupsExemptFromValidation": "6862ac20-8672-4f68-896d-4854f5efb79e",
1866
+ * "fieldKey": "versions",
1867
+ * "errorMessage": "Affect versions must be modified before transition"
1868
+ * }
1869
+ * }
1870
+ *
1871
+ * Parameters:
1872
+ *
1873
+ * * `groupsExemptFromValidation` a comma-separated list of group IDs to be
1874
+ * exempt from the validation.
1875
+ * * `fieldKey` the ID of the field that has changed. For a custom field, it
1876
+ * would look like `customfield_123`.
1877
+ * * `errorMessage` the error message to display if the user does not provide a
1878
+ * value during the transition. A default error message will be shown if you don't
1879
+ * provide one (Optional).
1880
+ *
1881
+ * ###### Field has a single value ######
1882
+ *
1883
+ * {
1884
+ * "ruleKey": "system:validate-field-value",
1885
+ * "parameters": {
1886
+ * "ruleType": "fieldHasSingleValue",
1887
+ * "fieldKey": "created",
1888
+ * "excludeSubtasks": "true"
1889
+ * }
1890
+ * }
1891
+ *
1892
+ * Parameters:
1893
+ *
1894
+ * * `fieldKey` the ID of the field to validate. For a custom field, it would
1895
+ * look like `customfield_123`.
1896
+ * * `excludeSubtasks` Option to exclude values copied from sub-tasks. Allowed
1897
+ * values: `true`, `false`.
1898
+ *
1899
+ * ###### Field matches regular expression ######
1900
+ *
1901
+ * {
1902
+ * "ruleKey": "system:validate-field-value",
1903
+ * "parameters": {
1904
+ * "ruleType": "fieldMatchesRegularExpression",
1905
+ * "regexp": "[0-9]{4}",
1906
+ * "fieldKey": "description"
1907
+ * }
1908
+ * }
1909
+ *
1910
+ * Parameters:
1911
+ *
1912
+ * * `regexp` the regular expression used to validate the field\\u2019s content.
1913
+ * * `fieldKey` the ID of the field to validate. For a custom field, it would
1914
+ * look like `customfield_123`.
1915
+ *
1916
+ * ###### Date field comparison ######
1917
+ *
1918
+ * {
1919
+ * "ruleKey": "system:validate-field-value",
1920
+ * "parameters": {
1921
+ * "ruleType": "dateFieldComparison",
1922
+ * "date1FieldKey": "duedate",
1923
+ * "date2FieldKey": "customfield_10054",
1924
+ * "includeTime": "true",
1925
+ * "conditionSelected": ">="
1926
+ * }
1927
+ * }
1928
+ *
1929
+ * Parameters:
1930
+ *
1931
+ * * `date1FieldKey` the ID of the first field to compare. For a custom field,
1932
+ * it would look like `customfield_123`.
1933
+ * * `date2FieldKey` the ID of the second field to compare. For a custom field,
1934
+ * it would look like `customfield_123`.
1935
+ * * `includeTime` if `true`, compares both date and time. Allowed values:
1936
+ * `true`, `false`.
1937
+ * * `conditionSelected` the condition to compare with. Allowed values: `>`,
1938
+ * `>=`, `=`, `<=`, `<`, `!=`.
1939
+ *
1940
+ * ###### Date range comparison ######
1941
+ *
1942
+ * {
1943
+ * "ruleKey": "system:validate-field-value",
1944
+ * "parameters": {
1945
+ * "ruleType": "windowDateComparison",
1946
+ * "date1FieldKey": "customfield_10009",
1947
+ * "date2FieldKey": "customfield_10054",
1948
+ * "numberOfDays": "3"
1949
+ * }
1950
+ * }
1951
+ *
1952
+ * Parameters:
1953
+ *
1954
+ * * `date1FieldKey` the ID of the first field to compare. For a custom field,
1955
+ * it would look like `customfield_123`.
1956
+ * * `date2FieldKey` the ID of the second field to compare. For a custom field,
1957
+ * it would look like `customfield_123`.
1958
+ * * `numberOfDays` maximum number of days past the reference date
1959
+ * (`date2FieldKey`) to pass validation.
1960
+ *
1961
+ * This rule is composed by aggregating the following legacy rules:
1962
+ *
1963
+ * * FieldRequiredValidator
1964
+ * * FieldChangedValidator
1965
+ * * FieldHasSingleValueValidator
1966
+ * * RegexpFieldValidator
1967
+ * * DateFieldValidator
1968
+ * * WindowsDateValidator
1969
+ *
1970
+ * ##### Proforma: Forms attached validator #####
1971
+ *
1972
+ * Validates that one or more forms are attached to the issue.
1973
+ *
1974
+ * {
1975
+ * "ruleKey" : "system:proforma-forms-attached"
1976
+ * "parameters" : {}
1977
+ * }
1978
+ *
1979
+ * ##### Proforma: Forms submitted validator #####
1980
+ *
1981
+ * Validates that all forms attached to the issue have been submitted.
1982
+ *
1983
+ * {
1984
+ * "ruleKey" : "system:proforma-forms-submitted"
1985
+ * "parameters" : {}
1986
+ * }
1987
+ *
1988
+ * #### Conditions ####
1989
+ *
1990
+ * Conditions enable workflow rules that govern whether a transition can execute.
1991
+ *
1992
+ * ##### Check field value #####
1993
+ *
1994
+ * A condition rule evaluates as true if a specific field's value meets the
1995
+ * defined criteria. This rule ensures that an issue can only transition to the
1996
+ * next step in the workflow if the field's value matches the desired condition.
1997
+ *
1998
+ * {
1999
+ * "ruleKey": "system:check-field-value",
2000
+ * "parameters": {
2001
+ * "fieldId": "description",
2002
+ * "fieldValue": "[\"Done\"]",
2003
+ * "comparator": "=",
2004
+ * "comparisonType": "STRING"
2005
+ * }
2006
+ * }
2007
+ *
2008
+ * Parameters:
2009
+ *
2010
+ * * `fieldId` The ID of the field to check the value of. For non-system fields,
2011
+ * it will look like `customfield_123`. Note: `fieldId` is used interchangeably
2012
+ * with the idea of `fieldKey` here, they refer to the same field.
2013
+ * * `fieldValue` the list of values to check against the field\\u2019s value.
2014
+ * * `comparator` The comparison logic. Allowed values: `>`, `>=`, `=`, `<=`,
2015
+ * `<`, `!=`.
2016
+ * * `comparisonType` The type of data being compared. Allowed values: `STRING`,
2017
+ * `NUMBER`, `DATE`, `DATE_WITHOUT_TIME`, `OPTIONID`.
2018
+ *
2019
+ * ##### Restrict issue transition #####
2020
+ *
2021
+ * This rule ensures that issue transitions are restricted based on user accounts,
2022
+ * roles, group memberships, and permissions, maintaining control over who can
2023
+ * transition an issue. This condition evaluates as `true` if any of the following
2024
+ * criteria is met.
2025
+ *
2026
+ * {
2027
+ * "ruleKey": "system:restrict-issue-transition",
2028
+ * "parameters": {
2029
+ * "accountIds": "allow-reporter,5e68ac137d64450d01a77fa0",
2030
+ * "roleIds": "10002,10004",
2031
+ * "groupIds": "703ff44a-7dc8-4f4b-9aa6-a65bf3574fa4",
2032
+ * "permissionKeys": "ADMINISTER_PROJECTS",
2033
+ * "groupCustomFields": "customfield_10028",
2034
+ * "allowUserCustomFields":
2035
+ * "customfield_10072,customfield_10144,customfield_10007",
2036
+ * "denyUserCustomFields": "customfield_10107"
2037
+ * }
2038
+ * }
2039
+ *
2040
+ * Parameters:
2041
+ *
2042
+ * * `accountIds` a comma-separated list of the user account IDs. It also allows
2043
+ * generic values like: `allow-assignee`, `allow-reporter`, and `accountIds` Note:
2044
+ * This is only supported in team-managed projects
2045
+ * * `roleIds` a comma-separated list of role IDs.
2046
+ * * `groupIds` a comma-separated list of group IDs.
2047
+ * * `permissionKeys` a comma-separated list of permission keys. Allowed values:
2048
+ * [built-in Jira
2049
+ * permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions).
2050
+ * * `groupCustomFields` a comma-separated list of group custom field IDs.
2051
+ * * `allowUserCustomFields` a comma-separated list of user custom field IDs to
2052
+ * allow for issue transition.
2053
+ * * `denyUserCustomFields` a comma-separated list of user custom field IDs to
2054
+ * deny for issue transition.
2055
+ *
2056
+ * This rule is composed by aggregating the following legacy rules:
2057
+ *
2058
+ * * AllowOnlyAssignee
2059
+ * * AllowOnlyReporter
2060
+ * * InAnyProjectRoleCondition
2061
+ * * InProjectRoleCondition
2062
+ * * UserInAnyGroupCondition
2063
+ * * UserInGroupCondition
2064
+ * * PermissionCondtion
2065
+ * * InGroupCFCondition
2066
+ * * UserIsInCustomFieldCondition
2067
+ *
2068
+ * ##### Previous status condition #####
2069
+ *
2070
+ * A condition that evaluates based on an issue's previous status(es) and specific
2071
+ * criteria.
2072
+ *
2073
+ * {
2074
+ * "ruleKey" : "system:previous-status-condition"
2075
+ * "parameters" : {
2076
+ * "previousStatusIds" : "10004",
2077
+ * "not": "true",
2078
+ * "mostRecentStatusOnly" : "true",
2079
+ * "includeCurrentStatus": "true",
2080
+ * "ignoreLoopTransitions": "true"
2081
+ * }
2082
+ * }
2083
+ *
2084
+ * Parameters:
2085
+ *
2086
+ * * `previousStatusIds` a comma-separated list of status IDs, current only
2087
+ * support one ID.
2088
+ * * `not` indicates if the condition should be reversed. When `true` it checks
2089
+ * that the issue has not been in the selected statuses. Allowed values: `true`,
2090
+ * `false`.
2091
+ * * `mostRecentStatusOnly` when true only considers the most recent status for
2092
+ * the condition evaluation. Allowed values: `true`, `false`.
2093
+ * * `includeCurrentStatus` includes the current status when evaluating if the
2094
+ * issue has been through the selected statuses. Allowed values: `true`, `false`.
2095
+ * * `ignoreLoopTransitions` ignore loop transitions. Allowed values: `true`,
2096
+ * `false`.
2097
+ *
2098
+ * ##### Parent or child blocking condition #####
2099
+ *
2100
+ * A condition to block the parent\\u2019s issue transition depending on the
2101
+ * child\\u2019s issue status.
2102
+ *
2103
+ * {
2104
+ * "ruleKey" : "system:parent-or-child-blocking-condition"
2105
+ * "parameters" : {
2106
+ * "blocker" : "CHILD",
2107
+ * "statusIds" : "1,2,3"
2108
+ * }
2109
+ * }
2110
+ *
2111
+ * Parameters:
2112
+ *
2113
+ * * `blocker` currently only supports `CHILD`.
2114
+ * * `statusIds` a comma-separated list of status IDs.
2115
+ *
2116
+ * ##### Separation of duties #####
2117
+ *
2118
+ * A condition preventing the user from performing, if the user has already
2119
+ * performed a transition on the issue.
2120
+ *
2121
+ * {
2122
+ * "ruleKey": "system:separation-of-duties",
2123
+ * "parameters": {
2124
+ * "fromStatusId": "10161",
2125
+ * "toStatusId": "10160"
2126
+ * }
2127
+ * }
2128
+ *
2129
+ * Parameters:
2130
+ *
2131
+ * * `fromStatusId` represents the status ID from which the issue is
2132
+ * transitioning. It ensures that the user performing the current transition has
2133
+ * not performed any actions when the issue was in the specified status.
2134
+ * * `toStatusId` represents the status ID to which the issue is transitioning.
2135
+ * It ensures that the user performing the current transition is not the same user
2136
+ * who has previously transitioned the issue.
2137
+ *
2138
+ * ##### Restrict transitions #####
2139
+ *
2140
+ * A condition preventing all users from transitioning the issue can also
2141
+ * optionally include APIs as well.
2142
+ *
2143
+ * {
2144
+ * "ruleKey": "system:restrict-from-all-users",
2145
+ * "parameters": {
2146
+ * "restrictMode": "users"
2147
+ * }
2148
+ * }
2149
+ *
2150
+ * Parameters:
2151
+ *
2152
+ * * `restrictMode` restricts the issue transition including/excluding APIs.
2153
+ * Allowed values: `"users"`, `"usersAndAPI"`.
2154
+ *
2155
+ * ##### Jira Service Management block until approved #####
2156
+ *
2157
+ * Block an issue transition until approval. Note: This is only supported in
2158
+ * team-managed projects.
2159
+ *
2160
+ * {
2161
+ * "ruleKey": "system:jsd-approvals-block-until-approved",
2162
+ * "parameters": {
2163
+ * "approvalConfigurationJson": "{"statusExternalUuid...}"
2164
+ * }
2165
+ * }
2166
+ *
2167
+ * Parameters:
2168
+ *
2169
+ * * `approvalConfigurationJson` a stringified JSON holding the Jira Service
2170
+ * Management approval configuration.
2171
+ *
2172
+ * ##### Jira Service Management block until rejected #####
2173
+ *
2174
+ * Block an issue transition until rejected. Note: This is only supported in
2175
+ * team-managed projects.
2176
+ *
2177
+ * {
2178
+ * "ruleKey": "system:jsd-approvals-block-until-rejected",
2179
+ * "parameters": {
2180
+ * "approvalConfigurationJson": "{"statusExternalUuid...}"
2181
+ * }
2182
+ * }
2183
+ *
2184
+ * Parameters:
2185
+ *
2186
+ * * `approvalConfigurationJson` a stringified JSON holding the Jira Service
2187
+ * Management approval configuration.
2188
+ *
2189
+ * ##### Block in progress approval #####
2190
+ *
2191
+ * Condition to block issue transition if there is pending approval. Note: This is
2192
+ * only supported in company-managed projects.
2193
+ *
2194
+ * {
2195
+ * "ruleKey": "system:block-in-progress-approval",
2196
+ * "parameters": {}
2197
+ * }
2198
+ *
2199
+ * #### Post functions ####
2200
+ *
2201
+ * Post functions carry out any additional processing required after a workflow
2202
+ * transition is executed.
2203
+ *
2204
+ * ##### Change assignee #####
2205
+ *
2206
+ * A post function rule that changes the assignee of an issue after a transition.
2207
+ *
2208
+ * {
2209
+ * "ruleKey": "system:change-assignee",
2210
+ * "parameters": {
2211
+ * "type": "to-selected-user",
2212
+ * "accountId": "example-account-id"
2213
+ * }
2214
+ * }
2215
+ *
2216
+ * Parameters:
2217
+ *
2218
+ * * `type` the parameter used to determine the new assignee. Allowed values:
2219
+ * `to-selected-user`, `to-unassigned`, `to-current-user`, `to-current-user`,
2220
+ * `to-default-user`, `to-default-user`
2221
+ * * `accountId` the account ID of the user to assign the issue to. This
2222
+ * parameter is required only when the type is `"to-selected-user"`.
2223
+ *
2224
+ * ##### Copy field value #####
2225
+ *
2226
+ * A post function that automates the process of copying values between fields
2227
+ * during a specific transition, ensuring data consistency and reducing manual
2228
+ * effort.
2229
+ *
2230
+ * {
2231
+ * "ruleKey": "system:copy-value-from-other-field",
2232
+ * "parameters": {
2233
+ * "sourceFieldKey": "description",
2234
+ * "targetFieldKey": "components",
2235
+ * "issueSource": "SAME"
2236
+ * }
2237
+ * }
2238
+ *
2239
+ * Parameters:
2240
+ *
2241
+ * * `sourceFieldKey` the field key to copy from. For a custom field, it would
2242
+ * look like `customfield_123`
2243
+ * * `targetFieldKey` the field key to copy to. For a custom field, it would
2244
+ * look like `customfield_123`
2245
+ * * `issueSource` `SAME` or `PARENT`. Defaults to `SAME` if no value is
2246
+ * provided.
2247
+ *
2248
+ * ##### Update field #####
2249
+ *
2250
+ * A post function that updates or appends a specific field with the given value.
2251
+ *
2252
+ * {
2253
+ * "ruleKey": "system:update-field",
2254
+ * "parameters": {
2255
+ * "field": "customfield_10056",
2256
+ * "value": "asdf",
2257
+ * "mode": "append"
2258
+ * }
2259
+ * }
2260
+ *
2261
+ * Parameters:
2262
+ *
2263
+ * * `field` the ID of the field to update. For a custom field, it would look
2264
+ * like `customfield_123`
2265
+ * * `value` the value to update the field with.
2266
+ * * `mode` `append` or `replace`. Determines if a value will be appended to the
2267
+ * current value, or if the current value will be replaced.
2268
+ *
2269
+ * ##### Trigger webhook #####
2270
+ *
2271
+ * A post function that automatically triggers a predefined webhook when a
2272
+ * transition occurs in the workflow.
2273
+ *
2274
+ * {
2275
+ * "ruleKey": "system:trigger-webhook",
2276
+ * "parameters": {
2277
+ * "webhookId": "1"
2278
+ * }
2279
+ * }
2280
+ *
2281
+ * Parameters:
2282
+ *
2283
+ * * `webhookId` the ID of the webhook.
2284
+ *
2285
+ * #### Screen ####
2286
+ *
2287
+ * ##### Remind people to update fields #####
2288
+ *
2289
+ * A screen rule that prompts users to update a specific field when they interact
2290
+ * with an issue screen during a transition. This rule is useful for ensuring that
2291
+ * users provide or modify necessary information before moving an issue to the
2292
+ * next step in the workflow.
2293
+ *
2294
+ * {
2295
+ * "ruleKey": "system:remind-people-to-update-fields",
2296
+ * "params": {
2297
+ * "remindingFieldIds": "assignee,customfield_10025",
2298
+ * "remindingMessage": "The message",
2299
+ * "remindingAlwaysAsk": "true"
2300
+ * }
2301
+ * }
2302
+ *
2303
+ * Parameters:
2304
+ *
2305
+ * * `remindingFieldIds` a comma-separated list of field IDs. Note: `fieldId` is
2306
+ * used interchangeably with the idea of `fieldKey` here, they refer to the same
2307
+ * field.
2308
+ * * `remindingMessage` the message to display when prompting the users to
2309
+ * update the fields.
2310
+ * * `remindingAlwaysAsk` always remind to update fields. Allowed values:
2311
+ * `true`, `false`.
2312
+ *
2313
+ * ##### Shared transition screen #####
2314
+ *
2315
+ * A common screen that is shared between transitions in a workflow.
2316
+ *
2317
+ * {
2318
+ * "ruleKey": "system:transition-screen",
2319
+ * "params": {
2320
+ * "screenId": "3"
2321
+ * }
2322
+ * }
2323
+ *
2324
+ * Parameters:
2325
+ *
2326
+ * * `screenId` the ID of the screen.
2327
+ *
2328
+ * #### Connect & Forge ####
2329
+ *
2330
+ * ##### Connect rules #####
2331
+ *
2332
+ * Validator/Condition/Post function for Connect app.
2333
+ *
2334
+ * {
2335
+ * "ruleKey": "connect:expression-validator",
2336
+ * "parameters": {
2337
+ * "appKey": "com.atlassian.app",
2338
+ * "config": "",
2339
+ * "id": "90ce590f-e90c-4cd3-8281-165ce41f2ac3",
2340
+ * "disabled": "false",
2341
+ * "tag": ""
2342
+ * }
2343
+ * }
2344
+ *
2345
+ * Parameters:
2346
+ *
2347
+ * * `ruleKey` Validator: `connect:expression-validator`, Condition:
2348
+ * `connect:expression-condition`, and Post function:
2349
+ * `connect:remote-workflow-function`
2350
+ * * `appKey` the reference to the Connect app
2351
+ * * `config` a JSON payload string describing the configuration
2352
+ * * `id` the ID of the rule
2353
+ * * `disabled` determine if the Connect app is disabled. Allowed values:
2354
+ * `true`, `false`.
2355
+ * * `tag` additional tags for the Connect app
2356
+ *
2357
+ * ##### Forge rules #####
2358
+ *
2359
+ * Validator/Condition/Post function for Forge app.
2360
+ *
2361
+ * {
2362
+ * "ruleKey": "forge:expression-validator",
2363
+ * "parameters": {
2364
+ * "key":
2365
+ * "ari:cloud:ecosystem::extension/{appId}/{environmentId}/static/{moduleKey}",
2366
+ * "config": "{"searchString":"workflow validator"}",
2367
+ * "id": "a865ddf6-bb3f-4a7b-9540-c2f8b3f9f6c2"
2368
+ * }
2369
+ * }
2370
+ *
2371
+ * Parameters:
2372
+ *
2373
+ * * `ruleKey` Validator: `forge:expression-validator`, Condition:
2374
+ * `forge:expression-condition`, and Post function: `forge:workflow-post-function`
2375
+ * * `key` the identifier for the Forge app
2376
+ * * `config` the persistent stringified JSON configuration for the Forge rule
2377
+ * * `id` the ID of the Forge rule
2378
+ *
2379
+ * @returns Returned if the request is successful.
2380
+ *
2381
+ * example: {
2382
+ * "connectRules": [
2383
+ * {
2384
+ * "addonKey": "com.atlassian.jira.refapp",
2385
+ * "createUrl": "/validators/jira-expression/create?id={validator.id}",
2386
+ * "description": "Validates if the given Jira expression is true.",
2387
+ * "editUrl": "/validators/jira-expression/edit?id={validator.id}",
2388
+ * "moduleKey": "jiraExpressionValidator",
2389
+ * "name": "Jira expression validator (by APPNAME)",
2390
+ * "ruleKey": "connect:expression-validator",
2391
+ * "ruleType": "Validator",
2392
+ * "viewUrl": "/validators/jira-expression/view?id={validator.id}"
2393
+ * }
2394
+ * ],
2395
+ * "editorScope": "GLOBAL",
2396
+ * "forgeRules": [
2397
+ * {
2398
+ * "description": "A Jira workflow validator example.",
2399
+ * "id":
2400
+ * "ari:cloud:ecosystem::extension/9df6d15f-1bbe-443e-be08-150309e8dbb0/f6a3bed3-737f-4e7a-8942-130df302b749/static/workflow-validator-example-workflow-validator",
2401
+ * "name": "workflow-validator",
2402
+ * "ruleKey": "forge:expression-validator",
2403
+ * "ruleType": "Validator"
2404
+ * }
2405
+ * ],
2406
+ * "projectTypes": [
2407
+ * "software",
2408
+ * "business"
2409
+ * ],
2410
+ * "systemRules": [
2411
+ * {
2412
+ * "description": "Automatically assign a request to someone after moving
2413
+ * the request using a particular transition.",
2414
+ * "incompatibleRuleKeys": [],
2415
+ * "isAvailableForInitialTransition": true,
2416
+ * "isVisible": true,
2417
+ * "name": "Assign a request",
2418
+ * "ruleKey": "system:change-assignee",
2419
+ * "ruleType": "Function"
2420
+ * }
2421
+ * ],
2422
+ * "triggerRules": [
2423
+ * {
2424
+ * "availableTypes": [
2425
+ * {
2426
+ * "description": "Automatically transitions the issue when a related
2427
+ * branch is created in a connected repository",
2428
+ * "name": "Branch created",
2429
+ * "type":
2430
+ * "com.atlassian.jira.plugins.jira-development-integration-plugin:branch-created-trigger"
2431
+ * }
2432
+ * ],
2433
+ * "ruleKey": "system:development-triggers"
2434
+ * }
2435
+ * ]
2436
+ * }
2437
+ * @path {GET} /rest/api/3/workflows/capabilities
2438
+ * @scopes-current manage:jira-configuration
2439
+ * @scopes-beta read:workflow:jira
2440
+ */
2441
+ workflowCapabilities({ workflowId, projectId, issueTypeId, }) {
2442
+ return this.getClientInstance()
2443
+ .request({
2444
+ path: "/rest/api/3/workflows/capabilities",
2445
+ method: "GET",
2446
+ query: {
2447
+ workflowId,
2448
+ projectId,
2449
+ issueTypeId,
2450
+ },
2451
+ })
2452
+ .then(this.getClientInstance().responseHandler({
2453
+ 200: {
2454
+ "application/json": "json",
2455
+ },
2456
+ }))
2457
+ .then(commonHttpClient.castResponse())
2458
+ .then(validation_schema_storage_1.validationSchemaStorage.validator("WorkflowsService.workflowCapabilities.response"))
2459
+ .then(commonHttpClient.getBody);
2460
+ }
2461
+ static initialize() {
2462
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.getAllWorkflows.response", zod_1.z
2463
+ .object({
2464
+ status: zod_1.z.literal(200),
2465
+ mediaType: zod_1.z.literal("application/json"),
2466
+ body: zod_1.z.array(validation_schema_storage_1.validationSchemaStorage.lazy("DeprecatedWorkflow")),
2467
+ })
2468
+ .describe("WorkflowsService.getAllWorkflows.response"));
2469
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.createWorkflow.response", zod_1.z
2470
+ .object({
2471
+ status: zod_1.z.literal(201),
2472
+ mediaType: zod_1.z.literal("application/json"),
2473
+ body: validation_schema_storage_1.validationSchemaStorage.lazy("WorkflowIds"),
2474
+ })
2475
+ .describe("WorkflowsService.createWorkflow.response"));
2476
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.getWorkflowsPaginated.response", zod_1.z
2477
+ .object({
2478
+ status: zod_1.z.literal(200),
2479
+ mediaType: zod_1.z.literal("application/json"),
2480
+ body: validation_schema_storage_1.validationSchemaStorage.lazy("PageBeanWorkflow"),
2481
+ })
2482
+ .describe("WorkflowsService.getWorkflowsPaginated.response"));
2483
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.readWorkflows.response", zod_1.z
2484
+ .object({
2485
+ status: zod_1.z.literal(200),
2486
+ mediaType: zod_1.z.literal("application/json"),
2487
+ body: validation_schema_storage_1.validationSchemaStorage.lazy("WorkflowReadResponse"),
2488
+ })
2489
+ .describe("WorkflowsService.readWorkflows.response"));
2490
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.workflowCapabilities.response", zod_1.z
2491
+ .object({
2492
+ status: zod_1.z.literal(200),
2493
+ mediaType: zod_1.z.literal("application/json"),
2494
+ body: validation_schema_storage_1.validationSchemaStorage.lazy("WorkflowCapabilities"),
2495
+ })
2496
+ .describe("WorkflowsService.workflowCapabilities.response"));
2497
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.createWorkflows.response", zod_1.z
2498
+ .object({
2499
+ status: zod_1.z.literal(200),
2500
+ mediaType: zod_1.z.literal("application/json"),
2501
+ body: validation_schema_storage_1.validationSchemaStorage.lazy("WorkflowCreateResponse"),
2502
+ })
2503
+ .describe("WorkflowsService.createWorkflows.response"));
2504
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.validateCreateWorkflows.response", zod_1.z
2505
+ .object({
2506
+ status: zod_1.z.literal(200),
2507
+ mediaType: zod_1.z.literal("application/json"),
2508
+ body: validation_schema_storage_1.validationSchemaStorage.lazy("WorkflowValidationErrorList"),
2509
+ })
2510
+ .describe("WorkflowsService.validateCreateWorkflows.response"));
2511
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.updateWorkflows.response", zod_1.z
2512
+ .object({
2513
+ status: zod_1.z.literal(200),
2514
+ mediaType: zod_1.z.literal("application/json"),
2515
+ body: validation_schema_storage_1.validationSchemaStorage.lazy("WorkflowUpdateResponse"),
2516
+ })
2517
+ .describe("WorkflowsService.updateWorkflows.response"));
2518
+ validation_schema_storage_1.validationSchemaStorage.registerExtensible("WorkflowsService.validateUpdateWorkflows.response", zod_1.z
2519
+ .object({
2520
+ status: zod_1.z.literal(200),
2521
+ mediaType: zod_1.z.literal("application/json"),
2522
+ body: validation_schema_storage_1.validationSchemaStorage.lazy("WorkflowValidationErrorList"),
2523
+ })
2524
+ .describe("WorkflowsService.validateUpdateWorkflows.response"));
2525
+ validation_schema_storage_1.validationSchemaStorage.registerOnce([workflows_1.registerWorkflowsValidationSchemas]);
2526
+ }
2527
+ }
2528
+ exports.WorkflowsService = WorkflowsService;
2529
+ //# sourceMappingURL=workflows-service.js.map