@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 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@forge/kvs");class r{constructor(e){this.storageKeyPrefix=e}makeStorageKey(e){return this.storageKeyPrefix+e}async getPayload(e){return await t.kvs.get(this.makeStorageKey(e))}async setPayload(e){const a=crypto.randomUUID();return await t.kvs.set(this.makeStorageKey(a),e),a}async deletePayload(e){await t.kvs.delete(this.makeStorageKey(e))}}exports.EventPayloadStorageService=r;
@@ -0,0 +1,22 @@
1
+ import { kvs as t } from "@forge/kvs";
2
+ class s {
3
+ constructor(e) {
4
+ this.storageKeyPrefix = e;
5
+ }
6
+ makeStorageKey(e) {
7
+ return this.storageKeyPrefix + e;
8
+ }
9
+ async getPayload(e) {
10
+ return await t.get(this.makeStorageKey(e));
11
+ }
12
+ async setPayload(e) {
13
+ const a = crypto.randomUUID();
14
+ return await t.set(this.makeStorageKey(a), e), a;
15
+ }
16
+ async deletePayload(e) {
17
+ await t.delete(this.makeStorageKey(e));
18
+ }
19
+ }
20
+ export {
21
+ s as EventPayloadStorageService
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@forge/events"),g=require("@forge/kvs");class a{constructor(s,t,e){this.logQueueName=s,this.logStorageKey=t,this.maxLogEntries=e}getLogQueue(){return new u.Queue({key:this.logQueueName})}async getJobLogWithProgressUpdates(s){const t=await this.getJobLog();return t.length?await Promise.all(t.map(async e=>{if(e.isMultiStep)return e;if(e.success||e.failed)return{...e,inProgress:!1};try{const o=await s.getJob(e.jobId).getStats();return{...e,success:!!o.success,failed:!!o.failed,inProgress:!!o.inProgress}}catch{return e}})):[]}async getJobLog(){return await g.kvs.get(this.logStorageKey)??[]}async enqueueJobLogUpdate(s){return await this.getLogQueue().push({body:s,concurrency:{key:this.logQueueName,limit:1}})}getJobLogQueueConsumer(){return async s=>{const t=s.body,e=await this.getJobLog(),o=e.find(i=>i.jobId===t.jobId),r=[o?{...o,...t,time:(o.time??0)+(t.time??0)}:t,...e.filter(i=>i.jobId!==t.jobId)].slice(0,this.maxLogEntries);await g.kvs.set(this.logStorageKey,r)}}}exports.JobLogService=a;
@@ -0,0 +1,60 @@
1
+ import { Queue as a } from "@forge/events";
2
+ import { kvs as g } from "@forge/kvs";
3
+ class l {
4
+ constructor(o, t, e) {
5
+ this.logQueueName = o, this.logStorageKey = t, this.maxLogEntries = e;
6
+ }
7
+ getLogQueue() {
8
+ return new a({ key: this.logQueueName });
9
+ }
10
+ async getJobLogWithProgressUpdates(o) {
11
+ const t = await this.getJobLog();
12
+ return t.length ? await Promise.all(
13
+ t.map(async (e) => {
14
+ if (e.isMultiStep)
15
+ return e;
16
+ if (e.success || e.failed)
17
+ return { ...e, inProgress: !1 };
18
+ try {
19
+ const s = await o.getJob(e.jobId).getStats();
20
+ return {
21
+ ...e,
22
+ success: !!s.success,
23
+ failed: !!s.failed,
24
+ inProgress: !!s.inProgress
25
+ };
26
+ } catch {
27
+ return e;
28
+ }
29
+ })
30
+ ) : [];
31
+ }
32
+ async getJobLog() {
33
+ return await g.get(this.logStorageKey) ?? [];
34
+ }
35
+ async enqueueJobLogUpdate(o) {
36
+ return await this.getLogQueue().push({
37
+ body: o,
38
+ concurrency: {
39
+ key: this.logQueueName,
40
+ limit: 1
41
+ }
42
+ });
43
+ }
44
+ getJobLogQueueConsumer() {
45
+ return async (o) => {
46
+ const t = o.body, e = await this.getJobLog(), s = e.find((i) => i.jobId === t.jobId), r = [
47
+ s ? {
48
+ ...s,
49
+ ...t,
50
+ time: (s.time ?? 0) + (t.time ?? 0)
51
+ } : t,
52
+ ...e.filter((i) => i.jobId !== t.jobId)
53
+ ].slice(0, this.maxLogEntries);
54
+ await g.set(this.logStorageKey, r);
55
+ };
56
+ }
57
+ }
58
+ export {
59
+ l as JobLogService
60
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../event-payload-storage-service/index.cjs.js"),l=require("../simple-async-queue-service/index.cjs.js");class c{constructor(u,e,i,t,r=u){this.simpleQueueService=new l.SimpleAsyncQueueService(u,e,i,t),this.eventPayloadService=new n.EventPayloadStorageService(r)}getQueueConsumer(u){return this.simpleQueueService.getQueueConsumer(async(e,i)=>{const t=e!=null&&e.uuid?await this.eventPayloadService.getPayload(e.uuid):void 0;let r,s=!1;try{r=await u(t,i),s=!0}finally{s&&(e!=null&&e.uuid)&&await this.eventPayloadService.deletePayload(e.uuid)}return r})}getJobLog(){return this.simpleQueueService.getJobLog()}getJobLogQueueConsumer(){return this.simpleQueueService.getJobLogQueueConsumer()}async enqueueEvent(u,e,i){const t=await this.eventPayloadService.setPayload(u);return this.simpleQueueService.enqueueEvent({uuid:t},e,i)}async enqueueNextStep(u,e){const i=await this.eventPayloadService.setPayload(u);return this.simpleQueueService.enqueueNextStep({uuid:i},e)}}exports.LargePayloadQueueService=c;
@@ -0,0 +1,51 @@
1
+ import { EventPayloadStorageService as n } from "../event-payload-storage-service/index.es.js";
2
+ import { SimpleAsyncQueueService as l } from "../simple-async-queue-service/index.es.js";
3
+ class d {
4
+ constructor(u, e, i, t, r = u) {
5
+ this.simpleQueueService = new l(
6
+ u,
7
+ e,
8
+ i,
9
+ t
10
+ ), this.eventPayloadService = new n(
11
+ r
12
+ );
13
+ }
14
+ getQueueConsumer(u) {
15
+ return this.simpleQueueService.getQueueConsumer(
16
+ async (e, i) => {
17
+ const t = e != null && e.uuid ? await this.eventPayloadService.getPayload(e.uuid) : void 0;
18
+ let r, s = !1;
19
+ try {
20
+ r = await u(t, i), s = !0;
21
+ } finally {
22
+ s && (e != null && e.uuid) && await this.eventPayloadService.deletePayload(
23
+ e.uuid
24
+ );
25
+ }
26
+ return r;
27
+ }
28
+ );
29
+ }
30
+ getJobLog() {
31
+ return this.simpleQueueService.getJobLog();
32
+ }
33
+ getJobLogQueueConsumer() {
34
+ return this.simpleQueueService.getJobLogQueueConsumer();
35
+ }
36
+ async enqueueEvent(u, e, i) {
37
+ const t = await this.eventPayloadService.setPayload(u);
38
+ return this.simpleQueueService.enqueueEvent(
39
+ { uuid: t },
40
+ e,
41
+ i
42
+ );
43
+ }
44
+ async enqueueNextStep(u, e) {
45
+ const i = await this.eventPayloadService.setPayload(u);
46
+ return this.simpleQueueService.enqueueNextStep({ uuid: i }, e);
47
+ }
48
+ }
49
+ export {
50
+ d as LargePayloadQueueService
51
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@forge/events"),g=require("../job-log-queue/index.cjs.js");class b{constructor(e,t,r=2,o={key:e,limit:1}){this.queueName=e,this.retryLimit=r,this.concurrencyOptions=o,t&&(this.jobLogService=new g.JobLogService(t.logQueueName,t.logStorageKey,t.maxLogEntries))}getQueue(){return new c.Queue({key:this.queueName})}getQueueConsumer(e){return async t=>{var s;const r=t.body,o=r.mainJobId??t.jobId,u=Date.now();try{const i=r.jobData,n=await e(i,o),a=Date.now()-u;this.jobLogService&&await this.jobLogService.enqueueJobLogUpdate({...n,jobId:o,time:a})}catch(i){if(console.error(`${this.queueName} queue consumer error`,i),(((s=t.retryContext)==null?void 0:s.retryCount)??0)<this.retryLimit)throw i;if(this.jobLogService){const n=Date.now()-u;await this.jobLogService.enqueueJobLogUpdate({jobId:o,failed:!0,inProgress:!1,result:"message"in i?i.message:JSON.stringify(i),time:n})}}}}async getJobLog(){var e;return((e=this.jobLogService)==null?void 0:e.getJobLogWithProgressUpdates(this.getQueue()))??[]}getJobLogQueueConsumer(){var e;return((e=this.jobLogService)==null?void 0:e.getJobLogQueueConsumer())??(()=>{})}async enqueueEvent(e,t,r=!1){const o=await this._enqueueEvent({jobData:e}),u={jobId:o.jobId,startTime:Date.now(),description:t,isMultiStep:r};return this.jobLogService&&await this.jobLogService.enqueueJobLogUpdate(u),o}async _enqueueEvent(e){return await this.getQueue().push({body:e,concurrency:this.concurrencyOptions})}async enqueueNextStep(e,t){return await this._enqueueEvent({jobData:e,mainJobId:t})}}exports.SimpleAsyncQueueService=b;
@@ -0,0 +1,77 @@
1
+ import { Queue as c } from "@forge/events";
2
+ import { JobLogService as g } from "../job-log-queue/index.es.js";
3
+ class y {
4
+ constructor(e, t, i = 2, o = {
5
+ key: e,
6
+ limit: 1
7
+ }) {
8
+ this.queueName = e, this.retryLimit = i, this.concurrencyOptions = o, t && (this.jobLogService = new g(
9
+ t.logQueueName,
10
+ t.logStorageKey,
11
+ t.maxLogEntries
12
+ ));
13
+ }
14
+ getQueue() {
15
+ return new c({ key: this.queueName });
16
+ }
17
+ getQueueConsumer(e) {
18
+ return async (t) => {
19
+ var u;
20
+ const i = t.body, o = i.mainJobId ?? t.jobId, n = Date.now();
21
+ try {
22
+ const r = i.jobData, s = await e(r, o), a = Date.now() - n;
23
+ this.jobLogService && await this.jobLogService.enqueueJobLogUpdate({
24
+ ...s,
25
+ jobId: o,
26
+ time: a
27
+ });
28
+ } catch (r) {
29
+ if (console.error(`${this.queueName} queue consumer error`, r), (((u = t.retryContext) == null ? void 0 : u.retryCount) ?? 0) < this.retryLimit)
30
+ throw r;
31
+ if (this.jobLogService) {
32
+ const s = Date.now() - n;
33
+ await this.jobLogService.enqueueJobLogUpdate({
34
+ jobId: o,
35
+ failed: !0,
36
+ inProgress: !1,
37
+ result: "message" in r ? r.message : JSON.stringify(r),
38
+ time: s
39
+ });
40
+ }
41
+ }
42
+ };
43
+ }
44
+ async getJobLog() {
45
+ var e;
46
+ return ((e = this.jobLogService) == null ? void 0 : e.getJobLogWithProgressUpdates(this.getQueue())) ?? [];
47
+ }
48
+ getJobLogQueueConsumer() {
49
+ var e;
50
+ return ((e = this.jobLogService) == null ? void 0 : e.getJobLogQueueConsumer()) ?? (() => {
51
+ });
52
+ }
53
+ async enqueueEvent(e, t, i = !1) {
54
+ const o = await this._enqueueEvent({ jobData: e }), n = {
55
+ jobId: o.jobId,
56
+ startTime: Date.now(),
57
+ description: t,
58
+ isMultiStep: i
59
+ };
60
+ return this.jobLogService && await this.jobLogService.enqueueJobLogUpdate(n), o;
61
+ }
62
+ async _enqueueEvent(e) {
63
+ return await this.getQueue().push({
64
+ body: e,
65
+ concurrency: this.concurrencyOptions
66
+ });
67
+ }
68
+ /**
69
+ * For intermediate steps in a multistep job.
70
+ */
71
+ async enqueueNextStep(e, t) {
72
+ return await this._enqueueEvent({ jobData: e, mainJobId: t });
73
+ }
74
+ }
75
+ export {
76
+ y as SimpleAsyncQueueService
77
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@forge/sql"),c=require("../util/index.cjs.js");async function u(e,r,t,n=!1){const s=c.generateInsertMultiple(e,r,t,n),o=await i.sql.prepare(s).bindParams(...t.flat()).execute();return console.log(`Inserted ${o.rows.affectedRows} rows into table ${e}`),o.rows.affectedRows}async function a(e,r,t){const n=`${c.generateInsert(e,r,t)};`,s=await i.sql.prepare(n).bindParams(...t).execute();return console.log(`Inserted 1 row into table ${e}`),s.rows.insertId}exports.insertAutoincrementRow=a;exports.insertRows=u;
@@ -0,0 +1,21 @@
1
+ import { sql as a } from "@forge/sql";
2
+ import { generateInsertMultiple as c, generateInsert as i } from "../util/index.es.js";
3
+ async function f(e, r, t, n = !1) {
4
+ const o = c(
5
+ e,
6
+ r,
7
+ t,
8
+ n
9
+ ), s = await a.prepare(o).bindParams(...t.flat()).execute();
10
+ return console.log(
11
+ `Inserted ${s.rows.affectedRows} rows into table ${e}`
12
+ ), s.rows.affectedRows;
13
+ }
14
+ async function w(e, r, t) {
15
+ const n = `${i(e, r, t)};`, o = await a.prepare(n).bindParams(...t).execute();
16
+ return console.log(`Inserted 1 row into table ${e}`), o.rows.insertId;
17
+ }
18
+ export {
19
+ w as insertAutoincrementRow,
20
+ f as insertRows
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@forge/sql"),i=require("../util/index.cjs.js");async function l(e,n,t,r){if(r.length===0)throw new Error("No update columns provided");const a=r.map(o=>`${o} = VALUES(${o})`).join(", "),u=`${i.generateInsert(e,n,t)} ON DUPLICATE KEY UPDATE ${a};`,s=await c.sql.prepare(u).bindParams(...t).execute();return console.log(`Inserted 1 row into table ${e}`),s.rows.affectedRows}async function p(e,n,t,r){if(r.length===0)throw new Error("No update columns provided");const a=r.map(o=>`${o} = VALUES(${o})`).join(", "),u=`${i.generateInsertMultiple(e,n,t,!1)} ON DUPLICATE KEY UPDATE ${a};`,s=await c.sql.prepare(u).bindParams(...t.flat()).execute();return console.log(`Upserted ${s.rows.affectedRows} rows into table ${e}`),s.rows.affectedRows}exports.upsertRow=l;exports.upsertRows=p;
@@ -0,0 +1,20 @@
1
+ import { sql as i } from "@forge/sql";
2
+ import { generateInsert as p, generateInsertMultiple as u } from "../util/index.es.js";
3
+ async function d(e, s, r, t) {
4
+ if (t.length === 0)
5
+ throw new Error("No update columns provided");
6
+ const a = t.map((o) => `${o} = VALUES(${o})`).join(", "), c = `${p(e, s, r)} ON DUPLICATE KEY UPDATE ${a};`, n = await i.prepare(c).bindParams(...r).execute();
7
+ return console.log(`Inserted 1 row into table ${e}`), n.rows.affectedRows;
8
+ }
9
+ async function l(e, s, r, t) {
10
+ if (t.length === 0)
11
+ throw new Error("No update columns provided");
12
+ const a = t.map((o) => `${o} = VALUES(${o})`).join(", "), c = `${u(e, s, r, !1)} ON DUPLICATE KEY UPDATE ${a};`, n = await i.prepare(c).bindParams(...r.flat()).execute();
13
+ return console.log(
14
+ `Upserted ${n.rows.affectedRows} rows into table ${e}`
15
+ ), n.rows.affectedRows;
16
+ }
17
+ export {
18
+ d as upsertRow,
19
+ l as upsertRows
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(r){return r.map(e=>`\`${e}\``).join(", ")}function o(r){return`(${r.map(()=>"?").join(", ")})`}function a(r,e,n){if(e.length===0)throw new Error("No columns provided");if(n.length!==e.length)throw new Error("Row does not have the correct number of columns");return`INSERT INTO \`${r}\` (${t(e)}) VALUES ${o(e)}`}function g(r,e,n,l=!1){if(!n||n.length===0)throw new Error("No rows to insert");if(e.length===0)throw new Error("No columns provided");if(!n.every(h=>h.length===e.length))throw new Error("Rows do not have the same number of columns");const i=o(e);return`INSERT${l?" IGNORE":""} INTO \`${r}\` (${t(e)}) VALUES ${new Array(n.length).fill(i).join(", ")}`}exports.columnList=t;exports.generateInsert=a;exports.generateInsertMultiple=g;exports.singleRowPlaceholder=o;
@@ -0,0 +1,31 @@
1
+ function t(r) {
2
+ return r.map((e) => `\`${e}\``).join(", ");
3
+ }
4
+ function o(r) {
5
+ return `(${r.map(() => "?").join(", ")})`;
6
+ }
7
+ function f(r, e, n) {
8
+ if (e.length === 0)
9
+ throw new Error("No columns provided");
10
+ if (n.length !== e.length)
11
+ throw new Error("Row does not have the correct number of columns");
12
+ return `INSERT INTO \`${r}\` (${t(e)}) VALUES ${o(e)}`;
13
+ }
14
+ function w(r, e, n, h = !1) {
15
+ if (!n || n.length === 0)
16
+ throw new Error("No rows to insert");
17
+ if (e.length === 0)
18
+ throw new Error("No columns provided");
19
+ if (!n.every((l) => l.length === e.length))
20
+ throw new Error("Rows do not have the same number of columns");
21
+ const i = o(e);
22
+ return `INSERT${h ? " IGNORE" : ""} INTO \`${r}\` (${t(e)}) VALUES ${new Array(
23
+ n.length
24
+ ).fill(i).join(", ")}`;
25
+ }
26
+ export {
27
+ t as columnList,
28
+ f as generateInsert,
29
+ w as generateInsertMultiple,
30
+ o as singleRowPlaceholder
31
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@forge/storage/out/query-interfaces");class c{constructor(t,s,e){this.indexField=t,this.entities=s,this.indexOptions=e,this.filters=[],this._sort=u.SortOrder.ASC,this._limit=10,this.booleanOperator="and"}where(t){return this._where={field:this.indexField,filter:t},this}sort(t){return this._sort=t,this}cursor(t){return this._cursor=t,this}limit(t){return this._limit=t,this}getOne(){const{results:t}=this.doQuery();return Promise.resolve(t.length?t[0]:void 0)}getMany(){return Promise.resolve(this.doQuery())}andFilter(t,s){return this.filters.push({field:t,filter:s}),this.booleanOperator="and",this}orFilter(t,s){return this.filters.push({field:t,filter:s}),this.booleanOperator="or",this}doQuery(){let t,s=Array.from(this.entities.entries()).map(([e,r])=>({key:e,value:r})).filter(e=>{var r,i;return this._where?this.evaluateCondition(e.value[(r=this._where)==null?void 0:r.field],(i=this._where)==null?void 0:i.filter):!0});if(this._limit){const e=this._cursor?parseInt(this._cursor):0;let r=e+this._limit;r>=s.length?r=s.length:t=r.toString(),s=s.slice(e,r)}return s=s.filter(e=>this.booleanOperator==="and"?this.matchesAndQuery(e):this.matchesOrQuery(e)),s.sort((e,r)=>e.key.localeCompare(r.key)),this._sort===u.SortOrder.DESC&&s.reverse(),{results:s,nextCursor:t}}evaluateCondition(t,s){switch(s.condition){case"BEGINS_WITH":return!!(t!=null&&t.toString().startsWith(s.values[0].toString()));case"EXISTS":{let e=t;return e??(e=!1),!!e}case"NOT_EXISTS":{let e=t;return e??(e=!1),!e}case"GREATER_THAN":return t>s.values[0];case"GREATER_THAN_EQUAL_TO":return t>=s.values[0];case"LESS_THAN":return t<s.values[0];case"LESS_THAN_EQUAL_TO":return t<=s.values[0];case"CONTAINS":return!!(t!=null&&t.toString().includes(s.values[0].toString()));case"NOT_CONTAINS":return!(t!=null&&t.toString().includes(s.values[0].toString()));case"EQUAL_TO":return t===s.values[0];case"NOT_EQUAL_TO":return t!==s.values[0];case"BETWEEN":return t>s.values[0]&&t<s.values[1]}}matchesAndQuery(t){return this.filters.length?this.filters.every(({field:s,filter:e})=>this.evaluateCondition(t.value[s],e)):!0}matchesOrQuery(t){return this.filters.length?this.filters.map(({field:s,filter:e})=>this.evaluateCondition(t.value[s],e)).includes(!0):!0}}class n{constructor(t,s=0,e=10,r){this.keyValues=t,this._cursor=s,this._limit=e,this.condition=r}cursor(t){return new n(this.keyValues,parseInt(t),this._limit,this.condition)}getMany(){const t=Array.from(this.keyValues,([i,o])=>({key:i,value:o})).filter(i=>{var o;return((o=this.condition)==null?void 0:o.condition)!=="STARTS_WITH"||i.key.startsWith(this.condition.value)}),s=this._cursor+this._limit,e=t.slice(this._cursor,s),r=s<t.length?`${s}`:void 0;return Promise.resolve({results:e,nextCursor:r})}async getOne(){return(await this.getMany()).results[0]}limit(t){if(t>100)throw new Error("Limit must be less than or equal to 100");if(t<0)throw new Error("Limit must be greater than or equal to 0");return new n(this.keyValues,this._cursor,t,this.condition)}where(t,s){return new n(this.keyValues,this._cursor,this._limit,s)}}function a(h,t){return s=>{const e=t.get(s)||new Map;return{query:()=>({index:(r,i)=>new c(h[r]||r,e,i)}),get:r=>Promise.resolve(e.get(r)),set:(r,i)=>(e.set(r,i),Promise.resolve()),delete:r=>(e.delete(r),Promise.resolve())}}}class l{constructor(t,s={secrets:{},keyValues:{},entityCollections:{}}){this.indexFieldMapping=t,this.WhereConditions={beginsWith:e=>({condition:"BEGINS_WITH",values:[e]}),between:e=>({condition:"BETWEEN",values:e}),equalsTo:e=>({condition:"EQUAL_TO",values:[e]}),isGreaterThan:e=>({condition:"GREATER_THAN",values:[e]}),isGreaterThanEqualTo:e=>({condition:"GREATER_THAN_EQUAL_TO",values:[e]}),isLessThan:e=>({condition:"LESS_THAN",values:[e]}),isLessThanEqualTo:e=>({condition:"LESS_THAN_EQUAL_TO",values:[e]})},this.startsWith=e=>({condition:"STARTS_WITH",value:e}),this.secrets=new Map(Object.entries(s.secrets)),this.keyValues=new Map(Object.entries(s.keyValues)),this.entityCollections=new Map(Object.entries(s.entityCollections).map(([e,r])=>[e,new Map(Object.entries(r))])),this.storage={query:()=>new n(this.keyValues),entity:a(this.indexFieldMapping,this.entityCollections),get:e=>Promise.resolve(this.keyValues.get(e)),set:(e,r)=>(this.keyValues.set(e,r),Promise.resolve()),delete:e=>(this.keyValues.delete(e),Promise.resolve()),getSecret:e=>Promise.resolve(this.secrets.get(e)),setSecret:(e,r)=>(this.secrets.set(e,r),Promise.resolve()),deleteSecret:e=>(this.secrets.delete(e),Promise.resolve())}}writeOut(){return JSON.stringify({entityCollections:Object.fromEntries(Object.entries(Object.fromEntries(this.entityCollections)).map(([t,s])=>[t,Object.fromEntries(s)])),keyValues:Object.fromEntries(this.keyValues),secrets:Object.fromEntries(this.secrets)})}addMissingCollections(t){t.forEach(s=>{this.entityCollections.has(s)||this.entityCollections.set(s,new Map)})}}exports.ForgeStorageServiceStandalone=l;
@@ -0,0 +1,244 @@
1
+ import { SortOrder as u } from "@forge/storage/out/query-interfaces";
2
+ class c {
3
+ constructor(t, s, e) {
4
+ this.indexField = t, this.entities = s, this.indexOptions = e, this.filters = [], this._sort = u.ASC, this._limit = 10, this.booleanOperator = "and";
5
+ }
6
+ where(t) {
7
+ return this._where = { field: this.indexField, filter: t }, this;
8
+ }
9
+ sort(t) {
10
+ return this._sort = t, this;
11
+ }
12
+ cursor(t) {
13
+ return this._cursor = t, this;
14
+ }
15
+ limit(t) {
16
+ return this._limit = t, this;
17
+ }
18
+ getOne() {
19
+ const { results: t } = this.doQuery();
20
+ return Promise.resolve(t.length ? t[0] : void 0);
21
+ }
22
+ getMany() {
23
+ return Promise.resolve(this.doQuery());
24
+ }
25
+ andFilter(t, s) {
26
+ return this.filters.push({ field: t, filter: s }), this.booleanOperator = "and", this;
27
+ }
28
+ orFilter(t, s) {
29
+ return this.filters.push({ field: t, filter: s }), this.booleanOperator = "or", this;
30
+ }
31
+ doQuery() {
32
+ let t, s = Array.from(this.entities.entries()).map(([e, r]) => ({
33
+ key: e,
34
+ value: r
35
+ })).filter(
36
+ (e) => {
37
+ var r, i;
38
+ return this._where ? this.evaluateCondition(
39
+ e.value[(r = this._where) == null ? void 0 : r.field],
40
+ (i = this._where) == null ? void 0 : i.filter
41
+ ) : !0;
42
+ }
43
+ );
44
+ if (this._limit) {
45
+ const e = this._cursor ? parseInt(this._cursor) : 0;
46
+ let r = e + this._limit;
47
+ r >= s.length ? r = s.length : t = r.toString(), s = s.slice(e, r);
48
+ }
49
+ return s = s.filter(
50
+ (e) => this.booleanOperator === "and" ? this.matchesAndQuery(e) : this.matchesOrQuery(e)
51
+ ), s.sort((e, r) => e.key.localeCompare(r.key)), this._sort === u.DESC && s.reverse(), { results: s, nextCursor: t };
52
+ }
53
+ evaluateCondition(t, s) {
54
+ switch (s.condition) {
55
+ case "BEGINS_WITH":
56
+ return !!(t != null && t.toString().startsWith(s.values[0].toString()));
57
+ case "EXISTS": {
58
+ let e = t;
59
+ return e ?? (e = !1), !!e;
60
+ }
61
+ case "NOT_EXISTS": {
62
+ let e = t;
63
+ return e ?? (e = !1), !e;
64
+ }
65
+ case "GREATER_THAN":
66
+ return t > s.values[0];
67
+ case "GREATER_THAN_EQUAL_TO":
68
+ return t >= s.values[0];
69
+ case "LESS_THAN":
70
+ return t < s.values[0];
71
+ case "LESS_THAN_EQUAL_TO":
72
+ return t <= s.values[0];
73
+ case "CONTAINS":
74
+ return !!(t != null && t.toString().includes(s.values[0].toString()));
75
+ case "NOT_CONTAINS":
76
+ return !(t != null && t.toString().includes(s.values[0].toString()));
77
+ case "EQUAL_TO":
78
+ return t === s.values[0];
79
+ case "NOT_EQUAL_TO":
80
+ return t !== s.values[0];
81
+ case "BETWEEN":
82
+ return t > s.values[0] && t < s.values[1];
83
+ }
84
+ }
85
+ matchesAndQuery(t) {
86
+ return this.filters.length ? this.filters.every(
87
+ ({ field: s, filter: e }) => this.evaluateCondition(t.value[s], e)
88
+ ) : !0;
89
+ }
90
+ matchesOrQuery(t) {
91
+ return this.filters.length ? this.filters.map(
92
+ ({ field: s, filter: e }) => this.evaluateCondition(t.value[s], e)
93
+ ).includes(!0) : !0;
94
+ }
95
+ }
96
+ class n {
97
+ constructor(t, s = 0, e = 10, r) {
98
+ this.keyValues = t, this._cursor = s, this._limit = e, this.condition = r;
99
+ }
100
+ cursor(t) {
101
+ return new n(
102
+ this.keyValues,
103
+ parseInt(t),
104
+ this._limit,
105
+ this.condition
106
+ );
107
+ }
108
+ getMany() {
109
+ const t = Array.from(
110
+ this.keyValues,
111
+ ([i, o]) => ({
112
+ key: i,
113
+ value: o
114
+ })
115
+ ).filter(
116
+ (i) => {
117
+ var o;
118
+ return ((o = this.condition) == null ? void 0 : o.condition) !== "STARTS_WITH" || i.key.startsWith(this.condition.value);
119
+ }
120
+ ), s = this._cursor + this._limit, e = t.slice(this._cursor, s), r = s < t.length ? `${s}` : void 0;
121
+ return Promise.resolve({
122
+ results: e,
123
+ nextCursor: r
124
+ });
125
+ }
126
+ async getOne() {
127
+ return (await this.getMany()).results[0];
128
+ }
129
+ limit(t) {
130
+ if (t > 100)
131
+ throw new Error("Limit must be less than or equal to 100");
132
+ if (t < 0)
133
+ throw new Error("Limit must be greater than or equal to 0");
134
+ return new n(
135
+ this.keyValues,
136
+ this._cursor,
137
+ t,
138
+ this.condition
139
+ );
140
+ }
141
+ where(t, s) {
142
+ return new n(
143
+ this.keyValues,
144
+ this._cursor,
145
+ this._limit,
146
+ s
147
+ );
148
+ }
149
+ }
150
+ function a(h, t) {
151
+ return (s) => {
152
+ const e = t.get(s) || /* @__PURE__ */ new Map();
153
+ return {
154
+ query: () => ({
155
+ index: (r, i) => new c(
156
+ h[r] || r,
157
+ e,
158
+ i
159
+ )
160
+ }),
161
+ get: (r) => Promise.resolve(e.get(r)),
162
+ set: (r, i) => (e.set(r, i), Promise.resolve()),
163
+ delete: (r) => (e.delete(r), Promise.resolve())
164
+ };
165
+ };
166
+ }
167
+ class _ {
168
+ constructor(t, s = {
169
+ secrets: {},
170
+ keyValues: {},
171
+ entityCollections: {}
172
+ }) {
173
+ this.indexFieldMapping = t, this.WhereConditions = {
174
+ beginsWith: (e) => ({
175
+ condition: "BEGINS_WITH",
176
+ values: [e]
177
+ }),
178
+ between: (e) => ({
179
+ condition: "BETWEEN",
180
+ values: e
181
+ }),
182
+ equalsTo: (e) => ({
183
+ condition: "EQUAL_TO",
184
+ values: [e]
185
+ }),
186
+ isGreaterThan: (e) => ({
187
+ condition: "GREATER_THAN",
188
+ values: [e]
189
+ }),
190
+ isGreaterThanEqualTo: (e) => ({
191
+ condition: "GREATER_THAN_EQUAL_TO",
192
+ values: [e]
193
+ }),
194
+ isLessThan: (e) => ({
195
+ condition: "LESS_THAN",
196
+ values: [e]
197
+ }),
198
+ isLessThanEqualTo: (e) => ({
199
+ condition: "LESS_THAN_EQUAL_TO",
200
+ values: [e]
201
+ })
202
+ }, this.startsWith = (e) => ({
203
+ condition: "STARTS_WITH",
204
+ value: e
205
+ }), this.secrets = new Map(Object.entries(s.secrets)), this.keyValues = new Map(Object.entries(s.keyValues)), this.entityCollections = new Map(
206
+ Object.entries(s.entityCollections).map(
207
+ ([e, r]) => [e, new Map(Object.entries(r))]
208
+ )
209
+ ), this.storage = {
210
+ query: () => new n(this.keyValues),
211
+ entity: a(
212
+ this.indexFieldMapping,
213
+ this.entityCollections
214
+ ),
215
+ get: (e) => Promise.resolve(this.keyValues.get(e)),
216
+ set: (e, r) => (this.keyValues.set(e, r), Promise.resolve()),
217
+ delete: (e) => (this.keyValues.delete(e), Promise.resolve()),
218
+ getSecret: (e) => Promise.resolve(this.secrets.get(e)),
219
+ setSecret: (e, r) => (this.secrets.set(e, r), Promise.resolve()),
220
+ deleteSecret: (e) => (this.secrets.delete(e), Promise.resolve())
221
+ };
222
+ }
223
+ // not part of the API
224
+ writeOut() {
225
+ return JSON.stringify({
226
+ entityCollections: Object.fromEntries(
227
+ Object.entries(Object.fromEntries(this.entityCollections)).map(
228
+ ([t, s]) => [t, Object.fromEntries(s)]
229
+ )
230
+ ),
231
+ keyValues: Object.fromEntries(this.keyValues),
232
+ secrets: Object.fromEntries(this.secrets)
233
+ });
234
+ }
235
+ // not part of the API
236
+ addMissingCollections(t) {
237
+ t.forEach((s) => {
238
+ this.entityCollections.has(s) || this.entityCollections.set(s, /* @__PURE__ */ new Map());
239
+ });
240
+ }
241
+ }
242
+ export {
243
+ _ as ForgeStorageServiceStandalone
244
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@forge/api"),o=require("../../../../util-product-fetch/src/lib/product-fetch/index.cjs.js");function u(a,c){const t=a==="app"?r.asApp():r.asUser();let e;switch(c){case"jira":e=t.requestJira;break;case"bitbucket":e=t.requestBitbucket;break;case"confluence":e=t.requestConfluence;break;case"connected-data":e=t.requestConnectedData;break}return{productType:c,fetch:o.makeProductFetchFn(e),route:r.route,rawFetch:e}}exports.createServerSideForgeProductFetchService=u;
@@ -0,0 +1,31 @@
1
+ import { asApp as a, asUser as o, route as n } from "@forge/api";
2
+ import { makeProductFetchFn as s } from "../../../../util-product-fetch/src/lib/product-fetch/index.es.js";
3
+ function d(c, r) {
4
+ const t = c === "app" ? a() : o();
5
+ let e;
6
+ switch (r) {
7
+ case "jira":
8
+ e = t.requestJira;
9
+ break;
10
+ case "bitbucket":
11
+ e = t.requestBitbucket;
12
+ break;
13
+ case "confluence":
14
+ e = t.requestConfluence;
15
+ break;
16
+ case "connected-data":
17
+ e = t.requestConnectedData;
18
+ break;
19
+ }
20
+ return {
21
+ productType: r,
22
+ // @ts-expect-error slight difference in typing, null vs undefined
23
+ fetch: s(e),
24
+ route: n,
25
+ // @ts-expect-error slight difference in typing, null vs undefined
26
+ rawFetch: e
27
+ };
28
+ }
29
+ export {
30
+ d as createServerSideForgeProductFetchService
31
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@forge/bridge"),o=require("../../../../util-product-fetch/src/lib/product-fetch/index.cjs.js"),n=require("../../../../../../shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js");function i(e){switch(e){case"jira":return t.requestJira;case"bitbucket":return t.requestBitbucket;case"confluence":return t.requestConfluence}}function s(e){const r=i(e);return{productType:e,fetch:o.makeProductFetchFn((c,u)=>r(c.value,u)),route:n.route,rawFetch:r}}exports.createClientSideForgeProductFetchService=s;
@@ -0,0 +1,28 @@
1
+ import { requestConfluence as o, requestBitbucket as u, requestJira as n } from "@forge/bridge";
2
+ import { makeProductFetchFn as i } from "../../../../util-product-fetch/src/lib/product-fetch/index.es.js";
3
+ import { route as h } from "../../../../../../shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js";
4
+ function a(e) {
5
+ switch (e) {
6
+ case "jira":
7
+ return n;
8
+ case "bitbucket":
9
+ return u;
10
+ case "confluence":
11
+ return o;
12
+ }
13
+ }
14
+ function m(e) {
15
+ const t = a(e);
16
+ return {
17
+ productType: e,
18
+ fetch: i(
19
+ (r, c) => t(r.value, c)
20
+ ),
21
+ route: h,
22
+ // @ts-expect-error slight difference in typing, null vs undefined
23
+ rawFetch: t
24
+ };
25
+ }
26
+ export {
27
+ m as createClientSideForgeProductFetchService
28
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("@forge/bridge"),t=require("react"),u=require("../../../../../../shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");require("@atlaskit/flag");require("@atlaskit/icon/glyph/check-circle");require("@atlaskit/icon/glyph/error");require("@atlaskit/icon/glyph/info");require("@atlaskit/icon/glyph/warning");require("@atlaskit/tokens");function p({children:r}){const[e,i]=t.useReducer(n,{});return s.jsx(u.AppFlagsDispatchContext.Provider,{value:i,children:r})}function n(r,e){var i;switch(e.type){case"add":return e.props?{...r,[e.props.id]:o.showFlag(e.props)}:(console.error("invalid flag action: ",JSON.stringify(e)),r);case"remove":return(i=r[e.id])==null||i.close(),{...r,[e.id]:void 0};default:throw Error("Unknown action: "+e.type)}}exports.AppFlagsProviderForge=p;