Skip to content

Commit 156e331

Browse files
committed
Allow action to receive action configurations without settings
This is needed so an action can get the project ids where it has to emit events
1 parent c7678a7 commit 156e331

3 files changed

Lines changed: 13 additions & 30 deletions

File tree

proto/aquila/aquila.action.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ import "shared.struct.proto";
1111
message Event {
1212
// Id of Event type
1313
string event_type = 1;
14+
// Project Id that this event is emitted for
15+
int64 project_id = 2;
1416
// Payload (JSON) of event params
15-
shared.Value payload = 2;
17+
shared.Value payload = 3;
1618
}
1719

1820
// Action flow/event configuration
1921
message ActionLogon {
2022
// Action identifier
2123
string action_identifier = 1;
2224
string version = 2;
25+
repeated shared.ActionConfigurationDefinition action_configurations = 3;
2326
}
2427

2528
// Request to execute a request a flow

proto/aquila/aquila.action_configuration.proto

Lines changed: 0 additions & 25 deletions
This file was deleted.

proto/shared/shared.action_configuration.proto

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ import "shared.translation.proto";
1111
// Message sent by Sagittarius to inform the Action about an ActionConfiguration value
1212
message ActionConfiguration {
1313
string identifier = 1;
14-
int64 project_id = 2;
15-
shared.Value value = 3;
14+
shared.Value value = 2;
1615
}
1716

18-
// Wrapper message containing a collection of ActionConfiguration instances
17+
// Message representing a project configuration for an action
18+
message ActionProjectConfiguration {
19+
int64 project_id = 1;
20+
repeated ActionConfiguration action_configurations = 2;
21+
}
22+
23+
// Wrapper message containing a collection of ActionProjectConfiguration instances
1924
message ActionConfigurations {
20-
repeated ActionConfiguration action_configurations = 1;
25+
repeated ActionProjectConfiguration action_configurations = 1;
2126
}
2227

2328
// Message sent by the Action to define a configuration

0 commit comments

Comments
 (0)