Skip to content

Commit 0c01424

Browse files
committed
refactor: reorganize fields in FlowType and ExecutionFlow messages for consistency
1 parent f2e112c commit 0c01424

2 files changed

Lines changed: 20 additions & 24 deletions

File tree

proto/shared/shared.flow.proto

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ message ValidationFlow {
1515
string type = 3;
1616
// All custom data types used in this flow
1717
repeated shared.ExecutionDataType data_types = 4;
18-
optional string input_type = 5;
19-
optional string return_type = 6;
20-
repeated FlowSetting settings = 7;
21-
int64 starting_node_id = 8;
22-
repeated NodeFunction node_functions = 9;
23-
string project_slug = 10;
24-
optional string disable_reason = 11;
18+
repeated FlowSetting settings = 5;
19+
int64 starting_node_id = 6;
20+
repeated NodeFunction node_functions = 7;
21+
string project_slug = 8;
22+
optional string disable_reason = 9;
23+
string signature = 10;
2524
}
2625

2726
message ExecutionFlow {

proto/shared/shared.flow_definition.proto

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ import "shared.struct.proto";
1010
message FlowType {
1111
string identifier = 1;
1212
repeated FlowTypeSetting settings = 2;
13-
optional string input_type = 3;
14-
optional string return_type = 4;
15-
bool editable = 5;
16-
repeated shared.Translation name = 6;
17-
repeated shared.Translation description = 7;
18-
repeated shared.Translation documentation = 8;
19-
repeated shared.Translation display_message = 9;
20-
repeated shared.Translation alias = 10;
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;
2119
// Version of the flow type
2220
// Format: "major.minor.patch", e.g. "1.2.3"
23-
string version = 11;
24-
string display_icon = 12;
21+
string version = 9;
22+
string display_icon = 10;
2523
// Identifier of the service that defines this definition
26-
optional string definition_source = 13;
27-
repeated string linked_data_type_identifiers = 14;
24+
optional string definition_source = 11;
25+
repeated string linked_data_type_identifiers = 12;
26+
string signature = 13;
2827
}
2928

3029
message FlowTypeSetting {
@@ -36,9 +35,7 @@ message FlowTypeSetting {
3635

3736
string identifier = 1;
3837
UniquenessScope unique = 2;
39-
string type = 3;
40-
optional shared.Value default_value = 4;
41-
repeated shared.Translation name = 5;
42-
repeated shared.Translation description = 6;
43-
repeated string linked_data_type_identifiers = 7;
38+
optional shared.Value default_value = 3;
39+
repeated shared.Translation name = 4;
40+
repeated shared.Translation description = 5;
4441
}

0 commit comments

Comments
 (0)