@evenicanpm/admin-integrate 1.2.2 → 1.3.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 (209) hide show
  1. package/documents/ConfigImport/configuration-import.ts +54 -0
  2. package/documents/CopyProcess/copy.ts +25 -0
  3. package/documents/Endpoint/fragments.ts +9 -0
  4. package/documents/Endpoint/list.ts +22 -0
  5. package/documents/Process/fragments.ts +22 -0
  6. package/documents/Process/get-process-details.ts +73 -0
  7. package/documents/Process/list.ts +24 -0
  8. package/documents/ProcessConfig/fragments.ts +116 -0
  9. package/documents/ProcessConfig/read.ts +35 -0
  10. package/documents/ProcessExecution/fragments.ts +12 -0
  11. package/documents/ProcessExecution/list.ts +30 -1
  12. package/documents/ProcessExecutionDetails/fragments.ts +96 -0
  13. package/documents/ProcessExecutionDetails/read.ts +12 -0
  14. package/documents/ProcessScheduleGroup/read.ts +43 -0
  15. package/documents/ProcessTask/fragments.ts +285 -0
  16. package/documents/ProcessTask/read.ts +12 -0
  17. package/documents/ProcessTemplate/fragments.ts +69 -0
  18. package/documents/ProcessTemplate/list.ts +67 -0
  19. package/documents/ProcessTemplate/read.ts +12 -0
  20. package/documents/RunProcess/run.ts +11 -0
  21. package/package.json +4 -3
  22. package/src/api/Integrations/queries/get-process.query.ts +12 -12
  23. package/src/api/Integrations/queries/get-process.server.ts +7 -2
  24. package/src/api/dashboard/queries/get-process-executions.query.ts +6 -3
  25. package/src/api/dashboard/queries/get-process-executions.server.ts +1 -1
  26. package/src/api/execution-details/queries/get-process-execution-details.query.ts +46 -0
  27. package/src/api/execution-details/queries/get-process-execution-details.server.ts +11 -0
  28. package/src/api/execution-details/queries/get-process-executions-by-process.query.ts +48 -0
  29. package/src/api/execution-details/queries/get-process-executions-by-process.server.ts +11 -0
  30. package/src/api/execution-details/queries/index.ts +2 -0
  31. package/src/api/process/mutations/copy-process.mutation.ts +48 -0
  32. package/src/api/process/mutations/copy-process.server.ts +14 -0
  33. package/src/api/process/mutations/index.ts +2 -0
  34. package/src/api/process/mutations/run-process.mutation.ts +41 -0
  35. package/src/api/process/mutations/run-process.server.ts +14 -0
  36. package/src/api/process/queries/get-process-by-id.query.ts +85 -0
  37. package/src/api/process/queries/get-process-by-id.server.ts +20 -0
  38. package/src/api/process/queries/index.ts +4 -0
  39. package/src/api/process-config/mutation/index.ts +2 -0
  40. package/src/api/process-config/mutation/process-config-import.mutation.ts +33 -0
  41. package/src/api/process-config/mutation/process-config-import.server.ts +14 -0
  42. package/src/api/process-config/mutation/process-config-merge.mutation.ts +33 -0
  43. package/src/api/process-config/mutation/process-config-merge.server.ts +14 -0
  44. package/src/api/process-task/queries/get-process-task-by-id.query.ts +45 -0
  45. package/src/api/process-task/queries/get-process-task-by-id.server.ts +9 -0
  46. package/src/api/process-task/queries/index.ts +1 -0
  47. package/src/api/scheduler/mutation/create-process-schedule-group-details.mutation.ts +47 -0
  48. package/src/api/scheduler/mutation/create-process-schedule-group-details.server.ts +14 -0
  49. package/src/api/scheduler/mutation/index.ts +2 -0
  50. package/src/api/scheduler/mutation/update-process-schedule-group-details.mutation.ts +47 -0
  51. package/src/api/scheduler/mutation/update-process-schedule-group-details.server.ts +14 -0
  52. package/src/api/scheduler/queries/get-non-scheduled-processes.query.ts +48 -0
  53. package/src/api/scheduler/queries/get-non-scheduled-processes.server.ts +11 -0
  54. package/src/api/scheduler/queries/get-process-schedule-group-details.query.ts +6 -3
  55. package/src/api/scheduler/queries/get-process-schedule-group-details.server.ts +3 -3
  56. package/src/api/scheduler/queries/get-process-schedule.query.ts +6 -3
  57. package/src/api/scheduler/queries/get-process-schedule.server.ts +3 -3
  58. package/src/api/scheduler/queries/get-scheduled-processes.query.ts +6 -3
  59. package/src/api/scheduler/queries/get-scheduled-processes.server.ts +1 -1
  60. package/src/api/scheduler/queries/index.ts +3 -2
  61. package/src/api/templates/queries/get-process-template-groups.query.ts +48 -0
  62. package/src/api/templates/queries/get-process-template-groups.server.ts +11 -0
  63. package/src/api/templates/queries/get-process-template-records.query.ts +48 -0
  64. package/src/api/templates/queries/get-process-template-records.server.ts +11 -0
  65. package/src/api/templates/queries/get-process-template.query.ts +48 -0
  66. package/src/api/templates/queries/get-process-template.server.ts +9 -0
  67. package/src/api/templates/queries/get-process-templates.query.ts +45 -0
  68. package/src/api/templates/queries/get-process-templates.server.ts +9 -0
  69. package/src/api/templates/queries/index.ts +5 -0
  70. package/src/api/templates/queries/template-input-search.query.ts +34 -0
  71. package/src/api/templates/queries/template-input-search.server.ts +35 -0
  72. package/src/api/templates/queries/types.ts +28 -0
  73. package/src/components/breadcrumbs/breadcrumbs.tsx +32 -5
  74. package/src/components/button/outlined-icon-button.tsx +2 -2
  75. package/src/components/core/date-time-popover.tsx +11 -4
  76. package/src/components/core/drawer-buttons.tsx +52 -0
  77. package/src/components/core/edited-typography.tsx +1 -1
  78. package/src/components/core/index.ts +4 -2
  79. package/src/components/core/loading.tsx +1 -1
  80. package/src/components/core/status-tag.tsx +97 -0
  81. package/src/components/core/title-edit.tsx +18 -11
  82. package/src/components/dashboard-list/dashboard-list-row.tsx +22 -29
  83. package/src/components/dashboard-list/dashboard-list.tsx +19 -15
  84. package/src/components/data-table/table-header.tsx +5 -7
  85. package/src/components/data-table/table-pagination.tsx +1 -1
  86. package/src/components/data-table/table-row.tsx +1 -1
  87. package/src/components/data-table/table-skeleton.tsx +9 -4
  88. package/src/components/execution/execution-filter.ts +1 -1
  89. package/src/components/execution/execution-status-icon.tsx +7 -7
  90. package/src/components/execution/execution-tag.tsx +12 -77
  91. package/src/components/execution/index.ts +1 -1
  92. package/src/components/execution-history-drawer/execution-history-drawer.tsx +203 -0
  93. package/src/components/execution-history-drawer/executions-card.tsx +85 -0
  94. package/src/components/execution-history-drawer/index.ts +1 -0
  95. package/src/components/footer/footer.tsx +10 -6
  96. package/src/components/header/dashboard-list-header.tsx +12 -7
  97. package/src/components/header/execution-details-header.tsx +35 -26
  98. package/src/components/header/header.tsx +10 -3
  99. package/src/components/header/index.ts +1 -1
  100. package/src/components/header/integration-details-header.tsx +104 -45
  101. package/src/components/integration-list/index.ts +2 -1
  102. package/src/components/integration-list/integration-filter.ts +1 -1
  103. package/src/components/integration-list/integration-status-icon.tsx +7 -8
  104. package/src/components/integration-list/integration-tag.tsx +6 -50
  105. package/src/components/integration-list/list/integration-list-row.tsx +161 -0
  106. package/src/components/integration-list/list/integration-list-table.tsx +62 -0
  107. package/src/{pages/integrations/integration-list → components/integration-list/list}/integration-list.tsx +47 -51
  108. package/src/components/integration-view/animated-svg.tsx +31 -0
  109. package/src/components/integration-view/edges/default-edge.tsx +1 -1
  110. package/src/components/integration-view/elk-layout-options.ts +2 -2
  111. package/src/components/integration-view/elk-types.ts +35 -6
  112. package/src/components/integration-view/flow-types.tsx +10 -0
  113. package/src/components/integration-view/integration-view.tsx +990 -55
  114. package/src/components/integration-view/nodes/empty-node.tsx +65 -0
  115. package/src/components/integration-view/nodes/entry-node.tsx +98 -4
  116. package/src/components/integration-view/nodes/execution-entry-node.tsx +107 -0
  117. package/src/components/integration-view/nodes/execution-task-node.tsx +88 -0
  118. package/src/components/integration-view/nodes/group-node.tsx +19 -13
  119. package/src/components/integration-view/nodes/row-node.tsx +19 -0
  120. package/src/components/integration-view/nodes/task-node.tsx +14 -8
  121. package/src/components/integration-view/task-icon.tsx +193 -0
  122. package/src/components/integration-view/temp-data/initialElements.tsx +36 -32
  123. package/src/components/integration-view/types.ts +2 -2
  124. package/src/components/layouts/main-layout.tsx +2 -3
  125. package/src/components/layouts/root-container.tsx +3 -6
  126. package/src/components/link-cards/link-card.tsx +15 -4
  127. package/src/components/link-cards/styles.ts +1 -1
  128. package/src/components/list-filter/date-filter.tsx +4 -3
  129. package/src/components/list-filter/date-range-filter.tsx +11 -5
  130. package/src/components/list-filter/index.ts +1 -1
  131. package/src/components/list-filter/list-filter.tsx +30 -25
  132. package/src/components/list-filter/multi-select-filter.tsx +11 -10
  133. package/src/components/list-filter/select-filter.tsx +13 -8
  134. package/src/components/scheduler/day-selector.tsx +29 -15
  135. package/src/components/scheduler/day-tag.tsx +14 -51
  136. package/src/components/scheduler/index.ts +2 -1
  137. package/src/components/scheduler/schedule-drawer/details-reducer.ts +217 -0
  138. package/src/components/scheduler/schedule-drawer/schedule-details-integrations.tsx +503 -0
  139. package/src/{pages → components}/scheduler/schedule-drawer/schedule-details-main.tsx +136 -99
  140. package/src/components/scheduler/schedule-drawer/schedule-details-name.tsx +94 -0
  141. package/src/{pages → components}/scheduler/schedule-drawer/schedule-details-skeleton.tsx +1 -2
  142. package/src/{pages → components}/scheduler/schedule-drawer/schedule-details.tsx +9 -13
  143. package/src/components/scheduler/schedule-drawer/schedule-drawer-group.tsx +218 -0
  144. package/src/{pages → components}/scheduler/schedule-drawer/schedule-drawer-legacy.tsx +6 -25
  145. package/src/components/scheduler/schedule-drawer/schedule-drawer.tsx +116 -0
  146. package/src/components/scheduler/schedule-drawer/sortable-integration-row.tsx +130 -0
  147. package/src/components/scheduler/schedule-filter.ts +1 -1
  148. package/src/components/scheduler/schedule-icon.tsx +5 -6
  149. package/src/components/scheduler/schedule-integration-icon.tsx +31 -0
  150. package/src/components/templates/index.ts +1 -0
  151. package/src/components/templates/inputs/index.tsx +1351 -0
  152. package/src/components/templates/template-filter.ts +5 -0
  153. package/src/components/templates/templates-list/index.ts +1 -0
  154. package/src/components/templates/templates-list/templates-list-row.tsx +55 -0
  155. package/src/components/templates/templates-list/templates-list-table.tsx +58 -0
  156. package/src/components/templates/templates-list/templates-list.tsx +253 -0
  157. package/src/components/templates/types.tsx +75 -0
  158. package/src/components/templates/wizard.tsx +689 -0
  159. package/src/hooks/use-breadcrumbs.ts +1 -1
  160. package/src/hooks/use-recurrence.tsx +1 -2
  161. package/src/pages/dashboard/dashboard-link-cards.tsx +8 -11
  162. package/src/pages/dashboard/dashboard-list-sections.tsx +7 -9
  163. package/src/pages/dashboard/dashboard.tsx +1 -2
  164. package/src/pages/execution-details/execution-details.tsx +211 -14
  165. package/src/pages/execution-details/task-execution-details.tsx +160 -0
  166. package/src/pages/execution-details/task-execution-drawer.tsx +54 -0
  167. package/src/pages/executions/executions-list/executions-list-row.tsx +21 -27
  168. package/src/pages/executions/executions-list/executions-list-table.tsx +28 -35
  169. package/src/pages/executions/executions-list/executions-list.tsx +24 -18
  170. package/src/pages/executions/executions.tsx +11 -15
  171. package/src/pages/integration-create/index.ts +1 -0
  172. package/src/pages/integration-create/integration-create.tsx +174 -0
  173. package/src/pages/integration-create/pre-creation-step.tsx +12 -0
  174. package/src/pages/integration-create/select-step.tsx +105 -0
  175. package/src/pages/integration-create/template-list-step.tsx +77 -0
  176. package/src/pages/integration-create/wizard-step.tsx +50 -0
  177. package/src/pages/integration-details/import-process/copy-tasks-list.tsx +265 -0
  178. package/src/pages/integration-details/import-process/copy-tasks-row.tsx +77 -0
  179. package/src/pages/integration-details/import-process/import-confirm.tsx +61 -0
  180. package/src/pages/integration-details/import-process/import-drawer.tsx +48 -0
  181. package/src/pages/integration-details/import-process/import-process-reducer.ts +90 -0
  182. package/src/pages/integration-details/import-process/import-process.tsx +149 -0
  183. package/src/pages/integration-details/index.ts +1 -0
  184. package/src/pages/integration-details/integration-details.tsx +221 -0
  185. package/src/pages/integration-details/task-drawer/add-task.tsx +120 -0
  186. package/src/pages/integration-details/task-drawer/edit-task.tsx +175 -0
  187. package/src/pages/integration-details/task-drawer/task-drawer.tsx +139 -0
  188. package/src/pages/integration-details/task-drawer/task-reducer.ts +73 -0
  189. package/src/pages/integrations/integrations.tsx +11 -14
  190. package/src/pages/scheduler/scheduler.tsx +12 -24
  191. package/src/pages/scheduler/schedules-list/schedules-list-row.tsx +27 -37
  192. package/src/pages/scheduler/schedules-list/schedules-list-table.tsx +27 -42
  193. package/src/pages/scheduler/schedules-list/schedules-list.tsx +48 -21
  194. package/src/utils/date-functions.ts +69 -0
  195. package/src/utils/slugify.ts +3 -0
  196. package/tsconfig.json +12 -4
  197. package/src/hooks/use-timestamp.tsx +0 -25
  198. package/src/pages/integrations/integration-list/integration-list-row.tsx +0 -147
  199. package/src/pages/integrations/integration-list/integration-list-table.tsx +0 -78
  200. package/src/pages/scheduler/schedule-drawer/schedule-details-integrations.tsx +0 -227
  201. package/src/pages/scheduler/schedule-drawer/schedule-details-name.tsx +0 -77
  202. package/src/pages/scheduler/schedule-drawer/schedule-drawer-buttons.tsx +0 -72
  203. package/src/pages/scheduler/schedule-drawer/schedule-drawer-group.tsx +0 -103
  204. package/src/pages/scheduler/schedule-drawer/schedule-drawer.tsx +0 -101
  205. package/src/pages/scheduler/schedule-drawer/sortable-integration-row.tsx +0 -93
  206. /package/src/{pages/integrations/integration-list → components/integration-list/list}/index.ts +0 -0
  207. /package/src/{pages → components}/scheduler/schedule-drawer/edited/edited-types.ts +0 -0
  208. /package/src/{pages → components}/scheduler/schedule-drawer/edited/index.ts +0 -0
  209. /package/src/{pages → components}/scheduler/schedule-drawer/index.ts +0 -0
@@ -0,0 +1,54 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ const CONFIGURATION_IMPORT = gql`
4
+ mutation ConfigurationImport($config: ConfigImport!, $reRoutedFromMerge: Boolean) {
5
+ configurationImport(config: $config, reRoutedFromMerge: $reRoutedFromMerge) {
6
+ success
7
+ message
8
+ depotGroups {
9
+ created
10
+ updated
11
+ }
12
+ depots {
13
+ created
14
+ updated
15
+ }
16
+ entities {
17
+ created
18
+ updated
19
+ entityFields {
20
+ created
21
+ updated
22
+ }
23
+ }
24
+ endpoints {
25
+ created
26
+ updated
27
+ queues {
28
+ created
29
+ updated
30
+ }
31
+ subscriptions {
32
+ created
33
+ updated
34
+ }
35
+ }
36
+ processes {
37
+ created
38
+ updated
39
+ processTasks {
40
+ created
41
+ updated
42
+ }
43
+ processScheduleGroups {
44
+ created
45
+ updated
46
+ }
47
+ processSchedules {
48
+ created
49
+ updated
50
+ }
51
+ }
52
+ }
53
+ }
54
+ `;
@@ -0,0 +1,25 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ const _COPY_PROCESS = gql`
4
+ mutation CopyProcess($sourceId: ID!, $targetId: ID!, $processTaskIds: [ID]) {
5
+ copyProcess(sourceId: $sourceId, targetId: $targetId, processTaskIds: $processTaskIds) {
6
+ process {
7
+ id
8
+ processIcon
9
+ name
10
+ isScheduled
11
+ isTriggered
12
+ processTasks {
13
+ id
14
+ name
15
+ processTaskType {
16
+ id
17
+ name
18
+ }
19
+ sort
20
+ parallelProcessingGroup
21
+ }
22
+ }
23
+ }
24
+ }
25
+ `;
@@ -0,0 +1,9 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ export const ENDPOINT_FRAGMENT_SM = gql`
4
+ fragment e4EndpointFragmentSM on Endpoint {
5
+ id
6
+ name
7
+ templateConfig
8
+ }
9
+ `;
@@ -0,0 +1,22 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ import { ENDPOINT_FRAGMENT_SM } from "./fragments";
4
+
5
+ const GET_SOURCE_ENDPOINTS = gql`
6
+ ${ENDPOINT_FRAGMENT_SM}
7
+ query GetSourceEndpoints($input: SearchQueryInput) {
8
+ getSourceEndpoints(input: $input) {
9
+ ...e4EndpointFragmentSM
10
+ }
11
+ }
12
+ `;
13
+
14
+ const GET_DATA_DESCRIPTIONS = gql`
15
+ query GetDataDescriptions($input: SearchQueryInput) {
16
+ getDataDescriptions(input: $input) {
17
+ dataDescription
18
+ templateConfig
19
+ sharedCount
20
+ }
21
+ }
22
+ `;
@@ -11,3 +11,25 @@ export const PROCESS_FRAGMENT_SM = gql`
11
11
  processIcon
12
12
  }
13
13
  `;
14
+
15
+ export const PROCESS_FRAGMENT_TASKS = gql`
16
+ fragment e4ProcessFragmentTasks on Process {
17
+ id
18
+ name
19
+ code
20
+ processTasks {
21
+ id
22
+ name
23
+ code
24
+ sort
25
+ processTaskType {
26
+ id
27
+ name
28
+ }
29
+ endpoint {
30
+ id
31
+ name
32
+ }
33
+ }
34
+ }
35
+ `;
@@ -0,0 +1,73 @@
1
+ import { gql } from "graphql-request";
2
+ import { PROCESS_FRAGMENT_TASKS } from "./fragments";
3
+
4
+ const _GET_PROCESS_BY_ID = gql`
5
+ query GetProcessById($id: ID!) {
6
+ processById(id: $id) {
7
+ id
8
+ processScheduleGroup {
9
+ id
10
+ }
11
+ processTasks {
12
+ id
13
+ processTaskType {
14
+ id
15
+ name
16
+ code
17
+ created
18
+ modified
19
+ paramSchema
20
+ }
21
+ endpoint {
22
+ id
23
+ }
24
+ orchestrationType {
25
+ id
26
+ name
27
+ code
28
+ extendedFields
29
+ created
30
+ modified
31
+ }
32
+ name
33
+ code
34
+ params
35
+ preExecutionProcedure
36
+ executionProcedure
37
+ postExecutionProcedure
38
+ sort
39
+ parallelProcessingGroup
40
+ extendedFields
41
+ properties
42
+ maxEndpointMessageAttempts
43
+ created
44
+ modified
45
+ }
46
+ name
47
+ code
48
+ nextExecutionDate
49
+ previousExecutionDate
50
+ orchestratorInstanceId
51
+ maxConcurrentExecutions
52
+ allowParallelProcessExecution
53
+ allowParallelTaskExecution
54
+ sort
55
+ processIcon
56
+ isScheduled
57
+ isTriggered
58
+ extendedFields
59
+ created
60
+ modified
61
+ maxRetryAttempts
62
+ timeout
63
+ }
64
+ }
65
+ `;
66
+
67
+ const _GET_PROCESS_WITH_TASKS = gql`
68
+ query GetProcessByIdWithTasks($id: ID!) {
69
+ processById(id: $id) {
70
+ ...e4ProcessFragmentTasks
71
+ }
72
+ }
73
+ `;
@@ -25,3 +25,27 @@ const GET_PROCESS = gql`
25
25
  }
26
26
  }
27
27
  `;
28
+
29
+ const GET_NON_SCHEDULED_PROCESSES = gql`
30
+ query GetNonScheduledProcesses($input: FilterQueryInput) {
31
+ nonScheduledProcesses(input: $input) {
32
+ nodes {
33
+ id
34
+ name
35
+ processIcon
36
+ }
37
+ pageInfo {
38
+ resultsReturned
39
+ currentPage
40
+ hasNextPage
41
+ hasPreviousPage
42
+ skip
43
+ top
44
+ sort
45
+ sortDesc
46
+ search
47
+ }
48
+ recordCount
49
+ }
50
+ }
51
+ `;
@@ -0,0 +1,116 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ export const DEPOT_GROUP_EXPORT_FRAGMENT = gql`
4
+ fragment e4DepotGroupExportFragment on DepotGroupExport {
5
+ DepotGroupId
6
+ DepotGroup
7
+ }
8
+ `;
9
+
10
+ export const DEPOT_EXPORT_FRAGMENT = gql`
11
+ fragment e4DepotExportFragment on DepotExport {
12
+ DepotId
13
+ Depot
14
+ DepotGroup
15
+ }
16
+ `;
17
+
18
+ export const ENTITY_EXPORT_FRAGMENT = gql`
19
+ fragment e4EntityExportFragment on EntityExport {
20
+ EntityId
21
+ Entity
22
+ Name
23
+ EntityType
24
+ SourceEntityName
25
+ ExtendedFields
26
+ EntitySchema
27
+ EnableParse
28
+ EntityFields {
29
+ EntityFieldId
30
+ EntityField
31
+ FieldType
32
+ Length
33
+ Sort
34
+ IsKey
35
+ IsRequired
36
+ IsEditable
37
+ Path
38
+ }
39
+ }
40
+ `;
41
+
42
+ export const ENDPOINT_EXPORT_FRAGMENT = gql`
43
+ fragment e4EndpointExportFragment on EndpointExport {
44
+ EndpointId
45
+ Endpoint
46
+ Name
47
+ Depot
48
+ EndpointType
49
+ Entity
50
+ StagingTableSchema
51
+ StagingTableName
52
+ Metadata
53
+ Subscriptions {
54
+ EndpointSubscriptionId
55
+ EndpointQueueId
56
+ TargetEndpoint
57
+ SourceEndpoint
58
+ Transformations {
59
+ TransformationType
60
+ JSLT
61
+ Params
62
+ Sort
63
+ Enabled
64
+ }
65
+ }
66
+ TemplateConfig
67
+ ProcessTemplateId
68
+ }
69
+ `;
70
+
71
+ export const PROCESS_EXPORT_FRAGMENT = gql`
72
+ fragment e4ProcessExportFragment on ProcessExport {
73
+ ProcessId
74
+ Process
75
+ Name
76
+ OrchestratorInstanceId
77
+ MaxConcurrentExecutions
78
+ AllowParallelProcessExecution
79
+ AllowParallelTaskExecution
80
+ MaxRetryAttempts
81
+ ProcessScheduleGroup {
82
+ ProcessScheduleGroupId
83
+ IsDisabled
84
+ ProcessScheduleGroup
85
+ Name
86
+ ProcessScheduleId
87
+ ProcessSchedule
88
+ SchedulePeriod
89
+ Sort
90
+ IsMonday
91
+ IsTuesday
92
+ IsWednesday
93
+ IsThursday
94
+ IsFriday
95
+ IsSaturday
96
+ IsSunday
97
+ StartDate
98
+ EndDate
99
+ }
100
+ ProcessTasks {
101
+ ProcessTaskId
102
+ ProcessTask
103
+ Name
104
+ Endpoint
105
+ ProcessTaskType
106
+ OrchestrationType
107
+ PreExecutionProcedure
108
+ PostExecutionProcedure
109
+ Sort
110
+ Params
111
+ ParallelProcessingGroup
112
+ }
113
+ ProcessIcon
114
+ IsTriggered
115
+ }
116
+ `;
@@ -0,0 +1,35 @@
1
+ import { gql } from "graphql-request";
2
+ import {
3
+ DEPOT_EXPORT_FRAGMENT,
4
+ DEPOT_GROUP_EXPORT_FRAGMENT,
5
+ ENDPOINT_EXPORT_FRAGMENT,
6
+ ENTITY_EXPORT_FRAGMENT,
7
+ PROCESS_EXPORT_FRAGMENT,
8
+ } from "./fragments";
9
+
10
+ const _ConfigurationMerge = gql`
11
+ ${DEPOT_GROUP_EXPORT_FRAGMENT}
12
+ ${DEPOT_EXPORT_FRAGMENT}
13
+ ${ENTITY_EXPORT_FRAGMENT}
14
+ ${ENDPOINT_EXPORT_FRAGMENT}
15
+ ${PROCESS_EXPORT_FRAGMENT}
16
+ mutation ConfigurationMerge($input: ProcessConfigMerge) {
17
+ configurationMerge(input: $input) {
18
+ DepotGroups {
19
+ ...e4DepotGroupExportFragment
20
+ }
21
+ Depots {
22
+ ...e4DepotExportFragment
23
+ }
24
+ Entities {
25
+ ...e4EntityExportFragment
26
+ }
27
+ Endpoints {
28
+ ...e4EndpointExportFragment
29
+ }
30
+ Processes {
31
+ ...e4ProcessExportFragment
32
+ }
33
+ }
34
+ }
35
+ `;
@@ -14,3 +14,15 @@ export const PROCESS_EXECUTION_FRAGMENT_SM = gql`
14
14
  modified
15
15
  }
16
16
  `;
17
+
18
+ export const PROCESS_EXECUTION_FRAGMENT_XS = gql`
19
+ fragment e4ProcessExecutionFragmentXS on ProcessExecution {
20
+ name
21
+ id
22
+ startDate
23
+ endDate
24
+ executionStatus {
25
+ id
26
+ }
27
+ }
28
+ `;
@@ -1,6 +1,9 @@
1
1
  import { gql } from "graphql-request";
2
2
 
3
- import { PROCESS_EXECUTION_FRAGMENT_SM } from "./fragments";
3
+ import {
4
+ PROCESS_EXECUTION_FRAGMENT_SM,
5
+ PROCESS_EXECUTION_FRAGMENT_XS,
6
+ } from "./fragments";
4
7
 
5
8
  const GET_PROCESS_EXECUTIONS = gql`
6
9
  ${PROCESS_EXECUTION_FRAGMENT_SM}
@@ -29,3 +32,29 @@ const GET_PROCESS_EXECUTIONS = gql`
29
32
  }
30
33
  }
31
34
  `;
35
+
36
+ const GET_PROCESS_EXECUTIONS_BY_PROCESS = gql`
37
+ ${PROCESS_EXECUTION_FRAGMENT_XS}
38
+ query GetProcessExecutionsByProcess(
39
+ $processId: ID!
40
+ $processExecutionId: ID
41
+ $input: ProcessExecutionInput
42
+ ) {
43
+ processExecutionsByProcess(processId: $processId, processExecutionId: $processExecutionId, input: $input) {
44
+ nodes {
45
+ ...e4ProcessExecutionFragmentXS
46
+ }
47
+ pageInfo {
48
+ resultsReturned
49
+ currentPage
50
+ hasNextPage
51
+ hasPreviousPage
52
+ skip
53
+ top
54
+ sort
55
+ sortDesc
56
+ }
57
+ recordCount
58
+ }
59
+ }
60
+ `;
@@ -0,0 +1,96 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ export const PROCESS_EXECUTION_DETAILS_FRAGMENT_XS = gql`
4
+ fragment e4ProcessExecutionDetailsFragmentXS on ProcessExecutionDetails {
5
+ id
6
+ name
7
+ startDate
8
+ endDate
9
+ executionStatus {
10
+ id
11
+ }
12
+ }
13
+ `;
14
+
15
+ export const PROCESS_EXECUTION_DETAILS_FRAGMENT_MD = gql`
16
+ fragment e4ProcessExecutionDetailsFragment on ProcessExecutionDetails {
17
+ id
18
+ name
19
+ startDate
20
+ endDate
21
+ executionStatus {
22
+ id
23
+ }
24
+ processTaskExecutions {
25
+ id
26
+ name
27
+ code
28
+ sort
29
+ startDate
30
+ endDate
31
+ params
32
+ parallelProcessingGroup
33
+ executionStatus {
34
+ id
35
+ }
36
+ executionStatusMessage
37
+ endpoint {
38
+ id
39
+ name
40
+ }
41
+ processTaskType {
42
+ id
43
+ name
44
+ }
45
+ }
46
+ }
47
+ `;
48
+
49
+ export const PROCESS_EXECUTION_DETAILS_FRAGMENT_LG = gql`
50
+ fragment e4ProcessExecutionDetailsFragmentLG on ProcessExecutionDetails {
51
+ id
52
+ name
53
+ startDate
54
+ endDate
55
+ executionStatus {
56
+ id
57
+ }
58
+ processTaskExecutions {
59
+ id
60
+ processTask {
61
+ id
62
+ }
63
+ processTaskType {
64
+ id
65
+ name
66
+ }
67
+ endpoint {
68
+ id
69
+ name
70
+ }
71
+ orchestrationType {
72
+ id
73
+ }
74
+ executionStatus {
75
+ id
76
+ }
77
+ name
78
+ code
79
+ params
80
+ preExecutionProcedure
81
+ postExecutionProcedure
82
+ sort
83
+ parallelProcessingGroup
84
+ executionStatusMessage
85
+ startDate
86
+ endDate
87
+ recordCount
88
+ messageSize
89
+ extendedFields
90
+ created
91
+ modified
92
+ maxEndpointMessageAttempts
93
+ copyFromId
94
+ }
95
+ }
96
+ `;
@@ -0,0 +1,12 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ import { PROCESS_EXECUTION_DETAILS_FRAGMENT_MD } from "./fragments";
4
+
5
+ const _GET_PROCESS_EXECUTION_DETAILS = gql`
6
+ ${PROCESS_EXECUTION_DETAILS_FRAGMENT_MD}
7
+ query GetProcessExecutionDetails($id: ID!) {
8
+ processExecutionDetails(id: $id) {
9
+ ...e4ProcessExecutionDetailsFragmentLG
10
+ }
11
+ }
12
+ `;
@@ -10,3 +10,46 @@ const GetProcessScheduleGroupDetails = gql`
10
10
  }
11
11
  }
12
12
  `;
13
+
14
+ const UpdateProcessSchedule = gql`
15
+ ${PROCESS_SCHEDULE_GROUP_DETAILS_FRAGMENT_MD}
16
+ mutation UpdateProcessScheduleGroupDetails($input: ProcessScheduleGroupDetailsUpdate!) {
17
+ updateProcessScheduleGroupDetails(input: $input) {
18
+ id
19
+ name
20
+ code
21
+ startDate
22
+ interval
23
+ intervalUnitId
24
+ isMonday
25
+ isTuesday
26
+ isWednesday
27
+ isThursday
28
+ isFriday
29
+ isSaturday
30
+ isSunday
31
+ isDisabled
32
+ }
33
+ }
34
+ `;
35
+
36
+ const CreateProcessSchedule = gql`
37
+ mutation CreateProcessScheduleGroupDetails($input: ProcessScheduleGroupDetailsCreate!) {
38
+ createProcessScheduleGroupDetails(input: $input) {
39
+ id
40
+ name
41
+ code
42
+ startDate
43
+ isMonday
44
+ isTuesday
45
+ isWednesday
46
+ isThursday
47
+ isFriday
48
+ isSaturday
49
+ isSunday
50
+ isDisabled
51
+ created
52
+ modified
53
+ }
54
+ }
55
+ `;