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

Rename: parentId -> contextId

This commit is contained in:
Kirill 2019-11-13 13:33:05 +01:00
parent 6cdcdb3109
commit 169c4f0f15
No known key found for this signature in database
GPG key ID: 52B176BB96D272ED
5 changed files with 364 additions and 364 deletions

View file

@ -593,7 +593,7 @@ Middleware-to-front-end response for an account creation request, that can conta
<a name="anytype.Rpc.Account.Recover.Request"></a>
### Rpc.Account.Recover.Request
Front end to middleware request-to-start-search of an accounts for a recovered mnemonic.
Front end to middleware request-to-start-search of an accounts for a recovered mnemonic.
Each of an account that would be found will come with an AccountAdd event
@ -704,7 +704,7 @@ Namespace, that agregates subtopics and actions, that relates to blocks.
<a name="anytype.Rpc.Block.Close"></a>
### Rpc.Block.Close
Block.Close it means unsubscribe from a block.
Block.Close it means unsubscribe from a block.
Precondition: block should be opened.
@ -721,7 +721,7 @@ Precondition: block should be opened.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| id | [string](#string) | | |
| parentId | [string](#string) | | id of the parent block |
| contextId | [string](#string) | | id of the parent block |
@ -769,7 +769,7 @@ Create a Smart/Internal block. Request can contain a block with a content, or it
2. Front -&gt; MW: Rpc.Block.Close.Request(block: dashboard.id)
3. Front &lt;- MW: Rpc.Block.Close.Response(err)
4. Front &lt;- MW: Rpc.Block.Create.Response(page.id)
5. Front &lt;- MW: Rpc.Block.Open.Response(err)
5. Front &lt;- MW: Rpc.Block.Open.Response(err)
6. Front &lt;- MW: Event.Block.Show(page)
1B. Create Page on a Page
1. Front -&gt; MW: Rpc.Block.Create.Request(targetId:dashboard.id, position:after, block: emtpy block with page content and id = &#34;&#34;)
@ -792,7 +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 |
| contextId | [string](#string) | | id of the parent block |
@ -868,7 +868,7 @@ Block history: switch between versions (lib context: switch block head), move fo
| ----- | ---- | ----- | ----------- |
| blockId | [string](#string) | | |
| moveForward | [bool](#bool) | | Move direction. If true, move forward |
| parentId | [string](#string) | | id of the parent block |
| contextId | [string](#string) | | id of the parent block |
@ -918,7 +918,7 @@ Works with a smart blocks (block-organizers, like page, dashboard etc)
1B. User clicks on a page icon on the dashboard.
1. Front -&gt; MW: Rpc.Block.Close.Request(dashboard.id)
Get close response first, then open request:
2. MW -&gt; Front: Rpc.Block.Close.Response(err)
2. MW -&gt; Front: Rpc.Block.Close.Response(err)
3. Front -&gt; MW: Rpc.Block.Open.Request(page.id)
4. MW -&gt; Front: BlockShow(&lt;page, blocks&gt;)
5. MW -&gt; Front: Rpc.Block.Open.Response(err)
@ -939,7 +939,7 @@ Image/Video/File blocks then:
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| id | [string](#string) | | |
| parentId | [string](#string) | | id of the parent block |
| contextId | [string](#string) | | id of the parent block |
@ -1009,7 +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 |
| contextId | [string](#string) | | id of the parent block |
@ -1836,7 +1836,7 @@ Message, that will be sent to the front on each account found after an AccountRe
### Event.Block.Add
Event to show internal blocks on a client.
Example Scenarios
Example Scenarios
A. Block Creation
1. Block A have been created on a client C1
2. Client C2 receives Event.Block.Add(Block A), Event.Block.Update(Page.children)
@ -1850,7 +1850,7 @@ B. Partial block load
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| blocks | [Model.Block](#anytype.Model.Block) | repeated | id -&gt; block |
| parentId | [string](#string) | | id of the parent block |
| contextId | [string](#string) | | id of the parent block |
@ -1866,7 +1866,7 @@ B. Partial block load
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| blockId | [string](#string) | | |
| parentId | [string](#string) | | id of the parent block |
| contextId | [string](#string) | | id of the parent block |
@ -1886,7 +1886,7 @@ Precondition: user A opened a block
| ----- | ---- | ----- | ----------- |
| filePath | [string](#string) | repeated | filepaths to the files |
| blockId | [string](#string) | | if empty =&gt; create new blocks |
| parentId | [string](#string) | | id of the parent block |
| contextId | [string](#string) | | id of the parent block |
@ -1904,7 +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 |
| contextId | [string](#string) | | id of the parent block |
@ -1922,7 +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 |
| contextId | [string](#string) | | id of the parent block |
@ -1961,7 +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 |
| contextId | [string](#string) | | id of the parent block |
@ -1980,7 +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 |
| contextId | [string](#string) | | id of the parent block |
@ -2000,7 +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 |
| contextId | [string](#string) | | id of the parent block |
@ -2012,7 +2012,7 @@ Precondition: user A and user B opened the same block
### Event.User.Block.TextRange
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
1. User B sets cursor or selects a text region into a text block
2. User A receives a message about p.1
@ -2021,7 +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 |
| contextId | [string](#string) | | id of the parent block |

View file

@ -726,7 +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"`
ContextId string `protobuf:"bytes,3,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *RpcBlockHistoryMoveRequest) Reset() { *m = RpcBlockHistoryMoveRequest{} }
@ -776,9 +776,9 @@ func (m *RpcBlockHistoryMoveRequest) GetMoveForward() bool {
return false
}
func (m *RpcBlockHistoryMoveRequest) GetParentId() string {
func (m *RpcBlockHistoryMoveRequest) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -932,8 +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"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ContextId string `protobuf:"bytes,2,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *RpcBlockOpenRequest) Reset() { *m = RpcBlockOpenRequest{} }
@ -976,9 +976,9 @@ func (m *RpcBlockOpenRequest) GetId() string {
return ""
}
func (m *RpcBlockOpenRequest) GetParentId() string {
func (m *RpcBlockOpenRequest) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -1130,10 +1130,10 @@ func (m *RpcBlockCreate) XXX_DiscardUnknown() {
var xxx_messageInfo_RpcBlockCreate proto.InternalMessageInfo
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"`
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"`
ContextId string `protobuf:"bytes,4,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *RpcBlockCreateRequest) Reset() { *m = RpcBlockCreateRequest{} }
@ -1190,9 +1190,9 @@ func (m *RpcBlockCreateRequest) GetPosition() ModelBlockPosition {
return ModelBlock_BEFORE
}
func (m *RpcBlockCreateRequest) GetParentId() string {
func (m *RpcBlockCreateRequest) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -1353,8 +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"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
Changes *ChangeMultipleBlocksList `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
ContextId string `protobuf:"bytes,2,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *RpcBlockUpdateRequest) Reset() { *m = RpcBlockUpdateRequest{} }
@ -1397,9 +1397,9 @@ func (m *RpcBlockUpdateRequest) GetChanges() *ChangeMultipleBlocksList {
return nil
}
func (m *RpcBlockUpdateRequest) GetParentId() string {
func (m *RpcBlockUpdateRequest) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -1540,8 +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"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ContextId string `protobuf:"bytes,2,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *RpcBlockCloseRequest) Reset() { *m = RpcBlockCloseRequest{} }
@ -1584,9 +1584,9 @@ func (m *RpcBlockCloseRequest) GetId() string {
return ""
}
func (m *RpcBlockCloseRequest) GetParentId() string {
func (m *RpcBlockCloseRequest) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -4007,108 +4007,108 @@ func init() {
func init() { proto.RegisterFile("commands.proto", fileDescriptor_0dff099eb2e3dfdb) }
var fileDescriptor_0dff099eb2e3dfdb = []byte{
// 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,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0xb8, 0xbb, 0x92, 0xbc, 0x18, 0xf5, 0x4b, 0xe1, 0xce, 0x09, 0xf0, 0xd1, 0xb8, 0x02, 0xb8, 0x39,
0xdb, 0x5b, 0x80, 0x7d, 0x90, 0x32, 0xc2, 0xef, 0x16, 0xdc, 0xe9, 0x18, 0x4f, 0x8a, 0x1e, 0xde,
0xee, 0xaa, 0x14, 0xe9, 0x7d, 0x5f, 0xdd, 0x98, 0x8b, 0x5c, 0xbb, 0x31, 0x17, 0xf9, 0xf5, 0xc6,
0x5c, 0xe4, 0x95, 0x9b, 0x73, 0x13, 0xd7, 0x6e, 0xce, 0x4d, 0xfc, 0x74, 0x73, 0x6e, 0xe2, 0x29,
0xaa, 0xb9, 0xbe, 0x1e, 0x77, 0xff, 0xe0, 0x3f, 0xf9, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdf,
0xbe, 0x77, 0x41, 0x18, 0x18, 0x00, 0x00,
// 1615 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x98, 0x4b, 0x8c, 0xdb, 0xd4,
0x1a, 0xc7, 0x27, 0x8e, 0xf3, 0xfa, 0xe6, 0x71, 0x5d, 0xab, 0xb7, 0x9a, 0x9e, 0x3b, 0x77, 0x5a,
0x4d, 0xef, 0xed, 0x9d, 0x4e, 0x5b, 0xb7, 0x9a, 0x5e, 0x84, 0x8a, 0x28, 0xad, 0x93, 0x38, 0x33,
0x86, 0xc4, 0x8e, 0x4e, 0x9c, 0x19, 0x60, 0x63, 0x79, 0x92, 0x33, 0x19, 0x83, 0x13, 0x87, 0xc4,
0x9d, 0xd2, 0xee, 0x58, 0x20, 0x90, 0xd8, 0xf0, 0x10, 0xab, 0x22, 0x60, 0x0d, 0x05, 0xb1, 0x41,
0x45, 0x48, 0x08, 0x89, 0xb2, 0x00, 0x24, 0xa4, 0x02, 0x12, 0x62, 0x03, 0xea, 0x63, 0x85, 0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, 0x6e, 0xcd, 0x47, 0x5e, 0xbe, 0x3d, 0x3f, 0x71, 0xfd,
0xf6, 0xfc, 0xc4, 0x0f, 0xb7, 0xe7, 0x27, 0x9e, 0xa4, 0x9a, 0x1b, 0x1b, 0x71, 0xe7, 0xaf, 0xfe,
0x53, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xa6, 0x81, 0x19, 0x2d, 0x22, 0x18, 0x00, 0x00,
}
func (m *Rpc) Marshal() (dAtA []byte, err error) {
@ -4223,10 +4223,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x1a
}
@ -4363,10 +4363,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x12
}
@ -4493,10 +4493,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x22
}
@ -4647,10 +4647,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x12
}
@ -4782,10 +4782,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x12
}
@ -6468,7 +6468,7 @@ func (m *RpcBlockHistoryMoveRequest) Size() (n int) {
if m.MoveForward {
n += 2
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
@ -6523,7 +6523,7 @@ func (m *RpcBlockOpenRequest) Size() (n int) {
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
@ -6585,7 +6585,7 @@ func (m *RpcBlockCreateRequest) Size() (n int) {
if m.Position != 0 {
n += 1 + sovCommands(uint64(m.Position))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
@ -6644,7 +6644,7 @@ func (m *RpcBlockUpdateRequest) Size() (n int) {
l = m.Changes.Size()
n += 1 + l + sovCommands(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
@ -6699,7 +6699,7 @@ func (m *RpcBlockCloseRequest) Size() (n int) {
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovCommands(uint64(l))
}
@ -7686,7 +7686,7 @@ 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)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -7714,7 +7714,7 @@ func (m *RpcBlockHistoryMoveRequest) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -8049,7 +8049,7 @@ func (m *RpcBlockOpenRequest) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -8077,7 +8077,7 @@ func (m *RpcBlockOpenRequest) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -8467,7 +8467,7 @@ func (m *RpcBlockCreateRequest) Unmarshal(dAtA []byte) error {
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -8495,7 +8495,7 @@ func (m *RpcBlockCreateRequest) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -8866,7 +8866,7 @@ func (m *RpcBlockUpdateRequest) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -8894,7 +8894,7 @@ func (m *RpcBlockUpdateRequest) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -9229,7 +9229,7 @@ func (m *RpcBlockCloseRequest) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -9257,7 +9257,7 @@ func (m *RpcBlockCloseRequest) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex

View file

@ -351,8 +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"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
Blocks []*ModelBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
ContextId string `protobuf:"bytes,2,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventBlockAdd) Reset() { *m = EventBlockAdd{} }
@ -395,9 +395,9 @@ func (m *EventBlockAdd) GetBlocks() []*ModelBlock {
return nil
}
func (m *EventBlockAdd) GetParentId() string {
func (m *EventBlockAdd) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -406,9 +406,9 @@ func (m *EventBlockAdd) GetParentId() string {
// 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"`
ParentId string `protobuf:"bytes,3,opt,name=parentId,proto3" json:"parentId,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"`
ContextId string `protobuf:"bytes,3,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventBlockShowFullscreen) Reset() { *m = EventBlockShowFullscreen{} }
@ -458,9 +458,9 @@ func (m *EventBlockShowFullscreen) GetBlocks() []*ModelBlock {
return nil
}
func (m *EventBlockShowFullscreen) GetParentId() string {
func (m *EventBlockShowFullscreen) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -470,8 +470,8 @@ func (m *EventBlockShowFullscreen) GetParentId() string {
// 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"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
Changes *ChangeMultipleBlocksList `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
ContextId string `protobuf:"bytes,2,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventBlockUpdate) Reset() { *m = EventBlockUpdate{} }
@ -514,9 +514,9 @@ func (m *EventBlockUpdate) GetChanges() *ChangeMultipleBlocksList {
return nil
}
func (m *EventBlockUpdate) GetParentId() string {
func (m *EventBlockUpdate) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -527,9 +527,9 @@ func (m *EventBlockUpdate) GetParentId() string {
// 1. User A drops a set of files/pictures/videos
// 2. User A creates a MediaBlock and drops a single media, that corresponds to its type.
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"`
FilePath []string `protobuf:"bytes,1,rep,name=filePath,proto3" json:"filePath,omitempty"`
BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"`
ContextId string `protobuf:"bytes,3,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventBlockFilesUpload) Reset() { *m = EventBlockFilesUpload{} }
@ -579,9 +579,9 @@ func (m *EventBlockFilesUpload) GetBlockId() string {
return ""
}
func (m *EventBlockFilesUpload) GetParentId() string {
func (m *EventBlockFilesUpload) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -589,8 +589,8 @@ func (m *EventBlockFilesUpload) GetParentId() string {
//
//
type EventBlockDelete struct {
BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"`
ContextId string `protobuf:"bytes,2,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventBlockDelete) Reset() { *m = EventBlockDelete{} }
@ -633,9 +633,9 @@ func (m *EventBlockDelete) GetBlockId() string {
return ""
}
func (m *EventBlockDelete) GetParentId() string {
func (m *EventBlockDelete) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -718,8 +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"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
ContextId string `protobuf:"bytes,2,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventUserBlockJoin) Reset() { *m = EventUserBlockJoin{} }
@ -762,9 +762,9 @@ func (m *EventUserBlockJoin) GetAccount() *EventAccount {
return nil
}
func (m *EventUserBlockJoin) GetParentId() string {
func (m *EventUserBlockJoin) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -775,8 +775,8 @@ func (m *EventUserBlockJoin) GetParentId() string {
// 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"`
ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
ContextId string `protobuf:"bytes,2,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventUserBlockLeft) Reset() { *m = EventUserBlockLeft{} }
@ -819,9 +819,9 @@ func (m *EventUserBlockLeft) GetAccount() *EventAccount {
return nil
}
func (m *EventUserBlockLeft) GetParentId() string {
func (m *EventUserBlockLeft) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -832,10 +832,10 @@ func (m *EventUserBlockLeft) GetParentId() string {
// 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"`
ParentId string `protobuf:"bytes,4,opt,name=parentId,proto3" json:"parentId,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"`
ContextId string `protobuf:"bytes,4,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventUserBlockTextRange) Reset() { *m = EventUserBlockTextRange{} }
@ -892,9 +892,9 @@ func (m *EventUserBlockTextRange) GetRange() *ModelRange {
return nil
}
func (m *EventUserBlockTextRange) GetParentId() string {
func (m *EventUserBlockTextRange) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -907,7 +907,7 @@ func (m *EventUserBlockTextRange) GetParentId() string {
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"`
ContextId string `protobuf:"bytes,3,opt,name=contextId,proto3" json:"contextId,omitempty"`
}
func (m *EventUserBlockSelectRange) Reset() { *m = EventUserBlockSelectRange{} }
@ -957,9 +957,9 @@ func (m *EventUserBlockSelectRange) GetBlockIdsArray() []string {
return nil
}
func (m *EventUserBlockSelectRange) GetParentId() string {
func (m *EventUserBlockSelectRange) GetContextId() string {
if m != nil {
return m.ParentId
return m.ContextId
}
return ""
}
@ -985,50 +985,50 @@ func init() {
func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) }
var fileDescriptor_8f22242cb04491f9 = []byte{
// 673 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xcf, 0x6b, 0xd4, 0x40,
0x14, 0xc7, 0x93, 0x66, 0x77, 0xd3, 0x7d, 0xdb, 0xf6, 0x10, 0x4b, 0x19, 0xa2, 0x84, 0xe2, 0x0f,
0x28, 0x22, 0x41, 0x2a, 0x78, 0x53, 0xd9, 0x5a, 0x4b, 0x94, 0x56, 0x65, 0xda, 0x45, 0xd4, 0x83,
0xa4, 0xc9, 0xb4, 0x5d, 0x4c, 0x93, 0x90, 0xcc, 0x6a, 0x7b, 0xf4, 0xe0, 0xdd, 0xff, 0xc0, 0x7f,
0xc7, 0x63, 0xf1, 0xa4, 0x37, 0xd9, 0xfe, 0x23, 0x32, 0x2f, 0xb3, 0xd3, 0x24, 0x64, 0x57, 0x16,
0xbc, 0xf5, 0xbd, 0x7e, 0xdf, 0xe7, 0xcd, 0xcb, 0x7c, 0xdf, 0x2c, 0x2c, 0xb1, 0x4f, 0x2c, 0xe6,
0xb9, 0x9b, 0x66, 0x09, 0x4f, 0x2c, 0xd3, 0x8f, 0xcf, 0xf9, 0x79, 0xca, 0xec, 0xa5, 0xd3, 0x24,
0x64, 0x91, 0x4c, 0xdb, 0xcb, 0xc1, 0x89, 0x1f, 0x1f, 0x33, 0x19, 0xde, 0xfc, 0xba, 0x02, 0xed,
0x67, 0xa2, 0xcc, 0x7a, 0x02, 0x3d, 0x3f, 0x08, 0x92, 0x51, 0xcc, 0xf7, 0x4f, 0x92, 0xcf, 0x44,
0x5f, 0xd7, 0x37, 0x7a, 0x9b, 0xd7, 0x5d, 0x49, 0x71, 0x51, 0xe4, 0xf6, 0x0b, 0x85, 0x2b, 0x24,
0x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, 0x01, 0x2d, 0x61, 0x54, 0xfb, 0xb7, 0xba, 0xdd, 0x03, 0x68, 0xe1, 0xd6, 0x94,
0x1c, 0xa2, 0xd7, 0x1c, 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,
// 677 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xcf, 0x4f, 0xd4, 0x40,
0x14, 0xc7, 0x5b, 0xba, 0xbb, 0xa5, 0x6f, 0x81, 0xc3, 0x48, 0xc8, 0xa4, 0x92, 0x86, 0xf8, 0x23,
0x21, 0xc6, 0x34, 0x06, 0x13, 0x6f, 0x46, 0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x8f, 0xad, 0x7a, 0x8f, 0x9f, 0x75, 0xe8, 0x96, 0xd7, 0xfe, 0xea, 0x5d, 0xde, 0x82, 0x79, 0xd5,
0x56, 0xd6, 0x4b, 0x53, 0xef, 0x04, 0xf7, 0xc0, 0x62, 0xd5, 0xe0, 0xe5, 0x76, 0x59, 0xb7, 0xc0,
0x3c, 0xe2, 0x59, 0xe6, 0x1d, 0xf0, 0xf5, 0xe5, 0xef, 0x67, 0x8e, 0x7e, 0x7a, 0xe6, 0xe8, 0xbf,
0xce, 0x1c, 0xfd, 0xcb, 0xb9, 0xa3, 0x9d, 0x9e, 0x3b, 0xda, 0x8f, 0x73, 0x47, 0x7b, 0x37, 0x93,
0xec, 0xed, 0x75, 0xf0, 0xe7, 0xf3, 0xfe, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0xfd, 0x0a,
0xe1, 0x74, 0x07, 0x00, 0x00,
}
func (m *Event) Marshal() (dAtA []byte, err error) {
@ -1379,10 +1379,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x12
}
@ -1423,10 +1423,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x1a
}
@ -1474,10 +1474,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x12
}
@ -1516,10 +1516,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x1a
}
@ -1562,10 +1562,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x12
}
@ -1645,10 +1645,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x12
}
@ -1687,10 +1687,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x12
}
@ -1729,10 +1729,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x22
}
@ -1790,10 +1790,10 @@ 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)))
if len(m.ContextId) > 0 {
i -= len(m.ContextId)
copy(dAtA[i:], m.ContextId)
i = encodeVarintEvents(dAtA, i, uint64(len(m.ContextId)))
i--
dAtA[i] = 0x1a
}
@ -2010,7 +2010,7 @@ func (m *EventBlockAdd) Size() (n int) {
n += 1 + l + sovEvents(uint64(l))
}
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2033,7 +2033,7 @@ func (m *EventBlockShowFullscreen) Size() (n int) {
n += 1 + l + sovEvents(uint64(l))
}
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2050,7 +2050,7 @@ func (m *EventBlockUpdate) Size() (n int) {
l = m.Changes.Size()
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2073,7 +2073,7 @@ func (m *EventBlockFilesUpload) Size() (n int) {
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2090,7 +2090,7 @@ func (m *EventBlockDelete) Size() (n int) {
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2125,7 +2125,7 @@ func (m *EventUserBlockJoin) Size() (n int) {
l = m.Account.Size()
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2142,7 +2142,7 @@ func (m *EventUserBlockLeft) Size() (n int) {
l = m.Account.Size()
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2167,7 +2167,7 @@ func (m *EventUserBlockTextRange) Size() (n int) {
l = m.Range.Size()
n += 1 + l + sovEvents(uint64(l))
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2190,7 +2190,7 @@ func (m *EventUserBlockSelectRange) Size() (n int) {
n += 1 + l + sovEvents(uint64(l))
}
}
l = len(m.ParentId)
l = len(m.ContextId)
if l > 0 {
n += 1 + l + sovEvents(uint64(l))
}
@ -2885,7 +2885,7 @@ func (m *EventBlockAdd) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -2913,7 +2913,7 @@ func (m *EventBlockAdd) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -3036,7 +3036,7 @@ func (m *EventBlockShowFullscreen) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -3064,7 +3064,7 @@ func (m *EventBlockShowFullscreen) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -3157,7 +3157,7 @@ func (m *EventBlockUpdate) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -3185,7 +3185,7 @@ func (m *EventBlockUpdate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -3306,7 +3306,7 @@ func (m *EventBlockFilesUpload) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -3334,7 +3334,7 @@ func (m *EventBlockFilesUpload) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -3423,7 +3423,7 @@ func (m *EventBlockDelete) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -3451,7 +3451,7 @@ func (m *EventBlockDelete) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -3650,7 +3650,7 @@ func (m *EventUserBlockJoin) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -3678,7 +3678,7 @@ func (m *EventUserBlockJoin) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -3771,7 +3771,7 @@ func (m *EventUserBlockLeft) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -3799,7 +3799,7 @@ func (m *EventUserBlockLeft) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -3960,7 +3960,7 @@ func (m *EventUserBlockTextRange) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -3988,7 +3988,7 @@ func (m *EventUserBlockTextRange) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@ -4113,7 +4113,7 @@ func (m *EventUserBlockSelectRange) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -4141,7 +4141,7 @@ func (m *EventUserBlockSelectRange) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ParentId = string(dAtA[iNdEx:postIndex])
m.ContextId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex

View file

@ -9,7 +9,7 @@ import "changes.proto";
* Rpc is a namespace, that agregates all of the service commands between client and middleware.
* Structure: Topic > Subtopic > Subsub... > Action > (Request, Response).
* Request message from a client.
* Response message from a middleware.
* Response message from a middleware.
*/
message Rpc {
/*
@ -27,11 +27,11 @@ message Rpc {
* 6. MW -> Front: BlockShow(block.prevVersion)
*/
message History {
message Move {
message Move {
message Request {
string blockId = 1;
bool moveForward = 2; // Move direction. If true, move forward
string parentId = 3; // id of the parent block
string contextId = 3; // id of the parent block
}
message Response {
@ -48,7 +48,7 @@ message Rpc {
CAN_NOT_MOVE = 3;
// ...
}
}
}
}
}
}
@ -63,17 +63,17 @@ message Rpc {
* 1B. User clicks on a page icon on the dashboard.
* 1. Front -> MW: Rpc.Block.Close.Request(dashboard.id)
* Get close response first, then open request:
* 2. MW -> Front: Rpc.Block.Close.Response(err)
* 2. MW -> Front: Rpc.Block.Close.Response(err)
* 3. Front -> MW: Rpc.Block.Open.Request(page.id)
* 4. MW -> Front: BlockShow(<page, blocks>)
* 5. MW -> Front: Rpc.Block.Open.Response(err)
* Image/Video/File blocks then:
* 6. MW -> Front: BlockShow(<blocks>)
*/
message Open {
message Open {
message Request {
string id = 1;
string parentId = 2; // id of the parent block
string contextId = 2; // id of the parent block
}
message Response {
@ -101,7 +101,7 @@ message Rpc {
* 2. Front -> MW: Rpc.Block.Close.Request(block: dashboard.id)
* 3. Front <- MW: Rpc.Block.Close.Response(err)
* 4. Front <- MW: Rpc.Block.Create.Response(page.id)
* 5. Front <- MW: Rpc.Block.Open.Response(err)
* 5. Front <- MW: Rpc.Block.Open.Response(err)
* 6. Front <- MW: Event.Block.Show(page)
* 1B. Create Page on a Page
* 1. Front -> MW: Rpc.Block.Create.Request(targetId:dashboard.id, position:after, block: emtpy block with page content and id = "")
@ -113,7 +113,7 @@ message Rpc {
Model.Block block = 1;
string targetId = 2;
Model.Block.Position position = 3;
string parentId = 4; // id of the parent block
string contextId = 4; // id of the parent block
}
message Response {
@ -133,7 +133,7 @@ message Rpc {
}
}
}
/*
* Update a Smart/Internal block. Request can contain a content/field/permission/children update
* **Example scenarios**
@ -149,11 +149,11 @@ message Rpc {
* 1. TODO
* Case F. Update children of a layout block on a page
* 1. TODO
*/
*/
message Update {
message Request {
Change.Multiple.BlocksList changes = 1;
string parentId = 2; // id of the parent block
string contextId = 2; // id of the parent block
}
message Response {
@ -174,13 +174,13 @@ message Rpc {
}
/*
* Block.Close it means unsubscribe from a block.
* Block.Close it means unsubscribe from a block.
* Precondition: block should be opened.
*/
message Close {
message Request {
string id = 1;
string parentId = 2; // id of the parent block
string contextId = 2; // id of the parent block
}
message Response {
@ -198,7 +198,7 @@ message Rpc {
}
}
}
}
}
}
/*
@ -272,7 +272,7 @@ message Rpc {
message Account {
message Create {
/**
* Front end to middleware request-to-create-an account
* Front end to middleware request-to-create-an account
*/
message Request {
string name = 1; // Account name
@ -308,7 +308,7 @@ message Rpc {
message Recover {
/**
* Front end to middleware request-to-start-search of an accounts for a recovered mnemonic.
* Front end to middleware request-to-start-search of an accounts for a recovered mnemonic.
* Each of an account that would be found will come with an AccountAdd event
*/
message Request {}
@ -330,7 +330,7 @@ message Rpc {
NO_ACCOUNTS_FOUND = 101;
NEED_TO_RECOVER_WALLET_FIRST = 102;
FAILED_TO_CREATE_LOCAL_REPO = 103;
LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104;
LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104;
FAILED_TO_RUN_NODE = 105;
WALLET_RECOVER_NOT_PERFORMED = 106;
}
@ -443,7 +443,7 @@ message Rpc {
}
}
}
}
}
/*
* Namespace, that agregates subtopics and actions to work with IPFS directly (get files, blobs, images, etc)
@ -534,6 +534,6 @@ message Rpc {
}
}
}
}
}
}
}

View file

@ -5,11 +5,11 @@ option go_package = "pb";
import "models.proto";
import "changes.proto";
/*
/*
* Event type of message, that could be sent from a middleware to the corresponding front-end.
*/
message Event {
oneof message {
oneof message {
Account.Show accountShow = 1; // show wallet's accounts that were loaded from local or remote source
Block.Add blockAdd = 2;
Block.ShowFullscreen blockShowFullscreen = 3;
@ -24,7 +24,7 @@ message Event {
Block.FilesUpload filesUpload = 10;
}
message Account {
message Account {
/**
* Message, that will be sent to the front on each account found after an AccountRecoverRequest
*/
@ -34,9 +34,9 @@ message Event {
}
}
message Block {
/*
/*
* Event to show internal blocks on a client.
* Example Scenarios
* Example Scenarios
* A. Block Creation
* 1. Block A have been created on a client C1
* 2. Client C2 receives Event.Block.Add(Block A), Event.Block.Update(Page.children)
@ -45,10 +45,10 @@ message Event {
* 2. M -> F: ShowFullScreen(Root, blocks1-50)
* 3. M -> F: Block.Add(blocks51-100)
* 3. M -> F: Block.Add(blocks101-133)
*/
*/
message Add {
repeated Model.Block blocks = 1; // id -> block
string parentId = 2; // id of the parent block
string contextId = 2; // id of the parent block
}
/*
@ -58,17 +58,17 @@ 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
string contextId = 3; // id of the parent block
}
/*
* Updates from different clients, or from the local middleware
* Example scenarios:
* Page opened, TextBlock updated on a different client, BlockUpdate(changes)
*/
*/
message Update {
Change.Multiple.BlocksList changes = 1;
string parentId = 2; // id of the parent block
string contextId = 2; // id of the parent block
}
/**
@ -80,16 +80,16 @@ 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
string contextId = 3; // id of the parent block
}
/*
*
*
*/
message Delete {
string blockId = 1;
string parentId = 2; // id of the parent block
}
string contextId = 2; // id of the parent block
}
}
message User {
@ -100,10 +100,10 @@ message Event {
* Precondition: user A opened a block
* 1. User B opens the same block
* 2. User A receives a message about p.1
*/
*/
message Join {
Account account = 1; // Account of the user, that opened a block
string parentId = 2; // id of the parent block
string contextId = 2; // id of the parent block
}
/**
@ -114,20 +114,20 @@ message Event {
*/
message Left {
Account account = 1; // Account of the user, that left the block
string parentId = 2; // id of the parent block
string contextId = 2; // id of the parent block
}
/**
* 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
* 1. User B sets cursor or selects a text region into a text block
* 2. User A receives a message about p.1
*/
message TextRange {
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
string contextId = 4; // id of the parent block
}
/**
@ -139,7 +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
string contextId = 3; // id of the parent block
}
}
}