1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 17:44:59 +09:00

Fix block.close, proto fixes

This commit is contained in:
Kirill 2019-11-13 13:18:24 +01:00
parent c1c5d9df58
commit 6cdcdb3109
No known key found for this signature in database
GPG key ID: 52B176BB96D272ED
8 changed files with 965 additions and 188 deletions

View file

@ -46,6 +46,19 @@ func (mw *Middleware) BlockOpen(req *pb.RpcBlockOpenRequest) *pb.RpcBlockOpenRes
return response(pb.RpcBlockOpenResponseError_NULL, nil)
}
func (mw *Middleware) BlockClose(req *pb.RpcBlockCloseRequest) *pb.RpcBlockCloseResponse {
response := func(code pb.RpcBlockCloseResponseErrorCode, err error) *pb.RpcBlockCloseResponse {
m := &pb.RpcBlockCloseResponse{Error: &pb.RpcBlockCloseResponseError{Code: code}}
if err != nil {
m.Error.Description = err.Error()
}
return m
}
// TODO
return response(pb.RpcBlockCloseResponseError_NULL, nil)
}
func (mw *Middleware) BlockUpdate(req *pb.RpcBlockUpdateRequest) *pb.RpcBlockUpdateResponse {
response := func(code pb.RpcBlockUpdateResponseErrorCode, err error) *pb.RpcBlockUpdateResponse {
m := &pb.RpcBlockUpdateResponse{Error: &pb.RpcBlockUpdateResponseError{Code: code}}

View file

@ -228,7 +228,8 @@
| BlockOpen | [Rpc.Block.Open.Request](#anytype.Rpc.Block.Open.Request) | [Rpc.Block.Open.Response](#anytype.Rpc.Block.Open.Response) | |
| BlockCreate | [Rpc.Block.Create.Request](#anytype.Rpc.Block.Create.Request) | [Rpc.Block.Create.Response](#anytype.Rpc.Block.Create.Response) | |
| BlockUpdate | [Rpc.Block.Update.Request](#anytype.Rpc.Block.Update.Request) | [Rpc.Block.Update.Response](#anytype.Rpc.Block.Update.Response) | |
| BlockHistoryMove | [Rpc.Block.History.Move.Request](#anytype.Rpc.Block.History.Move.Request) | [Rpc.Block.History.Move.Response](#anytype.Rpc.Block.History.Move.Response) | rpc BlockFilesUpload (Block Rpc.History.Move.Request) returns (BlockRpc..History Move.Response); |
| BlockClose | [Rpc.Block.Close.Request](#anytype.Rpc.Block.Close.Request) | [Rpc.Block.Close.Response](#anytype.Rpc.Block.Close.Response) | TODO: rpc BlockDelete (anytype.Rpc.Block.Delete.Request) returns (anytype.Rpc.Block.Delete.Response); |
| BlockHistoryMove | [Rpc.Block.History.Move.Request](#anytype.Rpc.Block.History.Move.Request) | [Rpc.Block.History.Move.Response](#anytype.Rpc.Block.History.Move.Response) | TODO: rpc BlockFilesUpload () returns (); |
@ -720,6 +721,7 @@ Precondition: block should be opened.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| id | [string](#string) | | |
| parentId | [string](#string) | | id of the parent block |
@ -790,6 +792,7 @@ Create a Smart/Internal block. Request can contain a block with a content, or it
| block | [Model.Block](#anytype.Model.Block) | | |
| targetId | [string](#string) | | |
| position | [Model.Block.Position](#anytype.Model.Block.Position) | | |
| parentId | [string](#string) | | id of the parent block |
@ -864,7 +867,8 @@ Block history: switch between versions (lib context: switch block head), move fo
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| blockId | [string](#string) | | |
| moveForward | [bool](#bool) | | Move direction. If true, |
| moveForward | [bool](#bool) | | Move direction. If true, move forward |
| parentId | [string](#string) | | id of the parent block |
@ -935,6 +939,7 @@ Image/Video/File blocks then:
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| id | [string](#string) | | |
| parentId | [string](#string) | | id of the parent block |
@ -1004,6 +1009,7 @@ Case F. Update children of a layout block on a page
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| changes | [Change.Multiple.BlocksList](#anytype.Change.Multiple.BlocksList) | | |
| parentId | [string](#string) | | id of the parent block |
@ -1844,6 +1850,7 @@ B. Partial block load
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| blocks | [Model.Block](#anytype.Model.Block) | repeated | id -> block |
| parentId | [string](#string) | | id of the parent block |
@ -1859,6 +1866,7 @@ B. Partial block load
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| blockId | [string](#string) | | |
| parentId | [string](#string) | | id of the parent block |
@ -1878,6 +1886,7 @@ Precondition: user A opened a block
| ----- | ---- | ----- | ----------- |
| filePath | [string](#string) | repeated | filepaths to the files |
| blockId | [string](#string) | | if empty => create new blocks |
| parentId | [string](#string) | | id of the parent block |
@ -1895,6 +1904,7 @@ Dashboard opened, click on a page, Rpc.Block.open, Block.ShowFullscreen(PageBloc
| ----- | ---- | ----- | ----------- |
| rootId | [string](#string) | | Root block id |
| blocks | [Model.Block](#anytype.Model.Block) | repeated | children of the root block |
| parentId | [string](#string) | | id of the parent block |
@ -1912,6 +1922,7 @@ Page opened, TextBlock updated on a different client, BlockUpdate(changes)
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| changes | [Change.Multiple.BlocksList](#anytype.Change.Multiple.BlocksList) | | |
| parentId | [string](#string) | | id of the parent block |
@ -1950,6 +1961,7 @@ Precondition: user A opened a block
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| account | [Event.Account](#anytype.Event.Account) | | Account of the user, that opened a block |
| parentId | [string](#string) | | id of the parent block |
@ -1968,6 +1980,7 @@ Precondition: user A and user B opened the same block
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| account | [Event.Account](#anytype.Event.Account) | | Account of the user, that left the block |
| parentId | [string](#string) | | id of the parent block |
@ -1987,6 +2000,7 @@ Precondition: user A and user B opened the same block
| ----- | ---- | ----- | ----------- |
| account | [Event.Account](#anytype.Event.Account) | | Account of the user, that selected blocks |
| blockIdsArray | [string](#string) | repeated | Ids of selected blocks. |
| parentId | [string](#string) | | id of the parent block |
@ -2007,6 +2021,7 @@ Precondition: user A and user B opened the same block
| account | [Event.Account](#anytype.Event.Account) | | Account of the user, that selected a text |
| blockId | [string](#string) | | Id of the text block, that have a selection |
| range | [Model.Range](#anytype.Model.Range) | | Range of the selection |
| parentId | [string](#string) | | id of the parent block |

View file

@ -24,33 +24,34 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) }
var fileDescriptor_a0b84a42fa06f626 = []byte{
// 406 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x6f, 0xda, 0x30,
0x18, 0x87, 0x41, 0x93, 0xc6, 0xe6, 0x01, 0x9a, 0x7c, 0x44, 0x22, 0xe3, 0xdf, 0x34, 0x76, 0xf1,
0x61, 0xfb, 0x04, 0x83, 0x03, 0x20, 0xb1, 0x56, 0x85, 0xb6, 0x48, 0x48, 0x3d, 0x04, 0xf3, 0x16,
0x45, 0x0d, 0x76, 0x1a, 0x1b, 0x24, 0xbe, 0x45, 0xbf, 0x52, 0x6f, 0x3d, 0x72, 0xec, 0xb1, 0x82,
0x2f, 0x52, 0x25, 0x79, 0xeb, 0x2a, 0x90, 0x84, 0x5e, 0xfd, 0x3c, 0xbf, 0xc7, 0x28, 0xb2, 0x20,
0x25, 0x05, 0xfe, 0xda, 0xe1, 0xc0, 0x3c, 0x5f, 0x6a, 0x49, 0x0b, 0xb6, 0xd8, 0xe8, 0x8d, 0x07,
0x95, 0x32, 0x97, 0xcb, 0xa5, 0x2d, 0xe6, 0x2a, 0x02, 0x7f, 0x1e, 0xbf, 0x90, 0x72, 0xd7, 0x75,
0x40, 0xe8, 0x2e, 0x02, 0x3a, 0x21, 0xc5, 0x89, 0xed, 0xba, 0xa0, 0xbb, 0x3e, 0xd8, 0x1a, 0x68,
0x83, 0xe1, 0x98, 0x8d, 0x3c, 0xce, 0x22, 0xc4, 0x22, 0xc6, 0x46, 0x70, 0xbf, 0x02, 0xa5, 0x2b,
0xcd, 0x4c, 0x47, 0x79, 0x52, 0x28, 0xa0, 0x53, 0x52, 0x8a, 0xc8, 0x08, 0xb8, 0x5c, 0x83, 0x4f,
0x13, 0x57, 0x08, 0x4d, 0xba, 0x95, 0x2d,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
0x08, 0xe6, 0x82, 0xf6, 0x69, 0x31, 0xba, 0xa6, 0x53, 0x7d, 0xda, 0x59, 0xf9, 0xed, 0xce, 0xca,
0xbf, 0xec, 0xac, 0xfc, 0xc3, 0xde, 0xca, 0x6d, 0xf7, 0x56, 0xee, 0x79, 0x6f, 0xe5, 0xa6, 0x9f,
0x5c, 0x67, 0x36, 0xfb, 0x1c, 0xfe, 0xd3, 0xfc, 0x7d, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x2a,
0x77, 0x4e, 0x93, 0x04, 0x00, 0x00,
// 419 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0xef, 0xd2, 0x30,
0x1c, 0x87, 0x21, 0x26, 0xfe, 0x42, 0x05, 0x62, 0x7a, 0x24, 0x61, 0xf2, 0xcf, 0x88, 0x97, 0x1e,
0xf4, 0x15, 0x08, 0x07, 0x20, 0x41, 0x8d, 0xa0, 0x92, 0x90, 0x78, 0x18, 0xe5, 0x2b, 0x59, 0x2c,
0xed, 0x5c, 0x0b, 0x09, 0xef, 0xc2, 0x83, 0x2f, 0xca, 0x23, 0x47, 0x8f, 0x06, 0xde, 0x88, 0xd9,
0xfa, 0xb5, 0x64, 0xb0, 0x0d, 0xaf, 0x7d, 0x9e, 0xcf, 0xb3, 0xb1, 0x2d, 0x90, 0x9a, 0x86, 0x68,
0x1f, 0x70, 0x60, 0x61, 0xa4, 0x8c, 0xa2, 0x0f, 0xbe, 0x3c, 0x98, 0x43, 0x08, 0x8d, 0x3a, 0x57,
0xdb, 0xad, 0x2f, 0xd7, 0xda, 0x82, 0x57, 0x3f, 0x2b, 0xa4, 0x3e, 0x14, 0x01, 0x48, 0x33, 0x44,
0x40, 0x17, 0xa4, 0xba, 0xf0, 0x85, 0x00, 0x33, 0x8c, 0xc0, 0x37, 0x40, 0x3b, 0x0c, 0xc7, 0x6c,
0x16, 0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, 0xb8, 0xfa, 0x0a, 0x3a, 0x45, 0xca, 0x55,
0xf5, 0x53, 0xb8, 0xce, 0xab, 0x5a, 0x54, 0x58, 0x75, 0xca, 0xe5, 0xc5, 0xd8, 0x7b, 0x15, 0x4a,
0x03, 0xcd, 0xfa, 0x6d, 0x09, 0xc9, 0x79, 0x31, 0x69, 0x03, 0x93, 0x40, 0x9e, 0x26, 0xe7, 0xe3,
0x40, 0x1b, 0x15, 0x1d, 0xde, 0xaa, 0x3d, 0xd0, 0x17, 0x19, 0x33, 0xe4, 0x2c, 0x16, 0x5c, 0xbf,
0x7f, 0x5f, 0xb4, 0x97, 0x19, 0x34, 0x7f, 0x9d, 0xbc, 0xf2, 0xf1, 0xe4, 0x95, 0xff, 0x9c, 0xbc,
0xf2, 0x8f, 0xb3, 0x57, 0x3a, 0x9e, 0xbd, 0xd2, 0xef, 0xb3, 0x57, 0x5a, 0x3e, 0x12, 0xc1, 0x6a,
0xf5, 0x38, 0xf9, 0xf3, 0x7a, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x75, 0x37, 0x95, 0xe6,
0x04, 0x00, 0x00,
}
// This is a compile-time assertion to ensure that this generated file
@ -71,6 +72,8 @@ type ClientCommandsHandler interface {
BlockOpen(*pb.RpcBlockOpenRequest) *pb.RpcBlockOpenResponse
BlockCreate(*pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse
BlockUpdate(*pb.RpcBlockUpdateRequest) *pb.RpcBlockUpdateResponse
// TODO: rpc BlockDelete (anytype.Rpc.Block.Delete.Request) returns (anytype.Rpc.Block.Delete.Response);
BlockClose(*pb.RpcBlockCloseRequest) *pb.RpcBlockCloseResponse
BlockHistoryMove(*pb.RpcBlockHistoryMoveRequest) *pb.RpcBlockHistoryMoveResponse
}
@ -188,6 +191,16 @@ func BlockUpdate(b []byte) []byte {
return resp
}
func BlockClose(b []byte) []byte {
in := new(pb.RpcBlockCloseRequest)
if err := in.Unmarshal(b); err != nil {
resp, _ := (&pb.RpcBlockCloseResponse{Error: &pb.RpcBlockCloseResponseError{Code: pb.RpcBlockCloseResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
return resp
}
resp, _ := clientCommandsHandler.BlockClose(in).Marshal()
return resp
}
func BlockHistoryMove(b []byte) []byte {
in := new(pb.RpcBlockHistoryMoveRequest)
if err := in.Unmarshal(b); err != nil {
@ -224,6 +237,8 @@ func CommandAsync(cmd string, data []byte, callback func(data []byte)) {
cd = BlockCreate(data)
case "BlockUpdate":
cd = BlockUpdate(data)
case "BlockClose":
cd = BlockClose(data)
case "BlockHistoryMove":
cd = BlockHistoryMove(data)
default:

View file

@ -726,6 +726,7 @@ var xxx_messageInfo_RpcBlockHistoryMove proto.InternalMessageInfo
type RpcBlockHistoryMoveRequest struct {
BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"`
MoveForward bool `protobuf:"varint,2,opt,name=moveForward,proto3" json:"moveForward,omitempty"`
ParentId string `protobuf:"bytes,3,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *RpcBlockHistoryMoveRequest) Reset() { *m = RpcBlockHistoryMoveRequest{} }
@ -775,6 +776,13 @@ func (m *RpcBlockHistoryMoveRequest) GetMoveForward() bool {
return false
}
func (m *RpcBlockHistoryMoveRequest) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
type RpcBlockHistoryMoveResponse struct {
Error *RpcBlockHistoryMoveResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
}
@ -924,7 +932,8 @@ func (m *RpcBlockOpen) XXX_DiscardUnknown() {
var xxx_messageInfo_RpcBlockOpen proto.InternalMessageInfo
type RpcBlockOpenRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *RpcBlockOpenRequest) Reset() { *m = RpcBlockOpenRequest{} }
@ -967,6 +976,13 @@ func (m *RpcBlockOpenRequest) GetId() string {
return ""
}
func (m *RpcBlockOpenRequest) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
type RpcBlockOpenResponse struct {
Error *RpcBlockOpenResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
}
@ -1117,6 +1133,7 @@ type RpcBlockCreateRequest struct {
Block *ModelBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"`
Position ModelBlockPosition `protobuf:"varint,3,opt,name=position,proto3,enum=anytype.ModelBlockPosition" json:"position,omitempty"`
ParentId string `protobuf:"bytes,4,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *RpcBlockCreateRequest) Reset() { *m = RpcBlockCreateRequest{} }
@ -1173,6 +1190,13 @@ func (m *RpcBlockCreateRequest) GetPosition() ModelBlockPosition {
return ModelBlock_BEFORE
}
func (m *RpcBlockCreateRequest) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
type RpcBlockCreateResponse struct {
Error *RpcBlockCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"`
@ -1329,7 +1353,8 @@ func (m *RpcBlockUpdate) XXX_DiscardUnknown() {
var xxx_messageInfo_RpcBlockUpdate proto.InternalMessageInfo
type RpcBlockUpdateRequest struct {
Changes *ChangeMultipleBlocksList `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
Changes *ChangeMultipleBlocksList `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *RpcBlockUpdateRequest) Reset() { *m = RpcBlockUpdateRequest{} }
@ -1372,6 +1397,13 @@ func (m *RpcBlockUpdateRequest) GetChanges() *ChangeMultipleBlocksList {
return nil
}
func (m *RpcBlockUpdateRequest) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
type RpcBlockUpdateResponse struct {
Error *RpcBlockUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
}
@ -1508,7 +1540,8 @@ func (m *RpcBlockClose) XXX_DiscardUnknown() {
var xxx_messageInfo_RpcBlockClose proto.InternalMessageInfo
type RpcBlockCloseRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *RpcBlockCloseRequest) Reset() { *m = RpcBlockCloseRequest{} }
@ -1551,6 +1584,13 @@ func (m *RpcBlockCloseRequest) GetId() string {
return ""
}
func (m *RpcBlockCloseRequest) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
type RpcBlockCloseResponse struct {
Error *RpcBlockCloseResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
}
@ -3967,107 +4007,108 @@ func init() {
func init() { proto.RegisterFile("commands.proto", fileDescriptor_0dff099eb2e3dfdb) }
var fileDescriptor_0dff099eb2e3dfdb = []byte{
// 1590 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x98, 0x4d, 0x8c, 0xdb, 0xd4,
0x16, 0xc7, 0x27, 0x8e, 0xf3, 0x75, 0xe6, 0xe3, 0xb9, 0x56, 0x5f, 0xd5, 0xde, 0xd7, 0x37, 0xad,
0xa6, 0xef, 0xf5, 0x4d, 0xa7, 0xad, 0x5b, 0x4d, 0xdf, 0x5b, 0xf4, 0x89, 0xd2, 0x3a, 0x89, 0x33,
0x63, 0x48, 0xec, 0xe8, 0xc6, 0x99, 0x01, 0x36, 0x96, 0x27, 0xb9, 0x93, 0x09,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, 0xc9, 0xed, 0xd9, 0xc8, 0xcd, 0xdb, 0xb3, 0x91, 0x1f, 0x6e, 0xcf,
0x46, 0x2e, 0xdf, 0x99, 0x9d, 0xb8, 0x79, 0x67, 0x76, 0xe2, 0x9b, 0x3b, 0xb3, 0x13, 0x4f, 0x30,
0xad, 0xb5, 0xb5, 0xb8, 0xf3, 0x4f, 0xf5, 0x53, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0xca, 0x53,
0x5d, 0x79, 0x8c, 0x17, 0x00, 0x00,
// 1607 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x98, 0x4b, 0x8c, 0xdb, 0x54,
0x17, 0xc7, 0x27, 0x8e, 0xf3, 0x3a, 0xf3, 0xf8, 0x5c, 0xab, 0x5f, 0x35, 0xbd, 0x94, 0x69, 0x35,
0x85, 0x32, 0x9d, 0xb6, 0x6e, 0x35, 0x85, 0x45, 0x11, 0xa5, 0x75, 0x12, 0x67, 0xc6, 0x90, 0xd8,
0xd1, 0x8d, 0x33, 0x03, 0x6c, 0x2c, 0x4f, 0x72, 0x27, 0x63, 0x70, 0xe2, 0xe0, 0xb8, 0x53, 0xb5,
0x3b, 0xc4, 0x02, 0x10, 0x1b, 0x40, 0x62, 0x55, 0x04, 0x2c, 0x79, 0x14, 0x89, 0x0d, 0x2a, 0x20,
0x55, 0x48, 0xc0, 0x02, 0x90, 0x90, 0x0a, 0x48, 0x88, 0x0d, 0x88, 0xb6, 0x2b, 0x54, 0x58, 0x22,
0x76, 0x08, 0xf9, 0x95, 0xc4, 0x43, 0x92, 0x26, 0x51, 0x47, 0x65, 0xe7, 0x7b, 0x73, 0xef, 0x39,
0xe7, 0xfe, 0xfe, 0xe7, 0xdc, 0x47, 0x60, 0xa6, 0x62, 0xd6, 0xeb, 0x5a, 0xa3, 0xda, 0xe2, 0x9a,
0x96, 0x69, 0x9b, 0x6c, 0x42, 0x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@ -4182,6 +4223,13 @@ func (m *RpcBlockHistoryMoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, err
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x1a
}
if m.MoveForward {
i--
if m.MoveForward {
@ -4315,6 +4363,13 @@ func (m *RpcBlockOpenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x12
}
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
@ -4438,6 +4493,13 @@ func (m *RpcBlockCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x22
}
if m.Position != 0 {
i = encodeVarintCommands(dAtA, i, uint64(m.Position))
i--
@ -4585,6 +4647,13 @@ func (m *RpcBlockUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x12
}
if m.Changes != nil {
{
size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i])
@ -4713,6 +4782,13 @@ func (m *RpcBlockCloseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x12
}
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
@ -6392,6 +6468,10 @@ func (m *RpcBlockHistoryMoveRequest) Size() (n int) {
if m.MoveForward {
n += 2
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
return n
}
@ -6443,6 +6523,10 @@ func (m *RpcBlockOpenRequest) Size() (n int) {
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
return n
}
@ -6501,6 +6585,10 @@ func (m *RpcBlockCreateRequest) Size() (n int) {
if m.Position != 0 {
n += 1 + sovCommands(uint64(m.Position))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
return n
}
@ -6556,6 +6644,10 @@ func (m *RpcBlockUpdateRequest) Size() (n int) {
l = m.Changes.Size()
n += 1 + l + sovCommands(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
return n
}
@ -6607,6 +6699,10 @@ func (m *RpcBlockCloseRequest) Size() (n int) {
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
return n
}
@ -7588,6 +7684,38 @@ func (m *RpcBlockHistoryMoveRequest) Unmarshal(dAtA []byte) error {
}
}
m.MoveForward = bool(v != 0)
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCommands
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthCommands
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthCommands
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipCommands(dAtA[iNdEx:])
@ -7919,6 +8047,38 @@ func (m *RpcBlockOpenRequest) Unmarshal(dAtA []byte) error {
}
m.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCommands
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthCommands
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthCommands
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipCommands(dAtA[iNdEx:])
@ -8305,6 +8465,38 @@ func (m *RpcBlockCreateRequest) Unmarshal(dAtA []byte) error {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCommands
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthCommands
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthCommands
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipCommands(dAtA[iNdEx:])
@ -8672,6 +8864,38 @@ func (m *RpcBlockUpdateRequest) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCommands
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthCommands
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthCommands
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipCommands(dAtA[iNdEx:])
@ -9003,6 +9227,38 @@ func (m *RpcBlockCloseRequest) Unmarshal(dAtA []byte) error {
}
m.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCommands
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthCommands
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthCommands
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipCommands(dAtA[iNdEx:])

View file

@ -351,7 +351,8 @@ var xxx_messageInfo_EventBlock proto.InternalMessageInfo
// 3. M -> F: Block.Add(blocks51-100)
// 3. M -> F: Block.Add(blocks101-133)
type EventBlockAdd struct {
Blocks []*ModelBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
Blocks []*ModelBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventBlockAdd) Reset() { *m = EventBlockAdd{} }
@ -394,12 +395,20 @@ func (m *EventBlockAdd) GetBlocks() []*ModelBlock {
return nil
}
func (m *EventBlockAdd) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
//
// Works with a smart blocks: Page, Dashboard
// Dashboard opened, click on a page, Rpc.Block.open, Block.ShowFullscreen(PageBlock)
type EventBlockShowFullscreen struct {
RootId string `protobuf:"bytes,1,opt,name=rootId,proto3" json:"rootId,omitempty"`
Blocks []*ModelBlock `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"`
RootId string `protobuf:"bytes,1,opt,name=rootId,proto3" json:"rootId,omitempty"`
Blocks []*ModelBlock `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"`
ParentId string `protobuf:"bytes,3,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventBlockShowFullscreen) Reset() { *m = EventBlockShowFullscreen{} }
@ -449,12 +458,20 @@ func (m *EventBlockShowFullscreen) GetBlocks() []*ModelBlock {
return nil
}
func (m *EventBlockShowFullscreen) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
//
// Updates from different clients, or from the local middleware
// Example scenarios:
// Page opened, TextBlock updated on a different client, BlockUpdate(changes)
type EventBlockUpdate struct {
Changes *ChangeMultipleBlocksList `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
Changes *ChangeMultipleBlocksList `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventBlockUpdate) Reset() { *m = EventBlockUpdate{} }
@ -497,6 +514,13 @@ func (m *EventBlockUpdate) GetChanges() *ChangeMultipleBlocksList {
return nil
}
func (m *EventBlockUpdate) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
//*
// Middleware to front end event message, that will be sent on one of this scenarios:
// Precondition: user A opened a block
@ -505,6 +529,7 @@ func (m *EventBlockUpdate) GetChanges() *ChangeMultipleBlocksList {
type EventBlockFilesUpload struct {
FilePath []string `protobuf:"bytes,1,rep,name=filePath,proto3" json:"filePath,omitempty"`
BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"`
ParentId string `protobuf:"bytes,3,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventBlockFilesUpload) Reset() { *m = EventBlockFilesUpload{} }
@ -554,10 +579,18 @@ func (m *EventBlockFilesUpload) GetBlockId() string {
return ""
}
func (m *EventBlockFilesUpload) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
//
//
type EventBlockDelete struct {
BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"`
BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventBlockDelete) Reset() { *m = EventBlockDelete{} }
@ -600,6 +633,13 @@ func (m *EventBlockDelete) GetBlockId() string {
return ""
}
func (m *EventBlockDelete) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
type EventUser struct {
}
@ -678,7 +718,8 @@ var xxx_messageInfo_EventUserBlock proto.InternalMessageInfo
// 1. User B opens the same block
// 2. User A receives a message about p.1
type EventUserBlockJoin struct {
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventUserBlockJoin) Reset() { *m = EventUserBlockJoin{} }
@ -721,13 +762,21 @@ func (m *EventUserBlockJoin) GetAccount() *EventAccount {
return nil
}
func (m *EventUserBlockJoin) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
//*
// Middleware to front end event message, that will be sent in this scenario:
// Precondition: user A and user B opened the same block
// 1. User B closes the block
// 2. User A receives a message about p.1
type EventUserBlockLeft struct {
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventUserBlockLeft) Reset() { *m = EventUserBlockLeft{} }
@ -770,15 +819,23 @@ func (m *EventUserBlockLeft) GetAccount() *EventAccount {
return nil
}
func (m *EventUserBlockLeft) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
//*
// Middleware to front end event message, that will be sent in this scenario:
// Precondition: user A and user B opened the same block
// 1. User B sets cursor or selects a text region into a text block
// 2. User A receives a message about p.1
type EventUserBlockTextRange struct {
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"`
Range *ModelRange `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"`
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"`
Range *ModelRange `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"`
ParentId string `protobuf:"bytes,4,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventUserBlockTextRange) Reset() { *m = EventUserBlockTextRange{} }
@ -835,6 +892,13 @@ func (m *EventUserBlockTextRange) GetRange() *ModelRange {
return nil
}
func (m *EventUserBlockTextRange) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
//*
// Middleware to front end event message, that will be sent in this scenario:
// Precondition: user A and user B opened the same block
@ -843,6 +907,7 @@ func (m *EventUserBlockTextRange) GetRange() *ModelRange {
type EventUserBlockSelectRange struct {
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
BlockIdsArray []string `protobuf:"bytes,2,rep,name=blockIdsArray,proto3" json:"blockIdsArray,omitempty"`
ParentId string `protobuf:"bytes,3,opt,name=parentId,proto3" json:"parentId,omitempty"`
}
func (m *EventUserBlockSelectRange) Reset() { *m = EventUserBlockSelectRange{} }
@ -892,6 +957,13 @@ func (m *EventUserBlockSelectRange) GetBlockIdsArray() []string {
return nil
}
func (m *EventUserBlockSelectRange) GetParentId() string {
if m != nil {
return m.ParentId
}
return ""
}
func init() {
proto.RegisterType((*Event)(nil), "anytype.Event")
proto.RegisterType((*EventAccount)(nil), "anytype.Event.Account")
@ -913,48 +985,50 @@ func init() {
func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) }
var fileDescriptor_8f22242cb04491f9 = []byte{
// 644 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xcf, 0x4f, 0xd4, 0x40,
0x14, 0xc7, 0xdb, 0xfd, 0x55, 0xfa, 0x16, 0x3c, 0x8c, 0x84, 0x4c, 0x46, 0xd3, 0x10, 0xd4, 0x84,
0x18, 0xd3, 0x18, 0x48, 0x0c, 0x17, 0x63, 0x16, 0x10, 0x17, 0x03, 0xc6, 0x0c, 0xae, 0x46, 0x3d,
0x95, 0x76, 0x80, 0x8d, 0xa5, 0x6d, 0xda, 0x59, 0x85, 0xb3, 0x17, 0x8f, 0xfe, 0x55, 0xc6, 0x23,
0x47, 0x8f, 0x06, 0x2e, 0x5e, 0xfd, 0x0f, 0xcc, 0xbc, 0xce, 0x76, 0xdb, 0x4d, 0x51, 0xf7, 0xc6,
0x7b, 0x7c, 0xdf, 0x67, 0xfa, 0xe6, 0x7d, 0xdf, 0x2c, 0xcc, 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0x52, 0x79, 0x24, 0x95, 0x43, 0x66, 0x36, 0x3a, 0x80, 0x16, 0xee, 0xd0,
0xff, 0xa5, 0x7e, 0xd7, 0xa1, 0x7b, 0xf5, 0x5e, 0xcc, 0xcf, 0x9e, 0xfe, 0xd1, 0xef, 0x42, 0x3b,
0xc3, 0xe5, 0x2e, 0xde, 0xe7, 0xba, 0xcf, 0xb0, 0x21, 0x2d, 0x24, 0x95, 0x13, 0xb6, 0x6a, 0x27,
0xfc, 0xa2, 0x43, 0xaf, 0xbc, 0xe6, 0xf3, 0x9f, 0xf1, 0x36, 0x2c, 0xcb, 0x43, 0xe5, 0xfd, 0x2c,
0xf3, 0xcf, 0xd1, 0xf9, 0x5d, 0x5a, 0x4d, 0xce, 0x32, 0xc9, 0x56, 0x17, 0xcc, 0x53, 0x96, 0xe7,
0xfe, 0x31, 0xdb, 0xba, 0xf1, 0x63, 0xec, 0xe8, 0x17, 0x63, 0x47, 0xff, 0x33, 0x76, 0xf4, 0x6f,
0x97, 0x8e, 0x76, 0x71, 0xe9, 0x68, 0xbf, 0x2e, 0x1d, 0xed, 0xdd, 0x42, 0x7a, 0x78, 0xd8, 0xc1,
0x1f, 0xcb, 0x07, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x0c, 0xee, 0x59, 0x62, 0x07, 0x00,
0x00,
}
func (m *Event) Marshal() (dAtA []byte, err error) {
@ -1305,6 +1379,13 @@ func (m *EventBlockAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x12
}
if len(m.Blocks) > 0 {
for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- {
{
@ -1342,6 +1423,13 @@ func (m *EventBlockShowFullscreen) MarshalToSizedBuffer(dAtA []byte) (int, error
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x1a
}
if len(m.Blocks) > 0 {
for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- {
{
@ -1386,6 +1474,13 @@ func (m *EventBlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x12
}
if m.Changes != nil {
{
size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i])
@ -1421,6 +1516,13 @@ func (m *EventBlockFilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x1a
}
if len(m.BlockId) > 0 {
i -= len(m.BlockId)
copy(dAtA[i:], m.BlockId)
@ -1460,6 +1562,13 @@ func (m *EventBlockDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x12
}
if len(m.BlockId) > 0 {
i -= len(m.BlockId)
copy(dAtA[i:], m.BlockId)
@ -1536,6 +1645,13 @@ func (m *EventUserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x12
}
if m.Account != nil {
{
size, err := m.Account.MarshalToSizedBuffer(dAtA[:i])
@ -1571,6 +1687,13 @@ func (m *EventUserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x12
}
if m.Account != nil {
{
size, err := m.Account.MarshalToSizedBuffer(dAtA[:i])
@ -1606,6 +1729,13 @@ func (m *EventUserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error)
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x22
}
if m.Range != nil {
{
size, err := m.Range.MarshalToSizedBuffer(dAtA[:i])
@ -1660,6 +1790,13 @@ func (m *EventUserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, erro
_ = i
var l int
_ = l
if len(m.ParentId) > 0 {
i -= len(m.ParentId)
copy(dAtA[i:], m.ParentId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ParentId)))
i--
dAtA[i] = 0x1a
}
if len(m.BlockIdsArray) > 0 {
for iNdEx := len(m.BlockIdsArray) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.BlockIdsArray[iNdEx])
@ -1873,6 +2010,10 @@ func (m *EventBlockAdd) Size() (n int) {
n += 1 + l + sovEvents(uint64(l))
}
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -1892,6 +2033,10 @@ func (m *EventBlockShowFullscreen) Size() (n int) {
n += 1 + l + sovEvents(uint64(l))
}
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -1905,6 +2050,10 @@ func (m *EventBlockUpdate) Size() (n int) {
l = m.Changes.Size()
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -1924,6 +2073,10 @@ func (m *EventBlockFilesUpload) Size() (n int) {
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -1937,6 +2090,10 @@ func (m *EventBlockDelete) Size() (n int) {
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -1968,6 +2125,10 @@ func (m *EventUserBlockJoin) Size() (n int) {
l = m.Account.Size()
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -1981,6 +2142,10 @@ func (m *EventUserBlockLeft) Size() (n int) {
l = m.Account.Size()
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -2002,6 +2167,10 @@ func (m *EventUserBlockTextRange) Size() (n int) {
l = m.Range.Size()
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -2021,6 +2190,10 @@ func (m *EventUserBlockSelectRange) Size() (n int) {
n += 1 + l + sovEvents(uint64(l))
}
}
l = len(m.ParentId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
return n
}
@ -2710,6 +2883,38 @@ func (m *EventBlockAdd) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])
@ -2829,6 +3034,38 @@ func (m *EventBlockShowFullscreen) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])
@ -2918,6 +3155,38 @@ func (m *EventBlockUpdate) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])
@ -3035,6 +3304,38 @@ func (m *EventBlockFilesUpload) Unmarshal(dAtA []byte) error {
}
m.BlockId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])
@ -3120,6 +3421,38 @@ func (m *EventBlockDelete) Unmarshal(dAtA []byte) error {
}
m.BlockId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])
@ -3315,6 +3648,38 @@ func (m *EventUserBlockJoin) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])
@ -3404,6 +3769,38 @@ func (m *EventUserBlockLeft) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])
@ -3561,6 +3958,38 @@ func (m *EventUserBlockTextRange) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])
@ -3682,6 +4111,38 @@ func (m *EventUserBlockSelectRange) Unmarshal(dAtA []byte) error {
}
m.BlockIdsArray = append(m.BlockIdsArray, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowEvents
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthEvents
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthEvents
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipEvents(dAtA[iNdEx:])

View file

@ -30,7 +30,8 @@ message Rpc {
message Move {
message Request {
string blockId = 1;
bool moveForward = 2; // Move direction. If true,
bool moveForward = 2; // Move direction. If true, move forward
string parentId = 3; // id of the parent block
}
message Response {
@ -72,6 +73,7 @@ message Rpc {
message Open {
message Request {
string id = 1;
string parentId = 2; // id of the parent block
}
message Response {
@ -111,6 +113,7 @@ message Rpc {
Model.Block block = 1;
string targetId = 2;
Model.Block.Position position = 3;
string parentId = 4; // id of the parent block
}
message Response {
@ -150,6 +153,7 @@ message Rpc {
message Update {
message Request {
Change.Multiple.BlocksList changes = 1;
string parentId = 2; // id of the parent block
}
message Response {
@ -176,6 +180,7 @@ message Rpc {
message Close {
message Request {
string id = 1;
string parentId = 2; // id of the parent block
}
message Response {

View file

@ -48,6 +48,7 @@ message Event {
*/
message Add {
repeated Model.Block blocks = 1; // id -> block
string parentId = 2; // id of the parent block
}
/*
@ -57,6 +58,7 @@ message Event {
message ShowFullscreen {
string rootId = 1; // Root block id
repeated Model.Block blocks = 2; // children of the root block
string parentId = 3; // id of the parent block
}
/*
@ -66,6 +68,7 @@ message Event {
*/
message Update {
Change.Multiple.BlocksList changes = 1;
string parentId = 2; // id of the parent block
}
/**
@ -77,13 +80,15 @@ message Event {
message FilesUpload {
repeated string filePath = 1; // filepaths to the files
string blockId = 2; // if empty => create new blocks
}
string parentId = 3; // id of the parent block
}
/*
*
*/
message Delete {
string blockId = 1;
string parentId = 2; // id of the parent block
}
}
@ -98,6 +103,7 @@ message Event {
*/
message Join {
Account account = 1; // Account of the user, that opened a block
string parentId = 2; // id of the parent block
}
/**
@ -108,6 +114,7 @@ message Event {
*/
message Left {
Account account = 1; // Account of the user, that left the block
string parentId = 2; // id of the parent block
}
/**
@ -120,6 +127,7 @@ message Event {
Account account = 1; // Account of the user, that selected a text
string blockId = 2; // Id of the text block, that have a selection
Model.Range range = 3; // Range of the selection
string parentId = 4; // id of the parent block
}
/**
@ -131,6 +139,7 @@ message Event {
message SelectRange {
Account account = 1; // Account of the user, that selected blocks
repeated string blockIdsArray = 2; // Ids of selected blocks.
string parentId = 3; // id of the parent block
}
}
}

View file

@ -19,6 +19,9 @@ service ClientCommands {
rpc BlockOpen (anytype.Rpc.Block.Open.Request) returns (anytype.Rpc.Block.Open.Response);
rpc BlockCreate (anytype.Rpc.Block.Create.Request) returns (anytype.Rpc.Block.Create.Response);
rpc BlockUpdate (anytype.Rpc.Block.Update.Request) returns (anytype.Rpc.Block.Update.Response);
// TODO: rpc BlockDelete (anytype.Rpc.Block.Delete.Request) returns (anytype.Rpc.Block.Delete.Response);
rpc BlockClose (anytype.Rpc.Block.Close.Request) returns (anytype.Rpc.Block.Close.Response);
rpc BlockHistoryMove (anytype.Rpc.Block.History.Move.Request) returns (anytype.Rpc.Block.History.Move.Response);
// rpc BlockFilesUpload (Block Rpc.History.Move.Request) returns (BlockRpc..History Move.Response);
// TODO: rpc BlockFilesUpload () returns ();
}