@valiantys/atlassian-app-frontend 2.0.0 → 3.0.0-alpha-2
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/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/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 +81 -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-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 +4 -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 +81 -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 +45 -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 +58 -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 +158 -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 +19 -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 +70 -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 +84 -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 +73 -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-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-expand-panel/src/lib/panel/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.es.js +26 -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 +41 -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-service/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-service/index.es.js +38 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-service-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-service-provider/index.es.js +20 -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-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 +20 -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/atlassian-app-frontend-atlassian-app.api.json +636 -0
- package/atlassian-app/atlassian-app-frontend.api.md +56 -0
- package/atlassian-app/index.cjs.js +1 -0
- package/atlassian-app/index.d.ts +114 -0
- package/atlassian-app/index.es.js +5 -0
- package/atlassian-app/tsdoc-metadata.json +11 -0
- package/atlassian-app-custom-ui/atlassian-app-frontend-atlassian-app-custom-ui.api.json +242 -0
- package/atlassian-app-custom-ui/atlassian-app-frontend.api.md +17 -0
- package/atlassian-app-custom-ui/index.cjs.js +1 -0
- package/atlassian-app-custom-ui/index.d.ts +26 -0
- package/atlassian-app-custom-ui/index.es.js +4 -0
- package/{tsdoc-metadata.json → atlassian-app-custom-ui/tsdoc-metadata.json} +1 -1
- package/{style.css → atlassian-app-frontend.css} +1 -1
- package/atlassian-app-standalone/atlassian-app-frontend-atlassian-app-standalone.api.json +527 -0
- package/atlassian-app-standalone/atlassian-app-frontend.api.md +44 -0
- package/atlassian-app-standalone/index.cjs.js +1 -0
- package/atlassian-app-standalone/index.d.ts +43 -0
- package/atlassian-app-standalone/index.es.js +4 -0
- package/atlassian-app-standalone/tsdoc-metadata.json +11 -0
- package/atlassian-app-test/atlassian-app-frontend-atlassian-app-test.api.json +514 -0
- package/atlassian-app-test/atlassian-app-frontend.api.md +45 -0
- package/atlassian-app-test/index.cjs.js +1 -0
- package/atlassian-app-test/index.d.ts +73 -0
- package/atlassian-app-test/index.es.js +5 -0
- package/atlassian-app-test/tsdoc-metadata.json +11 -0
- package/atlassian-app-ui-kit/atlassian-app-frontend-atlassian-app-ui-kit.api.json +229 -0
- package/atlassian-app-ui-kit/atlassian-app-frontend.api.md +15 -0
- package/atlassian-app-ui-kit/index.cjs.js +1 -0
- package/atlassian-app-ui-kit/index.d.ts +6 -0
- package/atlassian-app-ui-kit/index.es.js +4 -0
- package/atlassian-app-ui-kit/tsdoc-metadata.json +11 -0
- package/data-access-assets/atlassian-app-frontend-data-access-assets.api.json +2441 -0
- package/data-access-assets/atlassian-app-frontend.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-frontend-data-access-atlassian-product-fetch-oauth.api.json +1087 -0
- package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend.api.md +73 -0
- package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -0
- package/data-access-atlassian-product-fetch-oauth/index.d.ts +67 -0
- package/data-access-atlassian-product-fetch-oauth/index.es.js +11 -0
- package/data-access-atlassian-product-fetch-oauth/tsdoc-metadata.json +11 -0
- package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +1033 -0
- package/data-access-issue/atlassian-app-frontend.api.md +49 -0
- package/data-access-issue/index.cjs.js +1 -0
- package/data-access-issue/index.d.ts +287 -0
- package/data-access-issue/index.es.js +4 -0
- package/data-access-issue/tsdoc-metadata.json +11 -0
- package/data-access-jql/atlassian-app-frontend-data-access-jql.api.json +388 -0
- package/data-access-jql/atlassian-app-frontend.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-resources/atlassian-app-frontend-data-access-resources.api.json +515 -0
- package/data-access-resources/atlassian-app-frontend.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-workspaces/atlassian-app-frontend-data-access-workspaces.api.json +406 -0
- package/data-access-workspaces/atlassian-app-frontend.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/package.json +159 -21
- 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 +22 -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 +18 -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 +31 -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 +63 -0
- package/ui-app-flags/atlassian-app-frontend-ui-app-flags.api.json +587 -0
- package/ui-app-flags/atlassian-app-frontend.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-atlassian-product-fetch/atlassian-app-frontend-ui-atlassian-product-fetch.api.json +418 -0
- package/ui-atlassian-product-fetch/atlassian-app-frontend.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-frontend-ui-backend-adapter.api.json +402 -0
- package/ui-backend-adapter/atlassian-app-frontend.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-frontend-ui-chosen-resource-check.api.json +388 -0
- package/ui-chosen-resource-check/atlassian-app-frontend.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-frontend-ui-chosen-workspace-check.api.json +362 -0
- package/ui-chosen-workspace-check/atlassian-app-frontend.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-drop-target/atlassian-app-frontend-ui-drop-target.api.json +586 -0
- package/ui-drop-target/atlassian-app-frontend.api.md +47 -0
- package/ui-drop-target/index.cjs.js +1 -0
- package/ui-drop-target/index.d.ts +31 -0
- package/ui-drop-target/index.es.js +6 -0
- package/ui-drop-target/tsdoc-metadata.json +11 -0
- package/ui-expand-panel/atlassian-app-frontend-ui-expand-panel.api.json +252 -0
- package/ui-expand-panel/atlassian-app-frontend.api.md +23 -0
- package/ui-expand-panel/index.cjs.js +1 -0
- package/ui-expand-panel/index.d.ts +30 -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-frontend-ui-host-router.api.json +813 -0
- package/ui-host-router/atlassian-app-frontend.api.md +60 -0
- package/ui-host-router/index.cjs.js +1 -0
- package/ui-host-router/index.d.ts +39 -0
- package/ui-host-router/index.es.js +9 -0
- package/ui-host-router/tsdoc-metadata.json +11 -0
- package/ui-load-data-hook/atlassian-app-frontend-ui-load-data-hook.api.json +329 -0
- package/ui-load-data-hook/atlassian-app-frontend.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-frontend-ui-modal.api.json +1377 -0
- package/ui-modal/atlassian-app-frontend.api.md +109 -0
- package/ui-modal/index.cjs.js +1 -0
- package/ui-modal/index.d.ts +121 -0
- package/ui-modal/index.es.js +16 -0
- package/ui-modal/tsdoc-metadata.json +11 -0
- package/ui-oauth-login/atlassian-app-frontend-ui-oauth-login.api.json +469 -0
- package/ui-oauth-login/atlassian-app-frontend.api.md +38 -0
- package/ui-oauth-login/index.cjs.js +1 -0
- package/ui-oauth-login/index.d.ts +24 -0
- package/ui-oauth-login/index.es.js +5 -0
- package/ui-oauth-login/tsdoc-metadata.json +11 -0
- package/ui-page-loading-view/atlassian-app-frontend-ui-page-loading-view.api.json +237 -0
- package/ui-page-loading-view/atlassian-app-frontend.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-frontend-ui-remote-adapter.api.json +486 -0
- package/ui-remote-adapter/atlassian-app-frontend.api.md +43 -0
- package/ui-remote-adapter/index.cjs.js +1 -0
- package/ui-remote-adapter/index.d.ts +32 -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-frontend-ui-view-context.api.json +992 -0
- package/ui-view-context/atlassian-app-frontend.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-frontend-util-assets.api.json +4726 -0
- package/util-assets/atlassian-app-frontend.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-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +1566 -0
- package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +97 -0
- package/util-atlassian-product-fetch/index.cjs.js +1 -0
- package/util-atlassian-product-fetch/index.d.ts +58 -0
- package/util-atlassian-product-fetch/index.es.js +8 -0
- package/util-atlassian-product-fetch/tsdoc-metadata.json +11 -0
- package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +4557 -0
- package/util-jira-v3-api/atlassian-app-frontend.api.md +499 -0
- package/util-jira-v3-api/index.cjs.js +1 -0
- package/util-jira-v3-api/index.d.ts +328 -0
- package/util-jira-v3-api/index.es.js +4 -0
- package/util-jira-v3-api/tsdoc-metadata.json +11 -0
- package/util-resolver/atlassian-app-frontend-util-resolver.api.json +1014 -0
- package/util-resolver/atlassian-app-frontend.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/atlassian-app-forge-BwFXF-6M.js +0 -3
- package/atlassian-app-forge-DG01gNAI.mjs +0 -139
- package/atlassian-app-frontend.api.json +0 -9609
- package/atlassian-app-frontend.api.md +0 -797
- package/index-BePJjrLy.js +0 -1
- package/index-ZJX0bAUh.mjs +0 -23
- package/index.d.ts +0 -702
- package/index.js +0 -2
- package/index.mjs +0 -1303
- package/valiantys-atlassian-app-frontend-2.0.0.tgz +0 -0
|
@@ -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
|
+
};
|
package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js
ADDED
|
@@ -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;
|
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
|
+
};
|
|
@@ -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 h=class h{constructor(e){this.fetchSvc=e}async updateField(e,t,s){await this.updateFields(e,{[t]:s})}async updateFields(e,t){await this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${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"]){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}`})}async issueSearch(e,t,s=50){let c;const r=[];do{const u=await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/search/jql?jql=${e}&fields=${t.join(",")}&maxResults=${s}&${c?"nextPageToken="+c:""}`});r.push(...u.issues),c=u.nextPageToken}while(c!==void 0);return r}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"],5e3)}async createIssue(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/2/issue`},e)}async updateIssue(e,t){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/2/issue/${e}`},t)}};h.issueUrl="/rest/api/3/issue";let i=h;exports.JiraIssueService=i;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const i = class i {
|
|
2
|
+
constructor(e) {
|
|
3
|
+
this.fetchSvc = e;
|
|
4
|
+
}
|
|
5
|
+
async updateField(e, s, t) {
|
|
6
|
+
await this.updateFields(e, { [s]: t });
|
|
7
|
+
}
|
|
8
|
+
async updateFields(e, s) {
|
|
9
|
+
await this.fetchSvc.fetch(
|
|
10
|
+
{
|
|
11
|
+
method: "PUT",
|
|
12
|
+
url: this.fetchSvc.route`/rest/api/3/issue/${e}`
|
|
13
|
+
},
|
|
14
|
+
{ fields: s }
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
async getIssueField(e, s) {
|
|
18
|
+
var t;
|
|
19
|
+
return (t = await this.getIssueFields(e, [s])) == null ? void 0 : t[s];
|
|
20
|
+
}
|
|
21
|
+
async getIssueFields(e, s) {
|
|
22
|
+
return (await this.fetchSvc.fetch({
|
|
23
|
+
method: "GET",
|
|
24
|
+
url: this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${s.join(",")}`
|
|
25
|
+
})).fields;
|
|
26
|
+
}
|
|
27
|
+
async getIssue(e, s = ["*all"]) {
|
|
28
|
+
return this.fetchSvc.fetch({
|
|
29
|
+
method: "GET",
|
|
30
|
+
url: this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${s.join(",")}`
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async issueSearch(e, s, t = 50) {
|
|
34
|
+
let c;
|
|
35
|
+
const h = [];
|
|
36
|
+
do {
|
|
37
|
+
const u = await this.fetchSvc.fetch({
|
|
38
|
+
method: "GET",
|
|
39
|
+
url: this.fetchSvc.route`/rest/api/3/search/jql?jql=${e}&fields=${s.join(",")}&maxResults=${t}&${c ? "nextPageToken=" + c : ""}`
|
|
40
|
+
});
|
|
41
|
+
h.push(...u.issues), c = u.nextPageToken;
|
|
42
|
+
} while (c !== void 0);
|
|
43
|
+
return h;
|
|
44
|
+
}
|
|
45
|
+
async addWorklog(e, s) {
|
|
46
|
+
return this.fetchSvc.fetch(
|
|
47
|
+
{
|
|
48
|
+
method: "POST",
|
|
49
|
+
url: this.fetchSvc.route`/rest/api/3/issue/${e}/worklog`
|
|
50
|
+
},
|
|
51
|
+
s
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
async queryForIssuesInProjects(e) {
|
|
55
|
+
const s = `project IN (${e.join(",")})`;
|
|
56
|
+
return this.issueSearch(s, ["key"], 5e3);
|
|
57
|
+
}
|
|
58
|
+
async createIssue(e) {
|
|
59
|
+
return this.fetchSvc.fetch(
|
|
60
|
+
{
|
|
61
|
+
method: "POST",
|
|
62
|
+
url: this.fetchSvc.route`/rest/api/2/issue`
|
|
63
|
+
},
|
|
64
|
+
e
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
async updateIssue(e, s) {
|
|
68
|
+
return this.fetchSvc.fetch(
|
|
69
|
+
{
|
|
70
|
+
method: "PUT",
|
|
71
|
+
url: this.fetchSvc.route`/rest/api/2/issue/${e}`
|
|
72
|
+
},
|
|
73
|
+
s
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
i.issueUrl = "/rest/api/3/issue";
|
|
78
|
+
let r = i;
|
|
79
|
+
export {
|
|
80
|
+
r as JiraIssueService
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=class s{constructor(t){this.fetchSvc=t}async getPrecomputations(t){var c;const e=await((c=this.fetchSvc)==null?void 0:c.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/jql/function/computation`,responseType:"json"}));return console.log("response?",e),e.values.filter(n=>n.functionKey.endsWith(t))}async updatePrecomputations(t){var e;return(e=this.fetchSvc)==null?void 0:e.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/jql/function/computation`},{values:t})}};s.url="/rest/api/3/jql/function/computation";let o=s;exports.JqlPrecomputationService=o;
|