mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
Tech | MW 0.16.03 (#1853)
* update proto * update version * ci * Update check.yml
This commit is contained in:
parent
9c2330aa09
commit
ecfe6baeaf
7 changed files with 38 additions and 2 deletions
|
@ -31,7 +31,8 @@ data class ObjectType(
|
|||
FILE(6),
|
||||
DASHBOARD(7),
|
||||
IMAGE(8),
|
||||
DATABASE(20),
|
||||
NOTE(9),
|
||||
DATABASE(20)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -87,7 +87,7 @@ ext {
|
|||
|
||||
// Anytype
|
||||
|
||||
middleware_version = 'v0.16.0'
|
||||
middleware_version = 'v0.16.3'
|
||||
|
||||
mainApplication = [
|
||||
kotlin: "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
|
||||
|
|
|
@ -422,6 +422,7 @@ fun MOTypeLayout.toCoreModels(): ObjectType.Layout = when (this) {
|
|||
MOTypeLayout.dashboard -> ObjectType.Layout.DASHBOARD
|
||||
MOTypeLayout.database -> ObjectType.Layout.DATABASE
|
||||
MOTypeLayout.image -> ObjectType.Layout.IMAGE
|
||||
MOTypeLayout.note -> ObjectType.Layout.NOTE
|
||||
}
|
||||
|
||||
fun MRelationDataSource.source(): Relation.Source = when (this) {
|
||||
|
|
|
@ -313,6 +313,7 @@ fun ObjectType.Layout.toMiddlewareModel(): MOTypeLayout = when (this) {
|
|||
ObjectType.Layout.DASHBOARD -> MOTypeLayout.dashboard
|
||||
ObjectType.Layout.DATABASE -> MOTypeLayout.database
|
||||
ObjectType.Layout.IMAGE -> MOTypeLayout.image
|
||||
ObjectType.Layout.NOTE -> MOTypeLayout.note
|
||||
}
|
||||
|
||||
fun Relation.Format.toMiddlewareModel(): MRelationFormat = when (this) {
|
||||
|
|
|
@ -1398,6 +1398,31 @@ message Rpc {
|
|||
}
|
||||
}
|
||||
}
|
||||
message ViewSetPosition {
|
||||
message Request {
|
||||
string contextId = 1; // id of the context block
|
||||
string blockId = 2; // id of the dataview
|
||||
string viewId = 4; // id of the view to remove
|
||||
uint32 position = 5; // index of view position (0 - means first)
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
ResponseEvent event = 2;
|
||||
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
|
||||
enum Code {
|
||||
NULL = 0;
|
||||
UNKNOWN_ERROR = 1;
|
||||
BAD_INPUT = 2;
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// set the current active view (persisted only within a session)
|
||||
message ViewSetActive {
|
||||
|
|
|
@ -55,6 +55,7 @@ message Event {
|
|||
Block.Dataview.SourceSet blockDataviewSourceSet = 35;
|
||||
Block.Dataview.ViewSet blockDataviewViewSet = 19;
|
||||
Block.Dataview.ViewDelete blockDataviewViewDelete = 20;
|
||||
Block.Dataview.ViewOrder blockDataviewViewOrder = 29;
|
||||
Block.Dataview.RelationDelete blockDataviewRelationDelete = 24;
|
||||
Block.Dataview.RelationSet blockDataviewRelationSet = 23;
|
||||
|
||||
|
@ -573,6 +574,12 @@ message Event {
|
|||
string viewId = 2; // view id to remove
|
||||
}
|
||||
|
||||
|
||||
message ViewOrder {
|
||||
string id = 1; // dataview block's id
|
||||
repeated string viewIds = 2; // view ids in new order
|
||||
}
|
||||
|
||||
message SourceSet {
|
||||
string id = 1; // dataview block's id
|
||||
repeated string source = 2;
|
||||
|
|
|
@ -452,6 +452,7 @@ message ObjectType {
|
|||
file = 6;
|
||||
dashboard = 7;
|
||||
image = 8;
|
||||
note = 9;
|
||||
|
||||
database = 20; // to be released later
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue