windmill-components 1.60.3 → 1.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/app.css +3 -0
- package/common.d.ts +5 -1
- package/components/ApiConnectForm.svelte +66 -5
- package/components/AppConnect.svelte +24 -9
- package/components/ArgInput.svelte +1 -1
- package/components/CliHelpBox.svelte +49 -0
- package/components/CliHelpBox.svelte.d.ts +14 -0
- package/components/DisplayResult.svelte +51 -1
- package/components/DisplayResult.svelte.d.ts +1 -0
- package/components/Editor.svelte +17 -7
- package/components/EditorBar.svelte +129 -111
- package/components/FlowBuilder.svelte +2 -2
- package/components/FlowJobResult.svelte +10 -2
- package/components/FlowJobResult.svelte.d.ts +1 -0
- package/components/FlowMetadata.svelte +24 -8
- package/components/FlowPreviewContent.svelte +3 -4
- package/components/FlowStatusViewer.svelte +41 -9
- package/components/FolderEditor.svelte +4 -3
- package/components/HighlightCode.svelte +7 -1
- package/components/InlineCodeCopy.svelte +11 -0
- package/components/InlineCodeCopy.svelte.d.ts +16 -0
- package/components/InputTransformForm.svelte +9 -5
- package/components/LogViewer.svelte +6 -0
- package/components/LogViewer.svelte.d.ts +1 -0
- package/components/ModulePreview.svelte +11 -2
- package/components/MoveDrawer.svelte +1 -1
- package/components/Multiselect.svelte.d.ts +2 -2
- package/components/ObjectResourceInput.svelte +6 -1
- package/components/Path.svelte +14 -5
- package/components/Popover.svelte +8 -2
- package/components/Popover.svelte.d.ts +1 -0
- package/components/Range.svelte.d.ts +2 -2
- package/components/ResourceEditor.svelte +39 -16
- package/components/ResourcePicker.svelte +0 -1
- package/components/RunForm.svelte +26 -2
- package/components/RunForm.svelte.d.ts +1 -0
- package/components/ScheduleEditor.svelte +1 -1
- package/components/SchemaEditor.svelte +2 -2
- package/components/SchemaForm.svelte +14 -4
- package/components/SchemaForm.svelte.d.ts +1 -0
- package/components/ScriptBuilder.svelte +45 -22
- package/components/ScriptBuilder.svelte.d.ts +1 -0
- package/components/ScriptEditor.svelte +1 -0
- package/components/SharedBadge.svelte +5 -5
- package/components/Slider.svelte +14 -0
- package/components/Slider.svelte.d.ts +19 -0
- package/components/StringTypeNarrowing.svelte +0 -1
- package/components/SuperadminSettings.svelte +11 -3
- package/components/SuperadminSettings.svelte.d.ts +2 -0
- package/components/TemplateEditor.svelte.d.ts +204 -0
- package/components/TestJobLoader.svelte +3 -3
- package/components/Toggle.svelte +1 -2
- package/components/UserSettings.svelte +25 -28
- package/components/UserSettings.svelte.d.ts +2 -0
- package/components/VariableEditor.svelte +1 -1
- package/components/WhitelistIp.svelte +23 -0
- package/components/WhitelistIp.svelte.d.ts +14 -0
- package/components/apps/components/buttons/AppButton.svelte +52 -6
- package/components/apps/components/buttons/AppButton.svelte.d.ts +3 -0
- package/components/apps/components/{form → buttons}/AppForm.svelte +3 -1
- package/components/apps/components/buttons/AppFormButton.svelte +137 -0
- package/components/apps/components/buttons/AppFormButton.svelte.d.ts +25 -0
- package/components/apps/components/buttons/index.d.ts +3 -0
- package/components/apps/components/buttons/index.js +3 -0
- package/components/apps/components/{dataDisplay → display}/AppBarChart.svelte +15 -4
- package/components/apps/components/{dataDisplay → display}/AppBarChart.svelte.d.ts +1 -0
- package/components/apps/components/display/AppDisplayComponent.svelte +31 -0
- package/components/apps/components/display/AppDisplayComponent.svelte.d.ts +23 -0
- package/components/apps/components/display/AppHtml.svelte +32 -0
- package/components/apps/components/{dataDisplay → display}/AppHtml.svelte.d.ts +1 -3
- package/components/apps/components/display/AppIcon.svelte +35 -0
- package/components/apps/components/display/AppIcon.svelte.d.ts +22 -0
- package/components/apps/components/display/AppImage.svelte +27 -0
- package/components/apps/components/display/AppImage.svelte.d.ts +22 -0
- package/components/apps/components/{dataDisplay → display}/AppPieChart.svelte +2 -1
- package/components/apps/components/{dataDisplay → display}/AppPieChart.svelte.d.ts +1 -0
- package/components/apps/components/{dataDisplay → display}/AppScatterChart.svelte +2 -1
- package/components/apps/components/{dataDisplay → display}/AppScatterChart.svelte.d.ts +1 -0
- package/components/apps/components/{dataDisplay → display}/AppText.svelte +16 -14
- package/components/apps/components/{dataDisplay → display}/AppText.svelte.d.ts +3 -0
- package/components/apps/components/{dataDisplay → display}/AppTimeseries.svelte +3 -2
- package/components/apps/components/{dataDisplay → display}/AppTimeseries.svelte.d.ts +1 -0
- package/components/apps/components/display/PlotlyHtml.svelte +38 -0
- package/components/apps/components/display/PlotlyHtml.svelte.d.ts +24 -0
- package/components/apps/components/display/VegaLiteHtml.svelte +52 -0
- package/components/apps/components/{dataDisplay → display}/VegaLiteHtml.svelte.d.ts +3 -2
- package/components/apps/components/display/index.d.ts +12 -0
- package/components/apps/components/display/index.js +12 -0
- package/components/apps/components/display/table/AppAggridTable.svelte +83 -0
- package/components/apps/components/display/table/AppAggridTable.svelte.d.ts +24 -0
- package/components/apps/components/{table → display/table}/AppTable.svelte +44 -23
- package/components/apps/components/{table → display/table}/AppTable.svelte.d.ts +4 -2
- package/components/apps/components/{table → display/table}/AppTableFooter.svelte +1 -1
- package/components/apps/components/helpers/AlignWrapper.svelte +19 -19
- package/components/apps/components/helpers/AlignWrapper.svelte.d.ts +4 -2
- package/components/apps/components/helpers/HiddenComponent.svelte +22 -0
- package/components/apps/components/helpers/HiddenComponent.svelte.d.ts +25 -0
- package/components/apps/components/helpers/InputDefaultValue.svelte +17 -0
- package/components/apps/components/helpers/InputDefaultValue.svelte.d.ts +17 -0
- package/components/apps/components/helpers/InputValue.svelte +5 -7
- package/components/apps/components/helpers/InputValue.svelte.d.ts +0 -1
- package/components/apps/components/helpers/RunnableComponent.svelte +37 -48
- package/components/apps/components/helpers/RunnableComponent.svelte.d.ts +2 -1
- package/components/apps/components/helpers/RunnableWrapper.svelte +7 -2
- package/components/apps/components/helpers/RunnableWrapper.svelte.d.ts +2 -1
- package/components/apps/components/helpers/index.d.ts +10 -0
- package/components/apps/components/helpers/index.js +10 -0
- package/components/apps/components/icon.d.ts +1 -0
- package/components/apps/components/icon.js +18 -0
- package/components/apps/components/index.d.ts +5 -0
- package/components/apps/components/index.js +5 -0
- package/components/apps/components/{selectInputs → inputs}/AppCheckbox.svelte +4 -2
- package/components/apps/components/{dateInputs → inputs}/AppDateInput.svelte +6 -0
- package/components/apps/components/inputs/AppFileInput.svelte +34 -0
- package/components/apps/components/inputs/AppFileInput.svelte.d.ts +20 -0
- package/components/apps/components/inputs/AppNumberInput.svelte +48 -0
- package/components/apps/components/inputs/AppRangeInput.svelte +44 -0
- package/components/apps/components/inputs/AppRangeInput.svelte.d.ts +23 -0
- package/components/apps/components/inputs/AppSelect.svelte +90 -0
- package/components/apps/components/{selectInputs → inputs}/AppSelect.svelte.d.ts +2 -0
- package/components/apps/components/{numberInputs → inputs}/AppSliderInputs.svelte +13 -9
- package/components/apps/components/{textInputs → inputs}/AppTextInput.svelte +6 -0
- package/components/apps/components/inputs/currency/AppCurrencyInput.svelte +49 -0
- package/components/apps/components/inputs/currency/AppCurrencyInput.svelte.d.ts +21 -0
- package/components/apps/components/inputs/currency/CurrencyInput.svelte +181 -0
- package/components/apps/components/inputs/currency/CurrencyInput.svelte.d.ts +32 -0
- package/components/apps/components/inputs/index.d.ts +9 -0
- package/components/apps/components/inputs/index.js +9 -0
- package/components/apps/components/layout/AppContainer.svelte +32 -0
- package/components/apps/components/layout/AppContainer.svelte.d.ts +21 -0
- package/components/apps/components/layout/AppDivider.svelte +20 -0
- package/components/apps/components/layout/AppDivider.svelte.d.ts +22 -0
- package/components/apps/components/layout/AppTabs.svelte +58 -0
- package/components/apps/components/layout/AppTabs.svelte.d.ts +24 -0
- package/components/apps/components/layout/index.d.ts +3 -0
- package/components/apps/components/layout/index.js +3 -0
- package/components/apps/editor/AppComponentInput.svelte +33 -0
- package/components/apps/editor/AppComponentInput.svelte.d.ts +18 -0
- package/components/apps/editor/AppComponentInputs.svelte +13 -0
- package/components/apps/editor/AppComponentInputs.svelte.d.ts +20 -0
- package/components/apps/editor/AppEditor.svelte +66 -31
- package/components/apps/editor/AppEditor.svelte.d.ts +1 -0
- package/components/apps/editor/AppEditorHeader.svelte +74 -18
- package/components/apps/editor/AppEditorHeader.svelte.d.ts +1 -0
- package/components/apps/editor/AppInputs.svelte +60 -0
- package/components/apps/editor/AppInputs.svelte.d.ts +14 -0
- package/components/apps/editor/AppPreview.svelte +32 -5
- package/components/apps/editor/AppPreview.svelte.d.ts +2 -0
- package/components/apps/editor/ComponentHeader.svelte +40 -2
- package/components/apps/editor/ComponentHeader.svelte.d.ts +1 -1
- package/components/apps/editor/GridEditor.svelte +75 -32
- package/components/apps/editor/GridEditor.svelte.d.ts +2 -0
- package/components/apps/editor/SettingsPanel.svelte +31 -3
- package/components/apps/editor/SubGridEditor.svelte +111 -0
- package/components/apps/editor/SubGridEditor.svelte.d.ts +24 -0
- package/components/apps/editor/TablePanel.svelte +2 -0
- package/components/apps/editor/TablePanel.svelte.d.ts +1 -1
- package/components/apps/editor/appUtils.d.ts +9 -0
- package/components/apps/editor/appUtils.js +141 -0
- package/components/apps/editor/component/Component.svelte +209 -0
- package/components/apps/editor/component/Component.svelte.d.ts +23 -0
- package/components/apps/editor/component/README.md +15 -0
- package/components/apps/editor/component/components.d.ts +65 -0
- package/components/apps/editor/component/components.js +1102 -0
- package/components/apps/editor/component/default-codes.d.ts +3 -0
- package/components/apps/editor/component/default-codes.js +322 -0
- package/components/apps/editor/component/index.d.ts +4 -0
- package/components/apps/editor/component/index.js +4 -0
- package/components/apps/editor/component/sets.d.ts +2 -0
- package/components/apps/editor/component/sets.js +47 -0
- package/components/apps/editor/componentsPanel/ComponentList.svelte +30 -105
- package/components/apps/editor/componentsPanel/CssProperty.svelte +31 -0
- package/components/apps/editor/componentsPanel/CssProperty.svelte.d.ts +20 -0
- package/components/apps/editor/componentsPanel/CssSettings.svelte +141 -0
- package/components/apps/editor/componentsPanel/CssSettings.svelte.d.ts +14 -0
- package/components/apps/editor/componentsPanel/ListItem.svelte +28 -0
- package/components/apps/editor/componentsPanel/ListItem.svelte.d.ts +20 -0
- package/components/apps/editor/componentsPanel/componentStaticValues.d.ts +4 -1
- package/components/apps/editor/componentsPanel/componentStaticValues.js +4 -1
- package/components/apps/editor/contextPanel/ContextPanel.svelte +8 -6
- package/components/apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte +98 -9
- package/components/apps/editor/inlineScriptsPanel/InlineScriptEditor.svelte +38 -29
- package/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte +21 -1
- package/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte +66 -8
- package/components/apps/editor/inlineScriptsPanel/InlineScriptsPanelList.svelte +92 -46
- package/components/apps/editor/inlineScriptsPanel/utils.d.ts +5 -1
- package/components/apps/editor/inlineScriptsPanel/utils.js +30 -0
- package/components/apps/editor/settingsPanel/AlignmentEditor.svelte +1 -1
- package/components/apps/editor/settingsPanel/AlignmentEditor.svelte.d.ts +1 -1
- package/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte +4 -1
- package/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte.d.ts +59 -1
- package/components/apps/editor/settingsPanel/ComponentPanel.svelte +64 -34
- package/components/apps/editor/settingsPanel/ComponentPanel.svelte.d.ts +5 -3
- package/components/apps/editor/settingsPanel/GridTab.svelte +73 -0
- package/components/apps/editor/settingsPanel/GridTab.svelte.d.ts +18 -0
- package/components/apps/editor/settingsPanel/InputsSpecEditor.svelte +3 -0
- package/components/apps/editor/settingsPanel/InputsSpecEditor.svelte.d.ts +2 -2
- package/components/apps/editor/settingsPanel/InputsSpecsEditor.svelte +92 -77
- package/components/apps/editor/settingsPanel/InputsSpecsEditor.svelte.d.ts +1 -0
- package/components/apps/editor/settingsPanel/MoveToOtherGrid.svelte +85 -0
- package/components/apps/editor/settingsPanel/MoveToOtherGrid.svelte.d.ts +18 -0
- package/components/apps/editor/settingsPanel/Recompute.svelte +4 -1
- package/components/apps/editor/settingsPanel/TableActions.svelte +17 -6
- package/components/apps/editor/settingsPanel/TableActions.svelte.d.ts +2 -1
- package/components/apps/editor/settingsPanel/common/PanelSection.svelte +5 -3
- package/components/apps/editor/settingsPanel/inputEditor/IconSelectInput.svelte +83 -0
- package/components/apps/editor/settingsPanel/inputEditor/IconSelectInput.svelte.d.ts +19 -0
- package/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte +6 -1
- package/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte.d.ts +2 -0
- package/components/apps/editor/settingsPanel/inputEditor/UploadInputEditor.svelte +23 -0
- package/components/apps/editor/settingsPanel/inputEditor/UploadInputEditor.svelte.d.ts +17 -0
- package/components/apps/editor/settingsPanel/mainInput/RunnableSelector.svelte +3 -20
- package/components/apps/gridUtils.d.ts +3 -1
- package/components/apps/gridUtils.js +5 -3
- package/components/apps/inputType.d.ts +33 -6
- package/components/apps/types.d.ts +35 -39
- package/components/apps/types.js +1 -1
- package/components/apps/utils.d.ts +6 -5
- package/components/apps/utils.js +90 -90
- package/components/common/button/Button.svelte +12 -5
- package/components/common/button/Button.svelte.d.ts +3 -1
- package/components/common/button/ButtonPopup.svelte.d.ts +1 -1
- package/components/common/button/model.d.ts +2 -2
- package/components/common/button/model.js +21 -6
- package/components/common/confirmationModal/ConfirmationModal.svelte +8 -1
- package/components/common/confirmationModal/UnsavedConfirmationModal.svelte +4 -4
- package/components/common/drawer/Drawer.svelte +3 -1
- package/components/common/fileInput/FileInput.svelte +112 -0
- package/components/common/fileInput/FileInput.svelte.d.ts +27 -0
- package/components/common/index.d.ts +1 -0
- package/components/common/index.js +1 -0
- package/components/common/kbd/Kbd.svelte.d.ts +2 -2
- package/components/common/modal/Modal.svelte +74 -0
- package/components/common/modal/Modal.svelte.d.ts +22 -0
- package/components/common/popup/Popup.svelte +34 -17
- package/components/common/popup/Popup.svelte.d.ts +11 -4
- package/components/common/table/FlowRow.svelte +22 -3
- package/components/common/table/LanguageBadge.svelte +10 -4
- package/components/common/table/Row.svelte +1 -1
- package/components/common/table/ScriptRow.svelte +2 -2
- package/components/common/tabs/Tabs.svelte +9 -7
- package/components/common/tabs/Tabs.svelte.d.ts +3 -1
- package/components/flows/CreateActionsFlow.svelte +2 -3
- package/components/flows/content/BranchPredicateEditor.svelte +10 -8
- package/components/flows/content/CapturePayload.svelte +3 -3
- package/components/flows/content/FlowInputs.svelte +109 -99
- package/components/flows/content/FlowLoop.svelte +1 -1
- package/components/flows/content/FlowModuleComponent.svelte +3 -2
- package/components/flows/content/FlowRetries.svelte +8 -6
- package/components/flows/content/FlowSettings.svelte +72 -26
- package/components/flows/flowState.d.ts +1 -0
- package/components/flows/flowState.js +1 -0
- package/components/flows/flowStateUtils.js +4 -2
- package/components/flows/flowStore.d.ts +1 -0
- package/components/flows/flowStore.js +1 -0
- package/components/flows/map/FlowBranchAllMap.svelte +1 -1
- package/components/flows/map/FlowBranchOneMap.svelte +2 -2
- package/components/flows/map/FlowModuleSchemaItem.svelte +5 -5
- package/components/flows/map/FlowModuleSchemaMap.svelte +15 -8
- package/components/flows/map/FlowModuleSchemaMap.svelte.d.ts +1 -0
- package/components/flows/map/InsertModuleButton.svelte +24 -10
- package/components/flows/map/InsertModuleButton.svelte.d.ts +1 -0
- package/components/flows/map/MapItem.svelte +3 -1
- package/components/flows/utils.js +16 -10
- package/components/graph/FlowGraph.svelte +38 -15
- package/components/graph/FlowGraph.svelte.d.ts +1 -0
- package/components/icons/SquareIcon.svelte +9 -0
- package/components/icons/SquareIcon.svelte.d.ts +17 -0
- package/components/icons/index.d.ts +2 -0
- package/components/icons/index.js +2 -0
- package/components/jobs/JobDetail.svelte +29 -5
- package/components/propertyPicker/ObjectViewer.svelte +8 -5
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +1 -0
- package/components/propertyPicker/PropPicker.svelte +8 -1
- package/components/propertyPicker/PropPickerResult.svelte +1 -1
- package/components/random_positive_adjetive.d.ts +1 -0
- package/components/random_positive_adjetive.js +961 -0
- package/components/scriptEditor/LogPanel.svelte +2 -1
- package/components/sidebar/SidebarContent.svelte +1 -1
- package/components/sidebar/UserMenu.svelte +46 -16
- package/components/sidebar/UserMenu.svelte.d.ts +0 -3
- package/components/sidebar/WorkspaceMenu.svelte +3 -1
- package/components/sidebar/settings.d.ts +2 -0
- package/components/sidebar/settings.js +2 -0
- package/gen/core/OpenAPI.js +1 -1
- package/gen/models/CompletedJob.d.ts +1 -0
- package/gen/models/FlowModule.d.ts +0 -1
- package/gen/models/QueuedJob.d.ts +1 -0
- package/gen/models/WorkerPing.d.ts +1 -1
- package/gen/services/FlowService.d.ts +9 -0
- package/gen/services/FlowService.js +15 -0
- package/gen/services/JobService.d.ts +97 -15
- package/gen/services/JobService.js +74 -15
- package/gen/services/ScriptService.d.ts +10 -1
- package/gen/services/ScriptService.js +16 -1
- package/gen/services/VariableService.d.ts +4 -2
- package/gen/services/VariableService.js +8 -2
- package/gen/services/WorkspaceService.d.ts +17 -0
- package/gen/services/WorkspaceService.js +16 -0
- package/infer.js +3 -0
- package/init_scripts/python_failure_module.py +10 -0
- package/init_scripts/python_init_code.py +37 -0
- package/init_scripts/python_init_code_clear.py +5 -0
- package/init_scripts/python_init_code_trigger.py +14 -0
- package/logout.js +2 -1
- package/package.json +577 -522
- package/script_helpers.d.ts +6 -5
- package/script_helpers.js +7 -73
- package/stores.d.ts +5 -1
- package/stores.js +8 -1
- package/user.d.ts +1 -1
- package/user.js +14 -8
- package/utils.d.ts +1 -1
- package/utils.js +8 -7
- package/components/apps/components/DisplayComponent.svelte +0 -16
- package/components/apps/components/DisplayComponent.svelte.d.ts +0 -20
- package/components/apps/components/dataDisplay/AppHtml.svelte +0 -35
- package/components/apps/components/dataDisplay/VegaLiteHtml.svelte +0 -28
- package/components/apps/components/numberInputs/AppNumberInput.svelte +0 -33
- package/components/apps/components/selectInputs/AppSelect.svelte +0 -47
- package/components/apps/editor/ComponentEditor.svelte +0 -138
- package/components/apps/editor/ComponentEditor.svelte.d.ts +0 -23
- package/components/apps/editor/componentsPanel/data.d.ts +0 -3
- package/components/apps/editor/componentsPanel/data.js +0 -465
- package/components/apps/editorUtils.d.ts +0 -1
- package/components/apps/editorUtils.js +0 -253
- /package/components/apps/components/{form → buttons}/AppForm.svelte.d.ts +0 -0
- /package/components/apps/components/{table → display/table}/AppTableFooter.svelte.d.ts +0 -0
- /package/components/apps/components/{table → display/table}/tableOptions.d.ts +0 -0
- /package/components/apps/components/{table → display/table}/tableOptions.js +0 -0
- /package/components/apps/components/{selectInputs → inputs}/AppCheckbox.svelte.d.ts +0 -0
- /package/components/apps/components/{dateInputs → inputs}/AppDateInput.svelte.d.ts +0 -0
- /package/components/apps/components/{numberInputs → inputs}/AppNumberInput.svelte.d.ts +0 -0
- /package/components/apps/components/{numberInputs → inputs}/AppSliderInputs.svelte.d.ts +0 -0
- /package/components/apps/components/{textInputs → inputs}/AppTextInput.svelte.d.ts +0 -0
|
@@ -70,6 +70,7 @@ function closeDrawer() {
|
|
|
70
70
|
<Pane class="relative">
|
|
71
71
|
<LogViewer
|
|
72
72
|
duration={previewJob?.['duration_ms']}
|
|
73
|
+
mem={previewJob?.['mem_peak']}
|
|
73
74
|
content={previewJob?.logs}
|
|
74
75
|
isLoading={previewIsLoading}
|
|
75
76
|
/>
|
|
@@ -84,7 +85,7 @@ function closeDrawer() {
|
|
|
84
85
|
{#if previewIsLoading}
|
|
85
86
|
<Loader2 class="animate-spin" />
|
|
86
87
|
{:else}
|
|
87
|
-
Test to see the result here
|
|
88
|
+
Test to see the result here
|
|
88
89
|
{/if}
|
|
89
90
|
</div>
|
|
90
91
|
{/if}
|
|
@@ -17,7 +17,7 @@ $: secondaryMenuLinks = [
|
|
|
17
17
|
label: 'Workspace',
|
|
18
18
|
href: '/workspace_settings',
|
|
19
19
|
icon: faCog,
|
|
20
|
-
disabled: !$userStore?.is_admin
|
|
20
|
+
disabled: !$userStore?.is_admin && !$userStore?.is_super_admin
|
|
21
21
|
},
|
|
22
22
|
{ label: 'Workers', href: '/workers', icon: faRobot, disabled: $userStore?.operator }
|
|
23
23
|
];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import {
|
|
1
|
+
<script>import { goto } from '$app/navigation';
|
|
2
|
+
import { logout } from '../../logout';
|
|
3
|
+
import { userStore, usersWorkspaceStore, superadmin, usageStore, premiumStore } from '../../stores';
|
|
3
4
|
import { classNames, isCloudHosted } from '../../utils';
|
|
4
|
-
import {
|
|
5
|
-
import { createEventDispatcher } from 'svelte';
|
|
5
|
+
import { faCrown, faHardHat, faUser } from '@fortawesome/free-solid-svg-icons';
|
|
6
6
|
import Icon from 'svelte-awesome';
|
|
7
7
|
import Menu from '../common/menu/Menu.svelte';
|
|
8
|
-
|
|
8
|
+
import { SUPERADMIN_SETTINGS_HASH, USER_SETTINGS_HASH } from './settings';
|
|
9
9
|
export let isCollapsed = false;
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<Menu placement="bottom-start">
|
|
12
|
+
<Menu let:close placement="bottom-start">
|
|
13
13
|
<button
|
|
14
14
|
slot="trigger"
|
|
15
15
|
type="button"
|
|
@@ -51,8 +51,7 @@ export let isCollapsed = false;
|
|
|
51
51
|
|
|
52
52
|
<div class="py-1" role="none">
|
|
53
53
|
<a
|
|
54
|
-
|
|
55
|
-
href="#user-settings"
|
|
54
|
+
href={USER_SETTINGS_HASH}
|
|
56
55
|
class="text-gray-700 block px-4 py-2 text-sm hover:bg-gray-100 hover:text-gray-900"
|
|
57
56
|
role="menuitem"
|
|
58
57
|
tabindex="-1"
|
|
@@ -63,8 +62,7 @@ export let isCollapsed = false;
|
|
|
63
62
|
{#if $superadmin}
|
|
64
63
|
<div class="py-1" role="none">
|
|
65
64
|
<a
|
|
66
|
-
|
|
67
|
-
href="#superadmin-settings"
|
|
65
|
+
href={SUPERADMIN_SETTINGS_HASH}
|
|
68
66
|
class="text-gray-700 block px-4 py-2 text-sm hover:bg-gray-100 hover:text-gray-900"
|
|
69
67
|
role="menuitem"
|
|
70
68
|
tabindex="-1"
|
|
@@ -84,12 +82,44 @@ export let isCollapsed = false;
|
|
|
84
82
|
Sign out
|
|
85
83
|
</button>
|
|
86
84
|
</div>
|
|
87
|
-
{#if isCloudHosted()}
|
|
88
|
-
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
{#if isCloudHosted() && $premiumStore}
|
|
86
|
+
{#if !$premiumStore.premium}
|
|
87
|
+
<div class="py-1" role="none">
|
|
88
|
+
<span class="text-gray-700 block w-full text-left px-4 py-2 text-sm"
|
|
89
|
+
>{$usageStore}/1000 free-tier executions</span
|
|
90
|
+
>
|
|
91
|
+
<div class="w-full bg-gray-200 h-1">
|
|
92
|
+
<div class="bg-blue-400 h-1" style="width: {Math.min($usageStore, 1000) / 10}%" />
|
|
93
|
+
</div>
|
|
94
|
+
{#if $userStore?.is_admin}
|
|
95
|
+
<button
|
|
96
|
+
type="button"
|
|
97
|
+
class="text-gray-700 block font-normal w-full text-left px-4 py-2 text-sm hover:bg-gray-100 hover:text-gray-900"
|
|
98
|
+
role="menuitem"
|
|
99
|
+
tabindex="-1"
|
|
100
|
+
on:click={() => {
|
|
101
|
+
close()
|
|
102
|
+
goto('/workspace_settings?tab=premium')
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
Upgrade
|
|
106
|
+
</button>
|
|
107
|
+
{/if}
|
|
108
|
+
</div>
|
|
109
|
+
{:else}
|
|
110
|
+
<div class="py-1" role="none">
|
|
111
|
+
<button
|
|
112
|
+
type="button"
|
|
113
|
+
class="text-gray-700 block font-normal w-full text-left px-4 py-2 text-sm hover:bg-gray-100 hover:text-gray-900"
|
|
114
|
+
role="menuitem"
|
|
115
|
+
tabindex="-1"
|
|
116
|
+
on:click={() => {
|
|
117
|
+
close()
|
|
118
|
+
goto('/workspace_settings?tab=premium')
|
|
119
|
+
}}>Premium plan</button
|
|
120
|
+
>
|
|
121
|
+
</div>
|
|
122
|
+
{/if}
|
|
93
123
|
{/if}
|
|
94
124
|
</div>
|
|
95
125
|
</Menu>
|
|
@@ -27,8 +27,10 @@ export let isCollapsed = false;
|
|
|
27
27
|
<table class="w-full">
|
|
28
28
|
{#each $userWorkspaces as workspace}
|
|
29
29
|
<tr
|
|
30
|
-
class="text-xs
|
|
30
|
+
class="text-xs
|
|
31
|
+
{$workspaceStore === workspace.id ? 'cursor-default bg-blue-50' : 'cursor-pointer hover:bg-gray-100'}"
|
|
31
32
|
on:click={() => {
|
|
33
|
+
if($workspaceStore === workspace.id) { return }
|
|
32
34
|
switchWorkspace(workspace.id)
|
|
33
35
|
close()
|
|
34
36
|
}}
|
package/gen/core/OpenAPI.js
CHANGED
|
@@ -134,4 +134,13 @@ export declare class FlowService {
|
|
|
134
134
|
workspace: string;
|
|
135
135
|
path: string;
|
|
136
136
|
}): CancelablePromise<string>;
|
|
137
|
+
/**
|
|
138
|
+
* delete flow by path
|
|
139
|
+
* @returns string flow delete
|
|
140
|
+
* @throws ApiError
|
|
141
|
+
*/
|
|
142
|
+
static deleteFlowByPath({ workspace, path, }: {
|
|
143
|
+
workspace: string;
|
|
144
|
+
path: string;
|
|
145
|
+
}): CancelablePromise<string>;
|
|
137
146
|
}
|
|
@@ -142,4 +142,19 @@ export class FlowService {
|
|
|
142
142
|
},
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* delete flow by path
|
|
147
|
+
* @returns string flow delete
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
static deleteFlowByPath({ workspace, path, }) {
|
|
151
|
+
return __request(OpenAPI, {
|
|
152
|
+
method: 'DELETE',
|
|
153
|
+
url: '/w/{workspace}/flows/delete/{path}',
|
|
154
|
+
path: {
|
|
155
|
+
'workspace': workspace,
|
|
156
|
+
'path': path,
|
|
157
|
+
},
|
|
158
|
+
});
|
|
159
|
+
}
|
|
145
160
|
}
|
|
@@ -40,7 +40,7 @@ export declare class JobService {
|
|
|
40
40
|
* @returns any job result
|
|
41
41
|
* @throws ApiError
|
|
42
42
|
*/
|
|
43
|
-
static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, }: {
|
|
43
|
+
static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, queueLimit, }: {
|
|
44
44
|
workspace: string;
|
|
45
45
|
path: string;
|
|
46
46
|
/**
|
|
@@ -65,20 +65,53 @@ export declare class JobService {
|
|
|
65
65
|
*
|
|
66
66
|
*/
|
|
67
67
|
includeHeader?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
queueLimit?: string;
|
|
73
|
+
}): CancelablePromise<any>;
|
|
74
|
+
/**
|
|
75
|
+
* run flow by path and wait until completion
|
|
76
|
+
* @returns any job result
|
|
77
|
+
* @throws ApiError
|
|
78
|
+
*/
|
|
79
|
+
static runWaitResultFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, includeHeader, queueLimit, }: {
|
|
80
|
+
workspace: string;
|
|
81
|
+
path: string;
|
|
82
|
+
/**
|
|
83
|
+
* script args
|
|
84
|
+
*/
|
|
85
|
+
requestBody: ScriptArgs;
|
|
86
|
+
/**
|
|
87
|
+
* when to schedule this job (leave empty for immediate run)
|
|
88
|
+
*/
|
|
89
|
+
scheduledFor?: string;
|
|
90
|
+
/**
|
|
91
|
+
* schedule the script to execute in the number of seconds starting now
|
|
92
|
+
*/
|
|
93
|
+
scheduledInSecs?: number;
|
|
94
|
+
/**
|
|
95
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
96
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
includeHeader?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
queueLimit?: string;
|
|
68
105
|
}): CancelablePromise<any>;
|
|
69
106
|
/**
|
|
70
107
|
* get job result by id
|
|
71
108
|
* @returns any job result
|
|
72
109
|
* @throws ApiError
|
|
73
110
|
*/
|
|
74
|
-
static resultById({ workspace, flowJobId, nodeId,
|
|
111
|
+
static resultById({ workspace, flowJobId, nodeId, }: {
|
|
75
112
|
workspace: string;
|
|
76
113
|
flowJobId: string;
|
|
77
114
|
nodeId: string;
|
|
78
|
-
/**
|
|
79
|
-
* Skip checking that the node is part of the given flow.
|
|
80
|
-
*/
|
|
81
|
-
skipDirect?: boolean;
|
|
82
115
|
}): CancelablePromise<any>;
|
|
83
116
|
/**
|
|
84
117
|
* run flow by path
|
|
@@ -199,7 +232,7 @@ export declare class JobService {
|
|
|
199
232
|
* @returns QueuedJob All available queued jobs
|
|
200
233
|
* @throws ApiError
|
|
201
234
|
*/
|
|
202
|
-
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash,
|
|
235
|
+
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, }: {
|
|
203
236
|
workspace: string;
|
|
204
237
|
/**
|
|
205
238
|
* order by desc order (default true)
|
|
@@ -228,11 +261,11 @@ export declare class JobService {
|
|
|
228
261
|
/**
|
|
229
262
|
* filter on created before (inclusive) timestamp
|
|
230
263
|
*/
|
|
231
|
-
|
|
264
|
+
startedBefore?: string;
|
|
232
265
|
/**
|
|
233
266
|
* filter on created after (exclusive) timestamp
|
|
234
267
|
*/
|
|
235
|
-
|
|
268
|
+
startedAfter?: string;
|
|
236
269
|
/**
|
|
237
270
|
* filter on successful jobs
|
|
238
271
|
*/
|
|
@@ -249,13 +282,21 @@ export declare class JobService {
|
|
|
249
282
|
* filter on running jobs
|
|
250
283
|
*/
|
|
251
284
|
running?: boolean;
|
|
285
|
+
/**
|
|
286
|
+
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
287
|
+
*/
|
|
288
|
+
args?: string;
|
|
289
|
+
/**
|
|
290
|
+
* filter on jobs containing those result as a json subset (@> in postgres)
|
|
291
|
+
*/
|
|
292
|
+
result?: string;
|
|
252
293
|
}): CancelablePromise<Array<QueuedJob>>;
|
|
253
294
|
/**
|
|
254
295
|
* list all available completed jobs
|
|
255
296
|
* @returns CompletedJob All available completed jobs
|
|
256
297
|
* @throws ApiError
|
|
257
298
|
*/
|
|
258
|
-
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash,
|
|
299
|
+
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, isSkipped, isFlowStep, }: {
|
|
259
300
|
workspace: string;
|
|
260
301
|
/**
|
|
261
302
|
* order by desc order (default true)
|
|
@@ -284,11 +325,11 @@ export declare class JobService {
|
|
|
284
325
|
/**
|
|
285
326
|
* filter on created before (inclusive) timestamp
|
|
286
327
|
*/
|
|
287
|
-
|
|
328
|
+
startedBefore?: string;
|
|
288
329
|
/**
|
|
289
330
|
* filter on created after (exclusive) timestamp
|
|
290
331
|
*/
|
|
291
|
-
|
|
332
|
+
startedAfter?: string;
|
|
292
333
|
/**
|
|
293
334
|
* filter on successful jobs
|
|
294
335
|
*/
|
|
@@ -297,6 +338,14 @@ export declare class JobService {
|
|
|
297
338
|
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
298
339
|
*/
|
|
299
340
|
jobKinds?: string;
|
|
341
|
+
/**
|
|
342
|
+
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
343
|
+
*/
|
|
344
|
+
args?: string;
|
|
345
|
+
/**
|
|
346
|
+
* filter on jobs containing those result as a json subset (@> in postgres)
|
|
347
|
+
*/
|
|
348
|
+
result?: string;
|
|
300
349
|
/**
|
|
301
350
|
* is the job skipped
|
|
302
351
|
*/
|
|
@@ -311,7 +360,7 @@ export declare class JobService {
|
|
|
311
360
|
* @returns Job All jobs
|
|
312
361
|
* @throws ApiError
|
|
313
362
|
*/
|
|
314
|
-
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash,
|
|
363
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, jobKinds, args, result, isSkipped, isFlowStep, success, }: {
|
|
315
364
|
workspace: string;
|
|
316
365
|
/**
|
|
317
366
|
* mask to filter exact matching user creator
|
|
@@ -336,15 +385,23 @@ export declare class JobService {
|
|
|
336
385
|
/**
|
|
337
386
|
* filter on created before (inclusive) timestamp
|
|
338
387
|
*/
|
|
339
|
-
|
|
388
|
+
startedBefore?: string;
|
|
340
389
|
/**
|
|
341
390
|
* filter on created after (exclusive) timestamp
|
|
342
391
|
*/
|
|
343
|
-
|
|
392
|
+
startedAfter?: string;
|
|
344
393
|
/**
|
|
345
394
|
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
346
395
|
*/
|
|
347
396
|
jobKinds?: string;
|
|
397
|
+
/**
|
|
398
|
+
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
399
|
+
*/
|
|
400
|
+
args?: string;
|
|
401
|
+
/**
|
|
402
|
+
* filter on jobs containing those result as a json subset (@> in postgres)
|
|
403
|
+
*/
|
|
404
|
+
result?: string;
|
|
348
405
|
/**
|
|
349
406
|
* is the job skipped
|
|
350
407
|
*/
|
|
@@ -381,6 +438,7 @@ export declare class JobService {
|
|
|
381
438
|
running?: boolean;
|
|
382
439
|
completed?: boolean;
|
|
383
440
|
new_logs?: string;
|
|
441
|
+
mem_peak?: number;
|
|
384
442
|
}>;
|
|
385
443
|
/**
|
|
386
444
|
* get completed job
|
|
@@ -391,6 +449,15 @@ export declare class JobService {
|
|
|
391
449
|
workspace: string;
|
|
392
450
|
id: string;
|
|
393
451
|
}): CancelablePromise<CompletedJob>;
|
|
452
|
+
/**
|
|
453
|
+
* get completed job result
|
|
454
|
+
* @returns any result
|
|
455
|
+
* @throws ApiError
|
|
456
|
+
*/
|
|
457
|
+
static getCompletedJobResult({ workspace, id, }: {
|
|
458
|
+
workspace: string;
|
|
459
|
+
id: string;
|
|
460
|
+
}): CancelablePromise<any>;
|
|
394
461
|
/**
|
|
395
462
|
* delete completed job (erase content but keep run id)
|
|
396
463
|
* @returns CompletedJob job details
|
|
@@ -415,6 +482,21 @@ export declare class JobService {
|
|
|
415
482
|
reason?: string;
|
|
416
483
|
};
|
|
417
484
|
}): CancelablePromise<string>;
|
|
485
|
+
/**
|
|
486
|
+
* force cancel queued job
|
|
487
|
+
* @returns string job canceled
|
|
488
|
+
* @throws ApiError
|
|
489
|
+
*/
|
|
490
|
+
static forceCancelQueuedJob({ workspace, id, requestBody, }: {
|
|
491
|
+
workspace: string;
|
|
492
|
+
id: string;
|
|
493
|
+
/**
|
|
494
|
+
* reason
|
|
495
|
+
*/
|
|
496
|
+
requestBody: {
|
|
497
|
+
reason?: string;
|
|
498
|
+
};
|
|
499
|
+
}): CancelablePromise<string>;
|
|
418
500
|
/**
|
|
419
501
|
* create an HMac signature given a job id and a resume id
|
|
420
502
|
* @returns string job signature
|
|
@@ -29,7 +29,7 @@ export class JobService {
|
|
|
29
29
|
* @returns any job result
|
|
30
30
|
* @throws ApiError
|
|
31
31
|
*/
|
|
32
|
-
static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, }) {
|
|
32
|
+
static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, queueLimit, }) {
|
|
33
33
|
return __request(OpenAPI, {
|
|
34
34
|
method: 'POST',
|
|
35
35
|
url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
|
|
@@ -42,6 +42,30 @@ export class JobService {
|
|
|
42
42
|
'scheduled_in_secs': scheduledInSecs,
|
|
43
43
|
'parent_job': parentJob,
|
|
44
44
|
'include_header': includeHeader,
|
|
45
|
+
'queue_limit': queueLimit,
|
|
46
|
+
},
|
|
47
|
+
body: requestBody,
|
|
48
|
+
mediaType: 'application/json',
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* run flow by path and wait until completion
|
|
53
|
+
* @returns any job result
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static runWaitResultFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, includeHeader, queueLimit, }) {
|
|
57
|
+
return __request(OpenAPI, {
|
|
58
|
+
method: 'POST',
|
|
59
|
+
url: '/w/{workspace}/jobs/run_wait_result/f/{path}',
|
|
60
|
+
path: {
|
|
61
|
+
'workspace': workspace,
|
|
62
|
+
'path': path,
|
|
63
|
+
},
|
|
64
|
+
query: {
|
|
65
|
+
'scheduled_for': scheduledFor,
|
|
66
|
+
'scheduled_in_secs': scheduledInSecs,
|
|
67
|
+
'include_header': includeHeader,
|
|
68
|
+
'queue_limit': queueLimit,
|
|
45
69
|
},
|
|
46
70
|
body: requestBody,
|
|
47
71
|
mediaType: 'application/json',
|
|
@@ -52,7 +76,7 @@ export class JobService {
|
|
|
52
76
|
* @returns any job result
|
|
53
77
|
* @throws ApiError
|
|
54
78
|
*/
|
|
55
|
-
static resultById({ workspace, flowJobId, nodeId,
|
|
79
|
+
static resultById({ workspace, flowJobId, nodeId, }) {
|
|
56
80
|
return __request(OpenAPI, {
|
|
57
81
|
method: 'GET',
|
|
58
82
|
url: '/w/{workspace}/jobs/result_by_id/{flow_job_id}/{node_id}',
|
|
@@ -61,9 +85,6 @@ export class JobService {
|
|
|
61
85
|
'flow_job_id': flowJobId,
|
|
62
86
|
'node_id': nodeId,
|
|
63
87
|
},
|
|
64
|
-
query: {
|
|
65
|
-
'skip_direct': skipDirect,
|
|
66
|
-
},
|
|
67
88
|
});
|
|
68
89
|
}
|
|
69
90
|
/**
|
|
@@ -159,7 +180,7 @@ export class JobService {
|
|
|
159
180
|
* @returns QueuedJob All available queued jobs
|
|
160
181
|
* @throws ApiError
|
|
161
182
|
*/
|
|
162
|
-
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash,
|
|
183
|
+
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, }) {
|
|
163
184
|
return __request(OpenAPI, {
|
|
164
185
|
method: 'GET',
|
|
165
186
|
url: '/w/{workspace}/jobs/queue/list',
|
|
@@ -173,12 +194,14 @@ export class JobService {
|
|
|
173
194
|
'script_path_exact': scriptPathExact,
|
|
174
195
|
'script_path_start': scriptPathStart,
|
|
175
196
|
'script_hash': scriptHash,
|
|
176
|
-
'
|
|
177
|
-
'
|
|
197
|
+
'started_before': startedBefore,
|
|
198
|
+
'started_after': startedAfter,
|
|
178
199
|
'success': success,
|
|
179
200
|
'job_kinds': jobKinds,
|
|
180
201
|
'suspended': suspended,
|
|
181
202
|
'running': running,
|
|
203
|
+
'args': args,
|
|
204
|
+
'result': result,
|
|
182
205
|
},
|
|
183
206
|
});
|
|
184
207
|
}
|
|
@@ -187,7 +210,7 @@ export class JobService {
|
|
|
187
210
|
* @returns CompletedJob All available completed jobs
|
|
188
211
|
* @throws ApiError
|
|
189
212
|
*/
|
|
190
|
-
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash,
|
|
213
|
+
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, isSkipped, isFlowStep, }) {
|
|
191
214
|
return __request(OpenAPI, {
|
|
192
215
|
method: 'GET',
|
|
193
216
|
url: '/w/{workspace}/jobs/completed/list',
|
|
@@ -201,10 +224,12 @@ export class JobService {
|
|
|
201
224
|
'script_path_exact': scriptPathExact,
|
|
202
225
|
'script_path_start': scriptPathStart,
|
|
203
226
|
'script_hash': scriptHash,
|
|
204
|
-
'
|
|
205
|
-
'
|
|
227
|
+
'started_before': startedBefore,
|
|
228
|
+
'started_after': startedAfter,
|
|
206
229
|
'success': success,
|
|
207
230
|
'job_kinds': jobKinds,
|
|
231
|
+
'args': args,
|
|
232
|
+
'result': result,
|
|
208
233
|
'is_skipped': isSkipped,
|
|
209
234
|
'is_flow_step': isFlowStep,
|
|
210
235
|
},
|
|
@@ -215,7 +240,7 @@ export class JobService {
|
|
|
215
240
|
* @returns Job All jobs
|
|
216
241
|
* @throws ApiError
|
|
217
242
|
*/
|
|
218
|
-
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash,
|
|
243
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, jobKinds, args, result, isSkipped, isFlowStep, success, }) {
|
|
219
244
|
return __request(OpenAPI, {
|
|
220
245
|
method: 'GET',
|
|
221
246
|
url: '/w/{workspace}/jobs/list',
|
|
@@ -228,9 +253,11 @@ export class JobService {
|
|
|
228
253
|
'script_path_exact': scriptPathExact,
|
|
229
254
|
'script_path_start': scriptPathStart,
|
|
230
255
|
'script_hash': scriptHash,
|
|
231
|
-
'
|
|
232
|
-
'
|
|
256
|
+
'started_before': startedBefore,
|
|
257
|
+
'started_after': startedAfter,
|
|
233
258
|
'job_kinds': jobKinds,
|
|
259
|
+
'args': args,
|
|
260
|
+
'result': result,
|
|
234
261
|
'is_skipped': isSkipped,
|
|
235
262
|
'is_flow_step': isFlowStep,
|
|
236
263
|
'success': success,
|
|
@@ -286,6 +313,21 @@ export class JobService {
|
|
|
286
313
|
},
|
|
287
314
|
});
|
|
288
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* get completed job result
|
|
318
|
+
* @returns any result
|
|
319
|
+
* @throws ApiError
|
|
320
|
+
*/
|
|
321
|
+
static getCompletedJobResult({ workspace, id, }) {
|
|
322
|
+
return __request(OpenAPI, {
|
|
323
|
+
method: 'GET',
|
|
324
|
+
url: '/w/{workspace}/jobs/completed/get_result/{id}',
|
|
325
|
+
path: {
|
|
326
|
+
'workspace': workspace,
|
|
327
|
+
'id': id,
|
|
328
|
+
},
|
|
329
|
+
});
|
|
330
|
+
}
|
|
289
331
|
/**
|
|
290
332
|
* delete completed job (erase content but keep run id)
|
|
291
333
|
* @returns CompletedJob job details
|
|
@@ -309,7 +351,24 @@ export class JobService {
|
|
|
309
351
|
static cancelQueuedJob({ workspace, id, requestBody, }) {
|
|
310
352
|
return __request(OpenAPI, {
|
|
311
353
|
method: 'POST',
|
|
312
|
-
url: '/w/{workspace}/
|
|
354
|
+
url: '/w/{workspace}/jobs_u/queue/cancel/{id}',
|
|
355
|
+
path: {
|
|
356
|
+
'workspace': workspace,
|
|
357
|
+
'id': id,
|
|
358
|
+
},
|
|
359
|
+
body: requestBody,
|
|
360
|
+
mediaType: 'application/json',
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* force cancel queued job
|
|
365
|
+
* @returns string job canceled
|
|
366
|
+
* @throws ApiError
|
|
367
|
+
*/
|
|
368
|
+
static forceCancelQueuedJob({ workspace, id, requestBody, }) {
|
|
369
|
+
return __request(OpenAPI, {
|
|
370
|
+
method: 'POST',
|
|
371
|
+
url: '/w/{workspace}/jobs_u/queue/force_cancel/{id}',
|
|
313
372
|
path: {
|
|
314
373
|
'workspace': workspace,
|
|
315
374
|
'id': id,
|
|
@@ -216,7 +216,7 @@ export declare class ScriptService {
|
|
|
216
216
|
hash: string;
|
|
217
217
|
}): CancelablePromise<Script>;
|
|
218
218
|
/**
|
|
219
|
-
* delete script by hash (erase content but keep hash)
|
|
219
|
+
* delete script by hash (erase content but keep hash, require admin)
|
|
220
220
|
* @returns Script script details
|
|
221
221
|
* @throws ApiError
|
|
222
222
|
*/
|
|
@@ -224,6 +224,15 @@ export declare class ScriptService {
|
|
|
224
224
|
workspace: string;
|
|
225
225
|
hash: string;
|
|
226
226
|
}): CancelablePromise<Script>;
|
|
227
|
+
/**
|
|
228
|
+
* delete all scripts at a given path (require admin)
|
|
229
|
+
* @returns string script path
|
|
230
|
+
* @throws ApiError
|
|
231
|
+
*/
|
|
232
|
+
static deleteScriptByPath({ workspace, path, }: {
|
|
233
|
+
workspace: string;
|
|
234
|
+
path: string;
|
|
235
|
+
}): CancelablePromise<string>;
|
|
227
236
|
/**
|
|
228
237
|
* get script by path
|
|
229
238
|
* @returns Script script details
|