@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.
- package/README.md +728 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/event-payload-storage-service/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/event-payload-storage-service/index.es.js +22 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/job-log-queue/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/job-log-queue/index.es.js +60 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/large-payload-queue-service/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/large-payload-queue-service/index.es.js +51 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/simple-async-queue-service/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/simple-async-queue-service/index.es.js +77 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/insert-rows/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/insert-rows/index.es.js +21 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/upsert-rows/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/upsert-rows/index.es.js +20 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/util/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/util/index.es.js +31 -0
- package/atlassian/forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.es.js +244 -0
- package/atlassian/forge/shared/backend-data-access-product-fetch-forge-api/src/lib/forge-api-product-fetch/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-product-fetch-forge-api/src/lib/forge-api-product-fetch/index.es.js +31 -0
- package/atlassian/forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.cjs.js +1 -0
- package/atlassian/forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.es.js +28 -0
- package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js +1 -0
- package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js +31 -0
- package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.cjs.js +1 -0
- package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.es.js +107 -0
- package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.cjs.js +3 -0
- package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.es.js +39 -0
- package/atlassian/forge/shared/util-resolver/src/lib/common-resolver-paths/index.cjs.js +1 -0
- package/atlassian/forge/shared/util-resolver/src/lib/common-resolver-paths/index.es.js +7 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/assets-objects-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/assets-objects-service/index.es.js +274 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/global-icons/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/global-icons/index.es.js +9 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object/index.es.js +52 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-linked-issues/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-linked-issues/index.es.js +9 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-schema/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-schema/index.es.js +22 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-type/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-type/index.es.js +23 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-type-attribute/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-type-attribute/index.es.js +19 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +167 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.es.js +20 -0
- package/atlassian/jira/shared/data-access-jql/src/lib/jql-precomputation-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-jql/src/lib/jql-precomputation-service/index.es.js +34 -0
- package/atlassian/jira/shared/data-access-project/src/lib/jira-project-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-project/src/lib/jira-project-service/index.es.js +85 -0
- package/atlassian/jira/shared/data-access-serverinfo/src/lib/jira-server-info-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-serverinfo/src/lib/jira-server-info-service/index.es.js +21 -0
- package/atlassian/jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.es.js +50 -0
- package/atlassian/jira/shared/util-assets/src/lib/asset-type/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-assets/src/lib/asset-type/index.es.js +4 -0
- package/atlassian/jira/shared/util-assets/src/lib/object/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-assets/src/lib/object/index.es.js +9 -0
- package/atlassian/jira/shared/util-assets/src/lib/object-type-attribute/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-assets/src/lib/object-type-attribute/index.es.js +14 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js +12 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js +9 -0
- package/atlassian/shared/backend-feature-atlassian-app/src/lib/atlassian-app-backend-forge/index.cjs.js +1 -0
- package/atlassian/shared/backend-feature-atlassian-app/src/lib/atlassian-app-backend-forge/index.es.js +8 -0
- package/atlassian/shared/backend-feature-atlassian-app-express/src/lib/atlassian-app-backend-express/index.cjs.js +1 -0
- package/atlassian/shared/backend-feature-atlassian-app-express/src/lib/atlassian-app-backend-express/index.es.js +125 -0
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js +1 -0
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js +127 -0
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js +1 -0
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js +56 -0
- package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.cjs.js +1 -0
- package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.es.js +44 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app/index.es.js +41 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.es.js +59 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +168 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.es.js +66 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.es.js +25 -0
- package/atlassian/shared/frontend-feature-chosen-resource-check/src/index/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-chosen-resource-check/src/index/index.es.js +5 -0
- package/atlassian/shared/frontend-feature-chosen-resource-check/src/lib/feature-chosen-resource-check/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-chosen-resource-check/src/lib/feature-chosen-resource-check/index.es.js +69 -0
- package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js +83 -0
- package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js +13 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +65 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js +51 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-callback/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-callback/index.es.js +28 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.es.js +9 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/util/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/util/index.es.js +19 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js +9 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.es.js +35 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js +106 -0
- package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.es.js +8 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js +20 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js +20 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js +18 -0
- package/atlassian/shared/frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js +28 -0
- package/atlassian/shared/frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.es.js +16 -0
- package/atlassian/shared/frontend-ui-copy-button/src/lib/copy-text-button/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-copy-button/src/lib/copy-text-button/index.es.js +39 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.es.js +28 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel-stateless/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel-stateless/index.es.js +41 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/styled-panel/index.cjs.js +45 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/styled-panel/index.es.js +53 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router/index.es.js +14 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-link/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-link/index.es.js +31 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-provider/index.es.js +18 -0
- package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js +54 -0
- package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.es.js +6 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.es.js +34 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.es.js +48 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.es.js +24 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.es.js +14 -0
- package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.es.js +38 -0
- package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js +20 -0
- package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js +19 -0
- package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.es.js +12 -0
- package/atlassian/shared/frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js +28 -0
- package/atlassian/shared/frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-view-context/src/lib/mock-view-context/index.es.js +27 -0
- package/atlassian/shared/frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-view-context/src/lib/view-context-provider/index.es.js +18 -0
- package/atlassian/shared/util-error/src/index/index.cjs.js +1 -0
- package/atlassian/shared/util-error/src/index/index.es.js +8 -0
- package/atlassian-app.css +1 -0
- package/backend-data-access-async-queue/atlassian-app-backend-data-access-async-queue.api.json +2205 -0
- package/backend-data-access-async-queue/atlassian-app.api.md +118 -0
- package/backend-data-access-async-queue/index.cjs.js +1 -0
- package/backend-data-access-async-queue/index.d.ts +121 -0
- package/backend-data-access-async-queue/index.es.js +10 -0
- package/backend-data-access-async-queue/tsdoc-metadata.json +11 -0
- package/backend-data-access-forge-sql/atlassian-app-backend-data-access-forge-sql.api.json +554 -0
- package/backend-data-access-forge-sql/atlassian-app.api.md +21 -0
- package/backend-data-access-forge-sql/index.cjs.js +1 -0
- package/backend-data-access-forge-sql/index.d.ts +18 -0
- package/backend-data-access-forge-sql/index.es.js +8 -0
- package/backend-data-access-forge-sql/tsdoc-metadata.json +11 -0
- package/backend-data-access-forge-storage/atlassian-app-backend-data-access-forge-storage.api.json +772 -0
- package/backend-data-access-forge-storage/atlassian-app.api.md +58 -0
- package/backend-data-access-forge-storage/index.cjs.js +1 -0
- package/backend-data-access-forge-storage/index.d.ts +50 -0
- package/backend-data-access-forge-storage/index.es.js +4 -0
- package/backend-data-access-forge-storage/tsdoc-metadata.json +11 -0
- package/backend-data-access-product-fetch-forge-api/atlassian-app-backend-data-access-product-fetch-forge-api.api.json +266 -0
- package/backend-data-access-product-fetch-forge-api/atlassian-app.api.md +15 -0
- package/backend-data-access-product-fetch-forge-api/index.cjs.js +1 -0
- package/backend-data-access-product-fetch-forge-api/index.d.ts +32 -0
- package/backend-data-access-product-fetch-forge-api/index.es.js +4 -0
- package/backend-data-access-product-fetch-forge-api/tsdoc-metadata.json +11 -0
- package/backend-feature-atlassian-app/atlassian-app-backend-feature-atlassian-app.api.json +458 -0
- package/backend-feature-atlassian-app/atlassian-app.api.md +41 -0
- package/backend-feature-atlassian-app/index.cjs.js +1 -0
- package/backend-feature-atlassian-app/index.d.ts +102 -0
- package/backend-feature-atlassian-app/index.es.js +4 -0
- package/backend-feature-atlassian-app/tsdoc-metadata.json +11 -0
- package/backend-feature-atlassian-app-express/atlassian-app-backend-feature-atlassian-app-express.api.json +682 -0
- package/backend-feature-atlassian-app-express/atlassian-app.api.md +51 -0
- package/backend-feature-atlassian-app-express/index.cjs.js +1 -0
- package/backend-feature-atlassian-app-express/index.d.ts +141 -0
- package/backend-feature-atlassian-app-express/index.es.js +9 -0
- package/backend-feature-atlassian-app-express/tsdoc-metadata.json +11 -0
- package/data-access-assets/atlassian-app-data-access-assets.api.json +2441 -0
- package/data-access-assets/atlassian-app.api.md +109 -0
- package/data-access-assets/index.cjs.js +1 -0
- package/data-access-assets/index.d.ts +316 -0
- package/data-access-assets/index.es.js +23 -0
- package/data-access-assets/tsdoc-metadata.json +11 -0
- package/data-access-atlassian-product-fetch-oauth/atlassian-app-data-access-atlassian-product-fetch-oauth.api.json +1439 -0
- package/data-access-atlassian-product-fetch-oauth/atlassian-app.api.md +92 -0
- package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -0
- package/data-access-atlassian-product-fetch-oauth/index.d.ts +79 -0
- package/data-access-atlassian-product-fetch-oauth/index.es.js +14 -0
- package/data-access-atlassian-product-fetch-oauth/tsdoc-metadata.json +11 -0
- package/data-access-issue/atlassian-app-data-access-issue.api.json +1995 -0
- package/data-access-issue/atlassian-app.api.md +111 -0
- package/data-access-issue/index.cjs.js +1 -0
- package/data-access-issue/index.d.ts +471 -0
- package/data-access-issue/index.es.js +6 -0
- package/data-access-issue/tsdoc-metadata.json +11 -0
- package/data-access-jql/atlassian-app-data-access-jql.api.json +388 -0
- package/data-access-jql/atlassian-app.api.md +25 -0
- package/data-access-jql/index.cjs.js +1 -0
- package/data-access-jql/index.d.ts +62 -0
- package/data-access-jql/index.es.js +4 -0
- package/data-access-jql/tsdoc-metadata.json +11 -0
- package/data-access-project/atlassian-app-data-access-project.api.json +856 -0
- package/data-access-project/atlassian-app.api.md +41 -0
- package/data-access-project/index.cjs.js +1 -0
- package/data-access-project/index.d.ts +114 -0
- package/data-access-project/index.es.js +4 -0
- package/data-access-project/tsdoc-metadata.json +11 -0
- package/data-access-resources/atlassian-app-data-access-resources.api.json +515 -0
- package/data-access-resources/atlassian-app.api.md +45 -0
- package/data-access-resources/index.cjs.js +1 -0
- package/data-access-resources/index.d.ts +27 -0
- package/data-access-resources/index.es.js +4 -0
- package/data-access-resources/tsdoc-metadata.json +11 -0
- package/data-access-serverinfo/atlassian-app-data-access-serverinfo.api.json +366 -0
- package/data-access-serverinfo/atlassian-app.api.md +23 -0
- package/data-access-serverinfo/index.cjs.js +1 -0
- package/data-access-serverinfo/index.d.ts +61 -0
- package/data-access-serverinfo/index.es.js +4 -0
- package/data-access-serverinfo/tsdoc-metadata.json +11 -0
- package/data-access-workspaces/atlassian-app-data-access-workspaces.api.json +406 -0
- package/data-access-workspaces/atlassian-app.api.md +32 -0
- package/data-access-workspaces/index.cjs.js +1 -0
- package/data-access-workspaces/index.d.ts +50 -0
- package/data-access-workspaces/index.es.js +4 -0
- package/data-access-workspaces/tsdoc-metadata.json +11 -0
- package/frontend-app/atlassian-app-frontend-app.api.json +636 -0
- package/frontend-app/atlassian-app.api.md +56 -0
- package/frontend-app/index.cjs.js +1 -0
- package/frontend-app/index.d.ts +109 -0
- package/frontend-app/index.es.js +5 -0
- package/frontend-app/tsdoc-metadata.json +11 -0
- package/frontend-app-custom-ui/atlassian-app-frontend-app-custom-ui.api.json +242 -0
- package/frontend-app-custom-ui/atlassian-app.api.md +17 -0
- package/frontend-app-custom-ui/index.cjs.js +1 -0
- package/frontend-app-custom-ui/index.d.ts +20 -0
- package/frontend-app-custom-ui/index.es.js +4 -0
- package/frontend-app-custom-ui/tsdoc-metadata.json +11 -0
- package/frontend-app-standalone/atlassian-app-frontend-app-standalone.api.json +554 -0
- package/frontend-app-standalone/atlassian-app.api.md +46 -0
- package/frontend-app-standalone/index.cjs.js +1 -0
- package/frontend-app-standalone/index.d.ts +45 -0
- package/frontend-app-standalone/index.es.js +4 -0
- package/frontend-app-standalone/tsdoc-metadata.json +11 -0
- package/frontend-app-test/atlassian-app-frontend-app-test.api.json +514 -0
- package/frontend-app-test/atlassian-app.api.md +45 -0
- package/frontend-app-test/index.cjs.js +1 -0
- package/frontend-app-test/index.d.ts +67 -0
- package/frontend-app-test/index.es.js +5 -0
- package/frontend-app-test/tsdoc-metadata.json +11 -0
- package/frontend-app-ui-kit/atlassian-app-frontend-app-ui-kit.api.json +229 -0
- package/frontend-app-ui-kit/atlassian-app.api.md +15 -0
- package/frontend-app-ui-kit/index.cjs.js +1 -0
- package/frontend-app-ui-kit/index.d.ts +6 -0
- package/frontend-app-ui-kit/index.es.js +4 -0
- package/frontend-app-ui-kit/tsdoc-metadata.json +11 -0
- package/package.json +271 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.cjs.js +1 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.es.js +20 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-target-box.module.scss/index.cjs.js +1 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-target-box.module.scss/index.es.js +6 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-utils/index.cjs.js +1 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-utils/index.es.js +24 -0
- package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.cjs.js +1 -0
- package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.es.js +32 -0
- package/shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.cjs.js +1 -0
- package/shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.es.js +9 -0
- package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -0
- package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +76 -0
- package/ui-app-flags/atlassian-app-ui-app-flags.api.json +587 -0
- package/ui-app-flags/atlassian-app.api.md +57 -0
- package/ui-app-flags/index.cjs.js +1 -0
- package/ui-app-flags/index.d.ts +37 -0
- package/ui-app-flags/index.es.js +9 -0
- package/ui-app-flags/tsdoc-metadata.json +11 -0
- package/ui-async-queue-job-log/atlassian-app-ui-async-queue-job-log.api.json +246 -0
- package/ui-async-queue-job-log/atlassian-app.api.md +22 -0
- package/ui-async-queue-job-log/index.cjs.js +1 -0
- package/ui-async-queue-job-log/index.d.ts +21 -0
- package/ui-async-queue-job-log/index.es.js +4 -0
- package/ui-async-queue-job-log/tsdoc-metadata.json +11 -0
- package/ui-atlaskit-forms/atlassian-app-ui-atlaskit-forms.api.json +341 -0
- package/ui-atlaskit-forms/atlassian-app.api.md +19 -0
- package/ui-atlaskit-forms/index.cjs.js +1 -0
- package/ui-atlaskit-forms/index.d.ts +48 -0
- package/ui-atlaskit-forms/index.es.js +4 -0
- package/ui-atlaskit-forms/tsdoc-metadata.json +11 -0
- package/ui-atlassian-product-fetch/atlassian-app-ui-atlassian-product-fetch.api.json +418 -0
- package/ui-atlassian-product-fetch/atlassian-app.api.md +38 -0
- package/ui-atlassian-product-fetch/index.cjs.js +1 -0
- package/ui-atlassian-product-fetch/index.d.ts +60 -0
- package/ui-atlassian-product-fetch/index.es.js +11 -0
- package/ui-atlassian-product-fetch/tsdoc-metadata.json +11 -0
- package/ui-backend-adapter/atlassian-app-ui-backend-adapter.api.json +402 -0
- package/ui-backend-adapter/atlassian-app.api.md +34 -0
- package/ui-backend-adapter/index.cjs.js +1 -0
- package/ui-backend-adapter/index.d.ts +26 -0
- package/ui-backend-adapter/index.es.js +7 -0
- package/ui-backend-adapter/tsdoc-metadata.json +11 -0
- package/ui-chosen-resource-check/atlassian-app-ui-chosen-resource-check.api.json +388 -0
- package/ui-chosen-resource-check/atlassian-app.api.md +35 -0
- package/ui-chosen-resource-check/index.cjs.js +1 -0
- package/ui-chosen-resource-check/index.d.ts +20 -0
- package/ui-chosen-resource-check/index.es.js +4 -0
- package/ui-chosen-resource-check/tsdoc-metadata.json +11 -0
- package/ui-chosen-workspace-check/atlassian-app-ui-chosen-workspace-check.api.json +362 -0
- package/ui-chosen-workspace-check/atlassian-app.api.md +30 -0
- package/ui-chosen-workspace-check/index.cjs.js +1 -0
- package/ui-chosen-workspace-check/index.d.ts +17 -0
- package/ui-chosen-workspace-check/index.es.js +7 -0
- package/ui-chosen-workspace-check/tsdoc-metadata.json +11 -0
- package/ui-copy-button/atlassian-app-ui-copy-button.api.json +384 -0
- package/ui-copy-button/atlassian-app.api.md +30 -0
- package/ui-copy-button/index.cjs.js +1 -0
- package/ui-copy-button/index.d.ts +15 -0
- package/ui-copy-button/index.es.js +4 -0
- package/ui-copy-button/tsdoc-metadata.json +11 -0
- package/ui-drop-target/atlassian-app-ui-drop-target.api.json +637 -0
- package/ui-drop-target/atlassian-app.api.md +50 -0
- package/ui-drop-target/index.cjs.js +1 -0
- package/ui-drop-target/index.d.ts +39 -0
- package/ui-drop-target/index.es.js +7 -0
- package/ui-drop-target/tsdoc-metadata.json +11 -0
- package/ui-expand-panel/atlassian-app-ui-expand-panel.api.json +252 -0
- package/ui-expand-panel/atlassian-app.api.md +23 -0
- package/ui-expand-panel/index.cjs.js +1 -0
- package/ui-expand-panel/index.d.ts +31 -0
- package/ui-expand-panel/index.es.js +6 -0
- package/ui-expand-panel/tsdoc-metadata.json +11 -0
- package/ui-host-router/atlassian-app-ui-host-router.api.json +827 -0
- package/ui-host-router/atlassian-app.api.md +61 -0
- package/ui-host-router/index.cjs.js +1 -0
- package/ui-host-router/index.d.ts +40 -0
- package/ui-host-router/index.es.js +9 -0
- package/ui-host-router/tsdoc-metadata.json +11 -0
- package/ui-iframe/atlassian-app-ui-iframe.api.json +531 -0
- package/ui-iframe/atlassian-app.api.md +43 -0
- package/ui-iframe/index.cjs.js +1 -0
- package/ui-iframe/index.d.ts +24 -0
- package/ui-iframe/index.es.js +4 -0
- package/ui-iframe/tsdoc-metadata.json +11 -0
- package/ui-load-data-hook/atlassian-app-ui-load-data-hook.api.json +329 -0
- package/ui-load-data-hook/atlassian-app.api.md +25 -0
- package/ui-load-data-hook/index.cjs.js +1 -0
- package/ui-load-data-hook/index.d.ts +38 -0
- package/ui-load-data-hook/index.es.js +4 -0
- package/ui-load-data-hook/tsdoc-metadata.json +11 -0
- package/ui-modal/atlassian-app-ui-modal.api.json +1462 -0
- package/ui-modal/atlassian-app.api.md +117 -0
- package/ui-modal/index.cjs.js +1 -0
- package/ui-modal/index.d.ts +126 -0
- package/ui-modal/index.es.js +16 -0
- package/ui-modal/tsdoc-metadata.json +11 -0
- package/ui-modal-service/atlassian-app-ui-modal-service.api.json +809 -0
- package/ui-modal-service/atlassian-app.api.md +59 -0
- package/ui-modal-service/index.cjs.js +1 -0
- package/ui-modal-service/index.d.ts +41 -0
- package/ui-modal-service/index.es.js +7 -0
- package/ui-modal-service/tsdoc-metadata.json +11 -0
- package/ui-oauth-login/atlassian-app-ui-oauth-login.api.json +809 -0
- package/ui-oauth-login/atlassian-app.api.md +67 -0
- package/ui-oauth-login/index.cjs.js +1 -0
- package/ui-oauth-login/index.d.ts +47 -0
- package/ui-oauth-login/index.es.js +9 -0
- package/ui-oauth-login/tsdoc-metadata.json +11 -0
- package/ui-page-loading-view/atlassian-app-ui-page-loading-view.api.json +242 -0
- package/ui-page-loading-view/atlassian-app.api.md +19 -0
- package/ui-page-loading-view/index.cjs.js +1 -0
- package/ui-page-loading-view/index.d.ts +10 -0
- package/ui-page-loading-view/index.es.js +4 -0
- package/ui-page-loading-view/tsdoc-metadata.json +11 -0
- package/ui-remote-adapter/atlassian-app-ui-remote-adapter.api.json +369 -0
- package/ui-remote-adapter/atlassian-app.api.md +33 -0
- package/ui-remote-adapter/index.cjs.js +1 -0
- package/ui-remote-adapter/index.d.ts +26 -0
- package/ui-remote-adapter/index.es.js +7 -0
- package/ui-remote-adapter/tsdoc-metadata.json +11 -0
- package/ui-view-context/atlassian-app-ui-view-context.api.json +992 -0
- package/ui-view-context/atlassian-app.api.md +78 -0
- package/ui-view-context/index.cjs.js +1 -0
- package/ui-view-context/index.d.ts +62 -0
- package/ui-view-context/index.es.js +7 -0
- package/ui-view-context/tsdoc-metadata.json +11 -0
- package/util-assets/atlassian-app-util-assets.api.json +4726 -0
- package/util-assets/atlassian-app.api.md +418 -0
- package/util-assets/index.cjs.js +1 -0
- package/util-assets/index.d.ts +245 -0
- package/util-assets/index.es.js +9 -0
- package/util-assets/tsdoc-metadata.json +11 -0
- package/util-async-queue/atlassian-app-util-async-queue.api.json +439 -0
- package/util-async-queue/atlassian-app.api.md +31 -0
- package/util-async-queue/index.cjs.js +1 -0
- package/util-async-queue/index.d.ts +13 -0
- package/util-async-queue/index.es.js +1 -0
- package/util-async-queue/tsdoc-metadata.json +11 -0
- package/util-atlassian-product-fetch/atlassian-app-util-atlassian-product-fetch.api.json +1795 -0
- package/util-atlassian-product-fetch/atlassian-app.api.md +116 -0
- package/util-atlassian-product-fetch/index.cjs.js +1 -0
- package/util-atlassian-product-fetch/index.d.ts +70 -0
- package/util-atlassian-product-fetch/index.es.js +9 -0
- package/util-atlassian-product-fetch/tsdoc-metadata.json +11 -0
- package/util-jira-v3-api/atlassian-app-util-jira-v3-api.api.json +7431 -0
- package/util-jira-v3-api/atlassian-app.api.md +777 -0
- package/util-jira-v3-api/index.cjs.js +1 -0
- package/util-jira-v3-api/index.d.ts +510 -0
- package/util-jira-v3-api/index.es.js +8 -0
- package/util-jira-v3-api/tsdoc-metadata.json +11 -0
- package/util-resolver/atlassian-app-util-resolver.api.json +1014 -0
- package/util-resolver/atlassian-app.api.md +90 -0
- package/util-resolver/index.cjs.js +1 -0
- package/util-resolver/index.d.ts +67 -0
- package/util-resolver/index.es.js +4 -0
- package/util-resolver/tsdoc-metadata.json +11 -0
- package/util-trigger/atlassian-app-util-trigger.api.json +792 -0
- package/util-trigger/atlassian-app.api.md +84 -0
- package/util-trigger/index.cjs.js +1 -0
- package/util-trigger/index.d.ts +266 -0
- package/util-trigger/index.es.js +1 -0
- package/util-trigger/tsdoc-metadata.json +11 -0
- package/valiantys-atlassian-app-3.2.0-alpha-1.tgz +0 -0
package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { showFlag as t } from "@forge/bridge";
|
|
3
|
+
import { useReducer as i } from "react";
|
|
4
|
+
import { AppFlagsDispatchContext as s } from "../../../../../../shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js";
|
|
5
|
+
import "@atlaskit/flag";
|
|
6
|
+
import "@atlaskit/icon/glyph/check-circle";
|
|
7
|
+
import "@atlaskit/icon/glyph/error";
|
|
8
|
+
import "@atlaskit/icon/glyph/info";
|
|
9
|
+
import "@atlaskit/icon/glyph/warning";
|
|
10
|
+
import "@atlaskit/tokens";
|
|
11
|
+
function w({ children: o }) {
|
|
12
|
+
const [r, e] = i(m, {});
|
|
13
|
+
return /* @__PURE__ */ p(s.Provider, { value: e, children: o });
|
|
14
|
+
}
|
|
15
|
+
function m(o, r) {
|
|
16
|
+
var e;
|
|
17
|
+
switch (r.type) {
|
|
18
|
+
case "add":
|
|
19
|
+
return r.props ? {
|
|
20
|
+
...o,
|
|
21
|
+
[r.props.id]: t(r.props)
|
|
22
|
+
} : (console.error("invalid flag action: ", JSON.stringify(r)), o);
|
|
23
|
+
case "remove":
|
|
24
|
+
return (e = o[r.id]) == null || e.close(), { ...o, [r.id]: void 0 };
|
|
25
|
+
default:
|
|
26
|
+
throw Error("Unknown action: " + r.type);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
w as AppFlagsProviderForge
|
|
31
|
+
};
|
package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("@atlaskit/button/new"),d=require("@atlaskit/dynamic-table"),x=require("@atlaskit/icon/glyph/refresh"),c=require("@atlaskit/primitives"),r=require("react");function g(s){if(!s)return"";const o=s/1e3;if(o<60)return`${o.toFixed(2)}s`;const n=o/60;return n<60?`${n.toFixed(2)}m`:`${(n/60).toFixed(2)}h`}function m(s){const[o,n]=r.useState([]),[l,a]=r.useState(!0),i=r.useCallback(async()=>{try{a(!0);const e=await s.loadFn();n(e.log)}catch(e){console.error(e)}finally{a(!1)}},[s]);return r.useEffect(()=>void i(),[i]),t.jsxs(c.Flex,{gap:"space.100",alignItems:"start",children:[t.jsx(c.Box,{children:t.jsx(d,{isLoading:l,rows:o==null?void 0:o.map(e=>({key:`row-${e.jobId}`,cells:[{key:"startTime",content:e.startTime?new Date(e.startTime).toLocaleString():""},{key:"description",content:e.description},{key:"inProgress",content:t.jsx(c.Text,{color:e.inProgress?"color.text.information":"color.text.subtle",children:e.inProgress?"Yes":"No"})},{key:"success",content:t.jsx(c.Text,{color:e.success?"color.text.success":"color.text.subtle",children:e.success?"Yes":"No"})},{key:"failed",content:t.jsx(c.Text,{color:e.failed?"color.text.danger":"color.text.subtle",children:e.failed?"Yes":"No"})},{key:"time",content:g(e.time)},{key:"result",content:e.result}]})),head:{cells:[{key:"startTime",content:"Queued at"},{key:"description",content:"Operation"},{key:"inProgress",content:"In Progress"},{key:"success",content:"Success"},{key:"failed",content:"Failed"},{key:"time",content:"Time"},{key:"result",content:"Result"}]},loadingSpinnerSize:"small",rowsPerPage:5,defaultPage:1,emptyView:t.jsx("p",{children:"No jobs available"})})}),t.jsx(u.IconButton,{icon:x,label:"Refresh",appearance:"subtle",onClick:()=>i()})]})}exports.JobLogTable=m;
|
package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.es.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { IconButton as d } from "@atlaskit/button/new";
|
|
3
|
+
import m from "@atlaskit/dynamic-table";
|
|
4
|
+
import f from "@atlaskit/icon/glyph/refresh";
|
|
5
|
+
import { Flex as g, Box as k, Text as c } from "@atlaskit/primitives";
|
|
6
|
+
import { useState as a, useCallback as p, useEffect as x } from "react";
|
|
7
|
+
function h(s) {
|
|
8
|
+
if (!s)
|
|
9
|
+
return "";
|
|
10
|
+
const o = s / 1e3;
|
|
11
|
+
if (o < 60)
|
|
12
|
+
return `${o.toFixed(2)}s`;
|
|
13
|
+
const n = o / 60;
|
|
14
|
+
return n < 60 ? `${n.toFixed(2)}m` : `${(n / 60).toFixed(2)}h`;
|
|
15
|
+
}
|
|
16
|
+
function I(s) {
|
|
17
|
+
const [o, n] = a([]), [i, l] = a(!0), r = p(async () => {
|
|
18
|
+
try {
|
|
19
|
+
l(!0);
|
|
20
|
+
const e = await s.loadFn();
|
|
21
|
+
n(e.log);
|
|
22
|
+
} catch (e) {
|
|
23
|
+
console.error(e);
|
|
24
|
+
} finally {
|
|
25
|
+
l(!1);
|
|
26
|
+
}
|
|
27
|
+
}, [s]);
|
|
28
|
+
return x(() => void r(), [r]), /* @__PURE__ */ u(g, { gap: "space.100", alignItems: "start", children: [
|
|
29
|
+
/* @__PURE__ */ t(k, { children: /* @__PURE__ */ t(
|
|
30
|
+
m,
|
|
31
|
+
{
|
|
32
|
+
isLoading: i,
|
|
33
|
+
rows: o == null ? void 0 : o.map((e) => ({
|
|
34
|
+
key: `row-${e.jobId}`,
|
|
35
|
+
cells: [
|
|
36
|
+
{
|
|
37
|
+
key: "startTime",
|
|
38
|
+
content: e.startTime ? new Date(e.startTime).toLocaleString() : ""
|
|
39
|
+
},
|
|
40
|
+
// { key: 'jobId', content: entry.jobId },
|
|
41
|
+
{ key: "description", content: e.description },
|
|
42
|
+
{
|
|
43
|
+
key: "inProgress",
|
|
44
|
+
content: /* @__PURE__ */ t(
|
|
45
|
+
c,
|
|
46
|
+
{
|
|
47
|
+
color: e.inProgress ? "color.text.information" : "color.text.subtle",
|
|
48
|
+
children: e.inProgress ? "Yes" : "No"
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: "success",
|
|
54
|
+
content: /* @__PURE__ */ t(
|
|
55
|
+
c,
|
|
56
|
+
{
|
|
57
|
+
color: e.success ? "color.text.success" : "color.text.subtle",
|
|
58
|
+
children: e.success ? "Yes" : "No"
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
key: "failed",
|
|
64
|
+
content: /* @__PURE__ */ t(
|
|
65
|
+
c,
|
|
66
|
+
{
|
|
67
|
+
color: e.failed ? "color.text.danger" : "color.text.subtle",
|
|
68
|
+
children: e.failed ? "Yes" : "No"
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
},
|
|
72
|
+
{ key: "time", content: h(e.time) },
|
|
73
|
+
{ key: "result", content: e.result }
|
|
74
|
+
]
|
|
75
|
+
})),
|
|
76
|
+
head: {
|
|
77
|
+
cells: [
|
|
78
|
+
{ key: "startTime", content: "Queued at" },
|
|
79
|
+
// { key: 'jobId', content: 'Job ID' },
|
|
80
|
+
{ key: "description", content: "Operation" },
|
|
81
|
+
{ key: "inProgress", content: "In Progress" },
|
|
82
|
+
{ key: "success", content: "Success" },
|
|
83
|
+
{ key: "failed", content: "Failed" },
|
|
84
|
+
{ key: "time", content: "Time" },
|
|
85
|
+
{ key: "result", content: "Result" }
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
loadingSpinnerSize: "small",
|
|
89
|
+
rowsPerPage: 5,
|
|
90
|
+
defaultPage: 1,
|
|
91
|
+
emptyView: /* @__PURE__ */ t("p", { children: "No jobs available" })
|
|
92
|
+
}
|
|
93
|
+
) }),
|
|
94
|
+
/* @__PURE__ */ t(
|
|
95
|
+
d,
|
|
96
|
+
{
|
|
97
|
+
icon: f,
|
|
98
|
+
label: "Refresh",
|
|
99
|
+
appearance: "subtle",
|
|
100
|
+
onClick: () => r()
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
] });
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
I as JobLogTable
|
|
107
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js");function y(e){return async({url:n,method:r,responseType:a="json",allowExperimental:f=!1},c)=>{const s={Accept:a==="json"?"application/json":"text/html"};c&&(s["Content-Type"]="application/json"),f&&(s["X-ExperimentalApi"]="opt-in");const i=JSON.stringify(c),t=await e(n,{method:r,headers:s,body:i});if(t.ok)return r==="DELETE"||t.status===204?void 0:a==="text"?o(t):p(t);{const u=`${r} ${n.value} - ${t.status} ${t.statusText}
|
|
2
|
+
Request Body: ${i}
|
|
3
|
+
Response Body: ${await o(t)}`;throw console.error(u),new l.FetchError(t.statusText,t.status,u)}}}async function o(e){try{return await e.text()}catch{return""}}async function p(e){try{return await e.json()}catch{return o(e)}}exports.makeProductFetchFn=y;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FetchError as p } from "../../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
|
|
2
|
+
function x(e) {
|
|
3
|
+
return async ({ url: n, method: s, responseType: a = "json", allowExperimental: f = !1 }, i) => {
|
|
4
|
+
const r = {
|
|
5
|
+
Accept: a === "json" ? "application/json" : "text/html"
|
|
6
|
+
};
|
|
7
|
+
i && (r["Content-Type"] = "application/json"), f && (r["X-ExperimentalApi"] = "opt-in");
|
|
8
|
+
const c = JSON.stringify(i), t = await e(n, {
|
|
9
|
+
method: s,
|
|
10
|
+
headers: r,
|
|
11
|
+
body: c
|
|
12
|
+
});
|
|
13
|
+
if (t.ok)
|
|
14
|
+
return s === "DELETE" || t.status === 204 ? void 0 : a === "text" ? o(t) : l(t);
|
|
15
|
+
{
|
|
16
|
+
const u = `${s} ${n.value} - ${t.status} ${t.statusText}
|
|
17
|
+
Request Body: ${c}
|
|
18
|
+
Response Body: ${await o(t)}`;
|
|
19
|
+
throw console.error(u), new p(t.statusText, t.status, u);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
async function o(e) {
|
|
24
|
+
try {
|
|
25
|
+
return await e.text();
|
|
26
|
+
} catch {
|
|
27
|
+
return "";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
async function l(e) {
|
|
31
|
+
try {
|
|
32
|
+
return await e.json();
|
|
33
|
+
} catch {
|
|
34
|
+
return o(e);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
x as makeProductFetchFn
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=class e{};e.getOauthToken="get-token";let t=e;exports.CommonResolverPaths=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../util-assets/src/lib/asset-type/index.cjs.js"),f=require("../../../../util-assets/src/lib/object/index.cjs.js"),T=require("../../../../util-assets/src/lib/object-type-attribute/index.cjs.js"),h=require("../../../../../../shared/util-error/src/index/index.cjs.js"),O=require("../global-icons/index.cjs.js"),p=require("../object/index.cjs.js"),l=require("../object-schema/index.cjs.js"),j=require("../object-type/index.cjs.js"),y=require("../object-type-attribute/index.cjs.js");function A(b,s){return b.map(e=>({...e,attributes:e.attributes.map(t=>({...t,objectTypeAttribute:s.find(r=>r.id===t.objectTypeAttributeId)}))}))}function w(b,s=!1){return e=>{const t=e.attributes.map(c=>[c,b==null?void 0:b.find(o=>o.toLowerCase()===c.objectTypeAttribute.name.toLowerCase())]).filter(([c,o])=>!b||!!o).map(([c,o])=>{const i=c.objectTypeAttribute,a=(c==null?void 0:c.objectAttributeValues[0].value)||"";return[o||i.name,{objectTypeAttributeId:i.id,value:a}]}),r=Object.fromEntries(t);return s&&(b!=null&&b.length)&&b.length!==t.length&&b.forEach(c=>{if(!r[c])throw new Error(`Object Type Attribute not configured for chosen resource/workspace. ${c}`)}),{workspaceId:e.workspaceId,objectTypeId:e.objectType.id,id:e.id,globalId:e.globalId,attributes:r}}}class I{constructor(s,e){this.fetch=s,this.workspaceId=e}async listObjects(s,e,t,r,c){const a=await this.getObjectType(s,!1),n=await p.queryAssetsObjects(this.fetch,this.workspaceId,`${t?t+" AND ":""}objectTypeId = ${a.id}`,r,c),u=A(n.values,n.objectTypeAttributes);return{startAt:n.startAt,maxResults:n.maxResults,total:n.total,isLast:n.isLast,values:u.map(w(e,!0))}}async readObject(s,e){const t=!!(e!=null&&e.length),r=await p.readAssetsObject(this.fetch,this.workspaceId,s);return this.mapObject(r,e,t)}async createObject(s,e,t){const r=Object.entries(t).map(([o,i])=>{var n;const a=(n=e.find(u=>u.name.toLowerCase()===o.toLowerCase()))==null?void 0:n.id;if(a)return f.createAssetsObjectAttributeIn(a,i);console.error(`No attribute defn found for ${o}`)}).filter(o=>o),c=await p.createAssetsObject(this.fetch,this.workspaceId,s,r);return this.readObject(c.id,e.map(o=>o.name))}async updateObject(s,e){const t=Object.values(s.attributes).map(c=>f.createAssetsObjectAttributeIn(c.objectTypeAttributeId,c.value)),r=await p.updateAssetsObject(this.fetch,s.workspaceId,s.objectTypeId,s.id,t);return this.mapObject(r,e)}deleteObject(s,e){return p.deleteAssetsObject(this.fetch,s,e)}async mapObject(s,e,t=!1){return w(e,t)(s)}async getObjectType(s,e=!1){const{schemaName:t,schemaKey:r,objectTypeName:c}=s;let i=(await l.getAssetsObjectSchemas(this.fetch,this.workspaceId)).find(u=>u.objectSchemaKey===r);if(!i)if(e)i=await l.createAssetsObjectSchema(this.fetch,this.workspaceId,t,r);else throw new h.AtlassianBadRequest(`Assets ${t} Schema not configured for chosen resource/workspace`);let n=(await j.getAssetsObjectTypes(this.fetch,this.workspaceId,i.id)).find(u=>u.name===c);if(!n)if(e){const m=(await O.getAssetsGlobalIcons(this.fetch,this.workspaceId))[0];n=await j.createAssetsObjectType(this.fetch,this.workspaceId,i.id,c,m.id)}else throw new h.AtlassianBadRequest(`Assets ${t} Schema ${c} Object Type not configured for chosen resource/workspace`);return n}async listObjectTypeAttributes(s,e,t=!1,r=!1){const c=await this.getObjectType(s,r),o=await this.getAttributeIdsForObjectTypeId(c.id,s,e,t,r);return{objectTypeId:c.id,objectTypeAttributes:o}}async createObjectType(s,e){const{objectTypeId:t}=await this.listObjectTypeAttributes(s,e,!0,!0);return t}async matchToExpectedAttributes(s,e,t,r,c=!1,o=!1){const i=await Promise.all(r.map(async a=>{let n=t.find(u=>u.name.toLowerCase()===a.name.toLowerCase());if(!n)if(o)n=await y.createAssetsObjectTypeAttribute(this.fetch,this.workspaceId,s,a.name,a.type||T.AssetsObjectTypeAttributeValueType.Text,a.name.toLowerCase()===e.labelAttributeName.toLowerCase());else{if(c)throw new h.AtlassianBadRequest(`Object Type Attribute not configured for chosen resource/workspace. ${a.name}`);return}return{...n,name:a.name}}));return i.find(a=>a==null?void 0:a.label)||i.push(t.find(a=>a.label)),i.filter(a=>a)}async getAttributeIdsForObjectTypeId(s,e,t,r=!1,c=!1){const o=await y.getAssetsObjectTypeAttributes(this.fetch,this.workspaceId,s);return t?this.matchToExpectedAttributes(s,e,o,t,r,c):o}async getAssetTypes(s=[]){return(await Promise.all((await l.getAssetsObjectSchemas(this.fetch,this.workspaceId)).filter(t=>!s.includes(t.objectSchemaKey)).map(async t=>{const r=await j.getAssetsObjectTypes(this.fetch,this.workspaceId,t.id);return Promise.all(r.map(async c=>{var a;const o={schemaName:t.name,schemaKey:t.objectSchemaKey,objectTypeName:c.name,labelAttributeName:""},i=await this.getAttributeIdsForObjectTypeId(c.id,o);return{...o,labelAttributeName:((a=Object.values(i).find(n=>n.label))==null?void 0:a.name)||d.DEFAULT_ASSET_OBJECT_TYPE_LABEL_FIELD_NAME}}))}))).flat()}}exports.AssetsObjectsService=I;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { DEFAULT_ASSET_OBJECT_TYPE_LABEL_FIELD_NAME as y } from "../../../../util-assets/src/lib/asset-type/index.es.js";
|
|
2
|
+
import { createAssetsObjectAttributeIn as f } from "../../../../util-assets/src/lib/object/index.es.js";
|
|
3
|
+
import { AssetsObjectTypeAttributeValueType as w } from "../../../../util-assets/src/lib/object-type-attribute/index.es.js";
|
|
4
|
+
import { AtlassianBadRequest as h } from "../../../../../../shared/util-error/src/index/index.es.js";
|
|
5
|
+
import { getAssetsGlobalIcons as d } from "../global-icons/index.es.js";
|
|
6
|
+
import { queryAssetsObjects as T, readAssetsObject as O, createAssetsObject as I, updateAssetsObject as A, deleteAssetsObject as g } from "../object/index.es.js";
|
|
7
|
+
import { getAssetsObjectSchemas as l, createAssetsObjectSchema as k } from "../object-schema/index.es.js";
|
|
8
|
+
import { getAssetsObjectTypes as m, createAssetsObjectType as L } from "../object-type/index.es.js";
|
|
9
|
+
import { createAssetsObjectTypeAttribute as S, getAssetsObjectTypeAttributes as E } from "../object-type-attribute/index.es.js";
|
|
10
|
+
function v(p, s) {
|
|
11
|
+
return p.map(
|
|
12
|
+
(e) => ({
|
|
13
|
+
...e,
|
|
14
|
+
attributes: e.attributes.map(
|
|
15
|
+
(t) => ({
|
|
16
|
+
...t,
|
|
17
|
+
objectTypeAttribute: s.find(
|
|
18
|
+
(r) => r.id === t.objectTypeAttributeId
|
|
19
|
+
)
|
|
20
|
+
})
|
|
21
|
+
)
|
|
22
|
+
})
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
function u(p, s = !1) {
|
|
26
|
+
return (e) => {
|
|
27
|
+
const t = e.attributes.map((a) => [
|
|
28
|
+
a,
|
|
29
|
+
p == null ? void 0 : p.find(
|
|
30
|
+
(o) => o.toLowerCase() === a.objectTypeAttribute.name.toLowerCase()
|
|
31
|
+
)
|
|
32
|
+
]).filter(([a, o]) => !p || !!o).map(([a, o]) => {
|
|
33
|
+
const n = a.objectTypeAttribute, c = (a == null ? void 0 : a.objectAttributeValues[0].value) || "";
|
|
34
|
+
return [
|
|
35
|
+
o || n.name,
|
|
36
|
+
// use the name as the user is expecting it if available (jira is case-insensitive)
|
|
37
|
+
{ objectTypeAttributeId: n.id, value: c }
|
|
38
|
+
];
|
|
39
|
+
}), r = Object.fromEntries(t);
|
|
40
|
+
return s && (p != null && p.length) && p.length !== t.length && p.forEach((a) => {
|
|
41
|
+
if (!r[a])
|
|
42
|
+
throw new Error(
|
|
43
|
+
`Object Type Attribute not configured for chosen resource/workspace. ${a}`
|
|
44
|
+
);
|
|
45
|
+
}), {
|
|
46
|
+
workspaceId: e.workspaceId,
|
|
47
|
+
objectTypeId: e.objectType.id,
|
|
48
|
+
id: e.id,
|
|
49
|
+
globalId: e.globalId,
|
|
50
|
+
attributes: r
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
class P {
|
|
55
|
+
constructor(s, e) {
|
|
56
|
+
this.fetch = s, this.workspaceId = e;
|
|
57
|
+
}
|
|
58
|
+
async listObjects(s, e, t, r, a) {
|
|
59
|
+
const c = await this.getObjectType(s, !1), i = await T(
|
|
60
|
+
this.fetch,
|
|
61
|
+
this.workspaceId,
|
|
62
|
+
`${t ? t + " AND " : ""}objectTypeId = ${c.id}`,
|
|
63
|
+
r,
|
|
64
|
+
a
|
|
65
|
+
), b = v(
|
|
66
|
+
i.values,
|
|
67
|
+
i.objectTypeAttributes
|
|
68
|
+
);
|
|
69
|
+
return {
|
|
70
|
+
startAt: i.startAt,
|
|
71
|
+
maxResults: i.maxResults,
|
|
72
|
+
total: i.total,
|
|
73
|
+
isLast: i.isLast,
|
|
74
|
+
values: b.map(
|
|
75
|
+
u(e, !0)
|
|
76
|
+
)
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
async readObject(s, e) {
|
|
80
|
+
const t = !!(e != null && e.length), r = await O(
|
|
81
|
+
this.fetch,
|
|
82
|
+
this.workspaceId,
|
|
83
|
+
s
|
|
84
|
+
);
|
|
85
|
+
return this.mapObject(
|
|
86
|
+
r,
|
|
87
|
+
e,
|
|
88
|
+
t
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
async createObject(s, e, t) {
|
|
92
|
+
const r = Object.entries(t).map(([o, n]) => {
|
|
93
|
+
var i;
|
|
94
|
+
const c = (i = e.find(
|
|
95
|
+
(b) => b.name.toLowerCase() === o.toLowerCase()
|
|
96
|
+
)) == null ? void 0 : i.id;
|
|
97
|
+
if (c)
|
|
98
|
+
return f(c, n);
|
|
99
|
+
console.error(`No attribute defn found for ${o}`);
|
|
100
|
+
}).filter((o) => o), a = await I(
|
|
101
|
+
this.fetch,
|
|
102
|
+
this.workspaceId,
|
|
103
|
+
s,
|
|
104
|
+
r
|
|
105
|
+
);
|
|
106
|
+
return this.readObject(
|
|
107
|
+
a.id,
|
|
108
|
+
e.map((o) => o.name)
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
async updateObject(s, e) {
|
|
112
|
+
const t = Object.values(s.attributes).map(
|
|
113
|
+
(a) => f(a.objectTypeAttributeId, a.value)
|
|
114
|
+
), r = await A(
|
|
115
|
+
this.fetch,
|
|
116
|
+
s.workspaceId,
|
|
117
|
+
s.objectTypeId,
|
|
118
|
+
s.id,
|
|
119
|
+
t
|
|
120
|
+
);
|
|
121
|
+
return this.mapObject(r, e);
|
|
122
|
+
}
|
|
123
|
+
deleteObject(s, e) {
|
|
124
|
+
return g(this.fetch, s, e);
|
|
125
|
+
}
|
|
126
|
+
async mapObject(s, e, t = !1) {
|
|
127
|
+
return u(
|
|
128
|
+
e,
|
|
129
|
+
t
|
|
130
|
+
)(s);
|
|
131
|
+
}
|
|
132
|
+
async getObjectType(s, e = !1) {
|
|
133
|
+
const { schemaName: t, schemaKey: r, objectTypeName: a } = s;
|
|
134
|
+
let n = (await l(
|
|
135
|
+
this.fetch,
|
|
136
|
+
this.workspaceId
|
|
137
|
+
)).find(
|
|
138
|
+
(b) => b.objectSchemaKey === r
|
|
139
|
+
);
|
|
140
|
+
if (!n)
|
|
141
|
+
if (e)
|
|
142
|
+
n = await k(
|
|
143
|
+
this.fetch,
|
|
144
|
+
this.workspaceId,
|
|
145
|
+
t,
|
|
146
|
+
r
|
|
147
|
+
);
|
|
148
|
+
else
|
|
149
|
+
throw new h(
|
|
150
|
+
`Assets ${t} Schema not configured for chosen resource/workspace`
|
|
151
|
+
);
|
|
152
|
+
let i = (await m(
|
|
153
|
+
this.fetch,
|
|
154
|
+
this.workspaceId,
|
|
155
|
+
n.id
|
|
156
|
+
)).find(
|
|
157
|
+
(b) => b.name === a
|
|
158
|
+
);
|
|
159
|
+
if (!i)
|
|
160
|
+
if (e) {
|
|
161
|
+
const j = (await d(this.fetch, this.workspaceId))[0];
|
|
162
|
+
i = await L(
|
|
163
|
+
this.fetch,
|
|
164
|
+
this.workspaceId,
|
|
165
|
+
n.id,
|
|
166
|
+
a,
|
|
167
|
+
j.id
|
|
168
|
+
);
|
|
169
|
+
} else
|
|
170
|
+
throw new h(
|
|
171
|
+
`Assets ${t} Schema ${a} Object Type not configured for chosen resource/workspace`
|
|
172
|
+
);
|
|
173
|
+
return i;
|
|
174
|
+
}
|
|
175
|
+
async listObjectTypeAttributes(s, e, t = !1, r = !1) {
|
|
176
|
+
const a = await this.getObjectType(s, r), o = await this.getAttributeIdsForObjectTypeId(
|
|
177
|
+
a.id,
|
|
178
|
+
s,
|
|
179
|
+
e,
|
|
180
|
+
t,
|
|
181
|
+
r
|
|
182
|
+
);
|
|
183
|
+
return {
|
|
184
|
+
objectTypeId: a.id,
|
|
185
|
+
objectTypeAttributes: o
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
async createObjectType(s, e) {
|
|
189
|
+
const { objectTypeId: t } = await this.listObjectTypeAttributes(
|
|
190
|
+
s,
|
|
191
|
+
e,
|
|
192
|
+
!0,
|
|
193
|
+
!0
|
|
194
|
+
);
|
|
195
|
+
return t;
|
|
196
|
+
}
|
|
197
|
+
async matchToExpectedAttributes(s, e, t, r, a = !1, o = !1) {
|
|
198
|
+
const n = await Promise.all(
|
|
199
|
+
r.map(async (c) => {
|
|
200
|
+
let i = t.find(
|
|
201
|
+
(b) => b.name.toLowerCase() === c.name.toLowerCase()
|
|
202
|
+
);
|
|
203
|
+
if (!i)
|
|
204
|
+
if (o)
|
|
205
|
+
i = await S(
|
|
206
|
+
this.fetch,
|
|
207
|
+
this.workspaceId,
|
|
208
|
+
s,
|
|
209
|
+
c.name,
|
|
210
|
+
c.type || w.Text,
|
|
211
|
+
c.name.toLowerCase() === e.labelAttributeName.toLowerCase()
|
|
212
|
+
);
|
|
213
|
+
else {
|
|
214
|
+
if (a)
|
|
215
|
+
throw new h(
|
|
216
|
+
`Object Type Attribute not configured for chosen resource/workspace. ${c.name}`
|
|
217
|
+
);
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
return { ...i, name: c.name };
|
|
221
|
+
})
|
|
222
|
+
);
|
|
223
|
+
return n.find((c) => c == null ? void 0 : c.label) || n.push(t.find((c) => c.label)), n.filter((c) => c);
|
|
224
|
+
}
|
|
225
|
+
async getAttributeIdsForObjectTypeId(s, e, t, r = !1, a = !1) {
|
|
226
|
+
const o = await E(
|
|
227
|
+
this.fetch,
|
|
228
|
+
this.workspaceId,
|
|
229
|
+
s
|
|
230
|
+
);
|
|
231
|
+
return t ? this.matchToExpectedAttributes(
|
|
232
|
+
s,
|
|
233
|
+
e,
|
|
234
|
+
o,
|
|
235
|
+
t,
|
|
236
|
+
r,
|
|
237
|
+
a
|
|
238
|
+
) : o;
|
|
239
|
+
}
|
|
240
|
+
async getAssetTypes(s = []) {
|
|
241
|
+
return (await Promise.all(
|
|
242
|
+
(await l(this.fetch, this.workspaceId)).filter(
|
|
243
|
+
(t) => !s.includes(t.objectSchemaKey)
|
|
244
|
+
).map(async (t) => {
|
|
245
|
+
const r = await m(
|
|
246
|
+
this.fetch,
|
|
247
|
+
this.workspaceId,
|
|
248
|
+
t.id
|
|
249
|
+
);
|
|
250
|
+
return Promise.all(
|
|
251
|
+
r.map(async (a) => {
|
|
252
|
+
var c;
|
|
253
|
+
const o = {
|
|
254
|
+
schemaName: t.name,
|
|
255
|
+
schemaKey: t.objectSchemaKey,
|
|
256
|
+
objectTypeName: a.name,
|
|
257
|
+
labelAttributeName: ""
|
|
258
|
+
}, n = await this.getAttributeIdsForObjectTypeId(
|
|
259
|
+
a.id,
|
|
260
|
+
o
|
|
261
|
+
);
|
|
262
|
+
return {
|
|
263
|
+
...o,
|
|
264
|
+
labelAttributeName: ((c = Object.values(n).find((i) => i.label)) == null ? void 0 : c.name) || y
|
|
265
|
+
};
|
|
266
|
+
})
|
|
267
|
+
);
|
|
268
|
+
})
|
|
269
|
+
)).flat();
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export {
|
|
273
|
+
P as AssetsObjectsService
|
|
274
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function t(e,s){return await e.fetch({url:e.route`/jsm/assets/workspace/${s}/v1/icon/global`,method:"GET"})}exports.getAssetsGlobalIcons=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function c(e,t,s,r=0,a=100){return await e.fetch({url:e.route`/jsm/assets/workspace/${t}/v1/object/aql?startAt=${r}&maxResults=${a}`,method:"POST"},{qlQuery:s})}async function o(e,t,s,r,a){return await e.fetch({url:e.route`/jsm/assets/workspace/${t}/v1/object/${r}`,method:"PUT"},{objectTypeId:s,attributes:a})}async function u(e,t,s,r){return await e.fetch({url:e.route`/jsm/assets/workspace/${t}/v1/object/create`,method:"POST"},{objectTypeId:s,attributes:r})}async function n(e,t,s){return await e.fetch({url:e.route`/jsm/assets/workspace/${t}/v1/object/${s}`,method:"DELETE"})}async function j(e,t,s){return await e.fetch({url:e.route`/jsm/assets/workspace/${t}/v1/object/${s}`,method:"GET"})}exports.createAssetsObject=u;exports.deleteAssetsObject=n;exports.queryAssetsObjects=c;exports.readAssetsObject=j;exports.updateAssetsObject=o;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
async function c(t, e, s, a = 0, r = 100) {
|
|
2
|
+
return await t.fetch(
|
|
3
|
+
{
|
|
4
|
+
url: t.route`/jsm/assets/workspace/${e}/v1/object/aql?startAt=${a}&maxResults=${r}`,
|
|
5
|
+
method: "POST"
|
|
6
|
+
},
|
|
7
|
+
{ qlQuery: s }
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
async function o(t, e, s, a, r) {
|
|
11
|
+
return await t.fetch(
|
|
12
|
+
{
|
|
13
|
+
url: t.route`/jsm/assets/workspace/${e}/v1/object/${a}`,
|
|
14
|
+
method: "PUT"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
objectTypeId: s,
|
|
18
|
+
attributes: r
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
async function u(t, e, s, a) {
|
|
23
|
+
return await t.fetch(
|
|
24
|
+
{
|
|
25
|
+
url: t.route`/jsm/assets/workspace/${e}/v1/object/create`,
|
|
26
|
+
method: "POST"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
objectTypeId: s,
|
|
30
|
+
attributes: a
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
async function n(t, e, s) {
|
|
35
|
+
return await t.fetch({
|
|
36
|
+
url: t.route`/jsm/assets/workspace/${e}/v1/object/${s}`,
|
|
37
|
+
method: "DELETE"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
async function j(t, e, s) {
|
|
41
|
+
return await t.fetch({
|
|
42
|
+
url: t.route`/jsm/assets/workspace/${e}/v1/object/${s}`,
|
|
43
|
+
method: "GET"
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
u as createAssetsObject,
|
|
48
|
+
n as deleteAssetsObject,
|
|
49
|
+
c as queryAssetsObjects,
|
|
50
|
+
j as readAssetsObject,
|
|
51
|
+
o as updateAssetsObject
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function c(e,t,s){return await e.fetch({url:e.route`/jsm/assets/workspace/${t}/v1/objectconnectedtickets/${s}/tickets`,method:"GET"})}exports.getAssetLinkedIssues=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function c(e,t){return(await e.fetch({url:e.route`/jsm/assets/workspace/${t}/v1/objectschema/list`,method:"GET"})).values}async function r(e,t,s,a){return await e.fetch({url:e.route`/jsm/assets/workspace/${t}/v1/objectschema/create`,method:"POST"},{name:s,objectSchemaKey:a})}exports.createAssetsObjectSchema=r;exports.getAssetsObjectSchemas=c;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
async function c(e, t) {
|
|
2
|
+
return (await e.fetch({
|
|
3
|
+
url: e.route`/jsm/assets/workspace/${t}/v1/objectschema/list`,
|
|
4
|
+
method: "GET"
|
|
5
|
+
})).values;
|
|
6
|
+
}
|
|
7
|
+
async function r(e, t, s, a) {
|
|
8
|
+
return await e.fetch(
|
|
9
|
+
{
|
|
10
|
+
url: e.route`/jsm/assets/workspace/${t}/v1/objectschema/create`,
|
|
11
|
+
method: "POST"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: s,
|
|
15
|
+
objectSchemaKey: a
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
r as createAssetsObjectSchema,
|
|
21
|
+
c as getAssetsObjectSchemas
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function a(e,t,s){return await e.fetch({method:"GET",url:e.route`/jsm/assets/workspace/${t}/v1/objectschema/${s}/objecttypes`})}async function o(e,t,s,c,r){return await e.fetch({method:"POST",url:e.route`/jsm/assets/workspace/${t}/v1/objecttype/create`},{objectSchemaId:s,name:c,iconId:r})}exports.createAssetsObjectType=o;exports.getAssetsObjectTypes=a;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
async function r(e, t, s) {
|
|
2
|
+
return await e.fetch({
|
|
3
|
+
method: "GET",
|
|
4
|
+
url: e.route`/jsm/assets/workspace/${t}/v1/objectschema/${s}/objecttypes`
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
async function o(e, t, s, c, a) {
|
|
8
|
+
return await e.fetch(
|
|
9
|
+
{
|
|
10
|
+
method: "POST",
|
|
11
|
+
url: e.route`/jsm/assets/workspace/${t}/v1/objecttype/create`
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
objectSchemaId: s,
|
|
15
|
+
name: c,
|
|
16
|
+
iconId: a
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
o as createAssetsObjectType,
|
|
22
|
+
r as getAssetsObjectTypes
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function c(t,e,s){return await t.fetch({url:t.route`/jsm/assets/workspace/${e}/v1/objecttype/${s}/attributes`,method:"GET"})}async function b(t,e,s,r,a,u){return await t.fetch({url:t.route`/jsm/assets/workspace/${e}/v1/objecttypeattribute/${s}`,method:"POST"},{name:r,type:0,defaultTypeId:a,label:u})}exports.createAssetsObjectTypeAttribute=b;exports.getAssetsObjectTypeAttributes=c;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
async function c(t, e, s) {
|
|
2
|
+
return await t.fetch({
|
|
3
|
+
url: t.route`/jsm/assets/workspace/${e}/v1/objecttype/${s}/attributes`,
|
|
4
|
+
method: "GET"
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
async function o(t, e, s, r, a, u) {
|
|
8
|
+
return await t.fetch(
|
|
9
|
+
{
|
|
10
|
+
url: t.route`/jsm/assets/workspace/${e}/v1/objecttypeattribute/${s}`,
|
|
11
|
+
method: "POST"
|
|
12
|
+
},
|
|
13
|
+
{ name: r, type: 0, defaultTypeId: a, label: u }
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
o as createAssetsObjectTypeAttribute,
|
|
18
|
+
c as getAssetsObjectTypeAttributes
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=class a{constructor(e){this.fetchSvc=e}async updateProperty(e,t,s){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${e}/properties/${t}`},s)}async updateField(e,t,s){await this.updateFields(e,{[t]:s})}async updateFields(e,t){await this.updateIssue(e,{fields:t})}async getIssueField(e,t){var s;return(s=await this.getIssueFields(e,[t]))==null?void 0:s[t]}async getIssueFields(e,t){return(await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}`})).fields}async getIssue(e,t=["*all"],s=!1){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}&expand=${s?"renderedFields":""}`})}async issueSearch(e,t,s=50){let c;const r=[];do{const h=await this.issueSearchByPage(e,t,c,s);r.push(...h.issues),c=h.nextPageToken}while(c!==void 0);return r}async issueSearchByPage(e,t,s,c=50){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/search/jql`},{fields:t,jql:e,maxResults:c,nextPageToken:s})}async addWorklog(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/worklog`},t)}async queryForIssuesInProjects(e){const t=`project IN (${e.join(",")})`;return this.issueSearch(t,["key","project"],5e3)}async createIssue(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue`},e)}async updateIssue(e,t){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${e}`},t)}async getIssueComments(e,t=0){const s=t?`?startAt=${t}`:"";return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment${s}`})}async getIssueCommentById(e,t){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment/${t}`})}async addIssueComment(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment`},{body:t})}async transitionIssue(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/transitions`},t)}async createIssueLink(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issueLink`},e)}async getIssueTypes(){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issuetype`})}async getIssueTypeSchemes({maxResults:e,orderBy:t,startAt:s,expand:c,id:r,queryString:h}={}){const i=new URLSearchParams;return c&&i.append("expand",c),e&&i.append("maxResults",e.toString()),t&&i.append("orderBy",t),s&&i.append("startAt",s.toString()),r&&r.forEach(n=>i.append("id",n)),h&&i.append("queryString",h),this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issuetypescheme?${i}`})}async getIssueTypeSchemesForProject({maxResults:e,startAt:t,projectId:s}={}){const c=new URLSearchParams;return e&&c.append("maxResults",e.toString()),t&&c.append("startAt",t.toString()),s&&s.forEach(r=>c.append("projectId",r)),this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issuetypescheme/project?${c}`})}};a.issueUrl="/rest/api/3/issue";let u=a;exports.JiraIssueService=u;
|