Skip to content

Commit

Permalink
IOS-1741 Dirty CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bududomasidet committed Sep 11, 2023
1 parent 21883d6 commit 7375797
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,16 @@ public struct ClientCommands {
}
}

public static func debugStackGoroutines(
_ request: Anytype_Rpc.Debug.StackGoroutines.Request = .init()
) -> Invocation<Anytype_Rpc.Debug.StackGoroutines.Request, Anytype_Rpc.Debug.StackGoroutines.Response> {
return Invocation(messageName: "DebugStackGoroutines", request: request) { request in
let requestData = try request.serializedData()
let responseData = Lib.ServiceDebugStackGoroutines(requestData) ?? Data()
return try Anytype_Rpc.Debug.StackGoroutines.Response(serializedData: responseData)
}
}

public static func debugExportLocalstore(
_ request: Anytype_Rpc.Debug.ExportLocalstore.Request = .init()
) -> Invocation<Anytype_Rpc.Debug.ExportLocalstore.Request, Anytype_Rpc.Debug.ExportLocalstore.Response> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ public extension BundledRelationKey {
.sourceFilePath,
.fileSyncStatus,
.defaultTemplateId,
.backlinks,
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -359,4 +359,7 @@ public enum BundledRelationKey: String {

/// ID of template chosen as default for particular object type
case defaultTemplateId = "defaultTemplateId"

/// List of backlinks
case backlinks = "backlinks"
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public protocol BundledRelationsValueProvider {
var lastChangeId: String { get }
var starred: Bool { get }
var defaultTemplateId: ObjectId { get }
var backlinks: ObjectId { get }
}

public extension BundledRelationsValueProvider where Self: RelationValueProvider {
Expand Down Expand Up @@ -647,4 +648,8 @@ public extension BundledRelationsValueProvider where Self: RelationValueProvider
var defaultTemplateId: ObjectId {
return value(for: BundledRelationKey.defaultTemplateId.rawValue)
}
/// List of backlinks
var backlinks: ObjectId {
return value(for: BundledRelationKey.backlinks.rawValue)
}
}

0 comments on commit 7375797

Please sign in to comment.