mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2910 Protocol | Enhancement | MW 0.36.0-rc7 (#1642)
This commit is contained in:
parent
17eef47ca5
commit
3509b3a203
7 changed files with 12 additions and 25 deletions
|
@ -52,7 +52,8 @@ data class ObjectType(
|
|||
PARTICIPANT(19),
|
||||
PDF(20),
|
||||
CHAT(21),
|
||||
CHAT_DERIVED(22);
|
||||
CHAT_DERIVED(22),
|
||||
TAG(23);
|
||||
|
||||
fun isProfileOrParticipant() = this == PROFILE || this == PARTICIPANT
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[versions]
|
||||
middlewareVersion = "v0.36.0-rc6"
|
||||
middlewareVersion = "v0.36.0-rc7"
|
||||
kotlinVersion = '2.0.0'
|
||||
kspVersion = "2.0.0-1.0.22"
|
||||
|
||||
|
|
|
@ -696,6 +696,7 @@ fun MOTypeLayout.toCoreModels(): ObjectType.Layout = when (this) {
|
|||
MOTypeLayout.pdf -> ObjectType.Layout.PDF
|
||||
MOTypeLayout.chat -> ObjectType.Layout.CHAT
|
||||
MOTypeLayout.chatDerived -> ObjectType.Layout.CHAT_DERIVED
|
||||
MOTypeLayout.tag -> ObjectType.Layout.TAG
|
||||
}
|
||||
|
||||
fun MRelationDataSource.source(): Relation.Source = when (this) {
|
||||
|
|
|
@ -499,6 +499,7 @@ fun ObjectType.Layout.toMiddlewareModel(): MOTypeLayout = when (this) {
|
|||
ObjectType.Layout.PDF -> MOTypeLayout.pdf
|
||||
ObjectType.Layout.CHAT -> MOTypeLayout.chat
|
||||
ObjectType.Layout.CHAT_DERIVED -> MOTypeLayout.chatDerived
|
||||
ObjectType.Layout.TAG -> MOTypeLayout.tag
|
||||
}
|
||||
|
||||
fun Relation.Format.toMiddlewareModel(): MRelationFormat = when (this) {
|
||||
|
|
|
@ -41,6 +41,7 @@ object SupportedLayouts {
|
|||
ObjectType.Layout.DASHBOARD,
|
||||
ObjectType.Layout.SPACE,
|
||||
ObjectType.Layout.SPACE_VIEW,
|
||||
ObjectType.Layout.TAG
|
||||
)
|
||||
|
||||
val createObjectLayouts = listOf(
|
||||
|
|
|
@ -3078,6 +3078,7 @@ message Rpc {
|
|||
string lastVersionId = 2;
|
||||
// desired count of versions
|
||||
int32 limit = 3;
|
||||
bool notIncludeVersion = 4;
|
||||
}
|
||||
|
||||
message Response {
|
||||
|
@ -5648,29 +5649,6 @@ message Rpc {
|
|||
}
|
||||
}
|
||||
}
|
||||
message ListAvailable {
|
||||
message Request {
|
||||
string contextId = 1;
|
||||
string blockId = 2;
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
repeated anytype.model.Relation relations = 2;
|
||||
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
|
||||
enum Code {
|
||||
NULL = 0;
|
||||
UNKNOWN_ERROR = 1;
|
||||
BAD_INPUT = 2;
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
message SetSource {
|
||||
message Request {
|
||||
|
|
|
@ -553,6 +553,10 @@ message Block {
|
|||
Codepen = 16;
|
||||
Bilibili = 17;
|
||||
Excalidraw = 18;
|
||||
Kroki = 19;
|
||||
Graphviz = 20;
|
||||
Sketchfab = 21;
|
||||
Image = 22;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -760,6 +764,7 @@ message ObjectType {
|
|||
pdf = 20;
|
||||
chat = 21;
|
||||
chatDerived = 22;
|
||||
tag = 23;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue