1
- import process from ' process' ;
1
+ import process from " process" ;
2
2
3
3
import {
4
4
Environment ,
5
5
OrchestratorConfig ,
6
- } from ' @orchestrator-ui/orchestrator-ui-components' ;
6
+ } from " @orchestrator-ui/orchestrator-ui-components" ;
7
7
8
8
export const DEFAULT_GRAPHQL_CORE_ENDPOINT =
9
- ' http://localhost:8080/api/graphql' ;
10
- export const DEFAULT_ORCHESTRATOR_API_BASE_URL = ' http://localhost:8080/api' ;
11
- export const DEFAULT_ORCHESTRATOR_WEBSOCKET_URL = ' ws://localhost:8080' ;
9
+ " http://localhost:8080/api/graphql" ;
10
+ export const DEFAULT_ORCHESTRATOR_API_BASE_URL = " http://localhost:8080/api" ;
11
+ export const DEFAULT_ORCHESTRATOR_WEBSOCKET_URL = " ws://localhost:8080" ;
12
12
13
- export const ENGINE_STATUS_ENDPOINT = '/settings/status' ;
14
- export const PROCESSES_ENDPOINT = '/processes' ;
13
+ export const ENGINE_STATUS_ENDPOINT = "/settings/status" ;
14
+ export const PROCESS_STATUS_COUNTS_ENDPOINT = "/processes/status-counts" ;
15
+ export const PROCESSES_ENDPOINT = "/processes" ;
16
+ export const SUBSCRIPTION_ACTIONS_ENDPOINT = "/subscriptions/workflows" ;
15
17
export const SUBSCRIPTION_PROCESSES_ENDPOINT =
16
- ' /processes/process-subscriptions-by-subscription-id' ;
17
- export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = ' http://localhost:8080' ;
18
+ " /processes/process-subscriptions-by-subscription-id" ;
19
+ export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = " http://localhost:8080" ;
18
20
19
21
export const getInitialOrchestratorConfig = ( ) : OrchestratorConfig => {
20
22
const orchestratorGraphqlBaseUrl =
@@ -30,24 +32,20 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
30
32
31
33
return {
32
34
orchestratorApiBaseUrl,
33
- engineStatusEndpoint : orchestratorApiBaseUrl + ENGINE_STATUS_ENDPOINT ,
34
35
graphqlEndpointCore : orchestratorGraphqlBaseUrl ,
35
- processesEndpoint : orchestratorApiBaseUrl + PROCESSES_ENDPOINT ,
36
36
environmentName :
37
37
process . env . ENVIRONMENT_NAME ?? Environment . DEVELOPMENT ,
38
- subscriptionProcessesEndpoint :
39
- orchestratorApiBaseUrl + SUBSCRIPTION_PROCESSES_ENDPOINT ,
40
38
orchestratorWebsocketUrl :
41
39
process . env . ORCHESTRATOR_WEBSOCKET_URL ||
42
40
DEFAULT_ORCHESTRATOR_WEBSOCKET_URL ,
43
- authActive : process . env . AUTH_ACTIVE ?. toLowerCase ( ) != ' false' ,
44
- useWebSockets : process . env . USE_WEB_SOCKETS ?. toLowerCase ( ) === ' true' ,
45
- useThemeToggle : process . env . USE_THEME_TOGGLE ?. toLowerCase ( ) === ' true' ,
41
+ authActive : process . env . AUTH_ACTIVE ?. toLowerCase ( ) != " false" ,
42
+ useWebSockets : process . env . USE_WEB_SOCKETS ?. toLowerCase ( ) === " true" ,
43
+ useThemeToggle : process . env . USE_THEME_TOGGLE ?. toLowerCase ( ) === " true" ,
46
44
workflowInformationLinkUrl :
47
45
process . env . WORKFLOW_INFORMATION_LINK_URL ??
48
46
DEFAULT_WORKFLOW_INFORMATION_LINK_URL ,
49
47
showWorkflowInformationLink :
50
48
process . env . SHOW_WORKFLOW_INFORMATION_LINK ?. toLowerCase ( ) ===
51
- ' true' ,
49
+ " true" ,
52
50
} ;
53
51
} ;
0 commit comments