Skip to content

Commit 4bc693e

Browse files
authored
Merge pull request #292 from code0-tech/feat/#291
Differentiate between FlowTypes and RuntimeFlowTypes
2 parents fc2715c + 17b1160 commit 4bc693e

4 files changed

Lines changed: 54 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ services that Sagittarius must implement as a server.
7171
├── errors - Defines error object
7272
├── execution_result - Defines execution result of a flow
7373
├── flow - Defines the flow to execute
74-
├── flow_type - Defines types for flows
74+
├── flow_type - Defines types for flows based upon runtime flow types
75+
├── runtime_flow_type - Defines runtime / primitive types for flows
7576
├── function - Defines a function
7677
├── module - Defines group of functions, runtime functions, flow types and data types
7778
├── runtime_function - Defines a runtime function

proto/shared/shared.flow_type.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ message FlowType {
2424
optional string definition_source = 11;
2525
repeated string linked_data_type_identifiers = 12;
2626
string signature = 13;
27+
string runtime_identifier = 14;
2728
}
2829

2930
message FlowTypeSetting {
@@ -38,4 +39,6 @@ message FlowTypeSetting {
3839
optional shared.Value default_value = 3;
3940
repeated shared.Translation name = 4;
4041
repeated shared.Translation description = 5;
42+
optional bool optional = 6;
43+
optional bool hidden = 7;
4144
}

proto/shared/shared.module.proto

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import "shared.data_type.proto";
99
import "shared.function.proto";
1010
import "shared.runtime_function.proto";
1111
import "shared.flow_type.proto";
12+
import "shared.runtime_flow_type.proto";
1213
import "shared.struct.proto";
1314

1415
message Module {
@@ -21,11 +22,12 @@ message Module {
2122
string version = 7; // version of the module. Format: "major.minor.patch", e.g. "1.2.3"
2223

2324
repeated shared.FlowType flow_types = 9;
24-
repeated shared.FunctionDefinition function_definitions = 10;
25-
repeated shared.RuntimeFunctionDefinition runtime_function_definitions = 11;
26-
repeated shared.DefinitionDataType definition_data_types = 12;
25+
repeated shared.RuntimeFlowType runtime_flow_types = 10;
26+
repeated shared.FunctionDefinition function_definitions = 11;
27+
repeated shared.RuntimeFunctionDefinition runtime_function_definitions = 12;
28+
repeated shared.DefinitionDataType definition_data_types = 13;
2729

28-
repeated ModuleConfigurationDefinition configurations = 13;
30+
repeated ModuleConfigurationDefinition configurations = 14;
2931
}
3032

3133
//send by sagittarius to inform a module of the real config set by the user
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
syntax = "proto3";
2+
3+
option ruby_package = "Tucana::Shared";
4+
5+
package shared;
6+
7+
import "shared.translation.proto";
8+
import "shared.struct.proto";
9+
10+
message RuntimeFlowType {
11+
string identifier = 1;
12+
repeated RuntimeFlowTypeSetting runtime_settings = 2;
13+
bool editable = 3;
14+
repeated shared.Translation name = 4;
15+
repeated shared.Translation description = 5;
16+
repeated shared.Translation documentation = 6;
17+
repeated shared.Translation display_message = 7;
18+
repeated shared.Translation alias = 8;
19+
// Version of the flow type
20+
// Format: "major.minor.patch", e.g. "1.2.3"
21+
string version = 9;
22+
string display_icon = 10;
23+
// Identifier of the service that defines this definition
24+
optional string definition_source = 11;
25+
repeated string linked_data_type_identifiers = 12;
26+
string signature = 13;
27+
}
28+
29+
message RuntimeFlowTypeSetting {
30+
enum UniquenessScope {
31+
UNKNOWN = 0;
32+
NONE = 1;
33+
PROJECT = 2;
34+
}
35+
36+
string identifier = 1;
37+
UniquenessScope unique = 2;
38+
optional shared.Value default_value = 3;
39+
repeated shared.Translation name = 4;
40+
repeated shared.Translation description = 5;
41+
optional bool optional = 6;
42+
optional bool hidden = 7;
43+
}

0 commit comments

Comments
 (0)