work-workflow-tests 0.0.1
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/README.md +93 -0
- package/dist/arrow.svg +3 -0
- package/dist/back_button.svg +10 -0
- package/dist/connectall.svg +10 -0
- package/dist/delete.svg +8 -0
- package/dist/doworks_icon.svg +4 -0
- package/dist/flow.svg +10 -0
- package/dist/index.css +1 -0
- package/dist/tick_circle.svg +4 -0
- package/dist/vector.svg +9 -0
- package/dist/vite.svg +1 -0
- package/dist/workflow.es.js +22408 -0
- package/dist/workflow.umd.js +188 -0
- package/dist/workflow_delete.svg +8 -0
- package/dist/workflow_east.svg +8 -0
- package/package.json +88 -0
- package/types/App.d.ts +0 -0
- package/types/Backup.d.ts +0 -0
- package/types/components/Automation/AutoComp.d.ts +2 -0
- package/types/components/Automation/Automation.d.ts +22 -0
- package/types/components/Automation/ListOfAutomation.d.ts +2 -0
- package/types/components/Automation/index.d.ts +3 -0
- package/types/components/Automation/types.d.ts +18 -0
- package/types/components/AutomationBage/index.d.ts +2 -0
- package/types/components/Condition/constants.d.ts +498 -0
- package/types/components/Condition/index.d.ts +2 -0
- package/types/components/CustomEdge/CustomEdge.d.ts +3 -0
- package/types/components/CustomNode/FieldNode.d.ts +3 -0
- package/types/components/CustomNode/OptionFieldNode.d.ts +3 -0
- package/types/components/FieldAutomationModal/index.d.ts +3 -0
- package/types/components/FlowPreview/index.d.ts +6 -0
- package/types/components/Form/Meeting.d.ts +2 -0
- package/types/components/Form/MoveRecordToWork.d.ts +10 -0
- package/types/components/Form/MultiSelectWithSearch.d.ts +3 -0
- package/types/components/Form/Notification.d.ts +2 -0
- package/types/components/Form/NotificationUser.d.ts +2 -0
- package/types/components/Form/OrnageSwitch.d.ts +6 -0
- package/types/components/Form/OwnerList.d.ts +8 -0
- package/types/components/Form/Task.d.ts +2 -0
- package/types/components/Form/WorkspaceDroopdown.d.ts +2 -0
- package/types/components/Form/multi-user-field.d.ts +15 -0
- package/types/components/Form/query.d.ts +4 -0
- package/types/components/MiniFlow/MiniFlowCanvas.d.ts +2 -0
- package/types/components/MiniFlow/index.d.ts +3 -0
- package/types/components/Sections/ConfigAutoSection.d.ts +3 -0
- package/types/components/Sections/Configuration.d.ts +9 -0
- package/types/components/Sections/index.d.ts +3 -0
- package/types/components/Sections/types.d.ts +22 -0
- package/types/components/WorkflowCanvas/WorkflowCanvas.d.ts +9 -0
- package/types/components/WorkflowCanvas/WorkflowCanvas.stories.d.ts +6 -0
- package/types/components/WorkflowCanvas/index.d.ts +22 -0
- package/types/components/WorkflowModal/FlowCanvas.d.ts +11 -0
- package/types/components/WorkflowModal/FlowEdgeDrawer.d.ts +3 -0
- package/types/components/WorkflowModal/constants.d.ts +428 -0
- package/types/components/WorkflowModal/index.d.ts +3 -0
- package/types/components/WorkflowModal/services.d.ts +25 -0
- package/types/components/WorkflowModal/types.d.ts +65 -0
- package/types/config/index.d.ts +16 -0
- package/types/constants/apiRoutes.d.ts +118 -0
- package/types/constants/common.d.ts +798 -0
- package/types/constants/emailApiRoutes.d.ts +18 -0
- package/types/constants/enum.d.ts +24 -0
- package/types/constants/index.d.ts +5 -0
- package/types/constants/regex.d.ts +45 -0
- package/types/constants/routes.d.ts +12 -0
- package/types/constants/theme.d.ts +88 -0
- package/types/context/AppContext.d.ts +2 -0
- package/types/context/AppProvider.d.ts +2 -0
- package/types/index.d.ts +7 -0
- package/types/main.d.ts +0 -0
- package/types/services/api/api.d.ts +20 -0
- package/types/services/api/api.service.d.ts +18 -0
- package/types/services/api/database.d.ts +9 -0
- package/types/services/aws/aws-exports.d.ts +17 -0
- package/types/services/aws/aws-helpers.d.ts +21 -0
- package/types/services/aws/aws-services.d.ts +22 -0
- package/types/services/common.service.d.ts +7 -0
- package/types/services/graphql-client.d.ts +9 -0
- package/types/services/helper/service.d.ts +1 -0
- package/types/services/lodash.service.d.ts +30 -0
- package/types/stories/Button.d.ts +15 -0
- package/types/stories/Button.stories.d.ts +23 -0
- package/types/stories/Header.d.ts +12 -0
- package/types/stories/Header.stories.d.ts +18 -0
- package/types/stories/Page.d.ts +3 -0
- package/types/stories/Page.stories.d.ts +12 -0
- package/types/types/common.d.ts +9 -0
- package/types/utils/errorMessage.d.ts +38 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ReactFlowModalType } from "..//WorkflowModal/types";
|
|
2
|
+
declare const FieldAutomationModal: ({ acceptedUser, col, datasetId, exampleData, fieldId, onClose, validateUser, workspaceId, callBackFunc }: ReactFlowModalType) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FieldAutomationModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const MoveRecordToWork: ({ datasetId, workspaceId, targetWorkspaceId, autoIndex, segmentIndex, setValue, defaultValue, }: {
|
|
2
|
+
datasetId: string;
|
|
3
|
+
workspaceId: string;
|
|
4
|
+
targetWorkspaceId: string;
|
|
5
|
+
autoIndex: number;
|
|
6
|
+
segmentIndex: number;
|
|
7
|
+
setValue: any;
|
|
8
|
+
defaultValue: any;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default MoveRecordToWork;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SwitchProps } from "@mui/material";
|
|
2
|
+
interface OrangeSwitchProps extends SwitchProps {
|
|
3
|
+
height?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const OrangeSwitch: import("@emotion/styled").StyledComponent<OrangeSwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const CustomGet: (obj: any, path: string, defaultValue?: any) => any;
|
|
2
|
+
export declare const CustomIsEmpty: (value: any) => boolean;
|
|
3
|
+
export declare const getInitialsFromName: (name: any) => string;
|
|
4
|
+
export declare const CustomStartCase: (data: string) => string;
|
|
5
|
+
export declare const OwnerList: ({ data, value }: {
|
|
6
|
+
data: any;
|
|
7
|
+
value: string;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const MultiUserField: ({ selectedAssignees, setValue, datasetId, isForNotification, acceptedUser, validateUser, workspaceId, }: {
|
|
2
|
+
selectedAssignees: string[];
|
|
3
|
+
setValue: (value: string[]) => void;
|
|
4
|
+
datasetId: string;
|
|
5
|
+
isForNotification?: boolean;
|
|
6
|
+
acceptedUser: any;
|
|
7
|
+
workspaceId: any;
|
|
8
|
+
validateUser: any;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default MultiUserField;
|
|
11
|
+
export declare const CollobrationView: ({ assignTo, acceptedUserData, onClick }: {
|
|
12
|
+
assignTo: string[];
|
|
13
|
+
acceptedUserData: any[];
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GET_SEARCH_ACCESS_OWNER: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const GET_DATASET_DETAILS: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare const GET_Field_DETAILS: import("@apollo/client").DocumentNode;
|
|
4
|
+
export declare const GET_WORKSPACE_LIST: import("@apollo/client").DocumentNode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Edge } from "reactflow";
|
|
2
|
+
import type { EdgeData, SelectIdType } from "../WorkflowModal/types";
|
|
3
|
+
declare const ConfigurationComp: ({ edges, setSelectedId, saveToBackend, setEdges, }: {
|
|
4
|
+
edges: Edge<EdgeData>[];
|
|
5
|
+
setEdges: any;
|
|
6
|
+
setSelectedId: React.Dispatch<React.SetStateAction<SelectIdType>>;
|
|
7
|
+
saveToBackend: () => Promise<void>;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ConfigurationComp;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Edge } from "reactflow";
|
|
2
|
+
import type { CustomEdgeType, SelectIdType } from "../WorkflowModal/types";
|
|
3
|
+
export type ConfigDrawerType = {
|
|
4
|
+
edges: Edge<any>[];
|
|
5
|
+
setEdges: any;
|
|
6
|
+
updateEdgeData: ({ id, data }: {
|
|
7
|
+
id: string;
|
|
8
|
+
data: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
saveToBackend: () => Promise<void>;
|
|
11
|
+
callBackFunc: any;
|
|
12
|
+
};
|
|
13
|
+
export type ConfigAutoSectionType = {
|
|
14
|
+
selectedId: SelectIdType;
|
|
15
|
+
updateEdgeData: ({ id, data }: {
|
|
16
|
+
id: string;
|
|
17
|
+
data: any;
|
|
18
|
+
}) => void;
|
|
19
|
+
editEdgeData: CustomEdgeType | null;
|
|
20
|
+
setSelectedId: React.Dispatch<React.SetStateAction<SelectIdType>>;
|
|
21
|
+
callBackFunc: any;
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Edge, type Node } from "reactflow";
|
|
2
|
+
import "reactflow/dist/style.css";
|
|
3
|
+
type Props = {
|
|
4
|
+
initialNodes?: Node[];
|
|
5
|
+
initialEdges?: Edge[];
|
|
6
|
+
onChange?: (nodes: Node[], edges: Edge[]) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const WorkflowCanvas: ({ initialNodes, initialEdges, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Edge } from "reactflow";
|
|
2
|
+
import type { Node as FlowNode } from "reactflow";
|
|
3
|
+
import "reactflow/dist/style.css";
|
|
4
|
+
interface Stage {
|
|
5
|
+
key: string;
|
|
6
|
+
value: string;
|
|
7
|
+
statusColor: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const createNodesFromStages: (stages: Stage[]) => FlowNode[];
|
|
10
|
+
interface WorkflowMap {
|
|
11
|
+
stage: string;
|
|
12
|
+
next: string[];
|
|
13
|
+
transitions: {
|
|
14
|
+
to: string;
|
|
15
|
+
permission: string;
|
|
16
|
+
requiredColumns: string[];
|
|
17
|
+
condition: string;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
export declare function buildWorkflowMap(edges: Edge[]): WorkflowMap[];
|
|
21
|
+
export default function ReactFlowWorkflow(): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface EdgeData {
|
|
2
|
+
sourceLabel: string;
|
|
3
|
+
targetLabel: string;
|
|
4
|
+
sourceColor: string;
|
|
5
|
+
targetColor: string;
|
|
6
|
+
permission: string[];
|
|
7
|
+
requiredColumns: string[];
|
|
8
|
+
condition: string;
|
|
9
|
+
}
|
|
10
|
+
declare const FlowCanvas: ({ setEdges, nodes, edges, onNodesChange, onEdgesChange, hasMiniMap, hasControls, hasGlobalManageAuto, isGlobalAuto, setIsGlobalAuto, updateManageAuto, countGlobalAuto, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default FlowCanvas;
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
export declare const selectFieldId = "e6077294af434793aa036c73337f0163";
|
|
2
|
+
export declare const datasetId = "557465b7fd9244849f00076491369c84";
|
|
3
|
+
export declare const stageInput: {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
statusColor: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const clo: ({
|
|
9
|
+
field: {
|
|
10
|
+
id: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
isDeleted: boolean;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
fieldDisplayName: string;
|
|
16
|
+
fieldInternalName: string;
|
|
17
|
+
datasetName: string;
|
|
18
|
+
sensitive: boolean;
|
|
19
|
+
hidden: boolean;
|
|
20
|
+
isHideField: boolean;
|
|
21
|
+
dataType: string;
|
|
22
|
+
isRequired: boolean;
|
|
23
|
+
isUnique: boolean;
|
|
24
|
+
isAssociatedField: boolean;
|
|
25
|
+
isSystemDefined: boolean;
|
|
26
|
+
isImmutable: boolean;
|
|
27
|
+
isPrimaryField: boolean;
|
|
28
|
+
isSelected: boolean;
|
|
29
|
+
isSortable: boolean;
|
|
30
|
+
sortOrder: string;
|
|
31
|
+
createdBy: string;
|
|
32
|
+
updatedBy: null;
|
|
33
|
+
deletedBy: null;
|
|
34
|
+
CreatedById: string;
|
|
35
|
+
deletedAt: null;
|
|
36
|
+
prefix: string;
|
|
37
|
+
postfix: string;
|
|
38
|
+
value: {
|
|
39
|
+
key: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}[];
|
|
42
|
+
columnWidth: null;
|
|
43
|
+
toggleState: null;
|
|
44
|
+
workflow: null;
|
|
45
|
+
name: string;
|
|
46
|
+
internalName: string;
|
|
47
|
+
isAssociated: boolean;
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
group: {
|
|
51
|
+
id: string;
|
|
52
|
+
datasetName: string;
|
|
53
|
+
groupName: string;
|
|
54
|
+
};
|
|
55
|
+
position: number;
|
|
56
|
+
isSelected: boolean;
|
|
57
|
+
isPrimaryField: boolean;
|
|
58
|
+
isDeleted: boolean;
|
|
59
|
+
isAssociated: boolean;
|
|
60
|
+
datasetName: string;
|
|
61
|
+
datasetId: string;
|
|
62
|
+
isRequired: boolean;
|
|
63
|
+
isImmutable: boolean;
|
|
64
|
+
} | {
|
|
65
|
+
field: {
|
|
66
|
+
id: string;
|
|
67
|
+
isActive: boolean;
|
|
68
|
+
isDeleted: boolean;
|
|
69
|
+
createdAt: string;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
fieldDisplayName: string;
|
|
72
|
+
fieldInternalName: string;
|
|
73
|
+
datasetName: string;
|
|
74
|
+
sensitive: boolean;
|
|
75
|
+
hidden: boolean;
|
|
76
|
+
isHideField: boolean;
|
|
77
|
+
dataType: string;
|
|
78
|
+
isRequired: boolean;
|
|
79
|
+
isUnique: boolean;
|
|
80
|
+
isAssociatedField: boolean;
|
|
81
|
+
isSystemDefined: boolean;
|
|
82
|
+
isImmutable: boolean;
|
|
83
|
+
isPrimaryField: boolean;
|
|
84
|
+
isSelected: boolean;
|
|
85
|
+
isSortable: boolean;
|
|
86
|
+
sortOrder: string;
|
|
87
|
+
createdBy: string;
|
|
88
|
+
updatedBy: null;
|
|
89
|
+
deletedBy: null;
|
|
90
|
+
CreatedById: string;
|
|
91
|
+
deletedAt: null;
|
|
92
|
+
prefix: string;
|
|
93
|
+
postfix: string;
|
|
94
|
+
value: {
|
|
95
|
+
key: string;
|
|
96
|
+
value: string;
|
|
97
|
+
statusColor: null;
|
|
98
|
+
}[];
|
|
99
|
+
columnWidth: null;
|
|
100
|
+
toggleState: null;
|
|
101
|
+
workflow: null;
|
|
102
|
+
name: string;
|
|
103
|
+
internalName: string;
|
|
104
|
+
isAssociated: boolean;
|
|
105
|
+
type: string;
|
|
106
|
+
};
|
|
107
|
+
group: {
|
|
108
|
+
id: string;
|
|
109
|
+
datasetName: string;
|
|
110
|
+
groupName: string;
|
|
111
|
+
};
|
|
112
|
+
position: number;
|
|
113
|
+
isSelected: boolean;
|
|
114
|
+
isPrimaryField: boolean;
|
|
115
|
+
isDeleted: boolean;
|
|
116
|
+
isAssociated: boolean;
|
|
117
|
+
datasetName: string;
|
|
118
|
+
datasetId: string;
|
|
119
|
+
isRequired: boolean;
|
|
120
|
+
isImmutable: boolean;
|
|
121
|
+
} | {
|
|
122
|
+
field: {
|
|
123
|
+
id: string;
|
|
124
|
+
isActive: boolean;
|
|
125
|
+
isDeleted: boolean;
|
|
126
|
+
createdAt: string;
|
|
127
|
+
updatedAt: string;
|
|
128
|
+
fieldDisplayName: string;
|
|
129
|
+
fieldInternalName: string;
|
|
130
|
+
datasetName: string;
|
|
131
|
+
sensitive: boolean;
|
|
132
|
+
hidden: boolean;
|
|
133
|
+
isHideField: boolean;
|
|
134
|
+
dataType: string;
|
|
135
|
+
isRequired: boolean;
|
|
136
|
+
isUnique: boolean;
|
|
137
|
+
isAssociatedField: boolean;
|
|
138
|
+
isSystemDefined: boolean;
|
|
139
|
+
isImmutable: boolean;
|
|
140
|
+
isPrimaryField: boolean;
|
|
141
|
+
isSelected: boolean;
|
|
142
|
+
isSortable: boolean;
|
|
143
|
+
sortOrder: string;
|
|
144
|
+
createdBy: string;
|
|
145
|
+
updatedBy: null;
|
|
146
|
+
deletedBy: null;
|
|
147
|
+
CreatedById: string;
|
|
148
|
+
deletedAt: null;
|
|
149
|
+
prefix: null;
|
|
150
|
+
postfix: null;
|
|
151
|
+
value: {
|
|
152
|
+
key: string;
|
|
153
|
+
value: string;
|
|
154
|
+
statusColor: string;
|
|
155
|
+
}[];
|
|
156
|
+
columnWidth: null;
|
|
157
|
+
toggleState: boolean;
|
|
158
|
+
workflow: null;
|
|
159
|
+
name: string;
|
|
160
|
+
internalName: string;
|
|
161
|
+
isAssociated: boolean;
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
group: {
|
|
165
|
+
id: string;
|
|
166
|
+
datasetName: string;
|
|
167
|
+
groupName: string;
|
|
168
|
+
};
|
|
169
|
+
position: number;
|
|
170
|
+
isSelected: boolean;
|
|
171
|
+
isPrimaryField: boolean;
|
|
172
|
+
isDeleted: boolean;
|
|
173
|
+
isAssociated: boolean;
|
|
174
|
+
datasetName: string;
|
|
175
|
+
datasetId: string;
|
|
176
|
+
isRequired: boolean;
|
|
177
|
+
isImmutable: boolean;
|
|
178
|
+
} | {
|
|
179
|
+
field: {
|
|
180
|
+
id: string;
|
|
181
|
+
isActive: boolean;
|
|
182
|
+
isDeleted: boolean;
|
|
183
|
+
createdAt: string;
|
|
184
|
+
updatedAt: string;
|
|
185
|
+
fieldDisplayName: string;
|
|
186
|
+
fieldInternalName: string;
|
|
187
|
+
datasetName: string;
|
|
188
|
+
sensitive: boolean;
|
|
189
|
+
hidden: boolean;
|
|
190
|
+
isHideField: boolean;
|
|
191
|
+
dataType: string;
|
|
192
|
+
isRequired: boolean;
|
|
193
|
+
isUnique: boolean;
|
|
194
|
+
isAssociatedField: boolean;
|
|
195
|
+
isSystemDefined: boolean;
|
|
196
|
+
isImmutable: boolean;
|
|
197
|
+
isPrimaryField: boolean;
|
|
198
|
+
isSelected: boolean;
|
|
199
|
+
isSortable: boolean;
|
|
200
|
+
sortOrder: string;
|
|
201
|
+
createdBy: string;
|
|
202
|
+
updatedBy: null;
|
|
203
|
+
deletedBy: null;
|
|
204
|
+
CreatedById: string;
|
|
205
|
+
deletedAt: null;
|
|
206
|
+
prefix: null;
|
|
207
|
+
postfix: null;
|
|
208
|
+
value: never[];
|
|
209
|
+
columnWidth: null;
|
|
210
|
+
toggleState: null;
|
|
211
|
+
workflow: null;
|
|
212
|
+
name: string;
|
|
213
|
+
internalName: string;
|
|
214
|
+
isAssociated: boolean;
|
|
215
|
+
type: string;
|
|
216
|
+
};
|
|
217
|
+
group: {
|
|
218
|
+
id: string;
|
|
219
|
+
datasetName: string;
|
|
220
|
+
groupName: string;
|
|
221
|
+
};
|
|
222
|
+
position: number;
|
|
223
|
+
isSelected: boolean;
|
|
224
|
+
isPrimaryField: boolean;
|
|
225
|
+
isDeleted: boolean;
|
|
226
|
+
isAssociated: boolean;
|
|
227
|
+
datasetName: string;
|
|
228
|
+
datasetId: string;
|
|
229
|
+
isRequired: boolean;
|
|
230
|
+
isImmutable: boolean;
|
|
231
|
+
})[];
|
|
232
|
+
export declare const exampleData: any;
|
|
233
|
+
export declare const acceptedUser: {
|
|
234
|
+
id: string;
|
|
235
|
+
firstName: string;
|
|
236
|
+
lastName: string;
|
|
237
|
+
name: string;
|
|
238
|
+
email: string;
|
|
239
|
+
teamId: null;
|
|
240
|
+
privilege: never[];
|
|
241
|
+
teamName: null;
|
|
242
|
+
roleName: string;
|
|
243
|
+
picture: string;
|
|
244
|
+
timeZone: string;
|
|
245
|
+
language: string;
|
|
246
|
+
dateFormat: null;
|
|
247
|
+
timeFormat: null;
|
|
248
|
+
weekStartsOn: string;
|
|
249
|
+
}[];
|
|
250
|
+
export declare const validateUser: {
|
|
251
|
+
id: string;
|
|
252
|
+
firstName: string;
|
|
253
|
+
lastName: string;
|
|
254
|
+
email: string;
|
|
255
|
+
picture: string;
|
|
256
|
+
isDeleted: boolean;
|
|
257
|
+
preferredLanguage: string;
|
|
258
|
+
preferredCharacterFormat: string;
|
|
259
|
+
organisation: {
|
|
260
|
+
id: string;
|
|
261
|
+
isDeleted: boolean;
|
|
262
|
+
createdAt: string;
|
|
263
|
+
updatedAt: string;
|
|
264
|
+
orgName: string;
|
|
265
|
+
orgOwner: string;
|
|
266
|
+
orgLogo: null;
|
|
267
|
+
};
|
|
268
|
+
timeZone: string;
|
|
269
|
+
currencyFormat: string;
|
|
270
|
+
pageLimit: string;
|
|
271
|
+
countryCode: null;
|
|
272
|
+
phoneNumber: string;
|
|
273
|
+
createdAt: string;
|
|
274
|
+
integration: {
|
|
275
|
+
id: string;
|
|
276
|
+
isDeleted: boolean;
|
|
277
|
+
createdAt: string;
|
|
278
|
+
updatedAt: string;
|
|
279
|
+
googleEmailLinked: boolean;
|
|
280
|
+
googleCalendarLinked: boolean;
|
|
281
|
+
googleDriveLinked: boolean;
|
|
282
|
+
googleImage: null;
|
|
283
|
+
googlePersonEmail: null;
|
|
284
|
+
googleRT: null;
|
|
285
|
+
slackLinked: boolean;
|
|
286
|
+
slackId: null;
|
|
287
|
+
slackRT: null;
|
|
288
|
+
};
|
|
289
|
+
updatedAt: string;
|
|
290
|
+
userId: string;
|
|
291
|
+
language: string;
|
|
292
|
+
dateFormat: null;
|
|
293
|
+
timeFormat: null;
|
|
294
|
+
weekStartsOn: string;
|
|
295
|
+
defaultWorkspace: {
|
|
296
|
+
id: number;
|
|
297
|
+
name: string;
|
|
298
|
+
isDefaultWorkspace: boolean;
|
|
299
|
+
createdBy: string;
|
|
300
|
+
};
|
|
301
|
+
userWorkspaceCount: number;
|
|
302
|
+
isCalendarConnected: boolean;
|
|
303
|
+
googleCalendarEmail: string;
|
|
304
|
+
googleCalendarRefreshToken: null;
|
|
305
|
+
roles: {
|
|
306
|
+
roleName: string;
|
|
307
|
+
privileges: {
|
|
308
|
+
accounts: {
|
|
309
|
+
roles: {
|
|
310
|
+
edit: boolean;
|
|
311
|
+
view: boolean;
|
|
312
|
+
create: boolean;
|
|
313
|
+
delete: boolean;
|
|
314
|
+
};
|
|
315
|
+
teams: {
|
|
316
|
+
edit: boolean;
|
|
317
|
+
view: boolean;
|
|
318
|
+
create: boolean;
|
|
319
|
+
delete: boolean;
|
|
320
|
+
};
|
|
321
|
+
users: {
|
|
322
|
+
edit: boolean;
|
|
323
|
+
view: boolean;
|
|
324
|
+
create: boolean;
|
|
325
|
+
delete: boolean;
|
|
326
|
+
};
|
|
327
|
+
works: {
|
|
328
|
+
edit: boolean;
|
|
329
|
+
view: boolean;
|
|
330
|
+
create: boolean;
|
|
331
|
+
delete: boolean;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
datasets: {
|
|
335
|
+
"515490b533104d20bf02adb6960c7d30": {
|
|
336
|
+
edit: string;
|
|
337
|
+
view: string;
|
|
338
|
+
boards: {
|
|
339
|
+
edit: boolean;
|
|
340
|
+
view: boolean;
|
|
341
|
+
create: boolean;
|
|
342
|
+
delete: boolean;
|
|
343
|
+
};
|
|
344
|
+
records: {
|
|
345
|
+
export: boolean;
|
|
346
|
+
import: boolean;
|
|
347
|
+
bulkEditDelete: boolean;
|
|
348
|
+
};
|
|
349
|
+
settings: {
|
|
350
|
+
edit: boolean;
|
|
351
|
+
view: boolean;
|
|
352
|
+
create: boolean;
|
|
353
|
+
delete: boolean;
|
|
354
|
+
};
|
|
355
|
+
communicate: string;
|
|
356
|
+
"fields & groups": {
|
|
357
|
+
edit: boolean;
|
|
358
|
+
view: boolean;
|
|
359
|
+
create: boolean;
|
|
360
|
+
delete: boolean;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
cd872bd575ff4fa5828fa5441689563a: {
|
|
364
|
+
edit: string;
|
|
365
|
+
view: string;
|
|
366
|
+
boards: {
|
|
367
|
+
edit: boolean;
|
|
368
|
+
view: boolean;
|
|
369
|
+
create: boolean;
|
|
370
|
+
delete: boolean;
|
|
371
|
+
};
|
|
372
|
+
records: {
|
|
373
|
+
export: boolean;
|
|
374
|
+
import: boolean;
|
|
375
|
+
bulkEditDelete: boolean;
|
|
376
|
+
};
|
|
377
|
+
settings: {
|
|
378
|
+
edit: boolean;
|
|
379
|
+
view: boolean;
|
|
380
|
+
create: boolean;
|
|
381
|
+
delete: boolean;
|
|
382
|
+
};
|
|
383
|
+
communicate: string;
|
|
384
|
+
"fields & groups": {
|
|
385
|
+
edit: boolean;
|
|
386
|
+
view: boolean;
|
|
387
|
+
create: boolean;
|
|
388
|
+
delete: boolean;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
fdab6b1180044555ac9751c1c79821e9: {
|
|
392
|
+
edit: string;
|
|
393
|
+
view: string;
|
|
394
|
+
boards: {
|
|
395
|
+
edit: boolean;
|
|
396
|
+
view: boolean;
|
|
397
|
+
create: boolean;
|
|
398
|
+
delete: boolean;
|
|
399
|
+
};
|
|
400
|
+
records: {
|
|
401
|
+
export: boolean;
|
|
402
|
+
import: boolean;
|
|
403
|
+
bulkEditDelete: boolean;
|
|
404
|
+
};
|
|
405
|
+
settings: {
|
|
406
|
+
edit: boolean;
|
|
407
|
+
view: boolean;
|
|
408
|
+
create: boolean;
|
|
409
|
+
delete: boolean;
|
|
410
|
+
};
|
|
411
|
+
communicate: string;
|
|
412
|
+
"fields & groups": {
|
|
413
|
+
edit: boolean;
|
|
414
|
+
view: boolean;
|
|
415
|
+
create: boolean;
|
|
416
|
+
delete: boolean;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
isCustomPrivileges: boolean;
|
|
422
|
+
};
|
|
423
|
+
team: null;
|
|
424
|
+
passwordLastUpdatedAt: string;
|
|
425
|
+
googleCalendarImage: string;
|
|
426
|
+
name: string;
|
|
427
|
+
isWorkspaceComplete: boolean;
|
|
428
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ReactFlowModalType } from "./types";
|
|
2
|
+
declare const ReactFlowModal: ({ fieldId, col, validateUser, workspaceId, exampleData, acceptedUser, datasetId, onClose, callBackFunc, }: ReactFlowModalType) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ReactFlowModal;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Stage, WorkflowMap } from "./types";
|
|
2
|
+
import type { Edge, Node as FlowNode } from "reactflow";
|
|
3
|
+
export declare const createNodesFromStages: (stages: Stage[], startingPoint?: number) => FlowNode[];
|
|
4
|
+
export declare const autoGenerateEdges: (nodes: any[]) => {
|
|
5
|
+
id: string;
|
|
6
|
+
source: any;
|
|
7
|
+
sourceHandle: string;
|
|
8
|
+
target: any;
|
|
9
|
+
targetHandle: string;
|
|
10
|
+
type: string;
|
|
11
|
+
data: {
|
|
12
|
+
condition: string;
|
|
13
|
+
permission: never[];
|
|
14
|
+
requiredColumns: never[];
|
|
15
|
+
sourceLabel: any;
|
|
16
|
+
sourceColor: any;
|
|
17
|
+
targetLabel: any;
|
|
18
|
+
targetColor: any;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
export declare function buildWorkflowMap(edges: Edge[]): WorkflowMap[];
|
|
22
|
+
export declare const findIdDifferences: (node: any[], option: any[]) => {
|
|
23
|
+
onlyInNode: any[];
|
|
24
|
+
onlyInOption: any[];
|
|
25
|
+
};
|