@valiantys/atlassian-app 3.2.0-alpha-1

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 (442) hide show
  1. package/README.md +728 -0
  2. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/event-payload-storage-service/index.cjs.js +1 -0
  3. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/event-payload-storage-service/index.es.js +22 -0
  4. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/job-log-queue/index.cjs.js +1 -0
  5. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/job-log-queue/index.es.js +60 -0
  6. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/large-payload-queue-service/index.cjs.js +1 -0
  7. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/large-payload-queue-service/index.es.js +51 -0
  8. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/simple-async-queue-service/index.cjs.js +1 -0
  9. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/simple-async-queue-service/index.es.js +77 -0
  10. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/insert-rows/index.cjs.js +1 -0
  11. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/insert-rows/index.es.js +21 -0
  12. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/upsert-rows/index.cjs.js +1 -0
  13. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/upsert-rows/index.es.js +20 -0
  14. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/util/index.cjs.js +1 -0
  15. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/util/index.es.js +31 -0
  16. package/atlassian/forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.cjs.js +1 -0
  17. package/atlassian/forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.es.js +244 -0
  18. package/atlassian/forge/shared/backend-data-access-product-fetch-forge-api/src/lib/forge-api-product-fetch/index.cjs.js +1 -0
  19. package/atlassian/forge/shared/backend-data-access-product-fetch-forge-api/src/lib/forge-api-product-fetch/index.es.js +31 -0
  20. package/atlassian/forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.cjs.js +1 -0
  21. package/atlassian/forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.es.js +28 -0
  22. package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js +1 -0
  23. package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js +31 -0
  24. package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.cjs.js +1 -0
  25. package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.es.js +107 -0
  26. package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.cjs.js +3 -0
  27. package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.es.js +39 -0
  28. package/atlassian/forge/shared/util-resolver/src/lib/common-resolver-paths/index.cjs.js +1 -0
  29. package/atlassian/forge/shared/util-resolver/src/lib/common-resolver-paths/index.es.js +7 -0
  30. package/atlassian/jira/shared/data-access-assets/src/lib/assets-objects-service/index.cjs.js +1 -0
  31. package/atlassian/jira/shared/data-access-assets/src/lib/assets-objects-service/index.es.js +274 -0
  32. package/atlassian/jira/shared/data-access-assets/src/lib/global-icons/index.cjs.js +1 -0
  33. package/atlassian/jira/shared/data-access-assets/src/lib/global-icons/index.es.js +9 -0
  34. package/atlassian/jira/shared/data-access-assets/src/lib/object/index.cjs.js +1 -0
  35. package/atlassian/jira/shared/data-access-assets/src/lib/object/index.es.js +52 -0
  36. package/atlassian/jira/shared/data-access-assets/src/lib/object-linked-issues/index.cjs.js +1 -0
  37. package/atlassian/jira/shared/data-access-assets/src/lib/object-linked-issues/index.es.js +9 -0
  38. package/atlassian/jira/shared/data-access-assets/src/lib/object-schema/index.cjs.js +1 -0
  39. package/atlassian/jira/shared/data-access-assets/src/lib/object-schema/index.es.js +22 -0
  40. package/atlassian/jira/shared/data-access-assets/src/lib/object-type/index.cjs.js +1 -0
  41. package/atlassian/jira/shared/data-access-assets/src/lib/object-type/index.es.js +23 -0
  42. package/atlassian/jira/shared/data-access-assets/src/lib/object-type-attribute/index.cjs.js +1 -0
  43. package/atlassian/jira/shared/data-access-assets/src/lib/object-type-attribute/index.es.js +19 -0
  44. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -0
  45. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +167 -0
  46. package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.cjs.js +1 -0
  47. package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.es.js +20 -0
  48. package/atlassian/jira/shared/data-access-jql/src/lib/jql-precomputation-service/index.cjs.js +1 -0
  49. package/atlassian/jira/shared/data-access-jql/src/lib/jql-precomputation-service/index.es.js +34 -0
  50. package/atlassian/jira/shared/data-access-project/src/lib/jira-project-service/index.cjs.js +1 -0
  51. package/atlassian/jira/shared/data-access-project/src/lib/jira-project-service/index.es.js +85 -0
  52. package/atlassian/jira/shared/data-access-serverinfo/src/lib/jira-server-info-service/index.cjs.js +1 -0
  53. package/atlassian/jira/shared/data-access-serverinfo/src/lib/jira-server-info-service/index.es.js +21 -0
  54. package/atlassian/jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.cjs.js +1 -0
  55. package/atlassian/jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.es.js +50 -0
  56. package/atlassian/jira/shared/util-assets/src/lib/asset-type/index.cjs.js +1 -0
  57. package/atlassian/jira/shared/util-assets/src/lib/asset-type/index.es.js +4 -0
  58. package/atlassian/jira/shared/util-assets/src/lib/object/index.cjs.js +1 -0
  59. package/atlassian/jira/shared/util-assets/src/lib/object/index.es.js +9 -0
  60. package/atlassian/jira/shared/util-assets/src/lib/object-type-attribute/index.cjs.js +1 -0
  61. package/atlassian/jira/shared/util-assets/src/lib/object-type-attribute/index.es.js +14 -0
  62. package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js +1 -0
  63. package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js +12 -0
  64. package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js +1 -0
  65. package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js +9 -0
  66. package/atlassian/shared/backend-feature-atlassian-app/src/lib/atlassian-app-backend-forge/index.cjs.js +1 -0
  67. package/atlassian/shared/backend-feature-atlassian-app/src/lib/atlassian-app-backend-forge/index.es.js +8 -0
  68. package/atlassian/shared/backend-feature-atlassian-app-express/src/lib/atlassian-app-backend-express/index.cjs.js +1 -0
  69. package/atlassian/shared/backend-feature-atlassian-app-express/src/lib/atlassian-app-backend-express/index.es.js +125 -0
  70. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js +1 -0
  71. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js +127 -0
  72. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js +1 -0
  73. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js +56 -0
  74. package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.cjs.js +1 -0
  75. package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.es.js +44 -0
  76. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app/index.cjs.js +1 -0
  77. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app/index.es.js +41 -0
  78. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.cjs.js +1 -0
  79. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.es.js +59 -0
  80. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -0
  81. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +168 -0
  82. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.cjs.js +1 -0
  83. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.es.js +66 -0
  84. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.cjs.js +1 -0
  85. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.es.js +25 -0
  86. package/atlassian/shared/frontend-feature-chosen-resource-check/src/index/index.cjs.js +1 -0
  87. package/atlassian/shared/frontend-feature-chosen-resource-check/src/index/index.es.js +5 -0
  88. package/atlassian/shared/frontend-feature-chosen-resource-check/src/lib/feature-chosen-resource-check/index.cjs.js +1 -0
  89. package/atlassian/shared/frontend-feature-chosen-resource-check/src/lib/feature-chosen-resource-check/index.es.js +69 -0
  90. package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js +1 -0
  91. package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js +83 -0
  92. package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js +1 -0
  93. package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js +13 -0
  94. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -0
  95. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +65 -0
  96. package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js +1 -0
  97. package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js +51 -0
  98. package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-callback/index.cjs.js +1 -0
  99. package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-callback/index.es.js +28 -0
  100. package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.cjs.js +1 -0
  101. package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.es.js +9 -0
  102. package/atlassian/shared/frontend-feature-oauth-login/src/lib/util/index.cjs.js +1 -0
  103. package/atlassian/shared/frontend-feature-oauth-login/src/lib/util/index.es.js +19 -0
  104. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js +1 -0
  105. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js +9 -0
  106. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.cjs.js +1 -0
  107. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.es.js +35 -0
  108. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js +1 -0
  109. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js +106 -0
  110. package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.cjs.js +1 -0
  111. package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.es.js +8 -0
  112. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js +1 -0
  113. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js +20 -0
  114. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js +1 -0
  115. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js +20 -0
  116. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js +1 -0
  117. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js +18 -0
  118. package/atlassian/shared/frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js +1 -0
  119. package/atlassian/shared/frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js +28 -0
  120. package/atlassian/shared/frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.cjs.js +1 -0
  121. package/atlassian/shared/frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.es.js +16 -0
  122. package/atlassian/shared/frontend-ui-copy-button/src/lib/copy-text-button/index.cjs.js +1 -0
  123. package/atlassian/shared/frontend-ui-copy-button/src/lib/copy-text-button/index.es.js +39 -0
  124. package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.cjs.js +1 -0
  125. package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.es.js +28 -0
  126. package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel-stateless/index.cjs.js +1 -0
  127. package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel-stateless/index.es.js +41 -0
  128. package/atlassian/shared/frontend-ui-expand-panel/src/lib/styled-panel/index.cjs.js +45 -0
  129. package/atlassian/shared/frontend-ui-expand-panel/src/lib/styled-panel/index.es.js +53 -0
  130. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router/index.cjs.js +1 -0
  131. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router/index.es.js +14 -0
  132. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-link/index.cjs.js +1 -0
  133. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-link/index.es.js +31 -0
  134. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js +1 -0
  135. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-provider/index.es.js +18 -0
  136. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js +1 -0
  137. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js +54 -0
  138. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.cjs.js +1 -0
  139. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.es.js +6 -0
  140. package/atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.cjs.js +1 -0
  141. package/atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.es.js +34 -0
  142. package/atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.cjs.js +1 -0
  143. package/atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.es.js +48 -0
  144. package/atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.cjs.js +1 -0
  145. package/atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.es.js +24 -0
  146. package/atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.cjs.js +1 -0
  147. package/atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.es.js +14 -0
  148. package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.cjs.js +1 -0
  149. package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.es.js +38 -0
  150. package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js +1 -0
  151. package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js +20 -0
  152. package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js +1 -0
  153. package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js +19 -0
  154. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js +1 -0
  155. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.es.js +12 -0
  156. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js +1 -0
  157. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js +28 -0
  158. package/atlassian/shared/frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js +1 -0
  159. package/atlassian/shared/frontend-ui-view-context/src/lib/mock-view-context/index.es.js +27 -0
  160. package/atlassian/shared/frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js +1 -0
  161. package/atlassian/shared/frontend-ui-view-context/src/lib/view-context-provider/index.es.js +18 -0
  162. package/atlassian/shared/util-error/src/index/index.cjs.js +1 -0
  163. package/atlassian/shared/util-error/src/index/index.es.js +8 -0
  164. package/atlassian-app.css +1 -0
  165. package/backend-data-access-async-queue/atlassian-app-backend-data-access-async-queue.api.json +2205 -0
  166. package/backend-data-access-async-queue/atlassian-app.api.md +118 -0
  167. package/backend-data-access-async-queue/index.cjs.js +1 -0
  168. package/backend-data-access-async-queue/index.d.ts +121 -0
  169. package/backend-data-access-async-queue/index.es.js +10 -0
  170. package/backend-data-access-async-queue/tsdoc-metadata.json +11 -0
  171. package/backend-data-access-forge-sql/atlassian-app-backend-data-access-forge-sql.api.json +554 -0
  172. package/backend-data-access-forge-sql/atlassian-app.api.md +21 -0
  173. package/backend-data-access-forge-sql/index.cjs.js +1 -0
  174. package/backend-data-access-forge-sql/index.d.ts +18 -0
  175. package/backend-data-access-forge-sql/index.es.js +8 -0
  176. package/backend-data-access-forge-sql/tsdoc-metadata.json +11 -0
  177. package/backend-data-access-forge-storage/atlassian-app-backend-data-access-forge-storage.api.json +772 -0
  178. package/backend-data-access-forge-storage/atlassian-app.api.md +58 -0
  179. package/backend-data-access-forge-storage/index.cjs.js +1 -0
  180. package/backend-data-access-forge-storage/index.d.ts +50 -0
  181. package/backend-data-access-forge-storage/index.es.js +4 -0
  182. package/backend-data-access-forge-storage/tsdoc-metadata.json +11 -0
  183. package/backend-data-access-product-fetch-forge-api/atlassian-app-backend-data-access-product-fetch-forge-api.api.json +266 -0
  184. package/backend-data-access-product-fetch-forge-api/atlassian-app.api.md +15 -0
  185. package/backend-data-access-product-fetch-forge-api/index.cjs.js +1 -0
  186. package/backend-data-access-product-fetch-forge-api/index.d.ts +32 -0
  187. package/backend-data-access-product-fetch-forge-api/index.es.js +4 -0
  188. package/backend-data-access-product-fetch-forge-api/tsdoc-metadata.json +11 -0
  189. package/backend-feature-atlassian-app/atlassian-app-backend-feature-atlassian-app.api.json +458 -0
  190. package/backend-feature-atlassian-app/atlassian-app.api.md +41 -0
  191. package/backend-feature-atlassian-app/index.cjs.js +1 -0
  192. package/backend-feature-atlassian-app/index.d.ts +102 -0
  193. package/backend-feature-atlassian-app/index.es.js +4 -0
  194. package/backend-feature-atlassian-app/tsdoc-metadata.json +11 -0
  195. package/backend-feature-atlassian-app-express/atlassian-app-backend-feature-atlassian-app-express.api.json +682 -0
  196. package/backend-feature-atlassian-app-express/atlassian-app.api.md +51 -0
  197. package/backend-feature-atlassian-app-express/index.cjs.js +1 -0
  198. package/backend-feature-atlassian-app-express/index.d.ts +141 -0
  199. package/backend-feature-atlassian-app-express/index.es.js +9 -0
  200. package/backend-feature-atlassian-app-express/tsdoc-metadata.json +11 -0
  201. package/data-access-assets/atlassian-app-data-access-assets.api.json +2441 -0
  202. package/data-access-assets/atlassian-app.api.md +109 -0
  203. package/data-access-assets/index.cjs.js +1 -0
  204. package/data-access-assets/index.d.ts +316 -0
  205. package/data-access-assets/index.es.js +23 -0
  206. package/data-access-assets/tsdoc-metadata.json +11 -0
  207. package/data-access-atlassian-product-fetch-oauth/atlassian-app-data-access-atlassian-product-fetch-oauth.api.json +1439 -0
  208. package/data-access-atlassian-product-fetch-oauth/atlassian-app.api.md +92 -0
  209. package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -0
  210. package/data-access-atlassian-product-fetch-oauth/index.d.ts +79 -0
  211. package/data-access-atlassian-product-fetch-oauth/index.es.js +14 -0
  212. package/data-access-atlassian-product-fetch-oauth/tsdoc-metadata.json +11 -0
  213. package/data-access-issue/atlassian-app-data-access-issue.api.json +1995 -0
  214. package/data-access-issue/atlassian-app.api.md +111 -0
  215. package/data-access-issue/index.cjs.js +1 -0
  216. package/data-access-issue/index.d.ts +471 -0
  217. package/data-access-issue/index.es.js +6 -0
  218. package/data-access-issue/tsdoc-metadata.json +11 -0
  219. package/data-access-jql/atlassian-app-data-access-jql.api.json +388 -0
  220. package/data-access-jql/atlassian-app.api.md +25 -0
  221. package/data-access-jql/index.cjs.js +1 -0
  222. package/data-access-jql/index.d.ts +62 -0
  223. package/data-access-jql/index.es.js +4 -0
  224. package/data-access-jql/tsdoc-metadata.json +11 -0
  225. package/data-access-project/atlassian-app-data-access-project.api.json +856 -0
  226. package/data-access-project/atlassian-app.api.md +41 -0
  227. package/data-access-project/index.cjs.js +1 -0
  228. package/data-access-project/index.d.ts +114 -0
  229. package/data-access-project/index.es.js +4 -0
  230. package/data-access-project/tsdoc-metadata.json +11 -0
  231. package/data-access-resources/atlassian-app-data-access-resources.api.json +515 -0
  232. package/data-access-resources/atlassian-app.api.md +45 -0
  233. package/data-access-resources/index.cjs.js +1 -0
  234. package/data-access-resources/index.d.ts +27 -0
  235. package/data-access-resources/index.es.js +4 -0
  236. package/data-access-resources/tsdoc-metadata.json +11 -0
  237. package/data-access-serverinfo/atlassian-app-data-access-serverinfo.api.json +366 -0
  238. package/data-access-serverinfo/atlassian-app.api.md +23 -0
  239. package/data-access-serverinfo/index.cjs.js +1 -0
  240. package/data-access-serverinfo/index.d.ts +61 -0
  241. package/data-access-serverinfo/index.es.js +4 -0
  242. package/data-access-serverinfo/tsdoc-metadata.json +11 -0
  243. package/data-access-workspaces/atlassian-app-data-access-workspaces.api.json +406 -0
  244. package/data-access-workspaces/atlassian-app.api.md +32 -0
  245. package/data-access-workspaces/index.cjs.js +1 -0
  246. package/data-access-workspaces/index.d.ts +50 -0
  247. package/data-access-workspaces/index.es.js +4 -0
  248. package/data-access-workspaces/tsdoc-metadata.json +11 -0
  249. package/frontend-app/atlassian-app-frontend-app.api.json +636 -0
  250. package/frontend-app/atlassian-app.api.md +56 -0
  251. package/frontend-app/index.cjs.js +1 -0
  252. package/frontend-app/index.d.ts +109 -0
  253. package/frontend-app/index.es.js +5 -0
  254. package/frontend-app/tsdoc-metadata.json +11 -0
  255. package/frontend-app-custom-ui/atlassian-app-frontend-app-custom-ui.api.json +242 -0
  256. package/frontend-app-custom-ui/atlassian-app.api.md +17 -0
  257. package/frontend-app-custom-ui/index.cjs.js +1 -0
  258. package/frontend-app-custom-ui/index.d.ts +20 -0
  259. package/frontend-app-custom-ui/index.es.js +4 -0
  260. package/frontend-app-custom-ui/tsdoc-metadata.json +11 -0
  261. package/frontend-app-standalone/atlassian-app-frontend-app-standalone.api.json +554 -0
  262. package/frontend-app-standalone/atlassian-app.api.md +46 -0
  263. package/frontend-app-standalone/index.cjs.js +1 -0
  264. package/frontend-app-standalone/index.d.ts +45 -0
  265. package/frontend-app-standalone/index.es.js +4 -0
  266. package/frontend-app-standalone/tsdoc-metadata.json +11 -0
  267. package/frontend-app-test/atlassian-app-frontend-app-test.api.json +514 -0
  268. package/frontend-app-test/atlassian-app.api.md +45 -0
  269. package/frontend-app-test/index.cjs.js +1 -0
  270. package/frontend-app-test/index.d.ts +67 -0
  271. package/frontend-app-test/index.es.js +5 -0
  272. package/frontend-app-test/tsdoc-metadata.json +11 -0
  273. package/frontend-app-ui-kit/atlassian-app-frontend-app-ui-kit.api.json +229 -0
  274. package/frontend-app-ui-kit/atlassian-app.api.md +15 -0
  275. package/frontend-app-ui-kit/index.cjs.js +1 -0
  276. package/frontend-app-ui-kit/index.d.ts +6 -0
  277. package/frontend-app-ui-kit/index.es.js +4 -0
  278. package/frontend-app-ui-kit/tsdoc-metadata.json +11 -0
  279. package/package.json +271 -0
  280. package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.cjs.js +1 -0
  281. package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.es.js +20 -0
  282. package/shared/frontend-ui-drop-target/src/lib/drop-target-box.module.scss/index.cjs.js +1 -0
  283. package/shared/frontend-ui-drop-target/src/lib/drop-target-box.module.scss/index.es.js +6 -0
  284. package/shared/frontend-ui-drop-target/src/lib/drop-utils/index.cjs.js +1 -0
  285. package/shared/frontend-ui-drop-target/src/lib/drop-utils/index.es.js +24 -0
  286. package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.cjs.js +1 -0
  287. package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.es.js +32 -0
  288. package/shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.cjs.js +1 -0
  289. package/shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.es.js +9 -0
  290. package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -0
  291. package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +76 -0
  292. package/ui-app-flags/atlassian-app-ui-app-flags.api.json +587 -0
  293. package/ui-app-flags/atlassian-app.api.md +57 -0
  294. package/ui-app-flags/index.cjs.js +1 -0
  295. package/ui-app-flags/index.d.ts +37 -0
  296. package/ui-app-flags/index.es.js +9 -0
  297. package/ui-app-flags/tsdoc-metadata.json +11 -0
  298. package/ui-async-queue-job-log/atlassian-app-ui-async-queue-job-log.api.json +246 -0
  299. package/ui-async-queue-job-log/atlassian-app.api.md +22 -0
  300. package/ui-async-queue-job-log/index.cjs.js +1 -0
  301. package/ui-async-queue-job-log/index.d.ts +21 -0
  302. package/ui-async-queue-job-log/index.es.js +4 -0
  303. package/ui-async-queue-job-log/tsdoc-metadata.json +11 -0
  304. package/ui-atlaskit-forms/atlassian-app-ui-atlaskit-forms.api.json +341 -0
  305. package/ui-atlaskit-forms/atlassian-app.api.md +19 -0
  306. package/ui-atlaskit-forms/index.cjs.js +1 -0
  307. package/ui-atlaskit-forms/index.d.ts +48 -0
  308. package/ui-atlaskit-forms/index.es.js +4 -0
  309. package/ui-atlaskit-forms/tsdoc-metadata.json +11 -0
  310. package/ui-atlassian-product-fetch/atlassian-app-ui-atlassian-product-fetch.api.json +418 -0
  311. package/ui-atlassian-product-fetch/atlassian-app.api.md +38 -0
  312. package/ui-atlassian-product-fetch/index.cjs.js +1 -0
  313. package/ui-atlassian-product-fetch/index.d.ts +60 -0
  314. package/ui-atlassian-product-fetch/index.es.js +11 -0
  315. package/ui-atlassian-product-fetch/tsdoc-metadata.json +11 -0
  316. package/ui-backend-adapter/atlassian-app-ui-backend-adapter.api.json +402 -0
  317. package/ui-backend-adapter/atlassian-app.api.md +34 -0
  318. package/ui-backend-adapter/index.cjs.js +1 -0
  319. package/ui-backend-adapter/index.d.ts +26 -0
  320. package/ui-backend-adapter/index.es.js +7 -0
  321. package/ui-backend-adapter/tsdoc-metadata.json +11 -0
  322. package/ui-chosen-resource-check/atlassian-app-ui-chosen-resource-check.api.json +388 -0
  323. package/ui-chosen-resource-check/atlassian-app.api.md +35 -0
  324. package/ui-chosen-resource-check/index.cjs.js +1 -0
  325. package/ui-chosen-resource-check/index.d.ts +20 -0
  326. package/ui-chosen-resource-check/index.es.js +4 -0
  327. package/ui-chosen-resource-check/tsdoc-metadata.json +11 -0
  328. package/ui-chosen-workspace-check/atlassian-app-ui-chosen-workspace-check.api.json +362 -0
  329. package/ui-chosen-workspace-check/atlassian-app.api.md +30 -0
  330. package/ui-chosen-workspace-check/index.cjs.js +1 -0
  331. package/ui-chosen-workspace-check/index.d.ts +17 -0
  332. package/ui-chosen-workspace-check/index.es.js +7 -0
  333. package/ui-chosen-workspace-check/tsdoc-metadata.json +11 -0
  334. package/ui-copy-button/atlassian-app-ui-copy-button.api.json +384 -0
  335. package/ui-copy-button/atlassian-app.api.md +30 -0
  336. package/ui-copy-button/index.cjs.js +1 -0
  337. package/ui-copy-button/index.d.ts +15 -0
  338. package/ui-copy-button/index.es.js +4 -0
  339. package/ui-copy-button/tsdoc-metadata.json +11 -0
  340. package/ui-drop-target/atlassian-app-ui-drop-target.api.json +637 -0
  341. package/ui-drop-target/atlassian-app.api.md +50 -0
  342. package/ui-drop-target/index.cjs.js +1 -0
  343. package/ui-drop-target/index.d.ts +39 -0
  344. package/ui-drop-target/index.es.js +7 -0
  345. package/ui-drop-target/tsdoc-metadata.json +11 -0
  346. package/ui-expand-panel/atlassian-app-ui-expand-panel.api.json +252 -0
  347. package/ui-expand-panel/atlassian-app.api.md +23 -0
  348. package/ui-expand-panel/index.cjs.js +1 -0
  349. package/ui-expand-panel/index.d.ts +31 -0
  350. package/ui-expand-panel/index.es.js +6 -0
  351. package/ui-expand-panel/tsdoc-metadata.json +11 -0
  352. package/ui-host-router/atlassian-app-ui-host-router.api.json +827 -0
  353. package/ui-host-router/atlassian-app.api.md +61 -0
  354. package/ui-host-router/index.cjs.js +1 -0
  355. package/ui-host-router/index.d.ts +40 -0
  356. package/ui-host-router/index.es.js +9 -0
  357. package/ui-host-router/tsdoc-metadata.json +11 -0
  358. package/ui-iframe/atlassian-app-ui-iframe.api.json +531 -0
  359. package/ui-iframe/atlassian-app.api.md +43 -0
  360. package/ui-iframe/index.cjs.js +1 -0
  361. package/ui-iframe/index.d.ts +24 -0
  362. package/ui-iframe/index.es.js +4 -0
  363. package/ui-iframe/tsdoc-metadata.json +11 -0
  364. package/ui-load-data-hook/atlassian-app-ui-load-data-hook.api.json +329 -0
  365. package/ui-load-data-hook/atlassian-app.api.md +25 -0
  366. package/ui-load-data-hook/index.cjs.js +1 -0
  367. package/ui-load-data-hook/index.d.ts +38 -0
  368. package/ui-load-data-hook/index.es.js +4 -0
  369. package/ui-load-data-hook/tsdoc-metadata.json +11 -0
  370. package/ui-modal/atlassian-app-ui-modal.api.json +1462 -0
  371. package/ui-modal/atlassian-app.api.md +117 -0
  372. package/ui-modal/index.cjs.js +1 -0
  373. package/ui-modal/index.d.ts +126 -0
  374. package/ui-modal/index.es.js +16 -0
  375. package/ui-modal/tsdoc-metadata.json +11 -0
  376. package/ui-modal-service/atlassian-app-ui-modal-service.api.json +809 -0
  377. package/ui-modal-service/atlassian-app.api.md +59 -0
  378. package/ui-modal-service/index.cjs.js +1 -0
  379. package/ui-modal-service/index.d.ts +41 -0
  380. package/ui-modal-service/index.es.js +7 -0
  381. package/ui-modal-service/tsdoc-metadata.json +11 -0
  382. package/ui-oauth-login/atlassian-app-ui-oauth-login.api.json +809 -0
  383. package/ui-oauth-login/atlassian-app.api.md +67 -0
  384. package/ui-oauth-login/index.cjs.js +1 -0
  385. package/ui-oauth-login/index.d.ts +47 -0
  386. package/ui-oauth-login/index.es.js +9 -0
  387. package/ui-oauth-login/tsdoc-metadata.json +11 -0
  388. package/ui-page-loading-view/atlassian-app-ui-page-loading-view.api.json +242 -0
  389. package/ui-page-loading-view/atlassian-app.api.md +19 -0
  390. package/ui-page-loading-view/index.cjs.js +1 -0
  391. package/ui-page-loading-view/index.d.ts +10 -0
  392. package/ui-page-loading-view/index.es.js +4 -0
  393. package/ui-page-loading-view/tsdoc-metadata.json +11 -0
  394. package/ui-remote-adapter/atlassian-app-ui-remote-adapter.api.json +369 -0
  395. package/ui-remote-adapter/atlassian-app.api.md +33 -0
  396. package/ui-remote-adapter/index.cjs.js +1 -0
  397. package/ui-remote-adapter/index.d.ts +26 -0
  398. package/ui-remote-adapter/index.es.js +7 -0
  399. package/ui-remote-adapter/tsdoc-metadata.json +11 -0
  400. package/ui-view-context/atlassian-app-ui-view-context.api.json +992 -0
  401. package/ui-view-context/atlassian-app.api.md +78 -0
  402. package/ui-view-context/index.cjs.js +1 -0
  403. package/ui-view-context/index.d.ts +62 -0
  404. package/ui-view-context/index.es.js +7 -0
  405. package/ui-view-context/tsdoc-metadata.json +11 -0
  406. package/util-assets/atlassian-app-util-assets.api.json +4726 -0
  407. package/util-assets/atlassian-app.api.md +418 -0
  408. package/util-assets/index.cjs.js +1 -0
  409. package/util-assets/index.d.ts +245 -0
  410. package/util-assets/index.es.js +9 -0
  411. package/util-assets/tsdoc-metadata.json +11 -0
  412. package/util-async-queue/atlassian-app-util-async-queue.api.json +439 -0
  413. package/util-async-queue/atlassian-app.api.md +31 -0
  414. package/util-async-queue/index.cjs.js +1 -0
  415. package/util-async-queue/index.d.ts +13 -0
  416. package/util-async-queue/index.es.js +1 -0
  417. package/util-async-queue/tsdoc-metadata.json +11 -0
  418. package/util-atlassian-product-fetch/atlassian-app-util-atlassian-product-fetch.api.json +1795 -0
  419. package/util-atlassian-product-fetch/atlassian-app.api.md +116 -0
  420. package/util-atlassian-product-fetch/index.cjs.js +1 -0
  421. package/util-atlassian-product-fetch/index.d.ts +70 -0
  422. package/util-atlassian-product-fetch/index.es.js +9 -0
  423. package/util-atlassian-product-fetch/tsdoc-metadata.json +11 -0
  424. package/util-jira-v3-api/atlassian-app-util-jira-v3-api.api.json +7431 -0
  425. package/util-jira-v3-api/atlassian-app.api.md +777 -0
  426. package/util-jira-v3-api/index.cjs.js +1 -0
  427. package/util-jira-v3-api/index.d.ts +510 -0
  428. package/util-jira-v3-api/index.es.js +8 -0
  429. package/util-jira-v3-api/tsdoc-metadata.json +11 -0
  430. package/util-resolver/atlassian-app-util-resolver.api.json +1014 -0
  431. package/util-resolver/atlassian-app.api.md +90 -0
  432. package/util-resolver/index.cjs.js +1 -0
  433. package/util-resolver/index.d.ts +67 -0
  434. package/util-resolver/index.es.js +4 -0
  435. package/util-resolver/tsdoc-metadata.json +11 -0
  436. package/util-trigger/atlassian-app-util-trigger.api.json +792 -0
  437. package/util-trigger/atlassian-app.api.md +84 -0
  438. package/util-trigger/index.cjs.js +1 -0
  439. package/util-trigger/index.d.ts +266 -0
  440. package/util-trigger/index.es.js +1 -0
  441. package/util-trigger/tsdoc-metadata.json +11 -0
  442. package/valiantys-atlassian-app-3.2.0-alpha-1.tgz +0 -0
@@ -0,0 +1,167 @@
1
+ const u = class u {
2
+ constructor(e) {
3
+ this.fetchSvc = e;
4
+ }
5
+ async updateProperty(e, t, s) {
6
+ return this.fetchSvc.fetch(
7
+ {
8
+ method: "PUT",
9
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}/properties/${t}`
10
+ },
11
+ s
12
+ );
13
+ }
14
+ async updateField(e, t, s) {
15
+ await this.updateFields(e, { [t]: s });
16
+ }
17
+ async updateFields(e, t) {
18
+ await this.updateIssue(e, { fields: t });
19
+ }
20
+ async getIssueField(e, t) {
21
+ var s;
22
+ return (s = await this.getIssueFields(e, [t])) == null ? void 0 : s[t];
23
+ }
24
+ async getIssueFields(e, t) {
25
+ return (await this.fetchSvc.fetch({
26
+ method: "GET",
27
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}`
28
+ })).fields;
29
+ }
30
+ async getIssue(e, t = ["*all"], s = !1) {
31
+ return this.fetchSvc.fetch({
32
+ method: "GET",
33
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}&expand=${s ? "renderedFields" : ""}`
34
+ });
35
+ }
36
+ async issueSearch(e, t, s = 50) {
37
+ let c;
38
+ const r = [];
39
+ do {
40
+ const i = await this.issueSearchByPage(e, t, c, s);
41
+ r.push(...i.issues), c = i.nextPageToken;
42
+ } while (c !== void 0);
43
+ return r;
44
+ }
45
+ async issueSearchByPage(e, t, s, c = 50) {
46
+ return this.fetchSvc.fetch(
47
+ {
48
+ method: "POST",
49
+ url: this.fetchSvc.route`/rest/api/3/search/jql`
50
+ },
51
+ {
52
+ fields: t,
53
+ jql: e,
54
+ maxResults: c,
55
+ nextPageToken: s
56
+ }
57
+ );
58
+ }
59
+ async addWorklog(e, t) {
60
+ return this.fetchSvc.fetch(
61
+ {
62
+ method: "POST",
63
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}/worklog`
64
+ },
65
+ t
66
+ );
67
+ }
68
+ async queryForIssuesInProjects(e) {
69
+ const t = `project IN (${e.join(",")})`;
70
+ return this.issueSearch(t, ["key", "project"], 5e3);
71
+ }
72
+ async createIssue(e) {
73
+ return this.fetchSvc.fetch(
74
+ {
75
+ method: "POST",
76
+ url: this.fetchSvc.route`/rest/api/3/issue`
77
+ },
78
+ e
79
+ );
80
+ }
81
+ async updateIssue(e, t) {
82
+ return this.fetchSvc.fetch(
83
+ {
84
+ method: "PUT",
85
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}`
86
+ },
87
+ t
88
+ );
89
+ }
90
+ async getIssueComments(e, t = 0) {
91
+ const s = t ? `?startAt=${t}` : "";
92
+ return this.fetchSvc.fetch({
93
+ method: "GET",
94
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}/comment${s}`
95
+ });
96
+ }
97
+ async getIssueCommentById(e, t) {
98
+ return this.fetchSvc.fetch({
99
+ method: "GET",
100
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}/comment/${t}`
101
+ });
102
+ }
103
+ async addIssueComment(e, t) {
104
+ return this.fetchSvc.fetch(
105
+ {
106
+ method: "POST",
107
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}/comment`
108
+ },
109
+ { body: t }
110
+ );
111
+ }
112
+ // https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post
113
+ async transitionIssue(e, t) {
114
+ return this.fetchSvc.fetch(
115
+ {
116
+ method: "POST",
117
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}/transitions`
118
+ },
119
+ t
120
+ );
121
+ }
122
+ async createIssueLink(e) {
123
+ return this.fetchSvc.fetch(
124
+ {
125
+ method: "POST",
126
+ url: this.fetchSvc.route`/rest/api/3/issueLink`
127
+ },
128
+ e
129
+ );
130
+ }
131
+ async getIssueTypes() {
132
+ return this.fetchSvc.fetch({
133
+ method: "GET",
134
+ url: this.fetchSvc.route`/rest/api/3/issuetype`
135
+ });
136
+ }
137
+ async getIssueTypeSchemes({
138
+ maxResults: e,
139
+ orderBy: t,
140
+ startAt: s,
141
+ expand: c,
142
+ id: r,
143
+ queryString: i
144
+ } = {}) {
145
+ const h = new URLSearchParams();
146
+ return c && h.append("expand", c), e && h.append("maxResults", e.toString()), t && h.append("orderBy", t), s && h.append("startAt", s.toString()), r && r.forEach((n) => h.append("id", n)), i && h.append("queryString", i), this.fetchSvc.fetch({
147
+ method: "GET",
148
+ url: this.fetchSvc.route`/rest/api/3/issuetypescheme?${h}`
149
+ });
150
+ }
151
+ async getIssueTypeSchemesForProject({
152
+ maxResults: e,
153
+ startAt: t,
154
+ projectId: s
155
+ } = {}) {
156
+ const c = new URLSearchParams();
157
+ return e && c.append("maxResults", e.toString()), t && c.append("startAt", t.toString()), s && s.forEach((r) => c.append("projectId", r)), this.fetchSvc.fetch({
158
+ method: "GET",
159
+ url: this.fetchSvc.route`/rest/api/3/issuetypescheme/project?${c}`
160
+ });
161
+ }
162
+ };
163
+ u.issueUrl = "/rest/api/3/issue";
164
+ let a = u;
165
+ export {
166
+ a as JiraIssueService
167
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class r{constructor(e){this.fetchSvc=e}getRemoteLinksForIssue(e){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/remotelink`})}deleteRemoteLinkForIssueById(e,t){return this.fetchSvc.fetch({method:"DELETE",url:this.fetchSvc.route`/rest/api/3/issue/${e}/remotelink/${t}`})}}exports.JiraRemoteLinksService=r;
@@ -0,0 +1,20 @@
1
+ class r {
2
+ constructor(e) {
3
+ this.fetchSvc = e;
4
+ }
5
+ getRemoteLinksForIssue(e) {
6
+ return this.fetchSvc.fetch({
7
+ method: "GET",
8
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}/remotelink`
9
+ });
10
+ }
11
+ deleteRemoteLinkForIssueById(e, t) {
12
+ return this.fetchSvc.fetch({
13
+ method: "DELETE",
14
+ url: this.fetchSvc.route`/rest/api/3/issue/${e}/remotelink/${t}`
15
+ });
16
+ }
17
+ }
18
+ export {
19
+ r as JiraRemoteLinksService
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=class s{constructor(t){this.fetchSvc=t}async getPrecomputations(t){var c;const e=await((c=this.fetchSvc)==null?void 0:c.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/jql/function/computation`,responseType:"json"}));return console.log("response?",e),e.values.filter(n=>n.functionKey.endsWith(t))}async updatePrecomputations(t){var e;return(e=this.fetchSvc)==null?void 0:e.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/jql/function/computation`},{values:t})}};s.url="/rest/api/3/jql/function/computation";let o=s;exports.JqlPrecomputationService=o;
@@ -0,0 +1,34 @@
1
+ const e = class e {
2
+ /**
3
+ * @param fetchSvc Must be using asApp. asUser is NOT allowed on this API
4
+ */
5
+ constructor(t) {
6
+ this.fetchSvc = t;
7
+ }
8
+ async getPrecomputations(t) {
9
+ var c;
10
+ const s = await ((c = this.fetchSvc) == null ? void 0 : c.fetch({
11
+ method: "GET",
12
+ url: this.fetchSvc.route`/rest/api/3/jql/function/computation`,
13
+ responseType: "json"
14
+ }));
15
+ return console.log("response?", s), s.values.filter(
16
+ (n) => n.functionKey.endsWith(t)
17
+ );
18
+ }
19
+ async updatePrecomputations(t) {
20
+ var s;
21
+ return (s = this.fetchSvc) == null ? void 0 : s.fetch(
22
+ {
23
+ method: "POST",
24
+ url: this.fetchSvc.route`/rest/api/3/jql/function/computation`
25
+ },
26
+ { values: t }
27
+ );
28
+ }
29
+ };
30
+ e.url = "/rest/api/3/jql/function/computation";
31
+ let o = e;
32
+ export {
33
+ o as JqlPrecomputationService
34
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js"),h=class h{constructor(t){this.fetchSvc=t}getVersions(t){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/project/${t}/versions`})}getProject(t){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/project/${t}`})}async getAllProjects(){return await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/project`})||[]}async projectSearchByIds(t){var e;if(t.length>50)throw new Error("Too many project ids, max allowed is 50.");const r=this.fetchSvc.route`/rest/api/3/project/search?${t.map(c=>"id="+c).join("&")}`;return(e=await this.fetchSvc.fetch({method:"GET",url:r}))==null?void 0:e.values}async projectSearchByKeys(t){var e;if(t.length>50)throw new Error("Too many project keys, max allowed is 50.");const r=this.fetchSvc.route`/rest/api/3/project/search?${t.map(c=>"key="+c).join("&")}`;return(e=await this.fetchSvc.fetch({method:"GET",url:r}))==null?void 0:e.values}async getProjectIssueTypes(t){return await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issuetype/project?projectId=${t}`})||[]}getProjectStatuses(t){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/project/${t}/statuses`})}async getProjectProperty(t,r){try{return(await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/project/${t}/properties/${r}`})).value}catch(e){if(e instanceof o.FetchError&&e.statusCode===404)return;throw e}}setProjectProperty(t,r,e){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/project/${t}/properties/${r}`},e)}};h.projectUrl="/rest/api/3/project";let s=h;exports.JiraProjectService=s;
@@ -0,0 +1,85 @@
1
+ import { FetchError as o } from "../../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
2
+ const s = class s {
3
+ constructor(t) {
4
+ this.fetchSvc = t;
5
+ }
6
+ getVersions(t) {
7
+ return this.fetchSvc.fetch({
8
+ method: "GET",
9
+ url: this.fetchSvc.route`/rest/api/3/project/${t}/versions`
10
+ });
11
+ }
12
+ getProject(t) {
13
+ return this.fetchSvc.fetch({
14
+ method: "GET",
15
+ url: this.fetchSvc.route`/rest/api/3/project/${t}`
16
+ });
17
+ }
18
+ /**
19
+ * @deprecated Use projectSearchByIds instead.
20
+ */
21
+ async getAllProjects() {
22
+ return await this.fetchSvc.fetch({
23
+ method: "GET",
24
+ url: this.fetchSvc.route`/rest/api/3/project`
25
+ }) || [];
26
+ }
27
+ async projectSearchByIds(t) {
28
+ var e;
29
+ if (t.length > 50)
30
+ throw new Error("Too many project ids, max allowed is 50.");
31
+ const r = this.fetchSvc.route`/rest/api/3/project/search?${t.map((c) => "id=" + c).join("&")}`;
32
+ return (e = await this.fetchSvc.fetch({
33
+ method: "GET",
34
+ url: r
35
+ })) == null ? void 0 : e.values;
36
+ }
37
+ async projectSearchByKeys(t) {
38
+ var e;
39
+ if (t.length > 50)
40
+ throw new Error("Too many project keys, max allowed is 50.");
41
+ const r = this.fetchSvc.route`/rest/api/3/project/search?${t.map((c) => "key=" + c).join("&")}`;
42
+ return (e = await this.fetchSvc.fetch({
43
+ method: "GET",
44
+ url: r
45
+ })) == null ? void 0 : e.values;
46
+ }
47
+ async getProjectIssueTypes(t) {
48
+ return await this.fetchSvc.fetch({
49
+ method: "GET",
50
+ url: this.fetchSvc.route`/rest/api/3/issuetype/project?projectId=${t}`
51
+ }) || [];
52
+ }
53
+ getProjectStatuses(t) {
54
+ return this.fetchSvc.fetch({
55
+ method: "GET",
56
+ url: this.fetchSvc.route`/rest/api/3/project/${t}/statuses`
57
+ });
58
+ }
59
+ async getProjectProperty(t, r) {
60
+ try {
61
+ return (await this.fetchSvc.fetch({
62
+ method: "GET",
63
+ url: this.fetchSvc.route`/rest/api/3/project/${t}/properties/${r}`
64
+ })).value;
65
+ } catch (e) {
66
+ if (e instanceof o && e.statusCode === 404)
67
+ return;
68
+ throw e;
69
+ }
70
+ }
71
+ setProjectProperty(t, r, e) {
72
+ return this.fetchSvc.fetch(
73
+ {
74
+ method: "PUT",
75
+ url: this.fetchSvc.route`/rest/api/3/project/${t}/properties/${r}`
76
+ },
77
+ e
78
+ );
79
+ }
80
+ };
81
+ s.projectUrl = "/rest/api/3/project";
82
+ let h = s;
83
+ export {
84
+ h as JiraProjectService
85
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../util-jira-v3-api/src/lib/jira-server-info/index.cjs.js"),r=class r{constructor(t){this.fetchSvc=t}async getServerInfo(){return this.fetchSvc.fetch({url:this.fetchSvc.route`/rest/api/3/serverInfo`,method:"GET"})}async switchAtlassianApiUrlToUseSiteUrl(t){const s=(await this.getServerInfo()).baseUrl;return i.switchAtlassianApiUrlToUseSiteUrl(s,t)}};r.serverInfoUrl="/rest/api/3/serverInfo";let e=r;exports.JiraServerInfoService=e;
@@ -0,0 +1,21 @@
1
+ import { switchAtlassianApiUrlToUseSiteUrl as i } from "../../../../util-jira-v3-api/src/lib/jira-server-info/index.es.js";
2
+ const s = class s {
3
+ constructor(t) {
4
+ this.fetchSvc = t;
5
+ }
6
+ async getServerInfo() {
7
+ return this.fetchSvc.fetch({
8
+ url: this.fetchSvc.route`/rest/api/3/serverInfo`,
9
+ method: "GET"
10
+ });
11
+ }
12
+ async switchAtlassianApiUrlToUseSiteUrl(t) {
13
+ const r = (await this.getServerInfo()).baseUrl;
14
+ return i(r, t);
15
+ }
16
+ };
17
+ s.serverInfoUrl = "/rest/api/3/serverInfo";
18
+ let e = s;
19
+ export {
20
+ e as JiraServerInfoService
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../../../shared/util-error/src/index/index.cjs.js");class o{constructor(s){this.fetchSvc=s,this.workspaceApiUrl="/rest/servicedeskapi/assets/workspace"}async getAllUserWorkspaces(){const s=[];let e=!0;const t=50;let r=0;for(;e;){const a=await this.fetchSvc.fetch({url:this.fetchSvc.route`/rest/servicedeskapi/assets/workspace?start=${r}&limit=${t}`,method:"GET"});s.push(...a.values),r+=t,a.isLastPage&&(e=!1)}return s}async checkUserChosenWorkspace(s){const e=await this.getAllUserWorkspaces();if(e.length>1){if(s){const t=e.find(r=>r.workspaceId===s);if(t)return{hasChosen:!0,workspace:t.workspaceId}}return{hasChosen:!1,workspaces:e}}else{if(e.length===1)return{hasChosen:!0,workspace:e[0].workspaceId};throw new c.AtlassianBadRequest("Provided token does not have permissions for any workspaces")}}}exports.AtlassianUserWorkspaceService=o;
@@ -0,0 +1,50 @@
1
+ import { AtlassianBadRequest as c } from "../../../../../../shared/util-error/src/index/index.es.js";
2
+ class n {
3
+ constructor(e) {
4
+ this.fetchSvc = e, this.workspaceApiUrl = "/rest/servicedeskapi/assets/workspace";
5
+ }
6
+ async getAllUserWorkspaces() {
7
+ const e = [];
8
+ let s = !0;
9
+ const t = 50;
10
+ let r = 0;
11
+ for (; s; ) {
12
+ const a = await this.fetchSvc.fetch(
13
+ {
14
+ url: this.fetchSvc.route`/rest/servicedeskapi/assets/workspace?start=${r}&limit=${t}`,
15
+ method: "GET"
16
+ }
17
+ );
18
+ e.push(...a.values), r += t, a.isLastPage && (s = !1);
19
+ }
20
+ return e;
21
+ }
22
+ async checkUserChosenWorkspace(e) {
23
+ const s = await this.getAllUserWorkspaces();
24
+ if (s.length > 1) {
25
+ if (e) {
26
+ const t = s.find(
27
+ (r) => r.workspaceId === e
28
+ );
29
+ if (t)
30
+ return {
31
+ hasChosen: !0,
32
+ workspace: t.workspaceId
33
+ };
34
+ }
35
+ return {
36
+ hasChosen: !1,
37
+ workspaces: s
38
+ };
39
+ } else {
40
+ if (s.length === 1)
41
+ return { hasChosen: !0, workspace: s[0].workspaceId };
42
+ throw new c(
43
+ "Provided token does not have permissions for any workspaces"
44
+ );
45
+ }
46
+ }
47
+ }
48
+ export {
49
+ n as AtlassianUserWorkspaceService
50
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="Name";exports.DEFAULT_ASSET_OBJECT_TYPE_LABEL_FIELD_NAME=E;
@@ -0,0 +1,4 @@
1
+ const E = "Name";
2
+ export {
3
+ E as DEFAULT_ASSET_OBJECT_TYPE_LABEL_FIELD_NAME
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t,e){return{objectTypeAttributeId:t,objectAttributeValues:[{value:e}]}}exports.createAssetsObjectAttributeIn=r;
@@ -0,0 +1,9 @@
1
+ function r(t, e) {
2
+ return {
3
+ objectTypeAttributeId: t,
4
+ objectAttributeValues: [{ value: e }]
5
+ };
6
+ }
7
+ export {
8
+ r as createAssetsObjectAttributeIn
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=(n=>(n[n.None=-1]="None",n[n.Text=0]="Text",n[n.Integer=1]="Integer",n[n.Boolean=2]="Boolean",n[n.Double=3]="Double",n[n.Date=4]="Date",n[n.Time=5]="Time",n[n.DateTime=6]="DateTime",n[n.Url=7]="Url",n[n.Email=8]="Email",n[n.Textarea=9]="Textarea",n[n.Select=10]="Select",n[n.IP_Address=11]="IP_Address",n))(o||{});function m(n){switch(n){case"string":return 0;case"number":return 1}return 0}exports.AssetsObjectTypeAttributeValueType=o;exports.convertDataSourceType=m;
@@ -0,0 +1,14 @@
1
+ var o = /* @__PURE__ */ ((n) => (n[n.None = -1] = "None", n[n.Text = 0] = "Text", n[n.Integer = 1] = "Integer", n[n.Boolean = 2] = "Boolean", n[n.Double = 3] = "Double", n[n.Date = 4] = "Date", n[n.Time = 5] = "Time", n[n.DateTime = 6] = "DateTime", n[n.Url = 7] = "Url", n[n.Email = 8] = "Email", n[n.Textarea = 9] = "Textarea", n[n.Select = 10] = "Select", n[n.IP_Address = 11] = "IP_Address", n))(o || {});
2
+ function m(n) {
3
+ switch (n) {
4
+ case "string":
5
+ return 0;
6
+ case "number":
7
+ return 1;
8
+ }
9
+ return 0;
10
+ }
11
+ export {
12
+ o as AssetsObjectTypeAttributeValueType,
13
+ m as convertDataSourceType
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a="fixVersions";function e(t){return t.type==="paragraph"}function o(t){return t.type==="text"}exports.FIX_VERSIONS_FIELD=a;exports.isAtlassianDocumentFormatParagraphNode=e;exports.isAtlassianDocumentFormatTextNode=o;
@@ -0,0 +1,12 @@
1
+ const a = "fixVersions";
2
+ function e(t) {
3
+ return t.type === "paragraph";
4
+ }
5
+ function n(t) {
6
+ return t.type === "text";
7
+ }
8
+ export {
9
+ a as FIX_VERSIONS_FIELD,
10
+ e as isAtlassianDocumentFormatParagraphNode,
11
+ n as isAtlassianDocumentFormatTextNode
12
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(e,t){const i=t.substring(t.indexOf("/rest/api/"));return e+i}exports.switchAtlassianApiUrlToUseSiteUrl=s;
@@ -0,0 +1,9 @@
1
+ function n(e, t) {
2
+ const i = t.substring(
3
+ t.indexOf("/rest/api/")
4
+ );
5
+ return e + i;
6
+ }
7
+ export {
8
+ n as switchAtlassianApiUrlToUseSiteUrl
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e,t){Object.entries(t).forEach(([n,i])=>{e.define(n,i.function)})}exports.registerFunctions=r;
@@ -0,0 +1,8 @@
1
+ function c(e, n) {
2
+ Object.entries(n).forEach(([t, i]) => {
3
+ e.define(t, i.function);
4
+ });
5
+ }
6
+ export {
7
+ c as registerFunctions
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("cors"),p=require("express"),A=require("../../../../../forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.cjs.js"),E=require("../../../../../forge/shared/util-resolver/src/lib/common-resolver-paths/index.cjs.js"),d=require("../../../../data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js"),F=require("../../../../util-error/src/index/index.cjs.js"),y=require("fs"),_=require("https"),g={port:3e3,prefix:"api",corsOptions:{origin:["http://localhost:4201","http://localhost:4200"]}},f={indexFieldMapping:{},filePath:""};function j(s,c,n,t=g,o=f,e,i){const a=p();a.use(w(t.corsOptions)),a.use(p.json()),m(a,t.prefix,n),P(a,t.prefix,s,c,o),i&&i(a),e!=null&&e.key&&(e!=null&&e.cert)?_.createServer(e,a).listen(t.port,()=>{console.log(`Application is listening at https://localhost:${t.port}`)}):a.listen(t.port,()=>{console.log(`Application is listening at http://localhost:${t.port}`)})}function P(s,c,n,t,o=f){let e={secrets:{},keyValues:{},entityCollections:{}};try{o.filePath&&(e=JSON.parse(y.readFileSync(o.filePath,{encoding:"utf8"})))}catch{console.warn(`Was not able to load a storage file at ${o.filePath}. Continuing with empty storage.`)}const i=new A.ForgeStorageServiceStandalone(o.indexFieldMapping,e);s.post(S(c,":functionPath"),async(l,u)=>{try{const r=l.header("authorization");if(!r){u.status(401).json({message:"No authorization header in request."});return}const v=l.params.functionPath,x={context:{accountId:(await d.getAtlassianUserDetails(r)).account_id},payload:l.body},h=n(await d.getFetch(t,r,l.header("resource-id")),i)[v],T=await h.function(x);h.updatesForgeStorage&&a(),u.json(T)}catch(r){console.error(r),r instanceof F.AtlassianBadRequest?u.status(400).json(r):u.status(500).json(r)}});function a(){o.filePath&&y.writeFileSync(o.filePath,i.writeOut(),{encoding:"utf8"})}}function m(s,c,n){if(!n.clientId||!n.clientSecret){console.error("No `ATLASSIAN_OAUTH_CLIENT_ID` or `ATLASSIAN_OAUTH_CLIENT_SECRET` provided in environment");return}s.post(S(c,E.CommonResolverPaths.getOauthToken),async(t,o)=>{try{const{code:e,redirect_uri:i}=t.body;o.json(await d.getAtlassianOAuthToken("authorization_code",n.clientId,n.clientSecret,e,i))}catch(e){console.error(e),o.status(500).json(e)}})}function S(s,c){return`/${s}/${c}`}exports.bootstrapExpress=j;exports.defineResolverFunctionExpressJsHandlers=P;exports.defineStandaloneSpecificExpressJsHandlers=m;exports.expressDefaults=g;exports.forgeStorageDefaults=f;exports.makePath=S;
@@ -0,0 +1,125 @@
1
+ import w from "cors";
2
+ import d from "express";
3
+ import { ForgeStorageServiceStandalone as A } from "../../../../../forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.es.js";
4
+ import { CommonResolverPaths as T } from "../../../../../forge/shared/util-resolver/src/lib/common-resolver-paths/index.es.js";
5
+ import { getAtlassianUserDetails as _, getFetch as g, getAtlassianOAuthToken as F } from "../../../../data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js";
6
+ import { AtlassianBadRequest as I } from "../../../../util-error/src/index/index.es.js";
7
+ import p from "fs";
8
+ import j from "https";
9
+ const v = {
10
+ port: 3e3,
11
+ prefix: "api",
12
+ corsOptions: { origin: ["http://localhost:4201", "http://localhost:4200"] }
13
+ }, m = {
14
+ indexFieldMapping: {},
15
+ filePath: ""
16
+ };
17
+ function J(i, c, n, t = v, o = m, e, s) {
18
+ const a = d();
19
+ a.use(w(t.corsOptions)), a.use(d.json()), E(
20
+ a,
21
+ t.prefix,
22
+ n
23
+ ), x(
24
+ a,
25
+ t.prefix,
26
+ i,
27
+ c,
28
+ o
29
+ ), s && s(a), e != null && e.key && (e != null && e.cert) ? j.createServer(e, a).listen(t.port, () => {
30
+ console.log(
31
+ `Application is listening at https://localhost:${t.port}`
32
+ );
33
+ }) : a.listen(t.port, () => {
34
+ console.log(
35
+ `Application is listening at http://localhost:${t.port}`
36
+ );
37
+ });
38
+ }
39
+ function x(i, c, n, t, o = m) {
40
+ let e = {
41
+ secrets: {},
42
+ keyValues: {},
43
+ entityCollections: {}
44
+ };
45
+ try {
46
+ o.filePath && (e = JSON.parse(
47
+ p.readFileSync(o.filePath, { encoding: "utf8" })
48
+ ));
49
+ } catch {
50
+ console.warn(
51
+ `Was not able to load a storage file at ${o.filePath}. Continuing with empty storage.`
52
+ );
53
+ }
54
+ const s = new A(
55
+ o.indexFieldMapping,
56
+ e
57
+ );
58
+ i.post(
59
+ h(c, ":functionPath"),
60
+ async (l, u) => {
61
+ try {
62
+ const r = l.header("authorization");
63
+ if (!r) {
64
+ u.status(401).json({ message: "No authorization header in request." });
65
+ return;
66
+ }
67
+ const S = l.params.functionPath, y = {
68
+ context: {
69
+ accountId: (await _(r)).account_id
70
+ },
71
+ payload: l.body
72
+ }, f = n(
73
+ await g(t, r, l.header("resource-id")),
74
+ s
75
+ )[S], P = await f.function(y);
76
+ f.updatesForgeStorage && a(), u.json(P);
77
+ } catch (r) {
78
+ console.error(r), r instanceof I ? u.status(400).json(r) : u.status(500).json(r);
79
+ }
80
+ }
81
+ );
82
+ function a() {
83
+ o.filePath && p.writeFileSync(o.filePath, s.writeOut(), {
84
+ encoding: "utf8"
85
+ });
86
+ }
87
+ }
88
+ function E(i, c, n) {
89
+ if (!n.clientId || !n.clientSecret) {
90
+ console.error(
91
+ "No `ATLASSIAN_OAUTH_CLIENT_ID` or `ATLASSIAN_OAUTH_CLIENT_SECRET` provided in environment"
92
+ );
93
+ return;
94
+ }
95
+ i.post(
96
+ h(c, T.getOauthToken),
97
+ async (t, o) => {
98
+ try {
99
+ const { code: e, redirect_uri: s } = t.body;
100
+ o.json(
101
+ await F(
102
+ "authorization_code",
103
+ n.clientId,
104
+ n.clientSecret,
105
+ e,
106
+ s
107
+ )
108
+ );
109
+ } catch (e) {
110
+ console.error(e), o.status(500).json(e);
111
+ }
112
+ }
113
+ );
114
+ }
115
+ function h(i, c) {
116
+ return `/${i}/${c}`;
117
+ }
118
+ export {
119
+ J as bootstrapExpress,
120
+ x as defineResolverFunctionExpressJsHandlers,
121
+ E as defineStandaloneSpecificExpressJsHandlers,
122
+ v as expressDefaults,
123
+ m as forgeStorageDefaults,
124
+ h as makePath
125
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js"),F=require("../../../../util-error/src/index/index.cjs.js"),u=require("../route/index.cjs.js");function c(t,e){if(e){const a=t.startsWith("/")?t.slice(1):t;return`${e}/${a}`}else return t}function i(t,e,a){return{productType:a,fetch:({url:n,method:r,responseType:f="json",allowExperimental:A=!1},p)=>s.bearerAuthFetch(t,c(n.value,e),r,p,f,{"X-ExperimentalApi":A?"opt-in":""}),route:u.route,rawFetch:(n,r)=>s.bearerAuthFetchRaw(t,c(n.value,e),r),fullUrl:n=>c(n,e)}}function h(t,e){return i(t,`https://api.atlassian.com/ex/jira/${e}`,"jira")}function O(t){return{productType:"jira",fetch:(e,a)=>{const n={request:e,body:a};return s.jsonFetch(t,"POST",void 0,n,"json","include")},route:u.routeNoEscaping,rawFetch:(e,a)=>{throw new Error("Not implemented")},fullUrl:e=>t}}function o(t,e){return i(t,`https://api.atlassian.com/ex/confluence/${e}`,"confluence")}function l(t){return i(t,"https://api.bitbucket.org","bitbucket")}async function b(t){return s.bearerAuthFetch(t,"https://api.atlassian.com/me","GET")}async function g(t,e,a,n,r){return s.jsonFetch("https://auth.atlassian.com/oauth/token","POST",void 0,{grant_type:t,client_id:e,client_secret:a,code:n,redirect_uri:r})}async function d(t,e,a){if(a)switch(t){case"confluence":return o(e,a);case"bitbucket":return l(e);case"jira":default:return h(e,a)}else throw new F.AtlassianBadRequest("resource-id header is missing")}exports.atlassianOAuthBitbucketFetch=l;exports.atlassianOAuthConfluenceFetch=o;exports.atlassianOAuthJiraFetch=h;exports.atlassianOAuthJiraFetchViaProxy=O;exports.atlassianOAuthRawFetch=i;exports.getAtlassianOAuthToken=g;exports.getAtlassianUserDetails=b;exports.getFetch=d;