abstra 3.24.8__py3-none-any.whl → 3.24.9__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.8.dist-info → abstra-3.24.9.dist-info}/METADATA +1 -1
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/RECORD +183 -182
- abstra_internals/contracts_generated.py +2026 -2010
- abstra_internals/controllers/git.py +18 -20
- abstra_internals/controllers/main.py +8 -4
- abstra_internals/repositories/git/git_test.py +2 -2
- abstra_internals/repositories/git/native.py +95 -43
- abstra_internals/repositories/git/types.py +9 -7
- abstra_internals/services/sql_storage.py +2 -1
- abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.905e8d9e.js → AbstraButton.vue_vue_type_script_setup_true_lang.6efe348a.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.f628a3a7.js +2 -0
- abstra_statics/dist/assets/ApiKeys.5b43091f.js +2 -0
- abstra_statics/dist/assets/App.7a6ee8e5.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.1a83eeea.js +2 -0
- abstra_statics/dist/assets/{BaseLayout.b03df2cd.js → BaseLayout.3c6f8614.js} +2 -2
- abstra_statics/dist/assets/Billing.884bb3ce.js +2 -0
- abstra_statics/dist/assets/{Breadcrumb.9686bc9b.js → Breadcrumb.438b89fb.js} +2 -2
- abstra_statics/dist/assets/{Builds.c90a1506.js → Builds.51e0c49e.js} +2 -2
- abstra_statics/dist/assets/{Card.95a0c7f0.js → Card.50ce0913.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.6ab785c3.js → CircularLoading.50b3862c.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.eab14c9c.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.35cc6db6.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.36fa866f.css +1 -0
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.1c984a14.js +2 -0
- abstra_statics/dist/assets/ContentLayout.a0d4199d.js +2 -0
- abstra_statics/dist/assets/{CrudView.391f0e9f.js → CrudView.7997b881.js} +2 -2
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.e6d1d3ad.js → DocsButton.vue_vue_type_script_setup_true_lang.39638c19.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.feee5e85.js → EditorLogin.6506bc42.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.b9309eb9.js → EditorsView.2aad2cdc.js} +2 -2
- abstra_statics/dist/assets/EnvVars.e641237f.js +2 -0
- abstra_statics/dist/assets/{Error.cec1d9ae.js → Error.a11619e5.js} +2 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.1d559548.js +2 -0
- abstra_statics/dist/assets/ExecutionContext.2933148d.js +2 -0
- abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.0b0c149c.js +2 -0
- abstra_statics/dist/assets/Files.7c98a5f9.css +1 -0
- abstra_statics/dist/assets/Files.db066999.js +3 -0
- abstra_statics/dist/assets/Form.d99de13a.js +2 -0
- abstra_statics/dist/assets/{FormRunner.7e7ce26d.js → FormRunner.8a803ade.js} +2 -2
- abstra_statics/dist/assets/Home.a8e67e38.js +2 -0
- abstra_statics/dist/assets/Home.c02c53bc.js +2 -0
- abstra_statics/dist/assets/LoadingContainer.b8fe55e6.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.d3cb97d3.js +2 -0
- abstra_statics/dist/assets/Login.ca3df8f4.js +2 -0
- abstra_statics/dist/assets/{Login.f25e3cc8.js → Login.ec7eb4db.js} +2 -2
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.be982e9b.js +2 -0
- abstra_statics/dist/assets/Logo.29f26be1.js +2 -0
- abstra_statics/dist/assets/Logs.bc7d3080.js +2 -0
- abstra_statics/dist/assets/Main.17301685.js +2 -0
- abstra_statics/dist/assets/{MockForm.a8c36e57.js → MockForm.8af08260.js} +2 -2
- abstra_statics/dist/assets/Navbar.5991f141.js +2 -0
- abstra_statics/dist/assets/NewEditor.133f8c4b.js +8 -0
- abstra_statics/dist/assets/OidcLoginCallback.7b41f933.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.80bebb62.js +2 -0
- abstra_statics/dist/assets/{OmniChat.60ee26c8.css → OmniChat.3576ab7f.css} +1 -1
- abstra_statics/dist/assets/OmniChat.724f1121.js +6 -0
- abstra_statics/dist/assets/OnboardingView.7f418009.js +2 -0
- abstra_statics/dist/assets/Organization.127db14f.js +2 -0
- abstra_statics/dist/assets/Organizations.5f418cc7.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.44a61827.js → PhArrowCounterClockwise.vue.de1d3ce9.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.d71d80fc.js → PhArrowSquareOut.vue.1a0f1395.js} +2 -2
- abstra_statics/dist/assets/PhArrowUp.vue.1c6a4ae8.js +2 -0
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.701e6c6a.js → PhClockCounterClockwise.vue.3e79a514.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.5aeb9248.js → PhCopy.vue.d2b17064.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.33922e71.js → PhCopySimple.vue.f2bb863a.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.3f7281ae.js → PhCube.vue.be696878.js} +2 -2
- abstra_statics/dist/assets/{PhDatabase.vue.09fef09d.js → PhDatabase.vue.3c4ba68c.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.b3fda5f6.js → PhDotsThreeVertical.vue.2c9a03d5.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.db22067f.js → PhDownloadSimple.vue.72db4fbb.js} +2 -2
- abstra_statics/dist/assets/{PhFileArrowUp.vue.1e3b8493.js → PhFileArrowUp.vue.b7060fd8.js} +2 -2
- abstra_statics/dist/assets/{PhFilePlus.vue.1b7fc04b.js → PhFilePlus.vue.77ba2f5f.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.7b02d45f.js → PhFolderPlus.vue.57ec5e0d.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.3049f8f5.js → PhGear.vue.5abfda30.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.3fb1fd34.js → PhKey.vue.dbf6964c.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.8e94a4bd.js → PhPencil.vue.e6eaa716.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.c30ff752.js → PhPencilSimple.vue.a65250cc.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.1927fd55.js → PhRocket.vue.9dde7cdd.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.0c10fd8d.js → PhSignOut.vue.4b3b1f31.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.88da054d.js → PhSparkle.vue.efe111c8.js} +2 -2
- abstra_statics/dist/assets/{PhTranslate.vue.5fd55ee3.js → PhTranslate.vue.7ad27dac.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.506e9873.js → PhUsersThree.vue.5f9bb416.js} +2 -2
- abstra_statics/dist/assets/{PhWarningCircle.vue.139a2f32.js → PhWarningCircle.vue.365e8c06.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.28d1edea.js → PhWebhooksLogo.vue.1684b943.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.f7be8491.js → PlayerConfigProvider.26c6fb0a.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.fb3a012d.js → PlayerNavbar.a0d1fdc3.js} +2 -2
- abstra_statics/dist/assets/Project.6575adc1.css +1 -0
- abstra_statics/dist/assets/Project.a4f24e83.js +2 -0
- abstra_statics/dist/assets/{ProjectLogin.7f541a88.js → ProjectLogin.abc78e95.js} +2 -2
- abstra_statics/dist/assets/{ProjectSettings.52805237.js → ProjectSettings.de3aa0d0.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.53e4ed94.js → ProjectsView.e4e50735.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.bf92f582.js → SaveButton.8a907e20.js} +2 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.22f3f279.js +2 -0
- abstra_statics/dist/assets/{Sidebar.af08c680.js → Sidebar.ea97a608.js} +2 -2
- abstra_statics/dist/assets/{Sql.fd118d60.js → Sql.3130cb2f.js} +4 -4
- abstra_statics/dist/assets/Steps.df853a47.js +2 -0
- abstra_statics/dist/assets/{TableCard.0bcd184a.js → TableCard.0cffd3d6.js} +2 -2
- abstra_statics/dist/assets/TableEditor.52c6ffee.js +2 -0
- abstra_statics/dist/assets/Tables.933a0fea.js +2 -0
- abstra_statics/dist/assets/{TablesDiagram.547215e0.js → TablesDiagram.687f6dfe.js} +3 -3
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.9649d1a2.js +2 -0
- abstra_statics/dist/assets/Tasks.331fcc80.js +2 -0
- abstra_statics/dist/assets/{UploadOutlined.736aa5bc.js → UploadOutlined.1c845819.js} +2 -2
- abstra_statics/dist/assets/{View.b4fa346f.js → View.8fb0d3d7.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.d5d3a410.js → View.vue_vue_type_script_setup_true_lang.df0afc8c.js} +2 -2
- abstra_statics/dist/assets/{Watermark.e6c4654b.js → Watermark.b19c8a2c.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.49aee538.js → WebEditor.52fc4d61.js} +2 -2
- abstra_statics/dist/assets/{WidgetPreview.e0916bed.js → WidgetPreview.fab6933f.js} +2 -2
- abstra_statics/dist/assets/WorkflowViewer.5d223e7a.css +1 -0
- abstra_statics/dist/assets/WorkflowViewer.b0072dc6.js +2 -0
- abstra_statics/dist/assets/ant-design.3284f24b.js +2 -0
- abstra_statics/dist/assets/apiKey.66dca0fa.js +2 -0
- abstra_statics/dist/assets/asyncComputed.515034b4.js +2 -0
- abstra_statics/dist/assets/{build.1cc9147c.js → build.11c6f0e3.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.43bbe7b2.js +2 -0
- abstra_statics/dist/assets/{console.c2a83def.js → console.f9961195.js} +2 -2
- abstra_statics/dist/assets/constants.2cdc2025.js +2 -0
- abstra_statics/dist/assets/contracts.generated.36d5f7a5.js +2 -0
- abstra_statics/dist/assets/{cssMode.da3677b5.js → cssMode.38709828.js} +2 -2
- abstra_statics/dist/assets/datetime.cc6674fd.js +2 -0
- abstra_statics/dist/assets/dayjs.aa0a07d8.js +2 -0
- abstra_statics/dist/assets/editor.90099ba3.js +2 -0
- abstra_statics/dist/assets/editor.main.a098da72.js +2 -0
- abstra_statics/dist/assets/fetch.331404cf.js +2 -0
- abstra_statics/dist/assets/file.0cd01b5c.js +2 -0
- abstra_statics/dist/assets/{folder.1303b3cc.js → folder.304ce6aa.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.78f622a4.js → freemarker2.16d5855a.js} +2 -2
- abstra_statics/dist/assets/{handlebars.f24ca206.js → handlebars.3657e980.js} +3 -3
- abstra_statics/dist/assets/{html.d6232cb7.js → html.cbb1f517.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.66845b4f.js → htmlMode.97252017.js} +2 -2
- abstra_statics/dist/assets/{index.4073d3ba.js → index.1a374af6.js} +3 -3
- abstra_statics/dist/assets/{index.5654c649.js → index.1f86e84b.js} +2 -2
- abstra_statics/dist/assets/{index.bbb3a202.js → index.64d118e9.js} +2 -2
- abstra_statics/dist/assets/index.97648248.js +2 -0
- abstra_statics/dist/assets/{index.aa2603a0.js → index.9a7dc377.js} +2 -2
- abstra_statics/dist/assets/{index.fd17682d.js → index.9f357119.js} +2 -2
- abstra_statics/dist/assets/{index.705ce630.js → index.c7722f54.js} +2 -2
- abstra_statics/dist/assets/index.dcd602fc.js +2 -0
- abstra_statics/dist/assets/{index.680764ed.js → index.ed2240ea.js} +2 -2
- abstra_statics/dist/assets/{javascript.1009e690.js → javascript.d13ce088.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.bd88eaca.js → jsonMode.24ae805f.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.aa5b9ed3.css → jwt-decode.1a092264.css} +1 -1
- abstra_statics/dist/assets/{jwt-decode.esm.4071145e.js → jwt-decode.esm.f87c17f7.js} +166 -161
- abstra_statics/dist/assets/{linters.5d49f0b2.js → linters.6d68fd4f.js} +2 -2
- abstra_statics/dist/assets/{liquid.fd06ec69.js → liquid.0cf9f71b.js} +3 -3
- abstra_statics/dist/assets/{member.d4cf4c10.js → member.c8206c64.js} +2 -2
- abstra_statics/dist/assets/{metadata.bd34dda0.js → metadata.f67c3158.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.3d16b4ad.js → omniChatStore.e205a0cd.js} +3 -3
- abstra_statics/dist/assets/{organization.1b235ed0.js → organization.70cdf915.js} +2 -2
- abstra_statics/dist/assets/{os.b6b83ab9.js → os.227120cb.js} +2 -2
- abstra_statics/dist/assets/player.58f997ee.js +2 -0
- abstra_statics/dist/assets/{plotly.min.5ef097da.js → plotly.min.6d8ffa2b.js} +2 -2
- abstra_statics/dist/assets/polling.9bc57b91.js +2 -0
- abstra_statics/dist/assets/project.25a396d4.js +2 -0
- abstra_statics/dist/assets/{python.014e8707.js → python.0d8b442d.js} +3 -3
- abstra_statics/dist/assets/{razor.eee706f7.js → razor.4398e452.js} +3 -3
- abstra_statics/dist/assets/record.a8da6046.js +2 -0
- abstra_statics/dist/assets/redirect.42fceb5c.js +2 -0
- abstra_statics/dist/assets/{repository.010eeaad.js → repository.c782b2ca.js} +2 -2
- abstra_statics/dist/assets/{router.ef7a08cf.js → router.09566602.js} +5 -5
- abstra_statics/dist/assets/router.9ee10098.js +2 -0
- abstra_statics/dist/assets/{string.0157e442.js → string.0c102318.js} +2 -2
- abstra_statics/dist/assets/{tables.59457dad.js → tables.1b5568d1.js} +2 -2
- abstra_statics/dist/assets/tasksController.009192fc.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.2a096764.js → toggleHighContrast.79cdeb2d.js} +7 -7
- abstra_statics/dist/assets/{tsMode.5a841751.js → tsMode.0d573de8.js} +2 -2
- abstra_statics/dist/assets/{typescript.a8946c53.js → typescript.c72f7347.js} +3 -3
- abstra_statics/dist/assets/url.acca5643.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.c0197501.js → useCodebaseEvents.dc121de8.js} +2 -2
- abstra_statics/dist/assets/{useTables.413ae4ce.js → useTables.8402092e.js} +2 -2
- abstra_statics/dist/assets/userStore.3989ac4e.js +2 -0
- abstra_statics/dist/assets/uuid.405a6e8d.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.cc5881af.js → vue-flow-background.bbe978bf.js} +2 -2
- abstra_statics/dist/assets/{vue-flow-core.64ea4397.js → vue-flow-core.8bb3991b.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.404d7a1a.js → vue-quill.esm-bundler.4dc84b4c.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.260ac7fc.js → workspaceStore.ef7daa80.js} +2 -2
- abstra_statics/dist/assets/xlsx.89ea120e.js +106 -0
- abstra_statics/dist/assets/{xml.6d7ee5c8.js → xml.5ff29ab6.js} +3 -3
- abstra_statics/dist/assets/{yaml.a48b0813.js → yaml.6d4103d3.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +14 -14
- abstra_statics/dist/player.html +10 -10
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.11067aac.js +0 -2
- abstra_statics/dist/assets/ApiKeys.c2a1c483.js +0 -2
- abstra_statics/dist/assets/App.608af2ed.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.8bbdcede.js +0 -2
- abstra_statics/dist/assets/Billing.f84cedb5.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.66e5f1b1.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.b594798e.css +0 -1
- abstra_statics/dist/assets/ConnectorsView.bac282fa.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.e768f033.js +0 -2
- abstra_statics/dist/assets/ContentLayout.2ae39d29.js +0 -2
- abstra_statics/dist/assets/EnvVars.facbb73b.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.81063754.js +0 -2
- abstra_statics/dist/assets/ExecutionContext.8c367ef7.js +0 -2
- abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.7bd1f43d.js +0 -2
- abstra_statics/dist/assets/Files.325d463d.js +0 -2
- abstra_statics/dist/assets/Files.39b07d88.css +0 -1
- abstra_statics/dist/assets/Form.48029b6f.js +0 -2
- abstra_statics/dist/assets/Home.72bb903d.js +0 -2
- abstra_statics/dist/assets/Home.fb4fb018.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.e7fd3862.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.eb1ab7c7.js +0 -2
- abstra_statics/dist/assets/Login.ab4296a6.js +0 -2
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.c0c3af9a.js +0 -2
- abstra_statics/dist/assets/Logo.417950ea.js +0 -2
- abstra_statics/dist/assets/Logs.eff00ffa.js +0 -2
- abstra_statics/dist/assets/Main.9c7e6552.js +0 -2
- abstra_statics/dist/assets/Navbar.36275768.js +0 -2
- abstra_statics/dist/assets/NewEditor.652251d2.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.31318c8c.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.af3bbbed.js +0 -2
- abstra_statics/dist/assets/OmniChat.6d49a0d2.js +0 -6
- abstra_statics/dist/assets/OnboardingView.ec680bc2.js +0 -2
- abstra_statics/dist/assets/Organization.640cf320.js +0 -2
- abstra_statics/dist/assets/Organizations.be19ecba.js +0 -2
- abstra_statics/dist/assets/Project.6af32e98.js +0 -2
- abstra_statics/dist/assets/Project.9c418d2e.css +0 -1
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.b4f189da.js +0 -2
- abstra_statics/dist/assets/Steps.27508a86.js +0 -2
- abstra_statics/dist/assets/TableEditor.0b14bc7b.js +0 -2
- abstra_statics/dist/assets/Tables.8dabe248.js +0 -39
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.9027b106.js +0 -2
- abstra_statics/dist/assets/Tasks.6d16250c.js +0 -2
- abstra_statics/dist/assets/WorkflowViewer.0a209003.css +0 -1
- abstra_statics/dist/assets/WorkflowViewer.b2b3ee29.js +0 -2
- abstra_statics/dist/assets/ant-design.805ab95d.js +0 -2
- abstra_statics/dist/assets/apiKey.1b1aafc4.js +0 -2
- abstra_statics/dist/assets/asyncComputed.0308626b.js +0 -2
- abstra_statics/dist/assets/colorHelpers.93df70ab.js +0 -2
- abstra_statics/dist/assets/constants.ba2d8460.js +0 -2
- abstra_statics/dist/assets/contracts.generated.bc42bf02.js +0 -2
- abstra_statics/dist/assets/datetime.049cd1b4.js +0 -2
- abstra_statics/dist/assets/dayjs.ba8d5e03.js +0 -2
- abstra_statics/dist/assets/editor.4df699e8.js +0 -2
- abstra_statics/dist/assets/editor.main.1441c190.js +0 -2
- abstra_statics/dist/assets/fetch.6b0b8dbd.js +0 -2
- abstra_statics/dist/assets/files.a48976ba.js +0 -2
- abstra_statics/dist/assets/index.5eda0243.js +0 -2
- abstra_statics/dist/assets/index.c25fb6e2.js +0 -2
- abstra_statics/dist/assets/player.9c3751ac.js +0 -2
- abstra_statics/dist/assets/polling.cabdf3a3.js +0 -2
- abstra_statics/dist/assets/project.794c2cba.js +0 -2
- abstra_statics/dist/assets/record.daabed01.js +0 -2
- abstra_statics/dist/assets/redirect.8303afd7.js +0 -2
- abstra_statics/dist/assets/repository.997243c1.js +0 -2
- abstra_statics/dist/assets/router.e1e467ab.js +0 -2
- abstra_statics/dist/assets/tasksController.a5bd1328.js +0 -4
- abstra_statics/dist/assets/url.4aa6f272.js +0 -2
- abstra_statics/dist/assets/userStore.1004ebc1.js +0 -2
- abstra_statics/dist/assets/uuid.14c9b73e.js +0 -2
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/WHEEL +0 -0
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/entry_points.txt +0 -0
- {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{x as c,y as d,z as t,B as m}from"./jwt-decode.esm.f87c17f7.js";import{a as u}from"./workspaceStore.ef7daa80.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f328e710-01f2-4384-8667-7625173f637a",e._sentryDebugIdIdentifier="sentry-dbid-f328e710-01f2-4384-8667-7625173f637a")}catch{}})();const b=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"6d6a27e0a349e2152c5d19e6c4ba68cf3ab78fed"}catch(e){return console.error("Failed to fetch Abstra version:",e),"6d6a27e0a349e2152c5d19e6c4ba68cf3ab78fed"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback.7b41f933.js"),["assets/OidcLoginCallback.7b41f933.js","assets/workspaceStore.ef7daa80.js","assets/jwt-decode.esm.f87c17f7.js","assets/jwt-decode.1a092264.css","assets/userStore.3989ac4e.js","assets/url.acca5643.js","assets/colorHelpers.43bbe7b2.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback.80bebb62.js"),["assets/OidcLogoutCallback.80bebb62.js","assets/workspaceStore.ef7daa80.js","assets/jwt-decode.esm.f87c17f7.js","assets/jwt-decode.1a092264.css","assets/userStore.3989ac4e.js","assets/url.acca5643.js","assets/colorHelpers.43bbe7b2.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login.ca3df8f4.js"),["assets/Login.ca3df8f4.js","assets/Login.vue_vue_type_script_setup_true_lang.be982e9b.js","assets/jwt-decode.esm.f87c17f7.js","assets/jwt-decode.1a092264.css","assets/workspaceStore.ef7daa80.js","assets/userStore.3989ac4e.js","assets/url.acca5643.js","assets/colorHelpers.43bbe7b2.js","assets/CircularLoading.50b3862c.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.29f26be1.js","assets/Logo.b7d81119.css","assets/string.0c102318.js","assets/index.1a374af6.js","assets/Login.ac75228f.css","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main.17301685.js"),["assets/Main.17301685.js","assets/PlayerNavbar.a0d1fdc3.js","assets/userStore.3989ac4e.js","assets/jwt-decode.esm.f87c17f7.js","assets/jwt-decode.1a092264.css","assets/workspaceStore.ef7daa80.js","assets/url.acca5643.js","assets/colorHelpers.43bbe7b2.js","assets/metadata.f67c3158.js","assets/PhWebhooksLogo.vue.1684b943.js","assets/LoadingOutlined.d3cb97d3.js","assets/PhSignOut.vue.4b3b1f31.js","assets/index.ed2240ea.js","assets/PlayerNavbar.4dc29a45.css","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home.c02c53bc.js"),["assets/Home.c02c53bc.js","assets/metadata.f67c3158.js","assets/jwt-decode.esm.f87c17f7.js","assets/jwt-decode.1a092264.css","assets/PhWebhooksLogo.vue.1684b943.js","assets/Watermark.b19c8a2c.js","assets/workspaceStore.ef7daa80.js","assets/userStore.3989ac4e.js","assets/url.acca5643.js","assets/colorHelpers.43bbe7b2.js","assets/constants.2cdc2025.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.1a0f1395.js","assets/index.dcd602fc.js","assets/Card.50ce0913.js","assets/LoadingOutlined.d3cb97d3.js","assets/Home.e8bf9440.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error.a11619e5.js"),["assets/Error.a11619e5.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.f628a3a7.js","assets/Logo.29f26be1.js","assets/jwt-decode.esm.f87c17f7.js","assets/jwt-decode.1a092264.css","assets/Logo.b7d81119.css","assets/constants.2cdc2025.js","assets/workspaceStore.ef7daa80.js","assets/userStore.3989ac4e.js","assets/url.acca5643.js","assets/colorHelpers.43bbe7b2.js","assets/Card.50ce0913.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form.d99de13a.js"),["assets/Form.d99de13a.js","assets/userStore.3989ac4e.js","assets/jwt-decode.esm.f87c17f7.js","assets/jwt-decode.1a092264.css","assets/FormRunner.8a803ade.js","assets/Login.vue_vue_type_script_setup_true_lang.be982e9b.js","assets/workspaceStore.ef7daa80.js","assets/url.acca5643.js","assets/colorHelpers.43bbe7b2.js","assets/CircularLoading.50b3862c.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.29f26be1.js","assets/Logo.b7d81119.css","assets/string.0c102318.js","assets/index.1a374af6.js","assets/Login.ac75228f.css","assets/Steps.df853a47.js","assets/index.c7722f54.js","assets/Steps.2880920a.css","assets/Watermark.b19c8a2c.js","assets/constants.2cdc2025.js","assets/Watermark.b0916e90.css","assets/FormRunner.1e6e7d2a.css","assets/redirect.42fceb5c.js","assets/asyncComputed.515034b4.js","assets/uuid.405a6e8d.js","assets/Form.7d1b0423.css"]),meta:{hideLogin:!0}}]}],o=c({history:d("/"),routes:p,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),l=e=>async(a,r)=>{if(m(a,r),a.meta.allowUnauthenticated)return;const n=await u(a.path),{redirect:i,...s}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...s,redirect:i||a.path},params:a.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};o.beforeEach(l(o));export{b as a,o as b,l as g,p as r};
|
|
2
|
+
//# sourceMappingURL=router.9ee10098.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Z as d}from"./jwt-decode.esm.
|
|
2
|
-
//# sourceMappingURL=string.
|
|
1
|
+
import{Z as d}from"./jwt-decode.esm.f87c17f7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6f989bd4-a663-4dd4-a5fa-c3e04b3d0b57",e._sentryDebugIdIdentifier="sentry-dbid-6f989bd4-a663-4dd4-a5fa-c3e04b3d0b57")}catch{}})();function h(e){return d.string().email().safeParse(e).success}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}function w(e,t,r=!1,a=!0,s=!1,n=!0){const o=(a?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),i=`a-zA-Z0-9${s?"/":""}${n?"-":""}`,c=new RegExp(`[^${i}]`,"g"),l=o.replace(c,"_"),u=r?l:l.replace(/_+/g,"_");return t?u:u.replace(/_$/,"")}function b(e){var n;const r=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=/[a-z0-9]+/g,s=r.match(a);return(n=s==null?void 0:s.join("-"))!=null?n:""}function m(e,t){if(e.length===0||t.length===0)return!1;const r=e.toLowerCase(),a=t.toLowerCase();return r.split("").reduce((n,f)=>{var i;if(n===!1)return!1;const o=(i=n[n.length-1])!=null?i:null;if(o===null){const c=a.indexOf(f);return c===-1?!1:[c]}else{const l=a.slice(o+1).indexOf(f);return l===-1?!1:[...n,o+1+l]}},[])}function y(e){let t=0;for(let r=0;r<e.length;r++){const a=e.charCodeAt(r);t=(t<<5)-t+a,t=t&t}return t}export{w as a,p as c,m as f,y as h,h as i,b as n};
|
|
2
|
+
//# sourceMappingURL=string.0c102318.js.map
|
|
@@ -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.09566602.js";import{E as y}from"./record.a8da6046.js";import{a as h}from"./string.0c102318.js";import{Z as o}from"./jwt-decode.esm.f87c17f7.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]="86580f4b-4491-4963-82df-568c5d622397",s._sentryDebugIdIdentifier="sentry-dbid-86580f4b-4491-4963-82df-568c5d622397")}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=y.from(e)}static async create(e,t,r,d,l,b,f,I){const m=await g.create({name:e,type:t,default:r,nullable:d,unique:l,tableId:b,projectId:f,foreignKey:I});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=y.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.1b5568d1.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var q=Object.defineProperty;var G=(i,t,e)=>t in i?q(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var f=(i,t,e)=>(G(i,typeof t!="symbol"?t+"":t,e),e);import{k as j}from"./router.09566602.js";import{r as $,c as V,ep as K,al as Q,i as h,w as W}from"./jwt-decode.esm.f87c17f7.js";import"./contracts.generated.36d5f7a5.js";import{A as v}from"./record.a8da6046.js";import"./linters.6d68fd4f.js";import{u as X}from"./polling.9bc57b91.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="e1dec270-3025-4923-a1c8-78ba7f8077df",i._sentryDebugIdIdentifier="sentry-dbid-e1dec270-3025-4923-a1c8-78ba7f8077df")}catch{}})();class Y{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,a,n){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:a,id:n})})).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 a=e?"?remove_file=true":"",n=`/_editor/api/forms/${t}`+a;await fetch(n,{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,a,n){const r=await m.create(t,e,a,n);return new w(r)}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 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 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,a)=>(this.record.set("notification_trigger",{...t,[e]:a}),!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)}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,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText}}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,a,n){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:a,id:n})})).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 a=e?"?remove_file=true":"",n=`/_editor/api/hooks/${t}`+a;await fetch(n,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const a=new URLSearchParams(e.query),n=await fetch(`/_editor/api/hooks/${t}/run?${a.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:r,headers:l,body:p}=await n.json();return{status:r,headers:l,body:p}}}const S=new Z;class b{constructor(t){f(this,"record");this.record=v.create(S,t)}static async list(){return(await S.list()).map(e=>new b(e))}static async create(t,e,a,n){const r=await S.create(t,e,a,n);return new b(r)}static async get(t){const e=await S.get(t);return e?new b(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 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 S.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 F{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,a,n){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:a,id:n})})).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 a=e?"?remove_file=true":"",n=`/_editor/api/jobs/${t}`+a;await fetch(n,{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 T=new F;class k{constructor(t){f(this,"record");f(this,"isInitial",!0);this.record=v.create(T,t)}static async list(){return(await T.list()).map(e=>new k(e))}static async create(t,e,a,n){const r=await T.create(t,e,a,n);return new k(r)}static async get(t){const e=await T.get(t);return e?new k(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 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 T.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new k(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class H{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,a,n){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:a,id:n})})).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 a=e?"?remove_file=true":"",n=`/_editor/api/scripts/${t}`+a;await fetch(n,{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 H;class I{constructor(t){f(this,"record");this.record=v.create(_,t)}static async list(){return(await _.list()).map(e=>new I(e))}static async create(t,e,a,n){const r=await _.create(t,e,a,n);return new I(r)}static async get(t){const e=await _.get(t);return e?new I(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 I(t)}}class lt{async createTask(t,e,a){return fetch("/_editor/api/tasks",{method:"POST",body:JSON.stringify({name:t,payload:a,stage_id:e}),headers:{"Content-Type":"application/json"}}).then(n=>n.json())}async getAllTasks(t,e){const a={offset:t.currentIndex*t.pageSize,limit:t.pageSize,filter:{stage:e.stage,status:e.status,startDate:e.dateRange?e.dateRange[0]:void 0,endDate:e.dateRange?e.dateRange[1]:void 0}};return fetch("/_editor/api/tasks/list",{method:"POST",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}}).then(n=>n.json())}async getStageTasks(t){return fetch(`/_editor/api/tasks/${t}`).then(e=>e.json())}async getSentStageTasks(t){return fetch(`/_editor/api/tasks/${t}/sent`).then(e=>e.json())}async updateTaskStatus(t,e){return fetch(`/_editor/api/tasks/${t}/status`,{method:"PUT",body:JSON.stringify({status:e}),headers:{"Content-Type":"application/json"}}).then(a=>a.json())}async clearAllTasks(){return fetch("/_editor/api/tasks/clear",{method:"DELETE"}).then(t=>t.json())}}class ut{constructor(t){f(this,"projectId");this.projectId=t}async createTask(t,e,a){return await j.post(`projects/${this.projectId}/tasks`,{name:t,stageId:e,payload:a})}async getAllTasks(t,e){const a={offset:(t.currentIndex*t.pageSize).toString(),limit:t.pageSize.toString(),stageId:e.stage,status:e.status,startDate:e.dateRange?e.dateRange[0]:void 0,endDate:e.dateRange?e.dateRange[1]:void 0};return Object.keys(a).forEach(r=>a[r]===void 0&&delete a[r]),await j.get(`projects/${this.projectId}/tasks`,a)}async getStageTasks(t){const e={stageId:t,offset:"0",limit:"1000"};return await j.get(`projects/${this.projectId}/tasks`,e)}async getSentStageTasks(t){const e={sourceStageId:t,offset:"0",limit:"1000"};return await j.get(`projects/${this.projectId}/tasks`,e)}async updateTaskStatus(t,e){await j.patch(`projects/${this.projectId}/tasks/${t}`,{status:e})}async fetchStages(){throw new Error("Method not implemented.")}async fetchStatuses(){throw new Error("Method not implemented.")}async clearAllTasks(){throw new Error("Method not implemented.")}}function tt({api:i,fetchTasks:t}){const e=$({state:"idle"}),a=()=>{e.value={state:"idle"}},n=()=>{e.value={state:"creating",name:"My task",payloadCode:`{
|
|
2
|
+
"key": "value"
|
|
3
|
+
}`}},r=async p=>{const g=e.value;if(g.state!=="creating")throw new Error("Payload is required to create a task");if(!l.value)return;const c=JSON.parse(g.payloadCode),y=await i.createTask(g.name,p,c);return await t(),a(),y},l=V(()=>{const p=e.value;if(p.state!=="creating")return!1;try{const g=JSON.parse(p.payloadCode);return K.exports.isObject(g)}catch{return!1}});return{createTask:r,creatingTaskState:e,cancelCreatingTask:a,startCreatingTask:n,isPayloadValid:l}}const O=["pink","orange","green","blue","purple","red","cyan","magenta","volcano","gold"],ht=({api:i,poll:t,stageId:e,status:a,stages:n})=>{const r=Q({tasks:[],sentTasks:[],colorMap:new Map,pagination:{currentIndex:0,pageSize:10,totalCount:0},filters:{stage:e,status:a,dateRange:void 0},filterOptions:{stages:[],statuses:[{label:h.translate("i18n_tasksview_status_pending"),value:"pending"},{label:h.translate("i18n_tasksview_status_running"),value:"started"},{label:h.translate("i18n_tasksview_status_completed"),value:"completed"}]}}),l=[{name:"setToPending",label:h.translate("i18n_tasksview_action_set_to_pending"),handler:()=>{r.tasks.filter(s=>s.checked).map(s=>s.id).forEach(s=>P(s))}},{name:"setToCompleted",label:h.translate("i18n_tasksview_action_set_to_completed"),handler:()=>{r.tasks.filter(s=>s.checked).map(s=>s.id).forEach(s=>x(s))}},{name:"duplicate",label:h.translate("i18n_tasksview_action_duplicate"),handler:()=>{r.tasks.filter(s=>s.checked).forEach(async s=>{await i.createTask(s.type,s.targetStageId,s.payload),c()})}}],p=$(["pending"]),g=o=>{const s=r.tasks.findIndex(d=>d.id===o.id);s!==-1?r.tasks[s]=o:r.tasks.unshift(o)},c=async()=>{const o=e?await i.getStageTasks(e):await i.getAllTasks(r.pagination,r.filters);r.tasks=o.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})),r.pagination.totalCount=o.totalCount},y=async()=>{if(!e)return[];const o=await i.getSentStageTasks(e);r.sentTasks=o.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}))},E=()=>{var d;let o=0;r.tasks.concat((d=r.sentTasks)!=null?d:[]).forEach(C=>{r.colorMap.has(C.type)||(r.colorMap.set(C.type,O[o]),o=(o+1)%O.length)})};W(r.filters,async()=>{await Promise.all([c(),y()]),E()});const D=async()=>{await Promise.all([c(),y()]),E()},{startPolling:A,endPolling:R}=X({task:D,interval:15e3}),N=async()=>{if(await Promise.all([c(),y()]),E(),n===null){const o=Promise.all([w.list(),b.list(),k.list(),I.list()]).then(([s,d,C,u])=>[...s,...d,...C,...u]);r.filterOptions.stages=(await o).map(s=>({label:s.title,value:s.id}))}else r.filterOptions.stages=n.map(o=>({label:o.stageTitle,value:o.id}));t&&A()},J=()=>{t&&R()},P=async o=>{await i.updateTaskStatus(o,"pending"),c()},x=async o=>{await i.updateTaskStatus(o,"completed"),c()},M=o=>{r.tasks=r.tasks.map(s=>(s.id===o&&(s.checked=!s.checked),s))},U=()=>{const o=[],s=r.tasks.filter(u=>u.checked);return s.length===0?[]:(o.push("duplicate"),s.every(u=>u.status==="pending")&&o.push("setToCompleted"),s.every(u=>u.status==="completed")&&o.push("setToPending"),l.filter(u=>o.includes(u.name)))},L=async()=>{await i.clearAllTasks(),c(),y()},z=()=>[{title:h.translate("i18n_tasksview_column_date"),key:"timeInfo",align:"left",width:"25%"},{title:h.translate("i18n_tasksview_column_task"),key:"stageInfo",align:"left",width:"30%"},{title:h.translate("i18n_tasksview_column_payload"),key:"payloadInfo",align:"left",width:"45%"}],B=tt({api:i,fetchTasks:c});return{setup:N,tearDown:J,state:r,getColumns:z,collapseValue:p,setToPending:P,setToCompleted:x,fetchTasks:c,updateStatus:async(o,s)=>{r.tasks=r.tasks.map(d=>(d.id===o.id&&(d.status=s),d)),await i.updateTaskStatus(o.id,s),c()},fetchSentTasks:y,checkTask:M,getPossibleActions:U,clearAllTasks:L,insertOrUpdate:g,...B}};export{w as F,b as H,k as J,lt as L,ut as R,I as S,ht as T};
|
|
4
|
+
//# sourceMappingURL=tasksController.009192fc.js.map
|