Skip to content
Snippets Groups Projects
Commit 53a6df87 authored by Alena Petraki's avatar Alena Petraki
Browse files

Merge branch 'master' into feature/PRXS-768-TransferSpace

parents 047ef516 e0c174cd
No related branches found
No related tags found
1 merge request!10Добавлена спецификация по переносу пространств между организациями
...@@ -3,7 +3,6 @@ syntax = "proto3"; ...@@ -3,7 +3,6 @@ syntax = "proto3";
import "google/protobuf/empty.proto"; import "google/protobuf/empty.proto";
import "common/common.proto"; import "common/common.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
option go_package = "git.perx.ru/perxis/perxis-go/proto/collections;collections"; option go_package = "git.perx.ru/perxis/perxis-go/proto/collections;collections";
...@@ -26,7 +25,6 @@ message Collection { ...@@ -26,7 +25,6 @@ message Collection {
optional bool no_data = 12; optional bool no_data = 12;
string schema = 7; string schema = 7;
bool hidden = 13; bool hidden = 13;
google.protobuf.Duration ttl = 14;
message View { message View {
string space_id = 1; string space_id = 1;
......
...@@ -123,7 +123,7 @@ message Filter { ...@@ -123,7 +123,7 @@ message Filter {
} }
message CreateOptions { message CreateOptions {
bool update_attrs = 1; bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
} }
message FindOptions { message FindOptions {
...@@ -135,7 +135,7 @@ message FindOptions { ...@@ -135,7 +135,7 @@ message FindOptions {
} }
message UpdateOptions { message UpdateOptions {
bool update_attrs = 1; bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
} }
message GetPublishedOptions { message GetPublishedOptions {
...@@ -143,11 +143,20 @@ message GetPublishedOptions { ...@@ -143,11 +143,20 @@ message GetPublishedOptions {
} }
message DeleteOptions { message DeleteOptions {
bool erase = 1; bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
bool erase = 2; // полное удаление без сохранения удаленной версии объекта
}
message UndeleteOptions {
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
} }
message PublishOptions { message PublishOptions {
bool update_attrs = 1; bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message UnpublishOptions {
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
} }
message FindPublishedOptions { message FindPublishedOptions {
...@@ -230,18 +239,13 @@ message UpdateRequest { ...@@ -230,18 +239,13 @@ message UpdateRequest {
} }
message DeleteRequest { message DeleteRequest {
string space_id = 1; Item item = 1; // важны только переданные внутри идентификаторы или, если указана опция update_attrs, поля которые изменяются: created_by, created_at, created_rev_at, updated_by, updated_at
string env_id = 2; DeleteOptions options = 2;
string collection_id = 3;
string item_id = 4;
DeleteOptions options = 5;
} }
message UndeleteRequest { message UndeleteRequest {
string space_id = 1; Item item = 1;
string env_id = 2; UndeleteOptions options = 2;
string collection_id = 3;
string item_id = 4;
} }
message PublishRequest { message PublishRequest {
...@@ -251,6 +255,7 @@ message PublishRequest { ...@@ -251,6 +255,7 @@ message PublishRequest {
message UnpublishRequest { message UnpublishRequest {
Item item = 1; Item item = 1;
UnpublishOptions options = 2;
} }
message GetPublishedRequest { message GetPublishedRequest {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment