work-workflow-tests 1.0.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/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,65 @@
|
|
|
1
|
+
import type { Edge } from "reactflow";
|
|
2
|
+
import type { SelectIdTypes } from "../../constants";
|
|
3
|
+
export interface Stage {
|
|
4
|
+
id: string;
|
|
5
|
+
key: string;
|
|
6
|
+
value: string;
|
|
7
|
+
statusColor: string;
|
|
8
|
+
}
|
|
9
|
+
export interface WorkflowMap {
|
|
10
|
+
stage: string;
|
|
11
|
+
next: string[];
|
|
12
|
+
transitions: {
|
|
13
|
+
to: string;
|
|
14
|
+
permission: string;
|
|
15
|
+
requiredColumns: string[];
|
|
16
|
+
condition: string;
|
|
17
|
+
isConditionOn: boolean;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
export interface EdgeData {
|
|
21
|
+
sourceLabel: string;
|
|
22
|
+
targetLabel: string;
|
|
23
|
+
sourceColor: string;
|
|
24
|
+
targetColor: string;
|
|
25
|
+
permission: string[];
|
|
26
|
+
requiredColumns: string[];
|
|
27
|
+
condition: string;
|
|
28
|
+
}
|
|
29
|
+
export type CustomEdgeType = Edge<EdgeData>;
|
|
30
|
+
export interface SelectIdType {
|
|
31
|
+
id: string;
|
|
32
|
+
type: SelectIdTypes;
|
|
33
|
+
}
|
|
34
|
+
export interface ReactFlowModalType {
|
|
35
|
+
fieldId: string;
|
|
36
|
+
col: any;
|
|
37
|
+
validateUser: any;
|
|
38
|
+
workspaceId: any;
|
|
39
|
+
exampleData: any;
|
|
40
|
+
acceptedUser: any;
|
|
41
|
+
datasetId: string;
|
|
42
|
+
onClose: () => void;
|
|
43
|
+
callBackFunc?: (data: {
|
|
44
|
+
id: string;
|
|
45
|
+
automation?: any;
|
|
46
|
+
workflow?: any;
|
|
47
|
+
}) => void;
|
|
48
|
+
}
|
|
49
|
+
export interface MiniFlowType {
|
|
50
|
+
nodes: any;
|
|
51
|
+
edges: any;
|
|
52
|
+
}
|
|
53
|
+
export interface FlowPreviewProps {
|
|
54
|
+
nodes: any[];
|
|
55
|
+
edges: any[];
|
|
56
|
+
}
|
|
57
|
+
export interface AppContextType {
|
|
58
|
+
selectFieldId: string;
|
|
59
|
+
col: any;
|
|
60
|
+
validateUser: any;
|
|
61
|
+
workspaceId: any;
|
|
62
|
+
exampleData: any;
|
|
63
|
+
acceptedUser: any;
|
|
64
|
+
datasetId: string;
|
|
65
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const Config: {
|
|
2
|
+
apiUrl: string;
|
|
3
|
+
clientApiUrl: string;
|
|
4
|
+
tenantSocketUrl: string;
|
|
5
|
+
clientSocketUrl: string;
|
|
6
|
+
clientGraphqlUrl: string;
|
|
7
|
+
serverGraphqlUrl: string;
|
|
8
|
+
notificationApiUrl: string;
|
|
9
|
+
dynamicDashboardUrl: string;
|
|
10
|
+
pattern: {
|
|
11
|
+
emailValidation: RegExp;
|
|
12
|
+
webSiteValidation: RegExp;
|
|
13
|
+
phoneNumberValidation: RegExp;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default Config;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export declare const ApiRoutes: {
|
|
2
|
+
validateUser: string;
|
|
3
|
+
usersAccepted: string;
|
|
4
|
+
validateWorkspace: string;
|
|
5
|
+
createWorkspace: string;
|
|
6
|
+
createUser: string;
|
|
7
|
+
updateTenant: string;
|
|
8
|
+
datasetList: string;
|
|
9
|
+
registerDeviceFcmToken: string;
|
|
10
|
+
deactiveDeviceFcmToken: string;
|
|
11
|
+
editDataset: string;
|
|
12
|
+
createGroupData: string;
|
|
13
|
+
moveWork: string;
|
|
14
|
+
deleteGroup: string;
|
|
15
|
+
renameGroup: string;
|
|
16
|
+
datasetGroupByTemplate: string;
|
|
17
|
+
createDataset: string;
|
|
18
|
+
createQuickRecord: string;
|
|
19
|
+
customizationField: string;
|
|
20
|
+
getAllDatastesList: string;
|
|
21
|
+
datasetRecordList: string;
|
|
22
|
+
deleteDatasetTypes: string;
|
|
23
|
+
listPageSelectedColumn: string;
|
|
24
|
+
updateFieldWidth: string;
|
|
25
|
+
sortField: string;
|
|
26
|
+
updateStage: string;
|
|
27
|
+
getUserListBasedOnRole: string;
|
|
28
|
+
updateRecordFieldValue: string;
|
|
29
|
+
updateStageReorder: string;
|
|
30
|
+
updateStageList: string;
|
|
31
|
+
recordBasicInfo: string;
|
|
32
|
+
createAndUpdateNote: string;
|
|
33
|
+
fieldUpdate: string;
|
|
34
|
+
editField: string;
|
|
35
|
+
fieldList: string;
|
|
36
|
+
deleteField: string;
|
|
37
|
+
fieldDetailList: string;
|
|
38
|
+
datasetRelation: string;
|
|
39
|
+
deleteDatasetRelation: string;
|
|
40
|
+
multipleDatasetsRelation: string;
|
|
41
|
+
preSignedMultipleUrl: string;
|
|
42
|
+
deleteDataSetFiles: string;
|
|
43
|
+
customizeField: string;
|
|
44
|
+
groupList: string;
|
|
45
|
+
groupUpdateList: string;
|
|
46
|
+
roleList: string;
|
|
47
|
+
addRole: string;
|
|
48
|
+
cloneRole: string;
|
|
49
|
+
editRole: string;
|
|
50
|
+
updateUserProfile: string;
|
|
51
|
+
updateUserProfilePicture: string;
|
|
52
|
+
changeWorkspace: string;
|
|
53
|
+
addWorkspace: string;
|
|
54
|
+
editWorkspace: string;
|
|
55
|
+
deleteWorkspace: string;
|
|
56
|
+
workspace: string;
|
|
57
|
+
organisationWorkspace: string;
|
|
58
|
+
addBoard: string;
|
|
59
|
+
datasets: string;
|
|
60
|
+
deleteDataset: string;
|
|
61
|
+
userList: string;
|
|
62
|
+
usersWorkspaceBasedList: string;
|
|
63
|
+
userInvite: string;
|
|
64
|
+
resendUserInvite: string;
|
|
65
|
+
team: string;
|
|
66
|
+
editTeam: string;
|
|
67
|
+
deleteTeam: string;
|
|
68
|
+
workspaceRoleList: string;
|
|
69
|
+
validateEmail: string;
|
|
70
|
+
addUsers: string;
|
|
71
|
+
editUser: string;
|
|
72
|
+
deleteUser: string;
|
|
73
|
+
deactivateUser: string;
|
|
74
|
+
activateUser: string;
|
|
75
|
+
editRecord: string;
|
|
76
|
+
addRecordFields: string;
|
|
77
|
+
editRecordFields: string;
|
|
78
|
+
associateWith: string;
|
|
79
|
+
datasetAssociate: string;
|
|
80
|
+
personDatasetSearch: string;
|
|
81
|
+
createField: string;
|
|
82
|
+
userOrganisation: string;
|
|
83
|
+
taskList: string;
|
|
84
|
+
taskIsCompleted: string;
|
|
85
|
+
meetingList: string;
|
|
86
|
+
overview: string;
|
|
87
|
+
note: string;
|
|
88
|
+
recordActivity: string;
|
|
89
|
+
recordActivityCount: string;
|
|
90
|
+
linkStageToDataset: string;
|
|
91
|
+
stageList: string;
|
|
92
|
+
commentList: string;
|
|
93
|
+
googleConnectionUrl: string;
|
|
94
|
+
updateDatasetSettings: string;
|
|
95
|
+
fileList: string;
|
|
96
|
+
boardList: string;
|
|
97
|
+
userMultipleInvite: string;
|
|
98
|
+
datasetAccess: string;
|
|
99
|
+
getAllNotification: string;
|
|
100
|
+
markAllAsRead: string;
|
|
101
|
+
getNotificationBadgeCount: string;
|
|
102
|
+
listEmails: string;
|
|
103
|
+
emailCounts: string;
|
|
104
|
+
markAsRead: string;
|
|
105
|
+
sendMail: string;
|
|
106
|
+
createDraft: string;
|
|
107
|
+
getMainThread: string;
|
|
108
|
+
moveToTrash: string;
|
|
109
|
+
moveToInbox: string;
|
|
110
|
+
moveAllToTrash: string;
|
|
111
|
+
deleteAllForever: string;
|
|
112
|
+
deleteForever: string;
|
|
113
|
+
cancelSchedule: string;
|
|
114
|
+
reschedule: string;
|
|
115
|
+
deleteAttachment: string;
|
|
116
|
+
uploadAttachment: string;
|
|
117
|
+
getConnectedEmailsHistory: string;
|
|
118
|
+
};
|