workflow-common 1.0.0 → 1.0.2

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 (152) hide show
  1. package/README.md +24 -1
  2. package/{src/index.ts → index.d.ts} +2 -2
  3. package/index.js +18 -0
  4. package/package.json +1 -1
  5. package/tasks/AddPropertyToJsonTask.d.ts +2 -0
  6. package/tasks/AddPropertyToJsonTask.js +32 -0
  7. package/tasks/ApplySessionSorageTask.d.ts +2 -0
  8. package/tasks/ApplySessionSorageTask.js +32 -0
  9. package/tasks/CheckElementExistsTask.d.ts +2 -0
  10. package/tasks/CheckElementExistsTask.js +31 -0
  11. package/tasks/ClearInputTask.d.ts +2 -0
  12. package/tasks/ClearInputTask.js +27 -0
  13. package/tasks/ClickElementTask.d.ts +2 -0
  14. package/tasks/ClickElementTask.js +27 -0
  15. package/tasks/CloseBrowserTask.d.ts +2 -0
  16. package/tasks/CloseBrowserTask.js +17 -0
  17. package/tasks/DeliverViaWebhookTask.d.ts +2 -0
  18. package/tasks/DeliverViaWebhookTask.js +22 -0
  19. package/tasks/DoubleClickElementTask.d.ts +2 -0
  20. package/tasks/DoubleClickElementTask.js +27 -0
  21. package/tasks/ExtractElementByTextTask.d.ts +2 -0
  22. package/tasks/ExtractElementByTextTask.js +47 -0
  23. package/tasks/ExtractTextAndValidateTask.d.ts +2 -0
  24. package/tasks/ExtractTextAndValidateTask.js +37 -0
  25. package/tasks/FillCredentialsTask.d.ts +2 -0
  26. package/tasks/FillCredentialsTask.js +32 -0
  27. package/tasks/FillInputTask.d.ts +2 -0
  28. package/tasks/FillInputTask.js +32 -0
  29. package/tasks/GoForwardTask.d.ts +2 -0
  30. package/tasks/GoForwardTask.js +22 -0
  31. package/tasks/GobackTask.d.ts +2 -0
  32. package/tasks/GobackTask.js +22 -0
  33. package/tasks/HoverElementTask.d.ts +2 -0
  34. package/tasks/HoverElementTask.js +27 -0
  35. package/tasks/HttpRequestTask.d.ts +2 -0
  36. package/tasks/HttpRequestTask.js +58 -0
  37. package/tasks/LaunchBrowserTask.d.ts +2 -0
  38. package/tasks/LaunchBrowserTask.js +21 -0
  39. package/tasks/LogMessageTask.d.ts +2 -0
  40. package/tasks/LogMessageTask.js +37 -0
  41. package/tasks/LoginViaBasicAuthTask.d.ts +2 -0
  42. package/tasks/LoginViaBasicAuthTask.js +32 -0
  43. package/tasks/NavigateUrlTask.d.ts +2 -0
  44. package/tasks/NavigateUrlTask.js +27 -0
  45. package/tasks/PageToHtmlTask.d.ts +2 -0
  46. package/tasks/PageToHtmlTask.js +26 -0
  47. package/tasks/PressKeyTask.d.ts +2 -0
  48. package/tasks/PressKeyTask.js +34 -0
  49. package/tasks/ReadPropertyFromJsonTask.d.ts +2 -0
  50. package/tasks/ReadPropertyFromJsonTask.js +27 -0
  51. package/tasks/ReloadPageTask.d.ts +2 -0
  52. package/tasks/ReloadPageTask.js +22 -0
  53. package/tasks/RightClickElementTask.d.ts +2 -0
  54. package/tasks/RightClickElementTask.js +27 -0
  55. package/tasks/ScrollToBottomTask.d.ts +2 -0
  56. package/tasks/ScrollToBottomTask.js +27 -0
  57. package/tasks/ScrollToElementTask.d.ts +2 -0
  58. package/tasks/ScrollToElementTask.js +27 -0
  59. package/tasks/ScrollToTopTask.d.ts +2 -0
  60. package/tasks/ScrollToTopTask.js +27 -0
  61. package/tasks/SelectDropdownTask.d.ts +2 -0
  62. package/tasks/SelectDropdownTask.js +32 -0
  63. package/tasks/SetCookieTask.d.ts +2 -0
  64. package/tasks/SetCookieTask.js +48 -0
  65. package/tasks/StoreAuthTokenTask.d.ts +2 -0
  66. package/tasks/StoreAuthTokenTask.js +46 -0
  67. package/tasks/TaskRegisteryTask.d.ts +41 -0
  68. package/tasks/TaskRegisteryTask.js +157 -0
  69. package/tasks/ToogleCheckboxTask.d.ts +0 -0
  70. package/{src/tasks/ToogleCheckboxTask.ts → tasks/ToogleCheckboxTask.js} +32 -32
  71. package/tasks/UploadFileTask.d.ts +2 -0
  72. package/tasks/UploadFileTask.js +32 -0
  73. package/tasks/ValidateCheckboxTask.d.ts +2 -0
  74. package/tasks/ValidateCheckboxTask.js +43 -0
  75. package/tasks/WaitForElementTask.d.ts +2 -0
  76. package/tasks/WaitForElementTask.js +43 -0
  77. package/tasks/WaitForNavigationTask.d.ts +2 -0
  78. package/tasks/WaitForNavigationTask.js +22 -0
  79. package/tasks/WaitForTimeTask.d.ts +2 -0
  80. package/tasks/WaitForTimeTask.js +28 -0
  81. package/{src/tasks/index.ts → tasks/index.d.ts} +37 -38
  82. package/tasks/index.js +54 -0
  83. package/types/appNode.d.ts +21 -0
  84. package/types/appNode.js +2 -0
  85. package/types/common.d.ts +4 -0
  86. package/types/common.js +8 -0
  87. package/types/execution.d.ts +37 -0
  88. package/types/execution.js +2 -0
  89. package/types/executor.d.ts +30 -0
  90. package/types/executor.js +2 -0
  91. package/{src/types/index.ts → types/index.d.ts} +10 -10
  92. package/types/index.js +26 -0
  93. package/types/log.d.ts +15 -0
  94. package/types/log.js +2 -0
  95. package/types/schedule.d.ts +52 -0
  96. package/types/schedule.js +75 -0
  97. package/types/suites.d.ts +12 -0
  98. package/types/suites.js +2 -0
  99. package/types/task.d.ts +61 -0
  100. package/types/task.js +63 -0
  101. package/types/workflow.d.ts +41 -0
  102. package/types/workflow.js +35 -0
  103. package/types/workflowTasks.d.ts +8 -0
  104. package/types/workflowTasks.js +2 -0
  105. package/src/tasks/AddPropertyToJsonTask.ts +0 -31
  106. package/src/tasks/ApplySessionSorageTask.ts +0 -31
  107. package/src/tasks/CheckElementExistsTask.ts +0 -30
  108. package/src/tasks/ClearInputTask.ts +0 -26
  109. package/src/tasks/ClickElementTask.ts +0 -26
  110. package/src/tasks/CloseBrowserTask.ts +0 -16
  111. package/src/tasks/DeliverViaWebhookTask.ts +0 -21
  112. package/src/tasks/DoubleClickElementTask.ts +0 -26
  113. package/src/tasks/ExtractElementByTextTask.ts +0 -46
  114. package/src/tasks/ExtractTextAndValidateTask.ts +0 -36
  115. package/src/tasks/FillCredentialsTask.ts +0 -31
  116. package/src/tasks/FillInputTask.ts +0 -31
  117. package/src/tasks/GoForwardTask.ts +0 -21
  118. package/src/tasks/GobackTask.ts +0 -21
  119. package/src/tasks/HoverElementTask.ts +0 -26
  120. package/src/tasks/HttpRequestTask.ts +0 -57
  121. package/src/tasks/LaunchBrowserTask.ts +0 -20
  122. package/src/tasks/LogMessageTask.ts +0 -36
  123. package/src/tasks/LoginViaBasicAuthTask.ts +0 -31
  124. package/src/tasks/NavigateUrlTask.ts +0 -26
  125. package/src/tasks/PageToHtmlTask.ts +0 -25
  126. package/src/tasks/PressKeyTask.ts +0 -33
  127. package/src/tasks/ReadPropertyFromJsonTask.ts +0 -26
  128. package/src/tasks/ReloadPageTask.ts +0 -21
  129. package/src/tasks/RightClickElementTask.ts +0 -26
  130. package/src/tasks/ScrollToBottomTask.ts +0 -26
  131. package/src/tasks/ScrollToElementTask.ts +0 -26
  132. package/src/tasks/ScrollToTopTask.ts +0 -26
  133. package/src/tasks/SelectDropdownTask.ts +0 -31
  134. package/src/tasks/SetCookieTask.ts +0 -47
  135. package/src/tasks/StoreAuthTokenTask.ts +0 -45
  136. package/src/tasks/TaskRegisteryTask.ts +0 -171
  137. package/src/tasks/UploadFileTask.ts +0 -31
  138. package/src/tasks/ValidateCheckboxTask.ts +0 -42
  139. package/src/tasks/WaitForElementTask.ts +0 -42
  140. package/src/tasks/WaitForNavigationTask.ts +0 -21
  141. package/src/tasks/WaitForTimeTask.ts +0 -27
  142. package/src/types/appNode.ts +0 -25
  143. package/src/types/common.ts +0 -5
  144. package/src/types/execution.ts +0 -40
  145. package/src/types/executor.ts +0 -33
  146. package/src/types/log.ts +0 -16
  147. package/src/types/schedule.ts +0 -119
  148. package/src/types/suites.ts +0 -13
  149. package/src/types/task.ts +0 -80
  150. package/src/types/workflow.ts +0 -49
  151. package/src/types/workflowTasks.ts +0 -9
  152. package/tsconfig.json +0 -13
@@ -1,46 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const ExtractElementByTextTask: WorkflowTask = {
5
- type: TaskType.EXTRACT_ELEMENT_BY_TEXT,
6
- label: 'Extract Element by text',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'text',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- {
20
- name: 'element',
21
- type: TaskParamType.SELECT,
22
- hideHandle: true,
23
- required: true,
24
- options: [
25
- {
26
- label: 'div',
27
- value: 'div',
28
- },
29
- {
30
- label: 'button',
31
- value: 'button',
32
- },
33
- ],
34
- },
35
- ] as const,
36
- outputs: [
37
- {
38
- name: 'Web page',
39
- type: TaskParamType.BROWSER_INSTANCE,
40
- },
41
- {
42
- name: 'Element Selector',
43
- type: TaskParamType.STRING,
44
- },
45
- ] as const,
46
- };
@@ -1,36 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const ExtractTextAndValidateTask: WorkflowTask = {
5
- type: TaskType.EXTRACT_TEXT_AND_VALIDATE,
6
- label: 'Extract text and validate',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- variant: 'textarea',
14
- },
15
- {
16
- name: 'Selector',
17
- type: TaskParamType.STRING,
18
- required: true,
19
- },
20
- {
21
- name: 'Exptected text',
22
- type: TaskParamType.STRING,
23
- required: true,
24
- },
25
- ] as const,
26
- outputs: [
27
- {
28
- name: 'Extracted text',
29
- type: TaskParamType.STRING,
30
- },
31
- {
32
- name: 'Web page',
33
- type: TaskParamType.BROWSER_INSTANCE,
34
- },
35
- ] as const,
36
- };
@@ -1,31 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const FillCredentialTask: WorkflowTask = {
5
- type: TaskType.FILL_CREDENTIAL,
6
- label: 'Fill Credential',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Selector',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- {
20
- name: 'Credential',
21
- type: TaskParamType.CREDENTIAL,
22
- required: true,
23
- },
24
- ] as const,
25
- outputs: [
26
- {
27
- name: 'Web page',
28
- type: TaskParamType.BROWSER_INSTANCE,
29
- },
30
- ] as const,
31
- };
@@ -1,31 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const FillInputTask: WorkflowTask = {
5
- type: TaskType.FILL_INPUT,
6
- label: 'Fill Input',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web Page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Selector',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- {
20
- name: 'Value',
21
- type: TaskParamType.STRING,
22
- required: true,
23
- },
24
- ] as const,
25
- outputs: [
26
- {
27
- name: 'Web Page',
28
- type: TaskParamType.BROWSER_INSTANCE,
29
- },
30
- ] as const,
31
- };
@@ -1,21 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const GoForwardTask: WorkflowTask = {
5
- type: TaskType.GO_FORWARD,
6
- label: 'Go Forward',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- ] as const,
15
- outputs: [
16
- {
17
- name: 'Web page',
18
- type: TaskParamType.BROWSER_INSTANCE,
19
- },
20
- ] as const,
21
- };
@@ -1,21 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const GoBackTask: WorkflowTask = {
5
- type: TaskType.GO_BACK,
6
- label: 'Go Back',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- ] as const,
15
- outputs: [
16
- {
17
- name: 'Web page',
18
- type: TaskParamType.BROWSER_INSTANCE,
19
- },
20
- ] as const,
21
- };
@@ -1,26 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const HoverElementTask: WorkflowTask = {
5
- type: TaskType.HOVER_ELEMENT,
6
- label: 'Hover Over Element',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Selector',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- ] as const,
20
- outputs: [
21
- {
22
- name: 'Web page',
23
- type: TaskParamType.BROWSER_INSTANCE,
24
- },
25
- ] as const,
26
- };
@@ -1,57 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const HttpRequestTask: WorkflowTask = {
5
- type: TaskType.HTTP_REQUEST,
6
- label: 'HTTP Request',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web Page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'URL',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- {
20
- name: 'Method',
21
- type: TaskParamType.SELECT,
22
- required: true,
23
- options: [
24
- { label: 'GET', value: 'GET' },
25
- { label: 'POST', value: 'POST' },
26
- { label: 'PUT', value: 'PUT' },
27
- { label: 'DELETE', value: 'DELETE' },
28
- { label: 'PATCH', value: 'PATCH' },
29
- ],
30
- },
31
- {
32
- name: 'Headers (JSON)',
33
- type: TaskParamType.JSON,
34
- required: false,
35
- },
36
- {
37
- name: 'Body (JSON)',
38
- type: TaskParamType.JSON,
39
- required: false,
40
- },
41
- ] as const,
42
- outputs: [
43
- {
44
- name: 'Response Status',
45
- type: TaskParamType.NUMBER,
46
- },
47
- {
48
- name: 'Response Body',
49
- type: TaskParamType.JSON,
50
- },
51
- {
52
- name: 'Web Page',
53
- type: TaskParamType.BROWSER_INSTANCE,
54
- required: true,
55
- },
56
- ] as const,
57
- };
@@ -1,20 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const LaunchBrowserTask: WorkflowTask = {
5
- type: TaskType.LAUNCH_BROWSER,
6
- label: 'Launch Browser',
7
- isEntryPoint: true,
8
- inputs: [
9
- {
10
- name: 'Website URL',
11
- type: TaskParamType.STRING,
12
- helperText: 'eg: https://www.google.com',
13
- required: true,
14
- hideHandle: true,
15
- },
16
- ] as const,
17
- outputs: [
18
- { name: 'Web Page', type: TaskParamType.BROWSER_INSTANCE },
19
- ] as const,
20
- };
@@ -1,36 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const LogMessageTask: WorkflowTask = {
5
- type: TaskType.LOG_MESSAGE,
6
- label: 'Log Message',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web Page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Message',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- {
20
- name: 'Message Type',
21
- type: TaskParamType.SELECT,
22
- required: true,
23
- options: [
24
- { label: 'Info', value: 'info' },
25
- { label: 'Error', value: 'error' },
26
- ],
27
- },
28
- ] as const,
29
- outputs: [
30
- {
31
- name: 'Web Page',
32
- type: TaskParamType.BROWSER_INSTANCE,
33
- required: true,
34
- },
35
- ] as const,
36
- };
@@ -1,31 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const LoginViaBasicAuthTask: WorkflowTask = {
5
- type: TaskType.LOGIN_VIA_BASIC_AUTH,
6
- label: 'Login via Basic Auth',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Username',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- {
20
- name: 'Password',
21
- type: TaskParamType.STRING,
22
- required: true,
23
- },
24
- ] as const,
25
- outputs: [
26
- {
27
- name: 'Web page',
28
- type: TaskParamType.BROWSER_INSTANCE,
29
- },
30
- ] as const,
31
- };
@@ -1,26 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const NavigateUrlTask: WorkflowTask = {
5
- type: TaskType.NAVIGATE_URL,
6
- label: 'Navigate Url',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Url',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- ] as const,
20
- outputs: [
21
- {
22
- name: 'Web page',
23
- type: TaskParamType.BROWSER_INSTANCE,
24
- },
25
- ] as const,
26
- };
@@ -1,25 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const PageToHtmlTask: WorkflowTask = {
5
- type: TaskType.PAGE_TO_HTML,
6
- label: 'Get Web page HTML',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web Page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- ] as const,
15
- outputs: [
16
- {
17
- name: 'Html',
18
- type: TaskParamType.STRING,
19
- },
20
- {
21
- name: 'Web Page',
22
- type: TaskParamType.BROWSER_INSTANCE,
23
- },
24
- ] as const,
25
- };
@@ -1,33 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const PressKeyTask: WorkflowTask = {
5
- type: TaskType.PRESS_KEY,
6
- label: 'Press Key',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Key',
16
- type: TaskParamType.SELECT,
17
- required: true,
18
- options: [
19
- { label: 'Enter', value: 'Enter' },
20
- { label: 'Tab', value: 'Tab' },
21
- { label: 'Escape', value: 'Escape' },
22
- { label: 'Arrow Up', value: 'ArrowUp' },
23
- { label: 'Arrow Down', value: 'ArrowDown' },
24
- ],
25
- },
26
- ] as const,
27
- outputs: [
28
- {
29
- name: 'Web page',
30
- type: TaskParamType.BROWSER_INSTANCE,
31
- },
32
- ] as const,
33
- };
@@ -1,26 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const ReadPropertyFromJsonTask: WorkflowTask = {
5
- type: TaskType.READ_PROPERTY_FROM_JSON,
6
- label: 'Read Property from JSON',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'JSON',
11
- type: TaskParamType.STRING,
12
- required: true,
13
- },
14
- {
15
- name: 'Property name',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- ] as const,
20
- outputs: [
21
- {
22
- name: 'Property value',
23
- type: TaskParamType.STRING,
24
- },
25
- ] as const,
26
- };
@@ -1,21 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const ReloadPageTask: WorkflowTask = {
5
- type: TaskType.RELOAD_PAGE,
6
- label: 'Reload Page',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- ] as const,
15
- outputs: [
16
- {
17
- name: 'Web page',
18
- type: TaskParamType.BROWSER_INSTANCE,
19
- },
20
- ] as const,
21
- };
@@ -1,26 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const RightClickElementTask: WorkflowTask = {
5
- type: TaskType.RIGHT_CLICK_ELEMENT,
6
- label: 'Right Click Element',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Selector',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- ] as const,
20
- outputs: [
21
- {
22
- name: 'Web page',
23
- type: TaskParamType.BROWSER_INSTANCE,
24
- },
25
- ] as const,
26
- };
@@ -1,26 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const ScrollToBottomTask: WorkflowTask = {
5
- type: TaskType.SCROLL_TO_TOP,
6
- label: 'Scroll to element',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Selector',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- ] as const,
20
- outputs: [
21
- {
22
- name: 'Web page',
23
- type: TaskParamType.BROWSER_INSTANCE,
24
- },
25
- ] as const,
26
- };
@@ -1,26 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const ScrollToElementTask: WorkflowTask = {
5
- type: TaskType.SCROLL_TO_ELEMENT,
6
- label: 'Scroll to element',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Selector',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- ] as const,
20
- outputs: [
21
- {
22
- name: 'Web page',
23
- type: TaskParamType.BROWSER_INSTANCE,
24
- },
25
- ] as const,
26
- };
@@ -1,26 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const ScrollToTopTask: WorkflowTask = {
5
- type: TaskType.SCROLL_TO_TOP,
6
- label: 'Scroll to element',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Selector',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- ] as const,
20
- outputs: [
21
- {
22
- name: 'Web page',
23
- type: TaskParamType.BROWSER_INSTANCE,
24
- },
25
- ] as const,
26
- };
@@ -1,31 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const SelectDropdownTask: WorkflowTask = {
5
- type: TaskType.SELECT_DROPDOWN,
6
- label: 'Select Dropdown Value',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web Page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Selector',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- {
20
- name: 'value',
21
- type: TaskParamType.STRING,
22
- required: true,
23
- },
24
- ] as const,
25
- outputs: [
26
- {
27
- name: 'Web page',
28
- type: TaskParamType.BROWSER_INSTANCE,
29
- },
30
- ] as const,
31
- };
@@ -1,47 +0,0 @@
1
- import { WorkflowTask } from '../types/workflowTasks';
2
- import { TaskParamType, TaskType } from '../types/task';
3
-
4
- export const SetCookieTask: WorkflowTask = {
5
- type: TaskType.SET_COOKIE,
6
- label: 'Set Cookie',
7
- isEntryPoint: false,
8
- inputs: [
9
- {
10
- name: 'Web page',
11
- type: TaskParamType.BROWSER_INSTANCE,
12
- required: true,
13
- },
14
- {
15
- name: 'Name',
16
- type: TaskParamType.STRING,
17
- required: true,
18
- },
19
- {
20
- name: 'Value',
21
- type: TaskParamType.STRING,
22
- required: true,
23
- },
24
- {
25
- name: 'Domain',
26
- type: TaskParamType.STRING,
27
- required: true,
28
- },
29
- {
30
- name: 'Path',
31
- type: TaskParamType.STRING,
32
- required: false,
33
- defaultValue: '/',
34
- },
35
- {
36
- name: 'Expires (Unix timestamp)',
37
- type: TaskParamType.NUMBER,
38
- required: false,
39
- },
40
- ] as const,
41
- outputs: [
42
- {
43
- name: 'Web page',
44
- type: TaskParamType.BROWSER_INSTANCE,
45
- },
46
- ] as const,
47
- };