diff --git a/proto/collections/collections.proto b/proto/collections/collections.proto index e1ae9b1db9dbcd3f076ea5d4003c252303b7a90f..7275084d5f2aed79b9b0009ef8382294be6fef02 100644 --- a/proto/collections/collections.proto +++ b/proto/collections/collections.proto @@ -24,7 +24,6 @@ message Collection { optional bool system = 6; optional bool no_data = 12; string schema = 7; -// string feature = 8; bool hidden = 13; message View { @@ -49,6 +48,7 @@ message Collection { } StateInfo state_info = 10; + repeated string tags = 16; Access access = 20; } diff --git a/proto/items/items.proto b/proto/items/items.proto index c02ab82760f373428b1d8c1363ea2b88c477d4bb..f687072ce5d63f121436f57c627900366c2c7b09 100644 --- a/proto/items/items.proto +++ b/proto/items/items.proto @@ -77,6 +77,45 @@ message Item { Permissions permissions = 22; } +/** + * Объекты, описывающие произошедшие в сервисе события + */ + +message EventCreate { + string space_id = 1; + string env_id = 2; + string collection_id = 3; + string item_id = 4; +} + +message EventUpdate { + string space_id = 1; + string env_id = 2; + string collection_id = 3; + string item_id = 4; +} + +message EventPublish { + string space_id = 1; + string env_id = 2; + string collection_id = 3; + string item_id = 4; +} + +message EventUnpublish { + string space_id = 1; + string env_id = 2; + string collection_id = 3; + string item_id = 4; +} + +message EventDelete { + string space_id = 1; + string env_id = 2; + string collection_id = 3; + string item_id = 4; +} + message Filter { repeated string id = 1; // Список ID записей кото repeated common.Filter data = 2; // Список фильтров @@ -137,7 +176,7 @@ message ListRevisionsOptions { // - avg(F) - среднее значения поля, тип результат T // - sum(F) - сумма значений поля, тип результат T // - count() - число записей, тип результат int -// Пример: {'average C': 'avg(a.b.c)'} +// Пример: {'average of C': 'avg(a.b.c)'} message AggregateOptions { map<string, string> fields = 1; }