@@ -4,36 +4,66 @@ export interface Resource {
4
4
fields : Map < string , Map < string , string > > ;
5
5
}
6
6
7
- interface RestServerConfig {
7
+ export interface RestConfig {
8
8
template : string ;
9
+ framework : string ;
10
+ server : {
11
+ port : string ;
12
+ sqlDb : string ;
13
+ resources ?: Resource [ ] ;
14
+ openApiFileYamlContent ?: string ;
15
+ } ;
16
+ clients : RestClient [ ] ;
17
+ }
18
+
19
+ export interface RestClient {
20
+ sourceNodeName : string ;
21
+ sourceNodeId : string ;
9
22
port : string ;
10
- framework ?: string ;
11
- sqlDb : string ;
12
- resources ?: Resource [ ] ;
13
- openApiFileYamlContent ?: string ;
14
23
}
15
24
16
- export interface GrpcServerConfig {
25
+ export interface GrpcConfig {
26
+ template : string ;
27
+ framework : string ;
28
+ server ?: {
29
+ port ?: string ;
30
+ sqlDb ?: string ;
31
+ resources ?: Resource [ ] ;
32
+ protoFileContent ?: string ;
33
+ } ;
34
+ clients ?: GrpcClient [ ] ;
35
+ }
36
+
37
+ export interface GrpcClient {
38
+ sourceNodeName : string ;
39
+ sourceNodeId : string ;
17
40
port : string ;
18
- framework ?: string ;
19
- resources ?: Resource [ ] ;
20
- protoFileContent ?: string ;
21
41
}
22
42
23
- export interface WsServerConfig {
43
+ export interface WsConfig {
44
+ template : string ;
45
+ framework : string ;
46
+ server ?: {
47
+ port ?: string ;
48
+ resources ?: Resource [ ] ;
49
+ } ;
50
+ clients ?: WsClient [ ] ;
51
+ }
52
+
53
+ export interface WsClient {
54
+ sourceNodeName : string ;
55
+ sourceNodeId : string ;
24
56
port : string ;
25
- framework ?: string ;
26
- resources ?: Resource [ ] ;
27
57
}
28
58
29
59
export interface NodeConsumerData {
30
60
name : string ;
31
- restServerConfig : RestServerConfig ;
32
- grpcServerConfig : GrpcServerConfig ;
33
- wsServerConfig : WsServerConfig ;
61
+ restConfig ?: RestConfig ;
62
+ grpcConfig ?: GrpcConfig ;
63
+ wsConfig ?: WsConfig ;
34
64
language : string ;
35
- metadata ? : Map < string , string > ;
36
- annotations ? : Map < string , string > ;
65
+ metadata : Map < string , string > ;
66
+ annotations : Map < string , string > ;
37
67
}
38
68
39
69
export interface CompageNode {
@@ -42,24 +72,8 @@ export interface CompageNode {
42
72
consumerData : NodeConsumerData ;
43
73
}
44
74
45
- export interface RestClientConfig {
46
- port : string ;
47
- }
48
-
49
- export interface GrpcClientConfig {
50
- port : string ;
51
- }
52
-
53
- export interface WsClientConfig {
54
- port : string ;
55
- }
56
-
57
75
export interface EdgeConsumerData {
58
76
name : string ;
59
- externalNode : string ;
60
- restClientConfig : RestClientConfig ;
61
- grpcClientConfig : GrpcClientConfig ;
62
- wsClientConfig : WsClientConfig ;
63
77
metadata ?: Map < string , string > ;
64
78
annotations ?: Map < string , string > ;
65
79
}
0 commit comments