@nocobase/plugin-workflow 2.2.0-alpha.7 → 2.2.0-beta.10
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/dist/client/618.c91be3f6e4d73501.js +10 -0
- package/dist/client/67.61e70b8b777f8638.js +10 -0
- package/dist/client/964.5e11e1820fece37b.js +10 -0
- package/dist/client/AddNodeContext.d.ts +9 -1
- package/dist/client/BranchContext.d.ts +10 -2
- package/dist/client/FlowContext.d.ts +5 -10
- package/dist/client/NodeClipboardContext.d.ts +2 -12
- package/dist/client/NodeDragContext.d.ts +2 -14
- package/dist/client/RemoveNodeContext.d.ts +2 -16
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/{client-v2 → client}/models/NodeDetailsGridModel.d.ts +1 -1
- package/dist/{client-v2 → client}/models/NodeDetailsModel.d.ts +1 -1
- package/dist/{client-v2 → client}/models/NodeValueModel.d.ts +1 -1
- package/dist/{client-v2 → client}/models/TaskCardCommonItemModel.d.ts +1 -1
- package/dist/{client-v2 → client}/models/index.d.ts +0 -2
- package/dist/client/nodeVariableUtils.d.ts +6 -7
- package/dist/client/nodes/calculation.d.ts +75 -3
- package/dist/client/nodes/condition.d.ts +111 -7
- package/dist/client/nodes/create.d.ts +124 -3
- package/dist/client/nodes/destroy.d.ts +57 -2
- package/dist/client/nodes/end.d.ts +23 -2
- package/dist/client/nodes/index.d.ts +91 -2
- package/dist/client/nodes/multi-conditions.d.ts +48 -10
- package/dist/client/nodes/output.d.ts +44 -2
- package/dist/client/nodes/query.d.ts +255 -3
- package/dist/client/nodes/update.d.ts +117 -2
- package/dist/client/style.d.ts +27 -7
- package/dist/client/triggers/collection.d.ts +181 -3
- package/dist/client/triggers/index.d.ts +36 -2
- package/dist/{client-v2/canvas/JobButton.d.ts → client/triggers/schedule/EndsByField.d.ts} +3 -3
- package/dist/{client-v2/components/SyncModeTag.d.ts → client/triggers/schedule/OnField.d.ts} +3 -3
- package/dist/{client-v2/components/ExecutionStatusTag.d.ts → client/triggers/schedule/RepeatField.d.ts} +4 -3
- package/dist/{client-v2/pages/WorkflowPane.d.ts → client/triggers/schedule/ScheduleConfig.d.ts} +1 -1
- package/dist/client/triggers/schedule/ScheduleModes.d.ts +170 -0
- package/dist/{client-v2 → client}/triggers/schedule/TriggerScheduleConfig.d.ts +0 -1
- package/dist/{client-v2 → client}/triggers/schedule/constants.d.ts +5 -8
- package/dist/client/triggers/schedule/index.d.ts +65 -8
- package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +42 -0
- package/dist/client/utils.d.ts +5 -4
- package/dist/client/variable.d.ts +53 -7
- package/dist/common/collections/workflows.d.ts +0 -18
- package/dist/common/collections/workflows.js +0 -5
- package/dist/externalVersion.js +13 -16
- package/dist/locale/de-DE.json +1 -13
- package/dist/locale/en-US.json +1 -23
- package/dist/locale/es-ES.json +1 -13
- package/dist/locale/fr-FR.json +1 -13
- package/dist/locale/hu-HU.json +1 -13
- package/dist/locale/id-ID.json +1 -13
- package/dist/locale/it-IT.json +1 -13
- package/dist/locale/ja-JP.json +1 -13
- package/dist/locale/ko-KR.json +1 -13
- package/dist/locale/nl-NL.json +1 -13
- package/dist/locale/pt-BR.json +1 -13
- package/dist/locale/ru-RU.json +1 -13
- package/dist/locale/tr-TR.json +1 -13
- package/dist/locale/uk-UA.json +1 -13
- package/dist/locale/vi-VN.json +1 -13
- package/dist/locale/zh-CN.json +1 -22
- package/dist/locale/zh-TW.json +1 -19
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/server/Dispatcher.js +1 -2
- package/dist/server/ExecutionTimeoutManager.js +1 -2
- package/dist/server/actions/workflows.d.ts +0 -1
- package/dist/server/actions/workflows.js +0 -5
- package/dist/server/types/Workflow.d.ts +0 -1
- package/package.json +2 -4
- package/client-v2.d.ts +0 -2
- package/client-v2.js +0 -1
- package/dist/client/119.e7dbd037d52d1286.js +0 -10
- package/dist/client/142.fb4936d78fc80007.js +0 -10
- package/dist/client/159.cc9a0f2d92cab2c1.js +0 -10
- package/dist/client/276.69fb2aea13bc7c37.js +0 -10
- package/dist/client/346.66d060d37843d3d1.js +0 -10
- package/dist/client/382.d37fba14a6b91b0b.js +0 -10
- package/dist/client/394.a37310b78419ad7a.js +0 -10
- package/dist/client/438.6c6409d821d8c353.js +0 -10
- package/dist/client/509.e8d543f308a5823c.js +0 -10
- package/dist/client/54.d81b710f7b4c1cd5.js +0 -10
- package/dist/client/618.1aa6c21d0f2840cb.js +0 -10
- package/dist/client/635.ff6085589e23d39b.js +0 -10
- package/dist/client/67.ea0c78153b4842ef.js +0 -10
- package/dist/client/719.cd8ca7c9f00584be.js +0 -10
- package/dist/client/728.711fd4f1ed7d4e6a.js +0 -10
- package/dist/client/739.49407722fca8d236.js +0 -10
- package/dist/client/759.13aab01e6912ed8d.js +0 -10
- package/dist/client/772.1ebaef11a0ac8688.js +0 -10
- package/dist/client/782.e058403fcb6b1750.js +0 -10
- package/dist/client/828.78ff0c90212276c0.js +0 -10
- package/dist/client/87.083467b89aaf3e53.js +0 -10
- package/dist/client/938.26493fc09ba1ccbc.js +0 -10
- package/dist/client/964.5ab736effd480a42.js +0 -10
- package/dist/client/972.600a190e71978122.js +0 -10
- package/dist/client-v2/119.81195bcd0d451279.js +0 -10
- package/dist/client-v2/142.fe4f9b7869876ff1.js +0 -10
- package/dist/client-v2/159.cb221540c286cd32.js +0 -10
- package/dist/client-v2/276.8ca10542a0424df3.js +0 -10
- package/dist/client-v2/326.bdc99ad8e7590970.js +0 -10
- package/dist/client-v2/346.8c038b3c99d4fdc9.js +0 -10
- package/dist/client-v2/382.05f5482bb512b179.js +0 -10
- package/dist/client-v2/387.fd0a379e808b069f.js +0 -10
- package/dist/client-v2/394.515ed058e7f72797.js +0 -10
- package/dist/client-v2/438.b7df0416b66f8f64.js +0 -10
- package/dist/client-v2/513.19fe2e75d7cb18f8.js +0 -10
- package/dist/client-v2/54.d3daf06e53092726.js +0 -10
- package/dist/client-v2/635.20680bb5710698d0.js +0 -10
- package/dist/client-v2/677.a8c841cd3c3a6f7d.js +0 -10
- package/dist/client-v2/719.05cf070ef89a78f4.js +0 -10
- package/dist/client-v2/728.4e8322ff8fce87b9.js +0 -10
- package/dist/client-v2/739.5b60845103064f8d.js +0 -10
- package/dist/client-v2/759.7b162ad3adf450f1.js +0 -10
- package/dist/client-v2/772.8e5148d8c1518449.js +0 -10
- package/dist/client-v2/938.717e47af39485b29.js +0 -10
- package/dist/client-v2/ExecutionCanvas.d.ts +0 -15
- package/dist/client-v2/canvas/AddNodeContext.d.ts +0 -35
- package/dist/client-v2/canvas/AddNodeContext.shared.d.ts +0 -33
- package/dist/client-v2/canvas/AddNodeSlot.d.ts +0 -20
- package/dist/client-v2/canvas/Branch.d.ts +0 -32
- package/dist/client-v2/canvas/BranchContext.d.ts +0 -29
- package/dist/client-v2/canvas/BranchRenderContext.d.ts +0 -14
- package/dist/client-v2/canvas/CanvasContent.d.ts +0 -20
- package/dist/client-v2/canvas/DownstreamBranchIndex.d.ts +0 -20
- package/dist/client-v2/canvas/Instruction.d.ts +0 -139
- package/dist/client-v2/canvas/Node.d.ts +0 -38
- package/dist/client-v2/canvas/NodeClipboardContext.d.ts +0 -64
- package/dist/client-v2/canvas/NodeConfigDrawer.d.ts +0 -27
- package/dist/client-v2/canvas/NodeDragContext.d.ts +0 -83
- package/dist/client-v2/canvas/RemoveNodeContext.d.ts +0 -45
- package/dist/client-v2/canvas/WorkflowTypedVariableInput.d.ts +0 -16
- package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +0 -40
- package/dist/client-v2/canvas/WorkflowVariableJsonTextArea.d.ts +0 -15
- package/dist/client-v2/canvas/WorkflowVariableTag.d.ts +0 -22
- package/dist/client-v2/canvas/WorkflowVariableTextArea.d.ts +0 -18
- package/dist/client-v2/canvas/adaptVariableOptionToMetaTree.d.ts +0 -48
- package/dist/client-v2/canvas/addNodeController.d.ts +0 -70
- package/dist/client-v2/canvas/collectionFieldOptions.d.ts +0 -57
- package/dist/client-v2/canvas/contexts.d.ts +0 -86
- package/dist/client-v2/canvas/dropImpact.d.ts +0 -28
- package/dist/client-v2/canvas/instructionAvailability.d.ts +0 -26
- package/dist/client-v2/canvas/nodeRenderDispatch.d.ts +0 -79
- package/dist/client-v2/canvas/nodeTree.d.ts +0 -21
- package/dist/client-v2/canvas/nodeVariableUtils.d.ts +0 -14
- package/dist/client-v2/canvas/removeNodeUtils.d.ts +0 -31
- package/dist/client-v2/canvas/style.d.ts +0 -35
- package/dist/client-v2/canvas/textAreaInsertion.d.ts +0 -14
- package/dist/client-v2/canvas/useWorkflowInstruction.d.ts +0 -23
- package/dist/client-v2/canvas/useWorkflowVariableOptions.d.ts +0 -40
- package/dist/client-v2/canvas/workflowVariableConverters.d.ts +0 -13
- package/dist/client-v2/components/Calculation.d.ts +0 -18
- package/dist/client-v2/components/ExecutionStatusIcon.d.ts +0 -18
- package/dist/client-v2/components/ExecutionViewHeader.d.ts +0 -29
- package/dist/client-v2/components/ExecutionsDropdown.d.ts +0 -25
- package/dist/client-v2/components/FilterDynamicComponent.d.ts +0 -27
- package/dist/client-v2/components/HideVariableContext.d.ts +0 -11
- package/dist/client-v2/components/JobResultModal.d.ts +0 -11
- package/dist/client-v2/components/RadioWithTooltip.d.ts +0 -23
- package/dist/client-v2/components/SyncModeSelect.d.ts +0 -16
- package/dist/client-v2/components/TestRunButton.d.ts +0 -36
- package/dist/client-v2/components/TimeoutInput.d.ts +0 -15
- package/dist/client-v2/components/WorkflowCanvasHeader.d.ts +0 -17
- package/dist/client-v2/components/WorkflowDetailsModal.d.ts +0 -25
- package/dist/client-v2/components/WorkflowEnabledSwitch.d.ts +0 -16
- package/dist/client-v2/components/WorkflowMenu.d.ts +0 -17
- package/dist/client-v2/components/WorkflowRevisionsDropdown.d.ts +0 -15
- package/dist/client-v2/components/WorkflowVariableWrapper.d.ts +0 -25
- package/dist/client-v2/components/collection/AppendsSelect.d.ts +0 -15
- package/dist/client-v2/components/collection/AssignedFieldsEditor.d.ts +0 -24
- package/dist/client-v2/components/collection/CollectionCascader.d.ts +0 -15
- package/dist/client-v2/components/collection/FieldsSelect.d.ts +0 -16
- package/dist/client-v2/components/collection/PaginationFields.d.ts +0 -14
- package/dist/client-v2/components/collection/SortFieldsInput.d.ts +0 -19
- package/dist/client-v2/components/collection/TriggerCollectionRecordSelect.d.ts +0 -15
- package/dist/client-v2/components/collection/index.d.ts +0 -16
- package/dist/client-v2/components/collection/utils.d.ts +0 -42
- package/dist/client-v2/components/formatResultForDisplay.d.ts +0 -17
- package/dist/client-v2/components/jobStatus.d.ts +0 -27
- package/dist/client-v2/components/renderEngineReference.d.ts +0 -10
- package/dist/client-v2/components/workflowCanvas.d.ts +0 -41
- package/dist/client-v2/constants.d.ts +0 -19
- package/dist/client-v2/hooks/useWorkflowRuntimePaths.d.ts +0 -16
- package/dist/client-v2/index.d.ts +0 -48
- package/dist/client-v2/index.js +0 -10
- package/dist/client-v2/locale.d.ts +0 -41
- package/dist/client-v2/models/WorkflowTasksTopbarActionModel.d.ts +0 -18
- package/dist/client-v2/models/triggerWorkflows.d.ts +0 -43
- package/dist/client-v2/nodes/calculation.d.ts +0 -38
- package/dist/client-v2/nodes/collectionNode.d.ts +0 -29
- package/dist/client-v2/nodes/components/calculation.d.ts +0 -11
- package/dist/client-v2/nodes/components/collection.d.ts +0 -15
- package/dist/client-v2/nodes/components/condition.d.ts +0 -25
- package/dist/client-v2/nodes/components/conditionShared.d.ts +0 -20
- package/dist/client-v2/nodes/components/create.d.ts +0 -12
- package/dist/client-v2/nodes/components/destroy.d.ts +0 -12
- package/dist/client-v2/nodes/components/end.d.ts +0 -10
- package/dist/client-v2/nodes/components/filter.d.ts +0 -17
- package/dist/client-v2/nodes/components/multi-conditions.d.ts +0 -13
- package/dist/client-v2/nodes/components/multiConditionsShared.d.ts +0 -20
- package/dist/client-v2/nodes/components/output.d.ts +0 -10
- package/dist/client-v2/nodes/components/query.d.ts +0 -12
- package/dist/client-v2/nodes/components/update.d.ts +0 -12
- package/dist/client-v2/nodes/condition.d.ts +0 -46
- package/dist/client-v2/nodes/create.d.ts +0 -30
- package/dist/client-v2/nodes/destroy.d.ts +0 -24
- package/dist/client-v2/nodes/end.d.ts +0 -21
- package/dist/client-v2/nodes/multi-conditions.d.ts +0 -34
- package/dist/client-v2/nodes/output.d.ts +0 -29
- package/dist/client-v2/nodes/query.d.ts +0 -32
- package/dist/client-v2/nodes/update.d.ts +0 -25
- package/dist/client-v2/pages/ExecutionHistoryDrawer.d.ts +0 -13
- package/dist/client-v2/pages/ExecutionViewPage.d.ts +0 -10
- package/dist/client-v2/pages/WorkflowCanvasPage.d.ts +0 -10
- package/dist/client-v2/pages/WorkflowCategoryTabs.d.ts +0 -25
- package/dist/client-v2/pages/WorkflowFormDrawer.d.ts +0 -39
- package/dist/client-v2/pages/WorkflowTasksPage.d.ts +0 -10
- package/dist/client-v2/plugin.d.ts +0 -119
- package/dist/client-v2/taskCenter.d.ts +0 -105
- package/dist/client-v2/triggers/ExecuteWorkflowButton.d.ts +0 -35
- package/dist/client-v2/triggers/TriggerConfig.d.ts +0 -22
- package/dist/client-v2/triggers/TriggerExecutionButton.d.ts +0 -13
- package/dist/client-v2/triggers/collection/CollectionConfig.d.ts +0 -14
- package/dist/client-v2/triggers/collection/TriggerCollectionConfig.d.ts +0 -11
- package/dist/client-v2/triggers/collection/constants.d.ts +0 -28
- package/dist/client-v2/triggers/collection/index.d.ts +0 -40
- package/dist/client-v2/triggers/index.d.ts +0 -63
- package/dist/client-v2/triggers/schedule/EndsByField.d.ts +0 -17
- package/dist/client-v2/triggers/schedule/OnField.d.ts +0 -20
- package/dist/client-v2/triggers/schedule/RepeatField.d.ts +0 -23
- package/dist/client-v2/triggers/schedule/ScheduleConfig.d.ts +0 -17
- package/dist/client-v2/triggers/schedule/ScheduleModes.d.ts +0 -41
- package/dist/client-v2/triggers/schedule/index.d.ts +0 -40
- package/dist/client-v2/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -11
- package/dist/client-v2/utils/contextSingleton.d.ts +0 -9
- package/dist/common/defaultWorkflowFilter.d.ts +0 -21
- package/dist/common/defaultWorkflowFilter.js +0 -38
- package/dist/common/executionStatus.d.ts +0 -44
- package/dist/common/executionStatus.js +0 -133
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import { type SubModelItem } from '@nocobase/flow-engine';
|
|
10
|
-
import { type UseVariableOptions, type VariableOption } from '../../canvas/collectionFieldOptions';
|
|
11
|
-
import { Trigger, type LoaderOf } from '..';
|
|
12
|
-
import { type ScheduleConfigValue } from './ScheduleModes';
|
|
13
|
-
declare function useVariables(config: ScheduleConfigValue, opts?: UseVariableOptions): VariableOption[];
|
|
14
|
-
export default class ScheduleTrigger extends Trigger {
|
|
15
|
-
sync: boolean;
|
|
16
|
-
title: string;
|
|
17
|
-
description: string;
|
|
18
|
-
PresetFieldsetLoader: LoaderOf;
|
|
19
|
-
FieldsetLoader: LoaderOf<{
|
|
20
|
-
modeDisabled?: boolean;
|
|
21
|
-
}>;
|
|
22
|
-
TriggerFieldsetLoader: LoaderOf;
|
|
23
|
-
createDefaultConfig(): {
|
|
24
|
-
mode: 0;
|
|
25
|
-
};
|
|
26
|
-
validate(config: ScheduleConfigValue): boolean;
|
|
27
|
-
useVariables: typeof useVariables;
|
|
28
|
-
getCreateModelMenuItem({ config }: {
|
|
29
|
-
config: ScheduleConfigValue;
|
|
30
|
-
}): SubModelItem | null;
|
|
31
|
-
useTempAssociationSource(config: ScheduleConfigValue, workflow?: {
|
|
32
|
-
id?: string | number;
|
|
33
|
-
}): {
|
|
34
|
-
collection: string;
|
|
35
|
-
nodeId: string | number;
|
|
36
|
-
nodeKey: string;
|
|
37
|
-
nodeType: "workflow";
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import type { Locale } from 'react-js-cron';
|
|
10
|
-
declare const zhCN: Locale;
|
|
11
|
-
export default zhCN;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare function getWorkflowSingleton<T>(name: string, factory: () => T): T;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare const defaultWorkflowFilter: {
|
|
10
|
-
$and: ({
|
|
11
|
-
title: {
|
|
12
|
-
$includes: string;
|
|
13
|
-
};
|
|
14
|
-
type?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
type: {
|
|
17
|
-
$eq: any;
|
|
18
|
-
};
|
|
19
|
-
title?: undefined;
|
|
20
|
-
})[];
|
|
21
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var defaultWorkflowFilter_exports = {};
|
|
28
|
-
__export(defaultWorkflowFilter_exports, {
|
|
29
|
-
defaultWorkflowFilter: () => defaultWorkflowFilter
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(defaultWorkflowFilter_exports);
|
|
32
|
-
const defaultWorkflowFilter = {
|
|
33
|
-
$and: [{ title: { $includes: "" } }, { type: { $eq: void 0 } }]
|
|
34
|
-
};
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {
|
|
37
|
-
defaultWorkflowFilter
|
|
38
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Framework-neutral execution-status metadata shared between the legacy
|
|
11
|
-
* `src/client/` (v1) and the new `src/client-v2/` lanes. The `label` /
|
|
12
|
-
* `description` strings are i18n templates compiled via `useT()` in v2 and
|
|
13
|
-
* `Schema.compile`/`useCompile` in v1. Colors are antd `Tag` preset color
|
|
14
|
-
* names (not raw hex), so they stay token-driven.
|
|
15
|
-
*
|
|
16
|
-
* The legacy `src/client/constants.tsx` keeps its own richer copy (with React
|
|
17
|
-
* icon nodes) because it is consumed by ~100 v1 files; this module only carries
|
|
18
|
-
* the plain data the v2 lane needs and never imports `@nocobase/client`.
|
|
19
|
-
*/
|
|
20
|
-
export declare const EXECUTION_STATUS: {
|
|
21
|
-
readonly QUEUEING: any;
|
|
22
|
-
readonly STARTED: 0;
|
|
23
|
-
readonly RESOLVED: 1;
|
|
24
|
-
readonly FAILED: -1;
|
|
25
|
-
readonly ERROR: -2;
|
|
26
|
-
readonly ABORTED: -3;
|
|
27
|
-
readonly CANCELED: -4;
|
|
28
|
-
readonly REJECTED: -5;
|
|
29
|
-
readonly RETRY_NEEDED: -6;
|
|
30
|
-
};
|
|
31
|
-
export type ExecutionStatusOption = {
|
|
32
|
-
value: number | null;
|
|
33
|
-
label: string;
|
|
34
|
-
color: string;
|
|
35
|
-
description?: string;
|
|
36
|
-
};
|
|
37
|
-
export declare const EXECUTION_STATUS_OPTIONS: ExecutionStatusOption[];
|
|
38
|
-
export declare const EXECUTION_STATUS_OPTIONS_MAP: Record<string, ExecutionStatusOption>;
|
|
39
|
-
export type ExecutionReasonOption = {
|
|
40
|
-
value: string;
|
|
41
|
-
label: string;
|
|
42
|
-
};
|
|
43
|
-
export declare const EXECUTION_REASON_OPTIONS: ExecutionReasonOption[];
|
|
44
|
-
export declare const EXECUTION_REASON_OPTIONS_MAP: Record<string, ExecutionReasonOption>;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var executionStatus_exports = {};
|
|
28
|
-
__export(executionStatus_exports, {
|
|
29
|
-
EXECUTION_REASON_OPTIONS: () => EXECUTION_REASON_OPTIONS,
|
|
30
|
-
EXECUTION_REASON_OPTIONS_MAP: () => EXECUTION_REASON_OPTIONS_MAP,
|
|
31
|
-
EXECUTION_STATUS: () => EXECUTION_STATUS,
|
|
32
|
-
EXECUTION_STATUS_OPTIONS: () => EXECUTION_STATUS_OPTIONS,
|
|
33
|
-
EXECUTION_STATUS_OPTIONS_MAP: () => EXECUTION_STATUS_OPTIONS_MAP
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(executionStatus_exports);
|
|
36
|
-
var import_constants = require("./constants");
|
|
37
|
-
const EXECUTION_STATUS = {
|
|
38
|
-
QUEUEING: null,
|
|
39
|
-
STARTED: 0,
|
|
40
|
-
RESOLVED: 1,
|
|
41
|
-
FAILED: -1,
|
|
42
|
-
ERROR: -2,
|
|
43
|
-
ABORTED: -3,
|
|
44
|
-
CANCELED: -4,
|
|
45
|
-
REJECTED: -5,
|
|
46
|
-
RETRY_NEEDED: -6
|
|
47
|
-
};
|
|
48
|
-
const EXECUTION_STATUS_OPTIONS = [
|
|
49
|
-
{
|
|
50
|
-
value: EXECUTION_STATUS.QUEUEING,
|
|
51
|
-
label: `{{t("Queueing", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
52
|
-
color: "blue",
|
|
53
|
-
description: `{{t("Triggered but still waiting in queue to execute.", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
value: EXECUTION_STATUS.STARTED,
|
|
57
|
-
label: `{{t("On going", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
58
|
-
color: "gold",
|
|
59
|
-
description: `{{t("Started and executing, maybe waiting for an async callback (manual, delay etc.).", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
value: EXECUTION_STATUS.RESOLVED,
|
|
63
|
-
label: `{{t("Resolved", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
64
|
-
color: "green",
|
|
65
|
-
description: `{{t("Successfully finished.", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
value: EXECUTION_STATUS.FAILED,
|
|
69
|
-
label: `{{t("Failed", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
70
|
-
color: "red",
|
|
71
|
-
description: `{{t("Failed to satisfy node configurations.", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
value: EXECUTION_STATUS.ERROR,
|
|
75
|
-
label: `{{t("Error", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
76
|
-
color: "red",
|
|
77
|
-
description: `{{t("Some node meets error.", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
value: EXECUTION_STATUS.ABORTED,
|
|
81
|
-
label: `{{t("Aborted", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
82
|
-
color: "red",
|
|
83
|
-
description: `{{t("Running of some node was aborted by program flow.", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
value: EXECUTION_STATUS.CANCELED,
|
|
87
|
-
label: `{{t("Canceled", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
88
|
-
color: "volcano",
|
|
89
|
-
description: `{{t("Manually canceled whole execution when waiting.", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
value: EXECUTION_STATUS.REJECTED,
|
|
93
|
-
label: `{{t("Rejected", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
94
|
-
color: "volcano",
|
|
95
|
-
description: `{{t("Rejected from a manual node.", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
value: EXECUTION_STATUS.RETRY_NEEDED,
|
|
99
|
-
label: `{{t("Retry needed", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
100
|
-
color: "volcano",
|
|
101
|
-
description: `{{t("General failed but should do another try.", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
102
|
-
}
|
|
103
|
-
];
|
|
104
|
-
const EXECUTION_STATUS_OPTIONS_MAP = EXECUTION_STATUS_OPTIONS.reduce(
|
|
105
|
-
(map, option) => Object.assign(map, { [option.value]: option }),
|
|
106
|
-
{}
|
|
107
|
-
);
|
|
108
|
-
const EXECUTION_REASON_OPTIONS = [
|
|
109
|
-
{
|
|
110
|
-
value: import_constants.EXECUTION_REASON.TIMEOUT,
|
|
111
|
-
label: `{{t("Timed out", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
value: import_constants.EXECUTION_REASON.MANUAL_CANCEL,
|
|
115
|
-
label: `{{t("Canceled manually", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
value: import_constants.EXECUTION_REASON.PARENT_ABORTED,
|
|
119
|
-
label: `{{t("Aborted with parent execution", { ns: "${import_constants.NAMESPACE}" })}}`
|
|
120
|
-
}
|
|
121
|
-
];
|
|
122
|
-
const EXECUTION_REASON_OPTIONS_MAP = EXECUTION_REASON_OPTIONS.reduce(
|
|
123
|
-
(map, option) => Object.assign(map, { [option.value]: option }),
|
|
124
|
-
{}
|
|
125
|
-
);
|
|
126
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
127
|
-
0 && (module.exports = {
|
|
128
|
-
EXECUTION_REASON_OPTIONS,
|
|
129
|
-
EXECUTION_REASON_OPTIONS_MAP,
|
|
130
|
-
EXECUTION_STATUS,
|
|
131
|
-
EXECUTION_STATUS_OPTIONS,
|
|
132
|
-
EXECUTION_STATUS_OPTIONS_MAP
|
|
133
|
-
});
|