From fee6809cab06044c931480a27ee6baf80f540e3b Mon Sep 17 00:00:00 2001 From: y9Kap Date: Sat, 21 Oct 2023 00:24:05 +0300 Subject: [PATCH] WIP(#76-support-auth-header): list meetings history is independence --- .../app/meetacy/sdk/engine/ktor/Mappers.kt | 42 +++++++++ .../ktor/requests/meetings/MeetingsEngine.kt | 39 +++++---- .../engine/ktor/requests/users/UsersEngine.kt | 5 +- .../models/AcceptInvitationRequest.kt | 35 ++++++++ .../response/models/AccessAvatarRequest.kt | 39 +++++++++ .../response/models/AccessFriendRequest.kt | 35 ++++++++ .../response/models/AccessIdentityRequest.kt | 35 ++++++++ .../response/models/AccessMeetingIdRequest.kt | 35 ++++++++ .../models/CancelInvitationRequest.kt | 35 ++++++++ .../models/CreateInvitationRequest.kt | 39 +++++++++ .../models/CreateInvitationResponse.kt | 40 +++++++++ .../response/models/CreateMeetingRequest.kt | 73 ++++++++++++++++ .../response/models/CreateMeetingResponse.kt | 40 +++++++++ .../response/models/CreatorMeetingResponse.kt | 47 ++++++++++ .../response/models/DenyInvitationRequest.kt | 35 ++++++++ .../models/DownloadFileSuccessfulResponse.kt | 34 ++++++++ .../response/models/EditMeetingRequest.kt | 77 ++++++++++++++++ .../response/models/EditMeetingResponse.kt | 40 +++++++++ .../ktor/response/models/EditUserRequest.kt | 43 +++++++++ .../ktor/response/models/EditUserResponse.kt | 40 +++++++++ .../response/models/EmailConfirmRequest.kt | 39 +++++++++ .../ktor/response/models/EmailLinkRequest.kt | 35 ++++++++ .../models/GenerateIdentityRequest.kt | 35 ++++++++ .../models/GenerateIdentityResponse.kt | 39 +++++++++ .../ktor/response/models/GetUserRequest.kt | 35 ++++++++ .../ktor/response/models/GetUserResponse.kt | 40 +++++++++ .../ktor/response/models/IdentityRequest.kt | 39 +++++++++ .../ktor/response/models/InlineObject.kt | 35 ++++++++ .../ktor/response/models/InvalidResponse.kt | 69 +++++++++++++++ .../engine/ktor/response/models/Invitation.kt | 53 +++++++++++ .../response/models/ListFriendsRequest.kt | 39 +++++++++ .../response/models/ListFriendsResponse.kt | 40 +++++++++ .../models/ListFriendsResponseResult.kt | 40 +++++++++ .../response/models/ListMapMeetingsRequest.kt | 36 ++++++++ .../models/ListMapMeetingsResponse.kt | 40 +++++++++ .../models/ListMeetingParticipantsRequest.kt | 43 +++++++++ .../models/ListMeetingParticipantsResponse.kt | 40 +++++++++ .../ListMeetingParticipantsResponseResult.kt | 40 +++++++++ .../response/models/ListMeetingsRequest.kt | 39 +++++++++ .../response/models/ListMeetingsResponse.kt | 39 +++++++++ .../models/ListMeetingsResponseResult.kt | 40 +++++++++ .../models/ListNotificationsRequest.kt | 39 +++++++++ .../models/ListNotificationsResponse.kt | 40 +++++++++ .../models/ListNotificationsResponseResult.kt | 40 +++++++++ .../engine/ktor/response/models/Location.kt | 39 +++++++++ .../engine/ktor/response/models/Meeting.kt | 87 +++++++++++++++++++ .../ktor/response/models/Notification.kt | 78 +++++++++++++++++ .../models/ReadNotificationRequest.kt | 35 ++++++++ .../response/models/StatusTrueResponse.kt | 35 ++++++++ .../ktor/response/models/TokenRequest.kt | 35 ++++++++ .../sdk/engine/ktor/response/models/User.kt | 64 ++++++++++++++ .../models/ValidateUsernameRequest.kt | 35 ++++++++ 52 files changed, 2171 insertions(+), 19 deletions(-) create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AcceptInvitationRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessAvatarRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessFriendRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessIdentityRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessMeetingIdRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CancelInvitationRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateInvitationRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateInvitationResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateMeetingRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateMeetingResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreatorMeetingResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/DenyInvitationRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/DownloadFileSuccessfulResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditMeetingRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditMeetingResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditUserRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditUserResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EmailConfirmRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EmailLinkRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GenerateIdentityRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GenerateIdentityResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GetUserRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GetUserResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/IdentityRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/InlineObject.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/InvalidResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Invitation.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsResponseResult.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsResponseResult.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsResponseResult.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsResponseResult.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Location.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Meeting.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Notification.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ReadNotificationRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/StatusTrueResponse.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/TokenRequest.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/User.kt create mode 100644 api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ValidateUsernameRequest.kt diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/Mappers.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/Mappers.kt index a01e0cd4..f931f6f9 100644 --- a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/Mappers.kt +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/Mappers.kt @@ -22,6 +22,8 @@ import dev.icerock.moko.network.generated.models.Location as GeneratedLocation import dev.icerock.moko.network.generated.models.Meeting as GeneratedMeeting import dev.icerock.moko.network.generated.models.Notification as GeneratedNotification import dev.icerock.moko.network.generated.models.User as GeneratedUser +import app.meetacy.sdk.engine.ktor.response.models.Meeting as LolMeeting +import app.meetacy.sdk.engine.ktor.response.models.User as LolUser internal fun GeneratedUser.mapToSelfUser(): SelfUser = mapToUser() as SelfUser internal fun GeneratedUser.mapToRegularUser(): RegularUser = mapToUser() as RegularUser @@ -46,6 +48,26 @@ internal fun GeneratedUser.mapToUser(): User = if (isSelf) { ) } +@OptIn(UnsafeConstructor::class) +internal fun LolUser.mapToUser(): User = if (isSelf) { + SelfUser( + id = UserId(id), + nickname = nickname, + email = email?.let(::Email), + emailVerified = emailVerified ?: error("Self user must always return emailVerified parameter"), + username = username?.let(::Username), + avatarId = avatarId?.let(::FileId) + ) +} else { + RegularUser( + id = UserId(id), + nickname = nickname, + avatarId = avatarId?.let(::FileId), + username = username?.let(::Username), + relationship = relationship?.mapToRelationship() ?: error("Regular user should always return relationship parameter") + ) +} + internal fun GeneratedInvitation.toInvitation(): Invitation = Invitation( id = identity.let(::InvitationId), meeting = meeting.mapToMeeting(), @@ -66,6 +88,26 @@ internal fun String.mapToRelationship(): Relationship? = when(this) { else -> null } +internal fun LolMeeting.mapToMeeting(): Meeting = Meeting( + id = MeetingId(id), + creator = creator.mapToUser(), + date = Date(date), + location = Location( + location.latitude, + location.longitude + ), + title = title, + description = description, + participantsCount = participantsCount, + isParticipating = isParticipating, + previewParticipants = previewParticipants.map(LolUser::mapToUser), + avatarId = avatarId?.let(::FileId), + visibility = when (visibility) { + LolMeeting.Visibility.PUBLIC -> Meeting.Visibility.Public + LolMeeting.Visibility.PRIVATE -> Meeting.Visibility.Private + } +) + internal fun GeneratedMeeting.mapToMeeting(): Meeting = Meeting( id = MeetingId(id), creator = creator.mapToUser(), diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/requests/meetings/MeetingsEngine.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/requests/meetings/MeetingsEngine.kt index 12d89d62..b879370f 100644 --- a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/requests/meetings/MeetingsEngine.kt +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/requests/meetings/MeetingsEngine.kt @@ -2,6 +2,8 @@ package app.meetacy.sdk.engine.ktor.requests.meetings import app.meetacy.sdk.engine.ktor.mapToMeeting import app.meetacy.sdk.engine.ktor.mapToUser +import app.meetacy.sdk.engine.ktor.response.models.CreateMeetingResponse +import app.meetacy.sdk.engine.ktor.response.models.ListMeetingsResponse import app.meetacy.sdk.engine.requests.* import app.meetacy.sdk.engine.requests.CreateMeetingRequest import app.meetacy.sdk.engine.requests.EditMeetingRequest @@ -23,6 +25,7 @@ import kotlinx.serialization.json.put import kotlinx.serialization.json.putJsonObject import dev.icerock.moko.network.generated.models.ListMeetingParticipantsRequest as GeneratedListMeetingParticipantsRequest import dev.icerock.moko.network.generated.models.Meeting as GeneratedMeeting +import app.meetacy.sdk.engine.ktor.response.models.Meeting as LolMeeting internal class MeetingsEngine( private val baseUrl: Url, @@ -34,18 +37,28 @@ internal class MeetingsEngine( suspend fun listMeetingsHistory( request: ListMeetingsHistoryRequest ): ListMeetingsHistoryRequest.Response = with(request) { - val response = base.meetingsHistoryListPost( - listMeetingsRequest = ListMeetingsRequest( - amount = amount.int, - pagingId = pagingId?.string - ), - apiVersion = request.apiVersion.int.toString(), - authorization = request.token.string - ) + val url = baseUrl / "meetings" / "history" / "list" + + val jsonObject = buildJsonObject { + put("amount", amount.int) + put("pagingId", pagingId?.string) + } + + val string = httpClient.post(url.string) { + setBody( + TextContent( + text = jsonObject.toString(), + contentType = ContentType.Application.Json + ) + ) + header("Authorization", token.string) + }.body() + + val response = Json.decodeFromString(string) val paging = PagingResponse( nextPagingId = response.result.nextPagingId?.let(::PagingId), - data = response.result.data.map(GeneratedMeeting::mapToMeeting) + data = response.result.data.map(LolMeeting::mapToMeeting) ) return ListMeetingsHistoryRequest.Response(paging) @@ -128,15 +141,13 @@ internal class MeetingsEngine( } val string = httpClient.post(url.string) { - headers { - append("Authorization", token.string) - } setBody( TextContent( text = jsonObject.toString(), contentType = ContentType.Application.Json ) ) + header("Authorization", token.string) }.body() val meeting = Json.decodeFromString(string).result @@ -174,15 +185,13 @@ internal class MeetingsEngine( } val string = httpClient.post(url.string) { - headers { - append("Authorization", token.string) - } setBody( TextContent( text = jsonObject.toString(), contentType = ContentType.Application.Json ) ) + header("Authorization", token.string) }.body() val meeting = Json.decodeFromString(string).result diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/requests/users/UsersEngine.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/requests/users/UsersEngine.kt index aa47c2d4..b973db9e 100644 --- a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/requests/users/UsersEngine.kt +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/requests/users/UsersEngine.kt @@ -77,16 +77,13 @@ internal class UsersEngine( } val string = httpClient.post(url.string) { - headers { - append("Authorization", token.string) - } setBody( TextContent( text = jsonObject.toString(), contentType = ContentType.Application.Json ) ) - + header("Authorization", token.string) }.body() val user = Json.decodeFromString(string).result diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AcceptInvitationRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AcceptInvitationRequest.kt new file mode 100644 index 00000000..2190cbf7 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AcceptInvitationRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param id + */ +@Serializable +internal data class AcceptInvitationRequest ( + + @SerialName("id") + val id: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessAvatarRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessAvatarRequest.kt new file mode 100644 index 00000000..524653be --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessAvatarRequest.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param accessIdentity + * @param fileIdentity + */ +@Serializable +internal data class AccessAvatarRequest ( + + @SerialName("accessIdentity") + val accessIdentity: String, + + @SerialName("fileIdentity") + val fileIdentity: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessFriendRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessFriendRequest.kt new file mode 100644 index 00000000..c073743d --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessFriendRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param friendId + */ +@Serializable +internal data class AccessFriendRequest ( + + @SerialName("friendId") + val friendId: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessIdentityRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessIdentityRequest.kt new file mode 100644 index 00000000..469c697a --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessIdentityRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param accessIdentity + */ +@Serializable +internal data class AccessIdentityRequest ( + + @SerialName("accessIdentity") + val accessIdentity: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessMeetingIdRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessMeetingIdRequest.kt new file mode 100644 index 00000000..ea381d78 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/AccessMeetingIdRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param meetingId + */ +@Serializable +internal data class AccessMeetingIdRequest ( + + @SerialName("meetingId") + val meetingId: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CancelInvitationRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CancelInvitationRequest.kt new file mode 100644 index 00000000..4275fe8b --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CancelInvitationRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param id + */ +@Serializable +internal data class CancelInvitationRequest ( + + @SerialName("id") + val id: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateInvitationRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateInvitationRequest.kt new file mode 100644 index 00000000..344b728d --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateInvitationRequest.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param meetingId + * @param userId + */ +@Serializable +internal data class CreateInvitationRequest ( + + @SerialName("meetingId") + val meetingId: String, + + @SerialName("userId") + val userId: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateInvitationResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateInvitationResponse.kt new file mode 100644 index 00000000..092eb4c9 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateInvitationResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Invitation +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param result + */ +@Serializable +internal data class CreateInvitationResponse ( + + @SerialName("status") + val status: Boolean, + + @SerialName("result") + val result: Invitation + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateMeetingRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateMeetingRequest.kt new file mode 100644 index 00000000..a14da2c7 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateMeetingRequest.kt @@ -0,0 +1,73 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Location +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param title + * @param date + * @param location + * @param visibility + * @param avatarId + * @param description + */ +@Serializable +internal data class CreateMeetingRequest ( + + @SerialName("title") + val title: String, + + @SerialName("date") + val date: String, + + @SerialName("location") + val location: Location, + + @SerialName("visibility") + val visibility: Visibility, + + @SerialName("avatarId") + val avatarId: String? = null, + + @SerialName("description") + val description: String? = null + +) { + + /** + * + * Values: "public","private" + */ + @Serializable + enum class Visibility { + + @SerialName("public") + PUBLIC, + + @SerialName("private") + PRIVATE; + + } + +} + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateMeetingResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateMeetingResponse.kt new file mode 100644 index 00000000..ff9588bc --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreateMeetingResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Meeting +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param result + */ +@Serializable +internal data class CreateMeetingResponse ( + + @SerialName("status") + val status: Boolean, + + @SerialName("result") + val result: Meeting + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreatorMeetingResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreatorMeetingResponse.kt new file mode 100644 index 00000000..2a47893e --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/CreatorMeetingResponse.kt @@ -0,0 +1,47 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param id + * @param nickname + * @param email + * @param emailVerified + */ +@Serializable +internal data class CreatorMeetingResponse ( + + @SerialName("id") + val id: String? = null, + + @SerialName("nickname") + val nickname: String? = null, + + @SerialName("email") + val email: String? = null, + + @SerialName("emailVerified") + val emailVerified: Boolean? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/DenyInvitationRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/DenyInvitationRequest.kt new file mode 100644 index 00000000..3763c5f8 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/DenyInvitationRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param id + */ +@Serializable +internal data class DenyInvitationRequest ( + + @SerialName("id") + val id: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/DownloadFileSuccessfulResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/DownloadFileSuccessfulResponse.kt new file mode 100644 index 00000000..5589c351 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/DownloadFileSuccessfulResponse.kt @@ -0,0 +1,34 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + +import kotlinx.serialization.SerialName + +/** +* +* Values: "*image_file*" +*/ +@Serializable +internal enum class DownloadFileSuccessfulResponse { + + @SerialName("*image_file*") + STAR_IMAGE_FILE_STAR; + +} + + + + + + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditMeetingRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditMeetingRequest.kt new file mode 100644 index 00000000..cebc97f0 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditMeetingRequest.kt @@ -0,0 +1,77 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Location +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param meetingId + * @param avatarId + * @param title + * @param description + * @param date + * @param location + * @param visibility + */ +@Serializable +internal data class EditMeetingRequest ( + + @SerialName("meetingId") + val meetingId: String, + + @SerialName("avatarId") + val avatarId: String? = null, + + @SerialName("title") + val title: String? = null, + + @SerialName("description") + val description: String? = null, + + @SerialName("date") + val date: String? = null, + + @SerialName("location") + val location: Location? = null, + + @SerialName("visibility") + val visibility: Visibility? = null + +) { + + /** + * + * Values: "public","private" + */ + @Serializable + enum class Visibility { + + @SerialName("public") + PUBLIC, + + @SerialName("private") + PRIVATE; + + } + +} + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditMeetingResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditMeetingResponse.kt new file mode 100644 index 00000000..1160ed63 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditMeetingResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Meeting +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param result + */ +@Serializable +internal data class EditMeetingResponse ( + + @SerialName("status") + val status: Boolean, + + @SerialName("result") + val result: Meeting + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditUserRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditUserRequest.kt new file mode 100644 index 00000000..2d76bff8 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditUserRequest.kt @@ -0,0 +1,43 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param nickname + * @param username + * @param avatarId + */ +@Serializable +internal data class EditUserRequest ( + + @SerialName("nickname") + val nickname: String? = null, + + @SerialName("username") + val username: String? = null, + + @SerialName("avatarId") + val avatarId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditUserResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditUserResponse.kt new file mode 100644 index 00000000..104db759 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EditUserResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.User +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param result + */ +@Serializable +internal data class EditUserResponse ( + + @SerialName("status") + val status: Boolean, + + @SerialName("result") + val result: User + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EmailConfirmRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EmailConfirmRequest.kt new file mode 100644 index 00000000..d2ff1015 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EmailConfirmRequest.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param email + * @param confirmHash + */ +@Serializable +internal data class EmailConfirmRequest ( + + @SerialName("email") + val email: String, + + @SerialName("confirmHash") + val confirmHash: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EmailLinkRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EmailLinkRequest.kt new file mode 100644 index 00000000..8dd255b9 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/EmailLinkRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param email + */ +@Serializable +internal data class EmailLinkRequest ( + + @SerialName("email") + val email: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GenerateIdentityRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GenerateIdentityRequest.kt new file mode 100644 index 00000000..f699ecf3 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GenerateIdentityRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param nickname + */ +@Serializable +internal data class GenerateIdentityRequest ( + + @SerialName("nickname") + val nickname: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GenerateIdentityResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GenerateIdentityResponse.kt new file mode 100644 index 00000000..56abb7a4 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GenerateIdentityResponse.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param result + */ +@Serializable +internal data class GenerateIdentityResponse ( + + @SerialName("status") + val status: Boolean, + + @SerialName("result") + val result: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GetUserRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GetUserRequest.kt new file mode 100644 index 00000000..1237af57 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GetUserRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * response with an token + * @param id + */ +@Serializable +internal data class GetUserRequest ( + + @SerialName("id") + val id: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GetUserResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GetUserResponse.kt new file mode 100644 index 00000000..321d25bd --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/GetUserResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.User +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param result + */ +@Serializable +internal data class GetUserResponse ( + + @SerialName("status") + val status: Boolean? = null, + + @SerialName("result") + val result: User? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/IdentityRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/IdentityRequest.kt new file mode 100644 index 00000000..0ffa771a --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/IdentityRequest.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param id + * @param token + */ +@Serializable +internal data class IdentityRequest ( + + @SerialName("id") + val id: String, + + @SerialName("token") + val token: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/InlineObject.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/InlineObject.kt new file mode 100644 index 00000000..4770e1b6 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/InlineObject.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param file + */ +@Serializable +internal data class InlineObject ( + + @SerialName("file") + val file: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/InvalidResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/InvalidResponse.kt new file mode 100644 index 00000000..a520935f --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/InvalidResponse.kt @@ -0,0 +1,69 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param errorCode + * @param errorMessage + */ +@Serializable +internal data class InvalidResponse ( + + @SerialName("status") + val status: Boolean, + + @SerialName("errorCode") + val errorCode: ErrorCode, + + @SerialName("errorMessage") + val errorMessage: ErrorMessage + +) { + + /** + * + * Values: 1 + */ + @Serializable + enum class ErrorCode { + + @SerialName("1") + _1; + + } + + /** + * + * Values: "Please provide a valid token" + */ + @Serializable + enum class ErrorMessage { + + @SerialName("Please provide a valid token") + PLEASE_PROVIDE_A_VALID_TOKEN; + + } + +} + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Invitation.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Invitation.kt new file mode 100644 index 00000000..5d94b552 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Invitation.kt @@ -0,0 +1,53 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Meeting +import dev.icerock.moko.network.generated.models.User +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param identity + * @param invitedUser + * @param inviterUser + * @param meeting + * @param isAccepted + */ +@Serializable +internal data class Invitation ( + + @SerialName("identity") + val identity: String, + + @SerialName("invitedUser") + val invitedUser: User, + + @SerialName("inviterUser") + val inviterUser: User, + + @SerialName("meeting") + val meeting: Meeting, + + @SerialName("isAccepted") + val isAccepted: Boolean? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsRequest.kt new file mode 100644 index 00000000..f6b5ba5b --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsRequest.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param amount + * @param pagingId + */ +@Serializable +internal data class ListFriendsRequest ( + + @SerialName("amount") + val amount: Int, + + @SerialName("pagingId") + val pagingId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsResponse.kt new file mode 100644 index 00000000..3e425fe9 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.ListFriendsResponseResult +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param result + */ +@Serializable +internal data class ListFriendsResponse ( + + @SerialName("status") + val status: Boolean, + + @SerialName("result") + val result: ListFriendsResponseResult + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsResponseResult.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsResponseResult.kt new file mode 100644 index 00000000..5c36345e --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListFriendsResponseResult.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.User +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param data + * @param nextPagingId + */ +@Serializable +internal data class ListFriendsResponseResult ( + + @SerialName("data") + val data: List, + + @SerialName("nextPagingId") + val nextPagingId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsRequest.kt new file mode 100644 index 00000000..896d0ecc --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsRequest.kt @@ -0,0 +1,36 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Location +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param location + */ +@Serializable +internal data class ListMapMeetingsRequest ( + + @SerialName("location") + val location: Location + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsResponse.kt new file mode 100644 index 00000000..0d8d9f1c --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Meeting +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param result + * @param status + */ +@Serializable +internal data class ListMapMeetingsResponse ( + + @SerialName("result") + val result: List, + + @SerialName("status") + val status: Boolean? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsRequest.kt new file mode 100644 index 00000000..dcb70fc0 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsRequest.kt @@ -0,0 +1,43 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param meetingId + * @param amount + * @param pagingId + */ +@Serializable +internal data class ListMeetingParticipantsRequest ( + + @SerialName("meetingId") + val meetingId: String, + + @SerialName("amount") + val amount: Int, + + @SerialName("pagingId") + val pagingId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsResponse.kt new file mode 100644 index 00000000..5d692e05 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.ListMeetingParticipantsResponseResult +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + * @param result + */ +@Serializable +internal data class ListMeetingParticipantsResponse ( + + @SerialName("status") + val status: Boolean, + + @SerialName("result") + val result: ListMeetingParticipantsResponseResult + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsResponseResult.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsResponseResult.kt new file mode 100644 index 00000000..d6914632 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingParticipantsResponseResult.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.User +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param data + * @param nextPagingId + */ +@Serializable +internal data class ListMeetingParticipantsResponseResult ( + + @SerialName("data") + val data: List, + + @SerialName("nextPagingId") + val nextPagingId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsRequest.kt new file mode 100644 index 00000000..beb40c5d --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsRequest.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param amount + * @param pagingId + */ +@Serializable +internal data class ListMeetingsRequest ( + + @SerialName("amount") + val amount: Int, + + @SerialName("pagingId") + val pagingId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsResponse.kt new file mode 100644 index 00000000..9a311d23 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsResponse.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param result + * @param status + */ +@Serializable +internal data class ListMeetingsResponse ( + + @SerialName("result") + val result: ListMeetingsResponseResult, + + @SerialName("status") + val status: Boolean? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsResponseResult.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsResponseResult.kt new file mode 100644 index 00000000..83720ab0 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMeetingsResponseResult.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param data + * @param nextPagingId + */ +@Serializable +internal data class ListMeetingsResponseResult ( + + @SerialName("data") + val data: List, + + @SerialName("nextPagingId") + val nextPagingId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsRequest.kt new file mode 100644 index 00000000..a3578f8a --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsRequest.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param amount + * @param pagingId + */ +@Serializable +internal data class ListNotificationsRequest ( + + @SerialName("amount") + val amount: Int, + + @SerialName("pagingId") + val pagingId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsResponse.kt new file mode 100644 index 00000000..eedcbae4 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsResponse.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.ListNotificationsResponseResult +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param result + * @param status + */ +@Serializable +internal data class ListNotificationsResponse ( + + @SerialName("result") + val result: ListNotificationsResponseResult, + + @SerialName("status") + val status: Boolean? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsResponseResult.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsResponseResult.kt new file mode 100644 index 00000000..75257e29 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListNotificationsResponseResult.kt @@ -0,0 +1,40 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Notification +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param data + * @param nextPagingId + */ +@Serializable +internal data class ListNotificationsResponseResult ( + + @SerialName("data") + val data: List, + + @SerialName("nextPagingId") + val nextPagingId: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Location.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Location.kt new file mode 100644 index 00000000..87c646bc --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Location.kt @@ -0,0 +1,39 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param latitude + * @param longitude + */ +@Serializable +internal data class Location ( + + @SerialName("latitude") + val latitude: Double, + + @SerialName("longitude") + val longitude: Double + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Meeting.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Meeting.kt new file mode 100644 index 00000000..c44b6288 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Meeting.kt @@ -0,0 +1,87 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + + +import kotlinx.serialization.Serializable +import kotlinx.serialization.SerialName + + +/** + * + * @param id + * @param creator + * @param date + * @param location + * @param title + * @param participantsCount + * @param previewParticipants + * @param isParticipating + * @param visibility + * @param description + * @param avatarId + */ +@Serializable +internal data class Meeting ( + + @SerialName("id") + val id: String, + + @SerialName("creator") + val creator: User, + + @SerialName("date") + val date: String, + + @SerialName("location") + val location: Location, + + @SerialName("title") + val title: String, + + @SerialName("participantsCount") + val participantsCount: Int, + + @SerialName("previewParticipants") + val previewParticipants: List, + + @SerialName("isParticipating") + val isParticipating: Boolean, + + @SerialName("visibility") + val visibility: Visibility, + + @SerialName("description") + val description: String? = null, + + @SerialName("avatarId") + val avatarId: String? = null + +) { + + /** + * + * Values: "public","private" + */ + @Serializable + enum class Visibility { + + @SerialName("public") + PUBLIC, + + @SerialName("private") + PRIVATE; + + } + +} + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Notification.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Notification.kt new file mode 100644 index 00000000..055c9ddd --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/Notification.kt @@ -0,0 +1,78 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import dev.icerock.moko.network.generated.models.Meeting +import dev.icerock.moko.network.generated.models.User +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param type + * @param id + * @param isNew + * @param date + * @param subscriber + * @param meeting + * @param inviter + */ +@Serializable +internal data class Notification ( + + @SerialName("type") + val type: Type, + + @SerialName("id") + val id: String, + + @SerialName("isNew") + val isNew: Boolean, + + @SerialName("date") + val date: String, + + @SerialName("subscriber") + val subscriber: User? = null, + + @SerialName("meeting") + val meeting: Meeting? = null, + + @SerialName("inviter") + val inviter: User? = null + +) { + + /** + * + * Values: "subscription","meeting_invitation" + */ + @Serializable + enum class Type { + + @SerialName("subscription") + SUBSCRIPTION, + + @SerialName("meeting_invitation") + MEETING_INVITATION; + + } + +} + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ReadNotificationRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ReadNotificationRequest.kt new file mode 100644 index 00000000..cff5b1a6 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ReadNotificationRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param lastNotificationId + */ +@Serializable +internal data class ReadNotificationRequest ( + + @SerialName("lastNotificationId") + val lastNotificationId: String + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/StatusTrueResponse.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/StatusTrueResponse.kt new file mode 100644 index 00000000..0276911c --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/StatusTrueResponse.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param status + */ +@Serializable +internal data class StatusTrueResponse ( + + @SerialName("status") + val status: Boolean + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/TokenRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/TokenRequest.kt new file mode 100644 index 00000000..c84286f2 --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/TokenRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param token + */ +@Serializable +internal data class TokenRequest ( + + @SerialName("token") + val token: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/User.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/User.kt new file mode 100644 index 00000000..4895d44a --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/User.kt @@ -0,0 +1,64 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param isSelf + * @param id + * @param nickname + * @param username + * @param email + * @param emailVerified + * @param avatarId + * @param relationship Relationship field can be one of four types - subscription, subscriber, friend and none. In case if isSelf == true, relationship field is null + */ +@Serializable +internal data class User ( + + @SerialName("isSelf") + val isSelf: Boolean, + + @SerialName("id") + val id: String, + + @SerialName("nickname") + val nickname: String, + + @SerialName("username") + val username: String? = null, + + @SerialName("email") + val email: String? = null, + + @SerialName("emailVerified") + val emailVerified: Boolean? = null, + + @SerialName("avatarId") + val avatarId: String? = null, + /* Relationship field can be one of four types - subscription, subscriber, friend and none. In case if isSelf == true, relationship field is null */ + + @SerialName("relationship") + val relationship: String? = null + +) + diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ValidateUsernameRequest.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ValidateUsernameRequest.kt new file mode 100644 index 00000000..d0ba5f1d --- /dev/null +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ValidateUsernameRequest.kt @@ -0,0 +1,35 @@ +/** +* Meetacy Backend API +* _Version 1.0.2 of the `Meetacy` API documentation_. It is recommended to fill in the request body on your own according to the sample provided below. The `Notifications` section is under development. +* +* OpenAPI spec version: 1.0.2 +* +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package app.meetacy.sdk.engine.ktor.response.models + +import kotlinx.serialization.Serializable + + + + + + +import kotlinx.serialization.SerialName + + +/** + * + * @param username + */ +@Serializable +internal data class ValidateUsernameRequest ( + + @SerialName("username") + val username: String + +) +