From 3473037badae9e1e88aa488dc2d9cd1a212bd79d Mon Sep 17 00:00:00 2001
From: Anton Sattarov <sattarov@perx.ru>
Date: Thu, 9 Mar 2023 11:18:03 +0300
Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?=
 =?UTF-8?q?=D0=BD=D1=8B=20proto=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=BF?=
 =?UTF-8?q?=D0=BE=D1=81=D0=BB=D0=B5=20=D1=80=D0=B5=D0=BB=D0=B8=D0=B7=D0=B0?=
 =?UTF-8?q?=20v0.10?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 proto/collections/collections.proto |  2 +-
 proto/items/items.proto             | 41 ++++++++++++++++++++++++++++-
 2 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/proto/collections/collections.proto b/proto/collections/collections.proto
index e1ae9b1..7275084 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 c02ab82..f687072 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;
 }
-- 
GitLab