Remove missing LinkedAccountUids field in permissions fields, add some default values too
This commit is contained in:
parent
717943fd32
commit
d062bd1a74
2 changed files with 6 additions and 15 deletions
|
@ -18,7 +18,7 @@ ext {
|
||||||
moshi = "1.13.0"
|
moshi = "1.13.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "2.2.4"
|
version = "2.2.5-SNAPSHOT"
|
||||||
group = "io.github.wulkanowy"
|
group = "io.github.wulkanowy"
|
||||||
|
|
||||||
nexusPublishing {
|
nexusPublishing {
|
||||||
|
|
|
@ -7,10 +7,10 @@ import kotlinx.serialization.Serializable
|
||||||
internal data class Permissions(
|
internal data class Permissions(
|
||||||
|
|
||||||
@SerialName("AuthInfos")
|
@SerialName("AuthInfos")
|
||||||
val authInfos: List<AuthInfo>,
|
val authInfos: List<AuthInfo> = emptyList(),
|
||||||
|
|
||||||
@SerialName("Units")
|
@SerialName("Units")
|
||||||
val units: List<PermissionUnit>,
|
val units: List<PermissionUnit> = emptyList(),
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
@ -18,26 +18,17 @@ internal data class AuthInfo(
|
||||||
@SerialName("JednostkaSprawozdawczaId")
|
@SerialName("JednostkaSprawozdawczaId")
|
||||||
val unitId: Int,
|
val unitId: Int,
|
||||||
|
|
||||||
@SerialName("LinkedAccountUids")
|
|
||||||
val linkedAccountUids: List<Int>,
|
|
||||||
|
|
||||||
@SerialName("LoginId")
|
@SerialName("LoginId")
|
||||||
val loginId: Int,
|
val loginId: Int,
|
||||||
|
|
||||||
@SerialName("LoginValue")
|
|
||||||
val loginValue: String,
|
|
||||||
|
|
||||||
@SerialName("OpiekunIds")
|
@SerialName("OpiekunIds")
|
||||||
val parentIds: List<Int>,
|
val parentIds: List<Int> = emptyList(),
|
||||||
|
|
||||||
@SerialName("PracownikIds")
|
@SerialName("PracownikIds")
|
||||||
val employeeIds: List<Int>,
|
val employeeIds: List<Int> = emptyList(),
|
||||||
|
|
||||||
@SerialName("Roles")
|
|
||||||
val roles: List<Int>,
|
|
||||||
|
|
||||||
@SerialName("UczenIds")
|
@SerialName("UczenIds")
|
||||||
val studentIds: List<Int>,
|
val studentIds: List<Int> = emptyList(),
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
|
Loading…
Reference in a new issue