@evenicanpm/admin-integrate 1.2.2 → 1.4.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 (215) 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 +30 -0
  5. package/documents/Process/fragments.ts +22 -0
  6. package/documents/Process/get-process-details.ts +72 -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/ProcessExport/read.ts +108 -0
  15. package/documents/ProcessScheduleGroup/read.ts +43 -0
  16. package/documents/ProcessTask/fragments.ts +288 -0
  17. package/documents/ProcessTask/read.ts +12 -0
  18. package/documents/ProcessTemplate/fragments.ts +74 -0
  19. package/documents/ProcessTemplate/list.ts +67 -0
  20. package/documents/ProcessTemplate/read.ts +12 -0
  21. package/documents/RunProcess/run.ts +11 -0
  22. package/package.json +4 -3
  23. package/src/api/Integrations/queries/get-process.query.ts +12 -12
  24. package/src/api/Integrations/queries/get-process.server.ts +7 -2
  25. package/src/api/configuration/queries/configuration-export.query.ts +48 -0
  26. package/src/api/configuration/queries/configuration-export.server.ts +9 -0
  27. package/src/api/configuration/queries/index.ts +1 -0
  28. package/src/api/dashboard/queries/get-process-executions.query.ts +6 -3
  29. package/src/api/dashboard/queries/get-process-executions.server.ts +1 -1
  30. package/src/api/execution-details/queries/get-process-execution-details.query.ts +46 -0
  31. package/src/api/execution-details/queries/get-process-execution-details.server.ts +11 -0
  32. package/src/api/execution-details/queries/get-process-executions-by-process.query.ts +48 -0
  33. package/src/api/execution-details/queries/get-process-executions-by-process.server.ts +11 -0
  34. package/src/api/execution-details/queries/index.ts +2 -0
  35. package/src/api/process/mutations/copy-process.mutation.ts +45 -0
  36. package/src/api/process/mutations/copy-process.server.ts +14 -0
  37. package/src/api/process/mutations/index.ts +2 -0
  38. package/src/api/process/mutations/run-process.mutation.ts +41 -0
  39. package/src/api/process/mutations/run-process.server.ts +14 -0
  40. package/src/api/process/queries/get-process-by-id.query.ts +85 -0
  41. package/src/api/process/queries/get-process-by-id.server.ts +20 -0
  42. package/src/api/process/queries/index.ts +4 -0
  43. package/src/api/process-config/mutation/index.ts +2 -0
  44. package/src/api/process-config/mutation/process-config-import.mutation.ts +42 -0
  45. package/src/api/process-config/mutation/process-config-import.server.ts +14 -0
  46. package/src/api/process-config/mutation/process-config-merge.mutation.ts +33 -0
  47. package/src/api/process-config/mutation/process-config-merge.server.ts +14 -0
  48. package/src/api/process-task/queries/get-process-task-by-id.query.ts +46 -0
  49. package/src/api/process-task/queries/get-process-task-by-id.server.ts +9 -0
  50. package/src/api/process-task/queries/index.ts +1 -0
  51. package/src/api/scheduler/mutation/create-process-schedule-group-details.mutation.ts +47 -0
  52. package/src/api/scheduler/mutation/create-process-schedule-group-details.server.ts +14 -0
  53. package/src/api/scheduler/mutation/index.ts +2 -0
  54. package/src/api/scheduler/mutation/update-process-schedule-group-details.mutation.ts +47 -0
  55. package/src/api/scheduler/mutation/update-process-schedule-group-details.server.ts +14 -0
  56. package/src/api/scheduler/queries/get-non-scheduled-processes.query.ts +48 -0
  57. package/src/api/scheduler/queries/get-non-scheduled-processes.server.ts +11 -0
  58. package/src/api/scheduler/queries/get-process-schedule-group-details.query.ts +6 -3
  59. package/src/api/scheduler/queries/get-process-schedule-group-details.server.ts +3 -3
  60. package/src/api/scheduler/queries/get-process-schedule.query.ts +6 -3
  61. package/src/api/scheduler/queries/get-process-schedule.server.ts +3 -3
  62. package/src/api/scheduler/queries/get-scheduled-processes.query.ts +6 -3
  63. package/src/api/scheduler/queries/get-scheduled-processes.server.ts +1 -1
  64. package/src/api/scheduler/queries/index.ts +3 -2
  65. package/src/api/templates/queries/get-process-template-groups.query.ts +48 -0
  66. package/src/api/templates/queries/get-process-template-groups.server.ts +11 -0
  67. package/src/api/templates/queries/get-process-template-records.query.ts +48 -0
  68. package/src/api/templates/queries/get-process-template-records.server.ts +11 -0
  69. package/src/api/templates/queries/get-process-template.query.ts +48 -0
  70. package/src/api/templates/queries/get-process-template.server.ts +9 -0
  71. package/src/api/templates/queries/get-process-templates.query.ts +45 -0
  72. package/src/api/templates/queries/get-process-templates.server.ts +9 -0
  73. package/src/api/templates/queries/index.ts +5 -0
  74. package/src/api/templates/queries/template-input-search.query.ts +39 -0
  75. package/src/api/templates/queries/template-input-search.server.ts +42 -0
  76. package/src/api/templates/queries/types.ts +34 -0
  77. package/src/components/breadcrumbs/breadcrumbs.tsx +33 -6
  78. package/src/components/button/outlined-icon-button.tsx +2 -2
  79. package/src/components/core/date-time-popover.tsx +12 -5
  80. package/src/components/core/drawer-buttons.tsx +52 -0
  81. package/src/components/core/edited-typography.tsx +2 -2
  82. package/src/components/core/index.ts +4 -2
  83. package/src/components/core/loading.tsx +1 -1
  84. package/src/components/core/status-tag.tsx +97 -0
  85. package/src/components/core/title-edit.tsx +31 -22
  86. package/src/components/dashboard-list/dashboard-list-row.tsx +22 -29
  87. package/src/components/dashboard-list/dashboard-list.tsx +20 -16
  88. package/src/components/data-table/table-header.tsx +6 -8
  89. package/src/components/data-table/table-pagination.tsx +1 -1
  90. package/src/components/data-table/table-row.tsx +1 -1
  91. package/src/components/data-table/table-skeleton.tsx +10 -5
  92. package/src/components/execution/execution-filter.ts +1 -1
  93. package/src/components/execution/execution-status-icon.tsx +7 -7
  94. package/src/components/execution/execution-tag.tsx +12 -77
  95. package/src/components/execution/index.ts +1 -1
  96. package/src/components/execution-history-drawer/execution-history-drawer.tsx +202 -0
  97. package/src/components/execution-history-drawer/executions-card.tsx +85 -0
  98. package/src/components/execution-history-drawer/index.ts +1 -0
  99. package/src/components/footer/footer.tsx +10 -6
  100. package/src/components/header/dashboard-list-header.tsx +12 -7
  101. package/src/components/header/execution-details-header.tsx +35 -26
  102. package/src/components/header/header.tsx +10 -3
  103. package/src/components/header/index.ts +1 -1
  104. package/src/components/header/integration-details-header.tsx +108 -45
  105. package/src/components/integration-list/index.ts +2 -1
  106. package/src/components/integration-list/integration-filter.ts +1 -1
  107. package/src/components/integration-list/integration-status-icon.tsx +7 -8
  108. package/src/components/integration-list/integration-tag.tsx +6 -50
  109. package/src/components/integration-list/list/integration-list-row.tsx +161 -0
  110. package/src/components/integration-list/list/integration-list-table.tsx +62 -0
  111. package/src/{pages/integrations/integration-list → components/integration-list/list}/integration-list.tsx +47 -51
  112. package/src/components/integration-view/animated-svg.tsx +31 -0
  113. package/src/components/integration-view/edges/default-edge.tsx +2 -6
  114. package/src/components/integration-view/elk-layout-options.ts +2 -2
  115. package/src/components/integration-view/elk-types.ts +35 -6
  116. package/src/components/integration-view/flow-types.tsx +12 -0
  117. package/src/components/integration-view/integration-view.tsx +562 -56
  118. package/src/components/integration-view/nodes/add-node.tsx +20 -0
  119. package/src/components/integration-view/nodes/empty-node.tsx +65 -0
  120. package/src/components/integration-view/nodes/entry-node.tsx +98 -4
  121. package/src/components/integration-view/nodes/execution-entry-node.tsx +107 -0
  122. package/src/components/integration-view/nodes/execution-task-node.tsx +88 -0
  123. package/src/components/integration-view/nodes/group-node.tsx +33 -13
  124. package/src/components/integration-view/nodes/row-node.tsx +19 -0
  125. package/src/components/integration-view/nodes/task-node.tsx +50 -16
  126. package/src/components/integration-view/task-icon.tsx +193 -0
  127. package/src/components/integration-view/temp-data/initialElements.tsx +34 -32
  128. package/src/components/integration-view/types.ts +2 -2
  129. package/src/components/integration-view/utils/mapping.ts +404 -0
  130. package/src/components/layouts/main-layout.tsx +3 -4
  131. package/src/components/layouts/root-container.tsx +5 -11
  132. package/src/components/link-cards/link-card.tsx +15 -4
  133. package/src/components/link-cards/styles.ts +1 -1
  134. package/src/components/list-filter/date-filter.tsx +7 -4
  135. package/src/components/list-filter/date-range-filter.tsx +15 -7
  136. package/src/components/list-filter/index.ts +1 -1
  137. package/src/components/list-filter/list-filter.tsx +31 -26
  138. package/src/components/list-filter/multi-select-filter.tsx +11 -10
  139. package/src/components/list-filter/select-filter.tsx +23 -12
  140. package/src/components/scheduler/day-selector.tsx +29 -15
  141. package/src/components/scheduler/day-tag.tsx +14 -51
  142. package/src/components/scheduler/index.ts +2 -1
  143. package/src/components/scheduler/schedule-drawer/details-reducer.ts +217 -0
  144. package/src/components/scheduler/schedule-drawer/schedule-details-integrations.tsx +501 -0
  145. package/src/{pages → components}/scheduler/schedule-drawer/schedule-details-main.tsx +137 -100
  146. package/src/components/scheduler/schedule-drawer/schedule-details-name.tsx +94 -0
  147. package/src/{pages → components}/scheduler/schedule-drawer/schedule-details-skeleton.tsx +1 -2
  148. package/src/{pages → components}/scheduler/schedule-drawer/schedule-details.tsx +10 -14
  149. package/src/components/scheduler/schedule-drawer/schedule-drawer-group.tsx +214 -0
  150. package/src/{pages → components}/scheduler/schedule-drawer/schedule-drawer-legacy.tsx +7 -26
  151. package/src/components/scheduler/schedule-drawer/schedule-drawer.tsx +116 -0
  152. package/src/components/scheduler/schedule-drawer/sortable-integration-row.tsx +130 -0
  153. package/src/components/scheduler/schedule-filter.ts +1 -1
  154. package/src/components/scheduler/schedule-icon.tsx +5 -6
  155. package/src/components/scheduler/schedule-integration-icon.tsx +31 -0
  156. package/src/components/templates/index.ts +1 -0
  157. package/src/components/templates/inputs/index.tsx +1392 -0
  158. package/src/components/templates/template-filter.ts +5 -0
  159. package/src/components/templates/templates-list/index.ts +1 -0
  160. package/src/components/templates/templates-list/templates-list-row.tsx +55 -0
  161. package/src/components/templates/templates-list/templates-list-table.tsx +58 -0
  162. package/src/components/templates/templates-list/templates-list.tsx +253 -0
  163. package/src/components/templates/types.tsx +76 -0
  164. package/src/components/templates/wizard.tsx +737 -0
  165. package/src/hooks/use-breadcrumbs.ts +1 -1
  166. package/src/hooks/use-recurrence.tsx +1 -2
  167. package/src/pages/dashboard/dashboard-link-cards.tsx +8 -11
  168. package/src/pages/dashboard/dashboard-list-sections.tsx +8 -10
  169. package/src/pages/dashboard/dashboard.tsx +1 -2
  170. package/src/pages/execution-details/execution-details.tsx +212 -14
  171. package/src/pages/execution-details/task-execution-details.tsx +160 -0
  172. package/src/pages/execution-details/task-execution-drawer.tsx +54 -0
  173. package/src/pages/executions/executions-list/executions-list-row.tsx +21 -27
  174. package/src/pages/executions/executions-list/executions-list-table.tsx +29 -36
  175. package/src/pages/executions/executions-list/executions-list.tsx +24 -18
  176. package/src/pages/executions/executions.tsx +11 -15
  177. package/src/pages/integration-create/index.ts +1 -0
  178. package/src/pages/integration-create/integration-create.tsx +216 -0
  179. package/src/pages/integration-create/pre-creation-step.tsx +84 -0
  180. package/src/pages/integration-create/select-step.tsx +105 -0
  181. package/src/pages/integration-create/template-list-step.tsx +77 -0
  182. package/src/pages/integration-create/wizard-step.tsx +51 -0
  183. package/src/pages/integration-details/import-process/copy-tasks-list.tsx +265 -0
  184. package/src/pages/integration-details/import-process/copy-tasks-row.tsx +77 -0
  185. package/src/pages/integration-details/import-process/import-confirm.tsx +61 -0
  186. package/src/pages/integration-details/import-process/import-drawer.tsx +48 -0
  187. package/src/pages/integration-details/import-process/import-process-reducer.ts +90 -0
  188. package/src/pages/integration-details/import-process/import-process.tsx +149 -0
  189. package/src/pages/integration-details/index.ts +1 -0
  190. package/src/pages/integration-details/integration-details.tsx +468 -0
  191. package/src/pages/integration-details/task-drawer/add-task.tsx +172 -0
  192. package/src/pages/integration-details/task-drawer/edit-task.tsx +161 -0
  193. package/src/pages/integration-details/task-drawer/task-drawer.tsx +157 -0
  194. package/src/pages/integration-details/task-drawer/task-reducer.ts +103 -0
  195. package/src/pages/integrations/integrations.tsx +11 -14
  196. package/src/pages/scheduler/scheduler.tsx +12 -24
  197. package/src/pages/scheduler/schedules-list/schedules-list-row.tsx +27 -37
  198. package/src/pages/scheduler/schedules-list/schedules-list-table.tsx +28 -43
  199. package/src/pages/scheduler/schedules-list/schedules-list.tsx +48 -21
  200. package/src/utils/date-functions.ts +69 -0
  201. package/src/utils/slugify.ts +3 -0
  202. package/tsconfig.json +12 -4
  203. package/src/hooks/use-timestamp.tsx +0 -25
  204. package/src/pages/integrations/integration-list/integration-list-row.tsx +0 -147
  205. package/src/pages/integrations/integration-list/integration-list-table.tsx +0 -78
  206. package/src/pages/scheduler/schedule-drawer/schedule-details-integrations.tsx +0 -227
  207. package/src/pages/scheduler/schedule-drawer/schedule-details-name.tsx +0 -77
  208. package/src/pages/scheduler/schedule-drawer/schedule-drawer-buttons.tsx +0 -72
  209. package/src/pages/scheduler/schedule-drawer/schedule-drawer-group.tsx +0 -103
  210. package/src/pages/scheduler/schedule-drawer/schedule-drawer.tsx +0 -101
  211. package/src/pages/scheduler/schedule-drawer/sortable-integration-row.tsx +0 -93
  212. /package/src/{pages/integrations/integration-list → components/integration-list/list}/index.ts +0 -0
  213. /package/src/{pages → components}/scheduler/schedule-drawer/edited/edited-types.ts +0 -0
  214. /package/src/{pages → components}/scheduler/schedule-drawer/edited/index.ts +0 -0
  215. /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,30 @@
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
+ `;
23
+
24
+ const CHECK_UNIQUE_IDENTIFIER = gql`
25
+ query CheckUniqueIdentifier($uniqueIdentifier: String) {
26
+ checkUniqueIdentifier(uniqueIdentifier: $uniqueIdentifier) {
27
+ isUnique
28
+ }
29
+ }
30
+ `;
@@ -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,72 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ const _GET_PROCESS_BY_ID = gql`
4
+ query GetProcessById($id: ID!) {
5
+ processById(id: $id) {
6
+ id
7
+ processScheduleGroup {
8
+ id
9
+ }
10
+ processTasks {
11
+ id
12
+ processTaskType {
13
+ id
14
+ name
15
+ code
16
+ created
17
+ modified
18
+ paramSchema
19
+ }
20
+ endpoint {
21
+ id
22
+ }
23
+ orchestrationType {
24
+ id
25
+ name
26
+ code
27
+ extendedFields
28
+ created
29
+ modified
30
+ }
31
+ name
32
+ code
33
+ params
34
+ preExecutionProcedure
35
+ executionProcedure
36
+ postExecutionProcedure
37
+ sort
38
+ parallelProcessingGroup
39
+ extendedFields
40
+ properties
41
+ maxEndpointMessageAttempts
42
+ created
43
+ modified
44
+ }
45
+ name
46
+ code
47
+ nextExecutionDate
48
+ previousExecutionDate
49
+ orchestratorInstanceId
50
+ maxConcurrentExecutions
51
+ allowParallelProcessExecution
52
+ allowParallelTaskExecution
53
+ sort
54
+ processIcon
55
+ isScheduled
56
+ isTriggered
57
+ extendedFields
58
+ created
59
+ modified
60
+ maxRetryAttempts
61
+ timeout
62
+ }
63
+ }
64
+ `;
65
+
66
+ const _GET_PROCESS_WITH_TASKS = gql`
67
+ query GetProcessByIdWithTasks($id: ID!) {
68
+ processById(id: $id) {
69
+ ...e4ProcessFragmentTasks
70
+ }
71
+ }
72
+ `;
@@ -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
+ Queues {
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
+ `;
@@ -0,0 +1,108 @@
1
+ import { gql } from "graphql-request";
2
+
3
+ const GET_CONFIGURATION_EXPORT = gql`
4
+ query ConfigurationExport($processId: ID, $includeIds: Boolean, $useSourceEndpoint: Boolean) {
5
+ configurationExport(processId: $processId, includeIds: $includeIds, useSourceEndpoint: $useSourceEndpoint) {
6
+ DepotGroups {
7
+ DepotGroupId
8
+ DepotGroup
9
+ }
10
+ Depots {
11
+ DepotId
12
+ Depot
13
+ DepotGroup
14
+ }
15
+ Entities {
16
+ EntityId
17
+ Entity
18
+ Name
19
+ EntityType
20
+ SourceEntityName
21
+ ExtendedFields
22
+ EntitySchema
23
+ EnableParse
24
+ EntityFields {
25
+ EntityFieldId
26
+ EntityField
27
+ FieldType
28
+ Length
29
+ Sort
30
+ IsKey
31
+ IsRequired
32
+ IsEditable
33
+ Path
34
+ }
35
+ }
36
+ Endpoints {
37
+ EndpointId
38
+ Endpoint
39
+ Name
40
+ Depot
41
+ EndpointType
42
+ Entity
43
+ StagingTableSchema
44
+ StagingTableName
45
+ Metadata
46
+ Queues {
47
+ EndpointSubscriptionId
48
+ EndpointQueueId
49
+ TargetEndpoint
50
+ SourceEndpoint
51
+ Transformations {
52
+ TransformationType
53
+ JSLT
54
+ Params
55
+ Sort
56
+ Enabled
57
+ }
58
+ }
59
+ TemplateConfig
60
+ ProcessTemplateId
61
+ }
62
+ Processes {
63
+ ProcessId
64
+ Process
65
+ Name
66
+ OrchestratorInstanceId
67
+ MaxConcurrentExecutions
68
+ AllowParallelProcessExecution
69
+ AllowParallelTaskExecution
70
+ MaxRetryAttempts
71
+ ProcessScheduleGroup {
72
+ ProcessScheduleGroupId
73
+ IsDisabled
74
+ ProcessScheduleGroup
75
+ Name
76
+ ProcessScheduleId
77
+ ProcessSchedule
78
+ SchedulePeriod
79
+ Sort
80
+ IsMonday
81
+ IsTuesday
82
+ IsWednesday
83
+ IsThursday
84
+ IsFriday
85
+ IsSaturday
86
+ IsSunday
87
+ StartDate
88
+ EndDate
89
+ }
90
+ ProcessIcon
91
+ IsTriggered
92
+ ProcessTasks {
93
+ ProcessTaskId
94
+ ProcessTask
95
+ Name
96
+ Endpoint
97
+ ProcessTaskType
98
+ OrchestrationType
99
+ PreExecutionProcedure
100
+ PostExecutionProcedure
101
+ Sort
102
+ Params
103
+ ParallelProcessingGroup
104
+ }
105
+ }
106
+ }
107
+ }
108
+ `;