@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,1901 @@
1
+ // DO NOT EDIT!
2
+ // This file is generated by "api-typescript-generator".
3
+ // To update this file run "yarn build:openapi".
4
+ import { z } from "zod";
5
+
6
+ import * as commonHttpClient from "../core/common-http-client";
7
+ import { CommonHttpService } from "../core/common-http-service";
8
+ import {
9
+ type ColumnItem,
10
+ type ColumnRequestBody,
11
+ registerCommonValidationSchemas,
12
+ } from "../models/common";
13
+ import {
14
+ type ChangeFilterOwner,
15
+ type Filter,
16
+ type PageBeanFilterDetails,
17
+ registerFiltersValidationSchemas,
18
+ } from "../models/filters";
19
+ import { validationSchemaStorage } from "../validation-schema-storage";
20
+ /**
21
+ * This resource represents [filters](https://confluence.atlassian.com/x/eQiiLQ).
22
+ * Use it to get, create, update, or delete filters. Also use it to configure the
23
+ * columns for a filter and set favorite filters.
24
+ */
25
+ export class FiltersService extends CommonHttpService {
26
+ /**
27
+ * Changes the owner of the filter.
28
+ *
29
+ * **[Permissions](#permissions) required:** Permission to access Jira. However,
30
+ * the user must own the filter or have the *Administer Jira* [global
31
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
32
+ *
33
+ * @returns Returned if the request is successful.
34
+ * @path {PUT} /rest/api/3/filter/{id}/owner
35
+ * @scopes-beta read:filter:jira, write:filter:jira
36
+ * @scopes-current write:jira-work
37
+ */
38
+ changeFilterOwner({
39
+ id,
40
+ changeFilterOwner,
41
+ }: {
42
+ /** The ID of the filter to update. */
43
+ id: number;
44
+ /**
45
+ * The account ID of the new owner of the filter.
46
+ *
47
+ * @example {
48
+ * "accountId": "0000-0000-0000-0000"
49
+ * }
50
+ */
51
+ changeFilterOwner: ChangeFilterOwner;
52
+ }): Promise<void> {
53
+ return this.getClientInstance()
54
+ .request({
55
+ path: "/rest/api/3/filter/{id}/owner",
56
+ method: "PUT",
57
+ pathParams: {
58
+ id,
59
+ },
60
+ headers: {
61
+ "Content-Type": "application/json",
62
+ },
63
+ body: changeFilterOwner,
64
+ })
65
+ .then(
66
+ this.getClientInstance().responseHandler({
67
+ 204: {
68
+ "application/json": "json",
69
+ },
70
+ }),
71
+ )
72
+ .then(
73
+ commonHttpClient.castResponse<{
74
+ status: 204;
75
+ mediaType: "application/json";
76
+ body: void;
77
+ }>(),
78
+ )
79
+ .then(
80
+ validationSchemaStorage.validator(
81
+ "FiltersService.changeFilterOwner.response",
82
+ ),
83
+ )
84
+ .then(commonHttpClient.getBody);
85
+ }
86
+ /**
87
+ * Creates a filter. The filter is shared according to the [default share
88
+ * scope](#api-rest-api-3-filter-post). The filter is not selected as a favorite.
89
+ *
90
+ * **[Permissions](#permissions) required:** Permission to access Jira.
91
+ *
92
+ * @returns Returned if the request is successful.
93
+ *
94
+ * example: {
95
+ * "approximateLastUsed": null,
96
+ * "description": "Lists all open bugs",
97
+ * "favourite": true,
98
+ * "favouritedCount": 0,
99
+ * "id": "10000",
100
+ * "jql": "type = Bug and resolution is empty",
101
+ * "name": "All Open Bugs",
102
+ * "owner": {
103
+ * "accountId": "5b10a2844c20165700ede21g",
104
+ * "accountType": "atlassian",
105
+ * "active": false,
106
+ * "avatarUrls": {
107
+ * "16x16":
108
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
109
+ * "24x24":
110
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
111
+ * "32x32":
112
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
113
+ * "48x48":
114
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
115
+ * },
116
+ * "displayName": "Mia Krystof",
117
+ * "key": "",
118
+ * "name": "",
119
+ * "self":
120
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
121
+ * },
122
+ * "searchUrl":
123
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=type%20%3D%20Bug%20and%20resolutino%20is%20empty",
124
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10000",
125
+ * "sharePermissions": [],
126
+ * "subscriptions": {
127
+ * "end-index": 0,
128
+ * "items": [],
129
+ * "max-results": 0,
130
+ * "size": 0,
131
+ * "start-index": 0
132
+ * },
133
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10000"
134
+ * }
135
+ * @path {POST} /rest/api/3/filter
136
+ * @scopes-current write:jira-work
137
+ * @scopes-beta read:filter:jira, read:group:jira, read:project:jira, read:project-role:jira,
138
+ * read:user:jira, write:filter:jira, read:application-role:jira,
139
+ * read:avatar:jira, read:issue-type-hierarchy:jira, read:issue-type:jira,
140
+ * read:project-category:jira, read:project-version:jira,
141
+ * read:project.component:jira
142
+ */
143
+ createFilter({
144
+ expand,
145
+ overrideSharePermissions,
146
+ filter,
147
+ }: {
148
+ /**
149
+ * Use [expand](#expansion) to include additional information about filter in the
150
+ * response. This parameter accepts a comma-separated list. Expand options include:
151
+ *
152
+ * * `sharedUsers` Returns the users that the filter is shared with. This
153
+ * includes users that can browse projects that the filter is shared with. If you
154
+ * don't specify `sharedUsers`, then the `sharedUsers` object is returned but it
155
+ * doesn't list any users. The list of users returned is limited to 1000, to
156
+ * access additional users append `[start-index:end-index]` to the expand request.
157
+ * For example, to access the next 1000 users, use
158
+ * `?expand=sharedUsers[1001:2000]`.
159
+ * * `subscriptions` Returns the users that are subscribed to the filter. If you
160
+ * don't specify `subscriptions`, the `subscriptions` object is returned but it
161
+ * doesn't list any subscriptions. The list of subscriptions returned is limited
162
+ * to 1000, to access additional subscriptions append `[start-index:end-index]` to
163
+ * the expand request. For example, to access the next 1000 subscriptions, use
164
+ * `?expand=subscriptions[1001:2000]`.
165
+ */
166
+ expand?: string;
167
+ /**
168
+ * EXPERIMENTAL: Whether share permissions are overridden to enable filters with
169
+ * any share permissions to be created. Available to users with *Administer Jira*
170
+ * [global permission](https://confluence.atlassian.com/x/x4dKLg).
171
+ */
172
+ overrideSharePermissions?: boolean;
173
+ /**
174
+ * The filter to create.
175
+ *
176
+ * @example {
177
+ * "description": "Lists all open bugs",
178
+ * "jql": "type = Bug and resolution is empty",
179
+ * "name": "All Open Bugs"
180
+ * }
181
+ */
182
+ filter: Filter;
183
+ }): Promise<Filter> {
184
+ return this.getClientInstance()
185
+ .request({
186
+ path: "/rest/api/3/filter",
187
+ method: "POST",
188
+ query: {
189
+ expand,
190
+ overrideSharePermissions,
191
+ },
192
+ headers: {
193
+ "Content-Type": "application/json",
194
+ },
195
+ body: filter,
196
+ })
197
+ .then(
198
+ this.getClientInstance().responseHandler({
199
+ 200: {
200
+ "application/json": "json",
201
+ },
202
+ }),
203
+ )
204
+ .then(
205
+ commonHttpClient.castResponse<{
206
+ status: 200;
207
+ mediaType: "application/json";
208
+ body: Filter;
209
+ }>(),
210
+ )
211
+ .then(
212
+ validationSchemaStorage.validator(
213
+ "FiltersService.createFilter.response",
214
+ ),
215
+ )
216
+ .then(commonHttpClient.getBody);
217
+ }
218
+ /**
219
+ * Removes a filter as a favorite for the user. Note that this operation only
220
+ * removes filters visible to the user from the user's favorites list. For
221
+ * example, if the user favorites a public filter that is subsequently made
222
+ * private (and is therefore no longer visible on their favorites list) they
223
+ * cannot remove it from their favorites list.
224
+ *
225
+ * **[Permissions](#permissions) required:** Permission to access Jira.
226
+ *
227
+ * @returns Returned if the request is successful.
228
+ *
229
+ * example: {
230
+ * "approximateLastUsed": "2023-03-01T13:15:00.000+0000",
231
+ * "description": "Lists all open bugs",
232
+ * "favourite": true,
233
+ * "favouritedCount": 0,
234
+ * "id": "10000",
235
+ * "jql": "type = Bug and resolution is empty",
236
+ * "name": "All Open Bugs",
237
+ * "owner": {
238
+ * "accountId": "5b10a2844c20165700ede21g",
239
+ * "accountType": "atlassian",
240
+ * "active": false,
241
+ * "avatarUrls": {
242
+ * "16x16":
243
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
244
+ * "24x24":
245
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
246
+ * "32x32":
247
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
248
+ * "48x48":
249
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
250
+ * },
251
+ * "displayName": "Mia Krystof",
252
+ * "key": "",
253
+ * "name": "",
254
+ * "self":
255
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
256
+ * },
257
+ * "searchUrl":
258
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=type%20%3D%20Bug%20and%20resolutino%20is%20empty",
259
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10000",
260
+ * "sharePermissions": [],
261
+ * "subscriptions": {
262
+ * "end-index": 0,
263
+ * "items": [],
264
+ * "max-results": 0,
265
+ * "size": 0,
266
+ * "start-index": 0
267
+ * },
268
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10000"
269
+ * }
270
+ * @path {DELETE} /rest/api/3/filter/{id}/favourite
271
+ * @scopes-current write:jira-work
272
+ * @scopes-beta write:filter:jira, read:application-role:jira, read:avatar:jira,
273
+ * read:filter:jira, read:group:jira, read:issue-type-hierarchy:jira,
274
+ * read:issue-type:jira, read:project-category:jira, read:project-role:jira,
275
+ * read:project-version:jira, read:project.component:jira, read:project:jira,
276
+ * read:user:jira
277
+ */
278
+ deleteFavouriteForFilter({
279
+ id,
280
+ expand,
281
+ }: {
282
+ /** The ID of the filter. */
283
+ id: number;
284
+ /**
285
+ * Use [expand](#expansion) to include additional information about filter in the
286
+ * response. This parameter accepts a comma-separated list. Expand options include:
287
+ *
288
+ * * `sharedUsers` Returns the users that the filter is shared with. This
289
+ * includes users that can browse projects that the filter is shared with. If you
290
+ * don't specify `sharedUsers`, then the `sharedUsers` object is returned but it
291
+ * doesn't list any users. The list of users returned is limited to 1000, to
292
+ * access additional users append `[start-index:end-index]` to the expand request.
293
+ * For example, to access the next 1000 users, use
294
+ * `?expand=sharedUsers[1001:2000]`.
295
+ * * `subscriptions` Returns the users that are subscribed to the filter. If you
296
+ * don't specify `subscriptions`, the `subscriptions` object is returned but it
297
+ * doesn't list any subscriptions. The list of subscriptions returned is limited
298
+ * to 1000, to access additional subscriptions append `[start-index:end-index]` to
299
+ * the expand request. For example, to access the next 1000 subscriptions, use
300
+ * `?expand=subscriptions[1001:2000]`.
301
+ */
302
+ expand?: string;
303
+ }): Promise<Filter> {
304
+ return this.getClientInstance()
305
+ .request({
306
+ path: "/rest/api/3/filter/{id}/favourite",
307
+ method: "DELETE",
308
+ pathParams: {
309
+ id,
310
+ },
311
+ query: {
312
+ expand,
313
+ },
314
+ })
315
+ .then(
316
+ this.getClientInstance().responseHandler({
317
+ 200: {
318
+ "application/json": "json",
319
+ },
320
+ }),
321
+ )
322
+ .then(
323
+ commonHttpClient.castResponse<{
324
+ status: 200;
325
+ mediaType: "application/json";
326
+ body: Filter;
327
+ }>(),
328
+ )
329
+ .then(
330
+ validationSchemaStorage.validator(
331
+ "FiltersService.deleteFavouriteForFilter.response",
332
+ ),
333
+ )
334
+ .then(commonHttpClient.getBody);
335
+ }
336
+ /**
337
+ * Delete a filter.
338
+ *
339
+ * **[Permissions](#permissions) required:** Permission to access Jira, however
340
+ * filters can only be deleted by the creator of the filter or a user with
341
+ * *Administer Jira* [global
342
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
343
+ *
344
+ * @path {DELETE} /rest/api/3/filter/{id}
345
+ * @scopes-current write:jira-work
346
+ * @scopes-beta delete:filter:jira
347
+ */
348
+ deleteFilter({
349
+ id,
350
+ }: {
351
+ /** The ID of the filter to delete. */
352
+ id: number;
353
+ }): Promise<void> {
354
+ return this.getClientInstance()
355
+ .request({
356
+ path: "/rest/api/3/filter/{id}",
357
+ method: "DELETE",
358
+ pathParams: {
359
+ id,
360
+ },
361
+ })
362
+ .then(commonHttpClient.discardResult);
363
+ }
364
+ /**
365
+ * Returns the columns configured for a filter. The column configuration is used
366
+ * when the filter's results are viewed in *List View* with the *Columns* set to
367
+ * *Filter*.
368
+ *
369
+ * This operation can be accessed anonymously.
370
+ *
371
+ * **[Permissions](#permissions) required:** None, however, column details are
372
+ * only returned for:
373
+ *
374
+ * * filters owned by the user.
375
+ * * filters shared with a group that the user is a member of.
376
+ * * filters shared with a private project that the user has *Browse projects*
377
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for.
378
+ * * filters shared with a public project.
379
+ * * filters shared with the public.
380
+ *
381
+ * @returns Returned if the request is successful.
382
+ *
383
+ * example: [
384
+ * {
385
+ * "label": "Key",
386
+ * "value": "issuekey"
387
+ * },
388
+ * {
389
+ * "label": "Summary",
390
+ * "value": "summary"
391
+ * }
392
+ * ]
393
+ * @path {GET} /rest/api/3/filter/{id}/columns
394
+ * @scopes-current read:jira-work
395
+ * @scopes-beta read:filter.column:jira
396
+ */
397
+ getColumns({
398
+ id,
399
+ }: {
400
+ /** The ID of the filter. */
401
+ id: number;
402
+ }): Promise<ColumnItem[]> {
403
+ return this.getClientInstance()
404
+ .request({
405
+ path: "/rest/api/3/filter/{id}/columns",
406
+ method: "GET",
407
+ pathParams: {
408
+ id,
409
+ },
410
+ })
411
+ .then(
412
+ this.getClientInstance().responseHandler({
413
+ 200: {
414
+ "application/json": "json",
415
+ },
416
+ }),
417
+ )
418
+ .then(
419
+ commonHttpClient.castResponse<{
420
+ status: 200;
421
+ mediaType: "application/json";
422
+ body: ColumnItem[];
423
+ }>(),
424
+ )
425
+ .then(
426
+ validationSchemaStorage.validator("FiltersService.getColumns.response"),
427
+ )
428
+ .then(commonHttpClient.getBody);
429
+ }
430
+ /**
431
+ * Returns the visible favorite filters of the user.
432
+ *
433
+ * This operation can be accessed anonymously.
434
+ *
435
+ * **[Permissions](#permissions) required:** A favorite filter is only visible to
436
+ * the user where the filter is:
437
+ *
438
+ * * owned by the user.
439
+ * * shared with a group that the user is a member of.
440
+ * * shared with a private project that the user has *Browse projects* [project
441
+ * permission](https://confluence.atlassian.com/x/yodKLg) for.
442
+ * * shared with a public project.
443
+ * * shared with the public.
444
+ *
445
+ * For example, if the user favorites a public filter that is subsequently made
446
+ * private that filter is not returned by this operation.
447
+ *
448
+ * @returns Returned if the request is successful.
449
+ *
450
+ * example: [
451
+ * {
452
+ * "approximateLastUsed": "2023-03-01T13:15:00.000+0000",
453
+ * "description": "Lists all open bugs",
454
+ * "favourite": true,
455
+ * "favouritedCount": 0,
456
+ * "id": "10000",
457
+ * "jql": "type = Bug and resolution is empty",
458
+ * "name": "All Open Bugs",
459
+ * "owner": {
460
+ * "accountId": "5b10a2844c20165700ede21g",
461
+ * "accountType": "atlassian",
462
+ * "active": false,
463
+ * "avatarUrls": {
464
+ * "16x16":
465
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
466
+ * "24x24":
467
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
468
+ * "32x32":
469
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
470
+ * "48x48":
471
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
472
+ * },
473
+ * "displayName": "Mia Krystof",
474
+ * "key": "",
475
+ * "name": "",
476
+ * "self":
477
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
478
+ * },
479
+ * "searchUrl":
480
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=type%20%3D%20Bug%20and%20resolutino%20is%20empty",
481
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10000",
482
+ * "sharePermissions": [],
483
+ * "subscriptions": {
484
+ * "end-index": 0,
485
+ * "items": [],
486
+ * "max-results": 0,
487
+ * "size": 0,
488
+ * "start-index": 0
489
+ * },
490
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10000"
491
+ * },
492
+ * {
493
+ * "approximateLastUsed": null,
494
+ * "description": "Issues assigned to me",
495
+ * "favourite": true,
496
+ * "favouritedCount": 0,
497
+ * "id": "10010",
498
+ * "jql": "assignee = currentUser() and resolution is empty",
499
+ * "name": "My issues",
500
+ * "owner": {
501
+ * "accountId": "5b10a2844c20165700ede21g",
502
+ * "accountType": "atlassian",
503
+ * "active": false,
504
+ * "avatarUrls": {
505
+ * "16x16":
506
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
507
+ * "24x24":
508
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
509
+ * "32x32":
510
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
511
+ * "48x48":
512
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
513
+ * },
514
+ * "displayName": "Mia Krystof",
515
+ * "key": "",
516
+ * "name": "",
517
+ * "self":
518
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
519
+ * },
520
+ * "searchUrl":
521
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=assignee+in+%28currentUser%28%29%29+and+resolution+is+empty",
522
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10010",
523
+ * "sharePermissions": [
524
+ * {
525
+ * "id": 10000,
526
+ * "type": "global"
527
+ * },
528
+ * {
529
+ * "id": 10010,
530
+ * "project": {
531
+ * "avatarUrls": {
532
+ * "16x16":
533
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
534
+ * "24x24":
535
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
536
+ * "32x32":
537
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
538
+ * "48x48":
539
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
540
+ * },
541
+ * "id": "10000",
542
+ * "insight": {
543
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
544
+ * "totalIssueCount": 100
545
+ * },
546
+ * "key": "EX",
547
+ * "name": "Example",
548
+ * "projectCategory": {
549
+ * "description": "First Project Category",
550
+ * "id": "10000",
551
+ * "name": "FIRST",
552
+ * "self":
553
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
554
+ * },
555
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
556
+ * "simplified": false,
557
+ * "style": "classic"
558
+ * },
559
+ * "type": "project"
560
+ * }
561
+ * ],
562
+ * "subscriptions": {
563
+ * "end-index": 0,
564
+ * "items": [],
565
+ * "max-results": 0,
566
+ * "size": 0,
567
+ * "start-index": 0
568
+ * },
569
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10010"
570
+ * }
571
+ * ]
572
+ * @path {GET} /rest/api/3/filter/favourite
573
+ * @scopes-current read:jira-work
574
+ * @scopes-beta read:filter:jira, read:group:jira, read:project:jira, read:project-role:jira,
575
+ * read:user:jira, read:jql:jira, read:application-role:jira, read:avatar:jira,
576
+ * read:issue-type-hierarchy:jira
577
+ */
578
+ getFavouriteFilters({
579
+ expand,
580
+ }: {
581
+ /**
582
+ * Use [expand](#expansion) to include additional information about filter in the
583
+ * response. This parameter accepts a comma-separated list. Expand options include:
584
+ *
585
+ * * `sharedUsers` Returns the users that the filter is shared with. This
586
+ * includes users that can browse projects that the filter is shared with. If you
587
+ * don't specify `sharedUsers`, then the `sharedUsers` object is returned but it
588
+ * doesn't list any users. The list of users returned is limited to 1000, to
589
+ * access additional users append `[start-index:end-index]` to the expand request.
590
+ * For example, to access the next 1000 users, use
591
+ * `?expand=sharedUsers[1001:2000]`.
592
+ * * `subscriptions` Returns the users that are subscribed to the filter. If you
593
+ * don't specify `subscriptions`, the `subscriptions` object is returned but it
594
+ * doesn't list any subscriptions. The list of subscriptions returned is limited
595
+ * to 1000, to access additional subscriptions append `[start-index:end-index]` to
596
+ * the expand request. For example, to access the next 1000 subscriptions, use
597
+ * `?expand=subscriptions[1001:2000]`.
598
+ */
599
+ expand?: string;
600
+ }): Promise<Filter[]> {
601
+ return this.getClientInstance()
602
+ .request({
603
+ path: "/rest/api/3/filter/favourite",
604
+ method: "GET",
605
+ query: {
606
+ expand,
607
+ },
608
+ })
609
+ .then(
610
+ this.getClientInstance().responseHandler({
611
+ 200: {
612
+ "application/json": "json",
613
+ },
614
+ }),
615
+ )
616
+ .then(
617
+ commonHttpClient.castResponse<{
618
+ status: 200;
619
+ mediaType: "application/json";
620
+ body: Filter[];
621
+ }>(),
622
+ )
623
+ .then(
624
+ validationSchemaStorage.validator(
625
+ "FiltersService.getFavouriteFilters.response",
626
+ ),
627
+ )
628
+ .then(commonHttpClient.getBody);
629
+ }
630
+ /**
631
+ * Returns a filter.
632
+ *
633
+ * This operation can be accessed anonymously.
634
+ *
635
+ * **[Permissions](#permissions) required:** None, however, the filter is only
636
+ * returned where it is:
637
+ *
638
+ * * owned by the user.
639
+ * * shared with a group that the user is a member of.
640
+ * * shared with a private project that the user has *Browse projects* [project
641
+ * permission](https://confluence.atlassian.com/x/yodKLg) for.
642
+ * * shared with a public project.
643
+ * * shared with the public.
644
+ *
645
+ * @returns Returned if the request is successful.
646
+ *
647
+ * example: {
648
+ * "approximateLastUsed": "2023-03-01T13:15:00.000+0000",
649
+ * "description": "Lists all open bugs",
650
+ * "favourite": true,
651
+ * "favouritedCount": 0,
652
+ * "id": "10000",
653
+ * "jql": "type = Bug and resolution is empty",
654
+ * "name": "All Open Bugs",
655
+ * "owner": {
656
+ * "accountId": "5b10a2844c20165700ede21g",
657
+ * "accountType": "atlassian",
658
+ * "active": false,
659
+ * "avatarUrls": {
660
+ * "16x16":
661
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
662
+ * "24x24":
663
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
664
+ * "32x32":
665
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
666
+ * "48x48":
667
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
668
+ * },
669
+ * "displayName": "Mia Krystof",
670
+ * "key": "",
671
+ * "name": "",
672
+ * "self":
673
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
674
+ * },
675
+ * "searchUrl":
676
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=type%20%3D%20Bug%20and%20resolutino%20is%20empty",
677
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10000",
678
+ * "sharePermissions": [],
679
+ * "subscriptions": {
680
+ * "end-index": 0,
681
+ * "items": [],
682
+ * "max-results": 0,
683
+ * "size": 0,
684
+ * "start-index": 0
685
+ * },
686
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10000"
687
+ * }
688
+ * @path {GET} /rest/api/3/filter/{id}
689
+ * @scopes-current read:jira-work
690
+ * @scopes-beta read:filter:jira, read:group:jira, read:project:jira, read:project-role:jira,
691
+ * read:user:jira, read:jql:jira, read:application-role:jira, read:avatar:jira,
692
+ * read:issue-type-hierarchy:jira
693
+ */
694
+ getFilter({
695
+ id,
696
+ expand,
697
+ overrideSharePermissions,
698
+ }: {
699
+ /** The ID of the filter to return. */
700
+ id: number;
701
+ /**
702
+ * Use [expand](#expansion) to include additional information about filter in the
703
+ * response. This parameter accepts a comma-separated list. Expand options include:
704
+ *
705
+ * * `sharedUsers` Returns the users that the filter is shared with. This
706
+ * includes users that can browse projects that the filter is shared with. If you
707
+ * don't specify `sharedUsers`, then the `sharedUsers` object is returned but it
708
+ * doesn't list any users. The list of users returned is limited to 1000, to
709
+ * access additional users append `[start-index:end-index]` to the expand request.
710
+ * For example, to access the next 1000 users, use
711
+ * `?expand=sharedUsers[1001:2000]`.
712
+ * * `subscriptions` Returns the users that are subscribed to the filter. If you
713
+ * don't specify `subscriptions`, the `subscriptions` object is returned but it
714
+ * doesn't list any subscriptions. The list of subscriptions returned is limited
715
+ * to 1000, to access additional subscriptions append `[start-index:end-index]` to
716
+ * the expand request. For example, to access the next 1000 subscriptions, use
717
+ * `?expand=subscriptions[1001:2000]`.
718
+ */
719
+ expand?: string;
720
+ /**
721
+ * EXPERIMENTAL: Whether share permissions are overridden to enable filters with
722
+ * any share permissions to be returned. Available to users with *Administer Jira*
723
+ * [global permission](https://confluence.atlassian.com/x/x4dKLg).
724
+ */
725
+ overrideSharePermissions?: boolean;
726
+ }): Promise<Filter> {
727
+ return this.getClientInstance()
728
+ .request({
729
+ path: "/rest/api/3/filter/{id}",
730
+ method: "GET",
731
+ pathParams: {
732
+ id,
733
+ },
734
+ query: {
735
+ expand,
736
+ overrideSharePermissions,
737
+ },
738
+ })
739
+ .then(
740
+ this.getClientInstance().responseHandler({
741
+ 200: {
742
+ "application/json": "json",
743
+ },
744
+ }),
745
+ )
746
+ .then(
747
+ commonHttpClient.castResponse<{
748
+ status: 200;
749
+ mediaType: "application/json";
750
+ body: Filter;
751
+ }>(),
752
+ )
753
+ .then(
754
+ validationSchemaStorage.validator("FiltersService.getFilter.response"),
755
+ )
756
+ .then(commonHttpClient.getBody);
757
+ }
758
+ /**
759
+ * Returns a [paginated](#pagination) list of filters. Use this operation to get:
760
+ *
761
+ * * specific filters, by defining `id` only.
762
+ * * filters that match all of the specified attributes. For example, all
763
+ * filters for a user with a particular word in their name. When multiple
764
+ * attributes are specified only filters matching all attributes are returned.
765
+ *
766
+ * This operation can be accessed anonymously.
767
+ *
768
+ * **[Permissions](#permissions) required:** None, however, only the following
769
+ * filters that match the query parameters are returned:
770
+ *
771
+ * * filters owned by the user.
772
+ * * filters shared with a group that the user is a member of.
773
+ * * filters shared with a private project that the user has *Browse projects*
774
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for.
775
+ * * filters shared with a public project.
776
+ * * filters shared with the public.
777
+ *
778
+ * @returns Returned if the request is successful.
779
+ *
780
+ * example: {
781
+ * "isLast": true,
782
+ * "maxResults": 100,
783
+ * "self":
784
+ * "https://your-domain.atlassian.net/rest/api/3/filter/search?accountId=&maxResults=50&filterName=&orderBy=name&startAt=0&expand=description,owner,jql,searchUrl,viewUrl,favourite,favouritedCount,sharePermissions,editPermissions,isWritable,subscriptions,approximateLastUsed",
785
+ * "startAt": 0,
786
+ * "total": 2,
787
+ * "values": [
788
+ * {
789
+ * "approximateLastUsed": "2023-03-01T13:15:00.000+0000",
790
+ * "description": "Lists all open bugs",
791
+ * "editPermissions": [],
792
+ * "expand":
793
+ * "description,owner,jql,searchUrl,viewUrl,favourite,favouritedCount,sharePermissions,editPermissions,isWritable,approximateLastUsed,subscriptions",
794
+ * "favourite": false,
795
+ * "favouritedCount": 0,
796
+ * "id": "10000",
797
+ * "jql": "type = Bug and resolution is empty",
798
+ * "name": "All Open Bugs",
799
+ * "owner": {
800
+ * "accountId": "5b10a2844c20165700ede21g",
801
+ * "accountType": "atlassian",
802
+ * "active": false,
803
+ * "avatarUrls": {
804
+ * "16x16":
805
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
806
+ * "24x24":
807
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
808
+ * "32x32":
809
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
810
+ * "48x48":
811
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
812
+ * },
813
+ * "displayName": "Mia Krystof",
814
+ * "key": "",
815
+ * "name": "",
816
+ * "self":
817
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
818
+ * },
819
+ * "searchUrl":
820
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=type%20%3D%20Bug%20and%20resolutino%20is%20empty",
821
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10000",
822
+ * "sharePermissions": [],
823
+ * "subscriptions": [],
824
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10000"
825
+ * },
826
+ * {
827
+ * "approximateLastUsed": null,
828
+ * "description": "Issues assigned to me",
829
+ * "editPermissions": [
830
+ * {
831
+ * "id": 10010,
832
+ * "project": {
833
+ * "avatarUrls": {
834
+ * "16x16":
835
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10002",
836
+ * "24x24":
837
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10002",
838
+ * "32x32":
839
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10002",
840
+ * "48x48":
841
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10002"
842
+ * },
843
+ * "deleted": true,
844
+ * "deletedBy": {
845
+ * "accountId": "5b10a2844c20165700ede21g",
846
+ * "accountType": "atlassian",
847
+ * "active": false,
848
+ * "avatarUrls": {
849
+ * "16x16":
850
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
851
+ * "24x24":
852
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
853
+ * "32x32":
854
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
855
+ * "48x48":
856
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
857
+ * },
858
+ * "displayName": "Mia Krystof",
859
+ * "key": "",
860
+ * "name": "",
861
+ * "self":
862
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
863
+ * },
864
+ * "deletedDate": "2022-11-11T13:35:29.000+0000",
865
+ * "id": "10002",
866
+ * "insight": {
867
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
868
+ * "totalIssueCount": 100
869
+ * },
870
+ * "key": "MKY",
871
+ * "name": "Example",
872
+ * "projectCategory": {
873
+ * "description": "First Project Category",
874
+ * "id": "10000",
875
+ * "name": "FIRST",
876
+ * "self":
877
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
878
+ * },
879
+ * "retentionTillDate": "2023-01-10T13:35:29.000+0000",
880
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY",
881
+ * "simplified": false,
882
+ * "style": "classic"
883
+ * },
884
+ * "role": {
885
+ * "self":
886
+ * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360",
887
+ * "name": "Developers",
888
+ * "id": 10360,
889
+ * "description": "A project role that represents developers in a
890
+ * project",
891
+ * "actors": [
892
+ * {
893
+ * "actorGroup": {
894
+ * "name": "jira-developers",
895
+ * "displayName": "jira-developers",
896
+ * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2"
897
+ * },
898
+ * "displayName": "jira-developers",
899
+ * "id": 10240,
900
+ * "name": "jira-developers",
901
+ * "type": "atlassian-group-role-actor"
902
+ * },
903
+ * {
904
+ * "actorUser": {
905
+ * "accountId": "5b10a2844c20165700ede21g"
906
+ * },
907
+ * "displayName": "Mia Krystof",
908
+ * "id": 10241,
909
+ * "type": "atlassian-user-role-actor"
910
+ * }
911
+ * ],
912
+ * "scope": {
913
+ * "project": {
914
+ * "id": "10000",
915
+ * "key": "KEY",
916
+ * "name": "Next Gen Project"
917
+ * },
918
+ * "type": "PROJECT"
919
+ * }
920
+ * },
921
+ * "type": "project"
922
+ * },
923
+ * {
924
+ * "group": {
925
+ * "groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
926
+ * "name": "jira-administrators",
927
+ * "self":
928
+ * "https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625"
929
+ * },
930
+ * "id": 10010,
931
+ * "type": "group"
932
+ * }
933
+ * ],
934
+ * "expand":
935
+ * "description,owner,jql,searchUrl,viewUrl,favourite,favouritedCount,sharePermissions,editPermissions,isWritable,approximateLastUsed,subscriptions",
936
+ * "favourite": true,
937
+ * "favouritedCount": 123,
938
+ * "id": "10010",
939
+ * "jql": "assignee = currentUser() and resolution is empty",
940
+ * "name": "My issues",
941
+ * "owner": {
942
+ * "accountId": "5b10a2844c20165700ede21g",
943
+ * "accountType": "atlassian",
944
+ * "active": false,
945
+ * "avatarUrls": {
946
+ * "16x16":
947
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
948
+ * "24x24":
949
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
950
+ * "32x32":
951
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
952
+ * "48x48":
953
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
954
+ * },
955
+ * "displayName": "Mia Krystof",
956
+ * "key": "",
957
+ * "name": "",
958
+ * "self":
959
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
960
+ * },
961
+ * "searchUrl":
962
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=assignee+in+%28currentUser%28%29%29+and+resolution+is+empty",
963
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10010",
964
+ * "sharePermissions": [
965
+ * {
966
+ * "id": 10000,
967
+ * "type": "global"
968
+ * },
969
+ * {
970
+ * "id": 10010,
971
+ * "project": {
972
+ * "avatarUrls": {
973
+ * "16x16":
974
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
975
+ * "24x24":
976
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
977
+ * "32x32":
978
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
979
+ * "48x48":
980
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
981
+ * },
982
+ * "id": "10000",
983
+ * "insight": {
984
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
985
+ * "totalIssueCount": 100
986
+ * },
987
+ * "key": "EX",
988
+ * "name": "Example",
989
+ * "projectCategory": {
990
+ * "description": "First Project Category",
991
+ * "id": "10000",
992
+ * "name": "FIRST",
993
+ * "self":
994
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
995
+ * },
996
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
997
+ * "simplified": false,
998
+ * "style": "classic"
999
+ * },
1000
+ * "type": "project"
1001
+ * }
1002
+ * ],
1003
+ * "subscriptions": [
1004
+ * {
1005
+ * "id": 1,
1006
+ * "user": {
1007
+ * "accountId": "5b10a2844c20165700ede21g",
1008
+ * "accountType": "atlassian",
1009
+ * "active": true,
1010
+ * "applicationRoles": {
1011
+ * "items": [],
1012
+ * "size": 1
1013
+ * },
1014
+ * "avatarUrls": {
1015
+ * "16x16":
1016
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
1017
+ * "24x24":
1018
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
1019
+ * "32x32":
1020
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
1021
+ * "48x48":
1022
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
1023
+ * },
1024
+ * "displayName": "Mia Krystof",
1025
+ * "emailAddress": "mia@example.com",
1026
+ * "groups": {
1027
+ * "items": [],
1028
+ * "size": 3
1029
+ * },
1030
+ * "key": "",
1031
+ * "name": "",
1032
+ * "self":
1033
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
1034
+ * "timeZone": "Australia/Sydney"
1035
+ * }
1036
+ * }
1037
+ * ],
1038
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10010"
1039
+ * }
1040
+ * ]
1041
+ * }
1042
+ * @path {GET} /rest/api/3/filter/search
1043
+ * @scopes-current read:jira-work
1044
+ * @scopes-beta read:filter:jira, read:group:jira, read:project:jira, read:project-role:jira,
1045
+ * read:user:jira, read:jql:jira, read:application-role:jira, read:avatar:jira,
1046
+ * read:issue-type-hierarchy:jira
1047
+ */
1048
+ getFiltersPaginated({
1049
+ filterName,
1050
+ accountId,
1051
+ owner,
1052
+ groupname,
1053
+ groupId,
1054
+ projectId,
1055
+ id,
1056
+ orderBy,
1057
+ startAt,
1058
+ maxResults,
1059
+ expand,
1060
+ overrideSharePermissions,
1061
+ }: {
1062
+ /** String used to perform a case-insensitive partial match with `name`. */
1063
+ filterName?: string;
1064
+ /**
1065
+ * User account ID used to return filters with the matching `owner.accountId`.
1066
+ * This parameter cannot be used with `owner`.
1067
+ */
1068
+ accountId?: string;
1069
+ /**
1070
+ * This parameter is deprecated because of privacy changes. Use `accountId`
1071
+ * instead. See the [migration
1072
+ * guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
1073
+ * for details. User name used to return filters with the matching `owner.name`.
1074
+ * This parameter cannot be used with `accountId`.
1075
+ */
1076
+ owner?: string;
1077
+ /**
1078
+ * As a group's name can change, use of `groupId` is recommended to identify a
1079
+ * group. Group name used to returns filters that are shared with a group that
1080
+ * matches `sharePermissions.group.groupname`. This parameter cannot be used with
1081
+ * the `groupId` parameter.
1082
+ */
1083
+ groupname?: string;
1084
+ /**
1085
+ * Group ID used to returns filters that are shared with a group that matches
1086
+ * `sharePermissions.group.groupId`. This parameter cannot be used with the
1087
+ * `groupname` parameter.
1088
+ */
1089
+ groupId?: string;
1090
+ /**
1091
+ * Project ID used to returns filters that are shared with a project that matches
1092
+ * `sharePermissions.project.id`.
1093
+ */
1094
+ projectId?: number;
1095
+ /**
1096
+ * The list of filter IDs. To include multiple IDs, provide an ampersand-separated
1097
+ * list. For example, `id=10000&id=10001`. Do not exceed 200 filter IDs.
1098
+ */
1099
+ id?: number[];
1100
+ /**
1101
+ * [Order](#ordering) the results by a field:
1102
+ *
1103
+ * * `description` Sorts by filter description. Note that this sorting works
1104
+ * independently of whether the expand to display the description field is in use.
1105
+ * * `favourite_count` Sorts by the count of how many users have this filter as
1106
+ * a favorite.
1107
+ * * `is_favourite` Sorts by whether the filter is marked as a favorite.
1108
+ * * `id` Sorts by filter ID.
1109
+ * * `name` Sorts by filter name.
1110
+ * * `owner` Sorts by the ID of the filter owner.
1111
+ * * `is_shared` Sorts by whether the filter is shared.
1112
+ */
1113
+ orderBy?:
1114
+ | "description"
1115
+ | "-description"
1116
+ | "+description"
1117
+ | "favourite_count"
1118
+ | "-favourite_count"
1119
+ | "+favourite_count"
1120
+ | "id"
1121
+ | "-id"
1122
+ | "+id"
1123
+ | "is_favourite"
1124
+ | "-is_favourite"
1125
+ | "+is_favourite"
1126
+ | "name"
1127
+ | "-name"
1128
+ | "+name"
1129
+ | "owner"
1130
+ | "-owner"
1131
+ | "+owner"
1132
+ | "is_shared"
1133
+ | "-is_shared"
1134
+ | "+is_shared";
1135
+ /** The index of the first item to return in a page of results (page offset). */
1136
+ startAt?: number;
1137
+ /** The maximum number of items to return per page. */
1138
+ maxResults?: number;
1139
+ /**
1140
+ * Use [expand](#expansion) to include additional information about filter in the
1141
+ * response. This parameter accepts a comma-separated list. Expand options include:
1142
+ *
1143
+ * * `description` Returns the description of the filter.
1144
+ * * `favourite` Returns an indicator of whether the user has set the filter as
1145
+ * a favorite.
1146
+ * * `favouritedCount` Returns a count of how many users have set this filter as
1147
+ * a favorite.
1148
+ * * `jql` Returns the JQL query that the filter uses.
1149
+ * * `owner` Returns the owner of the filter.
1150
+ * * `searchUrl` Returns a URL to perform the filter's JQL query.
1151
+ * * `sharePermissions` Returns the share permissions defined for the filter.
1152
+ * * `editPermissions` Returns the edit permissions defined for the filter.
1153
+ * * `isWritable` Returns whether the current user has permission to edit the
1154
+ * filter.
1155
+ * * `approximateLastUsed` \[Experimental\] Returns the approximate date and
1156
+ * time when the filter was last evaluated.
1157
+ * * `subscriptions` Returns the users that are subscribed to the filter.
1158
+ * * `viewUrl` Returns a URL to view the filter.
1159
+ */
1160
+ expand?: string;
1161
+ /**
1162
+ * EXPERIMENTAL: Whether share permissions are overridden to enable filters with
1163
+ * any share permissions to be returned. Available to users with *Administer Jira*
1164
+ * [global permission](https://confluence.atlassian.com/x/x4dKLg).
1165
+ */
1166
+ overrideSharePermissions?: boolean;
1167
+ }): Promise<PageBeanFilterDetails> {
1168
+ return this.getClientInstance()
1169
+ .request({
1170
+ path: "/rest/api/3/filter/search",
1171
+ method: "GET",
1172
+ query: {
1173
+ filterName,
1174
+ accountId,
1175
+ owner,
1176
+ groupname,
1177
+ groupId,
1178
+ projectId,
1179
+ id,
1180
+ orderBy,
1181
+ startAt,
1182
+ maxResults,
1183
+ expand,
1184
+ overrideSharePermissions,
1185
+ },
1186
+ })
1187
+ .then(
1188
+ this.getClientInstance().responseHandler({
1189
+ 200: {
1190
+ "application/json": "json",
1191
+ },
1192
+ }),
1193
+ )
1194
+ .then(
1195
+ commonHttpClient.castResponse<{
1196
+ status: 200;
1197
+ mediaType: "application/json";
1198
+ body: PageBeanFilterDetails;
1199
+ }>(),
1200
+ )
1201
+ .then(
1202
+ validationSchemaStorage.validator(
1203
+ "FiltersService.getFiltersPaginated.response",
1204
+ ),
1205
+ )
1206
+ .then(commonHttpClient.getBody);
1207
+ }
1208
+ /**
1209
+ * Returns the filters owned by the user. If `includeFavourites` is `true`, the
1210
+ * user's visible favorite filters are also returned.
1211
+ *
1212
+ * **[Permissions](#permissions) required:** Permission to access Jira, however, a
1213
+ * favorite filters is only visible to the user where the filter is:
1214
+ *
1215
+ * * owned by the user.
1216
+ * * shared with a group that the user is a member of.
1217
+ * * shared with a private project that the user has *Browse projects* [project
1218
+ * permission](https://confluence.atlassian.com/x/yodKLg) for.
1219
+ * * shared with a public project.
1220
+ * * shared with the public.
1221
+ *
1222
+ * For example, if the user favorites a public filter that is subsequently made
1223
+ * private that filter is not returned by this operation.
1224
+ *
1225
+ * @returns Returned if the request is successful.
1226
+ *
1227
+ * example: [
1228
+ * {
1229
+ * "approximateLastUsed": "2023-03-01T13:15:00.000+0000",
1230
+ * "description": "Lists all open bugs",
1231
+ * "favourite": true,
1232
+ * "favouritedCount": 0,
1233
+ * "id": "10000",
1234
+ * "jql": "type = Bug and resolution is empty",
1235
+ * "name": "All Open Bugs",
1236
+ * "owner": {
1237
+ * "accountId": "5b10a2844c20165700ede21g",
1238
+ * "accountType": "atlassian",
1239
+ * "active": false,
1240
+ * "avatarUrls": {
1241
+ * "16x16":
1242
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
1243
+ * "24x24":
1244
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
1245
+ * "32x32":
1246
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
1247
+ * "48x48":
1248
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
1249
+ * },
1250
+ * "displayName": "Mia Krystof",
1251
+ * "key": "",
1252
+ * "name": "",
1253
+ * "self":
1254
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
1255
+ * },
1256
+ * "searchUrl":
1257
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=type%20%3D%20Bug%20and%20resolutino%20is%20empty",
1258
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10000",
1259
+ * "sharePermissions": [],
1260
+ * "subscriptions": {
1261
+ * "end-index": 0,
1262
+ * "items": [],
1263
+ * "max-results": 0,
1264
+ * "size": 0,
1265
+ * "start-index": 0
1266
+ * },
1267
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10000"
1268
+ * },
1269
+ * {
1270
+ * "approximateLastUsed": null,
1271
+ * "description": "Issues assigned to me",
1272
+ * "favourite": true,
1273
+ * "favouritedCount": 0,
1274
+ * "id": "10010",
1275
+ * "jql": "assignee = currentUser() and resolution is empty",
1276
+ * "name": "My issues",
1277
+ * "owner": {
1278
+ * "accountId": "5b10a2844c20165700ede21g",
1279
+ * "accountType": "atlassian",
1280
+ * "active": false,
1281
+ * "avatarUrls": {
1282
+ * "16x16":
1283
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
1284
+ * "24x24":
1285
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
1286
+ * "32x32":
1287
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
1288
+ * "48x48":
1289
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
1290
+ * },
1291
+ * "displayName": "Mia Krystof",
1292
+ * "key": "",
1293
+ * "name": "",
1294
+ * "self":
1295
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
1296
+ * },
1297
+ * "searchUrl":
1298
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=assignee+in+%28currentUser%28%29%29+and+resolution+is+empty",
1299
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10010",
1300
+ * "sharePermissions": [
1301
+ * {
1302
+ * "id": 10000,
1303
+ * "type": "global"
1304
+ * },
1305
+ * {
1306
+ * "id": 10010,
1307
+ * "project": {
1308
+ * "avatarUrls": {
1309
+ * "16x16":
1310
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
1311
+ * "24x24":
1312
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
1313
+ * "32x32":
1314
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
1315
+ * "48x48":
1316
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
1317
+ * },
1318
+ * "id": "10000",
1319
+ * "insight": {
1320
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
1321
+ * "totalIssueCount": 100
1322
+ * },
1323
+ * "key": "EX",
1324
+ * "name": "Example",
1325
+ * "projectCategory": {
1326
+ * "description": "First Project Category",
1327
+ * "id": "10000",
1328
+ * "name": "FIRST",
1329
+ * "self":
1330
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
1331
+ * },
1332
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
1333
+ * "simplified": false,
1334
+ * "style": "classic"
1335
+ * },
1336
+ * "type": "project"
1337
+ * }
1338
+ * ],
1339
+ * "subscriptions": {
1340
+ * "end-index": 0,
1341
+ * "items": [],
1342
+ * "max-results": 0,
1343
+ * "size": 0,
1344
+ * "start-index": 0
1345
+ * },
1346
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10010"
1347
+ * }
1348
+ * ]
1349
+ * @path {GET} /rest/api/3/filter/my
1350
+ * @scopes-current read:jira-work
1351
+ * @scopes-beta read:filter:jira, read:group:jira, read:project:jira, read:project-role:jira,
1352
+ * read:user:jira, read:jql:jira, read:application-role:jira, read:avatar:jira,
1353
+ * read:issue-type-hierarchy:jira
1354
+ */
1355
+ getMyFilters({
1356
+ expand,
1357
+ includeFavourites,
1358
+ }: {
1359
+ /**
1360
+ * Use [expand](#expansion) to include additional information about filter in the
1361
+ * response. This parameter accepts a comma-separated list. Expand options include:
1362
+ *
1363
+ * * `sharedUsers` Returns the users that the filter is shared with. This
1364
+ * includes users that can browse projects that the filter is shared with. If you
1365
+ * don't specify `sharedUsers`, then the `sharedUsers` object is returned but it
1366
+ * doesn't list any users. The list of users returned is limited to 1000, to
1367
+ * access additional users append `[start-index:end-index]` to the expand request.
1368
+ * For example, to access the next 1000 users, use
1369
+ * `?expand=sharedUsers[1001:2000]`.
1370
+ * * `subscriptions` Returns the users that are subscribed to the filter. If you
1371
+ * don't specify `subscriptions`, the `subscriptions` object is returned but it
1372
+ * doesn't list any subscriptions. The list of subscriptions returned is limited
1373
+ * to 1000, to access additional subscriptions append `[start-index:end-index]` to
1374
+ * the expand request. For example, to access the next 1000 subscriptions, use
1375
+ * `?expand=subscriptions[1001:2000]`.
1376
+ */
1377
+ expand?: string;
1378
+ /** Include the user's favorite filters in the response. */
1379
+ includeFavourites?: boolean;
1380
+ }): Promise<Filter[]> {
1381
+ return this.getClientInstance()
1382
+ .request({
1383
+ path: "/rest/api/3/filter/my",
1384
+ method: "GET",
1385
+ query: {
1386
+ expand,
1387
+ includeFavourites,
1388
+ },
1389
+ })
1390
+ .then(
1391
+ this.getClientInstance().responseHandler({
1392
+ 200: {
1393
+ "application/json": "json",
1394
+ },
1395
+ }),
1396
+ )
1397
+ .then(
1398
+ commonHttpClient.castResponse<{
1399
+ status: 200;
1400
+ mediaType: "application/json";
1401
+ body: Filter[];
1402
+ }>(),
1403
+ )
1404
+ .then(
1405
+ validationSchemaStorage.validator(
1406
+ "FiltersService.getMyFilters.response",
1407
+ ),
1408
+ )
1409
+ .then(commonHttpClient.getBody);
1410
+ }
1411
+ /**
1412
+ * Reset the user's column configuration for the filter to the default.
1413
+ *
1414
+ * **[Permissions](#permissions) required:** Permission to access Jira, however,
1415
+ * columns are only reset for:
1416
+ *
1417
+ * * filters owned by the user.
1418
+ * * filters shared with a group that the user is a member of.
1419
+ * * filters shared with a private project that the user has *Browse projects*
1420
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for.
1421
+ * * filters shared with a public project.
1422
+ * * filters shared with the public.
1423
+ *
1424
+ * @path {DELETE} /rest/api/3/filter/{id}/columns
1425
+ * @scopes-beta delete:filter.column:jira
1426
+ * @scopes-current write:jira-work
1427
+ */
1428
+ resetColumns({
1429
+ id,
1430
+ }: {
1431
+ /** The ID of the filter. */
1432
+ id: number;
1433
+ }): Promise<void> {
1434
+ return this.getClientInstance()
1435
+ .request({
1436
+ path: "/rest/api/3/filter/{id}/columns",
1437
+ method: "DELETE",
1438
+ pathParams: {
1439
+ id,
1440
+ },
1441
+ })
1442
+ .then(commonHttpClient.discardResult);
1443
+ }
1444
+ /**
1445
+ * Sets the columns for a filter. Only navigable fields can be set as columns. Use
1446
+ * [Get fields](#api-rest-api-3-field-get) to get the list fields in Jira. A
1447
+ * navigable field has `navigable` set to `true`.
1448
+ *
1449
+ * The parameters for this resource are expressed as HTML form data. For example,
1450
+ * in curl:
1451
+ *
1452
+ * `curl -X PUT -d columns=summary -d columns=description
1453
+ * https://your-domain.atlassian.net/rest/api/3/filter/10000/columns`
1454
+ *
1455
+ * **[Permissions](#permissions) required:** Permission to access Jira, however,
1456
+ * columns are only set for:
1457
+ *
1458
+ * * filters owned by the user.
1459
+ * * filters shared with a group that the user is a member of.
1460
+ * * filters shared with a private project that the user has *Browse projects*
1461
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for.
1462
+ * * filters shared with a public project.
1463
+ * * filters shared with the public.
1464
+ *
1465
+ * @returns Returned if the request is successful.
1466
+ * @path {PUT} /rest/api/3/filter/{id}/columns
1467
+ * @scopes-current write:jira-work
1468
+ * @scopes-beta write:filter.column:jira
1469
+ */
1470
+ setColumns({
1471
+ id,
1472
+ mediaType = "application/json",
1473
+ columnRequestBody,
1474
+ }: {
1475
+ /** The ID of the filter. */
1476
+ id: number;
1477
+ } & (
1478
+ | {
1479
+ mediaType?: "application/json";
1480
+ /**
1481
+ * The IDs of the fields to set as columns. In the form data, specify each field
1482
+ * as `columns=id`, where `id` is the *id* of a field (as seen in the response for
1483
+ * [Get fields](#api-rest-api-<ver>-field-get)). For example, `columns=summary`.
1484
+ */
1485
+ columnRequestBody: ColumnRequestBody;
1486
+ }
1487
+ | {
1488
+ mediaType: "multipart/form-data";
1489
+ /**
1490
+ * The IDs of the fields to set as columns. In the form data, specify each field
1491
+ * as `columns=id`, where `id` is the *id* of a field (as seen in the response for
1492
+ * [Get fields](#api-rest-api-<ver>-field-get)). For example, `columns=summary`.
1493
+ */
1494
+ columnRequestBody: ColumnRequestBody;
1495
+ }
1496
+ )): Promise<unknown> {
1497
+ return this.getClientInstance()
1498
+ .request({
1499
+ path: "/rest/api/3/filter/{id}/columns",
1500
+ method: "PUT",
1501
+ pathParams: {
1502
+ id,
1503
+ },
1504
+ headers: {
1505
+ "Content-Type": mediaType,
1506
+ },
1507
+ body: columnRequestBody,
1508
+ })
1509
+ .then(
1510
+ this.getClientInstance().responseHandler({
1511
+ 200: {
1512
+ "application/json": "json",
1513
+ },
1514
+ }),
1515
+ )
1516
+ .then(
1517
+ commonHttpClient.castResponse<{
1518
+ status: 200;
1519
+ mediaType: "application/json";
1520
+ body: unknown;
1521
+ }>(),
1522
+ )
1523
+ .then(
1524
+ validationSchemaStorage.validator("FiltersService.setColumns.response"),
1525
+ )
1526
+ .then(commonHttpClient.getBody);
1527
+ }
1528
+ /**
1529
+ * Add a filter as a favorite for the user.
1530
+ *
1531
+ * **[Permissions](#permissions) required:** Permission to access Jira, however,
1532
+ * the user can only favorite:
1533
+ *
1534
+ * * filters owned by the user.
1535
+ * * filters shared with a group that the user is a member of.
1536
+ * * filters shared with a private project that the user has *Browse projects*
1537
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for.
1538
+ * * filters shared with a public project.
1539
+ * * filters shared with the public.
1540
+ *
1541
+ * @returns Returned if the request is successful.
1542
+ *
1543
+ * example: {
1544
+ * "approximateLastUsed": "2023-03-01T13:15:00.000+0000",
1545
+ * "description": "Lists all open bugs",
1546
+ * "favourite": true,
1547
+ * "favouritedCount": 0,
1548
+ * "id": "10000",
1549
+ * "jql": "type = Bug and resolution is empty",
1550
+ * "name": "All Open Bugs",
1551
+ * "owner": {
1552
+ * "accountId": "5b10a2844c20165700ede21g",
1553
+ * "accountType": "atlassian",
1554
+ * "active": false,
1555
+ * "avatarUrls": {
1556
+ * "16x16":
1557
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
1558
+ * "24x24":
1559
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
1560
+ * "32x32":
1561
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
1562
+ * "48x48":
1563
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
1564
+ * },
1565
+ * "displayName": "Mia Krystof",
1566
+ * "key": "",
1567
+ * "name": "",
1568
+ * "self":
1569
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
1570
+ * },
1571
+ * "searchUrl":
1572
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=type%20%3D%20Bug%20and%20resolutino%20is%20empty",
1573
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10000",
1574
+ * "sharePermissions": [],
1575
+ * "subscriptions": {
1576
+ * "end-index": 0,
1577
+ * "items": [],
1578
+ * "max-results": 0,
1579
+ * "size": 0,
1580
+ * "start-index": 0
1581
+ * },
1582
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10000"
1583
+ * }
1584
+ * @path {PUT} /rest/api/3/filter/{id}/favourite
1585
+ * @scopes-current write:jira-work
1586
+ * @scopes-beta read:filter:jira, read:group:jira, read:project:jira, read:project-role:jira,
1587
+ * read:user:jira, write:filter:jira, read:jql:jira, read:application-role:jira,
1588
+ * read:avatar:jira, read:issue-type-hierarchy:jira
1589
+ */
1590
+ setFavouriteForFilter({
1591
+ id,
1592
+ expand,
1593
+ }: {
1594
+ /** The ID of the filter. */
1595
+ id: number;
1596
+ /**
1597
+ * Use [expand](#expansion) to include additional information about filter in the
1598
+ * response. This parameter accepts a comma-separated list. Expand options include:
1599
+ *
1600
+ * * `sharedUsers` Returns the users that the filter is shared with. This
1601
+ * includes users that can browse projects that the filter is shared with. If you
1602
+ * don't specify `sharedUsers`, then the `sharedUsers` object is returned but it
1603
+ * doesn't list any users. The list of users returned is limited to 1000, to
1604
+ * access additional users append `[start-index:end-index]` to the expand request.
1605
+ * For example, to access the next 1000 users, use
1606
+ * `?expand=sharedUsers[1001:2000]`.
1607
+ * * `subscriptions` Returns the users that are subscribed to the filter. If you
1608
+ * don't specify `subscriptions`, the `subscriptions` object is returned but it
1609
+ * doesn't list any subscriptions. The list of subscriptions returned is limited
1610
+ * to 1000, to access additional subscriptions append `[start-index:end-index]` to
1611
+ * the expand request. For example, to access the next 1000 subscriptions, use
1612
+ * `?expand=subscriptions[1001:2000]`.
1613
+ */
1614
+ expand?: string;
1615
+ }): Promise<Filter> {
1616
+ return this.getClientInstance()
1617
+ .request({
1618
+ path: "/rest/api/3/filter/{id}/favourite",
1619
+ method: "PUT",
1620
+ pathParams: {
1621
+ id,
1622
+ },
1623
+ query: {
1624
+ expand,
1625
+ },
1626
+ })
1627
+ .then(
1628
+ this.getClientInstance().responseHandler({
1629
+ 200: {
1630
+ "application/json": "json",
1631
+ },
1632
+ }),
1633
+ )
1634
+ .then(
1635
+ commonHttpClient.castResponse<{
1636
+ status: 200;
1637
+ mediaType: "application/json";
1638
+ body: Filter;
1639
+ }>(),
1640
+ )
1641
+ .then(
1642
+ validationSchemaStorage.validator(
1643
+ "FiltersService.setFavouriteForFilter.response",
1644
+ ),
1645
+ )
1646
+ .then(commonHttpClient.getBody);
1647
+ }
1648
+ /**
1649
+ * Updates a filter. Use this operation to update a filter's name, description,
1650
+ * JQL, or sharing.
1651
+ *
1652
+ * **[Permissions](#permissions) required:** Permission to access Jira, however
1653
+ * the user must own the filter.
1654
+ *
1655
+ * @returns Returned if the request is successful.
1656
+ *
1657
+ * example: {
1658
+ * "approximateLastUsed": "2023-03-01T13:15:00.000+0000",
1659
+ * "description": "Lists all open bugs",
1660
+ * "favourite": true,
1661
+ * "favouritedCount": 0,
1662
+ * "id": "10000",
1663
+ * "jql": "type = Bug and resolution is empty",
1664
+ * "name": "All Open Bugs",
1665
+ * "owner": {
1666
+ * "accountId": "5b10a2844c20165700ede21g",
1667
+ * "accountType": "atlassian",
1668
+ * "active": false,
1669
+ * "avatarUrls": {
1670
+ * "16x16":
1671
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
1672
+ * "24x24":
1673
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
1674
+ * "32x32":
1675
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
1676
+ * "48x48":
1677
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
1678
+ * },
1679
+ * "displayName": "Mia Krystof",
1680
+ * "key": "",
1681
+ * "name": "",
1682
+ * "self":
1683
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
1684
+ * },
1685
+ * "searchUrl":
1686
+ * "https://your-domain.atlassian.net/rest/api/3/search?jql=type%20%3D%20Bug%20and%20resolutino%20is%20empty",
1687
+ * "self": "https://your-domain.atlassian.net/rest/api/3/filter/10000",
1688
+ * "sharePermissions": [],
1689
+ * "subscriptions": {
1690
+ * "end-index": 0,
1691
+ * "items": [],
1692
+ * "max-results": 0,
1693
+ * "size": 0,
1694
+ * "start-index": 0
1695
+ * },
1696
+ * "viewUrl": "https://your-domain.atlassian.net/issues/?filter=10000"
1697
+ * }
1698
+ * @path {PUT} /rest/api/3/filter/{id}
1699
+ * @scopes-current write:jira-work
1700
+ * @scopes-beta write:filter:jira, read:filter:jira, read:group:jira, read:project:jira,
1701
+ * read:project-role:jira, read:user:jira, read:jql:jira,
1702
+ * read:application-role:jira, read:avatar:jira, read:issue-type-hierarchy:jira
1703
+ */
1704
+ updateFilter({
1705
+ id,
1706
+ expand,
1707
+ overrideSharePermissions,
1708
+ filter,
1709
+ }: {
1710
+ /** The ID of the filter to update. */
1711
+ id: number;
1712
+ /**
1713
+ * Use [expand](#expansion) to include additional information about filter in the
1714
+ * response. This parameter accepts a comma-separated list. Expand options include:
1715
+ *
1716
+ * * `sharedUsers` Returns the users that the filter is shared with. This
1717
+ * includes users that can browse projects that the filter is shared with. If you
1718
+ * don't specify `sharedUsers`, then the `sharedUsers` object is returned but it
1719
+ * doesn't list any users. The list of users returned is limited to 1000, to
1720
+ * access additional users append `[start-index:end-index]` to the expand request.
1721
+ * For example, to access the next 1000 users, use
1722
+ * `?expand=sharedUsers[1001:2000]`.
1723
+ * * `subscriptions` Returns the users that are subscribed to the filter. If you
1724
+ * don't specify `subscriptions`, the `subscriptions` object is returned but it
1725
+ * doesn't list any subscriptions. The list of subscriptions returned is limited
1726
+ * to 1000, to access additional subscriptions append `[start-index:end-index]` to
1727
+ * the expand request. For example, to access the next 1000 subscriptions, use
1728
+ * `?expand=subscriptions[1001:2000]`.
1729
+ */
1730
+ expand?: string;
1731
+ /**
1732
+ * EXPERIMENTAL: Whether share permissions are overridden to enable the addition
1733
+ * of any share permissions to filters. Available to users with *Administer Jira*
1734
+ * [global permission](https://confluence.atlassian.com/x/x4dKLg).
1735
+ */
1736
+ overrideSharePermissions?: boolean;
1737
+ /**
1738
+ * The filter to update.
1739
+ *
1740
+ * @example {
1741
+ * "description": "Lists all open bugs",
1742
+ * "jql": "type = Bug and resolution is empty",
1743
+ * "name": "All Open Bugs"
1744
+ * }
1745
+ */
1746
+ filter: Filter;
1747
+ }): Promise<Filter> {
1748
+ return this.getClientInstance()
1749
+ .request({
1750
+ path: "/rest/api/3/filter/{id}",
1751
+ method: "PUT",
1752
+ pathParams: {
1753
+ id,
1754
+ },
1755
+ query: {
1756
+ expand,
1757
+ overrideSharePermissions,
1758
+ },
1759
+ headers: {
1760
+ "Content-Type": "application/json",
1761
+ },
1762
+ body: filter,
1763
+ })
1764
+ .then(
1765
+ this.getClientInstance().responseHandler({
1766
+ 200: {
1767
+ "application/json": "json",
1768
+ },
1769
+ }),
1770
+ )
1771
+ .then(
1772
+ commonHttpClient.castResponse<{
1773
+ status: 200;
1774
+ mediaType: "application/json";
1775
+ body: Filter;
1776
+ }>(),
1777
+ )
1778
+ .then(
1779
+ validationSchemaStorage.validator(
1780
+ "FiltersService.updateFilter.response",
1781
+ ),
1782
+ )
1783
+ .then(commonHttpClient.getBody);
1784
+ }
1785
+ static initialize() {
1786
+ validationSchemaStorage.registerExtensible(
1787
+ "FiltersService.createFilter.response",
1788
+ z
1789
+ .object({
1790
+ status: z.literal(200),
1791
+ mediaType: z.literal("application/json"),
1792
+ body: validationSchemaStorage.lazy("Filter"),
1793
+ })
1794
+ .describe("FiltersService.createFilter.response"),
1795
+ );
1796
+ validationSchemaStorage.registerExtensible(
1797
+ "FiltersService.getFilter.response",
1798
+ z
1799
+ .object({
1800
+ status: z.literal(200),
1801
+ mediaType: z.literal("application/json"),
1802
+ body: validationSchemaStorage.lazy("Filter"),
1803
+ })
1804
+ .describe("FiltersService.getFilter.response"),
1805
+ );
1806
+ validationSchemaStorage.registerExtensible(
1807
+ "FiltersService.updateFilter.response",
1808
+ z
1809
+ .object({
1810
+ status: z.literal(200),
1811
+ mediaType: z.literal("application/json"),
1812
+ body: validationSchemaStorage.lazy("Filter"),
1813
+ })
1814
+ .describe("FiltersService.updateFilter.response"),
1815
+ );
1816
+ validationSchemaStorage.registerExtensible(
1817
+ "FiltersService.getColumns.response",
1818
+ z
1819
+ .object({
1820
+ status: z.literal(200),
1821
+ mediaType: z.literal("application/json"),
1822
+ body: z.array(validationSchemaStorage.lazy("ColumnItem")),
1823
+ })
1824
+ .describe("FiltersService.getColumns.response"),
1825
+ );
1826
+ validationSchemaStorage.registerExtensible(
1827
+ "FiltersService.setColumns.response",
1828
+ z
1829
+ .object({
1830
+ status: z.literal(200),
1831
+ mediaType: z.literal("application/json"),
1832
+ body: z.unknown(),
1833
+ })
1834
+ .describe("FiltersService.setColumns.response"),
1835
+ );
1836
+ validationSchemaStorage.registerExtensible(
1837
+ "FiltersService.setFavouriteForFilter.response",
1838
+ z
1839
+ .object({
1840
+ status: z.literal(200),
1841
+ mediaType: z.literal("application/json"),
1842
+ body: validationSchemaStorage.lazy("Filter"),
1843
+ })
1844
+ .describe("FiltersService.setFavouriteForFilter.response"),
1845
+ );
1846
+ validationSchemaStorage.registerExtensible(
1847
+ "FiltersService.deleteFavouriteForFilter.response",
1848
+ z
1849
+ .object({
1850
+ status: z.literal(200),
1851
+ mediaType: z.literal("application/json"),
1852
+ body: validationSchemaStorage.lazy("Filter"),
1853
+ })
1854
+ .describe("FiltersService.deleteFavouriteForFilter.response"),
1855
+ );
1856
+ validationSchemaStorage.registerExtensible(
1857
+ "FiltersService.changeFilterOwner.response",
1858
+ z
1859
+ .object({
1860
+ status: z.literal(204),
1861
+ mediaType: z.literal("application/json"),
1862
+ body: z.unknown(),
1863
+ })
1864
+ .describe("FiltersService.changeFilterOwner.response"),
1865
+ );
1866
+ validationSchemaStorage.registerExtensible(
1867
+ "FiltersService.getFavouriteFilters.response",
1868
+ z
1869
+ .object({
1870
+ status: z.literal(200),
1871
+ mediaType: z.literal("application/json"),
1872
+ body: z.array(validationSchemaStorage.lazy("Filter")),
1873
+ })
1874
+ .describe("FiltersService.getFavouriteFilters.response"),
1875
+ );
1876
+ validationSchemaStorage.registerExtensible(
1877
+ "FiltersService.getMyFilters.response",
1878
+ z
1879
+ .object({
1880
+ status: z.literal(200),
1881
+ mediaType: z.literal("application/json"),
1882
+ body: z.array(validationSchemaStorage.lazy("Filter")),
1883
+ })
1884
+ .describe("FiltersService.getMyFilters.response"),
1885
+ );
1886
+ validationSchemaStorage.registerExtensible(
1887
+ "FiltersService.getFiltersPaginated.response",
1888
+ z
1889
+ .object({
1890
+ status: z.literal(200),
1891
+ mediaType: z.literal("application/json"),
1892
+ body: validationSchemaStorage.lazy("PageBeanFilterDetails"),
1893
+ })
1894
+ .describe("FiltersService.getFiltersPaginated.response"),
1895
+ );
1896
+ validationSchemaStorage.registerOnce([
1897
+ registerFiltersValidationSchemas,
1898
+ registerCommonValidationSchemas,
1899
+ ]);
1900
+ }
1901
+ }