diff --git a/Sources/WordPressKit/Models/RemoteBlogOptionsHelper.swift b/Sources/WordPressKit/Models/RemoteBlogOptionsHelper.swift index aac09a7a..a048db6d 100644 --- a/Sources/WordPressKit/Models/RemoteBlogOptionsHelper.swift +++ b/Sources/WordPressKit/Models/RemoteBlogOptionsHelper.swift @@ -28,6 +28,7 @@ import Foundation "blog_public", "max_upload_size", "is_wpcom_atomic", + "is_wpcom_staging_site", "is_wpforteams_site", "show_on_front", "page_on_front", diff --git a/Sources/WordPressKit/Models/Stats/Time Interval/StatsTopAuthorsTimeIntervalData.swift b/Sources/WordPressKit/Models/Stats/Time Interval/StatsTopAuthorsTimeIntervalData.swift index e5e592f8..63b90b31 100644 --- a/Sources/WordPressKit/Models/Stats/Time Interval/StatsTopAuthorsTimeIntervalData.swift +++ b/Sources/WordPressKit/Models/Stats/Time Interval/StatsTopAuthorsTimeIntervalData.swift @@ -32,7 +32,7 @@ public struct StatsTopAuthor { public struct StatsTopPost { - public enum Kind { + @frozen public enum Kind { case unknown case post case page diff --git a/Sources/WordPressKit/Services/AccountServiceRemoteREST+SocialService.swift b/Sources/WordPressKit/Services/AccountServiceRemoteREST+SocialService.swift index 02432a1f..c487ba4a 100644 --- a/Sources/WordPressKit/Services/AccountServiceRemoteREST+SocialService.swift +++ b/Sources/WordPressKit/Services/AccountServiceRemoteREST+SocialService.swift @@ -1,6 +1,6 @@ import Foundation -public enum SocialServiceName: String { +@frozen public enum SocialServiceName: String { case google case apple } diff --git a/Sources/WordPressKit/Services/WordPressComServiceRemote+SiteCreation.swift b/Sources/WordPressKit/Services/WordPressComServiceRemote+SiteCreation.swift index c65f80e5..b2fb6614 100644 --- a/Sources/WordPressKit/Services/WordPressComServiceRemote+SiteCreation.swift +++ b/Sources/WordPressKit/Services/WordPressComServiceRemote+SiteCreation.swift @@ -169,7 +169,7 @@ public enum SiteCreationError: Error { /// - success: the site creation request succeeded with the accompanying result. /// - failure: the site creation request failed due to the accompanying error. /// -public enum SiteCreationResult { +@frozen public enum SiteCreationResult { case success(SiteCreationResponse) case failure(SiteCreationError) }