Skip to content

Commit

Permalink
Make all models and parameters Sendable (#202)
Browse files Browse the repository at this point in the history
* Make all models and parameters Sendable

* Regenerate

* Remove hardcoded Sendable conformance

* Make property wrapper and enum Sendable

* Regenerate
  • Loading branch information
MortenGregersen authored Sep 30, 2024
1 parent ec456cb commit 4b4e727
Show file tree
Hide file tree
Showing 1,219 changed files with 4,489 additions and 4,633 deletions.
2 changes: 1 addition & 1 deletion Sources/Bagbutik-AppStore/Actor/GetActorV1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public enum GetActorV1 {
/// The fields to include for returned resources of type actors
case actors([Actors])

public enum Actors: String, ParameterValue, Codable, CaseIterable {
public enum Actors: String, Sendable, ParameterValue, Codable, CaseIterable {
case actorType
case apiKeyId
case userEmail
Expand Down
2 changes: 1 addition & 1 deletion Sources/Bagbutik-AppStore/Actor/ListActorsV1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public enum ListActorsV1 {
/// The fields to include for returned resources of type actors
case actors([Actors])

public enum Actors: String, ParameterValue, Codable, CaseIterable {
public enum Actors: String, Sendable, ParameterValue, Codable, CaseIterable {
case actorType
case apiKeyId
case userEmail
Expand Down
64 changes: 32 additions & 32 deletions Sources/Bagbutik-AppStore/App/GetAppV1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,32 +99,32 @@ public enum GetAppV1 {
/// The fields to include for returned resources of type subscriptionGroups
case subscriptionGroups([SubscriptionGroups])

public enum AlternativeDistributionKeys: String, ParameterValue, Codable, CaseIterable {
public enum AlternativeDistributionKeys: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case publicKey
}

public enum AnalyticsReportRequests: String, ParameterValue, Codable, CaseIterable {
public enum AnalyticsReportRequests: String, Sendable, ParameterValue, Codable, CaseIterable {
case accessType
case app
case reports
case stoppedDueToInactivity
}

public enum AppAvailabilities: String, ParameterValue, Codable, CaseIterable {
public enum AppAvailabilities: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case availableInNewTerritories
case availableTerritories
}

public enum AppClips: String, ParameterValue, Codable, CaseIterable {
public enum AppClips: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case appClipAdvancedExperiences
case appClipDefaultExperiences
case bundleId
}

public enum AppCustomProductPages: String, ParameterValue, Codable, CaseIterable {
public enum AppCustomProductPages: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case appCustomProductPageVersions
case appStoreVersionTemplate
Expand All @@ -134,7 +134,7 @@ public enum GetAppV1 {
case visible
}

public enum AppEncryptionDeclarations: String, ParameterValue, Codable, CaseIterable {
public enum AppEncryptionDeclarations: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case appDescription
case appEncryptionDeclarationDocument
Expand All @@ -154,7 +154,7 @@ public enum GetAppV1 {
case usesEncryption
}

public enum AppEvents: String, ParameterValue, Codable, CaseIterable {
public enum AppEvents: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case archivedTerritorySchedules
case badge
Expand All @@ -169,7 +169,7 @@ public enum GetAppV1 {
case territorySchedules
}

public enum AppInfos: String, ParameterValue, Codable, CaseIterable {
public enum AppInfos: String, Sendable, ParameterValue, Codable, CaseIterable {
case ageRatingDeclaration
case app
case appInfoLocalizations
Expand All @@ -187,28 +187,28 @@ public enum GetAppV1 {
case state
}

public enum AppPreOrders: String, ParameterValue, Codable, CaseIterable {
public enum AppPreOrders: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case appReleaseDate
case preOrderAvailableDate
}

public enum AppPricePoints: String, ParameterValue, Codable, CaseIterable {
public enum AppPricePoints: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case customerPrice
case equalizations
case proceeds
case territory
}

public enum AppPriceSchedules: String, ParameterValue, Codable, CaseIterable {
public enum AppPriceSchedules: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case automaticPrices
case baseTerritory
case manualPrices
}

public enum AppStoreVersionExperiments: String, ParameterValue, Codable, CaseIterable {
public enum AppStoreVersionExperiments: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case appStoreVersionExperimentTreatments
case controlVersions
Expand All @@ -223,7 +223,7 @@ public enum GetAppV1 {
case trafficProportion
}

public enum AppStoreVersions: String, ParameterValue, Codable, CaseIterable {
public enum AppStoreVersions: String, Sendable, ParameterValue, Codable, CaseIterable {
case ageRatingDeclaration
case alternativeDistributionPackage
case app
Expand All @@ -249,7 +249,7 @@ public enum GetAppV1 {
case versionString
}

public enum Apps: String, ParameterValue, Codable, CaseIterable {
public enum Apps: String, Sendable, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
Expand Down Expand Up @@ -295,7 +295,7 @@ public enum GetAppV1 {
case subscriptionStatusUrlVersionForSandbox
}

public enum BetaAppLocalizations: String, ParameterValue, Codable, CaseIterable {
public enum BetaAppLocalizations: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case description
case feedbackEmail
Expand All @@ -305,7 +305,7 @@ public enum GetAppV1 {
case tvOsPrivacyPolicy
}

public enum BetaAppReviewDetails: String, ParameterValue, Codable, CaseIterable {
public enum BetaAppReviewDetails: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case contactEmail
case contactFirstName
Expand All @@ -317,7 +317,7 @@ public enum GetAppV1 {
case notes
}

public enum BetaGroups: String, ParameterValue, Codable, CaseIterable {
public enum BetaGroups: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case betaTesters
case builds
Expand All @@ -334,12 +334,12 @@ public enum GetAppV1 {
case publicLinkLimitEnabled
}

public enum BetaLicenseAgreements: String, ParameterValue, Codable, CaseIterable {
public enum BetaLicenseAgreements: String, Sendable, ParameterValue, Codable, CaseIterable {
case agreementText
case app
}

public enum Builds: String, ParameterValue, Codable, CaseIterable {
public enum Builds: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case appEncryptionDeclaration
case appStoreVersion
Expand All @@ -366,7 +366,7 @@ public enum GetAppV1 {
case version
}

public enum CiProducts: String, ParameterValue, Codable, CaseIterable {
public enum CiProducts: String, Sendable, ParameterValue, Codable, CaseIterable {
case additionalRepositories
case app
case buildRuns
Expand All @@ -378,7 +378,7 @@ public enum GetAppV1 {
case workflows
}

public enum CustomerReviews: String, ParameterValue, Codable, CaseIterable {
public enum CustomerReviews: String, Sendable, ParameterValue, Codable, CaseIterable {
case body
case createdDate
case rating
Expand All @@ -388,13 +388,13 @@ public enum GetAppV1 {
case title
}

public enum EndUserLicenseAgreements: String, ParameterValue, Codable, CaseIterable {
public enum EndUserLicenseAgreements: String, Sendable, ParameterValue, Codable, CaseIterable {
case agreementText
case app
case territories
}

public enum GameCenterDetails: String, ParameterValue, Codable, CaseIterable {
public enum GameCenterDetails: String, Sendable, ParameterValue, Codable, CaseIterable {
case achievementReleases
case app
case arcadeEnabled
Expand All @@ -410,15 +410,15 @@ public enum GetAppV1 {
case leaderboardSetReleases
}

public enum GameCenterEnabledVersions: String, ParameterValue, Codable, CaseIterable {
public enum GameCenterEnabledVersions: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case compatibleVersions
case iconAsset
case platform
case versionString
}

public enum InAppPurchases: String, ParameterValue, Codable, CaseIterable {
public enum InAppPurchases: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case appStoreReviewScreenshot
case apps
Expand All @@ -438,25 +438,25 @@ public enum GetAppV1 {
case state
}

public enum MarketplaceSearchDetails: String, ParameterValue, Codable, CaseIterable {
public enum MarketplaceSearchDetails: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case catalogUrl
}

public enum PerfPowerMetrics: String, ParameterValue, Codable, CaseIterable {
public enum PerfPowerMetrics: String, Sendable, ParameterValue, Codable, CaseIterable {
case deviceType
case metricType
case platform
}

public enum PreReleaseVersions: String, ParameterValue, Codable, CaseIterable {
public enum PreReleaseVersions: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case builds
case platform
case version
}

public enum PromotedPurchases: String, ParameterValue, Codable, CaseIterable {
public enum PromotedPurchases: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case enabled
case inAppPurchaseV2
Expand All @@ -466,7 +466,7 @@ public enum GetAppV1 {
case visibleForAllUsers
}

public enum ReviewSubmissions: String, ParameterValue, Codable, CaseIterable {
public enum ReviewSubmissions: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case appStoreVersionForReview
case canceled
Expand All @@ -479,14 +479,14 @@ public enum GetAppV1 {
case submittedDate
}

public enum SubscriptionGracePeriods: String, ParameterValue, Codable, CaseIterable {
public enum SubscriptionGracePeriods: String, Sendable, ParameterValue, Codable, CaseIterable {
case duration
case optIn
case renewalType
case sandboxOptIn
}

public enum SubscriptionGroups: String, ParameterValue, Codable, CaseIterable {
public enum SubscriptionGroups: String, Sendable, ParameterValue, Codable, CaseIterable {
case app
case referenceName
case subscriptionGroupLocalizations
Expand Down
Loading

0 comments on commit 4b4e727

Please sign in to comment.