abstra 3.24.1__py3-none-any.whl → 3.24.2__py3-none-any.whl
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.
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/METADATA +1 -1
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/RECORD +200 -204
- abstra_internals/contracts_generated.py +1016 -758
- abstra_internals/controllers/git.py +4 -2
- abstra_internals/controllers/main.py +1 -1
- abstra_internals/repositories/git/git_test.py +5 -2
- abstra_internals/repositories/git/native.py +11 -5
- abstra_internals/repositories/git/types.py +1 -1
- abstra_internals/server/routes/git.py +11 -2
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js +2 -0
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js +2 -0
- abstra_statics/dist/assets/ApiKeys.dafa1dc2.js +2 -0
- abstra_statics/dist/assets/App.45396b70.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.db5596a1.js +2 -0
- abstra_statics/dist/assets/{BaseLayout.72a6c8f2.js → BaseLayout.135a51d9.js} +2 -2
- abstra_statics/dist/assets/Billing.622c9155.js +2 -0
- abstra_statics/dist/assets/{Breadcrumb.5c786c09.js → Breadcrumb.8a82fa01.js} +3 -3
- abstra_statics/dist/assets/Builds.38c0f966.css +1 -0
- abstra_statics/dist/assets/Builds.c3fd9633.js +2 -0
- abstra_statics/dist/assets/{Card.fc77085c.js → Card.38a860a4.js} +5 -5
- abstra_statics/dist/assets/{CircularLoading.998b223a.js → CircularLoading.217756fb.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.4c4707d8.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.121898a9.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.b594798e.css +1 -0
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.502d779a.js +2 -0
- abstra_statics/dist/assets/ContentLayout.b1c94c2b.js +2 -0
- abstra_statics/dist/assets/CrudView.75a430a4.js +2 -0
- abstra_statics/dist/assets/CrudView.8abe5bc2.css +1 -0
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js +2 -0
- abstra_statics/dist/assets/EditorLogin.fba78ce9.js +2 -0
- abstra_statics/dist/assets/EditorsView.1a9ccb13.js +2 -0
- abstra_statics/dist/assets/EnvVars.d77957ea.js +2 -0
- abstra_statics/dist/assets/Error.5bd293cc.js +2 -0
- abstra_statics/dist/assets/ExclamationCircleOutlined.5d5c3f30.js +2 -0
- abstra_statics/dist/assets/Files.39b07d88.css +1 -0
- abstra_statics/dist/assets/Files.c4ce443f.js +2 -0
- abstra_statics/dist/assets/Form.a4787001.js +2 -0
- abstra_statics/dist/assets/{FormRunner.46f6426d.css → FormRunner.1e6e7d2a.css} +1 -1
- abstra_statics/dist/assets/FormRunner.73650f9e.js +2 -0
- abstra_statics/dist/assets/Home.19a2303b.js +2 -0
- abstra_statics/dist/assets/Home.4eff6ce9.js +2 -0
- abstra_statics/dist/assets/Home.e8bf9440.css +1 -0
- abstra_statics/dist/assets/LoadingContainer.97fa8f2e.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.e309ab16.js +2 -0
- abstra_statics/dist/assets/Login.632cada3.js +2 -0
- abstra_statics/dist/assets/{Login.75d13f6c.css → Login.ac75228f.css} +1 -1
- abstra_statics/dist/assets/Login.ecec1ff2.js +2 -0
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js +2 -0
- abstra_statics/dist/assets/Logo.d77d5637.js +2 -0
- abstra_statics/dist/assets/Logs.c1f01b05.js +2 -0
- abstra_statics/dist/assets/LogsController.0ff97ed4.css +1 -0
- abstra_statics/dist/assets/LogsController.2dceb3d3.js +2 -0
- abstra_statics/dist/assets/Main.44b7640e.js +2 -0
- abstra_statics/dist/assets/{MockForm.0b819a52.js → MockForm.9b7a0df3.js} +2 -2
- abstra_statics/dist/assets/Navbar.0951ed6d.js +2 -0
- abstra_statics/dist/assets/Navbar.61d3e0a6.css +1 -0
- abstra_statics/dist/assets/NewEditor.d65a400f.js +8 -0
- abstra_statics/dist/assets/NewEditor.e3cfeb2c.css +1 -0
- abstra_statics/dist/assets/OidcLoginCallback.66b0f38a.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.48d8429a.js +2 -0
- abstra_statics/dist/assets/OmniChat.60ee26c8.css +1 -0
- abstra_statics/dist/assets/OmniChat.c3de8733.js +6 -0
- abstra_statics/dist/assets/OnboardingView.6cda1bc5.js +2 -0
- abstra_statics/dist/assets/OnboardingView.e871e6d8.css +1 -0
- abstra_statics/dist/assets/Organization.c36206b7.js +2 -0
- abstra_statics/dist/assets/Organizations.2b1c6c65.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.78877a50.js → PhArrowCounterClockwise.vue.9e570570.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.2ddfc219.js → PhArrowSquareOut.vue.bcbdb6e7.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.854c3cb5.js → PhClockCounterClockwise.vue.4bd682d8.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.d116ddfb.js → PhCopy.vue.29934bc2.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.5d0f839d.js → PhCopySimple.vue.0241af8c.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.abf4a034.js → PhCube.vue.0fe2c514.js} +2 -2
- abstra_statics/dist/assets/PhDatabase.vue.fdfb515c.js +2 -0
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.5e8ae2a9.js → PhDotsThreeVertical.vue.7a0e0638.js} +2 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.f1245c40.js +2 -0
- abstra_statics/dist/assets/PhFileArrowUp.vue.c292afe1.js +2 -0
- abstra_statics/dist/assets/PhFilePlus.vue.c39ff1a9.js +2 -0
- abstra_statics/dist/assets/{PhFolderPlus.vue.21d377a3.js → PhFolderPlus.vue.bc40161e.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.363dd83c.js → PhGear.vue.0feed515.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.23f3a465.js → PhKey.vue.15a9e64e.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.feb383e2.js → PhPencil.vue.a7219766.js} +2 -2
- abstra_statics/dist/assets/PhPencilSimple.vue.15a2b403.js +2 -0
- abstra_statics/dist/assets/PhRocket.vue.7155b91f.js +2 -0
- abstra_statics/dist/assets/{PhSignOut.vue.d1d6498f.js → PhSignOut.vue.2af17bd7.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.b6712d34.js → PhSparkle.vue.c7f06cac.js} +2 -2
- abstra_statics/dist/assets/PhTranslate.vue.2ce651a6.js +2 -0
- abstra_statics/dist/assets/{PhUsersThree.vue.8889f957.js → PhUsersThree.vue.2942df75.js} +2 -2
- abstra_statics/dist/assets/{PhWarningCircle.vue.2087be7d.js → PhWarningCircle.vue.05a40bc4.js} +2 -2
- abstra_statics/dist/assets/PhWebhooksLogo.vue.e4752384.js +2 -0
- abstra_statics/dist/assets/PlayerConfigProvider.00af5968.js +2 -0
- abstra_statics/dist/assets/PlayerNavbar.117f184b.js +2 -0
- abstra_statics/dist/assets/{PlayerNavbar.77209eae.css → PlayerNavbar.4dc29a45.css} +1 -1
- abstra_statics/dist/assets/Project.66111161.js +2 -0
- abstra_statics/dist/assets/Project.9c418d2e.css +1 -0
- abstra_statics/dist/assets/ProjectLogin.d9bb1f86.js +2 -0
- abstra_statics/dist/assets/ProjectSettings.f8c6f60a.js +2 -0
- abstra_statics/dist/assets/ProjectsView.32f6ccff.js +2 -0
- abstra_statics/dist/assets/ProjectsView.e26ddfd5.css +1 -0
- abstra_statics/dist/assets/SaveButton.363ea20f.css +1 -0
- abstra_statics/dist/assets/SaveButton.c3f2a4bb.js +2 -0
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.cb5567cd.js +2 -0
- abstra_statics/dist/assets/{Sidebar.29baeab0.css → Sidebar.161522da.css} +1 -1
- abstra_statics/dist/assets/Sidebar.1c4e35be.js +2 -0
- abstra_statics/dist/assets/Sql.6d9a778c.css +1 -0
- abstra_statics/dist/assets/Sql.8d31ec23.js +5 -0
- abstra_statics/dist/assets/Steps.687763a5.js +2 -0
- abstra_statics/dist/assets/TableCard.8c99a870.js +2 -0
- abstra_statics/dist/assets/{TableEditor.5853a363.css → TableEditor.20fecc75.css} +1 -1
- abstra_statics/dist/assets/TableEditor.ba7a8b6a.js +2 -0
- abstra_statics/dist/assets/Tables.113960f2.js +39 -0
- abstra_statics/dist/assets/TablesDiagram.8e6d1e89.js +15 -0
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.5cc96b0d.js +2 -0
- abstra_statics/dist/assets/Tasks.90846020.js +2 -0
- abstra_statics/dist/assets/{UploadOutlined.9aa845de.js → UploadOutlined.518baf9a.js} +2 -2
- abstra_statics/dist/assets/View.ded6b355.js +2 -0
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.285b5e2c.js +2 -0
- abstra_statics/dist/assets/Watermark.5071a4b2.js +2 -0
- abstra_statics/dist/assets/WebEditor.18ece735.js +2 -0
- abstra_statics/dist/assets/WebEditor.b886e4d1.css +1 -0
- abstra_statics/dist/assets/WidgetPreview.88a4f27f.js +2 -0
- abstra_statics/dist/assets/WorkflowViewer.3b6aee8e.css +1 -0
- abstra_statics/dist/assets/WorkflowViewer.778c401d.js +2 -0
- abstra_statics/dist/assets/{ant-design.42419021.js → ant-design.4efc9ccd.js} +2 -2
- abstra_statics/dist/assets/{apiKey.403049eb.js → apiKey.bd946d8c.js} +2 -2
- abstra_statics/dist/assets/asyncComputed.7bc1692e.js +2 -0
- abstra_statics/dist/assets/{build.45b511b6.js → build.a8637e29.js} +2 -2
- abstra_statics/dist/assets/{colorHelpers.50ced1e9.js → colorHelpers.8ba18214.js} +2 -2
- abstra_statics/dist/assets/{console.f0f09e6f.js → console.2a5ed51a.js} +4 -4
- abstra_statics/dist/assets/constants.534f67bc.js +2 -0
- abstra_statics/dist/assets/contracts.generated.8ad36e63.js +2 -0
- abstra_statics/dist/assets/{cssMode.23271d4a.js → cssMode.6c4ccf50.js} +2 -2
- abstra_statics/dist/assets/datetime.89495471.js +2 -0
- abstra_statics/dist/assets/dayjs.304f38f8.js +2 -0
- abstra_statics/dist/assets/editor.c1a1bd33.js +2 -0
- abstra_statics/dist/assets/editor.main.84e237cf.js +2 -0
- abstra_statics/dist/assets/fetch.452c58e5.js +2 -0
- abstra_statics/dist/assets/{files.8b58ee7e.js → files.8999afd5.js} +2 -2
- abstra_statics/dist/assets/{folder.13d3acac.js → folder.81ef8619.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.f79b510b.js → freemarker2.559f77f2.js} +2 -2
- abstra_statics/dist/assets/{handlebars.07d5febe.js → handlebars.8d101b7c.js} +2 -2
- abstra_statics/dist/assets/{html.7d6a59b4.js → html.b3e7d3ab.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.7779ff94.js → htmlMode.2305b1bb.js} +2 -2
- abstra_statics/dist/assets/{index.d31da2c3.js → index.71eb83f3.js} +2 -2
- abstra_statics/dist/assets/index.90acf038.js +2 -0
- abstra_statics/dist/assets/index.b74c262c.js +4 -0
- abstra_statics/dist/assets/index.bc97991a.js +2 -0
- abstra_statics/dist/assets/index.d809956c.js +2 -0
- abstra_statics/dist/assets/{index.57042181.css → index.da037bc0.css} +1 -1
- abstra_statics/dist/assets/index.da4f9d54.js +2 -0
- abstra_statics/dist/assets/{index.c8a56795.js → index.e5cb42a1.js} +2 -2
- abstra_statics/dist/assets/{index.482df04a.js → index.f2beb20d.js} +2 -2
- abstra_statics/dist/assets/{index.e71a5f84.js → index.f6171691.js} +3 -3
- abstra_statics/dist/assets/{javascript.4c528c2c.js → javascript.3000fc25.js} +2 -2
- abstra_statics/dist/assets/{jsonMode.d6441e9d.js → jsonMode.7bbb508d.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.9f7a5511.css → jwt-decode.c5760184.css} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.54a1ea22.js → jwt-decode.esm.c9c37cdc.js} +197 -197
- abstra_statics/dist/assets/{linters.a0f2aa84.js → linters.7fec18d9.js} +2 -2
- abstra_statics/dist/assets/{liquid.0c441ad2.js → liquid.b4ac9aaf.js} +3 -3
- abstra_statics/dist/assets/member.3c12efee.js +2 -0
- abstra_statics/dist/assets/metadata.e627ddda.js +2 -0
- abstra_statics/dist/assets/omniChatStore.508e8ece.js +9 -0
- abstra_statics/dist/assets/omniChatStore.b58e3bed.css +1 -0
- abstra_statics/dist/assets/{organization.668d1b58.js → organization.cd03f9a8.js} +2 -2
- abstra_statics/dist/assets/os.f08724fb.js +2 -0
- abstra_statics/dist/assets/player.7362caf4.js +2 -0
- abstra_statics/dist/assets/{plotly.min.2a87d7e2.js → plotly.min.50ebb925.js} +2 -2
- abstra_statics/dist/assets/polling.4db5ee9a.js +2 -0
- abstra_statics/dist/assets/{project.1b8374f4.js → project.9a068e8d.js} +2 -2
- abstra_statics/dist/assets/{python.7ac27a56.js → python.51a7c648.js} +3 -3
- abstra_statics/dist/assets/{razor.860a0279.js → razor.99323f5f.js} +2 -2
- abstra_statics/dist/assets/{record.e83a2eb2.js → record.a33d29b1.js} +2 -2
- abstra_statics/dist/assets/{redirect.586749f4.js → redirect.42bf4f0a.js} +2 -2
- abstra_statics/dist/assets/{repository.66c7567c.js → repository.5190b94f.js} +2 -2
- abstra_statics/dist/assets/repository.94fb77c7.js +2 -0
- abstra_statics/dist/assets/{repository.3a331f0f.js → repository.c0d70cb2.js} +2 -2
- abstra_statics/dist/assets/router.4168cc71.js +2 -0
- abstra_statics/dist/assets/{router.4dfadf5d.js → router.a8616541.js} +5 -5
- abstra_statics/dist/assets/string.8fab6b53.js +2 -0
- abstra_statics/dist/assets/{tables.1bcb1140.js → tables.2e1c934b.js} +2 -2
- abstra_statics/dist/assets/tasksController.1feffcfe.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.9535bf54.js → toggleHighContrast.6544a728.js} +7 -7
- abstra_statics/dist/assets/{tsMode.c0f9fe1a.js → tsMode.922e04bb.js} +2 -2
- abstra_statics/dist/assets/{typescript.310eae6d.js → typescript.1b4f8286.js} +3 -3
- abstra_statics/dist/assets/url.9e033350.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.276cc8f0.js → useCodebaseEvents.ffe057d1.js} +2 -2
- abstra_statics/dist/assets/useTables.5fffa3f1.js +2 -0
- abstra_statics/dist/assets/userStore.d962fba4.js +2 -0
- abstra_statics/dist/assets/uuid.8581bc03.js +2 -0
- abstra_statics/dist/assets/vue-flow-background.3e9183ec.js +2 -0
- abstra_statics/dist/assets/{vue-flow-core.6cb99d32.js → vue-flow-core.41c647da.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.e3d34d0e.js → vue-quill.esm-bundler.36e79a95.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.fac1e9a9.js → workspaceStore.5a435520.js} +2 -2
- abstra_statics/dist/assets/{xml.04864db4.js → xml.c1692f52.js} +3 -3
- abstra_statics/dist/assets/{yaml.f30375fe.js → yaml.244444c1.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +15 -15
- abstra_statics/dist/player.html +10 -10
- abstra/connectors/banking/__init__.py +0 -0
- abstra/connectors/banking/brazil.py +0 -5
- abstra_internals/services/banking/__init__.py +0 -3
- abstra_internals/services/banking/banking_service.py +0 -104
- abstra_internals/services/banking/client_factory.py +0 -70
- abstra_internals/services/banking/sdk/__init__.py +0 -0
- abstra_internals/services/banking/sdk/generate_totalbank_api.py +0 -383
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js +0 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js +0 -2
- abstra_statics/dist/assets/ApiKeys.3c1e70dc.js +0 -2
- abstra_statics/dist/assets/App.9d8bd2aa.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.a64c7cee.js +0 -2
- abstra_statics/dist/assets/Billing.6b07f282.js +0 -2
- abstra_statics/dist/assets/Builds.ace9e3da.css +0 -1
- abstra_statics/dist/assets/Builds.d8c5c61b.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.9ff269cc.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.33c5380f.css +0 -1
- abstra_statics/dist/assets/ConnectorsView.e670738b.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.3ca66327.js +0 -2
- abstra_statics/dist/assets/ContentLayout.0db8d7fb.js +0 -2
- abstra_statics/dist/assets/CrudView.cc6aeaf0.js +0 -2
- abstra_statics/dist/assets/CrudView.e24590ae.css +0 -1
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js +0 -2
- abstra_statics/dist/assets/EditorLogin.691452b4.js +0 -2
- abstra_statics/dist/assets/EditorsView.fcdf0186.js +0 -2
- abstra_statics/dist/assets/EnvVars.5519b4ce.js +0 -2
- abstra_statics/dist/assets/Error.11fd1f21.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.d0aa47da.js +0 -2
- abstra_statics/dist/assets/Files.6ea18d46.js +0 -2
- abstra_statics/dist/assets/Files.d0e8d2ff.css +0 -1
- abstra_statics/dist/assets/Form.09de384c.js +0 -2
- abstra_statics/dist/assets/FormRunner.15be6fa0.js +0 -2
- abstra_statics/dist/assets/Home.3794e8b4.css +0 -1
- abstra_statics/dist/assets/Home.782c5702.js +0 -2
- abstra_statics/dist/assets/Home.7c495aa9.js +0 -2
- abstra_statics/dist/assets/Live.37415b2d.css +0 -1
- abstra_statics/dist/assets/Live.48c10605.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.82ac3d44.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.66639b08.js +0 -2
- abstra_statics/dist/assets/Login.4a05f5c5.js +0 -2
- abstra_statics/dist/assets/Login.4e852955.js +0 -2
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.5161f328.js +0 -2
- abstra_statics/dist/assets/Logo.65e0b37c.js +0 -2
- abstra_statics/dist/assets/Logs.7d1acf32.js +0 -2
- abstra_statics/dist/assets/LogsController.0eb2eb30.js +0 -2
- abstra_statics/dist/assets/LogsController.fb0d96c2.css +0 -1
- abstra_statics/dist/assets/Main.0313f4fc.js +0 -2
- abstra_statics/dist/assets/Navbar.2dc6d02c.css +0 -1
- abstra_statics/dist/assets/Navbar.ef64aa09.js +0 -2
- abstra_statics/dist/assets/NewEditor.b9c410fe.css +0 -1
- abstra_statics/dist/assets/NewEditor.c928dbe9.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.42a7c4f9.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.35931a68.js +0 -2
- abstra_statics/dist/assets/OmniChat.73d9f6bb.js +0 -6
- abstra_statics/dist/assets/OmniChat.a21fec40.css +0 -1
- abstra_statics/dist/assets/OnboardingView.25042384.js +0 -2
- abstra_statics/dist/assets/OnboardingView.3996b08d.css +0 -1
- abstra_statics/dist/assets/Organization.66f64939.js +0 -2
- abstra_statics/dist/assets/Organizations.47868beb.js +0 -2
- abstra_statics/dist/assets/PhBookBookmark.vue.41108214.js +0 -2
- abstra_statics/dist/assets/PhChats.vue.71e5cb89.js +0 -2
- abstra_statics/dist/assets/PhDatabase.vue.a94d95f6.js +0 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.e88f64f1.js +0 -2
- abstra_statics/dist/assets/PhPencilSimple.vue.ec0eebb4.js +0 -2
- abstra_statics/dist/assets/PhRocket.vue.261a42b2.js +0 -2
- abstra_statics/dist/assets/PhUserList.vue.e0b8c21b.js +0 -2
- abstra_statics/dist/assets/PhWebhooksLogo.vue.d164db1e.js +0 -2
- abstra_statics/dist/assets/PlayerConfigProvider.28e29025.js +0 -2
- abstra_statics/dist/assets/PlayerNavbar.aaad1dfd.js +0 -2
- abstra_statics/dist/assets/Project.2de506d7.js +0 -2
- abstra_statics/dist/assets/Project.9c75c141.css +0 -1
- abstra_statics/dist/assets/ProjectLogin.22c8b093.js +0 -2
- abstra_statics/dist/assets/ProjectSettings.d065c292.js +0 -2
- abstra_statics/dist/assets/ProjectsView.16d8ecf6.css +0 -1
- abstra_statics/dist/assets/ProjectsView.cbd118ac.js +0 -2
- abstra_statics/dist/assets/SaveButton.428227de.js +0 -2
- abstra_statics/dist/assets/SaveButton.932ac6b8.css +0 -1
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.6d724b05.js +0 -2
- abstra_statics/dist/assets/Sidebar.41173d8e.js +0 -2
- abstra_statics/dist/assets/Sql.90e6e2ba.css +0 -1
- abstra_statics/dist/assets/Sql.c070dd2c.js +0 -5
- abstra_statics/dist/assets/Steps.dd51a108.js +0 -2
- abstra_statics/dist/assets/TableCard.c9a1cf41.js +0 -2
- abstra_statics/dist/assets/TableEditor.1bc47a95.js +0 -2
- abstra_statics/dist/assets/Tables.eff119eb.js +0 -2
- abstra_statics/dist/assets/TablesDiagram.d633acaf.js +0 -15
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js +0 -2
- abstra_statics/dist/assets/Tasks.c311b05f.js +0 -2
- abstra_statics/dist/assets/View.dd7ba25a.js +0 -2
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.e6563207.js +0 -2
- abstra_statics/dist/assets/Watermark.9c9358e3.js +0 -2
- abstra_statics/dist/assets/WebEditor.83f2a960.js +0 -2
- abstra_statics/dist/assets/WebEditor.c2e271d1.css +0 -1
- abstra_statics/dist/assets/WidgetPreview.7c6a231c.js +0 -2
- abstra_statics/dist/assets/asyncComputed.47aec2b5.js +0 -2
- abstra_statics/dist/assets/constants.d569f33d.js +0 -2
- abstra_statics/dist/assets/contracts.generated.aefe8d0a.js +0 -2
- abstra_statics/dist/assets/datetime.82608dfb.js +0 -2
- abstra_statics/dist/assets/dayjs.7f71c60a.js +0 -2
- abstra_statics/dist/assets/editor.02184ced.js +0 -2
- abstra_statics/dist/assets/editor.main.0f931e87.js +0 -2
- abstra_statics/dist/assets/fetch.1b3d01a0.js +0 -2
- abstra_statics/dist/assets/index.581e2edd.js +0 -2
- abstra_statics/dist/assets/index.966ac1b9.js +0 -2
- abstra_statics/dist/assets/index.c7a996a6.js +0 -2
- abstra_statics/dist/assets/index.d53182ed.js +0 -4
- abstra_statics/dist/assets/member.2260c37e.js +0 -2
- abstra_statics/dist/assets/metadata.0098e20c.js +0 -2
- abstra_statics/dist/assets/omniChatStore.dd7a1c46.js +0 -8
- abstra_statics/dist/assets/omniChatStore.ec95fb81.css +0 -1
- abstra_statics/dist/assets/player.4ab4aed5.js +0 -2
- abstra_statics/dist/assets/polling.b5a32c22.js +0 -2
- abstra_statics/dist/assets/router.06ee2b9d.js +0 -2
- abstra_statics/dist/assets/string.61e11a30.js +0 -2
- abstra_statics/dist/assets/tasksController.f3adf725.js +0 -4
- abstra_statics/dist/assets/url.f5664225.js +0 -2
- abstra_statics/dist/assets/useTables.18fc3efd.js +0 -2
- abstra_statics/dist/assets/userStore.6ab1e5ac.js +0 -2
- abstra_statics/dist/assets/uuid.5b8ba8af.js +0 -2
- abstra_statics/dist/assets/vue-flow-background.af096866.js +0 -2
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/WHEEL +0 -0
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/entry_points.txt +0 -0
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var j=Object.defineProperty;var w=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>(w(s,typeof e!="symbol"?e+"":e,t),t);import{k as n}from"./router.
|
|
2
|
-
//# sourceMappingURL=tables.
|
|
1
|
+
var j=Object.defineProperty;var w=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>(w(s,typeof e!="symbol"?e+"":e,t),t);import{k as n}from"./router.a8616541.js";import{E as b}from"./record.a33d29b1.js";import{a as h}from"./string.8fab6b53.js";import{Z as o}from"./jwt-decode.esm.c9c37cdc.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="2e1bc10d-dd93-4454-a8c2-b341abb45ce0",s._sentryDebugIdIdentifier="sentry-dbid-2e1bc10d-dd93-4454-a8c2-b341abb45ce0")}catch{}})();o.object({name:o.string().optional(),unique:o.boolean().optional(),nullable:o.boolean().optional(),type:o.object({newType:o.string(),using:o.string()}).optional(),default:o.string().optional(),foreignKey:o.object({columnId:o.string()}).nullish().optional()});const $={boolean:["boolean","bool"],int:["int","integer","int4"],varchar:["varchar","character varying"],json:["json"],jsonb:["jsonb"],date:["date"],timestamp:["timestamp","timestamp with time zone","timestamptz"],uuid:["uuid"],real:["real","float4","float8","double precision"],numeric:["numeric","decimal"],text:["text"],bigint:["bigint","int8"],smallint:["smallint","int2"]},T=s=>{for(const e of C)if($[e].includes(s))return e;throw new Error(`Unknown type: ${s}`)};class D{async create(e){return n.post(`projects/${e.projectId}/tables/${e.tableId}/columns`,e)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`)}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`,t)}async getById(e){return n.get(`projects/${e.projectId}/columns/${e.id}`)}}const g=new D,p=class{constructor(e){a(this,"record");this.record=b.from(e)}static async create(e,t,r,d,l,y,I,f){const m=await g.create({name:e,type:t,default:r,nullable:d,unique:l,tableId:y,projectId:I,foreignKey:f});return"error"in m?m:new p(m)}async update(e){const t={...this.record.changes,type:this.record.changes.type&&e?{newType:this.record.changes.type,using:e}:void 0};return Object.keys(t).length===0||!this.id?{success:!0,error:""}:(await g.update({id:this.id,tableId:this.tableId,projectId:this.projectId},t),{success:!0,error:""})}toDTO(){return this.record.state}get id(){return this.record.get("id")}get tableId(){return this.record.get("tableId")}get projectId(){return this.record.get("projectId")}get protected(){return this.record.get("protected")}get type(){return T(this.record.get("type"))}set type(e){this.record.set("type",e)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get nullable(){return this.record.get("nullable")}set nullable(e){this.record.set("nullable",e)}get unique(){return this.record.get("unique")}set unique(e){this.record.set("unique",e)}get primaryKey(){return this.record.get("primaryKey")}get default(){var e;return(e=this.record.get("default"))==null?void 0:e.split("::")[0]}set default(e){this.record.set("default",e)}get foreignKey(){return this.record.get("foreignKey")}set foreignKey(e){this.record.set("foreignKey",e)}async delete(){this.id&&await g.delete({id:this.id,tableId:this.tableId,projectId:this.projectId})}};let c=p;a(c,"fromDTO",e=>new p(e)),a(c,"fromID",async(e,t)=>{const r=await g.getById({projectId:e,id:t});return p.fromDTO(r.column)});const C=["varchar","int","boolean","json","jsonb","date","timestamp","uuid","real","numeric","text","bigint","smallint"],B={varchar:"'DEFAULT_VALUE'",int:"",boolean:"false",json:"'{}'::json",jsonb:"'{}'::jsonb",date:"now()",timestamp:"now()",uuid:"gen_random_uuid()",real:"0.0",numeric:"0",text:"'DEFAULT_VALUE'",bigint:"0",smallint:"0"};class R{async list(e){return n.get(`projects/${e}/tables`)}async create(e,t){return await n.post(`projects/${e.projectId}/tables`,t)}async get(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}`)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}`)}async selectRows(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}/rows`,{limit:e.limit.toString(),offset:e.offset.toString(),search:e.search,where:JSON.stringify(e.where),orderBy:JSON.stringify(e.orderBy)})}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}`,t)}async insertRow(e,t){return n.post(`projects/${e.projectId}/tables/${e.tableId}/rows`,t)}async updateRow(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`,t)}async deleteRow(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`)}async getByColumnID(e){return n.get(`projects/${e.projectId}/columns/${e.columnId}`)}}const i=new R;class u{constructor(e,t){a(this,"record");a(this,"columns");this.projectId=e,this.record=b.from(t),this.columns=t.columns.map(r=>c.fromDTO({...r,projectId:t.projectId}))}static async list(e){return(await i.list(e)).map(r=>new u(e,r))}static async fromColumnId(e,t){const r=await i.getByColumnID({projectId:e,columnId:t});return u.get(e,r.table.id)}static async create(e,t,r){const d=h(t,!1),l=await i.create({projectId:e},{name:d,id:r});return new u(e,l)}static async get(e,t){const r=await i.get({projectId:e,tableId:t});return new u(e,{...r.table,columns:r.columns})}async delete(e,t){return i.delete({projectId:e,tableId:t})}fixTraillingName(){this.name=h(this.name,!1)}async save(){if(Object.keys(this.record.changes).length!==0){this.record.changes.name&&this.fixTraillingName();try{await i.update({id:this.id,tableId:this.id,projectId:this.projectId},this.record.changes)}finally{this.record.resetChanges()}}}resetChanges(){this.record.resetChanges()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}hasChangesDeep(e){return this.record.hasChangesDeep(e)&&h(this.name,!1)!==this.record.initialState.name}getColumns(){var e;return(e=this.columns)!=null?e:[]}getUnprotectedColumns(){var e,t;return(t=(e=this.columns)==null?void 0:e.filter(r=>!r.protected).map(r=>r.toDTO()))!=null?t:[]}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(e){const t=h(e,!0);this.record.set("name",t)}async addColumn(e){const t=await c.create(e.name,e.type,e.default,e.nullable,e.unique,this.id,this.projectId,e.foreignKey);return"error"in t?{success:!1,error:t.error}:this.columns?(this.columns.push(t),{success:!0,error:""}):(this.columns=[t],{success:!0,error:""})}getColumn(e){var t;return(t=this.columns)==null?void 0:t.find(r=>r.id&&r.id===e)}async select(e={},t,r,d,l){return i.selectRows({name:this.name,where:e,tableId:this.id,projectId:this.projectId,limit:r,offset:t,search:d,orderBy:l})}async insertRow(e){return i.insertRow({tableId:this.id,projectId:this.projectId},e)}async updateRow(e,t){return i.updateRow({tableId:this.id,projectId:this.projectId,rowId:e},t)}async deleteRow(e){return i.deleteRow({tableId:this.id,projectId:this.projectId,rowId:e})}}export{c as C,u as T,B as d,C as p};
|
|
2
|
+
//# sourceMappingURL=tables.2e1c934b.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var V=Object.defineProperty;var z=(o,t,e)=>t in o?V(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var f=(o,t,e)=>(z(o,typeof t!="symbol"?t+"":t,e),e);import{r as O,c as G,en as K,al as Q,i as u,w as W}from"./jwt-decode.esm.c9c37cdc.js";import"./contracts.generated.8ad36e63.js";import{A as v}from"./record.a33d29b1.js";import"./linters.7fec18d9.js";import{u as X}from"./polling.4db5ee9a.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="b9271060-802a-4a7d-b915-5a36ffd544c9",o._sentryDebugIdIdentifier="sentry-dbid-b9271060-802a-4a7d-b915-5a36ffd544c9")}catch{}})();class Y{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).json()}async get(t){try{return await(await fetch(`/_editor/api/forms/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",i=`/_editor/api/forms/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const m=new Y;class w{constructor(t){f(this,"record");this.record=v.create(m,t)}static async list(){return(await m.list()).map(e=>new w(e))}static async create(t,e,r,i){const a=await m.create(t,e,r,i);return new w(a)}static async get(t){const e=await m.get(t);return e?new w(e):null}get id(){return this.record.get("id")}get type(){return"form"}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get notificationTrigger(){return new Proxy(this.record.get("notification_trigger"),{set:(t,e,r)=>(this.record.set("notification_trigger",{...t,[e]:r}),!0)})}set notificationTrigger(t){this.record.set("notification_trigger",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}async delete(t){await m.delete(this.id,t)}async duplicate(){const t=await m.duplicate(this.id);return new w(t)}makeRunnerData(t){return{...t.makeRunnerData(),id:this.id,isLocal:!0,path:this.path,title:this.title,isInitial:this.isInitial,runtimeType:"form",autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,allowRestart:this.allowRestart,welcomeTitle:this.welcomeTitle,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText,restartButtonText:this.restartButtonText}}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new w(t)}}class Z{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).json()}async get(t){try{return await(await fetch(`/_editor/api/hooks/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",i=`/_editor/api/hooks/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const r=new URLSearchParams(e.query),i=await fetch(`/_editor/api/hooks/${t}/run?${r.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:a,headers:d,body:h}=await i.json();return{status:a,headers:d,body:h}}}const T=new Z;class b{constructor(t){f(this,"record");this.record=v.create(T,t)}static async list(){return(await T.list()).map(e=>new b(e))}static async create(t,e,r,i){const a=await T.create(t,e,r,i);return new b(a)}static async get(t){const e=await T.get(t);return e?new b(e):null}async delete(t){await T.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get type(){return"hook"}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async run(t){return T.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new b(t)}}class q{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).json()}async get(t){try{return await(await fetch(`/_editor/api/jobs/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/jobs/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",i=`/_editor/api/jobs/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t){return(await fetch(`/_editor/api/jobs/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const S=new q;class I{constructor(t){f(this,"record");f(this,"isInitial",!0);this.record=v.create(S,t)}static async list(){return(await S.list()).map(e=>new I(e))}static async create(t,e,r,i){const a=await S.create(t,e,r,i);return new I(a)}static async get(t){const e=await S.get(t);return e?new I(e):null}async delete(t){await S.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get schedule(){return this.record.get("schedule")}set schedule(t){this.record.set("schedule",t)}get type(){return"job"}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get id(){return this.record.get("id")}async run(){return S.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new I(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class F{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).json()}async get(t){try{return await(await fetch(`/_editor/api/scripts/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/scripts/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",i=`/_editor/api/scripts/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){return(await fetch(`/_editor/api/scripts/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({task_id:e})})).ok}}const _=new F;class C{constructor(t){f(this,"record");this.record=v.create(_,t)}static async list(){return(await _.list()).map(e=>new C(e))}static async create(t,e,r,i){const a=await _.create(t,e,r,i);return new C(a)}static async get(t){const e=await _.get(t);return e?new C(e):null}async delete(t){await _.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get type(){return"tasklet"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}async run(t){return _.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return!1}static from(t){return new C(t)}}function H({api:o,fetchTasks:t}){const e=O({state:"idle"}),r=()=>{e.value={state:"idle"}},i=()=>{e.value={state:"creating",name:"My task",payloadCode:`{
|
|
2
|
+
"key": "value"
|
|
3
|
+
}`}},a=async h=>{const g=e.value;if(g.state!=="creating")throw new Error("Payload is required to create a task");if(!d.value)return;const c=JSON.parse(g.payloadCode),p=await o.createTask(g.name,h,c);return await t(),r(),p},d=G(()=>{const h=e.value;if(h.state!=="creating")return!1;try{const g=JSON.parse(h.payloadCode);return K.exports.isObject(g)}catch{return!1}});return{createTask:a,creatingTaskState:e,cancelCreatingTask:r,startCreatingTask:i,isPayloadValid:d}}const P=["pink","orange","green","blue","purple","red","cyan","magenta","volcano","gold"],ot=({api:o,poll:t,stageId:e,status:r,stages:i})=>{const a=Q({tasks:[],sentTasks:[],colorMap:new Map,pagination:{currentIndex:0,pageSize:10,totalCount:0},filters:{stage:e,status:r,dateRange:void 0},filterOptions:{stages:[],statuses:[{label:u.translate("i18n_tasksview_status_pending"),value:"pending"},{label:u.translate("i18n_tasksview_status_running"),value:"started"},{label:u.translate("i18n_tasksview_status_completed"),value:"completed"}]}}),d=[{name:"setToPending",label:u.translate("i18n_tasksview_action_set_to_pending"),handler:()=>{a.tasks.filter(s=>s.checked).map(s=>s.id).forEach(s=>x(s))}},{name:"setToCompleted",label:u.translate("i18n_tasksview_action_set_to_completed"),handler:()=>{a.tasks.filter(s=>s.checked).map(s=>s.id).forEach(s=>E(s))}},{name:"duplicate",label:u.translate("i18n_tasksview_action_duplicate"),handler:()=>{a.tasks.filter(s=>s.checked).forEach(async s=>{await o.createTask(s.type,s.targetStageId,s.payload),c()})}}],h=O(["pending"]),g=n=>{const s=a.tasks.findIndex(y=>y.id===n.id);s!==-1?a.tasks[s]=n:a.tasks.unshift(n)},c=async()=>{const n=e?await o.getStageTasks(e):await o.getAllTasks(a.pagination,a.filters);a.tasks=n.tasks.map(s=>({key:s.id,id:s.id,type:s.type,status:s.status,targetStageId:s.targetStageId,targetStageTitle:s.targetStageTitle,targetStageType:s.targetStageType,sourceStageTitle:s.sourceStageTitle,sourceStageType:s.sourceStageType,created:{at:new Date(s.created.at).toString(),byExecutionId:s.created.byExecutionId,byStageId:s.created.byStageId},locked:s.locked?{at:new Date(s.locked.at).toString(),byExecutionId:s.locked.byExecutionId,byStageId:s.locked.byStageId}:null,completed:s.completed?{at:new Date(s.completed.at).toString(),byExecutionId:s.completed.byExecutionId,byStageId:s.completed.byStageId}:null,payload:s.payload,checked:!1})),a.pagination.totalCount=n.totalCount},p=async()=>{if(!e)return[];const n=await o.getSentStageTasks(e);a.sentTasks=n.tasks.map(s=>({key:s.id,id:s.id,type:s.type,status:s.status,targetStageId:s.targetStageId,targetStageTitle:s.targetStageTitle,targetStageType:s.targetStageType,sourceStageTitle:s.sourceStageTitle,sourceStageType:s.sourceStageType,created:{at:new Date(s.created.at).toString(),byExecutionId:s.created.byExecutionId,byStageId:s.created.byStageId},locked:s.locked?{at:new Date(s.locked.at).toString(),byExecutionId:s.locked.byExecutionId,byStageId:s.locked.byStageId}:null,completed:s.completed?{at:new Date(s.completed.at).toString(),byExecutionId:s.completed.byExecutionId,byStageId:s.completed.byStageId}:null,payload:s.payload}))},j=()=>{var y;let n=0;a.tasks.concat((y=a.sentTasks)!=null?y:[]).forEach(k=>{a.colorMap.has(k.type)||(a.colorMap.set(k.type,P[n]),n=(n+1)%P.length)})};W(a.filters,async()=>{await Promise.all([c(),p()]),j()});const D=async()=>{await Promise.all([c(),p()]),j()},{startPolling:$,endPolling:A}=X({task:D,interval:15e3}),N=async()=>{if(await Promise.all([c(),p()]),j(),i===null){const n=Promise.all([w.list(),b.list(),I.list(),C.list()]).then(([s,y,k,l])=>[...s,...y,...k,...l]);a.filterOptions.stages=(await n).map(s=>({label:s.title,value:s.id}))}else a.filterOptions.stages=i.map(n=>({label:n.stageTitle,value:n.id}));t&&$()},J=()=>{t&&A()},x=async n=>{await o.updateTaskStatus(n,"pending"),c()},E=async n=>{await o.updateTaskStatus(n,"completed"),c()},U=n=>{a.tasks=a.tasks.map(s=>(s.id===n&&(s.checked=!s.checked),s))},M=()=>{const n=[],s=a.tasks.filter(l=>l.checked);return s.length===0?[]:(n.push("duplicate"),s.every(l=>l.status==="pending")&&n.push("setToCompleted"),s.every(l=>l.status==="completed")&&n.push("setToPending"),d.filter(l=>n.includes(l.name)))},R=async()=>{await o.clearAllTasks(),c(),p()},B=()=>[{title:u.translate("i18n_tasksview_column_date"),key:"timeInfo",align:"left",width:"25%"},{title:u.translate("i18n_tasksview_column_task"),key:"stageInfo",align:"left",width:"30%"},{title:u.translate("i18n_tasksview_column_payload"),key:"payloadInfo",align:"left",width:"45%"}],L=H({api:o,fetchTasks:c});return{setup:N,tearDown:J,state:a,getColumns:B,collapseValue:h,setToPending:x,setToCompleted:E,fetchTasks:c,fetchSentTasks:p,checkTask:U,getPossibleActions:M,clearAllTasks:R,insertOrUpdate:g,...L}};export{w as F,b as H,I as J,C as S,ot as T};
|
|
4
|
+
//# sourceMappingURL=tasksController.1feffcfe.js.map
|