Skip to content

Commit

Permalink
Rerunning autogen on 0.19.0
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Fish <[email protected]>
  • Loading branch information
fishcharlie committed Mar 23, 2024
1 parent 34fa165 commit 4920b24
Show file tree
Hide file tree
Showing 13 changed files with 131 additions and 110 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Foundation

public struct ApproveRegistrationApplicationRequest: APIRequest {
public typealias Response = RegistrationApplicationResponse

public static let httpMethod: HTTPMethod = .put
public static let path: String = "/admin/registration_application/approve"

public let id: Int?
public let approve: Bool?
public let deny_reason: String?

public init(
id: Int? = nil,
approve: Bool? = nil,
deny_reason: String? = nil
) {
self.id = id
self.approve = approve
self.deny_reason = deny_reason
}
}

public struct RegistrationApplicationResponse: APIResponse {
public let registration_application: RegistrationApplicationView?

public init(
registration_application: RegistrationApplicationView? = nil
) {
self.registration_application = registration_application
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Foundation

public struct CreatePrivateMessageReportRequest: APIRequest {
public typealias Response = PrivateMessageReportResponse

public static let httpMethod: HTTPMethod = .post
public static let path: String = "/private_message/report"

public let private_message_id: PrivateMessageId?
public let reason: String?

public init(
private_message_id: PrivateMessageId? = nil,
reason: String? = nil
) {
self.private_message_id = private_message_id
self.reason = reason
}
}

public struct PrivateMessageReportResponse: APIResponse {
public let private_message_report_view: PrivateMessageReportView?

public init(
private_message_report_view: PrivateMessageReportView? = nil
) {
self.private_message_report_view = private_message_report_view
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Foundation

public struct ListPrivateMessageReportsRequest: APIRequest {
public typealias Response = ListPrivateMessageReportsResponse

public static let httpMethod: HTTPMethod = .get
public static let path: String = "/private_message/report/list"

public let page: Int?
public let limit: Int?
public let unresolved_only: Bool?

public init(
page: Int? = nil,
limit: Int? = nil,
unresolved_only: Bool? = nil
) {
self.page = page
self.limit = limit
self.unresolved_only = unresolved_only
}
}

public struct ListPrivateMessageReportsResponse: APIResponse {
public let private_message_reports: [PrivateMessageReportView]?

public init(
private_message_reports: [PrivateMessageReportView]? = nil
) {
self.private_message_reports = private_message_reports
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Foundation

public struct ListRegistrationApplicationsRequest: APIRequest {
public typealias Response = ListRegistrationApplicationsResponse

public static let httpMethod: HTTPMethod = .get
public static let path: String = "/admin/registration_application/list"

public let unread_only: Bool?
public let page: Int?
public let limit: Int?

public init(
unread_only: Bool? = nil,
page: Int? = nil,
limit: Int? = nil
) {
self.unread_only = unread_only
self.page = page
self.limit = limit
}
}

public struct ListRegistrationApplicationsResponse: APIResponse {
public let registration_applications: [RegistrationApplicationView]?

public init(
registration_applications: [RegistrationApplicationView]? = nil
) {
self.registration_applications = registration_applications
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import Foundation

public struct ResolvePrivateMessageReport: Codable, Hashable {
public struct ResolvePrivateMessageReportRequest: APIRequest {
public typealias Response = PrivateMessageReportResponse

public static let httpMethod: HTTPMethod = .put
public static let path: String = "/private_message/report/resolve"

public let report_id: PrivateMessageReportId?
public let resolved: Bool?

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 4920b24

Please sign in to comment.