1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3429 Primitives | Edit type properties, part 1 (#2138)

This commit is contained in:
Konstantin Ivanov 2025-03-10 13:46:53 +01:00 committed by GitHub
parent b566ba30e0
commit 3932c2fe87
Signed by: github
GPG key ID: B5690EEEBB952194
42 changed files with 750 additions and 1142 deletions

View file

@ -96,7 +96,7 @@ fun StubObjectType(
uniqueKey: String? = MockDataFactory.randomUuid(),
name: String = MockDataFactory.randomString(),
objectType: String = MockDataFactory.randomString(),
layout: Double = ObjectType.Layout.BASIC.code.toDouble(),
layout: Double = ObjectType.Layout.OBJECT_TYPE.code.toDouble(),
smartBlockTypes: List<Double> = emptyList(),
isDeleted: Boolean? = null,
isArchived: Boolean? = null,
@ -109,6 +109,7 @@ fun StubObjectType(
recommendedRelations: List<String> = emptyList(),
recommendedHiddenRelations: List<String> = emptyList(),
recommendedFeaturedRelations: List<String> = emptyList(),
recommendedFileRelations: List<String> = emptyList(),
space: Id? = null
): ObjectWrapper.Type = ObjectWrapper.Type(
map = mapOf(
@ -129,6 +130,7 @@ fun StubObjectType(
Relations.RECOMMENDED_RELATIONS to recommendedRelations,
Relations.RECOMMENDED_HIDDEN_RELATIONS to recommendedHiddenRelations,
Relations.RECOMMENDED_FEATURED_RELATIONS to recommendedFeaturedRelations,
Relations.RECOMMENDED_FILE_RELATIONS to recommendedFileRelations,
Relations.SPACE_ID to space
)
)