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.
Files changed (88) hide show
  1. package/README.md +93 -0
  2. package/dist/arrow.svg +3 -0
  3. package/dist/back_button.svg +10 -0
  4. package/dist/connectall.svg +10 -0
  5. package/dist/delete.svg +8 -0
  6. package/dist/doworks_icon.svg +4 -0
  7. package/dist/flow.svg +10 -0
  8. package/dist/index.css +1 -0
  9. package/dist/tick_circle.svg +4 -0
  10. package/dist/vector.svg +9 -0
  11. package/dist/vite.svg +1 -0
  12. package/dist/workflow.es.js +22408 -0
  13. package/dist/workflow.umd.js +188 -0
  14. package/dist/workflow_delete.svg +8 -0
  15. package/dist/workflow_east.svg +8 -0
  16. package/package.json +88 -0
  17. package/types/App.d.ts +0 -0
  18. package/types/Backup.d.ts +0 -0
  19. package/types/components/Automation/AutoComp.d.ts +2 -0
  20. package/types/components/Automation/Automation.d.ts +22 -0
  21. package/types/components/Automation/ListOfAutomation.d.ts +2 -0
  22. package/types/components/Automation/index.d.ts +3 -0
  23. package/types/components/Automation/types.d.ts +18 -0
  24. package/types/components/AutomationBage/index.d.ts +2 -0
  25. package/types/components/Condition/constants.d.ts +498 -0
  26. package/types/components/Condition/index.d.ts +2 -0
  27. package/types/components/CustomEdge/CustomEdge.d.ts +3 -0
  28. package/types/components/CustomNode/FieldNode.d.ts +3 -0
  29. package/types/components/CustomNode/OptionFieldNode.d.ts +3 -0
  30. package/types/components/FieldAutomationModal/index.d.ts +3 -0
  31. package/types/components/FlowPreview/index.d.ts +6 -0
  32. package/types/components/Form/Meeting.d.ts +2 -0
  33. package/types/components/Form/MoveRecordToWork.d.ts +10 -0
  34. package/types/components/Form/MultiSelectWithSearch.d.ts +3 -0
  35. package/types/components/Form/Notification.d.ts +2 -0
  36. package/types/components/Form/NotificationUser.d.ts +2 -0
  37. package/types/components/Form/OrnageSwitch.d.ts +6 -0
  38. package/types/components/Form/OwnerList.d.ts +8 -0
  39. package/types/components/Form/Task.d.ts +2 -0
  40. package/types/components/Form/WorkspaceDroopdown.d.ts +2 -0
  41. package/types/components/Form/multi-user-field.d.ts +15 -0
  42. package/types/components/Form/query.d.ts +4 -0
  43. package/types/components/MiniFlow/MiniFlowCanvas.d.ts +2 -0
  44. package/types/components/MiniFlow/index.d.ts +3 -0
  45. package/types/components/Sections/ConfigAutoSection.d.ts +3 -0
  46. package/types/components/Sections/Configuration.d.ts +9 -0
  47. package/types/components/Sections/index.d.ts +3 -0
  48. package/types/components/Sections/types.d.ts +22 -0
  49. package/types/components/WorkflowCanvas/WorkflowCanvas.d.ts +9 -0
  50. package/types/components/WorkflowCanvas/WorkflowCanvas.stories.d.ts +6 -0
  51. package/types/components/WorkflowCanvas/index.d.ts +22 -0
  52. package/types/components/WorkflowModal/FlowCanvas.d.ts +11 -0
  53. package/types/components/WorkflowModal/FlowEdgeDrawer.d.ts +3 -0
  54. package/types/components/WorkflowModal/constants.d.ts +428 -0
  55. package/types/components/WorkflowModal/index.d.ts +3 -0
  56. package/types/components/WorkflowModal/services.d.ts +25 -0
  57. package/types/components/WorkflowModal/types.d.ts +65 -0
  58. package/types/config/index.d.ts +16 -0
  59. package/types/constants/apiRoutes.d.ts +118 -0
  60. package/types/constants/common.d.ts +798 -0
  61. package/types/constants/emailApiRoutes.d.ts +18 -0
  62. package/types/constants/enum.d.ts +24 -0
  63. package/types/constants/index.d.ts +5 -0
  64. package/types/constants/regex.d.ts +45 -0
  65. package/types/constants/routes.d.ts +12 -0
  66. package/types/constants/theme.d.ts +88 -0
  67. package/types/context/AppContext.d.ts +2 -0
  68. package/types/context/AppProvider.d.ts +2 -0
  69. package/types/index.d.ts +7 -0
  70. package/types/main.d.ts +0 -0
  71. package/types/services/api/api.d.ts +20 -0
  72. package/types/services/api/api.service.d.ts +18 -0
  73. package/types/services/api/database.d.ts +9 -0
  74. package/types/services/aws/aws-exports.d.ts +17 -0
  75. package/types/services/aws/aws-helpers.d.ts +21 -0
  76. package/types/services/aws/aws-services.d.ts +22 -0
  77. package/types/services/common.service.d.ts +7 -0
  78. package/types/services/graphql-client.d.ts +9 -0
  79. package/types/services/helper/service.d.ts +1 -0
  80. package/types/services/lodash.service.d.ts +30 -0
  81. package/types/stories/Button.d.ts +15 -0
  82. package/types/stories/Button.stories.d.ts +23 -0
  83. package/types/stories/Header.d.ts +12 -0
  84. package/types/stories/Header.stories.d.ts +18 -0
  85. package/types/stories/Page.d.ts +3 -0
  86. package/types/stories/Page.stories.d.ts +12 -0
  87. package/types/types/common.d.ts +9 -0
  88. 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
+ };