diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AlternativeDistributionPackageVersions/ById/AlternativeDistributionPackageVersionsById.GET.f08d676.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AlternativeDistributionPackageVersions/ById/AlternativeDistributionPackageVersionsById.GET.f08d676.generated.swift index 297ac85f..f59c297f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AlternativeDistributionPackageVersions/ById/AlternativeDistributionPackageVersionsById.GET.f08d676.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AlternativeDistributionPackageVersions/ById/AlternativeDistributionPackageVersionsById.GET.f08d676.generated.swift @@ -34,6 +34,8 @@ extension V1.AlternativeDistributionPackageVersions.ById { value: parameters.fields[.alternativeDistributionPackageVariants]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[alternativeDistributionPackageVersions]", value: parameters.fields[.alternativeDistributionPackageVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[alternativeDistributionPackages]", + value: parameters.fields[.alternativeDistributionPackages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[deltas]", @@ -205,6 +207,26 @@ extension V1.AlternativeDistributionPackageVersions.ById.GET { } } + public struct AlternativeDistributionPackages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var sourceFileChecksum: Self { + .init(rawValue: "sourceFileChecksum") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type alternativeDistributionPackageDeltas public static var alternativeDistributionPackageDeltas: Relation<[AlternativeDistributionPackageDeltas]?> { @@ -221,6 +243,11 @@ extension V1.AlternativeDistributionPackageVersions.ById.GET { .init(key: "fields[alternativeDistributionPackageVersions]") } + /// the fields to include for returned resources of type alternativeDistributionPackages + public static var alternativeDistributionPackages: Relation<[AlternativeDistributionPackages]?> { + .init(key: "fields[alternativeDistributionPackages]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAdvancedExperiences/ById/AppClipAdvancedExperiencesById.GET.79eae35.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAdvancedExperiences/ById/AppClipAdvancedExperiencesById.GET.79eae35.generated.swift index 67e4da86..8cf2ec91 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAdvancedExperiences/ById/AppClipAdvancedExperiencesById.GET.79eae35.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAdvancedExperiences/ById/AppClipAdvancedExperiencesById.GET.79eae35.generated.swift @@ -28,8 +28,14 @@ extension V1.AppClipAdvancedExperiences.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appClipAdvancedExperienceImages]", + value: parameters.fields[.appClipAdvancedExperienceImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appClipAdvancedExperienceLocalizations]", + value: parameters.fields[.appClipAdvancedExperienceLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appClipAdvancedExperiences]", value: parameters.fields[.appClipAdvancedExperiences]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appClips]", + value: parameters.fields[.appClips]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[localizations]", @@ -99,6 +105,66 @@ extension V1.AppClipAdvancedExperiences.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppClipAdvancedExperienceImages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var assetDeliveryState: Self { + .init(rawValue: "assetDeliveryState") + } + + public static var fileName: Self { + .init(rawValue: "fileName") + } + + public static var fileSize: Self { + .init(rawValue: "fileSize") + } + + public static var imageAsset: Self { + .init(rawValue: "imageAsset") + } + + public static var sourceFileChecksum: Self { + .init(rawValue: "sourceFileChecksum") + } + + public static var uploadOperations: Self { + .init(rawValue: "uploadOperations") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct AppClipAdvancedExperienceLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var language: Self { + .init(rawValue: "language") + } + + public static var subtitle: Self { + .init(rawValue: "subtitle") + } + + public static var title: Self { + .init(rawValue: "title") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppClipAdvancedExperiences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var action: Self { .init(rawValue: "action") @@ -159,12 +225,55 @@ extension V1.AppClipAdvancedExperiences.ById.GET { } } + public struct AppClips: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipAdvancedExperiences: Self { + .init(rawValue: "appClipAdvancedExperiences") + } + + public static var appClipDefaultExperiences: Self { + .init(rawValue: "appClipDefaultExperiences") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type appClipAdvancedExperienceImages + public static var appClipAdvancedExperienceImages: Relation<[AppClipAdvancedExperienceImages]?> { + .init(key: "fields[appClipAdvancedExperienceImages]") + } + + /// the fields to include for returned resources of type appClipAdvancedExperienceLocalizations + public static var appClipAdvancedExperienceLocalizations: Relation<[AppClipAdvancedExperienceLocalizations]?> { + .init(key: "fields[appClipAdvancedExperienceLocalizations]") + } + /// the fields to include for returned resources of type appClipAdvancedExperiences public static var appClipAdvancedExperiences: Relation<[AppClipAdvancedExperiences]?> { .init(key: "fields[appClipAdvancedExperiences]") } + /// the fields to include for returned resources of type appClips + public static var appClips: Relation<[AppClips]?> { + .init(key: "fields[appClips]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAppStoreReviewDetails/ById/AppClipAppStoreReviewDetailsById.GET.8072c9a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAppStoreReviewDetails/ById/AppClipAppStoreReviewDetailsById.GET.8072c9a.generated.swift index 34d80c81..457f32b5 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAppStoreReviewDetails/ById/AppClipAppStoreReviewDetailsById.GET.8072c9a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAppStoreReviewDetails/ById/AppClipAppStoreReviewDetailsById.GET.8072c9a.generated.swift @@ -30,6 +30,8 @@ extension V1.AppClipAppStoreReviewDetails.ById { components?.queryItems = [ URLQueryItem(name: "fields[appClipAppStoreReviewDetails]", value: parameters.fields[.appClipAppStoreReviewDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appClipDefaultExperiences]", + value: parameters.fields[.appClipDefaultExperiences]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -115,12 +117,49 @@ extension V1.AppClipAppStoreReviewDetails.ById.GET { } } + public struct AppClipDefaultExperiences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var action: Self { + .init(rawValue: "action") + } + + public static var appClip: Self { + .init(rawValue: "appClip") + } + + public static var appClipAppStoreReviewDetail: Self { + .init(rawValue: "appClipAppStoreReviewDetail") + } + + public static var appClipDefaultExperienceLocalizations: Self { + .init(rawValue: "appClipDefaultExperienceLocalizations") + } + + public static var releaseWithAppStoreVersion: Self { + .init(rawValue: "releaseWithAppStoreVersion") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appClipAppStoreReviewDetails public static var appClipAppStoreReviewDetails: Relation<[AppClipAppStoreReviewDetails]?> { .init(key: "fields[appClipAppStoreReviewDetails]") } + /// the fields to include for returned resources of type appClipDefaultExperiences + public static var appClipDefaultExperiences: Relation<[AppClipDefaultExperiences]?> { + .init(key: "fields[appClipDefaultExperiences]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperienceLocalizations/ById/AppClipDefaultExperienceLocalizationsById.GET.da71bfb.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperienceLocalizations/ById/AppClipDefaultExperienceLocalizationsById.GET.da71bfb.generated.swift index 5d6d4980..88757960 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperienceLocalizations/ById/AppClipDefaultExperienceLocalizationsById.GET.da71bfb.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperienceLocalizations/ById/AppClipDefaultExperienceLocalizationsById.GET.da71bfb.generated.swift @@ -30,6 +30,8 @@ extension V1.AppClipDefaultExperienceLocalizations.ById { components?.queryItems = [ URLQueryItem(name: "fields[appClipDefaultExperienceLocalizations]", value: parameters.fields[.appClipDefaultExperienceLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appClipDefaultExperiences]", + value: parameters.fields[.appClipDefaultExperiences]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appClipHeaderImages]", value: parameters.fields[.appClipHeaderImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -125,6 +127,38 @@ extension V1.AppClipDefaultExperienceLocalizations.ById.GET { } } + public struct AppClipDefaultExperiences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var action: Self { + .init(rawValue: "action") + } + + public static var appClip: Self { + .init(rawValue: "appClip") + } + + public static var appClipAppStoreReviewDetail: Self { + .init(rawValue: "appClipAppStoreReviewDetail") + } + + public static var appClipDefaultExperienceLocalizations: Self { + .init(rawValue: "appClipDefaultExperienceLocalizations") + } + + public static var releaseWithAppStoreVersion: Self { + .init(rawValue: "releaseWithAppStoreVersion") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppClipHeaderImages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appClipDefaultExperienceLocalization: Self { .init(rawValue: "appClipDefaultExperienceLocalization") @@ -171,6 +205,11 @@ extension V1.AppClipDefaultExperienceLocalizations.ById.GET { .init(key: "fields[appClipDefaultExperienceLocalizations]") } + /// the fields to include for returned resources of type appClipDefaultExperiences + public static var appClipDefaultExperiences: Relation<[AppClipDefaultExperiences]?> { + .init(key: "fields[appClipDefaultExperiences]") + } + /// the fields to include for returned resources of type appClipHeaderImages public static var appClipHeaderImages: Relation<[AppClipHeaderImages]?> { .init(key: "fields[appClipHeaderImages]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/AppClipDefaultExperiencesById.GET.ce80d07.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/AppClipDefaultExperiencesById.GET.ce80d07.generated.swift index fa85a0bc..2f766e85 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/AppClipDefaultExperiencesById.GET.ce80d07.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/AppClipDefaultExperiencesById.GET.ce80d07.generated.swift @@ -34,6 +34,8 @@ extension V1.AppClipDefaultExperiences.ById { value: parameters.fields[.appClipDefaultExperienceLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appClipDefaultExperiences]", value: parameters.fields[.appClipDefaultExperiences]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appClips]", + value: parameters.fields[.appClips]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appStoreVersions]", value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -185,6 +187,34 @@ extension V1.AppClipDefaultExperiences.ById.GET { } } + public struct AppClips: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipAdvancedExperiences: Self { + .init(rawValue: "appClipAdvancedExperiences") + } + + public static var appClipDefaultExperiences: Self { + .init(rawValue: "appClipDefaultExperiences") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var alternativeDistributionPackage: Self { .init(rawValue: "alternativeDistributionPackage") @@ -309,6 +339,11 @@ extension V1.AppClipDefaultExperiences.ById.GET { .init(key: "fields[appClipDefaultExperiences]") } + /// the fields to include for returned resources of type appClips + public static var appClips: Relation<[AppClips]?> { + .init(key: "fields[appClips]") + } + /// the fields to include for returned resources of type appStoreVersions public static var appStoreVersions: Relation<[AppStoreVersions]?> { .init(key: "fields[appStoreVersions]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/Relationships/ReleaseWithAppStoreVersion/AppClipDefaultExperiencesByIdRelationshipsReleaseWithAppStoreVersion.PATCH.5f5225a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/Relationships/ReleaseWithAppStoreVersion/AppClipDefaultExperiencesByIdRelationshipsReleaseWithAppStoreVersion.PATCH.5f5225a.generated.swift index b95241ef..72c6a817 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/Relationships/ReleaseWithAppStoreVersion/AppClipDefaultExperiencesByIdRelationshipsReleaseWithAppStoreVersion.PATCH.5f5225a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/Relationships/ReleaseWithAppStoreVersion/AppClipDefaultExperiencesByIdRelationshipsReleaseWithAppStoreVersion.PATCH.5f5225a.generated.swift @@ -46,6 +46,7 @@ extension V1.AppClipDefaultExperiences.ById.Relationships.ReleaseWithAppStoreVer return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.AppClipDefaultExperiences.ById.Relationships.ReleaseWithAppStoreVer } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipHeaderImages/ById/AppClipHeaderImagesById.GET.324a2cc.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipHeaderImages/ById/AppClipHeaderImagesById.GET.324a2cc.generated.swift index f53412b1..f3f68108 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipHeaderImages/ById/AppClipHeaderImagesById.GET.324a2cc.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipHeaderImages/ById/AppClipHeaderImagesById.GET.324a2cc.generated.swift @@ -28,6 +28,8 @@ extension V1.AppClipHeaderImages.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appClipDefaultExperienceLocalizations]", + value: parameters.fields[.appClipDefaultExperienceLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appClipHeaderImages]", value: parameters.fields[.appClipHeaderImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,34 @@ extension V1.AppClipHeaderImages.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppClipDefaultExperienceLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appClipHeaderImage: Self { + .init(rawValue: "appClipHeaderImage") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var subtitle: Self { + .init(rawValue: "subtitle") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppClipHeaderImages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appClipDefaultExperienceLocalization: Self { .init(rawValue: "appClipDefaultExperienceLocalization") @@ -136,6 +166,11 @@ extension V1.AppClipHeaderImages.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type appClipDefaultExperienceLocalizations + public static var appClipDefaultExperienceLocalizations: Relation<[AppClipDefaultExperienceLocalizations]?> { + .init(key: "fields[appClipDefaultExperienceLocalizations]") + } + /// the fields to include for returned resources of type appClipHeaderImages public static var appClipHeaderImages: Relation<[AppClipHeaderImages]?> { .init(key: "fields[appClipHeaderImages]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClips/ById/AppClipsById.GET.b5637d8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClips/ById/AppClipsById.GET.b5637d8.generated.swift index 8f69a72b..8fa1764b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClips/ById/AppClipsById.GET.b5637d8.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClips/ById/AppClipsById.GET.b5637d8.generated.swift @@ -32,6 +32,8 @@ extension V1.AppClips.ById { value: parameters.fields[.appClipDefaultExperiences]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appClips]", value: parameters.fields[.appClips]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appClipDefaultExperiences]", @@ -161,6 +163,238 @@ extension V1.AppClips.ById.GET { } } + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appClipDefaultExperiences public static var appClipDefaultExperiences: Relation<[AppClipDefaultExperiences]?> { @@ -172,6 +406,11 @@ extension V1.AppClips.ById.GET { .init(key: "fields[appClips]") } + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppCustomProductPageLocalizationsById.GET.8c524c6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppCustomProductPageLocalizationsById.GET.8c524c6.generated.swift index 4932dce9..fd7388d2 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppCustomProductPageLocalizationsById.GET.8c524c6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppCustomProductPageLocalizationsById.GET.8c524c6.generated.swift @@ -30,6 +30,8 @@ extension V1.AppCustomProductPageLocalizations.ById { components?.queryItems = [ URLQueryItem(name: "fields[appCustomProductPageLocalizations]", value: parameters.fields[.appCustomProductPageLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appCustomProductPageVersions]", + value: parameters.fields[.appCustomProductPageVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appPreviewSets]", value: parameters.fields[.appPreviewSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appScreenshotSets]", @@ -143,6 +145,38 @@ extension V1.AppCustomProductPageLocalizations.ById.GET { } } + public struct AppCustomProductPageVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appCustomProductPage: Self { + .init(rawValue: "appCustomProductPage") + } + + public static var appCustomProductPageLocalizations: Self { + .init(rawValue: "appCustomProductPageLocalizations") + } + + public static var deepLink: Self { + .init(rawValue: "deepLink") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppPreviewSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appCustomProductPageLocalization: Self { .init(rawValue: "appCustomProductPageLocalization") @@ -213,6 +247,11 @@ extension V1.AppCustomProductPageLocalizations.ById.GET { .init(key: "fields[appCustomProductPageLocalizations]") } + /// the fields to include for returned resources of type appCustomProductPageVersions + public static var appCustomProductPageVersions: Relation<[AppCustomProductPageVersions]?> { + .init(key: "fields[appCustomProductPageVersions]") + } + /// the fields to include for returned resources of type appPreviewSets public static var appPreviewSets: Relation<[AppPreviewSets]?> { .init(key: "fields[appPreviewSets]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/SearchKeywords/AppCustomProductPageLocalizationsByIdRelationshipsSearchKeywords.DELETE.450ad4e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/SearchKeywords/AppCustomProductPageLocalizationsByIdRelationshipsSearchKeywords.DELETE.450ad4e.generated.swift index bd3ae07a..dac2693f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/SearchKeywords/AppCustomProductPageLocalizationsByIdRelationshipsSearchKeywords.DELETE.450ad4e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/SearchKeywords/AppCustomProductPageLocalizationsByIdRelationshipsSearchKeywords.DELETE.450ad4e.generated.swift @@ -31,6 +31,7 @@ extension V1.AppCustomProductPageLocalizations.ById.Relationships.SearchKeywords return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.AppCustomProductPageLocalizations.ById.Relationships.SearchKeywords } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/SearchKeywords/AppCustomProductPageLocalizationsByIdRelationshipsSearchKeywords.POST.450ad4e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/SearchKeywords/AppCustomProductPageLocalizationsByIdRelationshipsSearchKeywords.POST.450ad4e.generated.swift index 59696ff2..0af5cd93 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/SearchKeywords/AppCustomProductPageLocalizationsByIdRelationshipsSearchKeywords.POST.450ad4e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/SearchKeywords/AppCustomProductPageLocalizationsByIdRelationshipsSearchKeywords.POST.450ad4e.generated.swift @@ -46,6 +46,7 @@ extension V1.AppCustomProductPageLocalizations.ById.Relationships.SearchKeywords return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.AppCustomProductPageLocalizations.ById.Relationships.SearchKeywords } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageVersions/ById/AppCustomProductPageVersionsById.GET.0840b44.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageVersions/ById/AppCustomProductPageVersionsById.GET.0840b44.generated.swift index 75a9e6a2..183d9b04 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageVersions/ById/AppCustomProductPageVersionsById.GET.0840b44.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageVersions/ById/AppCustomProductPageVersionsById.GET.0840b44.generated.swift @@ -32,6 +32,8 @@ extension V1.AppCustomProductPageVersions.ById { value: parameters.fields[.appCustomProductPageLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appCustomProductPageVersions]", value: parameters.fields[.appCustomProductPageVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appCustomProductPages]", + value: parameters.fields[.appCustomProductPages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appCustomProductPageLocalizations]", @@ -169,6 +171,38 @@ extension V1.AppCustomProductPageVersions.ById.GET { } } + public struct AppCustomProductPages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appCustomProductPageVersions: Self { + .init(rawValue: "appCustomProductPageVersions") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var url: Self { + .init(rawValue: "url") + } + + public static var visible: Self { + .init(rawValue: "visible") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appCustomProductPageLocalizations public static var appCustomProductPageLocalizations: Relation<[AppCustomProductPageLocalizations]?> { @@ -180,6 +214,11 @@ extension V1.AppCustomProductPageVersions.ById.GET { .init(key: "fields[appCustomProductPageVersions]") } + /// the fields to include for returned resources of type appCustomProductPages + public static var appCustomProductPages: Relation<[AppCustomProductPages]?> { + .init(key: "fields[appCustomProductPages]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPages/ById/AppCustomProductPagesById.GET.fd7ab83.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPages/ById/AppCustomProductPagesById.GET.fd7ab83.generated.swift index 7d6d8db7..f3501bd4 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPages/ById/AppCustomProductPagesById.GET.fd7ab83.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPages/ById/AppCustomProductPagesById.GET.fd7ab83.generated.swift @@ -32,6 +32,8 @@ extension V1.AppCustomProductPages.ById { value: parameters.fields[.appCustomProductPageVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appCustomProductPages]", value: parameters.fields[.appCustomProductPages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appCustomProductPageVersions]", @@ -165,6 +167,238 @@ extension V1.AppCustomProductPages.ById.GET { } } + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appCustomProductPageVersions public static var appCustomProductPageVersions: Relation<[AppCustomProductPageVersions]?> { @@ -176,6 +410,11 @@ extension V1.AppCustomProductPages.ById.GET { .init(key: "fields[appCustomProductPages]") } + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/AppEncryptionDeclarations.GET.dc4b248.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/AppEncryptionDeclarations.GET.dc4b248.generated.swift index 4c6635d1..f2680444 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/AppEncryptionDeclarations.GET.dc4b248.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/AppEncryptionDeclarations.GET.dc4b248.generated.swift @@ -31,6 +31,8 @@ extension V1.AppEncryptionDeclarations { value: parameters.fields[.appEncryptionDeclarations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[apps]", value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[builds]", + value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[app]", value: parameters.filter[.app]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[builds]", @@ -459,6 +461,122 @@ extension V1.AppEncryptionDeclarations.GET { } } + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appEncryptionDeclaration: Self { + .init(rawValue: "appEncryptionDeclaration") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var betaAppReviewSubmission: Self { + .init(rawValue: "betaAppReviewSubmission") + } + + public static var betaBuildLocalizations: Self { + .init(rawValue: "betaBuildLocalizations") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var buildAudienceType: Self { + .init(rawValue: "buildAudienceType") + } + + public static var buildBetaDetail: Self { + .init(rawValue: "buildBetaDetail") + } + + public static var buildBundles: Self { + .init(rawValue: "buildBundles") + } + + public static var buildUpload: Self { + .init(rawValue: "buildUpload") + } + + public static var computedMinMacOsVersion: Self { + .init(rawValue: "computedMinMacOsVersion") + } + + public static var computedMinVisionOsVersion: Self { + .init(rawValue: "computedMinVisionOsVersion") + } + + public static var diagnosticSignatures: Self { + .init(rawValue: "diagnosticSignatures") + } + + public static var expirationDate: Self { + .init(rawValue: "expirationDate") + } + + public static var expired: Self { + .init(rawValue: "expired") + } + + public static var iconAssetToken: Self { + .init(rawValue: "iconAssetToken") + } + + public static var icons: Self { + .init(rawValue: "icons") + } + + public static var individualTesters: Self { + .init(rawValue: "individualTesters") + } + + public static var lsMinimumSystemVersion: Self { + .init(rawValue: "lsMinimumSystemVersion") + } + + public static var minOsVersion: Self { + .init(rawValue: "minOsVersion") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersion: Self { + .init(rawValue: "preReleaseVersion") + } + + public static var processingState: Self { + .init(rawValue: "processingState") + } + + public static var uploadedDate: Self { + .init(rawValue: "uploadedDate") + } + + public static var usesNonExemptEncryption: Self { + .init(rawValue: "usesNonExemptEncryption") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appEncryptionDeclarationDocuments public static var appEncryptionDeclarationDocuments: Relation<[AppEncryptionDeclarationDocuments]?> { @@ -475,6 +593,11 @@ extension V1.AppEncryptionDeclarations.GET { .init(key: "fields[apps]") } + /// the fields to include for returned resources of type builds + public static var builds: Relation<[Builds]?> { + .init(key: "fields[builds]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/ById/AppEncryptionDeclarationsById.GET.2657e05.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/ById/AppEncryptionDeclarationsById.GET.2657e05.generated.swift index 2f7e07fb..c6fe6d95 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/ById/AppEncryptionDeclarationsById.GET.2657e05.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/ById/AppEncryptionDeclarationsById.GET.2657e05.generated.swift @@ -34,6 +34,8 @@ extension V1.AppEncryptionDeclarations.ById { value: parameters.fields[.appEncryptionDeclarations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[apps]", value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[builds]", + value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[builds]", @@ -455,6 +457,122 @@ extension V1.AppEncryptionDeclarations.ById.GET { } } + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appEncryptionDeclaration: Self { + .init(rawValue: "appEncryptionDeclaration") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var betaAppReviewSubmission: Self { + .init(rawValue: "betaAppReviewSubmission") + } + + public static var betaBuildLocalizations: Self { + .init(rawValue: "betaBuildLocalizations") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var buildAudienceType: Self { + .init(rawValue: "buildAudienceType") + } + + public static var buildBetaDetail: Self { + .init(rawValue: "buildBetaDetail") + } + + public static var buildBundles: Self { + .init(rawValue: "buildBundles") + } + + public static var buildUpload: Self { + .init(rawValue: "buildUpload") + } + + public static var computedMinMacOsVersion: Self { + .init(rawValue: "computedMinMacOsVersion") + } + + public static var computedMinVisionOsVersion: Self { + .init(rawValue: "computedMinVisionOsVersion") + } + + public static var diagnosticSignatures: Self { + .init(rawValue: "diagnosticSignatures") + } + + public static var expirationDate: Self { + .init(rawValue: "expirationDate") + } + + public static var expired: Self { + .init(rawValue: "expired") + } + + public static var iconAssetToken: Self { + .init(rawValue: "iconAssetToken") + } + + public static var icons: Self { + .init(rawValue: "icons") + } + + public static var individualTesters: Self { + .init(rawValue: "individualTesters") + } + + public static var lsMinimumSystemVersion: Self { + .init(rawValue: "lsMinimumSystemVersion") + } + + public static var minOsVersion: Self { + .init(rawValue: "minOsVersion") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersion: Self { + .init(rawValue: "preReleaseVersion") + } + + public static var processingState: Self { + .init(rawValue: "processingState") + } + + public static var uploadedDate: Self { + .init(rawValue: "uploadedDate") + } + + public static var usesNonExemptEncryption: Self { + .init(rawValue: "usesNonExemptEncryption") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appEncryptionDeclarationDocuments public static var appEncryptionDeclarationDocuments: Relation<[AppEncryptionDeclarationDocuments]?> { @@ -471,6 +589,11 @@ extension V1.AppEncryptionDeclarations.ById.GET { .init(key: "fields[apps]") } + /// the fields to include for returned resources of type builds + public static var builds: Relation<[Builds]?> { + .init(key: "fields[builds]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/ById/Relationships/Builds/AppEncryptionDeclarationsByIdRelationshipsBuilds.POST.6eef119.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/ById/Relationships/Builds/AppEncryptionDeclarationsByIdRelationshipsBuilds.POST.6eef119.generated.swift index e13859e3..6208c51d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/ById/Relationships/Builds/AppEncryptionDeclarationsByIdRelationshipsBuilds.POST.6eef119.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEncryptionDeclarations/ById/Relationships/Builds/AppEncryptionDeclarationsByIdRelationshipsBuilds.POST.6eef119.generated.swift @@ -47,6 +47,7 @@ extension V1.AppEncryptionDeclarations.ById.Relationships.Builds { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.AppEncryptionDeclarations.ById.Relationships.Builds { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventLocalizationsById.GET.756638b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventLocalizationsById.GET.756638b.generated.swift index 23c59932..7821fce3 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventLocalizationsById.GET.756638b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventLocalizationsById.GET.756638b.generated.swift @@ -34,6 +34,8 @@ extension V1.AppEventLocalizations.ById { value: parameters.fields[.appEventScreenshots]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appEventVideoClips]", value: parameters.fields[.appEventVideoClips]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appEvents]", + value: parameters.fields[.appEvents]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appEventScreenshots]", @@ -245,6 +247,62 @@ extension V1.AppEventLocalizations.ById.GET { } } + public struct AppEvents: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var archivedTerritorySchedules: Self { + .init(rawValue: "archivedTerritorySchedules") + } + + public static var badge: Self { + .init(rawValue: "badge") + } + + public static var deepLink: Self { + .init(rawValue: "deepLink") + } + + public static var eventState: Self { + .init(rawValue: "eventState") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var priority: Self { + .init(rawValue: "priority") + } + + public static var purchaseRequirement: Self { + .init(rawValue: "purchaseRequirement") + } + + public static var purpose: Self { + .init(rawValue: "purpose") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var territorySchedules: Self { + .init(rawValue: "territorySchedules") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appEventLocalizations public static var appEventLocalizations: Relation<[AppEventLocalizations]?> { @@ -261,6 +319,11 @@ extension V1.AppEventLocalizations.ById.GET { .init(key: "fields[appEventVideoClips]") } + /// the fields to include for returned resources of type appEvents + public static var appEvents: Relation<[AppEvents]?> { + .init(key: "fields[appEvents]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.GET.468aec9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.GET.468aec9.generated.swift index 4e8f5949..af609b38 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.GET.468aec9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.GET.468aec9.generated.swift @@ -28,6 +28,8 @@ extension V1.AppEventScreenshots.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appEventLocalizations]", + value: parameters.fields[.appEventLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appEventScreenshots]", value: parameters.fields[.appEventScreenshots]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,46 @@ extension V1.AppEventScreenshots.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppEventLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appEvent: Self { + .init(rawValue: "appEvent") + } + + public static var appEventScreenshots: Self { + .init(rawValue: "appEventScreenshots") + } + + public static var appEventVideoClips: Self { + .init(rawValue: "appEventVideoClips") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var longDescription: Self { + .init(rawValue: "longDescription") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var shortDescription: Self { + .init(rawValue: "shortDescription") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppEventScreenshots: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appEventAssetType: Self { .init(rawValue: "appEventAssetType") @@ -140,6 +182,11 @@ extension V1.AppEventScreenshots.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type appEventLocalizations + public static var appEventLocalizations: Relation<[AppEventLocalizations]?> { + .init(key: "fields[appEventLocalizations]") + } + /// the fields to include for returned resources of type appEventScreenshots public static var appEventScreenshots: Relation<[AppEventScreenshots]?> { .init(key: "fields[appEventScreenshots]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.GET.ed0e879.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.GET.ed0e879.generated.swift index 4a3b50b1..7634a71c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.GET.ed0e879.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.GET.ed0e879.generated.swift @@ -28,6 +28,8 @@ extension V1.AppEventVideoClips.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appEventLocalizations]", + value: parameters.fields[.appEventLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appEventVideoClips]", value: parameters.fields[.appEventVideoClips]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,46 @@ extension V1.AppEventVideoClips.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppEventLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appEvent: Self { + .init(rawValue: "appEvent") + } + + public static var appEventScreenshots: Self { + .init(rawValue: "appEventScreenshots") + } + + public static var appEventVideoClips: Self { + .init(rawValue: "appEventVideoClips") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var longDescription: Self { + .init(rawValue: "longDescription") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var shortDescription: Self { + .init(rawValue: "shortDescription") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppEventVideoClips: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appEventAssetType: Self { .init(rawValue: "appEventAssetType") @@ -152,6 +194,11 @@ extension V1.AppEventVideoClips.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type appEventLocalizations + public static var appEventLocalizations: Relation<[AppEventLocalizations]?> { + .init(key: "fields[appEventLocalizations]") + } + /// the fields to include for returned resources of type appEventVideoClips public static var appEventVideoClips: Relation<[AppEventVideoClips]?> { .init(key: "fields[appEventVideoClips]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfoLocalizations/ById/AppInfoLocalizationsById.GET.0b83534.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfoLocalizations/ById/AppInfoLocalizationsById.GET.0b83534.generated.swift index bedf80f5..9048bf2b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfoLocalizations/ById/AppInfoLocalizationsById.GET.0b83534.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfoLocalizations/ById/AppInfoLocalizationsById.GET.0b83534.generated.swift @@ -30,6 +30,8 @@ extension V1.AppInfoLocalizations.ById { components?.queryItems = [ URLQueryItem(name: "fields[appInfoLocalizations]", value: parameters.fields[.appInfoLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appInfos]", + value: parameters.fields[.appInfos]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -135,12 +137,105 @@ extension V1.AppInfoLocalizations.ById.GET { } } + public struct AppInfos: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var ageRatingDeclaration: Self { + .init(rawValue: "ageRatingDeclaration") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appInfoLocalizations: Self { + .init(rawValue: "appInfoLocalizations") + } + + public static var appStoreAgeRating: Self { + .init(rawValue: "appStoreAgeRating") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var australiaAgeRating: Self { + .init(rawValue: "australiaAgeRating") + } + + public static var brazilAgeRating: Self { + .init(rawValue: "brazilAgeRating") + } + + public static var brazilAgeRatingV2: Self { + .init(rawValue: "brazilAgeRatingV2") + } + + public static var franceAgeRating: Self { + .init(rawValue: "franceAgeRating") + } + + public static var kidsAgeBand: Self { + .init(rawValue: "kidsAgeBand") + } + + public static var koreaAgeRating: Self { + .init(rawValue: "koreaAgeRating") + } + + public static var primaryCategory: Self { + .init(rawValue: "primaryCategory") + } + + public static var primarySubcategoryOne: Self { + .init(rawValue: "primarySubcategoryOne") + } + + public static var primarySubcategoryTwo: Self { + .init(rawValue: "primarySubcategoryTwo") + } + + public static var secondaryCategory: Self { + .init(rawValue: "secondaryCategory") + } + + public static var secondarySubcategoryOne: Self { + .init(rawValue: "secondarySubcategoryOne") + } + + public static var secondarySubcategoryTwo: Self { + .init(rawValue: "secondarySubcategoryTwo") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var territoryAgeRatings: Self { + .init(rawValue: "territoryAgeRatings") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appInfoLocalizations public static var appInfoLocalizations: Relation<[AppInfoLocalizations]?> { .init(key: "fields[appInfoLocalizations]") } + /// the fields to include for returned resources of type appInfos + public static var appInfos: Relation<[AppInfos]?> { + .init(key: "fields[appInfos]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfosById.GET.f5390de.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfosById.GET.f5390de.generated.swift index 28ea3e7f..b016c681 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfosById.GET.f5390de.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfosById.GET.f5390de.generated.swift @@ -36,6 +36,8 @@ extension V1.AppInfos.ById { value: parameters.fields[.appInfoLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appInfos]", value: parameters.fields[.appInfos]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appInfoLocalizations]", @@ -377,6 +379,238 @@ extension V1.AppInfos.ById.GET { } } + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type ageRatingDeclarations public static var ageRatingDeclarations: Relation<[AgeRatingDeclarations]?> { @@ -398,6 +632,11 @@ extension V1.AppInfos.ById.GET { .init(key: "fields[appInfos]") } + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.GET.fc798bf.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.GET.fc798bf.generated.swift index 92757c8a..01db66ee 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.GET.fc798bf.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.GET.fc798bf.generated.swift @@ -28,10 +28,16 @@ extension V1.AppPreviewSets.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appCustomProductPageLocalizations]", + value: parameters.fields[.appCustomProductPageLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appPreviewSets]", value: parameters.fields[.appPreviewSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appPreviews]", value: parameters.fields[.appPreviews]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersionExperimentTreatmentLocalizations]", + value: parameters.fields[.appStoreVersionExperimentTreatmentLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersionLocalizations]", + value: parameters.fields[.appStoreVersionLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appPreviews]", @@ -101,6 +107,42 @@ extension V1.AppPreviewSets.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppCustomProductPageLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appCustomProductPageVersion: Self { + .init(rawValue: "appCustomProductPageVersion") + } + + public static var appPreviewSets: Self { + .init(rawValue: "appPreviewSets") + } + + public static var appScreenshotSets: Self { + .init(rawValue: "appScreenshotSets") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var promotionalText: Self { + .init(rawValue: "promotionalText") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppPreviewSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appCustomProductPageLocalization: Self { .init(rawValue: "appCustomProductPageLocalization") @@ -193,7 +235,96 @@ extension V1.AppPreviewSets.ById.GET { } } + public struct AppStoreVersionExperimentTreatmentLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appPreviewSets: Self { + .init(rawValue: "appPreviewSets") + } + + public static var appScreenshotSets: Self { + .init(rawValue: "appScreenshotSets") + } + + public static var appStoreVersionExperimentTreatment: Self { + .init(rawValue: "appStoreVersionExperimentTreatment") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct AppStoreVersionLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appPreviewSets: Self { + .init(rawValue: "appPreviewSets") + } + + public static var appScreenshotSets: Self { + .init(rawValue: "appScreenshotSets") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var description: Self { + .init(rawValue: "description") + } + + public static var keywords: Self { + .init(rawValue: "keywords") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var marketingUrl: Self { + .init(rawValue: "marketingUrl") + } + + public static var promotionalText: Self { + .init(rawValue: "promotionalText") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var supportUrl: Self { + .init(rawValue: "supportUrl") + } + + public static var whatsNew: Self { + .init(rawValue: "whatsNew") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type appCustomProductPageLocalizations + public static var appCustomProductPageLocalizations: Relation<[AppCustomProductPageLocalizations]?> { + .init(key: "fields[appCustomProductPageLocalizations]") + } + /// the fields to include for returned resources of type appPreviewSets public static var appPreviewSets: Relation<[AppPreviewSets]?> { .init(key: "fields[appPreviewSets]") @@ -204,6 +335,16 @@ extension V1.AppPreviewSets.ById.GET { .init(key: "fields[appPreviews]") } + /// the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations + public static var appStoreVersionExperimentTreatmentLocalizations: Relation<[AppStoreVersionExperimentTreatmentLocalizations]?> { + .init(key: "fields[appStoreVersionExperimentTreatmentLocalizations]") + } + + /// the fields to include for returned resources of type appStoreVersionLocalizations + public static var appStoreVersionLocalizations: Relation<[AppStoreVersionLocalizations]?> { + .init(key: "fields[appStoreVersionLocalizations]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.PATCH.7ca8051.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.PATCH.7ca8051.generated.swift index 37df5c62..81488051 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.PATCH.7ca8051.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.PATCH.7ca8051.generated.swift @@ -46,6 +46,7 @@ extension V1.AppPreviewSets.ById.Relationships.AppPreviews { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.AppPreviewSets.ById.Relationships.AppPreviews { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.GET.9a43a28.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.GET.9a43a28.generated.swift index e4e3892b..58e4ee5f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.GET.9a43a28.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.GET.9a43a28.generated.swift @@ -28,6 +28,8 @@ extension V1.AppPreviews.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appPreviewSets]", + value: parameters.fields[.appPreviewSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appPreviews]", value: parameters.fields[.appPreviews]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,38 @@ extension V1.AppPreviews.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppPreviewSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appCustomProductPageLocalization: Self { + .init(rawValue: "appCustomProductPageLocalization") + } + + public static var appPreviews: Self { + .init(rawValue: "appPreviews") + } + + public static var appStoreVersionExperimentTreatmentLocalization: Self { + .init(rawValue: "appStoreVersionExperimentTreatmentLocalization") + } + + public static var appStoreVersionLocalization: Self { + .init(rawValue: "appStoreVersionLocalization") + } + + public static var previewType: Self { + .init(rawValue: "previewType") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppPreviews: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appPreviewSet: Self { .init(rawValue: "appPreviewSet") @@ -156,6 +190,11 @@ extension V1.AppPreviews.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type appPreviewSets + public static var appPreviewSets: Relation<[AppPreviewSets]?> { + .init(key: "fields[appPreviewSets]") + } + /// the fields to include for returned resources of type appPreviews public static var appPreviews: Relation<[AppPreviews]?> { .init(key: "fields[appPreviews]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPriceSchedules/ById/AppPriceSchedulesById.GET.de4a989.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPriceSchedules/ById/AppPriceSchedulesById.GET.de4a989.generated.swift index eec8cd1c..6fb8a679 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPriceSchedules/ById/AppPriceSchedulesById.GET.de4a989.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPriceSchedules/ById/AppPriceSchedulesById.GET.de4a989.generated.swift @@ -32,6 +32,8 @@ extension V1.AppPriceSchedules.ById { value: parameters.fields[.appPriceSchedules]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appPrices]", value: parameters.fields[.appPrices]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[territories]", value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -165,6 +167,238 @@ extension V1.AppPriceSchedules.ById.GET { } } + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var currency: Self { .init(rawValue: "currency") @@ -192,6 +426,11 @@ extension V1.AppPriceSchedules.ById.GET { .init(key: "fields[appPrices]") } + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type territories public static var territories: Relation<[Territories]?> { .init(key: "fields[territories]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.GET.0b8968b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.GET.0b8968b.generated.swift index 99135c8d..386af7e5 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.GET.0b8968b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.GET.0b8968b.generated.swift @@ -28,10 +28,16 @@ extension V1.AppScreenshotSets.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appCustomProductPageLocalizations]", + value: parameters.fields[.appCustomProductPageLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appScreenshotSets]", value: parameters.fields[.appScreenshotSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appScreenshots]", value: parameters.fields[.appScreenshots]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersionExperimentTreatmentLocalizations]", + value: parameters.fields[.appStoreVersionExperimentTreatmentLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersionLocalizations]", + value: parameters.fields[.appStoreVersionLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appScreenshots]", @@ -101,6 +107,42 @@ extension V1.AppScreenshotSets.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppCustomProductPageLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appCustomProductPageVersion: Self { + .init(rawValue: "appCustomProductPageVersion") + } + + public static var appPreviewSets: Self { + .init(rawValue: "appPreviewSets") + } + + public static var appScreenshotSets: Self { + .init(rawValue: "appScreenshotSets") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var promotionalText: Self { + .init(rawValue: "promotionalText") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppScreenshotSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appCustomProductPageLocalization: Self { .init(rawValue: "appCustomProductPageLocalization") @@ -181,7 +223,96 @@ extension V1.AppScreenshotSets.ById.GET { } } + public struct AppStoreVersionExperimentTreatmentLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appPreviewSets: Self { + .init(rawValue: "appPreviewSets") + } + + public static var appScreenshotSets: Self { + .init(rawValue: "appScreenshotSets") + } + + public static var appStoreVersionExperimentTreatment: Self { + .init(rawValue: "appStoreVersionExperimentTreatment") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct AppStoreVersionLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appPreviewSets: Self { + .init(rawValue: "appPreviewSets") + } + + public static var appScreenshotSets: Self { + .init(rawValue: "appScreenshotSets") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var description: Self { + .init(rawValue: "description") + } + + public static var keywords: Self { + .init(rawValue: "keywords") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var marketingUrl: Self { + .init(rawValue: "marketingUrl") + } + + public static var promotionalText: Self { + .init(rawValue: "promotionalText") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var supportUrl: Self { + .init(rawValue: "supportUrl") + } + + public static var whatsNew: Self { + .init(rawValue: "whatsNew") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type appCustomProductPageLocalizations + public static var appCustomProductPageLocalizations: Relation<[AppCustomProductPageLocalizations]?> { + .init(key: "fields[appCustomProductPageLocalizations]") + } + /// the fields to include for returned resources of type appScreenshotSets public static var appScreenshotSets: Relation<[AppScreenshotSets]?> { .init(key: "fields[appScreenshotSets]") @@ -192,6 +323,16 @@ extension V1.AppScreenshotSets.ById.GET { .init(key: "fields[appScreenshots]") } + /// the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations + public static var appStoreVersionExperimentTreatmentLocalizations: Relation<[AppStoreVersionExperimentTreatmentLocalizations]?> { + .init(key: "fields[appStoreVersionExperimentTreatmentLocalizations]") + } + + /// the fields to include for returned resources of type appStoreVersionLocalizations + public static var appStoreVersionLocalizations: Relation<[AppStoreVersionLocalizations]?> { + .init(key: "fields[appStoreVersionLocalizations]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.PATCH.a264720.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.PATCH.a264720.generated.swift index aa9527d8..54ffc611 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.PATCH.a264720.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.PATCH.a264720.generated.swift @@ -46,6 +46,7 @@ extension V1.AppScreenshotSets.ById.Relationships.AppScreenshots { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.AppScreenshotSets.ById.Relationships.AppScreenshots { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.GET.1a453d6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.GET.1a453d6.generated.swift index b22f355e..7d2c841b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.GET.1a453d6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.GET.1a453d6.generated.swift @@ -28,6 +28,8 @@ extension V1.AppScreenshots.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appScreenshotSets]", + value: parameters.fields[.appScreenshotSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appScreenshots]", value: parameters.fields[.appScreenshots]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,38 @@ extension V1.AppScreenshots.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppScreenshotSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appCustomProductPageLocalization: Self { + .init(rawValue: "appCustomProductPageLocalization") + } + + public static var appScreenshots: Self { + .init(rawValue: "appScreenshots") + } + + public static var appStoreVersionExperimentTreatmentLocalization: Self { + .init(rawValue: "appStoreVersionExperimentTreatmentLocalization") + } + + public static var appStoreVersionLocalization: Self { + .init(rawValue: "appStoreVersionLocalization") + } + + public static var screenshotDisplayType: Self { + .init(rawValue: "screenshotDisplayType") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct AppScreenshots: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appScreenshotSet: Self { .init(rawValue: "appScreenshotSet") @@ -144,6 +178,11 @@ extension V1.AppScreenshots.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type appScreenshotSets + public static var appScreenshotSets: Relation<[AppScreenshotSets]?> { + .init(key: "fields[appScreenshotSets]") + } + /// the fields to include for returned resources of type appScreenshots public static var appScreenshots: Relation<[AppScreenshots]?> { .init(key: "fields[appScreenshots]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreReviewAttachments/ById/AppStoreReviewAttachmentsById.GET.f1889f3.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreReviewAttachments/ById/AppStoreReviewAttachmentsById.GET.f1889f3.generated.swift index 789f63b6..e5218f35 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreReviewAttachments/ById/AppStoreReviewAttachmentsById.GET.f1889f3.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreReviewAttachments/ById/AppStoreReviewAttachmentsById.GET.f1889f3.generated.swift @@ -30,6 +30,8 @@ extension V1.AppStoreReviewAttachments.ById { components?.queryItems = [ URLQueryItem(name: "fields[appStoreReviewAttachments]", value: parameters.fields[.appStoreReviewAttachments]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreReviewDetails]", + value: parameters.fields[.appStoreReviewDetails]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -131,12 +133,69 @@ extension V1.AppStoreReviewAttachments.ById.GET { } } + public struct AppStoreReviewDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewAttachments: Self { + .init(rawValue: "appStoreReviewAttachments") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var contactEmail: Self { + .init(rawValue: "contactEmail") + } + + public static var contactFirstName: Self { + .init(rawValue: "contactFirstName") + } + + public static var contactLastName: Self { + .init(rawValue: "contactLastName") + } + + public static var contactPhone: Self { + .init(rawValue: "contactPhone") + } + + public static var demoAccountName: Self { + .init(rawValue: "demoAccountName") + } + + public static var demoAccountPassword: Self { + .init(rawValue: "demoAccountPassword") + } + + public static var demoAccountRequired: Self { + .init(rawValue: "demoAccountRequired") + } + + public static var notes: Self { + .init(rawValue: "notes") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appStoreReviewAttachments public static var appStoreReviewAttachments: Relation<[AppStoreReviewAttachments]?> { .init(key: "fields[appStoreReviewAttachments]") } + /// the fields to include for returned resources of type appStoreReviewDetails + public static var appStoreReviewDetails: Relation<[AppStoreReviewDetails]?> { + .init(key: "fields[appStoreReviewDetails]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreReviewDetails/ById/AppStoreReviewDetailsById.GET.680b6d4.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreReviewDetails/ById/AppStoreReviewDetailsById.GET.680b6d4.generated.swift index 3d2736e0..606a532c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreReviewDetails/ById/AppStoreReviewDetailsById.GET.680b6d4.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreReviewDetails/ById/AppStoreReviewDetailsById.GET.680b6d4.generated.swift @@ -32,6 +32,8 @@ extension V1.AppStoreReviewDetails.ById { value: parameters.fields[.appStoreReviewAttachments]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appStoreReviewDetails]", value: parameters.fields[.appStoreReviewDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersions]", + value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appStoreReviewAttachments]", @@ -189,6 +191,114 @@ extension V1.AppStoreReviewDetails.ById.GET { } } + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var alternativeDistributionPackage: Self { + .init(rawValue: "alternativeDistributionPackage") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appStoreReviewDetail: Self { + .init(rawValue: "appStoreReviewDetail") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var appStoreVersionExperiments: Self { + .init(rawValue: "appStoreVersionExperiments") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersionLocalizations: Self { + .init(rawValue: "appStoreVersionLocalizations") + } + + public static var appStoreVersionPhasedRelease: Self { + .init(rawValue: "appStoreVersionPhasedRelease") + } + + public static var appStoreVersionSubmission: Self { + .init(rawValue: "appStoreVersionSubmission") + } + + public static var appVersionState: Self { + .init(rawValue: "appVersionState") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var copyright: Self { + .init(rawValue: "copyright") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var downloadable: Self { + .init(rawValue: "downloadable") + } + + public static var earliestReleaseDate: Self { + .init(rawValue: "earliestReleaseDate") + } + + public static var gameCenterAppVersion: Self { + .init(rawValue: "gameCenterAppVersion") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var releaseType: Self { + .init(rawValue: "releaseType") + } + + public static var reviewType: Self { + .init(rawValue: "reviewType") + } + + public static var routingAppCoverage: Self { + .init(rawValue: "routingAppCoverage") + } + + public static var usesIdfa: Self { + .init(rawValue: "usesIdfa") + } + + public static var versionString: Self { + .init(rawValue: "versionString") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appStoreReviewAttachments public static var appStoreReviewAttachments: Relation<[AppStoreReviewAttachments]?> { @@ -200,6 +310,11 @@ extension V1.AppStoreReviewDetails.ById.GET { .init(key: "fields[appStoreReviewDetails]") } + /// the fields to include for returned resources of type appStoreVersions + public static var appStoreVersions: Relation<[AppStoreVersions]?> { + .init(key: "fields[appStoreVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppStoreVersionExperimentTreatmentLocalizationsById.GET.fa4aca6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppStoreVersionExperimentTreatmentLocalizationsById.GET.fa4aca6.generated.swift index 21942e48..1d2447e6 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppStoreVersionExperimentTreatmentLocalizationsById.GET.fa4aca6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppStoreVersionExperimentTreatmentLocalizationsById.GET.fa4aca6.generated.swift @@ -34,6 +34,8 @@ extension V1.AppStoreVersionExperimentTreatmentLocalizations.ById { value: parameters.fields[.appScreenshotSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appStoreVersionExperimentTreatmentLocalizations]", value: parameters.fields[.appStoreVersionExperimentTreatmentLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersionExperimentTreatments]", + value: parameters.fields[.appStoreVersionExperimentTreatments]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appPreviewSets]", @@ -197,6 +199,46 @@ extension V1.AppStoreVersionExperimentTreatmentLocalizations.ById.GET { } } + public struct AppStoreVersionExperimentTreatments: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appIcon: Self { + .init(rawValue: "appIcon") + } + + public static var appIconName: Self { + .init(rawValue: "appIconName") + } + + public static var appStoreVersionExperiment: Self { + .init(rawValue: "appStoreVersionExperiment") + } + + public static var appStoreVersionExperimentTreatmentLocalizations: Self { + .init(rawValue: "appStoreVersionExperimentTreatmentLocalizations") + } + + public static var appStoreVersionExperimentV2: Self { + .init(rawValue: "appStoreVersionExperimentV2") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var promotedDate: Self { + .init(rawValue: "promotedDate") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appPreviewSets public static var appPreviewSets: Relation<[AppPreviewSets]?> { @@ -213,6 +255,11 @@ extension V1.AppStoreVersionExperimentTreatmentLocalizations.ById.GET { .init(key: "fields[appStoreVersionExperimentTreatmentLocalizations]") } + /// the fields to include for returned resources of type appStoreVersionExperimentTreatments + public static var appStoreVersionExperimentTreatments: Relation<[AppStoreVersionExperimentTreatments]?> { + .init(key: "fields[appStoreVersionExperimentTreatments]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatments/ById/AppStoreVersionExperimentTreatmentsById.GET.5d1c48f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatments/ById/AppStoreVersionExperimentTreatmentsById.GET.5d1c48f.generated.swift index 09cf3e24..d94d6ac4 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatments/ById/AppStoreVersionExperimentTreatmentsById.GET.5d1c48f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatments/ById/AppStoreVersionExperimentTreatmentsById.GET.5d1c48f.generated.swift @@ -32,6 +32,8 @@ extension V1.AppStoreVersionExperimentTreatments.ById { value: parameters.fields[.appStoreVersionExperimentTreatmentLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appStoreVersionExperimentTreatments]", value: parameters.fields[.appStoreVersionExperimentTreatments]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersionExperiments]", + value: parameters.fields[.appStoreVersionExperiments]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appStoreVersionExperimentTreatmentLocalizations]", @@ -169,6 +171,66 @@ extension V1.AppStoreVersionExperimentTreatments.ById.GET { } } + public struct AppStoreVersionExperiments: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var appStoreVersionExperimentTreatments: Self { + .init(rawValue: "appStoreVersionExperimentTreatments") + } + + public static var controlVersions: Self { + .init(rawValue: "controlVersions") + } + + public static var endDate: Self { + .init(rawValue: "endDate") + } + + public static var latestControlVersion: Self { + .init(rawValue: "latestControlVersion") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var reviewRequired: Self { + .init(rawValue: "reviewRequired") + } + + public static var startDate: Self { + .init(rawValue: "startDate") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var trafficProportion: Self { + .init(rawValue: "trafficProportion") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations public static var appStoreVersionExperimentTreatmentLocalizations: Relation<[AppStoreVersionExperimentTreatmentLocalizations]?> { @@ -180,6 +242,11 @@ extension V1.AppStoreVersionExperimentTreatments.ById.GET { .init(key: "fields[appStoreVersionExperimentTreatments]") } + /// the fields to include for returned resources of type appStoreVersionExperiments + public static var appStoreVersionExperiments: Relation<[AppStoreVersionExperiments]?> { + .init(key: "fields[appStoreVersionExperiments]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperiments/ById/AppStoreVersionExperimentsById.GET.1b9917e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperiments/ById/AppStoreVersionExperimentsById.GET.1b9917e.generated.swift index f0fae8b7..828b0203 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperiments/ById/AppStoreVersionExperimentsById.GET.1b9917e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperiments/ById/AppStoreVersionExperimentsById.GET.1b9917e.generated.swift @@ -33,6 +33,8 @@ extension V1.AppStoreVersionExperiments.ById { value: parameters.fields[.appStoreVersionExperimentTreatments]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appStoreVersionExperiments]", value: parameters.fields[.appStoreVersionExperiments]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersions]", + value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appStoreVersionExperimentTreatments]", @@ -186,6 +188,114 @@ extension V1.AppStoreVersionExperiments.ById.GET { } } + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var alternativeDistributionPackage: Self { + .init(rawValue: "alternativeDistributionPackage") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appStoreReviewDetail: Self { + .init(rawValue: "appStoreReviewDetail") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var appStoreVersionExperiments: Self { + .init(rawValue: "appStoreVersionExperiments") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersionLocalizations: Self { + .init(rawValue: "appStoreVersionLocalizations") + } + + public static var appStoreVersionPhasedRelease: Self { + .init(rawValue: "appStoreVersionPhasedRelease") + } + + public static var appStoreVersionSubmission: Self { + .init(rawValue: "appStoreVersionSubmission") + } + + public static var appVersionState: Self { + .init(rawValue: "appVersionState") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var copyright: Self { + .init(rawValue: "copyright") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var downloadable: Self { + .init(rawValue: "downloadable") + } + + public static var earliestReleaseDate: Self { + .init(rawValue: "earliestReleaseDate") + } + + public static var gameCenterAppVersion: Self { + .init(rawValue: "gameCenterAppVersion") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var releaseType: Self { + .init(rawValue: "releaseType") + } + + public static var reviewType: Self { + .init(rawValue: "reviewType") + } + + public static var routingAppCoverage: Self { + .init(rawValue: "routingAppCoverage") + } + + public static var usesIdfa: Self { + .init(rawValue: "usesIdfa") + } + + public static var versionString: Self { + .init(rawValue: "versionString") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appStoreVersionExperimentTreatments public static var appStoreVersionExperimentTreatments: Relation<[AppStoreVersionExperimentTreatments]?> { @@ -197,6 +307,11 @@ extension V1.AppStoreVersionExperiments.ById.GET { .init(key: "fields[appStoreVersionExperiments]") } + /// the fields to include for returned resources of type appStoreVersions + public static var appStoreVersions: Relation<[AppStoreVersions]?> { + .init(key: "fields[appStoreVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppStoreVersionLocalizationsById.GET.90f82c6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppStoreVersionLocalizationsById.GET.90f82c6.generated.swift index 5c7544ef..b6aa926b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppStoreVersionLocalizationsById.GET.90f82c6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppStoreVersionLocalizationsById.GET.90f82c6.generated.swift @@ -34,6 +34,8 @@ extension V1.AppStoreVersionLocalizations.ById { value: parameters.fields[.appScreenshotSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appStoreVersionLocalizations]", value: parameters.fields[.appStoreVersionLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersions]", + value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appPreviewSets]", @@ -227,6 +229,114 @@ extension V1.AppStoreVersionLocalizations.ById.GET { } } + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var alternativeDistributionPackage: Self { + .init(rawValue: "alternativeDistributionPackage") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appStoreReviewDetail: Self { + .init(rawValue: "appStoreReviewDetail") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var appStoreVersionExperiments: Self { + .init(rawValue: "appStoreVersionExperiments") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersionLocalizations: Self { + .init(rawValue: "appStoreVersionLocalizations") + } + + public static var appStoreVersionPhasedRelease: Self { + .init(rawValue: "appStoreVersionPhasedRelease") + } + + public static var appStoreVersionSubmission: Self { + .init(rawValue: "appStoreVersionSubmission") + } + + public static var appVersionState: Self { + .init(rawValue: "appVersionState") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var copyright: Self { + .init(rawValue: "copyright") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var downloadable: Self { + .init(rawValue: "downloadable") + } + + public static var earliestReleaseDate: Self { + .init(rawValue: "earliestReleaseDate") + } + + public static var gameCenterAppVersion: Self { + .init(rawValue: "gameCenterAppVersion") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var releaseType: Self { + .init(rawValue: "releaseType") + } + + public static var reviewType: Self { + .init(rawValue: "reviewType") + } + + public static var routingAppCoverage: Self { + .init(rawValue: "routingAppCoverage") + } + + public static var usesIdfa: Self { + .init(rawValue: "usesIdfa") + } + + public static var versionString: Self { + .init(rawValue: "versionString") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appPreviewSets public static var appPreviewSets: Relation<[AppPreviewSets]?> { @@ -243,6 +353,11 @@ extension V1.AppStoreVersionLocalizations.ById.GET { .init(key: "fields[appStoreVersionLocalizations]") } + /// the fields to include for returned resources of type appStoreVersions + public static var appStoreVersions: Relation<[AppStoreVersions]?> { + .init(key: "fields[appStoreVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/SearchKeywords/AppStoreVersionLocalizationsByIdRelationshipsSearchKeywords.DELETE.389d9b7.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/SearchKeywords/AppStoreVersionLocalizationsByIdRelationshipsSearchKeywords.DELETE.389d9b7.generated.swift index 436bb4a6..d54d08c0 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/SearchKeywords/AppStoreVersionLocalizationsByIdRelationshipsSearchKeywords.DELETE.389d9b7.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/SearchKeywords/AppStoreVersionLocalizationsByIdRelationshipsSearchKeywords.DELETE.389d9b7.generated.swift @@ -31,6 +31,7 @@ extension V1.AppStoreVersionLocalizations.ById.Relationships.SearchKeywords { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.AppStoreVersionLocalizations.ById.Relationships.SearchKeywords { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/SearchKeywords/AppStoreVersionLocalizationsByIdRelationshipsSearchKeywords.POST.389d9b7.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/SearchKeywords/AppStoreVersionLocalizationsByIdRelationshipsSearchKeywords.POST.389d9b7.generated.swift index 1c569e2a..869f340f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/SearchKeywords/AppStoreVersionLocalizationsByIdRelationshipsSearchKeywords.POST.389d9b7.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/SearchKeywords/AppStoreVersionLocalizationsByIdRelationshipsSearchKeywords.POST.389d9b7.generated.swift @@ -46,6 +46,7 @@ extension V1.AppStoreVersionLocalizations.ById.Relationships.SearchKeywords { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.AppStoreVersionLocalizations.ById.Relationships.SearchKeywords { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/AppStoreVersionsById.GET.60ca87e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/AppStoreVersionsById.GET.60ca87e.generated.swift index ff093ffe..3cc404a5 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/AppStoreVersionsById.GET.60ca87e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/AppStoreVersionsById.GET.60ca87e.generated.swift @@ -44,6 +44,8 @@ extension V1.AppStoreVersions.ById { value: parameters.fields[.appStoreVersionSubmissions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appStoreVersions]", value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[builds]", value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterAppVersions]", @@ -495,6 +497,238 @@ extension V1.AppStoreVersions.ById.GET { } } + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var app: Self { .init(rawValue: "app") @@ -712,6 +946,11 @@ extension V1.AppStoreVersions.ById.GET { .init(key: "fields[appStoreVersions]") } + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type builds public static var builds: Relation<[Builds]?> { .init(key: "fields[builds]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/CustomerReviews/AppStoreVersionsByIdCustomerReviews.GET.17f4f93.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/CustomerReviews/AppStoreVersionsByIdCustomerReviews.GET.17f4f93.generated.swift index d2d27c4a..8e852a8e 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/CustomerReviews/AppStoreVersionsByIdCustomerReviews.GET.17f4f93.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/CustomerReviews/AppStoreVersionsByIdCustomerReviews.GET.17f4f93.generated.swift @@ -34,8 +34,12 @@ extension V1.AppStoreVersions.ById.CustomerReviews { value: parameters.fields[.customerReviewResponses]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[customerReviews]", value: parameters.fields[.customerReviews]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[rating]", value: parameters.filter[.rating]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "filter[reviewTerritory]", + value: parameters.filter[.reviewTerritory]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[territory]", value: parameters.filter[.territory]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -184,6 +188,10 @@ extension V1.AppStoreVersions.ById.CustomerReviews.GET { .init(rawValue: "response") } + public static var reviewTerritory: Self { + .init(rawValue: "reviewTerritory") + } + public static var reviewerNickname: Self { .init(rawValue: "reviewerNickname") } @@ -207,6 +215,22 @@ extension V1.AppStoreVersions.ById.CustomerReviews.GET { } } + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type customerReviewResponses public static var customerReviewResponses: Relation<[CustomerReviewResponses]?> { @@ -218,6 +242,11 @@ extension V1.AppStoreVersions.ById.CustomerReviews.GET { .init(key: "fields[customerReviews]") } + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { @@ -1184,6 +1213,11 @@ extension V1.AppStoreVersions.ById.CustomerReviews.GET { .init(key: "filter[rating]") } + /// filter by id(s) of related 'reviewTerritory' + public static var reviewTerritory: Relation<[String]?> { + .init(key: "filter[reviewTerritory]") + } + /// filter by attribute 'territory' public static var territory: Relation<[Territory]?> { .init(key: "filter[territory]") @@ -1202,6 +1236,10 @@ extension V1.AppStoreVersions.ById.CustomerReviews.GET { .init(rawValue: "response") } + public static var reviewTerritory: Self { + .init(rawValue: "reviewTerritory") + } + public var description: String { rawValue } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/Relationships/AppClipDefaultExperience/AppStoreVersionsByIdRelationshipsAppClipDefaultExperience.PATCH.2723b06.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/Relationships/AppClipDefaultExperience/AppStoreVersionsByIdRelationshipsAppClipDefaultExperience.PATCH.2723b06.generated.swift index 4f4dea95..8d7efed1 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/Relationships/AppClipDefaultExperience/AppStoreVersionsByIdRelationshipsAppClipDefaultExperience.PATCH.2723b06.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersions/ById/Relationships/AppClipDefaultExperience/AppStoreVersionsByIdRelationshipsAppClipDefaultExperience.PATCH.2723b06.generated.swift @@ -46,6 +46,7 @@ extension V1.AppStoreVersions.ById.Relationships.AppClipDefaultExperience { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.AppStoreVersions.ById.Relationships.AppClipDefaultExperience { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/Apps.GET.d3db1ee.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/Apps.GET.d3db1ee.generated.swift index 247c5bc9..e7a2e07d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/Apps.GET.d3db1ee.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/Apps.GET.d3db1ee.generated.swift @@ -53,6 +53,8 @@ extension V1.Apps { value: parameters.fields[.betaGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[betaLicenseAgreements]", value: parameters.fields[.betaLicenseAgreements]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[buildIcons]", + value: parameters.fields[.buildIcons]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[builds]", value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[ciProducts]", @@ -1116,6 +1118,34 @@ extension V1.Apps.GET { } } + public struct BuildIcons: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var iconAsset: Self { + .init(rawValue: "iconAsset") + } + + public static var iconType: Self { + .init(rawValue: "iconType") + } + + public static var masked: Self { + .init(rawValue: "masked") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var app: Self { .init(rawValue: "app") @@ -1746,6 +1776,11 @@ extension V1.Apps.GET { .init(key: "fields[betaLicenseAgreements]") } + /// the fields to include for returned resources of type buildIcons + public static var buildIcons: Relation<[BuildIcons]?> { + .init(key: "fields[buildIcons]") + } + /// the fields to include for returned resources of type builds public static var builds: Relation<[Builds]?> { .init(key: "fields[builds]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppsById.GET.37ceec0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppsById.GET.37ceec0.generated.swift index 23821890..4c7d9214 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppsById.GET.37ceec0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppsById.GET.37ceec0.generated.swift @@ -54,6 +54,8 @@ extension V1.Apps.ById { value: parameters.fields[.betaGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[betaLicenseAgreements]", value: parameters.fields[.betaLicenseAgreements]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[buildIcons]", + value: parameters.fields[.buildIcons]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[builds]", value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[ciProducts]", @@ -1067,6 +1069,34 @@ extension V1.Apps.ById.GET { } } + public struct BuildIcons: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var iconAsset: Self { + .init(rawValue: "iconAsset") + } + + public static var iconType: Self { + .init(rawValue: "iconType") + } + + public static var masked: Self { + .init(rawValue: "masked") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var app: Self { .init(rawValue: "app") @@ -1697,6 +1727,11 @@ extension V1.Apps.ById.GET { .init(key: "fields[betaLicenseAgreements]") } + /// the fields to include for returned resources of type buildIcons + public static var buildIcons: Relation<[BuildIcons]?> { + .init(key: "fields[buildIcons]") + } + /// the fields to include for returned resources of type builds public static var builds: Relation<[Builds]?> { .init(key: "fields[builds]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/CustomerReviews/AppsByIdCustomerReviews.GET.b2cd7c0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/CustomerReviews/AppsByIdCustomerReviews.GET.b2cd7c0.generated.swift index 6309a652..f50a54ac 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/CustomerReviews/AppsByIdCustomerReviews.GET.b2cd7c0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/CustomerReviews/AppsByIdCustomerReviews.GET.b2cd7c0.generated.swift @@ -34,8 +34,12 @@ extension V1.Apps.ById.CustomerReviews { value: parameters.fields[.customerReviewResponses]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[customerReviews]", value: parameters.fields[.customerReviews]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[rating]", value: parameters.filter[.rating]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "filter[reviewTerritory]", + value: parameters.filter[.reviewTerritory]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[territory]", value: parameters.filter[.territory]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -184,6 +188,10 @@ extension V1.Apps.ById.CustomerReviews.GET { .init(rawValue: "response") } + public static var reviewTerritory: Self { + .init(rawValue: "reviewTerritory") + } + public static var reviewerNickname: Self { .init(rawValue: "reviewerNickname") } @@ -207,6 +215,22 @@ extension V1.Apps.ById.CustomerReviews.GET { } } + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type customerReviewResponses public static var customerReviewResponses: Relation<[CustomerReviewResponses]?> { @@ -218,6 +242,11 @@ extension V1.Apps.ById.CustomerReviews.GET { .init(key: "fields[customerReviews]") } + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { @@ -1184,6 +1213,11 @@ extension V1.Apps.ById.CustomerReviews.GET { .init(key: "filter[rating]") } + /// filter by id(s) of related 'reviewTerritory' + public static var reviewTerritory: Relation<[String]?> { + .init(key: "filter[reviewTerritory]") + } + /// filter by attribute 'territory' public static var territory: Relation<[Territory]?> { .init(key: "filter[territory]") @@ -1202,6 +1236,10 @@ extension V1.Apps.ById.CustomerReviews.GET { .init(rawValue: "response") } + public static var reviewTerritory: Self { + .init(rawValue: "reviewTerritory") + } + public var description: String { rawValue } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/Relationships/BetaTesters/AppsByIdRelationshipsBetaTesters.DELETE.c177ff4.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/Relationships/BetaTesters/AppsByIdRelationshipsBetaTesters.DELETE.c177ff4.generated.swift index 974e583f..489367b5 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/Relationships/BetaTesters/AppsByIdRelationshipsBetaTesters.DELETE.c177ff4.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/Relationships/BetaTesters/AppsByIdRelationshipsBetaTesters.DELETE.c177ff4.generated.swift @@ -31,6 +31,7 @@ extension V1.Apps.ById.Relationships.BetaTesters { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.Apps.ById.Relationships.BetaTesters { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/Relationships/PromotedPurchases/AppsByIdRelationshipsPromotedPurchases.PATCH.8bab01e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/Relationships/PromotedPurchases/AppsByIdRelationshipsPromotedPurchases.PATCH.8bab01e.generated.swift index d0631aff..6a433361 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/Relationships/PromotedPurchases/AppsByIdRelationshipsPromotedPurchases.PATCH.8bab01e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/Relationships/PromotedPurchases/AppsByIdRelationshipsPromotedPurchases.PATCH.8bab01e.generated.swift @@ -46,6 +46,7 @@ extension V1.Apps.ById.Relationships.PromotedPurchases { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.Apps.ById.Relationships.PromotedPurchases { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionAppStoreReleases/ById/BackgroundAssetVersionAppStoreReleasesById.GET.9b8f9e1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionAppStoreReleases/ById/BackgroundAssetVersionAppStoreReleasesById.GET.9b8f9e1.generated.swift index b6bcb825..4edb07a8 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionAppStoreReleases/ById/BackgroundAssetVersionAppStoreReleasesById.GET.9b8f9e1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionAppStoreReleases/ById/BackgroundAssetVersionAppStoreReleasesById.GET.9b8f9e1.generated.swift @@ -30,6 +30,8 @@ extension V1.BackgroundAssetVersionAppStoreReleases.ById { components?.queryItems = [ URLQueryItem(name: "fields[backgroundAssetVersionAppStoreReleases]", value: parameters.fields[.backgroundAssetVersionAppStoreReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[backgroundAssetVersions]", + value: parameters.fields[.backgroundAssetVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -115,12 +117,77 @@ extension V1.BackgroundAssetVersionAppStoreReleases.ById.GET { } } + public struct BackgroundAssetVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreRelease: Self { + .init(rawValue: "appStoreRelease") + } + + public static var assetFile: Self { + .init(rawValue: "assetFile") + } + + public static var backgroundAsset: Self { + .init(rawValue: "backgroundAsset") + } + + public static var backgroundAssetUploadFiles: Self { + .init(rawValue: "backgroundAssetUploadFiles") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var externalBetaRelease: Self { + .init(rawValue: "externalBetaRelease") + } + + public static var internalBetaRelease: Self { + .init(rawValue: "internalBetaRelease") + } + + public static var manifestFile: Self { + .init(rawValue: "manifestFile") + } + + public static var platforms: Self { + .init(rawValue: "platforms") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var stateDetails: Self { + .init(rawValue: "stateDetails") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type backgroundAssetVersionAppStoreReleases public static var backgroundAssetVersionAppStoreReleases: Relation<[BackgroundAssetVersionAppStoreReleases]?> { .init(key: "fields[backgroundAssetVersionAppStoreReleases]") } + /// the fields to include for returned resources of type backgroundAssetVersions + public static var backgroundAssetVersions: Relation<[BackgroundAssetVersions]?> { + .init(key: "fields[backgroundAssetVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionExternalBetaReleases/ById/BackgroundAssetVersionExternalBetaReleasesById.GET.10363e9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionExternalBetaReleases/ById/BackgroundAssetVersionExternalBetaReleasesById.GET.10363e9.generated.swift index 16ffc67f..0aef741b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionExternalBetaReleases/ById/BackgroundAssetVersionExternalBetaReleasesById.GET.10363e9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionExternalBetaReleases/ById/BackgroundAssetVersionExternalBetaReleasesById.GET.10363e9.generated.swift @@ -30,6 +30,8 @@ extension V1.BackgroundAssetVersionExternalBetaReleases.ById { components?.queryItems = [ URLQueryItem(name: "fields[backgroundAssetVersionExternalBetaReleases]", value: parameters.fields[.backgroundAssetVersionExternalBetaReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[backgroundAssetVersions]", + value: parameters.fields[.backgroundAssetVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -115,12 +117,77 @@ extension V1.BackgroundAssetVersionExternalBetaReleases.ById.GET { } } + public struct BackgroundAssetVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreRelease: Self { + .init(rawValue: "appStoreRelease") + } + + public static var assetFile: Self { + .init(rawValue: "assetFile") + } + + public static var backgroundAsset: Self { + .init(rawValue: "backgroundAsset") + } + + public static var backgroundAssetUploadFiles: Self { + .init(rawValue: "backgroundAssetUploadFiles") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var externalBetaRelease: Self { + .init(rawValue: "externalBetaRelease") + } + + public static var internalBetaRelease: Self { + .init(rawValue: "internalBetaRelease") + } + + public static var manifestFile: Self { + .init(rawValue: "manifestFile") + } + + public static var platforms: Self { + .init(rawValue: "platforms") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var stateDetails: Self { + .init(rawValue: "stateDetails") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type backgroundAssetVersionExternalBetaReleases public static var backgroundAssetVersionExternalBetaReleases: Relation<[BackgroundAssetVersionExternalBetaReleases]?> { .init(key: "fields[backgroundAssetVersionExternalBetaReleases]") } + /// the fields to include for returned resources of type backgroundAssetVersions + public static var backgroundAssetVersions: Relation<[BackgroundAssetVersions]?> { + .init(key: "fields[backgroundAssetVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionInternalBetaReleases/ById/BackgroundAssetVersionInternalBetaReleasesById.GET.c763a11.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionInternalBetaReleases/ById/BackgroundAssetVersionInternalBetaReleasesById.GET.c763a11.generated.swift index f99fcbd6..562f7654 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionInternalBetaReleases/ById/BackgroundAssetVersionInternalBetaReleasesById.GET.c763a11.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionInternalBetaReleases/ById/BackgroundAssetVersionInternalBetaReleasesById.GET.c763a11.generated.swift @@ -30,6 +30,8 @@ extension V1.BackgroundAssetVersionInternalBetaReleases.ById { components?.queryItems = [ URLQueryItem(name: "fields[backgroundAssetVersionInternalBetaReleases]", value: parameters.fields[.backgroundAssetVersionInternalBetaReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[backgroundAssetVersions]", + value: parameters.fields[.backgroundAssetVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -115,12 +117,77 @@ extension V1.BackgroundAssetVersionInternalBetaReleases.ById.GET { } } + public struct BackgroundAssetVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreRelease: Self { + .init(rawValue: "appStoreRelease") + } + + public static var assetFile: Self { + .init(rawValue: "assetFile") + } + + public static var backgroundAsset: Self { + .init(rawValue: "backgroundAsset") + } + + public static var backgroundAssetUploadFiles: Self { + .init(rawValue: "backgroundAssetUploadFiles") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var externalBetaRelease: Self { + .init(rawValue: "externalBetaRelease") + } + + public static var internalBetaRelease: Self { + .init(rawValue: "internalBetaRelease") + } + + public static var manifestFile: Self { + .init(rawValue: "manifestFile") + } + + public static var platforms: Self { + .init(rawValue: "platforms") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var stateDetails: Self { + .init(rawValue: "stateDetails") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type backgroundAssetVersionInternalBetaReleases public static var backgroundAssetVersionInternalBetaReleases: Relation<[BackgroundAssetVersionInternalBetaReleases]?> { .init(key: "fields[backgroundAssetVersionInternalBetaReleases]") } + /// the fields to include for returned resources of type backgroundAssetVersions + public static var backgroundAssetVersions: Relation<[BackgroundAssetVersions]?> { + .init(key: "fields[backgroundAssetVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersions/ById/BackgroundAssetVersionsById.GET.95cd11c.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersions/ById/BackgroundAssetVersionsById.GET.95cd11c.generated.swift index b6c46dc2..b60819d9 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersions/ById/BackgroundAssetVersionsById.GET.95cd11c.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersions/ById/BackgroundAssetVersionsById.GET.95cd11c.generated.swift @@ -28,8 +28,18 @@ extension V1.BackgroundAssetVersions.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[backgroundAssetUploadFiles]", + value: parameters.fields[.backgroundAssetUploadFiles]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[backgroundAssetVersionAppStoreReleases]", + value: parameters.fields[.backgroundAssetVersionAppStoreReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[backgroundAssetVersionExternalBetaReleases]", + value: parameters.fields[.backgroundAssetVersionExternalBetaReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[backgroundAssetVersionInternalBetaReleases]", + value: parameters.fields[.backgroundAssetVersionInternalBetaReleases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[backgroundAssetVersions]", value: parameters.fields[.backgroundAssetVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[backgroundAssets]", + value: parameters.fields[.backgroundAssets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -95,6 +105,110 @@ extension V1.BackgroundAssetVersions.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct BackgroundAssetUploadFiles: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var assetDeliveryState: Self { + .init(rawValue: "assetDeliveryState") + } + + public static var assetToken: Self { + .init(rawValue: "assetToken") + } + + public static var assetType: Self { + .init(rawValue: "assetType") + } + + public static var fileName: Self { + .init(rawValue: "fileName") + } + + public static var fileSize: Self { + .init(rawValue: "fileSize") + } + + public static var sourceFileChecksum: Self { + .init(rawValue: "sourceFileChecksum") + } + + public static var sourceFileChecksums: Self { + .init(rawValue: "sourceFileChecksums") + } + + public static var uploadOperations: Self { + .init(rawValue: "uploadOperations") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct BackgroundAssetVersionAppStoreReleases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var backgroundAssetVersion: Self { + .init(rawValue: "backgroundAssetVersion") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct BackgroundAssetVersionExternalBetaReleases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var backgroundAssetVersion: Self { + .init(rawValue: "backgroundAssetVersion") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct BackgroundAssetVersionInternalBetaReleases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var backgroundAssetVersion: Self { + .init(rawValue: "backgroundAssetVersion") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct BackgroundAssetVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appStoreRelease: Self { .init(rawValue: "appStoreRelease") @@ -155,12 +269,85 @@ extension V1.BackgroundAssetVersions.ById.GET { } } + public struct BackgroundAssets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var assetPackIdentifier: Self { + .init(rawValue: "assetPackIdentifier") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var externalBetaVersion: Self { + .init(rawValue: "externalBetaVersion") + } + + public static var internalBetaVersion: Self { + .init(rawValue: "internalBetaVersion") + } + + public static var usedBytes: Self { + .init(rawValue: "usedBytes") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type backgroundAssetUploadFiles + public static var backgroundAssetUploadFiles: Relation<[BackgroundAssetUploadFiles]?> { + .init(key: "fields[backgroundAssetUploadFiles]") + } + + /// the fields to include for returned resources of type backgroundAssetVersionAppStoreReleases + public static var backgroundAssetVersionAppStoreReleases: Relation<[BackgroundAssetVersionAppStoreReleases]?> { + .init(key: "fields[backgroundAssetVersionAppStoreReleases]") + } + + /// the fields to include for returned resources of type backgroundAssetVersionExternalBetaReleases + public static var backgroundAssetVersionExternalBetaReleases: Relation<[BackgroundAssetVersionExternalBetaReleases]?> { + .init(key: "fields[backgroundAssetVersionExternalBetaReleases]") + } + + /// the fields to include for returned resources of type backgroundAssetVersionInternalBetaReleases + public static var backgroundAssetVersionInternalBetaReleases: Relation<[BackgroundAssetVersionInternalBetaReleases]?> { + .init(key: "fields[backgroundAssetVersionInternalBetaReleases]") + } + /// the fields to include for returned resources of type backgroundAssetVersions public static var backgroundAssetVersions: Relation<[BackgroundAssetVersions]?> { .init(key: "fields[backgroundAssetVersions]") } + /// the fields to include for returned resources of type backgroundAssets + public static var backgroundAssets: Relation<[BackgroundAssets]?> { + .init(key: "fields[backgroundAssets]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/BackgroundAssetsById.GET.ab8fadb.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/BackgroundAssetsById.GET.ab8fadb.generated.swift index d10c9cbd..4c12881c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/BackgroundAssetsById.GET.ab8fadb.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/BackgroundAssetsById.GET.ab8fadb.generated.swift @@ -28,6 +28,10 @@ extension V1.BackgroundAssets.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[backgroundAssetVersions]", + value: parameters.fields[.backgroundAssetVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[backgroundAssets]", value: parameters.fields[.backgroundAssets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +99,298 @@ extension V1.BackgroundAssets.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct BackgroundAssetVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreRelease: Self { + .init(rawValue: "appStoreRelease") + } + + public static var assetFile: Self { + .init(rawValue: "assetFile") + } + + public static var backgroundAsset: Self { + .init(rawValue: "backgroundAsset") + } + + public static var backgroundAssetUploadFiles: Self { + .init(rawValue: "backgroundAssetUploadFiles") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var externalBetaRelease: Self { + .init(rawValue: "externalBetaRelease") + } + + public static var internalBetaRelease: Self { + .init(rawValue: "internalBetaRelease") + } + + public static var manifestFile: Self { + .init(rawValue: "manifestFile") + } + + public static var platforms: Self { + .init(rawValue: "platforms") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var stateDetails: Self { + .init(rawValue: "stateDetails") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct BackgroundAssets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var app: Self { .init(rawValue: "app") @@ -144,6 +440,16 @@ extension V1.BackgroundAssets.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + + /// the fields to include for returned resources of type backgroundAssetVersions + public static var backgroundAssetVersions: Relation<[BackgroundAssetVersions]?> { + .init(key: "fields[backgroundAssetVersions]") + } + /// the fields to include for returned resources of type backgroundAssets public static var backgroundAssets: Relation<[BackgroundAssets]?> { .init(key: "fields[backgroundAssets]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaAppClipInvocations/ById/BetaAppClipInvocationsById.GET.de3257b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaAppClipInvocations/ById/BetaAppClipInvocationsById.GET.de3257b.generated.swift index 27bfc2f3..95e900c5 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaAppClipInvocations/ById/BetaAppClipInvocationsById.GET.de3257b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaAppClipInvocations/ById/BetaAppClipInvocationsById.GET.de3257b.generated.swift @@ -28,6 +28,8 @@ extension V1.BetaAppClipInvocations.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[betaAppClipInvocationLocalizations]", + value: parameters.fields[.betaAppClipInvocationLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[betaAppClipInvocations]", value: parameters.fields[.betaAppClipInvocations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -99,6 +101,26 @@ extension V1.BetaAppClipInvocations.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct BetaAppClipInvocationLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var title: Self { + .init(rawValue: "title") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct BetaAppClipInvocations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var betaAppClipInvocationLocalizations: Self { .init(rawValue: "betaAppClipInvocationLocalizations") @@ -120,6 +142,11 @@ extension V1.BetaAppClipInvocations.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type betaAppClipInvocationLocalizations + public static var betaAppClipInvocationLocalizations: Relation<[BetaAppClipInvocationLocalizations]?> { + .init(key: "fields[betaAppClipInvocationLocalizations]") + } + /// the fields to include for returned resources of type betaAppClipInvocations public static var betaAppClipInvocations: Relation<[BetaAppClipInvocations]?> { .init(key: "fields[betaAppClipInvocations]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaFeedbackCrashSubmissions/ById/BetaFeedbackCrashSubmissionsById.GET.a2529fe.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaFeedbackCrashSubmissions/ById/BetaFeedbackCrashSubmissionsById.GET.a2529fe.generated.swift index 491f942a..108ef987 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaFeedbackCrashSubmissions/ById/BetaFeedbackCrashSubmissionsById.GET.a2529fe.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaFeedbackCrashSubmissions/ById/BetaFeedbackCrashSubmissionsById.GET.a2529fe.generated.swift @@ -30,6 +30,10 @@ extension V1.BetaFeedbackCrashSubmissions.ById { components?.queryItems = [ URLQueryItem(name: "fields[betaFeedbackCrashSubmissions]", value: parameters.fields[.betaFeedbackCrashSubmissions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[betaTesters]", + value: parameters.fields[.betaTesters]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[builds]", + value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -199,12 +203,186 @@ extension V1.BetaFeedbackCrashSubmissions.ById.GET { } } + public struct BetaTesters: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appDevices: Self { + .init(rawValue: "appDevices") + } + + public static var apps: Self { + .init(rawValue: "apps") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var email: Self { + .init(rawValue: "email") + } + + public static var firstName: Self { + .init(rawValue: "firstName") + } + + public static var inviteType: Self { + .init(rawValue: "inviteType") + } + + public static var lastName: Self { + .init(rawValue: "lastName") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appEncryptionDeclaration: Self { + .init(rawValue: "appEncryptionDeclaration") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var betaAppReviewSubmission: Self { + .init(rawValue: "betaAppReviewSubmission") + } + + public static var betaBuildLocalizations: Self { + .init(rawValue: "betaBuildLocalizations") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var buildAudienceType: Self { + .init(rawValue: "buildAudienceType") + } + + public static var buildBetaDetail: Self { + .init(rawValue: "buildBetaDetail") + } + + public static var buildBundles: Self { + .init(rawValue: "buildBundles") + } + + public static var buildUpload: Self { + .init(rawValue: "buildUpload") + } + + public static var computedMinMacOsVersion: Self { + .init(rawValue: "computedMinMacOsVersion") + } + + public static var computedMinVisionOsVersion: Self { + .init(rawValue: "computedMinVisionOsVersion") + } + + public static var diagnosticSignatures: Self { + .init(rawValue: "diagnosticSignatures") + } + + public static var expirationDate: Self { + .init(rawValue: "expirationDate") + } + + public static var expired: Self { + .init(rawValue: "expired") + } + + public static var iconAssetToken: Self { + .init(rawValue: "iconAssetToken") + } + + public static var icons: Self { + .init(rawValue: "icons") + } + + public static var individualTesters: Self { + .init(rawValue: "individualTesters") + } + + public static var lsMinimumSystemVersion: Self { + .init(rawValue: "lsMinimumSystemVersion") + } + + public static var minOsVersion: Self { + .init(rawValue: "minOsVersion") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersion: Self { + .init(rawValue: "preReleaseVersion") + } + + public static var processingState: Self { + .init(rawValue: "processingState") + } + + public static var uploadedDate: Self { + .init(rawValue: "uploadedDate") + } + + public static var usesNonExemptEncryption: Self { + .init(rawValue: "usesNonExemptEncryption") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type betaFeedbackCrashSubmissions public static var betaFeedbackCrashSubmissions: Relation<[BetaFeedbackCrashSubmissions]?> { .init(key: "fields[betaFeedbackCrashSubmissions]") } + /// the fields to include for returned resources of type betaTesters + public static var betaTesters: Relation<[BetaTesters]?> { + .init(key: "fields[betaTesters]") + } + + /// the fields to include for returned resources of type builds + public static var builds: Relation<[Builds]?> { + .init(key: "fields[builds]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaFeedbackScreenshotSubmissions/ById/BetaFeedbackScreenshotSubmissionsById.GET.93f1434.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaFeedbackScreenshotSubmissions/ById/BetaFeedbackScreenshotSubmissionsById.GET.93f1434.generated.swift index 2e4c45c2..ad1faf61 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaFeedbackScreenshotSubmissions/ById/BetaFeedbackScreenshotSubmissionsById.GET.93f1434.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaFeedbackScreenshotSubmissions/ById/BetaFeedbackScreenshotSubmissionsById.GET.93f1434.generated.swift @@ -30,6 +30,10 @@ extension V1.BetaFeedbackScreenshotSubmissions.ById { components?.queryItems = [ URLQueryItem(name: "fields[betaFeedbackScreenshotSubmissions]", value: parameters.fields[.betaFeedbackScreenshotSubmissions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[betaTesters]", + value: parameters.fields[.betaTesters]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[builds]", + value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -199,12 +203,186 @@ extension V1.BetaFeedbackScreenshotSubmissions.ById.GET { } } + public struct BetaTesters: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appDevices: Self { + .init(rawValue: "appDevices") + } + + public static var apps: Self { + .init(rawValue: "apps") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var email: Self { + .init(rawValue: "email") + } + + public static var firstName: Self { + .init(rawValue: "firstName") + } + + public static var inviteType: Self { + .init(rawValue: "inviteType") + } + + public static var lastName: Self { + .init(rawValue: "lastName") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appEncryptionDeclaration: Self { + .init(rawValue: "appEncryptionDeclaration") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var betaAppReviewSubmission: Self { + .init(rawValue: "betaAppReviewSubmission") + } + + public static var betaBuildLocalizations: Self { + .init(rawValue: "betaBuildLocalizations") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var buildAudienceType: Self { + .init(rawValue: "buildAudienceType") + } + + public static var buildBetaDetail: Self { + .init(rawValue: "buildBetaDetail") + } + + public static var buildBundles: Self { + .init(rawValue: "buildBundles") + } + + public static var buildUpload: Self { + .init(rawValue: "buildUpload") + } + + public static var computedMinMacOsVersion: Self { + .init(rawValue: "computedMinMacOsVersion") + } + + public static var computedMinVisionOsVersion: Self { + .init(rawValue: "computedMinVisionOsVersion") + } + + public static var diagnosticSignatures: Self { + .init(rawValue: "diagnosticSignatures") + } + + public static var expirationDate: Self { + .init(rawValue: "expirationDate") + } + + public static var expired: Self { + .init(rawValue: "expired") + } + + public static var iconAssetToken: Self { + .init(rawValue: "iconAssetToken") + } + + public static var icons: Self { + .init(rawValue: "icons") + } + + public static var individualTesters: Self { + .init(rawValue: "individualTesters") + } + + public static var lsMinimumSystemVersion: Self { + .init(rawValue: "lsMinimumSystemVersion") + } + + public static var minOsVersion: Self { + .init(rawValue: "minOsVersion") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersion: Self { + .init(rawValue: "preReleaseVersion") + } + + public static var processingState: Self { + .init(rawValue: "processingState") + } + + public static var uploadedDate: Self { + .init(rawValue: "uploadedDate") + } + + public static var usesNonExemptEncryption: Self { + .init(rawValue: "usesNonExemptEncryption") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type betaFeedbackScreenshotSubmissions public static var betaFeedbackScreenshotSubmissions: Relation<[BetaFeedbackScreenshotSubmissions]?> { .init(key: "fields[betaFeedbackScreenshotSubmissions]") } + /// the fields to include for returned resources of type betaTesters + public static var betaTesters: Relation<[BetaTesters]?> { + .init(key: "fields[betaTesters]") + } + + /// the fields to include for returned resources of type builds + public static var builds: Relation<[Builds]?> { + .init(key: "fields[builds]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/BetaTesters/BetaGroupsByIdRelationshipsBetaTesters.DELETE.35d7641.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/BetaTesters/BetaGroupsByIdRelationshipsBetaTesters.DELETE.35d7641.generated.swift index c8f47067..f32d0cfc 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/BetaTesters/BetaGroupsByIdRelationshipsBetaTesters.DELETE.35d7641.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/BetaTesters/BetaGroupsByIdRelationshipsBetaTesters.DELETE.35d7641.generated.swift @@ -31,6 +31,7 @@ extension V1.BetaGroups.ById.Relationships.BetaTesters { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.BetaGroups.ById.Relationships.BetaTesters { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/BetaTesters/BetaGroupsByIdRelationshipsBetaTesters.POST.35d7641.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/BetaTesters/BetaGroupsByIdRelationshipsBetaTesters.POST.35d7641.generated.swift index ccee28d5..ce2bba66 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/BetaTesters/BetaGroupsByIdRelationshipsBetaTesters.POST.35d7641.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/BetaTesters/BetaGroupsByIdRelationshipsBetaTesters.POST.35d7641.generated.swift @@ -46,6 +46,7 @@ extension V1.BetaGroups.ById.Relationships.BetaTesters { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.BetaGroups.ById.Relationships.BetaTesters { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/Builds/BetaGroupsByIdRelationshipsBuilds.DELETE.b710f39.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/Builds/BetaGroupsByIdRelationshipsBuilds.DELETE.b710f39.generated.swift index f6e27c3a..b4685ab2 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/Builds/BetaGroupsByIdRelationshipsBuilds.DELETE.b710f39.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/Builds/BetaGroupsByIdRelationshipsBuilds.DELETE.b710f39.generated.swift @@ -31,6 +31,7 @@ extension V1.BetaGroups.ById.Relationships.Builds { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.BetaGroups.ById.Relationships.Builds { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/Builds/BetaGroupsByIdRelationshipsBuilds.POST.b710f39.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/Builds/BetaGroupsByIdRelationshipsBuilds.POST.b710f39.generated.swift index 7f3ce584..039a7f2a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/Builds/BetaGroupsByIdRelationshipsBuilds.POST.b710f39.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaGroups/ById/Relationships/Builds/BetaGroupsByIdRelationshipsBuilds.POST.b710f39.generated.swift @@ -46,6 +46,7 @@ extension V1.BetaGroups.ById.Relationships.Builds { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.BetaGroups.ById.Relationships.Builds { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Apps/BetaTestersByIdRelationshipsApps.DELETE.bfe586b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Apps/BetaTestersByIdRelationshipsApps.DELETE.bfe586b.generated.swift index 4a134e37..907c68f6 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Apps/BetaTestersByIdRelationshipsApps.DELETE.bfe586b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Apps/BetaTestersByIdRelationshipsApps.DELETE.bfe586b.generated.swift @@ -31,6 +31,7 @@ extension V1.BetaTesters.ById.Relationships.Apps { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.BetaTesters.ById.Relationships.Apps { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/BetaGroups/BetaTestersByIdRelationshipsBetaGroups.DELETE.0ad1815.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/BetaGroups/BetaTestersByIdRelationshipsBetaGroups.DELETE.0ad1815.generated.swift index 96c17746..cc7cbf0f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/BetaGroups/BetaTestersByIdRelationshipsBetaGroups.DELETE.0ad1815.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/BetaGroups/BetaTestersByIdRelationshipsBetaGroups.DELETE.0ad1815.generated.swift @@ -31,6 +31,7 @@ extension V1.BetaTesters.ById.Relationships.BetaGroups { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.BetaTesters.ById.Relationships.BetaGroups { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/BetaGroups/BetaTestersByIdRelationshipsBetaGroups.POST.0ad1815.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/BetaGroups/BetaTestersByIdRelationshipsBetaGroups.POST.0ad1815.generated.swift index e01feec1..2e503e06 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/BetaGroups/BetaTestersByIdRelationshipsBetaGroups.POST.0ad1815.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/BetaGroups/BetaTestersByIdRelationshipsBetaGroups.POST.0ad1815.generated.swift @@ -46,6 +46,7 @@ extension V1.BetaTesters.ById.Relationships.BetaGroups { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.BetaTesters.ById.Relationships.BetaGroups { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Builds/BetaTestersByIdRelationshipsBuilds.DELETE.63f4bb8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Builds/BetaTestersByIdRelationshipsBuilds.DELETE.63f4bb8.generated.swift index 0015f26f..40deedb0 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Builds/BetaTestersByIdRelationshipsBuilds.DELETE.63f4bb8.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Builds/BetaTestersByIdRelationshipsBuilds.DELETE.63f4bb8.generated.swift @@ -31,6 +31,7 @@ extension V1.BetaTesters.ById.Relationships.Builds { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.BetaTesters.ById.Relationships.Builds { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Builds/BetaTestersByIdRelationshipsBuilds.POST.63f4bb8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Builds/BetaTestersByIdRelationshipsBuilds.POST.63f4bb8.generated.swift index 45a7ae94..47db7c44 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Builds/BetaTestersByIdRelationshipsBuilds.POST.63f4bb8.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BetaTesters/ById/Relationships/Builds/BetaTestersByIdRelationshipsBuilds.POST.63f4bb8.generated.swift @@ -46,6 +46,7 @@ extension V1.BetaTesters.ById.Relationships.Builds { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.BetaTesters.ById.Relationships.Builds { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BuildUploads/ById/BuildUploadsById.GET.a1cf186.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BuildUploads/ById/BuildUploadsById.GET.a1cf186.generated.swift index 034e42e7..5d7de2ba 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BuildUploads/ById/BuildUploadsById.GET.a1cf186.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BuildUploads/ById/BuildUploadsById.GET.a1cf186.generated.swift @@ -28,8 +28,12 @@ extension V1.BuildUploads.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[buildUploadFiles]", + value: parameters.fields[.buildUploadFiles]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[buildUploads]", value: parameters.fields[.buildUploads]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[builds]", + value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -95,6 +99,50 @@ extension V1.BuildUploads.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct BuildUploadFiles: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var assetDeliveryState: Self { + .init(rawValue: "assetDeliveryState") + } + + public static var assetToken: Self { + .init(rawValue: "assetToken") + } + + public static var assetType: Self { + .init(rawValue: "assetType") + } + + public static var fileName: Self { + .init(rawValue: "fileName") + } + + public static var fileSize: Self { + .init(rawValue: "fileSize") + } + + public static var sourceFileChecksums: Self { + .init(rawValue: "sourceFileChecksums") + } + + public static var uploadOperations: Self { + .init(rawValue: "uploadOperations") + } + + public static var uti: Self { + .init(rawValue: "uti") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct BuildUploads: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var assetDescriptionFile: Self { .init(rawValue: "assetDescriptionFile") @@ -151,12 +199,138 @@ extension V1.BuildUploads.ById.GET { } } + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var appEncryptionDeclaration: Self { + .init(rawValue: "appEncryptionDeclaration") + } + + public static var appStoreVersion: Self { + .init(rawValue: "appStoreVersion") + } + + public static var betaAppReviewSubmission: Self { + .init(rawValue: "betaAppReviewSubmission") + } + + public static var betaBuildLocalizations: Self { + .init(rawValue: "betaBuildLocalizations") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var buildAudienceType: Self { + .init(rawValue: "buildAudienceType") + } + + public static var buildBetaDetail: Self { + .init(rawValue: "buildBetaDetail") + } + + public static var buildBundles: Self { + .init(rawValue: "buildBundles") + } + + public static var buildUpload: Self { + .init(rawValue: "buildUpload") + } + + public static var computedMinMacOsVersion: Self { + .init(rawValue: "computedMinMacOsVersion") + } + + public static var computedMinVisionOsVersion: Self { + .init(rawValue: "computedMinVisionOsVersion") + } + + public static var diagnosticSignatures: Self { + .init(rawValue: "diagnosticSignatures") + } + + public static var expirationDate: Self { + .init(rawValue: "expirationDate") + } + + public static var expired: Self { + .init(rawValue: "expired") + } + + public static var iconAssetToken: Self { + .init(rawValue: "iconAssetToken") + } + + public static var icons: Self { + .init(rawValue: "icons") + } + + public static var individualTesters: Self { + .init(rawValue: "individualTesters") + } + + public static var lsMinimumSystemVersion: Self { + .init(rawValue: "lsMinimumSystemVersion") + } + + public static var minOsVersion: Self { + .init(rawValue: "minOsVersion") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersion: Self { + .init(rawValue: "preReleaseVersion") + } + + public static var processingState: Self { + .init(rawValue: "processingState") + } + + public static var uploadedDate: Self { + .init(rawValue: "uploadedDate") + } + + public static var usesNonExemptEncryption: Self { + .init(rawValue: "usesNonExemptEncryption") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type buildUploadFiles + public static var buildUploadFiles: Relation<[BuildUploadFiles]?> { + .init(key: "fields[buildUploadFiles]") + } + /// the fields to include for returned resources of type buildUploads public static var buildUploads: Relation<[BuildUploads]?> { .init(key: "fields[buildUploads]") } + /// the fields to include for returned resources of type builds + public static var builds: Relation<[Builds]?> { + .init(key: "fields[builds]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/Builds.GET.b0093ba.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/Builds.GET.b0093ba.generated.swift index 6b86cd60..06a68f77 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/Builds.GET.b0093ba.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/Builds.GET.b0093ba.generated.swift @@ -37,12 +37,18 @@ extension V1.Builds { value: parameters.fields[.betaAppReviewSubmissions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[betaBuildLocalizations]", value: parameters.fields[.betaBuildLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[betaGroups]", + value: parameters.fields[.betaGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[betaTesters]", value: parameters.fields[.betaTesters]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[buildBetaDetails]", value: parameters.fields[.buildBetaDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[buildBundles]", + value: parameters.fields[.buildBundles]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[buildIcons]", value: parameters.fields[.buildIcons]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[buildUploads]", + value: parameters.fields[.buildUploads]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[builds]", value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[preReleaseVersions]", @@ -648,6 +654,86 @@ extension V1.Builds.GET { } } + public struct BetaGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var betaRecruitmentCriteria: Self { + .init(rawValue: "betaRecruitmentCriteria") + } + + public static var betaRecruitmentCriterionCompatibleBuildCheck: Self { + .init(rawValue: "betaRecruitmentCriterionCompatibleBuildCheck") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var feedbackEnabled: Self { + .init(rawValue: "feedbackEnabled") + } + + public static var hasAccessToAllBuilds: Self { + .init(rawValue: "hasAccessToAllBuilds") + } + + public static var iosBuildsAvailableForAppleSiliconMac: Self { + .init(rawValue: "iosBuildsAvailableForAppleSiliconMac") + } + + public static var iosBuildsAvailableForAppleVision: Self { + .init(rawValue: "iosBuildsAvailableForAppleVision") + } + + public static var isInternalGroup: Self { + .init(rawValue: "isInternalGroup") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var publicLink: Self { + .init(rawValue: "publicLink") + } + + public static var publicLinkEnabled: Self { + .init(rawValue: "publicLinkEnabled") + } + + public static var publicLinkId: Self { + .init(rawValue: "publicLinkId") + } + + public static var publicLinkLimit: Self { + .init(rawValue: "publicLinkLimit") + } + + public static var publicLinkLimitEnabled: Self { + .init(rawValue: "publicLinkLimitEnabled") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct BetaTesters: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appDevices: Self { .init(rawValue: "appDevices") @@ -724,6 +810,114 @@ extension V1.Builds.GET { } } + public struct BuildBundles: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appClipDomainCacheStatus: Self { + .init(rawValue: "appClipDomainCacheStatus") + } + + public static var appClipDomainDebugStatus: Self { + .init(rawValue: "appClipDomainDebugStatus") + } + + public static var baDownloadAllowance: Self { + .init(rawValue: "baDownloadAllowance") + } + + public static var baMaxInstallSize: Self { + .init(rawValue: "baMaxInstallSize") + } + + public static var betaAppClipInvocations: Self { + .init(rawValue: "betaAppClipInvocations") + } + + public static var buildBundleFileSizes: Self { + .init(rawValue: "buildBundleFileSizes") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var bundleType: Self { + .init(rawValue: "bundleType") + } + + public static var dSYMUrl: Self { + .init(rawValue: "dSYMUrl") + } + + public static var deviceProtocols: Self { + .init(rawValue: "deviceProtocols") + } + + public static var entitlements: Self { + .init(rawValue: "entitlements") + } + + public static var fileName: Self { + .init(rawValue: "fileName") + } + + public static var hasOnDemandResources: Self { + .init(rawValue: "hasOnDemandResources") + } + + public static var hasPrerenderedIcon: Self { + .init(rawValue: "hasPrerenderedIcon") + } + + public static var hasSirikit: Self { + .init(rawValue: "hasSirikit") + } + + public static var includesSymbols: Self { + .init(rawValue: "includesSymbols") + } + + public static var isIosBuildMacAppStoreCompatible: Self { + .init(rawValue: "isIosBuildMacAppStoreCompatible") + } + + public static var locales: Self { + .init(rawValue: "locales") + } + + public static var minimumOsVersion: Self { + .init(rawValue: "minimumOsVersion") + } + + public static var platformBuild: Self { + .init(rawValue: "platformBuild") + } + + public static var requiredCapabilities: Self { + .init(rawValue: "requiredCapabilities") + } + + public static var sdkBuild: Self { + .init(rawValue: "sdkBuild") + } + + public static var supportedArchitectures: Self { + .init(rawValue: "supportedArchitectures") + } + + public static var usesLocationServices: Self { + .init(rawValue: "usesLocationServices") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct BuildIcons: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var iconAsset: Self { .init(rawValue: "iconAsset") @@ -752,6 +946,62 @@ extension V1.Builds.GET { } } + public struct BuildUploads: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var assetDescriptionFile: Self { + .init(rawValue: "assetDescriptionFile") + } + + public static var assetFile: Self { + .init(rawValue: "assetFile") + } + + public static var assetSpiFile: Self { + .init(rawValue: "assetSpiFile") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var buildUploadFiles: Self { + .init(rawValue: "buildUploadFiles") + } + + public static var cfBundleShortVersionString: Self { + .init(rawValue: "cfBundleShortVersionString") + } + + public static var cfBundleVersion: Self { + .init(rawValue: "cfBundleVersion") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var uploadedDate: Self { + .init(rawValue: "uploadedDate") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var app: Self { .init(rawValue: "app") @@ -922,6 +1172,11 @@ extension V1.Builds.GET { .init(key: "fields[betaBuildLocalizations]") } + /// the fields to include for returned resources of type betaGroups + public static var betaGroups: Relation<[BetaGroups]?> { + .init(key: "fields[betaGroups]") + } + /// the fields to include for returned resources of type betaTesters public static var betaTesters: Relation<[BetaTesters]?> { .init(key: "fields[betaTesters]") @@ -932,11 +1187,21 @@ extension V1.Builds.GET { .init(key: "fields[buildBetaDetails]") } + /// the fields to include for returned resources of type buildBundles + public static var buildBundles: Relation<[BuildBundles]?> { + .init(key: "fields[buildBundles]") + } + /// the fields to include for returned resources of type buildIcons public static var buildIcons: Relation<[BuildIcons]?> { .init(key: "fields[buildIcons]") } + /// the fields to include for returned resources of type buildUploads + public static var buildUploads: Relation<[BuildUploads]?> { + .init(key: "fields[buildUploads]") + } + /// the fields to include for returned resources of type builds public static var builds: Relation<[Builds]?> { .init(key: "fields[builds]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/BuildsById.GET.30b1941.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/BuildsById.GET.30b1941.generated.swift index 6e1c4963..78098af0 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/BuildsById.GET.30b1941.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/BuildsById.GET.30b1941.generated.swift @@ -38,12 +38,18 @@ extension V1.Builds.ById { value: parameters.fields[.betaAppReviewSubmissions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[betaBuildLocalizations]", value: parameters.fields[.betaBuildLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[betaGroups]", + value: parameters.fields[.betaGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[betaTesters]", value: parameters.fields[.betaTesters]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[buildBetaDetails]", value: parameters.fields[.buildBetaDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[buildBundles]", + value: parameters.fields[.buildBundles]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[buildIcons]", value: parameters.fields[.buildIcons]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[buildUploads]", + value: parameters.fields[.buildUploads]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[builds]", value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[preReleaseVersions]", @@ -593,6 +599,86 @@ extension V1.Builds.ById.GET { } } + public struct BetaGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var betaRecruitmentCriteria: Self { + .init(rawValue: "betaRecruitmentCriteria") + } + + public static var betaRecruitmentCriterionCompatibleBuildCheck: Self { + .init(rawValue: "betaRecruitmentCriterionCompatibleBuildCheck") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var feedbackEnabled: Self { + .init(rawValue: "feedbackEnabled") + } + + public static var hasAccessToAllBuilds: Self { + .init(rawValue: "hasAccessToAllBuilds") + } + + public static var iosBuildsAvailableForAppleSiliconMac: Self { + .init(rawValue: "iosBuildsAvailableForAppleSiliconMac") + } + + public static var iosBuildsAvailableForAppleVision: Self { + .init(rawValue: "iosBuildsAvailableForAppleVision") + } + + public static var isInternalGroup: Self { + .init(rawValue: "isInternalGroup") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var publicLink: Self { + .init(rawValue: "publicLink") + } + + public static var publicLinkEnabled: Self { + .init(rawValue: "publicLinkEnabled") + } + + public static var publicLinkId: Self { + .init(rawValue: "publicLinkId") + } + + public static var publicLinkLimit: Self { + .init(rawValue: "publicLinkLimit") + } + + public static var publicLinkLimitEnabled: Self { + .init(rawValue: "publicLinkLimitEnabled") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct BetaTesters: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appDevices: Self { .init(rawValue: "appDevices") @@ -669,6 +755,114 @@ extension V1.Builds.ById.GET { } } + public struct BuildBundles: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appClipDomainCacheStatus: Self { + .init(rawValue: "appClipDomainCacheStatus") + } + + public static var appClipDomainDebugStatus: Self { + .init(rawValue: "appClipDomainDebugStatus") + } + + public static var baDownloadAllowance: Self { + .init(rawValue: "baDownloadAllowance") + } + + public static var baMaxInstallSize: Self { + .init(rawValue: "baMaxInstallSize") + } + + public static var betaAppClipInvocations: Self { + .init(rawValue: "betaAppClipInvocations") + } + + public static var buildBundleFileSizes: Self { + .init(rawValue: "buildBundleFileSizes") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var bundleType: Self { + .init(rawValue: "bundleType") + } + + public static var dSYMUrl: Self { + .init(rawValue: "dSYMUrl") + } + + public static var deviceProtocols: Self { + .init(rawValue: "deviceProtocols") + } + + public static var entitlements: Self { + .init(rawValue: "entitlements") + } + + public static var fileName: Self { + .init(rawValue: "fileName") + } + + public static var hasOnDemandResources: Self { + .init(rawValue: "hasOnDemandResources") + } + + public static var hasPrerenderedIcon: Self { + .init(rawValue: "hasPrerenderedIcon") + } + + public static var hasSirikit: Self { + .init(rawValue: "hasSirikit") + } + + public static var includesSymbols: Self { + .init(rawValue: "includesSymbols") + } + + public static var isIosBuildMacAppStoreCompatible: Self { + .init(rawValue: "isIosBuildMacAppStoreCompatible") + } + + public static var locales: Self { + .init(rawValue: "locales") + } + + public static var minimumOsVersion: Self { + .init(rawValue: "minimumOsVersion") + } + + public static var platformBuild: Self { + .init(rawValue: "platformBuild") + } + + public static var requiredCapabilities: Self { + .init(rawValue: "requiredCapabilities") + } + + public static var sdkBuild: Self { + .init(rawValue: "sdkBuild") + } + + public static var supportedArchitectures: Self { + .init(rawValue: "supportedArchitectures") + } + + public static var usesLocationServices: Self { + .init(rawValue: "usesLocationServices") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct BuildIcons: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var iconAsset: Self { .init(rawValue: "iconAsset") @@ -697,6 +891,62 @@ extension V1.Builds.ById.GET { } } + public struct BuildUploads: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var assetDescriptionFile: Self { + .init(rawValue: "assetDescriptionFile") + } + + public static var assetFile: Self { + .init(rawValue: "assetFile") + } + + public static var assetSpiFile: Self { + .init(rawValue: "assetSpiFile") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var buildUploadFiles: Self { + .init(rawValue: "buildUploadFiles") + } + + public static var cfBundleShortVersionString: Self { + .init(rawValue: "cfBundleShortVersionString") + } + + public static var cfBundleVersion: Self { + .init(rawValue: "cfBundleVersion") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var uploadedDate: Self { + .init(rawValue: "uploadedDate") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Builds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var app: Self { .init(rawValue: "app") @@ -867,6 +1117,11 @@ extension V1.Builds.ById.GET { .init(key: "fields[betaBuildLocalizations]") } + /// the fields to include for returned resources of type betaGroups + public static var betaGroups: Relation<[BetaGroups]?> { + .init(key: "fields[betaGroups]") + } + /// the fields to include for returned resources of type betaTesters public static var betaTesters: Relation<[BetaTesters]?> { .init(key: "fields[betaTesters]") @@ -877,11 +1132,21 @@ extension V1.Builds.ById.GET { .init(key: "fields[buildBetaDetails]") } + /// the fields to include for returned resources of type buildBundles + public static var buildBundles: Relation<[BuildBundles]?> { + .init(key: "fields[buildBundles]") + } + /// the fields to include for returned resources of type buildIcons public static var buildIcons: Relation<[BuildIcons]?> { .init(key: "fields[buildIcons]") } + /// the fields to include for returned resources of type buildUploads + public static var buildUploads: Relation<[BuildUploads]?> { + .init(key: "fields[buildUploads]") + } + /// the fields to include for returned resources of type builds public static var builds: Relation<[Builds]?> { .init(key: "fields[builds]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/AppEncryptionDeclaration/BuildsByIdRelationshipsAppEncryptionDeclaration.PATCH.44e79a0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/AppEncryptionDeclaration/BuildsByIdRelationshipsAppEncryptionDeclaration.PATCH.44e79a0.generated.swift index 91eae257..3da2c009 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/AppEncryptionDeclaration/BuildsByIdRelationshipsAppEncryptionDeclaration.PATCH.44e79a0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/AppEncryptionDeclaration/BuildsByIdRelationshipsAppEncryptionDeclaration.PATCH.44e79a0.generated.swift @@ -46,6 +46,7 @@ extension V1.Builds.ById.Relationships.AppEncryptionDeclaration { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.Builds.ById.Relationships.AppEncryptionDeclaration { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/BetaGroups/BuildsByIdRelationshipsBetaGroups.DELETE.aaa7e70.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/BetaGroups/BuildsByIdRelationshipsBetaGroups.DELETE.aaa7e70.generated.swift index aa4ebb05..02de2433 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/BetaGroups/BuildsByIdRelationshipsBetaGroups.DELETE.aaa7e70.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/BetaGroups/BuildsByIdRelationshipsBetaGroups.DELETE.aaa7e70.generated.swift @@ -31,6 +31,7 @@ extension V1.Builds.ById.Relationships.BetaGroups { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.Builds.ById.Relationships.BetaGroups { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/BetaGroups/BuildsByIdRelationshipsBetaGroups.POST.aaa7e70.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/BetaGroups/BuildsByIdRelationshipsBetaGroups.POST.aaa7e70.generated.swift index 1d9d9b20..63ca44fe 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/BetaGroups/BuildsByIdRelationshipsBetaGroups.POST.aaa7e70.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/BetaGroups/BuildsByIdRelationshipsBetaGroups.POST.aaa7e70.generated.swift @@ -46,6 +46,7 @@ extension V1.Builds.ById.Relationships.BetaGroups { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.Builds.ById.Relationships.BetaGroups { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/IndividualTesters/BuildsByIdRelationshipsIndividualTesters.DELETE.d176ffd.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/IndividualTesters/BuildsByIdRelationshipsIndividualTesters.DELETE.d176ffd.generated.swift index f1366262..e27b9720 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/IndividualTesters/BuildsByIdRelationshipsIndividualTesters.DELETE.d176ffd.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/IndividualTesters/BuildsByIdRelationshipsIndividualTesters.DELETE.d176ffd.generated.swift @@ -31,6 +31,7 @@ extension V1.Builds.ById.Relationships.IndividualTesters { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.Builds.ById.Relationships.IndividualTesters { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/IndividualTesters/BuildsByIdRelationshipsIndividualTesters.POST.d176ffd.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/IndividualTesters/BuildsByIdRelationshipsIndividualTesters.POST.d176ffd.generated.swift index 426714f2..e93c5e73 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/IndividualTesters/BuildsByIdRelationshipsIndividualTesters.POST.d176ffd.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/Relationships/IndividualTesters/BuildsByIdRelationshipsIndividualTesters.POST.d176ffd.generated.swift @@ -46,6 +46,7 @@ extension V1.Builds.ById.Relationships.IndividualTesters { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.Builds.ById.Relationships.IndividualTesters { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiBuildRuns/ById/CiBuildRunsById.GET.223226a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiBuildRuns/ById/CiBuildRunsById.GET.223226a.generated.swift index 5af2a220..c5e343f2 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiBuildRuns/ById/CiBuildRunsById.GET.223226a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiBuildRuns/ById/CiBuildRunsById.GET.223226a.generated.swift @@ -32,6 +32,14 @@ extension V1.CiBuildRuns.ById { value: parameters.fields[.builds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[ciBuildRuns]", value: parameters.fields[.ciBuildRuns]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[ciProducts]", + value: parameters.fields[.ciProducts]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[ciWorkflows]", + value: parameters.fields[.ciWorkflows]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[scmGitReferences]", + value: parameters.fields[.scmGitReferences]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[scmPullRequests]", + value: parameters.fields[.scmPullRequests]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[builds]", @@ -305,6 +313,238 @@ extension V1.CiBuildRuns.ById.GET { } } + public struct CiProducts: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var additionalRepositories: Self { + .init(rawValue: "additionalRepositories") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var buildRuns: Self { + .init(rawValue: "buildRuns") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var primaryRepositories: Self { + .init(rawValue: "primaryRepositories") + } + + public static var productType: Self { + .init(rawValue: "productType") + } + + public static var workflows: Self { + .init(rawValue: "workflows") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct CiWorkflows: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var actions: Self { + .init(rawValue: "actions") + } + + public static var branchStartCondition: Self { + .init(rawValue: "branchStartCondition") + } + + public static var buildRuns: Self { + .init(rawValue: "buildRuns") + } + + public static var clean: Self { + .init(rawValue: "clean") + } + + public static var containerFilePath: Self { + .init(rawValue: "containerFilePath") + } + + public static var description: Self { + .init(rawValue: "description") + } + + public static var isEnabled: Self { + .init(rawValue: "isEnabled") + } + + public static var isLockedForEditing: Self { + .init(rawValue: "isLockedForEditing") + } + + public static var lastModifiedDate: Self { + .init(rawValue: "lastModifiedDate") + } + + public static var macOsVersion: Self { + .init(rawValue: "macOsVersion") + } + + public static var manualBranchStartCondition: Self { + .init(rawValue: "manualBranchStartCondition") + } + + public static var manualPullRequestStartCondition: Self { + .init(rawValue: "manualPullRequestStartCondition") + } + + public static var manualTagStartCondition: Self { + .init(rawValue: "manualTagStartCondition") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var product: Self { + .init(rawValue: "product") + } + + public static var pullRequestStartCondition: Self { + .init(rawValue: "pullRequestStartCondition") + } + + public static var repository: Self { + .init(rawValue: "repository") + } + + public static var scheduledStartCondition: Self { + .init(rawValue: "scheduledStartCondition") + } + + public static var tagStartCondition: Self { + .init(rawValue: "tagStartCondition") + } + + public static var xcodeVersion: Self { + .init(rawValue: "xcodeVersion") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct ScmGitReferences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var canonicalName: Self { + .init(rawValue: "canonicalName") + } + + public static var isDeleted: Self { + .init(rawValue: "isDeleted") + } + + public static var kind: Self { + .init(rawValue: "kind") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var repository: Self { + .init(rawValue: "repository") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct ScmPullRequests: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var destinationBranchName: Self { + .init(rawValue: "destinationBranchName") + } + + public static var destinationRepositoryName: Self { + .init(rawValue: "destinationRepositoryName") + } + + public static var destinationRepositoryOwner: Self { + .init(rawValue: "destinationRepositoryOwner") + } + + public static var isClosed: Self { + .init(rawValue: "isClosed") + } + + public static var isCrossRepository: Self { + .init(rawValue: "isCrossRepository") + } + + public static var number: Self { + .init(rawValue: "number") + } + + public static var repository: Self { + .init(rawValue: "repository") + } + + public static var sourceBranchName: Self { + .init(rawValue: "sourceBranchName") + } + + public static var sourceRepositoryName: Self { + .init(rawValue: "sourceRepositoryName") + } + + public static var sourceRepositoryOwner: Self { + .init(rawValue: "sourceRepositoryOwner") + } + + public static var title: Self { + .init(rawValue: "title") + } + + public static var webUrl: Self { + .init(rawValue: "webUrl") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type builds public static var builds: Relation<[Builds]?> { @@ -316,6 +556,26 @@ extension V1.CiBuildRuns.ById.GET { .init(key: "fields[ciBuildRuns]") } + /// the fields to include for returned resources of type ciProducts + public static var ciProducts: Relation<[CiProducts]?> { + .init(key: "fields[ciProducts]") + } + + /// the fields to include for returned resources of type ciWorkflows + public static var ciWorkflows: Relation<[CiWorkflows]?> { + .init(key: "fields[ciWorkflows]") + } + + /// the fields to include for returned resources of type scmGitReferences + public static var scmGitReferences: Relation<[ScmGitReferences]?> { + .init(key: "fields[scmGitReferences]") + } + + /// the fields to include for returned resources of type scmPullRequests + public static var scmPullRequests: Relation<[ScmPullRequests]?> { + .init(key: "fields[scmPullRequests]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/ById/CiProductsById.GET.3ba4a0b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/ById/CiProductsById.GET.3ba4a0b.generated.swift index 89d619da..1709c643 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/ById/CiProductsById.GET.3ba4a0b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/ById/CiProductsById.GET.3ba4a0b.generated.swift @@ -30,6 +30,8 @@ extension V1.CiProducts.ById { components?.queryItems = [ URLQueryItem(name: "fields[apps]", value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[bundleIds]", + value: parameters.fields[.bundleIds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[ciProducts]", value: parameters.fields[.ciProducts]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[scmRepositories]", @@ -335,6 +337,46 @@ extension V1.CiProducts.ById.GET { } } + public struct BundleIds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var bundleIdCapabilities: Self { + .init(rawValue: "bundleIdCapabilities") + } + + public static var identifier: Self { + .init(rawValue: "identifier") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var profiles: Self { + .init(rawValue: "profiles") + } + + public static var seedId: Self { + .init(rawValue: "seedId") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct CiProducts: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var additionalRepositories: Self { .init(rawValue: "additionalRepositories") @@ -437,6 +479,11 @@ extension V1.CiProducts.ById.GET { .init(key: "fields[apps]") } + /// the fields to include for returned resources of type bundleIds + public static var bundleIds: Relation<[BundleIds]?> { + .init(key: "fields[bundleIds]") + } + /// the fields to include for returned resources of type ciProducts public static var ciProducts: Relation<[CiProducts]?> { .init(key: "fields[ciProducts]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/CiProducts.GET.56e2396.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/CiProducts.GET.56e2396.generated.swift index d5b70d65..d2e6d0fb 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/CiProducts.GET.56e2396.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/CiProducts.GET.56e2396.generated.swift @@ -27,6 +27,8 @@ extension V1.CiProducts { components?.queryItems = [ URLQueryItem(name: "fields[apps]", value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[bundleIds]", + value: parameters.fields[.bundleIds]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[ciProducts]", value: parameters.fields[.ciProducts]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[scmRepositories]", @@ -337,6 +339,46 @@ extension V1.CiProducts.GET { } } + public struct BundleIds: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var app: Self { + .init(rawValue: "app") + } + + public static var bundleIdCapabilities: Self { + .init(rawValue: "bundleIdCapabilities") + } + + public static var identifier: Self { + .init(rawValue: "identifier") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var profiles: Self { + .init(rawValue: "profiles") + } + + public static var seedId: Self { + .init(rawValue: "seedId") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct CiProducts: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var additionalRepositories: Self { .init(rawValue: "additionalRepositories") @@ -439,6 +481,11 @@ extension V1.CiProducts.GET { .init(key: "fields[apps]") } + /// the fields to include for returned resources of type bundleIds + public static var bundleIds: Relation<[BundleIds]?> { + .init(key: "fields[bundleIds]") + } + /// the fields to include for returned resources of type ciProducts public static var ciProducts: Relation<[CiProducts]?> { .init(key: "fields[ciProducts]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiWorkflows/ById/CiWorkflowsById.GET.c983433.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiWorkflows/ById/CiWorkflowsById.GET.c983433.generated.swift index c9bc1998..e9ff0b36 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiWorkflows/ById/CiWorkflowsById.GET.c983433.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiWorkflows/ById/CiWorkflowsById.GET.c983433.generated.swift @@ -28,8 +28,14 @@ extension V1.CiWorkflows.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[ciMacOsVersions]", + value: parameters.fields[.ciMacOsVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[ciProducts]", + value: parameters.fields[.ciProducts]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[ciWorkflows]", value: parameters.fields[.ciWorkflows]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[ciXcodeVersions]", + value: parameters.fields[.ciXcodeVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[scmRepositories]", value: parameters.fields[.scmRepositories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -97,6 +103,78 @@ extension V1.CiWorkflows.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct CiMacOsVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var name: Self { + .init(rawValue: "name") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public static var xcodeVersions: Self { + .init(rawValue: "xcodeVersions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct CiProducts: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var additionalRepositories: Self { + .init(rawValue: "additionalRepositories") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var buildRuns: Self { + .init(rawValue: "buildRuns") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var primaryRepositories: Self { + .init(rawValue: "primaryRepositories") + } + + public static var productType: Self { + .init(rawValue: "productType") + } + + public static var workflows: Self { + .init(rawValue: "workflows") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct CiWorkflows: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var actions: Self { .init(rawValue: "actions") @@ -189,6 +267,34 @@ extension V1.CiWorkflows.ById.GET { } } + public struct CiXcodeVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var macOsVersions: Self { + .init(rawValue: "macOsVersions") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var testDestinations: Self { + .init(rawValue: "testDestinations") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct ScmRepositories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var defaultBranch: Self { .init(rawValue: "defaultBranch") @@ -238,11 +344,26 @@ extension V1.CiWorkflows.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type ciMacOsVersions + public static var ciMacOsVersions: Relation<[CiMacOsVersions]?> { + .init(key: "fields[ciMacOsVersions]") + } + + /// the fields to include for returned resources of type ciProducts + public static var ciProducts: Relation<[CiProducts]?> { + .init(key: "fields[ciProducts]") + } + /// the fields to include for returned resources of type ciWorkflows public static var ciWorkflows: Relation<[CiWorkflows]?> { .init(key: "fields[ciWorkflows]") } + /// the fields to include for returned resources of type ciXcodeVersions + public static var ciXcodeVersions: Relation<[CiXcodeVersions]?> { + .init(key: "fields[ciXcodeVersions]") + } + /// the fields to include for returned resources of type scmRepositories public static var scmRepositories: Relation<[ScmRepositories]?> { .init(key: "fields[scmRepositories]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviewResponses/ById/CustomerReviewResponsesById.GET.bacc312.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviewResponses/ById/CustomerReviewResponsesById.GET.bacc312.generated.swift index 925b0b79..37a8c065 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviewResponses/ById/CustomerReviewResponsesById.GET.bacc312.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviewResponses/ById/CustomerReviewResponsesById.GET.bacc312.generated.swift @@ -30,6 +30,8 @@ extension V1.CustomerReviewResponses.ById { components?.queryItems = [ URLQueryItem(name: "fields[customerReviewResponses]", value: parameters.fields[.customerReviewResponses]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[customerReviews]", + value: parameters.fields[.customerReviews]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -123,12 +125,61 @@ extension V1.CustomerReviewResponses.ById.GET { } } + public struct CustomerReviews: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var body: Self { + .init(rawValue: "body") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var rating: Self { + .init(rawValue: "rating") + } + + public static var response: Self { + .init(rawValue: "response") + } + + public static var reviewTerritory: Self { + .init(rawValue: "reviewTerritory") + } + + public static var reviewerNickname: Self { + .init(rawValue: "reviewerNickname") + } + + public static var territory: Self { + .init(rawValue: "territory") + } + + public static var title: Self { + .init(rawValue: "title") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type customerReviewResponses public static var customerReviewResponses: Relation<[CustomerReviewResponses]?> { .init(key: "fields[customerReviewResponses]") } + /// the fields to include for returned resources of type customerReviews + public static var customerReviews: Relation<[CustomerReviews]?> { + .init(key: "fields[customerReviews]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviews/ById/CustomerReviewsById.GET.7a43fba.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviews/ById/CustomerReviewsById.GET.7a43fba.generated.swift index d584bace..2f237d46 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviews/ById/CustomerReviewsById.GET.7a43fba.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviews/ById/CustomerReviewsById.GET.7a43fba.generated.swift @@ -32,6 +32,8 @@ extension V1.CustomerReviews.ById { value: parameters.fields[.customerReviewResponses]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[customerReviews]", value: parameters.fields[.customerReviews]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -142,6 +144,10 @@ extension V1.CustomerReviews.ById.GET { .init(rawValue: "response") } + public static var reviewTerritory: Self { + .init(rawValue: "reviewTerritory") + } + public static var reviewerNickname: Self { .init(rawValue: "reviewerNickname") } @@ -165,6 +171,22 @@ extension V1.CustomerReviews.ById.GET { } } + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type customerReviewResponses public static var customerReviewResponses: Relation<[CustomerReviewResponses]?> { @@ -176,6 +198,11 @@ extension V1.CustomerReviews.ById.GET { .init(key: "fields[customerReviews]") } + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { @@ -189,6 +216,10 @@ extension V1.CustomerReviews.ById.GET { .init(rawValue: "response") } + public static var reviewTerritory: Self { + .init(rawValue: "reviewTerritory") + } + public var description: String { rawValue } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviews/ById/Response/CustomerReviewsByIdResponse.GET.986bb48.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviews/ById/Response/CustomerReviewsByIdResponse.GET.986bb48.generated.swift index 89a887c1..262925e0 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviews/ById/Response/CustomerReviewsByIdResponse.GET.986bb48.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CustomerReviews/ById/Response/CustomerReviewsByIdResponse.GET.986bb48.generated.swift @@ -142,6 +142,10 @@ extension V1.CustomerReviews.ById.Response.GET { .init(rawValue: "response") } + public static var reviewTerritory: Self { + .init(rawValue: "reviewTerritory") + } + public static var reviewerNickname: Self { .init(rawValue: "reviewerNickname") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/EndUserLicenseAgreements/ById/EndUserLicenseAgreementsById.GET.940d270.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/EndUserLicenseAgreements/ById/EndUserLicenseAgreementsById.GET.940d270.generated.swift index 1b4e79e2..201a985c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/EndUserLicenseAgreements/ById/EndUserLicenseAgreementsById.GET.940d270.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/EndUserLicenseAgreements/ById/EndUserLicenseAgreementsById.GET.940d270.generated.swift @@ -28,6 +28,8 @@ extension V1.EndUserLicenseAgreements.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[endUserLicenseAgreements]", value: parameters.fields[.endUserLicenseAgreements]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[territories]", @@ -101,6 +103,238 @@ extension V1.EndUserLicenseAgreements.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct EndUserLicenseAgreements: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var agreementText: Self { .init(rawValue: "agreementText") @@ -142,6 +376,11 @@ extension V1.EndUserLicenseAgreements.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type endUserLicenseAgreements public static var endUserLicenseAgreements: Relation<[EndUserLicenseAgreements]?> { .init(key: "fields[endUserLicenseAgreements]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievementImages/ById/GameCenterAchievementImagesById.GET.9dc559b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievementImages/ById/GameCenterAchievementImagesById.GET.9dc559b.generated.swift index 17e018c3..23cf270f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievementImages/ById/GameCenterAchievementImagesById.GET.9dc559b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievementImages/ById/GameCenterAchievementImagesById.GET.9dc559b.generated.swift @@ -31,6 +31,8 @@ extension V1.GameCenterAchievementImages.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterAchievementImages]", value: parameters.fields[.gameCenterAchievementImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterAchievementLocalizations]", + value: parameters.fields[.gameCenterAchievementLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -132,12 +134,53 @@ extension V1.GameCenterAchievementImages.ById.GET { } } + public struct GameCenterAchievementLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var afterEarnedDescription: Self { + .init(rawValue: "afterEarnedDescription") + } + + public static var beforeEarnedDescription: Self { + .init(rawValue: "beforeEarnedDescription") + } + + public static var gameCenterAchievement: Self { + .init(rawValue: "gameCenterAchievement") + } + + public static var gameCenterAchievementImage: Self { + .init(rawValue: "gameCenterAchievementImage") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterAchievementImages public static var gameCenterAchievementImages: Relation<[GameCenterAchievementImages]?> { .init(key: "fields[gameCenterAchievementImages]") } + /// the fields to include for returned resources of type gameCenterAchievementLocalizations + public static var gameCenterAchievementLocalizations: Relation<[GameCenterAchievementLocalizations]?> { + .init(key: "fields[gameCenterAchievementLocalizations]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievementReleases/ById/GameCenterAchievementReleasesById.GET.41adca8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievementReleases/ById/GameCenterAchievementReleasesById.GET.41adca8.generated.swift index ef5b32d3..1b340aa2 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievementReleases/ById/GameCenterAchievementReleasesById.GET.41adca8.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievementReleases/ById/GameCenterAchievementReleasesById.GET.41adca8.generated.swift @@ -31,6 +31,10 @@ extension V1.GameCenterAchievementReleases.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterAchievementReleases]", value: parameters.fields[.gameCenterAchievementReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterAchievements]", + value: parameters.fields[.gameCenterAchievements]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -120,12 +124,190 @@ extension V1.GameCenterAchievementReleases.ById.GET { } } + public struct GameCenterAchievements: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var activityProperties: Self { + .init(rawValue: "activityProperties") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var groupAchievement: Self { + .init(rawValue: "groupAchievement") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var points: Self { + .init(rawValue: "points") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var repeatable: Self { + .init(rawValue: "repeatable") + } + + public static var showBeforeEarned: Self { + .init(rawValue: "showBeforeEarned") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterAchievementReleases public static var gameCenterAchievementReleases: Relation<[GameCenterAchievementReleases]?> { .init(key: "fields[gameCenterAchievementReleases]") } + /// the fields to include for returned resources of type gameCenterAchievements + public static var gameCenterAchievements: Relation<[GameCenterAchievements]?> { + .init(key: "fields[gameCenterAchievements]") + } + + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/GameCenterAchievementsById.GET.54c2f1b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/GameCenterAchievementsById.GET.54c2f1b.generated.swift index 4bb47a48..92ed36f9 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/GameCenterAchievementsById.GET.54c2f1b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/GameCenterAchievementsById.GET.54c2f1b.generated.swift @@ -35,6 +35,12 @@ extension V1.GameCenterAchievements.ById { value: parameters.fields[.gameCenterAchievementReleases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterAchievements]", value: parameters.fields[.gameCenterAchievements]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterActivities]", + value: parameters.fields[.gameCenterActivities]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterGroups]", + value: parameters.fields[.gameCenterGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[localizations]", @@ -230,6 +236,234 @@ extension V1.GameCenterAchievements.ById.GET { } } + public struct GameCenterActivities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievements: Self { + .init(rawValue: "achievements") + } + + public static var achievementsV2: Self { + .init(rawValue: "achievementsV2") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var leaderboards: Self { + .init(rawValue: "leaderboards") + } + + public static var leaderboardsV2: Self { + .init(rawValue: "leaderboardsV2") + } + + public static var maximumPlayersCount: Self { + .init(rawValue: "maximumPlayersCount") + } + + public static var minimumPlayersCount: Self { + .init(rawValue: "minimumPlayersCount") + } + + public static var playStyle: Self { + .init(rawValue: "playStyle") + } + + public static var properties: Self { + .init(rawValue: "properties") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var supportsPartyCode: Self { + .init(rawValue: "supportsPartyCode") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterDetails: Self { + .init(rawValue: "gameCenterDetails") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterAchievementLocalizations public static var gameCenterAchievementLocalizations: Relation<[GameCenterAchievementLocalizations]?> { @@ -246,6 +480,21 @@ extension V1.GameCenterAchievements.ById.GET { .init(key: "fields[gameCenterAchievements]") } + /// the fields to include for returned resources of type gameCenterActivities + public static var gameCenterActivities: Relation<[GameCenterActivities]?> { + .init(key: "fields[gameCenterActivities]") + } + + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + + /// the fields to include for returned resources of type gameCenterGroups + public static var gameCenterGroups: Relation<[GameCenterGroups]?> { + .init(key: "fields[gameCenterGroups]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/Relationships/Activity/GameCenterAchievementsByIdRelationshipsActivity.PATCH.767fb4e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/Relationships/Activity/GameCenterAchievementsByIdRelationshipsActivity.PATCH.767fb4e.generated.swift index 93e19ce1..f5235cb9 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/Relationships/Activity/GameCenterAchievementsByIdRelationshipsActivity.PATCH.767fb4e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/Relationships/Activity/GameCenterAchievementsByIdRelationshipsActivity.PATCH.767fb4e.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterAchievements.ById.Relationships.Activity { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterAchievements.ById.Relationships.Activity { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/Relationships/GroupAchievement/GameCenterAchievementsByIdRelationshipsGroupAchievement.PATCH.7028b57.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/Relationships/GroupAchievement/GameCenterAchievementsByIdRelationshipsGroupAchievement.PATCH.7028b57.generated.swift index c632e81e..08164ceb 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/Relationships/GroupAchievement/GameCenterAchievementsByIdRelationshipsGroupAchievement.PATCH.7028b57.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAchievements/ById/Relationships/GroupAchievement/GameCenterAchievementsByIdRelationshipsGroupAchievement.PATCH.7028b57.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterAchievements.ById.Relationships.GroupAchievement { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterAchievements.ById.Relationships.GroupAchievement { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/GameCenterActivitiesById.GET.2aa06fe.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/GameCenterActivitiesById.GET.2aa06fe.generated.swift index 5dfd3eb7..bedf84c7 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/GameCenterActivitiesById.GET.2aa06fe.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/GameCenterActivitiesById.GET.2aa06fe.generated.swift @@ -28,10 +28,18 @@ extension V1.GameCenterActivities.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[gameCenterAchievements]", + value: parameters.fields[.gameCenterAchievements]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterActivities]", value: parameters.fields[.gameCenterActivities]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterActivityVersions]", value: parameters.fields[.gameCenterActivityVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterGroups]", + value: parameters.fields[.gameCenterGroups]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboards]", + value: parameters.fields[.gameCenterLeaderboards]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[achievementsV2]", @@ -109,6 +117,74 @@ extension V1.GameCenterActivities.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct GameCenterAchievements: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var activityProperties: Self { + .init(rawValue: "activityProperties") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var groupAchievement: Self { + .init(rawValue: "groupAchievement") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var points: Self { + .init(rawValue: "points") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var repeatable: Self { + .init(rawValue: "repeatable") + } + + public static var showBeforeEarned: Self { + .init(rawValue: "showBeforeEarned") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterActivities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var achievements: Self { .init(rawValue: "achievements") @@ -221,7 +297,268 @@ extension V1.GameCenterActivities.ById.GET { } } + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterDetails: Self { + .init(rawValue: "gameCenterDetails") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterLeaderboards: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var activityProperties: Self { + .init(rawValue: "activityProperties") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var challenge: Self { + .init(rawValue: "challenge") + } + + public static var defaultFormatter: Self { + .init(rawValue: "defaultFormatter") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var groupLeaderboard: Self { + .init(rawValue: "groupLeaderboard") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var recurrenceDuration: Self { + .init(rawValue: "recurrenceDuration") + } + + public static var recurrenceRule: Self { + .init(rawValue: "recurrenceRule") + } + + public static var recurrenceStartDate: Self { + .init(rawValue: "recurrenceStartDate") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var scoreRangeEnd: Self { + .init(rawValue: "scoreRangeEnd") + } + + public static var scoreRangeStart: Self { + .init(rawValue: "scoreRangeStart") + } + + public static var scoreSortType: Self { + .init(rawValue: "scoreSortType") + } + + public static var submissionType: Self { + .init(rawValue: "submissionType") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public static var visibility: Self { + .init(rawValue: "visibility") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type gameCenterAchievements + public static var gameCenterAchievements: Relation<[GameCenterAchievements]?> { + .init(key: "fields[gameCenterAchievements]") + } + /// the fields to include for returned resources of type gameCenterActivities public static var gameCenterActivities: Relation<[GameCenterActivities]?> { .init(key: "fields[gameCenterActivities]") @@ -232,6 +569,21 @@ extension V1.GameCenterActivities.ById.GET { .init(key: "fields[gameCenterActivityVersions]") } + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + + /// the fields to include for returned resources of type gameCenterGroups + public static var gameCenterGroups: Relation<[GameCenterGroups]?> { + .init(key: "fields[gameCenterGroups]") + } + + /// the fields to include for returned resources of type gameCenterLeaderboards + public static var gameCenterLeaderboards: Relation<[GameCenterLeaderboards]?> { + .init(key: "fields[gameCenterLeaderboards]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Achievements/GameCenterActivitiesByIdRelationshipsAchievements.DELETE.b6340bc.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Achievements/GameCenterActivitiesByIdRelationshipsAchievements.DELETE.b6340bc.generated.swift index 3b087f0c..b32db175 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Achievements/GameCenterActivitiesByIdRelationshipsAchievements.DELETE.b6340bc.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Achievements/GameCenterActivitiesByIdRelationshipsAchievements.DELETE.b6340bc.generated.swift @@ -32,6 +32,7 @@ extension V1.GameCenterActivities.ById.Relationships.Achievements { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -45,6 +46,9 @@ extension V1.GameCenterActivities.ById.Relationships.Achievements { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Achievements/GameCenterActivitiesByIdRelationshipsAchievements.POST.b6340bc.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Achievements/GameCenterActivitiesByIdRelationshipsAchievements.POST.b6340bc.generated.swift index fd63a591..6a6d7bf2 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Achievements/GameCenterActivitiesByIdRelationshipsAchievements.POST.b6340bc.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Achievements/GameCenterActivitiesByIdRelationshipsAchievements.POST.b6340bc.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterActivities.ById.Relationships.Achievements { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterActivities.ById.Relationships.Achievements { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/AchievementsV2/GameCenterActivitiesByIdRelationshipsAchievementsV2.DELETE.1955bea.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/AchievementsV2/GameCenterActivitiesByIdRelationshipsAchievementsV2.DELETE.1955bea.generated.swift index 104420e8..77d8a577 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/AchievementsV2/GameCenterActivitiesByIdRelationshipsAchievementsV2.DELETE.1955bea.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/AchievementsV2/GameCenterActivitiesByIdRelationshipsAchievementsV2.DELETE.1955bea.generated.swift @@ -31,6 +31,7 @@ extension V1.GameCenterActivities.ById.Relationships.AchievementsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.GameCenterActivities.ById.Relationships.AchievementsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/AchievementsV2/GameCenterActivitiesByIdRelationshipsAchievementsV2.POST.1955bea.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/AchievementsV2/GameCenterActivitiesByIdRelationshipsAchievementsV2.POST.1955bea.generated.swift index a5874bb4..23935743 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/AchievementsV2/GameCenterActivitiesByIdRelationshipsAchievementsV2.POST.1955bea.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/AchievementsV2/GameCenterActivitiesByIdRelationshipsAchievementsV2.POST.1955bea.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterActivities.ById.Relationships.AchievementsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterActivities.ById.Relationships.AchievementsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Leaderboards/GameCenterActivitiesByIdRelationshipsLeaderboards.DELETE.e0742e0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Leaderboards/GameCenterActivitiesByIdRelationshipsLeaderboards.DELETE.e0742e0.generated.swift index 07dedf2c..1330cf86 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Leaderboards/GameCenterActivitiesByIdRelationshipsLeaderboards.DELETE.e0742e0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Leaderboards/GameCenterActivitiesByIdRelationshipsLeaderboards.DELETE.e0742e0.generated.swift @@ -32,6 +32,7 @@ extension V1.GameCenterActivities.ById.Relationships.Leaderboards { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -45,6 +46,9 @@ extension V1.GameCenterActivities.ById.Relationships.Leaderboards { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Leaderboards/GameCenterActivitiesByIdRelationshipsLeaderboards.POST.e0742e0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Leaderboards/GameCenterActivitiesByIdRelationshipsLeaderboards.POST.e0742e0.generated.swift index c0b33eb6..8958445a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Leaderboards/GameCenterActivitiesByIdRelationshipsLeaderboards.POST.e0742e0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/Leaderboards/GameCenterActivitiesByIdRelationshipsLeaderboards.POST.e0742e0.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterActivities.ById.Relationships.Leaderboards { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterActivities.ById.Relationships.Leaderboards { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/LeaderboardsV2/GameCenterActivitiesByIdRelationshipsLeaderboardsV2.DELETE.ee85bbb.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/LeaderboardsV2/GameCenterActivitiesByIdRelationshipsLeaderboardsV2.DELETE.ee85bbb.generated.swift index e2308ae0..0d2d940a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/LeaderboardsV2/GameCenterActivitiesByIdRelationshipsLeaderboardsV2.DELETE.ee85bbb.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/LeaderboardsV2/GameCenterActivitiesByIdRelationshipsLeaderboardsV2.DELETE.ee85bbb.generated.swift @@ -31,6 +31,7 @@ extension V1.GameCenterActivities.ById.Relationships.LeaderboardsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.GameCenterActivities.ById.Relationships.LeaderboardsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/LeaderboardsV2/GameCenterActivitiesByIdRelationshipsLeaderboardsV2.POST.ee85bbb.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/LeaderboardsV2/GameCenterActivitiesByIdRelationshipsLeaderboardsV2.POST.ee85bbb.generated.swift index a2f29dd3..50aa6e93 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/LeaderboardsV2/GameCenterActivitiesByIdRelationshipsLeaderboardsV2.POST.ee85bbb.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivities/ById/Relationships/LeaderboardsV2/GameCenterActivitiesByIdRelationshipsLeaderboardsV2.POST.ee85bbb.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterActivities.ById.Relationships.LeaderboardsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterActivities.ById.Relationships.LeaderboardsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityLocalizations/ById/GameCenterActivityLocalizationsById.GET.498f7b3.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityLocalizations/ById/GameCenterActivityLocalizationsById.GET.498f7b3.generated.swift index 65662a2c..a32f8e1b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityLocalizations/ById/GameCenterActivityLocalizationsById.GET.498f7b3.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityLocalizations/ById/GameCenterActivityLocalizationsById.GET.498f7b3.generated.swift @@ -32,6 +32,8 @@ extension V1.GameCenterActivityLocalizations.ById { value: parameters.fields[.gameCenterActivityImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterActivityLocalizations]", value: parameters.fields[.gameCenterActivityLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterActivityVersions]", + value: parameters.fields[.gameCenterActivityVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -161,6 +163,46 @@ extension V1.GameCenterActivityLocalizations.ById.GET { } } + public struct GameCenterActivityVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var defaultImage: Self { + .init(rawValue: "defaultImage") + } + + public static var fallbackUrl: Self { + .init(rawValue: "fallbackUrl") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterActivityImages public static var gameCenterActivityImages: Relation<[GameCenterActivityImages]?> { @@ -172,6 +214,11 @@ extension V1.GameCenterActivityLocalizations.ById.GET { .init(key: "fields[gameCenterActivityLocalizations]") } + /// the fields to include for returned resources of type gameCenterActivityVersions + public static var gameCenterActivityVersions: Relation<[GameCenterActivityVersions]?> { + .init(key: "fields[gameCenterActivityVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityVersionReleases/ById/GameCenterActivityVersionReleasesById.GET.4df0d43.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityVersionReleases/ById/GameCenterActivityVersionReleasesById.GET.4df0d43.generated.swift index 437566d2..a103b59d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityVersionReleases/ById/GameCenterActivityVersionReleasesById.GET.4df0d43.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityVersionReleases/ById/GameCenterActivityVersionReleasesById.GET.4df0d43.generated.swift @@ -31,6 +31,8 @@ extension V1.GameCenterActivityVersionReleases.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterActivityVersionReleases]", value: parameters.fields[.gameCenterActivityVersionReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterActivityVersions]", + value: parameters.fields[.gameCenterActivityVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -112,12 +114,57 @@ extension V1.GameCenterActivityVersionReleases.ById.GET { } } + public struct GameCenterActivityVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var defaultImage: Self { + .init(rawValue: "defaultImage") + } + + public static var fallbackUrl: Self { + .init(rawValue: "fallbackUrl") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterActivityVersionReleases public static var gameCenterActivityVersionReleases: Relation<[GameCenterActivityVersionReleases]?> { .init(key: "fields[gameCenterActivityVersionReleases]") } + /// the fields to include for returned resources of type gameCenterActivityVersions + public static var gameCenterActivityVersions: Relation<[GameCenterActivityVersions]?> { + .init(key: "fields[gameCenterActivityVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityVersions/ById/GameCenterActivityVersionsById.GET.8b3116f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityVersions/ById/GameCenterActivityVersionsById.GET.8b3116f.generated.swift index 433d4f34..e75fe386 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityVersions/ById/GameCenterActivityVersionsById.GET.8b3116f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterActivityVersions/ById/GameCenterActivityVersionsById.GET.8b3116f.generated.swift @@ -28,10 +28,14 @@ extension V1.GameCenterActivityVersions.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[gameCenterActivities]", + value: parameters.fields[.gameCenterActivities]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterActivityImages]", value: parameters.fields[.gameCenterActivityImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterActivityLocalizations]", value: parameters.fields[.gameCenterActivityLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterActivityVersionReleases]", + value: parameters.fields[.gameCenterActivityVersionReleases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterActivityVersions]", value: parameters.fields[.gameCenterActivityVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -105,6 +109,78 @@ extension V1.GameCenterActivityVersions.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct GameCenterActivities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievements: Self { + .init(rawValue: "achievements") + } + + public static var achievementsV2: Self { + .init(rawValue: "achievementsV2") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var leaderboards: Self { + .init(rawValue: "leaderboards") + } + + public static var leaderboardsV2: Self { + .init(rawValue: "leaderboardsV2") + } + + public static var maximumPlayersCount: Self { + .init(rawValue: "maximumPlayersCount") + } + + public static var minimumPlayersCount: Self { + .init(rawValue: "minimumPlayersCount") + } + + public static var playStyle: Self { + .init(rawValue: "playStyle") + } + + public static var properties: Self { + .init(rawValue: "properties") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var supportsPartyCode: Self { + .init(rawValue: "supportsPartyCode") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterActivityImages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var assetDeliveryState: Self { .init(rawValue: "assetDeliveryState") @@ -169,6 +245,22 @@ extension V1.GameCenterActivityVersions.ById.GET { } } + public struct GameCenterActivityVersionReleases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterActivityVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var activity: Self { .init(rawValue: "activity") @@ -210,6 +302,11 @@ extension V1.GameCenterActivityVersions.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type gameCenterActivities + public static var gameCenterActivities: Relation<[GameCenterActivities]?> { + .init(key: "fields[gameCenterActivities]") + } + /// the fields to include for returned resources of type gameCenterActivityImages public static var gameCenterActivityImages: Relation<[GameCenterActivityImages]?> { .init(key: "fields[gameCenterActivityImages]") @@ -220,6 +317,11 @@ extension V1.GameCenterActivityVersions.ById.GET { .init(key: "fields[gameCenterActivityLocalizations]") } + /// the fields to include for returned resources of type gameCenterActivityVersionReleases + public static var gameCenterActivityVersionReleases: Relation<[GameCenterActivityVersionReleases]?> { + .init(key: "fields[gameCenterActivityVersionReleases]") + } + /// the fields to include for returned resources of type gameCenterActivityVersions public static var gameCenterActivityVersions: Relation<[GameCenterActivityVersions]?> { .init(key: "fields[gameCenterActivityVersions]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAppVersions/ById/Relationships/CompatibilityVersions/GameCenterAppVersionsByIdRelationshipsCompatibilityVersions.DELETE.4d7708b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAppVersions/ById/Relationships/CompatibilityVersions/GameCenterAppVersionsByIdRelationshipsCompatibilityVersions.DELETE.4d7708b.generated.swift index df40685e..68b1e065 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAppVersions/ById/Relationships/CompatibilityVersions/GameCenterAppVersionsByIdRelationshipsCompatibilityVersions.DELETE.4d7708b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAppVersions/ById/Relationships/CompatibilityVersions/GameCenterAppVersionsByIdRelationshipsCompatibilityVersions.DELETE.4d7708b.generated.swift @@ -31,6 +31,7 @@ extension V1.GameCenterAppVersions.ById.Relationships.CompatibilityVersions { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.GameCenterAppVersions.ById.Relationships.CompatibilityVersions { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAppVersions/ById/Relationships/CompatibilityVersions/GameCenterAppVersionsByIdRelationshipsCompatibilityVersions.POST.4d7708b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAppVersions/ById/Relationships/CompatibilityVersions/GameCenterAppVersionsByIdRelationshipsCompatibilityVersions.POST.4d7708b.generated.swift index 64cfe390..1ec15a75 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAppVersions/ById/Relationships/CompatibilityVersions/GameCenterAppVersionsByIdRelationshipsCompatibilityVersions.POST.4d7708b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterAppVersions/ById/Relationships/CompatibilityVersions/GameCenterAppVersionsByIdRelationshipsCompatibilityVersions.POST.4d7708b.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterAppVersions.ById.Relationships.CompatibilityVersions { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterAppVersions.ById.Relationships.CompatibilityVersions { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeLocalizations/ById/GameCenterChallengeLocalizationsById.GET.12ccb9a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeLocalizations/ById/GameCenterChallengeLocalizationsById.GET.12ccb9a.generated.swift index d4f23531..fa4fa833 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeLocalizations/ById/GameCenterChallengeLocalizationsById.GET.12ccb9a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeLocalizations/ById/GameCenterChallengeLocalizationsById.GET.12ccb9a.generated.swift @@ -32,6 +32,8 @@ extension V1.GameCenterChallengeLocalizations.ById { value: parameters.fields[.gameCenterChallengeImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterChallengeLocalizations]", value: parameters.fields[.gameCenterChallengeLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterChallengeVersions]", + value: parameters.fields[.gameCenterChallengeVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -161,6 +163,42 @@ extension V1.GameCenterChallengeLocalizations.ById.GET { } } + public struct GameCenterChallengeVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var challenge: Self { + .init(rawValue: "challenge") + } + + public static var defaultImage: Self { + .init(rawValue: "defaultImage") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterChallengeImages public static var gameCenterChallengeImages: Relation<[GameCenterChallengeImages]?> { @@ -172,6 +210,11 @@ extension V1.GameCenterChallengeLocalizations.ById.GET { .init(key: "fields[gameCenterChallengeLocalizations]") } + /// the fields to include for returned resources of type gameCenterChallengeVersions + public static var gameCenterChallengeVersions: Relation<[GameCenterChallengeVersions]?> { + .init(key: "fields[gameCenterChallengeVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeVersionReleases/ById/GameCenterChallengeVersionReleasesById.GET.da07552.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeVersionReleases/ById/GameCenterChallengeVersionReleasesById.GET.da07552.generated.swift index c22d563a..54ce4786 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeVersionReleases/ById/GameCenterChallengeVersionReleasesById.GET.da07552.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeVersionReleases/ById/GameCenterChallengeVersionReleasesById.GET.da07552.generated.swift @@ -31,6 +31,8 @@ extension V1.GameCenterChallengeVersionReleases.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterChallengeVersionReleases]", value: parameters.fields[.gameCenterChallengeVersionReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterChallengeVersions]", + value: parameters.fields[.gameCenterChallengeVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -112,12 +114,53 @@ extension V1.GameCenterChallengeVersionReleases.ById.GET { } } + public struct GameCenterChallengeVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var challenge: Self { + .init(rawValue: "challenge") + } + + public static var defaultImage: Self { + .init(rawValue: "defaultImage") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterChallengeVersionReleases public static var gameCenterChallengeVersionReleases: Relation<[GameCenterChallengeVersionReleases]?> { .init(key: "fields[gameCenterChallengeVersionReleases]") } + /// the fields to include for returned resources of type gameCenterChallengeVersions + public static var gameCenterChallengeVersions: Relation<[GameCenterChallengeVersions]?> { + .init(key: "fields[gameCenterChallengeVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeVersions/ById/GameCenterChallengeVersionsById.GET.f4c42e2.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeVersions/ById/GameCenterChallengeVersionsById.GET.f4c42e2.generated.swift index 87cc8694..e161419a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeVersions/ById/GameCenterChallengeVersionsById.GET.f4c42e2.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallengeVersions/ById/GameCenterChallengeVersionsById.GET.f4c42e2.generated.swift @@ -32,8 +32,12 @@ extension V1.GameCenterChallengeVersions.ById { value: parameters.fields[.gameCenterChallengeImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterChallengeLocalizations]", value: parameters.fields[.gameCenterChallengeLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterChallengeVersionReleases]", + value: parameters.fields[.gameCenterChallengeVersionReleases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterChallengeVersions]", value: parameters.fields[.gameCenterChallengeVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterChallenges]", + value: parameters.fields[.gameCenterChallenges]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[localizations]", @@ -169,6 +173,22 @@ extension V1.GameCenterChallengeVersions.ById.GET { } } + public struct GameCenterChallengeVersionReleases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterChallengeVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var challenge: Self { .init(rawValue: "challenge") @@ -205,6 +225,58 @@ extension V1.GameCenterChallengeVersions.ById.GET { } } + public struct GameCenterChallenges: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var challengeType: Self { + .init(rawValue: "challengeType") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var leaderboard: Self { + .init(rawValue: "leaderboard") + } + + public static var leaderboardV2: Self { + .init(rawValue: "leaderboardV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var repeatable: Self { + .init(rawValue: "repeatable") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterChallengeImages public static var gameCenterChallengeImages: Relation<[GameCenterChallengeImages]?> { @@ -216,11 +288,21 @@ extension V1.GameCenterChallengeVersions.ById.GET { .init(key: "fields[gameCenterChallengeLocalizations]") } + /// the fields to include for returned resources of type gameCenterChallengeVersionReleases + public static var gameCenterChallengeVersionReleases: Relation<[GameCenterChallengeVersionReleases]?> { + .init(key: "fields[gameCenterChallengeVersionReleases]") + } + /// the fields to include for returned resources of type gameCenterChallengeVersions public static var gameCenterChallengeVersions: Relation<[GameCenterChallengeVersions]?> { .init(key: "fields[gameCenterChallengeVersions]") } + /// the fields to include for returned resources of type gameCenterChallenges + public static var gameCenterChallenges: Relation<[GameCenterChallenges]?> { + .init(key: "fields[gameCenterChallenges]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/GameCenterChallengesById.GET.7dbeef3.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/GameCenterChallengesById.GET.7dbeef3.generated.swift index b8d89c6e..addd0c9c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/GameCenterChallengesById.GET.7dbeef3.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/GameCenterChallengesById.GET.7dbeef3.generated.swift @@ -32,6 +32,12 @@ extension V1.GameCenterChallenges.ById { value: parameters.fields[.gameCenterChallengeVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterChallenges]", value: parameters.fields[.gameCenterChallenges]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterGroups]", + value: parameters.fields[.gameCenterGroups]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboards]", + value: parameters.fields[.gameCenterLeaderboards]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[versions]", @@ -189,6 +195,262 @@ extension V1.GameCenterChallenges.ById.GET { } } + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterDetails: Self { + .init(rawValue: "gameCenterDetails") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterLeaderboards: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var activityProperties: Self { + .init(rawValue: "activityProperties") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var challenge: Self { + .init(rawValue: "challenge") + } + + public static var defaultFormatter: Self { + .init(rawValue: "defaultFormatter") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var groupLeaderboard: Self { + .init(rawValue: "groupLeaderboard") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var recurrenceDuration: Self { + .init(rawValue: "recurrenceDuration") + } + + public static var recurrenceRule: Self { + .init(rawValue: "recurrenceRule") + } + + public static var recurrenceStartDate: Self { + .init(rawValue: "recurrenceStartDate") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var scoreRangeEnd: Self { + .init(rawValue: "scoreRangeEnd") + } + + public static var scoreRangeStart: Self { + .init(rawValue: "scoreRangeStart") + } + + public static var scoreSortType: Self { + .init(rawValue: "scoreSortType") + } + + public static var submissionType: Self { + .init(rawValue: "submissionType") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public static var visibility: Self { + .init(rawValue: "visibility") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterChallengeVersions public static var gameCenterChallengeVersions: Relation<[GameCenterChallengeVersions]?> { @@ -200,6 +462,21 @@ extension V1.GameCenterChallenges.ById.GET { .init(key: "fields[gameCenterChallenges]") } + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + + /// the fields to include for returned resources of type gameCenterGroups + public static var gameCenterGroups: Relation<[GameCenterGroups]?> { + .init(key: "fields[gameCenterGroups]") + } + + /// the fields to include for returned resources of type gameCenterLeaderboards + public static var gameCenterLeaderboards: Relation<[GameCenterLeaderboards]?> { + .init(key: "fields[gameCenterLeaderboards]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/Relationships/Leaderboard/GameCenterChallengesByIdRelationshipsLeaderboard.PATCH.b83f437.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/Relationships/Leaderboard/GameCenterChallengesByIdRelationshipsLeaderboard.PATCH.b83f437.generated.swift index d4de724e..79e13ab9 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/Relationships/Leaderboard/GameCenterChallengesByIdRelationshipsLeaderboard.PATCH.b83f437.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/Relationships/Leaderboard/GameCenterChallengesByIdRelationshipsLeaderboard.PATCH.b83f437.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterChallenges.ById.Relationships.Leaderboard { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterChallenges.ById.Relationships.Leaderboard { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/Relationships/LeaderboardV2/GameCenterChallengesByIdRelationshipsLeaderboardV2.PATCH.171990f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/Relationships/LeaderboardV2/GameCenterChallengesByIdRelationshipsLeaderboardV2.PATCH.171990f.generated.swift index cb3fe286..2ec9299f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/Relationships/LeaderboardV2/GameCenterChallengesByIdRelationshipsLeaderboardV2.PATCH.171990f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterChallenges/ById/Relationships/LeaderboardV2/GameCenterChallengesByIdRelationshipsLeaderboardV2.PATCH.171990f.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterChallenges.ById.Relationships.LeaderboardV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterChallenges.ById.Relationships.LeaderboardV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/GameCenterDetailsById.GET.2adb42c.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/GameCenterDetailsById.GET.2adb42c.generated.swift index 00cef66e..8f9494c8 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/GameCenterDetailsById.GET.2adb42c.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/GameCenterDetailsById.GET.2adb42c.generated.swift @@ -28,6 +28,10 @@ extension V1.GameCenterDetails.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appStoreVersions]", + value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterAchievementReleases]", value: parameters.fields[.gameCenterAchievementReleases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterAchievements]", @@ -151,6 +155,346 @@ extension V1.GameCenterDetails.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var alternativeDistributionPackage: Self { + .init(rawValue: "alternativeDistributionPackage") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appStoreReviewDetail: Self { + .init(rawValue: "appStoreReviewDetail") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var appStoreVersionExperiments: Self { + .init(rawValue: "appStoreVersionExperiments") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersionLocalizations: Self { + .init(rawValue: "appStoreVersionLocalizations") + } + + public static var appStoreVersionPhasedRelease: Self { + .init(rawValue: "appStoreVersionPhasedRelease") + } + + public static var appStoreVersionSubmission: Self { + .init(rawValue: "appStoreVersionSubmission") + } + + public static var appVersionState: Self { + .init(rawValue: "appVersionState") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var copyright: Self { + .init(rawValue: "copyright") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var downloadable: Self { + .init(rawValue: "downloadable") + } + + public static var earliestReleaseDate: Self { + .init(rawValue: "earliestReleaseDate") + } + + public static var gameCenterAppVersion: Self { + .init(rawValue: "gameCenterAppVersion") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var releaseType: Self { + .init(rawValue: "releaseType") + } + + public static var reviewType: Self { + .init(rawValue: "reviewType") + } + + public static var routingAppCoverage: Self { + .init(rawValue: "routingAppCoverage") + } + + public static var usesIdfa: Self { + .init(rawValue: "usesIdfa") + } + + public static var versionString: Self { + .init(rawValue: "versionString") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterAchievementReleases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var gameCenterAchievement: Self { .init(rawValue: "gameCenterAchievement") @@ -776,6 +1120,16 @@ extension V1.GameCenterDetails.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type appStoreVersions + public static var appStoreVersions: Relation<[AppStoreVersions]?> { + .init(key: "fields[appStoreVersions]") + } + + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type gameCenterAchievementReleases public static var gameCenterAchievementReleases: Relation<[GameCenterAchievementReleases]?> { .init(key: "fields[gameCenterAchievementReleases]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/ChallengesMinimumPlatformVersions/GameCenterDetailsByIdRelationshipsChallengesMinimumPlatformVersions.PATCH.269e67e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/ChallengesMinimumPlatformVersions/GameCenterDetailsByIdRelationshipsChallengesMinimumPlatformVersions.PATCH.269e67e.generated.swift index 4b232c03..bdbcfa8a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/ChallengesMinimumPlatformVersions/GameCenterDetailsByIdRelationshipsChallengesMinimumPlatformVersions.PATCH.269e67e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/ChallengesMinimumPlatformVersions/GameCenterDetailsByIdRelationshipsChallengesMinimumPlatformVersions.PATCH.269e67e.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterDetails.ById.Relationships.ChallengesMinimumPlatformVersi return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterDetails.ById.Relationships.ChallengesMinimumPlatformVersi } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterAchievements/GameCenterDetailsByIdRelationshipsGameCenterAchievements.PATCH.f55ff27.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterAchievements/GameCenterDetailsByIdRelationshipsGameCenterAchievements.PATCH.f55ff27.generated.swift index 4f748062..b83c94cc 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterAchievements/GameCenterDetailsByIdRelationshipsGameCenterAchievements.PATCH.f55ff27.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterAchievements/GameCenterDetailsByIdRelationshipsGameCenterAchievements.PATCH.f55ff27.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterAchievements { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterAchievements { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterAchievementsV2/GameCenterDetailsByIdRelationshipsGameCenterAchievementsV2.PATCH.26acd52.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterAchievementsV2/GameCenterDetailsByIdRelationshipsGameCenterAchievementsV2.PATCH.26acd52.generated.swift index 25e7906f..2de0d195 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterAchievementsV2/GameCenterDetailsByIdRelationshipsGameCenterAchievementsV2.PATCH.26acd52.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterAchievementsV2/GameCenterDetailsByIdRelationshipsGameCenterAchievementsV2.PATCH.26acd52.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterAchievementsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterAchievementsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardSets/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardSets.PATCH.dfb5b36.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardSets/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardSets.PATCH.dfb5b36.generated.swift index 29b9086c..4b900255 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardSets/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardSets.PATCH.dfb5b36.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardSets/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardSets.PATCH.dfb5b36.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterLeaderboardSets { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterLeaderboardSets { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardSetsV2/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardSetsV2.PATCH.068b82f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardSetsV2/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardSetsV2.PATCH.068b82f.generated.swift index 6d385275..28354f57 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardSetsV2/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardSetsV2.PATCH.068b82f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardSetsV2/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardSetsV2.PATCH.068b82f.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterLeaderboardSetsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterLeaderboardSetsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboards/GameCenterDetailsByIdRelationshipsGameCenterLeaderboards.PATCH.8c64c98.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboards/GameCenterDetailsByIdRelationshipsGameCenterLeaderboards.PATCH.8c64c98.generated.swift index d0d031bd..3e59edea 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboards/GameCenterDetailsByIdRelationshipsGameCenterLeaderboards.PATCH.8c64c98.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboards/GameCenterDetailsByIdRelationshipsGameCenterLeaderboards.PATCH.8c64c98.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterLeaderboards { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterLeaderboards { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardsV2/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardsV2.PATCH.d263324.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardsV2/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardsV2.PATCH.d263324.generated.swift index 94381d87..0cc04eed 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardsV2/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardsV2.PATCH.d263324.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterDetails/ById/Relationships/GameCenterLeaderboardsV2/GameCenterDetailsByIdRelationshipsGameCenterLeaderboardsV2.PATCH.d263324.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterLeaderboardsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterDetails.ById.Relationships.GameCenterLeaderboardsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.DELETE.085e87f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.DELETE.085e87f.generated.swift index 34a1f3c4..2aeaf834 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.DELETE.085e87f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.DELETE.085e87f.generated.swift @@ -32,6 +32,7 @@ extension V1.GameCenterEnabledVersions.ById.Relationships.CompatibleVersions { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -45,6 +46,9 @@ extension V1.GameCenterEnabledVersions.ById.Relationships.CompatibleVersions { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.PATCH.085e87f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.PATCH.085e87f.generated.swift index 9039f6ce..f68a4d98 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.PATCH.085e87f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.PATCH.085e87f.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterEnabledVersions.ById.Relationships.CompatibleVersions { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterEnabledVersions.ById.Relationships.CompatibleVersions { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.POST.085e87f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.POST.085e87f.generated.swift index 7e6da592..9d7cbd39 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.POST.085e87f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterEnabledVersions/ById/Relationships/CompatibleVersions/GameCenterEnabledVersionsByIdRelationshipsCompatibleVersions.POST.085e87f.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterEnabledVersions.ById.Relationships.CompatibleVersions { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterEnabledVersions.ById.Relationships.CompatibleVersions { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterAchievements/GameCenterGroupsByIdRelationshipsGameCenterAchievements.PATCH.67b0033.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterAchievements/GameCenterGroupsByIdRelationshipsGameCenterAchievements.PATCH.67b0033.generated.swift index ad0cd4fe..1eb328d2 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterAchievements/GameCenterGroupsByIdRelationshipsGameCenterAchievements.PATCH.67b0033.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterAchievements/GameCenterGroupsByIdRelationshipsGameCenterAchievements.PATCH.67b0033.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterAchievements { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterAchievements { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterAchievementsV2/GameCenterGroupsByIdRelationshipsGameCenterAchievementsV2.PATCH.39a3b96.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterAchievementsV2/GameCenterGroupsByIdRelationshipsGameCenterAchievementsV2.PATCH.39a3b96.generated.swift index a396d05b..0602179c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterAchievementsV2/GameCenterGroupsByIdRelationshipsGameCenterAchievementsV2.PATCH.39a3b96.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterAchievementsV2/GameCenterGroupsByIdRelationshipsGameCenterAchievementsV2.PATCH.39a3b96.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterAchievementsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterAchievementsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardSets/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardSets.PATCH.62648bd.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardSets/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardSets.PATCH.62648bd.generated.swift index 2b5e4377..71b76eaa 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardSets/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardSets.PATCH.62648bd.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardSets/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardSets.PATCH.62648bd.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterLeaderboardSets { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterLeaderboardSets { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardSetsV2/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardSetsV2.PATCH.b88e6a3.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardSetsV2/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardSetsV2.PATCH.b88e6a3.generated.swift index e2b0a7be..bd93093c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardSetsV2/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardSetsV2.PATCH.b88e6a3.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardSetsV2/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardSetsV2.PATCH.b88e6a3.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterLeaderboardSetsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterLeaderboardSetsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboards/GameCenterGroupsByIdRelationshipsGameCenterLeaderboards.PATCH.204da09.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboards/GameCenterGroupsByIdRelationshipsGameCenterLeaderboards.PATCH.204da09.generated.swift index 390660de..a5dc42e6 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboards/GameCenterGroupsByIdRelationshipsGameCenterLeaderboards.PATCH.204da09.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboards/GameCenterGroupsByIdRelationshipsGameCenterLeaderboards.PATCH.204da09.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterLeaderboards { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterLeaderboards { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardsV2/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardsV2.PATCH.61a454a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardsV2/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardsV2.PATCH.61a454a.generated.swift index f8decfb2..2d116347 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardsV2/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardsV2.PATCH.61a454a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterGroups/ById/Relationships/GameCenterLeaderboardsV2/GameCenterGroupsByIdRelationshipsGameCenterLeaderboardsV2.PATCH.61a454a.generated.swift @@ -46,6 +46,7 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterLeaderboardsV2 { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.GameCenterGroups.ById.Relationships.GameCenterLeaderboardsV2 { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardImages/ById/GameCenterLeaderboardImagesById.GET.4371df3.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardImages/ById/GameCenterLeaderboardImagesById.GET.4371df3.generated.swift index 2aa10386..bec1329e 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardImages/ById/GameCenterLeaderboardImagesById.GET.4371df3.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardImages/ById/GameCenterLeaderboardImagesById.GET.4371df3.generated.swift @@ -31,6 +31,8 @@ extension V1.GameCenterLeaderboardImages.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterLeaderboardImages]", value: parameters.fields[.gameCenterLeaderboardImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardLocalizations]", + value: parameters.fields[.gameCenterLeaderboardLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -132,12 +134,61 @@ extension V1.GameCenterLeaderboardImages.ById.GET { } } + public struct GameCenterLeaderboardLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var description: Self { + .init(rawValue: "description") + } + + public static var formatterOverride: Self { + .init(rawValue: "formatterOverride") + } + + public static var formatterSuffix: Self { + .init(rawValue: "formatterSuffix") + } + + public static var formatterSuffixSingular: Self { + .init(rawValue: "formatterSuffixSingular") + } + + public static var gameCenterLeaderboard: Self { + .init(rawValue: "gameCenterLeaderboard") + } + + public static var gameCenterLeaderboardImage: Self { + .init(rawValue: "gameCenterLeaderboardImage") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardImages public static var gameCenterLeaderboardImages: Relation<[GameCenterLeaderboardImages]?> { .init(key: "fields[gameCenterLeaderboardImages]") } + /// the fields to include for returned resources of type gameCenterLeaderboardLocalizations + public static var gameCenterLeaderboardLocalizations: Relation<[GameCenterLeaderboardLocalizations]?> { + .init(key: "fields[gameCenterLeaderboardLocalizations]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardLocalizations/ById/GameCenterLeaderboardLocalizationsById.GET.2430b72.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardLocalizations/ById/GameCenterLeaderboardLocalizationsById.GET.2430b72.generated.swift index 1974138e..8ee25603 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardLocalizations/ById/GameCenterLeaderboardLocalizationsById.GET.2430b72.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardLocalizations/ById/GameCenterLeaderboardLocalizationsById.GET.2430b72.generated.swift @@ -33,6 +33,8 @@ extension V1.GameCenterLeaderboardLocalizations.ById { value: parameters.fields[.gameCenterLeaderboardImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardLocalizations]", value: parameters.fields[.gameCenterLeaderboardLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboards]", + value: parameters.fields[.gameCenterLeaderboards]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -178,6 +180,102 @@ extension V1.GameCenterLeaderboardLocalizations.ById.GET { } } + public struct GameCenterLeaderboards: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var activityProperties: Self { + .init(rawValue: "activityProperties") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var challenge: Self { + .init(rawValue: "challenge") + } + + public static var defaultFormatter: Self { + .init(rawValue: "defaultFormatter") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var groupLeaderboard: Self { + .init(rawValue: "groupLeaderboard") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var recurrenceDuration: Self { + .init(rawValue: "recurrenceDuration") + } + + public static var recurrenceRule: Self { + .init(rawValue: "recurrenceRule") + } + + public static var recurrenceStartDate: Self { + .init(rawValue: "recurrenceStartDate") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var scoreRangeEnd: Self { + .init(rawValue: "scoreRangeEnd") + } + + public static var scoreRangeStart: Self { + .init(rawValue: "scoreRangeStart") + } + + public static var scoreSortType: Self { + .init(rawValue: "scoreSortType") + } + + public static var submissionType: Self { + .init(rawValue: "submissionType") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var visibility: Self { + .init(rawValue: "visibility") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardImages public static var gameCenterLeaderboardImages: Relation<[GameCenterLeaderboardImages]?> { @@ -189,6 +287,11 @@ extension V1.GameCenterLeaderboardLocalizations.ById.GET { .init(key: "fields[gameCenterLeaderboardLocalizations]") } + /// the fields to include for returned resources of type gameCenterLeaderboards + public static var gameCenterLeaderboards: Relation<[GameCenterLeaderboards]?> { + .init(key: "fields[gameCenterLeaderboards]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardReleases/ById/GameCenterLeaderboardReleasesById.GET.a2786c0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardReleases/ById/GameCenterLeaderboardReleasesById.GET.a2786c0.generated.swift index f7cf54fe..c428ac34 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardReleases/ById/GameCenterLeaderboardReleasesById.GET.a2786c0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardReleases/ById/GameCenterLeaderboardReleasesById.GET.a2786c0.generated.swift @@ -29,8 +29,12 @@ extension V1.GameCenterLeaderboardReleases.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardReleases]", value: parameters.fields[.gameCenterLeaderboardReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboards]", + value: parameters.fields[.gameCenterLeaderboards]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -96,6 +100,110 @@ extension V1.GameCenterLeaderboardReleases.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterLeaderboardReleases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var gameCenterDetail: Self { .init(rawValue: "gameCenterDetail") @@ -120,12 +228,118 @@ extension V1.GameCenterLeaderboardReleases.ById.GET { } } + public struct GameCenterLeaderboards: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var activityProperties: Self { + .init(rawValue: "activityProperties") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var challenge: Self { + .init(rawValue: "challenge") + } + + public static var defaultFormatter: Self { + .init(rawValue: "defaultFormatter") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var groupLeaderboard: Self { + .init(rawValue: "groupLeaderboard") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var recurrenceDuration: Self { + .init(rawValue: "recurrenceDuration") + } + + public static var recurrenceRule: Self { + .init(rawValue: "recurrenceRule") + } + + public static var recurrenceStartDate: Self { + .init(rawValue: "recurrenceStartDate") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var scoreRangeEnd: Self { + .init(rawValue: "scoreRangeEnd") + } + + public static var scoreRangeStart: Self { + .init(rawValue: "scoreRangeStart") + } + + public static var scoreSortType: Self { + .init(rawValue: "scoreSortType") + } + + public static var submissionType: Self { + .init(rawValue: "submissionType") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var visibility: Self { + .init(rawValue: "visibility") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + /// the fields to include for returned resources of type gameCenterLeaderboardReleases public static var gameCenterLeaderboardReleases: Relation<[GameCenterLeaderboardReleases]?> { .init(key: "fields[gameCenterLeaderboardReleases]") } + /// the fields to include for returned resources of type gameCenterLeaderboards + public static var gameCenterLeaderboards: Relation<[GameCenterLeaderboards]?> { + .init(key: "fields[gameCenterLeaderboards]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetImages/ById/GameCenterLeaderboardSetImagesById.GET.7256c04.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetImages/ById/GameCenterLeaderboardSetImagesById.GET.7256c04.generated.swift index 2fc6a58c..53595450 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetImages/ById/GameCenterLeaderboardSetImagesById.GET.7256c04.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetImages/ById/GameCenterLeaderboardSetImagesById.GET.7256c04.generated.swift @@ -31,6 +31,8 @@ extension V1.GameCenterLeaderboardSetImages.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterLeaderboardSetImages]", value: parameters.fields[.gameCenterLeaderboardSetImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardSetLocalizations]", + value: parameters.fields[.gameCenterLeaderboardSetLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -132,12 +134,45 @@ extension V1.GameCenterLeaderboardSetImages.ById.GET { } } + public struct GameCenterLeaderboardSetLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterLeaderboardSet: Self { + .init(rawValue: "gameCenterLeaderboardSet") + } + + public static var gameCenterLeaderboardSetImage: Self { + .init(rawValue: "gameCenterLeaderboardSetImage") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardSetImages public static var gameCenterLeaderboardSetImages: Relation<[GameCenterLeaderboardSetImages]?> { .init(key: "fields[gameCenterLeaderboardSetImages]") } + /// the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations + public static var gameCenterLeaderboardSetLocalizations: Relation<[GameCenterLeaderboardSetLocalizations]?> { + .init(key: "fields[gameCenterLeaderboardSetLocalizations]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetLocalizations/ById/GameCenterLeaderboardSetLocalizationsById.GET.34b0638.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetLocalizations/ById/GameCenterLeaderboardSetLocalizationsById.GET.34b0638.generated.swift index 03fae5b3..f0b06c4c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetLocalizations/ById/GameCenterLeaderboardSetLocalizationsById.GET.34b0638.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetLocalizations/ById/GameCenterLeaderboardSetLocalizationsById.GET.34b0638.generated.swift @@ -33,6 +33,8 @@ extension V1.GameCenterLeaderboardSetLocalizations.ById { value: parameters.fields[.gameCenterLeaderboardSetImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardSetLocalizations]", value: parameters.fields[.gameCenterLeaderboardSetLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardSets]", + value: parameters.fields[.gameCenterLeaderboardSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -162,6 +164,50 @@ extension V1.GameCenterLeaderboardSetLocalizations.ById.GET { } } + public struct GameCenterLeaderboardSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var groupLeaderboardSet: Self { + .init(rawValue: "groupLeaderboardSet") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardSetImages public static var gameCenterLeaderboardSetImages: Relation<[GameCenterLeaderboardSetImages]?> { @@ -173,6 +219,11 @@ extension V1.GameCenterLeaderboardSetLocalizations.ById.GET { .init(key: "fields[gameCenterLeaderboardSetLocalizations]") } + /// the fields to include for returned resources of type gameCenterLeaderboardSets + public static var gameCenterLeaderboardSets: Relation<[GameCenterLeaderboardSets]?> { + .init(key: "fields[gameCenterLeaderboardSets]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetReleases/ById/GameCenterLeaderboardSetReleasesById.GET.76004f9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetReleases/ById/GameCenterLeaderboardSetReleasesById.GET.76004f9.generated.swift index d82119b8..4c2b425d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetReleases/ById/GameCenterLeaderboardSetReleasesById.GET.76004f9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSetReleases/ById/GameCenterLeaderboardSetReleasesById.GET.76004f9.generated.swift @@ -29,8 +29,12 @@ extension V1.GameCenterLeaderboardSetReleases.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardSetReleases]", value: parameters.fields[.gameCenterLeaderboardSetReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardSets]", + value: parameters.fields[.gameCenterLeaderboardSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -96,6 +100,110 @@ extension V1.GameCenterLeaderboardSetReleases.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterLeaderboardSetReleases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var gameCenterDetail: Self { .init(rawValue: "gameCenterDetail") @@ -120,12 +228,66 @@ extension V1.GameCenterLeaderboardSetReleases.ById.GET { } } + public struct GameCenterLeaderboardSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var groupLeaderboardSet: Self { + .init(rawValue: "groupLeaderboardSet") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + /// the fields to include for returned resources of type gameCenterLeaderboardSetReleases public static var gameCenterLeaderboardSetReleases: Relation<[GameCenterLeaderboardSetReleases]?> { .init(key: "fields[gameCenterLeaderboardSetReleases]") } + /// the fields to include for returned resources of type gameCenterLeaderboardSets + public static var gameCenterLeaderboardSets: Relation<[GameCenterLeaderboardSets]?> { + .init(key: "fields[gameCenterLeaderboardSets]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/GameCenterLeaderboardSetsById.GET.6529e2e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/GameCenterLeaderboardSetsById.GET.6529e2e.generated.swift index c874f35b..9cbd5a3b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/GameCenterLeaderboardSetsById.GET.6529e2e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/GameCenterLeaderboardSetsById.GET.6529e2e.generated.swift @@ -29,6 +29,10 @@ extension V1.GameCenterLeaderboardSets.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterGroups]", + value: parameters.fields[.gameCenterGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardSetLocalizations]", value: parameters.fields[.gameCenterLeaderboardSetLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardSetReleases]", @@ -110,6 +114,162 @@ extension V1.GameCenterLeaderboardSets.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterDetails: Self { + .init(rawValue: "gameCenterDetails") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterLeaderboardSetLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var gameCenterLeaderboardSet: Self { .init(rawValue: "gameCenterLeaderboardSet") @@ -303,6 +463,16 @@ extension V1.GameCenterLeaderboardSets.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + + /// the fields to include for returned resources of type gameCenterGroups + public static var gameCenterGroups: Relation<[GameCenterGroups]?> { + .init(key: "fields[gameCenterGroups]") + } + /// the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations public static var gameCenterLeaderboardSetLocalizations: Relation<[GameCenterLeaderboardSetLocalizations]?> { .init(key: "fields[gameCenterLeaderboardSetLocalizations]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.DELETE.048f1ad.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.DELETE.048f1ad.generated.swift index 4de389c1..351e4e2d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.DELETE.048f1ad.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.DELETE.048f1ad.generated.swift @@ -32,6 +32,7 @@ extension V1.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -45,6 +46,9 @@ extension V1.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.PATCH.048f1ad.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.PATCH.048f1ad.generated.swift index 1ad6c80a..4049c8d4 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.PATCH.048f1ad.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.PATCH.048f1ad.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.POST.048f1ad.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.POST.048f1ad.generated.swift index d90715ea..49406490 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.POST.048f1ad.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.POST.048f1ad.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GroupLeaderboardSet/GameCenterLeaderboardSetsByIdRelationshipsGroupLeaderboardSet.PATCH.67e0c36.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GroupLeaderboardSet/GameCenterLeaderboardSetsByIdRelationshipsGroupLeaderboardSet.PATCH.67e0c36.generated.swift index b6ebb68c..aee45920 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GroupLeaderboardSet/GameCenterLeaderboardSetsByIdRelationshipsGroupLeaderboardSet.PATCH.67e0c36.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboardSets/ById/Relationships/GroupLeaderboardSet/GameCenterLeaderboardSetsByIdRelationshipsGroupLeaderboardSet.PATCH.67e0c36.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterLeaderboardSets.ById.Relationships.GroupLeaderboardSet { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterLeaderboardSets.ById.Relationships.GroupLeaderboardSet { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/GameCenterLeaderboardsById.GET.3a3f5a7.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/GameCenterLeaderboardsById.GET.3a3f5a7.generated.swift index bcaf3b16..ea4a6d2f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/GameCenterLeaderboardsById.GET.3a3f5a7.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/GameCenterLeaderboardsById.GET.3a3f5a7.generated.swift @@ -29,10 +29,20 @@ extension V1.GameCenterLeaderboards.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[gameCenterActivities]", + value: parameters.fields[.gameCenterActivities]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterChallenges]", + value: parameters.fields[.gameCenterChallenges]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterGroups]", + value: parameters.fields[.gameCenterGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardLocalizations]", value: parameters.fields[.gameCenterLeaderboardLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardReleases]", value: parameters.fields[.gameCenterLeaderboardReleases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardSets]", + value: parameters.fields[.gameCenterLeaderboardSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboards]", value: parameters.fields[.gameCenterLeaderboards]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -108,6 +118,286 @@ extension V1.GameCenterLeaderboards.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct GameCenterActivities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievements: Self { + .init(rawValue: "achievements") + } + + public static var achievementsV2: Self { + .init(rawValue: "achievementsV2") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var leaderboards: Self { + .init(rawValue: "leaderboards") + } + + public static var leaderboardsV2: Self { + .init(rawValue: "leaderboardsV2") + } + + public static var maximumPlayersCount: Self { + .init(rawValue: "maximumPlayersCount") + } + + public static var minimumPlayersCount: Self { + .init(rawValue: "minimumPlayersCount") + } + + public static var playStyle: Self { + .init(rawValue: "playStyle") + } + + public static var properties: Self { + .init(rawValue: "properties") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var supportsPartyCode: Self { + .init(rawValue: "supportsPartyCode") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterChallenges: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var challengeType: Self { + .init(rawValue: "challengeType") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var leaderboard: Self { + .init(rawValue: "leaderboard") + } + + public static var leaderboardV2: Self { + .init(rawValue: "leaderboardV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var repeatable: Self { + .init(rawValue: "repeatable") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterDetails: Self { + .init(rawValue: "gameCenterDetails") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterLeaderboardLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var description: Self { .init(rawValue: "description") @@ -176,6 +466,50 @@ extension V1.GameCenterLeaderboards.ById.GET { } } + public struct GameCenterLeaderboardSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var groupLeaderboardSet: Self { + .init(rawValue: "groupLeaderboardSet") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var releases: Self { + .init(rawValue: "releases") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterLeaderboards: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var activity: Self { .init(rawValue: "activity") @@ -273,6 +607,26 @@ extension V1.GameCenterLeaderboards.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type gameCenterActivities + public static var gameCenterActivities: Relation<[GameCenterActivities]?> { + .init(key: "fields[gameCenterActivities]") + } + + /// the fields to include for returned resources of type gameCenterChallenges + public static var gameCenterChallenges: Relation<[GameCenterChallenges]?> { + .init(key: "fields[gameCenterChallenges]") + } + + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + + /// the fields to include for returned resources of type gameCenterGroups + public static var gameCenterGroups: Relation<[GameCenterGroups]?> { + .init(key: "fields[gameCenterGroups]") + } + /// the fields to include for returned resources of type gameCenterLeaderboardLocalizations public static var gameCenterLeaderboardLocalizations: Relation<[GameCenterLeaderboardLocalizations]?> { .init(key: "fields[gameCenterLeaderboardLocalizations]") @@ -283,6 +637,11 @@ extension V1.GameCenterLeaderboards.ById.GET { .init(key: "fields[gameCenterLeaderboardReleases]") } + /// the fields to include for returned resources of type gameCenterLeaderboardSets + public static var gameCenterLeaderboardSets: Relation<[GameCenterLeaderboardSets]?> { + .init(key: "fields[gameCenterLeaderboardSets]") + } + /// the fields to include for returned resources of type gameCenterLeaderboards public static var gameCenterLeaderboards: Relation<[GameCenterLeaderboards]?> { .init(key: "fields[gameCenterLeaderboards]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/Activity/GameCenterLeaderboardsByIdRelationshipsActivity.PATCH.336d35f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/Activity/GameCenterLeaderboardsByIdRelationshipsActivity.PATCH.336d35f.generated.swift index 5f30b23d..a283e873 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/Activity/GameCenterLeaderboardsByIdRelationshipsActivity.PATCH.336d35f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/Activity/GameCenterLeaderboardsByIdRelationshipsActivity.PATCH.336d35f.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterLeaderboards.ById.Relationships.Activity { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterLeaderboards.ById.Relationships.Activity { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/Challenge/GameCenterLeaderboardsByIdRelationshipsChallenge.PATCH.9533bb8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/Challenge/GameCenterLeaderboardsByIdRelationshipsChallenge.PATCH.9533bb8.generated.swift index b8662214..4cc12cc3 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/Challenge/GameCenterLeaderboardsByIdRelationshipsChallenge.PATCH.9533bb8.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/Challenge/GameCenterLeaderboardsByIdRelationshipsChallenge.PATCH.9533bb8.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterLeaderboards.ById.Relationships.Challenge { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterLeaderboards.ById.Relationships.Challenge { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/GroupLeaderboard/GameCenterLeaderboardsByIdRelationshipsGroupLeaderboard.PATCH.6b8f8be.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/GroupLeaderboard/GameCenterLeaderboardsByIdRelationshipsGroupLeaderboard.PATCH.6b8f8be.generated.swift index cf1c8b44..f6d14497 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/GroupLeaderboard/GameCenterLeaderboardsByIdRelationshipsGroupLeaderboard.PATCH.6b8f8be.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterLeaderboards/ById/Relationships/GroupLeaderboard/GameCenterLeaderboardsByIdRelationshipsGroupLeaderboard.PATCH.6b8f8be.generated.swift @@ -47,6 +47,7 @@ extension V1.GameCenterLeaderboards.ById.Relationships.GroupLeaderboard { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -60,6 +61,9 @@ extension V1.GameCenterLeaderboards.ById.Relationships.GroupLeaderboard { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterMatchmakingQueues/ById/GameCenterMatchmakingQueuesById.GET.40e9852.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterMatchmakingQueues/ById/GameCenterMatchmakingQueuesById.GET.40e9852.generated.swift index 9c4bb734..72abdadc 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterMatchmakingQueues/ById/GameCenterMatchmakingQueuesById.GET.40e9852.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterMatchmakingQueues/ById/GameCenterMatchmakingQueuesById.GET.40e9852.generated.swift @@ -30,6 +30,8 @@ extension V1.GameCenterMatchmakingQueues.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterMatchmakingQueues]", value: parameters.fields[.gameCenterMatchmakingQueues]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterMatchmakingRuleSets]", + value: parameters.fields[.gameCenterMatchmakingRuleSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -123,12 +125,57 @@ extension V1.GameCenterMatchmakingQueues.ById.GET { } } + public struct GameCenterMatchmakingRuleSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var matchmakingQueues: Self { + .init(rawValue: "matchmakingQueues") + } + + public static var maxPlayers: Self { + .init(rawValue: "maxPlayers") + } + + public static var minPlayers: Self { + .init(rawValue: "minPlayers") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var ruleLanguageVersion: Self { + .init(rawValue: "ruleLanguageVersion") + } + + public static var rules: Self { + .init(rawValue: "rules") + } + + public static var teams: Self { + .init(rawValue: "teams") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterMatchmakingQueues public static var gameCenterMatchmakingQueues: Relation<[GameCenterMatchmakingQueues]?> { .init(key: "fields[gameCenterMatchmakingQueues]") } + /// the fields to include for returned resources of type gameCenterMatchmakingRuleSets + public static var gameCenterMatchmakingRuleSets: Relation<[GameCenterMatchmakingRuleSets]?> { + .init(key: "fields[gameCenterMatchmakingRuleSets]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterMatchmakingQueues/GameCenterMatchmakingQueues.GET.906e511.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterMatchmakingQueues/GameCenterMatchmakingQueues.GET.906e511.generated.swift index 5e5ff9f9..1678337e 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterMatchmakingQueues/GameCenterMatchmakingQueues.GET.906e511.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/GameCenterMatchmakingQueues/GameCenterMatchmakingQueues.GET.906e511.generated.swift @@ -27,6 +27,8 @@ extension V1.GameCenterMatchmakingQueues { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterMatchmakingQueues]", value: parameters.fields[.gameCenterMatchmakingQueues]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterMatchmakingRuleSets]", + value: parameters.fields[.gameCenterMatchmakingRuleSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit", @@ -121,12 +123,57 @@ extension V1.GameCenterMatchmakingQueues.GET { } } + public struct GameCenterMatchmakingRuleSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var matchmakingQueues: Self { + .init(rawValue: "matchmakingQueues") + } + + public static var maxPlayers: Self { + .init(rawValue: "maxPlayers") + } + + public static var minPlayers: Self { + .init(rawValue: "minPlayers") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var ruleLanguageVersion: Self { + .init(rawValue: "ruleLanguageVersion") + } + + public static var rules: Self { + .init(rawValue: "rules") + } + + public static var teams: Self { + .init(rawValue: "teams") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterMatchmakingQueues public static var gameCenterMatchmakingQueues: Relation<[GameCenterMatchmakingQueues]?> { .init(key: "fields[gameCenterMatchmakingQueues]") } + /// the fields to include for returned resources of type gameCenterMatchmakingRuleSets + public static var gameCenterMatchmakingRuleSets: Relation<[GameCenterMatchmakingRuleSets]?> { + .init(key: "fields[gameCenterMatchmakingRuleSets]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseAppStoreReviewScreenshots/ById/InAppPurchaseAppStoreReviewScreenshotsById.GET.66cbd18.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseAppStoreReviewScreenshots/ById/InAppPurchaseAppStoreReviewScreenshotsById.GET.66cbd18.generated.swift index 6e8f566d..c1b84dc6 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseAppStoreReviewScreenshots/ById/InAppPurchaseAppStoreReviewScreenshotsById.GET.66cbd18.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseAppStoreReviewScreenshots/ById/InAppPurchaseAppStoreReviewScreenshotsById.GET.66cbd18.generated.swift @@ -30,6 +30,8 @@ extension V1.InAppPurchaseAppStoreReviewScreenshots.ById { components?.queryItems = [ URLQueryItem(name: "fields[inAppPurchaseAppStoreReviewScreenshots]", value: parameters.fields[.inAppPurchaseAppStoreReviewScreenshots]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[inAppPurchases]", + value: parameters.fields[.inAppPurchases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -143,12 +145,93 @@ extension V1.InAppPurchaseAppStoreReviewScreenshots.ById.GET { } } + public struct InAppPurchases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var content: Self { + .init(rawValue: "content") + } + + public static var contentHosting: Self { + .init(rawValue: "contentHosting") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var iapPriceSchedule: Self { + .init(rawValue: "iapPriceSchedule") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var inAppPurchaseAvailability: Self { + .init(rawValue: "inAppPurchaseAvailability") + } + + public static var inAppPurchaseLocalizations: Self { + .init(rawValue: "inAppPurchaseLocalizations") + } + + public static var inAppPurchaseType: Self { + .init(rawValue: "inAppPurchaseType") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots public static var inAppPurchaseAppStoreReviewScreenshots: Relation<[InAppPurchaseAppStoreReviewScreenshots]?> { .init(key: "fields[inAppPurchaseAppStoreReviewScreenshots]") } + /// the fields to include for returned resources of type inAppPurchases + public static var inAppPurchases: Relation<[InAppPurchases]?> { + .init(key: "fields[inAppPurchases]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseContents/ById/InAppPurchaseContentsById.GET.b1b4b4b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseContents/ById/InAppPurchaseContentsById.GET.b1b4b4b.generated.swift index fde85528..ae37c581 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseContents/ById/InAppPurchaseContentsById.GET.b1b4b4b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseContents/ById/InAppPurchaseContentsById.GET.b1b4b4b.generated.swift @@ -30,6 +30,8 @@ extension V1.InAppPurchaseContents.ById { components?.queryItems = [ URLQueryItem(name: "fields[inAppPurchaseContents]", value: parameters.fields[.inAppPurchaseContents]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[inAppPurchases]", + value: parameters.fields[.inAppPurchases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -127,12 +129,93 @@ extension V1.InAppPurchaseContents.ById.GET { } } + public struct InAppPurchases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var content: Self { + .init(rawValue: "content") + } + + public static var contentHosting: Self { + .init(rawValue: "contentHosting") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var iapPriceSchedule: Self { + .init(rawValue: "iapPriceSchedule") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var inAppPurchaseAvailability: Self { + .init(rawValue: "inAppPurchaseAvailability") + } + + public static var inAppPurchaseLocalizations: Self { + .init(rawValue: "inAppPurchaseLocalizations") + } + + public static var inAppPurchaseType: Self { + .init(rawValue: "inAppPurchaseType") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type inAppPurchaseContents public static var inAppPurchaseContents: Relation<[InAppPurchaseContents]?> { .init(key: "fields[inAppPurchaseContents]") } + /// the fields to include for returned resources of type inAppPurchases + public static var inAppPurchases: Relation<[InAppPurchases]?> { + .init(key: "fields[inAppPurchases]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseImages/ById/InAppPurchaseImagesById.GET.9dc78df.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseImages/ById/InAppPurchaseImagesById.GET.9dc78df.generated.swift index 4f225afc..41141666 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseImages/ById/InAppPurchaseImagesById.GET.9dc78df.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseImages/ById/InAppPurchaseImagesById.GET.9dc78df.generated.swift @@ -30,6 +30,8 @@ extension V1.InAppPurchaseImages.ById { components?.queryItems = [ URLQueryItem(name: "fields[inAppPurchaseImages]", value: parameters.fields[.inAppPurchaseImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[inAppPurchases]", + value: parameters.fields[.inAppPurchases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -139,12 +141,93 @@ extension V1.InAppPurchaseImages.ById.GET { } } + public struct InAppPurchases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var content: Self { + .init(rawValue: "content") + } + + public static var contentHosting: Self { + .init(rawValue: "contentHosting") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var iapPriceSchedule: Self { + .init(rawValue: "iapPriceSchedule") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var inAppPurchaseAvailability: Self { + .init(rawValue: "inAppPurchaseAvailability") + } + + public static var inAppPurchaseLocalizations: Self { + .init(rawValue: "inAppPurchaseLocalizations") + } + + public static var inAppPurchaseType: Self { + .init(rawValue: "inAppPurchaseType") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type inAppPurchaseImages public static var inAppPurchaseImages: Relation<[InAppPurchaseImages]?> { .init(key: "fields[inAppPurchaseImages]") } + /// the fields to include for returned resources of type inAppPurchases + public static var inAppPurchases: Relation<[InAppPurchases]?> { + .init(key: "fields[inAppPurchases]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseLocalizations/ById/InAppPurchaseLocalizationsById.GET.36e69d9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseLocalizations/ById/InAppPurchaseLocalizationsById.GET.36e69d9.generated.swift index 2f1e0ee1..014a77fe 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseLocalizations/ById/InAppPurchaseLocalizationsById.GET.36e69d9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseLocalizations/ById/InAppPurchaseLocalizationsById.GET.36e69d9.generated.swift @@ -30,6 +30,8 @@ extension V1.InAppPurchaseLocalizations.ById { components?.queryItems = [ URLQueryItem(name: "fields[inAppPurchaseLocalizations]", value: parameters.fields[.inAppPurchaseLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[inAppPurchases]", + value: parameters.fields[.inAppPurchases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -127,12 +129,93 @@ extension V1.InAppPurchaseLocalizations.ById.GET { } } + public struct InAppPurchases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var content: Self { + .init(rawValue: "content") + } + + public static var contentHosting: Self { + .init(rawValue: "contentHosting") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var iapPriceSchedule: Self { + .init(rawValue: "iapPriceSchedule") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var inAppPurchaseAvailability: Self { + .init(rawValue: "inAppPurchaseAvailability") + } + + public static var inAppPurchaseLocalizations: Self { + .init(rawValue: "inAppPurchaseLocalizations") + } + + public static var inAppPurchaseType: Self { + .init(rawValue: "inAppPurchaseType") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type inAppPurchaseLocalizations public static var inAppPurchaseLocalizations: Relation<[InAppPurchaseLocalizations]?> { .init(key: "fields[inAppPurchaseLocalizations]") } + /// the fields to include for returned resources of type inAppPurchases + public static var inAppPurchases: Relation<[InAppPurchases]?> { + .init(key: "fields[inAppPurchases]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseOfferCodeCustomCodes/ById/InAppPurchaseOfferCodeCustomCodesById.GET.b762498.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseOfferCodeCustomCodes/ById/InAppPurchaseOfferCodeCustomCodesById.GET.b762498.generated.swift index e206aef5..61ef3eba 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseOfferCodeCustomCodes/ById/InAppPurchaseOfferCodeCustomCodesById.GET.b762498.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseOfferCodeCustomCodes/ById/InAppPurchaseOfferCodeCustomCodesById.GET.b762498.generated.swift @@ -28,6 +28,8 @@ extension V1.InAppPurchaseOfferCodeCustomCodes.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[actors]", + value: parameters.fields[.actors]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[inAppPurchaseOfferCodeCustomCodes]", value: parameters.fields[.inAppPurchaseOfferCodeCustomCodes]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,38 @@ extension V1.InAppPurchaseOfferCodeCustomCodes.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Actors: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var actorType: Self { + .init(rawValue: "actorType") + } + + public static var apiKeyId: Self { + .init(rawValue: "apiKeyId") + } + + public static var userEmail: Self { + .init(rawValue: "userEmail") + } + + public static var userFirstName: Self { + .init(rawValue: "userFirstName") + } + + public static var userLastName: Self { + .init(rawValue: "userLastName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct InAppPurchaseOfferCodeCustomCodes: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var active: Self { .init(rawValue: "active") @@ -136,6 +170,11 @@ extension V1.InAppPurchaseOfferCodeCustomCodes.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type actors + public static var actors: Relation<[Actors]?> { + .init(key: "fields[actors]") + } + /// the fields to include for returned resources of type inAppPurchaseOfferCodeCustomCodes public static var inAppPurchaseOfferCodeCustomCodes: Relation<[InAppPurchaseOfferCodeCustomCodes]?> { .init(key: "fields[inAppPurchaseOfferCodeCustomCodes]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseOfferCodeOneTimeUseCodes/ById/InAppPurchaseOfferCodeOneTimeUseCodesById.GET.b4309a0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseOfferCodeOneTimeUseCodes/ById/InAppPurchaseOfferCodeOneTimeUseCodesById.GET.b4309a0.generated.swift index 36b11986..2d804ddc 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseOfferCodeOneTimeUseCodes/ById/InAppPurchaseOfferCodeOneTimeUseCodesById.GET.b4309a0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchaseOfferCodeOneTimeUseCodes/ById/InAppPurchaseOfferCodeOneTimeUseCodesById.GET.b4309a0.generated.swift @@ -28,6 +28,8 @@ extension V1.InAppPurchaseOfferCodeOneTimeUseCodes.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[actors]", + value: parameters.fields[.actors]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[inAppPurchaseOfferCodeOneTimeUseCodes]", value: parameters.fields[.inAppPurchaseOfferCodeOneTimeUseCodes]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,38 @@ extension V1.InAppPurchaseOfferCodeOneTimeUseCodes.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Actors: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var actorType: Self { + .init(rawValue: "actorType") + } + + public static var apiKeyId: Self { + .init(rawValue: "apiKeyId") + } + + public static var userEmail: Self { + .init(rawValue: "userEmail") + } + + public static var userFirstName: Self { + .init(rawValue: "userFirstName") + } + + public static var userLastName: Self { + .init(rawValue: "userLastName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct InAppPurchaseOfferCodeOneTimeUseCodes: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var active: Self { .init(rawValue: "active") @@ -140,6 +174,11 @@ extension V1.InAppPurchaseOfferCodeOneTimeUseCodes.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type actors + public static var actors: Relation<[Actors]?> { + .init(key: "fields[actors]") + } + /// the fields to include for returned resources of type inAppPurchaseOfferCodeOneTimeUseCodes public static var inAppPurchaseOfferCodeOneTimeUseCodes: Relation<[InAppPurchaseOfferCodeOneTimeUseCodes]?> { .init(key: "fields[inAppPurchaseOfferCodeOneTimeUseCodes]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchases/ById/InAppPurchasesById.GET.81fb623.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchases/ById/InAppPurchasesById.GET.81fb623.generated.swift index 0bd29c60..21529971 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchases/ById/InAppPurchasesById.GET.81fb623.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/InAppPurchases/ById/InAppPurchasesById.GET.81fb623.generated.swift @@ -29,6 +29,8 @@ extension V1.InAppPurchases.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[inAppPurchases]", value: parameters.fields[.inAppPurchases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -100,6 +102,238 @@ extension V1.InAppPurchases.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct InAppPurchases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var apps: Self { .init(rawValue: "apps") @@ -133,6 +367,11 @@ extension V1.InAppPurchases.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type inAppPurchases public static var inAppPurchases: Relation<[InAppPurchases]?> { .init(key: "fields[inAppPurchases]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Nominations/ById/NominationsById.GET.b051da8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Nominations/ById/NominationsById.GET.b051da8.generated.swift index 5ee22edc..2494091b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Nominations/ById/NominationsById.GET.b051da8.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Nominations/ById/NominationsById.GET.b051da8.generated.swift @@ -28,8 +28,16 @@ extension V1.Nominations.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[actors]", + value: parameters.fields[.actors]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appEvents]", + value: parameters.fields[.appEvents]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[nominations]", value: parameters.fields[.nominations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[inAppEvents]", @@ -103,6 +111,326 @@ extension V1.Nominations.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Actors: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var actorType: Self { + .init(rawValue: "actorType") + } + + public static var apiKeyId: Self { + .init(rawValue: "apiKeyId") + } + + public static var userEmail: Self { + .init(rawValue: "userEmail") + } + + public static var userFirstName: Self { + .init(rawValue: "userFirstName") + } + + public static var userLastName: Self { + .init(rawValue: "userLastName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct AppEvents: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var archivedTerritorySchedules: Self { + .init(rawValue: "archivedTerritorySchedules") + } + + public static var badge: Self { + .init(rawValue: "badge") + } + + public static var deepLink: Self { + .init(rawValue: "deepLink") + } + + public static var eventState: Self { + .init(rawValue: "eventState") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var priority: Self { + .init(rawValue: "priority") + } + + public static var purchaseRequirement: Self { + .init(rawValue: "purchaseRequirement") + } + + public static var purpose: Self { + .init(rawValue: "purpose") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var territorySchedules: Self { + .init(rawValue: "territorySchedules") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Nominations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var createdByActor: Self { .init(rawValue: "createdByActor") @@ -203,12 +531,48 @@ extension V1.Nominations.ById.GET { } } + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type actors + public static var actors: Relation<[Actors]?> { + .init(key: "fields[actors]") + } + + /// the fields to include for returned resources of type appEvents + public static var appEvents: Relation<[AppEvents]?> { + .init(key: "fields[appEvents]") + } + + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type nominations public static var nominations: Relation<[Nominations]?> { .init(key: "fields[nominations]") } + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Nominations/Nominations.GET.c0bf6fc.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Nominations/Nominations.GET.c0bf6fc.generated.swift index 5f5f53a2..efd0972f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Nominations/Nominations.GET.c0bf6fc.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Nominations/Nominations.GET.c0bf6fc.generated.swift @@ -25,10 +25,16 @@ extension V1.Nominations { components?.path = path components?.queryItems = [ - URLQueryItem(name: "exists[inAppEvents]", - value: parameters.exists[.inAppEvents].map { "\($0)" }), + URLQueryItem(name: "fields[actors]", + value: parameters.fields[.actors]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appEvents]", + value: parameters.fields[.appEvents]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[nominations]", value: parameters.fields[.nominations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[hasInAppEvents]", value: parameters.filter[.hasInAppEvents]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[relatedApps]", @@ -95,8 +101,6 @@ extension V1.Nominations { extension V1.Nominations.GET { public struct Parameters: Hashable { - public var exists: Exists = Exists() - public var fields: Fields = Fields() public var filter: Filter = Filter() @@ -110,7 +114,7 @@ extension V1.Nominations.GET { /// comma-separated list of sort expressions; resources will be sorted as specified public var sort: [Sort]? - public struct Exists: Hashable { + public struct Fields: Hashable { public subscript (_ relation: Relation) -> T { get { values[relation]?.base as! T } set { values[relation] = AnyHashable(newValue) } @@ -118,27 +122,325 @@ extension V1.Nominations.GET { private var values: [AnyHashable: AnyHashable] = [:] - public struct Relation: Hashable { - /// filter by existence or non-existence of related 'inAppEvents' - public static var inAppEvents: Relation { - .init(key: "exists[inAppEvents]") + public struct Actors: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var actorType: Self { + .init(rawValue: "actorType") } - internal let key: String + public static var apiKeyId: Self { + .init(rawValue: "apiKeyId") + } - public func hash(into hasher: inout Hasher) { - hasher.combine(key) + public static var userEmail: Self { + .init(rawValue: "userEmail") + } + + public static var userFirstName: Self { + .init(rawValue: "userFirstName") + } + + public static var userLastName: Self { + .init(rawValue: "userLastName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue } } - } - public struct Fields: Hashable { - public subscript (_ relation: Relation) -> T { - get { values[relation]?.base as! T } - set { values[relation] = AnyHashable(newValue) } + public struct AppEvents: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var archivedTerritorySchedules: Self { + .init(rawValue: "archivedTerritorySchedules") + } + + public static var badge: Self { + .init(rawValue: "badge") + } + + public static var deepLink: Self { + .init(rawValue: "deepLink") + } + + public static var eventState: Self { + .init(rawValue: "eventState") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var priority: Self { + .init(rawValue: "priority") + } + + public static var purchaseRequirement: Self { + .init(rawValue: "purchaseRequirement") + } + + public static var purpose: Self { + .init(rawValue: "purpose") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var territorySchedules: Self { + .init(rawValue: "territorySchedules") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } } - private var values: [AnyHashable: AnyHashable] = [:] + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } public struct Nominations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var createdByActor: Self { @@ -240,12 +542,48 @@ extension V1.Nominations.GET { } } + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type actors + public static var actors: Relation<[Actors]?> { + .init(key: "fields[actors]") + } + + /// the fields to include for returned resources of type appEvents + public static var appEvents: Relation<[AppEvents]?> { + .init(key: "fields[appEvents]") + } + + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type nominations public static var nominations: Relation<[Nominations]?> { .init(key: "fields[nominations]") } + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/PromotedPurchases/ById/PromotedPurchasesById.GET.1e5319f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/PromotedPurchases/ById/PromotedPurchasesById.GET.1e5319f.generated.swift index d754b1fd..f44a5745 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/PromotedPurchases/ById/PromotedPurchasesById.GET.1e5319f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/PromotedPurchases/ById/PromotedPurchasesById.GET.1e5319f.generated.swift @@ -28,8 +28,12 @@ extension V1.PromotedPurchases.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[inAppPurchases]", + value: parameters.fields[.inAppPurchases]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[promotedPurchases]", value: parameters.fields[.promotedPurchases]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptions]", + value: parameters.fields[.subscriptions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -95,6 +99,82 @@ extension V1.PromotedPurchases.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct InAppPurchases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var content: Self { + .init(rawValue: "content") + } + + public static var contentHosting: Self { + .init(rawValue: "contentHosting") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var iapPriceSchedule: Self { + .init(rawValue: "iapPriceSchedule") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var inAppPurchaseAvailability: Self { + .init(rawValue: "inAppPurchaseAvailability") + } + + public static var inAppPurchaseLocalizations: Self { + .init(rawValue: "inAppPurchaseLocalizations") + } + + public static var inAppPurchaseType: Self { + .init(rawValue: "inAppPurchaseType") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct PromotedPurchases: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var enabled: Self { .init(rawValue: "enabled") @@ -127,12 +207,110 @@ extension V1.PromotedPurchases.ById.GET { } } + public struct Subscriptions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var group: Self { + .init(rawValue: "group") + } + + public static var groupLevel: Self { + .init(rawValue: "groupLevel") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var introductoryOffers: Self { + .init(rawValue: "introductoryOffers") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var prices: Self { + .init(rawValue: "prices") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var promotionalOffers: Self { + .init(rawValue: "promotionalOffers") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var subscriptionAvailability: Self { + .init(rawValue: "subscriptionAvailability") + } + + public static var subscriptionLocalizations: Self { + .init(rawValue: "subscriptionLocalizations") + } + + public static var subscriptionPeriod: Self { + .init(rawValue: "subscriptionPeriod") + } + + public static var winBackOffers: Self { + .init(rawValue: "winBackOffers") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// the fields to include for returned resources of type inAppPurchases + public static var inAppPurchases: Relation<[InAppPurchases]?> { + .init(key: "fields[inAppPurchases]") + } + /// the fields to include for returned resources of type promotedPurchases public static var promotedPurchases: Relation<[PromotedPurchases]?> { .init(key: "fields[promotedPurchases]") } + /// the fields to include for returned resources of type subscriptions + public static var subscriptions: Relation<[Subscriptions]?> { + .init(key: "fields[subscriptions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ById/ReviewSubmissionsById.GET.1799edb.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ById/ReviewSubmissionsById.GET.1799edb.generated.swift index f349f3ec..1828715d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ById/ReviewSubmissionsById.GET.1799edb.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ById/ReviewSubmissionsById.GET.1799edb.generated.swift @@ -28,6 +28,12 @@ extension V1.ReviewSubmissions.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[actors]", + value: parameters.fields[.actors]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersions]", + value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[reviewSubmissionItems]", value: parameters.fields[.reviewSubmissionItems]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[reviewSubmissions]", @@ -101,6 +107,378 @@ extension V1.ReviewSubmissions.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Actors: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var actorType: Self { + .init(rawValue: "actorType") + } + + public static var apiKeyId: Self { + .init(rawValue: "apiKeyId") + } + + public static var userEmail: Self { + .init(rawValue: "userEmail") + } + + public static var userFirstName: Self { + .init(rawValue: "userFirstName") + } + + public static var userLastName: Self { + .init(rawValue: "userLastName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var alternativeDistributionPackage: Self { + .init(rawValue: "alternativeDistributionPackage") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appStoreReviewDetail: Self { + .init(rawValue: "appStoreReviewDetail") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var appStoreVersionExperiments: Self { + .init(rawValue: "appStoreVersionExperiments") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersionLocalizations: Self { + .init(rawValue: "appStoreVersionLocalizations") + } + + public static var appStoreVersionPhasedRelease: Self { + .init(rawValue: "appStoreVersionPhasedRelease") + } + + public static var appStoreVersionSubmission: Self { + .init(rawValue: "appStoreVersionSubmission") + } + + public static var appVersionState: Self { + .init(rawValue: "appVersionState") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var copyright: Self { + .init(rawValue: "copyright") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var downloadable: Self { + .init(rawValue: "downloadable") + } + + public static var earliestReleaseDate: Self { + .init(rawValue: "earliestReleaseDate") + } + + public static var gameCenterAppVersion: Self { + .init(rawValue: "gameCenterAppVersion") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var releaseType: Self { + .init(rawValue: "releaseType") + } + + public static var reviewType: Self { + .init(rawValue: "reviewType") + } + + public static var routingAppCoverage: Self { + .init(rawValue: "routingAppCoverage") + } + + public static var usesIdfa: Self { + .init(rawValue: "usesIdfa") + } + + public static var versionString: Self { + .init(rawValue: "versionString") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct ReviewSubmissionItems: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appCustomProductPageVersion: Self { .init(rawValue: "appCustomProductPageVersion") @@ -206,6 +584,21 @@ extension V1.ReviewSubmissions.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type actors + public static var actors: Relation<[Actors]?> { + .init(key: "fields[actors]") + } + + /// the fields to include for returned resources of type appStoreVersions + public static var appStoreVersions: Relation<[AppStoreVersions]?> { + .init(key: "fields[appStoreVersions]") + } + + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type reviewSubmissionItems public static var reviewSubmissionItems: Relation<[ReviewSubmissionItems]?> { .init(key: "fields[reviewSubmissionItems]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ReviewSubmissions.GET.2271ac3.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ReviewSubmissions.GET.2271ac3.generated.swift index 9b1596b8..a69d286a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ReviewSubmissions.GET.2271ac3.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ReviewSubmissions.GET.2271ac3.generated.swift @@ -25,6 +25,12 @@ extension V1.ReviewSubmissions { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[actors]", + value: parameters.fields[.actors]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersions]", + value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[reviewSubmissionItems]", value: parameters.fields[.reviewSubmissionItems]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[reviewSubmissions]", @@ -105,6 +111,378 @@ extension V1.ReviewSubmissions.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Actors: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var actorType: Self { + .init(rawValue: "actorType") + } + + public static var apiKeyId: Self { + .init(rawValue: "apiKeyId") + } + + public static var userEmail: Self { + .init(rawValue: "userEmail") + } + + public static var userFirstName: Self { + .init(rawValue: "userFirstName") + } + + public static var userLastName: Self { + .init(rawValue: "userLastName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var alternativeDistributionPackage: Self { + .init(rawValue: "alternativeDistributionPackage") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appStoreReviewDetail: Self { + .init(rawValue: "appStoreReviewDetail") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var appStoreVersionExperiments: Self { + .init(rawValue: "appStoreVersionExperiments") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersionLocalizations: Self { + .init(rawValue: "appStoreVersionLocalizations") + } + + public static var appStoreVersionPhasedRelease: Self { + .init(rawValue: "appStoreVersionPhasedRelease") + } + + public static var appStoreVersionSubmission: Self { + .init(rawValue: "appStoreVersionSubmission") + } + + public static var appVersionState: Self { + .init(rawValue: "appVersionState") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var copyright: Self { + .init(rawValue: "copyright") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var downloadable: Self { + .init(rawValue: "downloadable") + } + + public static var earliestReleaseDate: Self { + .init(rawValue: "earliestReleaseDate") + } + + public static var gameCenterAppVersion: Self { + .init(rawValue: "gameCenterAppVersion") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var releaseType: Self { + .init(rawValue: "releaseType") + } + + public static var reviewType: Self { + .init(rawValue: "reviewType") + } + + public static var routingAppCoverage: Self { + .init(rawValue: "routingAppCoverage") + } + + public static var usesIdfa: Self { + .init(rawValue: "usesIdfa") + } + + public static var versionString: Self { + .init(rawValue: "versionString") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct ReviewSubmissionItems: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appCustomProductPageVersion: Self { .init(rawValue: "appCustomProductPageVersion") @@ -210,6 +588,21 @@ extension V1.ReviewSubmissions.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type actors + public static var actors: Relation<[Actors]?> { + .init(key: "fields[actors]") + } + + /// the fields to include for returned resources of type appStoreVersions + public static var appStoreVersions: Relation<[AppStoreVersions]?> { + .init(key: "fields[appStoreVersions]") + } + + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type reviewSubmissionItems public static var reviewSubmissionItems: Relation<[ReviewSubmissionItems]?> { .init(key: "fields[reviewSubmissionItems]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/RoutingAppCoverages/ById/RoutingAppCoveragesById.GET.2ec2ee8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/RoutingAppCoverages/ById/RoutingAppCoveragesById.GET.2ec2ee8.generated.swift index 05fbb257..29ae8827 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/RoutingAppCoverages/ById/RoutingAppCoveragesById.GET.2ec2ee8.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/RoutingAppCoverages/ById/RoutingAppCoveragesById.GET.2ec2ee8.generated.swift @@ -28,6 +28,8 @@ extension V1.RoutingAppCoverages.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[appStoreVersions]", + value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[routingAppCoverages]", value: parameters.fields[.routingAppCoverages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,114 @@ extension V1.RoutingAppCoverages.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var alternativeDistributionPackage: Self { + .init(rawValue: "alternativeDistributionPackage") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appStoreReviewDetail: Self { + .init(rawValue: "appStoreReviewDetail") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var appStoreVersionExperiments: Self { + .init(rawValue: "appStoreVersionExperiments") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersionLocalizations: Self { + .init(rawValue: "appStoreVersionLocalizations") + } + + public static var appStoreVersionPhasedRelease: Self { + .init(rawValue: "appStoreVersionPhasedRelease") + } + + public static var appStoreVersionSubmission: Self { + .init(rawValue: "appStoreVersionSubmission") + } + + public static var appVersionState: Self { + .init(rawValue: "appVersionState") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var copyright: Self { + .init(rawValue: "copyright") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var downloadable: Self { + .init(rawValue: "downloadable") + } + + public static var earliestReleaseDate: Self { + .init(rawValue: "earliestReleaseDate") + } + + public static var gameCenterAppVersion: Self { + .init(rawValue: "gameCenterAppVersion") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var releaseType: Self { + .init(rawValue: "releaseType") + } + + public static var reviewType: Self { + .init(rawValue: "reviewType") + } + + public static var routingAppCoverage: Self { + .init(rawValue: "routingAppCoverage") + } + + public static var usesIdfa: Self { + .init(rawValue: "usesIdfa") + } + + public static var versionString: Self { + .init(rawValue: "versionString") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct RoutingAppCoverages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var appStoreVersion: Self { .init(rawValue: "appStoreVersion") @@ -132,6 +242,11 @@ extension V1.RoutingAppCoverages.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type appStoreVersions + public static var appStoreVersions: Relation<[AppStoreVersions]?> { + .init(key: "fields[appStoreVersions]") + } + /// the fields to include for returned resources of type routingAppCoverages public static var routingAppCoverages: Relation<[RoutingAppCoverages]?> { .init(key: "fields[routingAppCoverages]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmGitReferences/ById/ScmGitReferencesById.GET.fed25a4.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmGitReferences/ById/ScmGitReferencesById.GET.fed25a4.generated.swift index 76c88412..f14fab42 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmGitReferences/ById/ScmGitReferencesById.GET.fed25a4.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmGitReferences/ById/ScmGitReferencesById.GET.fed25a4.generated.swift @@ -30,6 +30,8 @@ extension V1.ScmGitReferences.ById { components?.queryItems = [ URLQueryItem(name: "fields[scmGitReferences]", value: parameters.fields[.scmGitReferences]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[scmRepositories]", + value: parameters.fields[.scmRepositories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -127,12 +129,65 @@ extension V1.ScmGitReferences.ById.GET { } } + public struct ScmRepositories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var defaultBranch: Self { + .init(rawValue: "defaultBranch") + } + + public static var gitReferences: Self { + .init(rawValue: "gitReferences") + } + + public static var httpCloneUrl: Self { + .init(rawValue: "httpCloneUrl") + } + + public static var lastAccessedDate: Self { + .init(rawValue: "lastAccessedDate") + } + + public static var ownerName: Self { + .init(rawValue: "ownerName") + } + + public static var pullRequests: Self { + .init(rawValue: "pullRequests") + } + + public static var repositoryName: Self { + .init(rawValue: "repositoryName") + } + + public static var scmProvider: Self { + .init(rawValue: "scmProvider") + } + + public static var sshCloneUrl: Self { + .init(rawValue: "sshCloneUrl") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type scmGitReferences public static var scmGitReferences: Relation<[ScmGitReferences]?> { .init(key: "fields[scmGitReferences]") } + /// the fields to include for returned resources of type scmRepositories + public static var scmRepositories: Relation<[ScmRepositories]?> { + .init(key: "fields[scmRepositories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmPullRequests/ById/ScmPullRequestsById.GET.0538892.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmPullRequests/ById/ScmPullRequestsById.GET.0538892.generated.swift index 1d23bf6c..4e222ef0 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmPullRequests/ById/ScmPullRequestsById.GET.0538892.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmPullRequests/ById/ScmPullRequestsById.GET.0538892.generated.swift @@ -30,6 +30,8 @@ extension V1.ScmPullRequests.ById { components?.queryItems = [ URLQueryItem(name: "fields[scmPullRequests]", value: parameters.fields[.scmPullRequests]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[scmRepositories]", + value: parameters.fields[.scmRepositories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -155,12 +157,65 @@ extension V1.ScmPullRequests.ById.GET { } } + public struct ScmRepositories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var defaultBranch: Self { + .init(rawValue: "defaultBranch") + } + + public static var gitReferences: Self { + .init(rawValue: "gitReferences") + } + + public static var httpCloneUrl: Self { + .init(rawValue: "httpCloneUrl") + } + + public static var lastAccessedDate: Self { + .init(rawValue: "lastAccessedDate") + } + + public static var ownerName: Self { + .init(rawValue: "ownerName") + } + + public static var pullRequests: Self { + .init(rawValue: "pullRequests") + } + + public static var repositoryName: Self { + .init(rawValue: "repositoryName") + } + + public static var scmProvider: Self { + .init(rawValue: "scmProvider") + } + + public static var sshCloneUrl: Self { + .init(rawValue: "sshCloneUrl") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type scmPullRequests public static var scmPullRequests: Relation<[ScmPullRequests]?> { .init(key: "fields[scmPullRequests]") } + /// the fields to include for returned resources of type scmRepositories + public static var scmRepositories: Relation<[ScmRepositories]?> { + .init(key: "fields[scmRepositories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmRepositories/ById/ScmRepositoriesById.GET.a4518c0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmRepositories/ById/ScmRepositoriesById.GET.a4518c0.generated.swift index 68e563a7..9dc37a74 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmRepositories/ById/ScmRepositoriesById.GET.a4518c0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmRepositories/ById/ScmRepositoriesById.GET.a4518c0.generated.swift @@ -28,6 +28,10 @@ extension V1.ScmRepositories.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[scmGitReferences]", + value: parameters.fields[.scmGitReferences]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[scmProviders]", + value: parameters.fields[.scmProviders]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[scmRepositories]", value: parameters.fields[.scmRepositories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +99,62 @@ extension V1.ScmRepositories.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct ScmGitReferences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var canonicalName: Self { + .init(rawValue: "canonicalName") + } + + public static var isDeleted: Self { + .init(rawValue: "isDeleted") + } + + public static var kind: Self { + .init(rawValue: "kind") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var repository: Self { + .init(rawValue: "repository") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct ScmProviders: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var repositories: Self { + .init(rawValue: "repositories") + } + + public static var scmProviderType: Self { + .init(rawValue: "scmProviderType") + } + + public static var url: Self { + .init(rawValue: "url") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct ScmRepositories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var defaultBranch: Self { .init(rawValue: "defaultBranch") @@ -144,6 +204,16 @@ extension V1.ScmRepositories.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type scmGitReferences + public static var scmGitReferences: Relation<[ScmGitReferences]?> { + .init(key: "fields[scmGitReferences]") + } + + /// the fields to include for returned resources of type scmProviders + public static var scmProviders: Relation<[ScmProviders]?> { + .init(key: "fields[scmProviders]") + } + /// the fields to include for returned resources of type scmRepositories public static var scmRepositories: Relation<[ScmRepositories]?> { .init(key: "fields[scmRepositories]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmRepositories/ScmRepositories.GET.83c2368.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmRepositories/ScmRepositories.GET.83c2368.generated.swift index 7c788796..9f0caa24 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmRepositories/ScmRepositories.GET.83c2368.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ScmRepositories/ScmRepositories.GET.83c2368.generated.swift @@ -25,6 +25,10 @@ extension V1.ScmRepositories { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[scmGitReferences]", + value: parameters.fields[.scmGitReferences]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[scmProviders]", + value: parameters.fields[.scmProviders]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[scmRepositories]", value: parameters.fields[.scmRepositories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[id]", @@ -97,6 +101,62 @@ extension V1.ScmRepositories.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct ScmGitReferences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var canonicalName: Self { + .init(rawValue: "canonicalName") + } + + public static var isDeleted: Self { + .init(rawValue: "isDeleted") + } + + public static var kind: Self { + .init(rawValue: "kind") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var repository: Self { + .init(rawValue: "repository") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct ScmProviders: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var repositories: Self { + .init(rawValue: "repositories") + } + + public static var scmProviderType: Self { + .init(rawValue: "scmProviderType") + } + + public static var url: Self { + .init(rawValue: "url") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct ScmRepositories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var defaultBranch: Self { .init(rawValue: "defaultBranch") @@ -146,6 +206,16 @@ extension V1.ScmRepositories.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type scmGitReferences + public static var scmGitReferences: Relation<[ScmGitReferences]?> { + .init(key: "fields[scmGitReferences]") + } + + /// the fields to include for returned resources of type scmProviders + public static var scmProviders: Relation<[ScmProviders]?> { + .init(key: "fields[scmProviders]") + } + /// the fields to include for returned resources of type scmRepositories public static var scmRepositories: Relation<[ScmRepositories]?> { .init(key: "fields[scmRepositories]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAppStoreReviewScreenshots/ById/SubscriptionAppStoreReviewScreenshotsById.GET.1504677.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAppStoreReviewScreenshots/ById/SubscriptionAppStoreReviewScreenshotsById.GET.1504677.generated.swift index 8b4152aa..e6b9beb4 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAppStoreReviewScreenshots/ById/SubscriptionAppStoreReviewScreenshotsById.GET.1504677.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAppStoreReviewScreenshots/ById/SubscriptionAppStoreReviewScreenshotsById.GET.1504677.generated.swift @@ -30,6 +30,8 @@ extension V1.SubscriptionAppStoreReviewScreenshots.ById { components?.queryItems = [ URLQueryItem(name: "fields[subscriptionAppStoreReviewScreenshots]", value: parameters.fields[.subscriptionAppStoreReviewScreenshots]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptions]", + value: parameters.fields[.subscriptions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -143,12 +145,105 @@ extension V1.SubscriptionAppStoreReviewScreenshots.ById.GET { } } + public struct Subscriptions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var group: Self { + .init(rawValue: "group") + } + + public static var groupLevel: Self { + .init(rawValue: "groupLevel") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var introductoryOffers: Self { + .init(rawValue: "introductoryOffers") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var prices: Self { + .init(rawValue: "prices") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var promotionalOffers: Self { + .init(rawValue: "promotionalOffers") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var subscriptionAvailability: Self { + .init(rawValue: "subscriptionAvailability") + } + + public static var subscriptionLocalizations: Self { + .init(rawValue: "subscriptionLocalizations") + } + + public static var subscriptionPeriod: Self { + .init(rawValue: "subscriptionPeriod") + } + + public static var winBackOffers: Self { + .init(rawValue: "winBackOffers") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots public static var subscriptionAppStoreReviewScreenshots: Relation<[SubscriptionAppStoreReviewScreenshots]?> { .init(key: "fields[subscriptionAppStoreReviewScreenshots]") } + /// the fields to include for returned resources of type subscriptions + public static var subscriptions: Relation<[Subscriptions]?> { + .init(key: "fields[subscriptions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroupLocalizations/ById/SubscriptionGroupLocalizationsById.GET.8ac8701.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroupLocalizations/ById/SubscriptionGroupLocalizationsById.GET.8ac8701.generated.swift index 7cd72006..5d11a697 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroupLocalizations/ById/SubscriptionGroupLocalizationsById.GET.8ac8701.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroupLocalizations/ById/SubscriptionGroupLocalizationsById.GET.8ac8701.generated.swift @@ -30,6 +30,8 @@ extension V1.SubscriptionGroupLocalizations.ById { components?.queryItems = [ URLQueryItem(name: "fields[subscriptionGroupLocalizations]", value: parameters.fields[.subscriptionGroupLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptionGroups]", + value: parameters.fields[.subscriptionGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -127,12 +129,41 @@ extension V1.SubscriptionGroupLocalizations.ById.GET { } } + public struct SubscriptionGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var subscriptionGroupLocalizations: Self { + .init(rawValue: "subscriptionGroupLocalizations") + } + + public static var subscriptions: Self { + .init(rawValue: "subscriptions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionGroupLocalizations public static var subscriptionGroupLocalizations: Relation<[SubscriptionGroupLocalizations]?> { .init(key: "fields[subscriptionGroupLocalizations]") } + /// the fields to include for returned resources of type subscriptionGroups + public static var subscriptionGroups: Relation<[SubscriptionGroups]?> { + .init(key: "fields[subscriptionGroups]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionImages/ById/SubscriptionImagesById.GET.e335fd1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionImages/ById/SubscriptionImagesById.GET.e335fd1.generated.swift index 454fc518..373ba3d6 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionImages/ById/SubscriptionImagesById.GET.e335fd1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionImages/ById/SubscriptionImagesById.GET.e335fd1.generated.swift @@ -30,6 +30,8 @@ extension V1.SubscriptionImages.ById { components?.queryItems = [ URLQueryItem(name: "fields[subscriptionImages]", value: parameters.fields[.subscriptionImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptions]", + value: parameters.fields[.subscriptions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -139,12 +141,105 @@ extension V1.SubscriptionImages.ById.GET { } } + public struct Subscriptions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var group: Self { + .init(rawValue: "group") + } + + public static var groupLevel: Self { + .init(rawValue: "groupLevel") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var introductoryOffers: Self { + .init(rawValue: "introductoryOffers") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var prices: Self { + .init(rawValue: "prices") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var promotionalOffers: Self { + .init(rawValue: "promotionalOffers") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var subscriptionAvailability: Self { + .init(rawValue: "subscriptionAvailability") + } + + public static var subscriptionLocalizations: Self { + .init(rawValue: "subscriptionLocalizations") + } + + public static var subscriptionPeriod: Self { + .init(rawValue: "subscriptionPeriod") + } + + public static var winBackOffers: Self { + .init(rawValue: "winBackOffers") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionImages public static var subscriptionImages: Relation<[SubscriptionImages]?> { .init(key: "fields[subscriptionImages]") } + /// the fields to include for returned resources of type subscriptions + public static var subscriptions: Relation<[Subscriptions]?> { + .init(key: "fields[subscriptions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionLocalizations/ById/SubscriptionLocalizationsById.GET.731e3ba.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionLocalizations/ById/SubscriptionLocalizationsById.GET.731e3ba.generated.swift index f1c1b814..029d6e96 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionLocalizations/ById/SubscriptionLocalizationsById.GET.731e3ba.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionLocalizations/ById/SubscriptionLocalizationsById.GET.731e3ba.generated.swift @@ -30,6 +30,8 @@ extension V1.SubscriptionLocalizations.ById { components?.queryItems = [ URLQueryItem(name: "fields[subscriptionLocalizations]", value: parameters.fields[.subscriptionLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptions]", + value: parameters.fields[.subscriptions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -127,12 +129,105 @@ extension V1.SubscriptionLocalizations.ById.GET { } } + public struct Subscriptions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var group: Self { + .init(rawValue: "group") + } + + public static var groupLevel: Self { + .init(rawValue: "groupLevel") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var introductoryOffers: Self { + .init(rawValue: "introductoryOffers") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var prices: Self { + .init(rawValue: "prices") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var promotionalOffers: Self { + .init(rawValue: "promotionalOffers") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var subscriptionAvailability: Self { + .init(rawValue: "subscriptionAvailability") + } + + public static var subscriptionLocalizations: Self { + .init(rawValue: "subscriptionLocalizations") + } + + public static var subscriptionPeriod: Self { + .init(rawValue: "subscriptionPeriod") + } + + public static var winBackOffers: Self { + .init(rawValue: "winBackOffers") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionLocalizations public static var subscriptionLocalizations: Relation<[SubscriptionLocalizations]?> { .init(key: "fields[subscriptionLocalizations]") } + /// the fields to include for returned resources of type subscriptions + public static var subscriptions: Relation<[Subscriptions]?> { + .init(key: "fields[subscriptions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeCustomCodes/ById/SubscriptionOfferCodeCustomCodesById.GET.3300220.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeCustomCodes/ById/SubscriptionOfferCodeCustomCodesById.GET.3300220.generated.swift index 1cbe888c..157b8672 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeCustomCodes/ById/SubscriptionOfferCodeCustomCodesById.GET.3300220.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeCustomCodes/ById/SubscriptionOfferCodeCustomCodesById.GET.3300220.generated.swift @@ -30,6 +30,8 @@ extension V1.SubscriptionOfferCodeCustomCodes.ById { components?.queryItems = [ URLQueryItem(name: "fields[subscriptionOfferCodeCustomCodes]", value: parameters.fields[.subscriptionOfferCodeCustomCodes]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptionOfferCodes]", + value: parameters.fields[.subscriptionOfferCodes]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -131,12 +133,89 @@ extension V1.SubscriptionOfferCodeCustomCodes.ById.GET { } } + public struct SubscriptionOfferCodes: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var active: Self { + .init(rawValue: "active") + } + + public static var autoRenewEnabled: Self { + .init(rawValue: "autoRenewEnabled") + } + + public static var customCodes: Self { + .init(rawValue: "customCodes") + } + + public static var customerEligibilities: Self { + .init(rawValue: "customerEligibilities") + } + + public static var duration: Self { + .init(rawValue: "duration") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var numberOfPeriods: Self { + .init(rawValue: "numberOfPeriods") + } + + public static var offerEligibility: Self { + .init(rawValue: "offerEligibility") + } + + public static var offerMode: Self { + .init(rawValue: "offerMode") + } + + public static var oneTimeUseCodes: Self { + .init(rawValue: "oneTimeUseCodes") + } + + public static var prices: Self { + .init(rawValue: "prices") + } + + public static var productionCodeCount: Self { + .init(rawValue: "productionCodeCount") + } + + public static var sandboxCodeCount: Self { + .init(rawValue: "sandboxCodeCount") + } + + public static var subscription: Self { + .init(rawValue: "subscription") + } + + public static var totalNumberOfCodes: Self { + .init(rawValue: "totalNumberOfCodes") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionOfferCodeCustomCodes public static var subscriptionOfferCodeCustomCodes: Relation<[SubscriptionOfferCodeCustomCodes]?> { .init(key: "fields[subscriptionOfferCodeCustomCodes]") } + /// the fields to include for returned resources of type subscriptionOfferCodes + public static var subscriptionOfferCodes: Relation<[SubscriptionOfferCodes]?> { + .init(key: "fields[subscriptionOfferCodes]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeOneTimeUseCodes/ById/SubscriptionOfferCodeOneTimeUseCodesById.GET.5f16424.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeOneTimeUseCodes/ById/SubscriptionOfferCodeOneTimeUseCodesById.GET.5f16424.generated.swift index 7ac7b6d4..31360d9d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeOneTimeUseCodes/ById/SubscriptionOfferCodeOneTimeUseCodesById.GET.5f16424.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeOneTimeUseCodes/ById/SubscriptionOfferCodeOneTimeUseCodesById.GET.5f16424.generated.swift @@ -30,6 +30,8 @@ extension V1.SubscriptionOfferCodeOneTimeUseCodes.ById { components?.queryItems = [ URLQueryItem(name: "fields[subscriptionOfferCodeOneTimeUseCodes]", value: parameters.fields[.subscriptionOfferCodeOneTimeUseCodes]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptionOfferCodes]", + value: parameters.fields[.subscriptionOfferCodes]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -135,12 +137,89 @@ extension V1.SubscriptionOfferCodeOneTimeUseCodes.ById.GET { } } + public struct SubscriptionOfferCodes: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var active: Self { + .init(rawValue: "active") + } + + public static var autoRenewEnabled: Self { + .init(rawValue: "autoRenewEnabled") + } + + public static var customCodes: Self { + .init(rawValue: "customCodes") + } + + public static var customerEligibilities: Self { + .init(rawValue: "customerEligibilities") + } + + public static var duration: Self { + .init(rawValue: "duration") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var numberOfPeriods: Self { + .init(rawValue: "numberOfPeriods") + } + + public static var offerEligibility: Self { + .init(rawValue: "offerEligibility") + } + + public static var offerMode: Self { + .init(rawValue: "offerMode") + } + + public static var oneTimeUseCodes: Self { + .init(rawValue: "oneTimeUseCodes") + } + + public static var prices: Self { + .init(rawValue: "prices") + } + + public static var productionCodeCount: Self { + .init(rawValue: "productionCodeCount") + } + + public static var sandboxCodeCount: Self { + .init(rawValue: "sandboxCodeCount") + } + + public static var subscription: Self { + .init(rawValue: "subscription") + } + + public static var totalNumberOfCodes: Self { + .init(rawValue: "totalNumberOfCodes") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes public static var subscriptionOfferCodeOneTimeUseCodes: Relation<[SubscriptionOfferCodeOneTimeUseCodes]?> { .init(key: "fields[subscriptionOfferCodeOneTimeUseCodes]") } + /// the fields to include for returned resources of type subscriptionOfferCodes + public static var subscriptionOfferCodes: Relation<[SubscriptionOfferCodes]?> { + .init(key: "fields[subscriptionOfferCodes]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/SubscriptionOfferCodesById.GET.6f18d2e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/SubscriptionOfferCodesById.GET.6f18d2e.generated.swift index 37947581..11c889af 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/SubscriptionOfferCodesById.GET.6f18d2e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/SubscriptionOfferCodesById.GET.6f18d2e.generated.swift @@ -36,6 +36,8 @@ extension V1.SubscriptionOfferCodes.ById { value: parameters.fields[.subscriptionOfferCodePrices]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionOfferCodes]", value: parameters.fields[.subscriptionOfferCodes]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptions]", + value: parameters.fields[.subscriptions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[customCodes]", @@ -277,6 +279,94 @@ extension V1.SubscriptionOfferCodes.ById.GET { } } + public struct Subscriptions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var group: Self { + .init(rawValue: "group") + } + + public static var groupLevel: Self { + .init(rawValue: "groupLevel") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var introductoryOffers: Self { + .init(rawValue: "introductoryOffers") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var prices: Self { + .init(rawValue: "prices") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var promotionalOffers: Self { + .init(rawValue: "promotionalOffers") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var subscriptionAvailability: Self { + .init(rawValue: "subscriptionAvailability") + } + + public static var subscriptionLocalizations: Self { + .init(rawValue: "subscriptionLocalizations") + } + + public static var subscriptionPeriod: Self { + .init(rawValue: "subscriptionPeriod") + } + + public static var winBackOffers: Self { + .init(rawValue: "winBackOffers") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionOfferCodeCustomCodes public static var subscriptionOfferCodeCustomCodes: Relation<[SubscriptionOfferCodeCustomCodes]?> { @@ -298,6 +388,11 @@ extension V1.SubscriptionOfferCodes.ById.GET { .init(key: "fields[subscriptionOfferCodes]") } + /// the fields to include for returned resources of type subscriptions + public static var subscriptions: Relation<[Subscriptions]?> { + .init(key: "fields[subscriptions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPricePoints/ById/SubscriptionPricePointsById.GET.a50bff2.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPricePoints/ById/SubscriptionPricePointsById.GET.a50bff2.generated.swift index 8c949429..48093033 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPricePoints/ById/SubscriptionPricePointsById.GET.a50bff2.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPricePoints/ById/SubscriptionPricePointsById.GET.a50bff2.generated.swift @@ -30,6 +30,8 @@ extension V1.SubscriptionPricePoints.ById { components?.queryItems = [ URLQueryItem(name: "fields[subscriptionPricePoints]", value: parameters.fields[.subscriptionPricePoints]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -127,12 +129,33 @@ extension V1.SubscriptionPricePoints.ById.GET { } } + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionPricePoints public static var subscriptionPricePoints: Relation<[SubscriptionPricePoints]?> { .init(key: "fields[subscriptionPricePoints]") } + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPromotionalOffers/ById/SubscriptionPromotionalOffersById.GET.c143fce.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPromotionalOffers/ById/SubscriptionPromotionalOffersById.GET.c143fce.generated.swift index 5ef9bb85..a2bb8ef6 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPromotionalOffers/ById/SubscriptionPromotionalOffersById.GET.c143fce.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPromotionalOffers/ById/SubscriptionPromotionalOffersById.GET.c143fce.generated.swift @@ -32,6 +32,8 @@ extension V1.SubscriptionPromotionalOffers.ById { value: parameters.fields[.subscriptionPromotionalOfferPrices]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionPromotionalOffers]", value: parameters.fields[.subscriptionPromotionalOffers]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptions]", + value: parameters.fields[.subscriptions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[prices]", @@ -161,6 +163,94 @@ extension V1.SubscriptionPromotionalOffers.ById.GET { } } + public struct Subscriptions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var appStoreReviewScreenshot: Self { + .init(rawValue: "appStoreReviewScreenshot") + } + + public static var familySharable: Self { + .init(rawValue: "familySharable") + } + + public static var group: Self { + .init(rawValue: "group") + } + + public static var groupLevel: Self { + .init(rawValue: "groupLevel") + } + + public static var images: Self { + .init(rawValue: "images") + } + + public static var introductoryOffers: Self { + .init(rawValue: "introductoryOffers") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var offerCodes: Self { + .init(rawValue: "offerCodes") + } + + public static var pricePoints: Self { + .init(rawValue: "pricePoints") + } + + public static var prices: Self { + .init(rawValue: "prices") + } + + public static var productId: Self { + .init(rawValue: "productId") + } + + public static var promotedPurchase: Self { + .init(rawValue: "promotedPurchase") + } + + public static var promotionalOffers: Self { + .init(rawValue: "promotionalOffers") + } + + public static var reviewNote: Self { + .init(rawValue: "reviewNote") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var subscriptionAvailability: Self { + .init(rawValue: "subscriptionAvailability") + } + + public static var subscriptionLocalizations: Self { + .init(rawValue: "subscriptionLocalizations") + } + + public static var subscriptionPeriod: Self { + .init(rawValue: "subscriptionPeriod") + } + + public static var winBackOffers: Self { + .init(rawValue: "winBackOffers") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type subscriptionPromotionalOfferPrices public static var subscriptionPromotionalOfferPrices: Relation<[SubscriptionPromotionalOfferPrices]?> { @@ -172,6 +262,11 @@ extension V1.SubscriptionPromotionalOffers.ById.GET { .init(key: "fields[subscriptionPromotionalOffers]") } + /// the fields to include for returned resources of type subscriptions + public static var subscriptions: Relation<[Subscriptions]?> { + .init(key: "fields[subscriptions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/IntroductoryOffers/SubscriptionsByIdRelationshipsIntroductoryOffers.DELETE.10ab867.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/IntroductoryOffers/SubscriptionsByIdRelationshipsIntroductoryOffers.DELETE.10ab867.generated.swift index 10b9668c..8b424574 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/IntroductoryOffers/SubscriptionsByIdRelationshipsIntroductoryOffers.DELETE.10ab867.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/IntroductoryOffers/SubscriptionsByIdRelationshipsIntroductoryOffers.DELETE.10ab867.generated.swift @@ -31,6 +31,7 @@ extension V1.Subscriptions.ById.Relationships.IntroductoryOffers { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.Subscriptions.ById.Relationships.IntroductoryOffers { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/Prices/SubscriptionsByIdRelationshipsPrices.DELETE.80efbd4.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/Prices/SubscriptionsByIdRelationshipsPrices.DELETE.80efbd4.generated.swift index 08b60e6b..6e652183 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/Prices/SubscriptionsByIdRelationshipsPrices.DELETE.80efbd4.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/Prices/SubscriptionsByIdRelationshipsPrices.DELETE.80efbd4.generated.swift @@ -31,6 +31,7 @@ extension V1.Subscriptions.ById.Relationships.Prices { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.Subscriptions.ById.Relationships.Prices { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionsById.GET.fc34fc5.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionsById.GET.fc34fc5.generated.swift index d00e1a84..acc80355 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionsById.GET.fc34fc5.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionsById.GET.fc34fc5.generated.swift @@ -34,6 +34,8 @@ extension V1.Subscriptions.ById { value: parameters.fields[.subscriptionAppStoreReviewScreenshots]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionAvailabilities]", value: parameters.fields[.subscriptionAvailabilities]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptionGroups]", + value: parameters.fields[.subscriptionGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionImages]", value: parameters.fields[.subscriptionImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionIntroductoryOffers]", @@ -231,6 +233,30 @@ extension V1.Subscriptions.ById.GET { } } + public struct SubscriptionGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var subscriptionGroupLocalizations: Self { + .init(rawValue: "subscriptionGroupLocalizations") + } + + public static var subscriptions: Self { + .init(rawValue: "subscriptions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct SubscriptionImages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var assetToken: Self { .init(rawValue: "assetToken") @@ -659,6 +685,11 @@ extension V1.Subscriptions.ById.GET { .init(key: "fields[subscriptionAvailabilities]") } + /// the fields to include for returned resources of type subscriptionGroups + public static var subscriptionGroups: Relation<[SubscriptionGroups]?> { + .init(key: "fields[subscriptionGroups]") + } + /// the fields to include for returned resources of type subscriptionImages public static var subscriptionImages: Relation<[SubscriptionImages]?> { .init(key: "fields[subscriptionImages]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.DELETE.4ae29aa.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.DELETE.4ae29aa.generated.swift index d09a4c18..db59259b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.DELETE.4ae29aa.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.DELETE.4ae29aa.generated.swift @@ -31,6 +31,7 @@ extension V1.Users.ById.Relationships.VisibleApps { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V1.Users.ById.Relationships.VisibleApps { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.PATCH.4ae29aa.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.PATCH.4ae29aa.generated.swift index 980863ae..aa83d182 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.PATCH.4ae29aa.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.PATCH.4ae29aa.generated.swift @@ -46,6 +46,7 @@ extension V1.Users.ById.Relationships.VisibleApps { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.Users.ById.Relationships.VisibleApps { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.POST.4ae29aa.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.POST.4ae29aa.generated.swift index 315ccfcd..d1e59ab9 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.POST.4ae29aa.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Users/ById/Relationships/VisibleApps/UsersByIdRelationshipsVisibleApps.POST.4ae29aa.generated.swift @@ -46,6 +46,7 @@ extension V1.Users.ById.Relationships.VisibleApps { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V1.Users.ById.Relationships.VisibleApps { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Webhooks/ById/WebhooksById.GET.30521c1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Webhooks/ById/WebhooksById.GET.30521c1.generated.swift index 0e04d7c3..d7b85c17 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Webhooks/ById/WebhooksById.GET.30521c1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Webhooks/ById/WebhooksById.GET.30521c1.generated.swift @@ -28,6 +28,8 @@ extension V1.Webhooks.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[webhooks]", value: parameters.fields[.webhooks]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -95,6 +97,238 @@ extension V1.Webhooks.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Webhooks: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var app: Self { .init(rawValue: "app") @@ -132,6 +366,11 @@ extension V1.Webhooks.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + /// the fields to include for returned resources of type webhooks public static var webhooks: Relation<[Webhooks]?> { .init(key: "fields[webhooks]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/AppStoreVersionExperiments/ById/AppStoreVersionExperimentsById.GET.7d297f5.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/AppStoreVersionExperiments/ById/AppStoreVersionExperimentsById.GET.7d297f5.generated.swift index d3993f9b..ef14e1ac 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/AppStoreVersionExperiments/ById/AppStoreVersionExperimentsById.GET.7d297f5.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/AppStoreVersionExperiments/ById/AppStoreVersionExperimentsById.GET.7d297f5.generated.swift @@ -32,6 +32,10 @@ extension V2.AppStoreVersionExperiments.ById { value: parameters.fields[.appStoreVersionExperimentTreatments]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[appStoreVersionExperiments]", value: parameters.fields[.appStoreVersionExperiments]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[appStoreVersions]", + value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[appStoreVersionExperimentTreatments]", @@ -199,6 +203,346 @@ extension V2.AppStoreVersionExperiments.ById.GET { } } + public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var alternativeDistributionPackage: Self { + .init(rawValue: "alternativeDistributionPackage") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var appClipDefaultExperience: Self { + .init(rawValue: "appClipDefaultExperience") + } + + public static var appStoreReviewDetail: Self { + .init(rawValue: "appStoreReviewDetail") + } + + public static var appStoreState: Self { + .init(rawValue: "appStoreState") + } + + public static var appStoreVersionExperiments: Self { + .init(rawValue: "appStoreVersionExperiments") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersionLocalizations: Self { + .init(rawValue: "appStoreVersionLocalizations") + } + + public static var appStoreVersionPhasedRelease: Self { + .init(rawValue: "appStoreVersionPhasedRelease") + } + + public static var appStoreVersionSubmission: Self { + .init(rawValue: "appStoreVersionSubmission") + } + + public static var appVersionState: Self { + .init(rawValue: "appVersionState") + } + + public static var build: Self { + .init(rawValue: "build") + } + + public static var copyright: Self { + .init(rawValue: "copyright") + } + + public static var createdDate: Self { + .init(rawValue: "createdDate") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var downloadable: Self { + .init(rawValue: "downloadable") + } + + public static var earliestReleaseDate: Self { + .init(rawValue: "earliestReleaseDate") + } + + public static var gameCenterAppVersion: Self { + .init(rawValue: "gameCenterAppVersion") + } + + public static var platform: Self { + .init(rawValue: "platform") + } + + public static var releaseType: Self { + .init(rawValue: "releaseType") + } + + public static var reviewType: Self { + .init(rawValue: "reviewType") + } + + public static var routingAppCoverage: Self { + .init(rawValue: "routingAppCoverage") + } + + public static var usesIdfa: Self { + .init(rawValue: "usesIdfa") + } + + public static var versionString: Self { + .init(rawValue: "versionString") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appStoreVersionExperimentTreatments public static var appStoreVersionExperimentTreatments: Relation<[AppStoreVersionExperimentTreatments]?> { @@ -210,6 +554,16 @@ extension V2.AppStoreVersionExperiments.ById.GET { .init(key: "fields[appStoreVersionExperiments]") } + /// the fields to include for returned resources of type appStoreVersions + public static var appStoreVersions: Relation<[AppStoreVersions]?> { + .init(key: "fields[appStoreVersions]") + } + + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementImages/ById/GameCenterAchievementImagesById.GET.ceb4af8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementImages/ById/GameCenterAchievementImagesById.GET.ceb4af8.generated.swift index 153f6a73..c1e6024b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementImages/ById/GameCenterAchievementImagesById.GET.ceb4af8.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementImages/ById/GameCenterAchievementImagesById.GET.ceb4af8.generated.swift @@ -30,6 +30,8 @@ extension V2.GameCenterAchievementImages.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterAchievementImages]", value: parameters.fields[.gameCenterAchievementImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterAchievementLocalizations]", + value: parameters.fields[.gameCenterAchievementLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -131,12 +133,53 @@ extension V2.GameCenterAchievementImages.ById.GET { } } + public struct GameCenterAchievementLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var afterEarnedDescription: Self { + .init(rawValue: "afterEarnedDescription") + } + + public static var beforeEarnedDescription: Self { + .init(rawValue: "beforeEarnedDescription") + } + + public static var image: Self { + .init(rawValue: "image") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterAchievementImages public static var gameCenterAchievementImages: Relation<[GameCenterAchievementImages]?> { .init(key: "fields[gameCenterAchievementImages]") } + /// the fields to include for returned resources of type gameCenterAchievementLocalizations + public static var gameCenterAchievementLocalizations: Relation<[GameCenterAchievementLocalizations]?> { + .init(key: "fields[gameCenterAchievementLocalizations]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementLocalizations/ById/GameCenterAchievementLocalizationsById.GET.b8a2a32.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementLocalizations/ById/GameCenterAchievementLocalizationsById.GET.b8a2a32.generated.swift index 0ce2e0b6..7fa544e7 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementLocalizations/ById/GameCenterAchievementLocalizationsById.GET.b8a2a32.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementLocalizations/ById/GameCenterAchievementLocalizationsById.GET.b8a2a32.generated.swift @@ -32,6 +32,8 @@ extension V2.GameCenterAchievementLocalizations.ById { value: parameters.fields[.gameCenterAchievementImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterAchievementLocalizations]", value: parameters.fields[.gameCenterAchievementLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterAchievementVersions]", + value: parameters.fields[.gameCenterAchievementVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -169,6 +171,34 @@ extension V2.GameCenterAchievementLocalizations.ById.GET { } } + public struct GameCenterAchievementVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievement: Self { + .init(rawValue: "achievement") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterAchievementImages public static var gameCenterAchievementImages: Relation<[GameCenterAchievementImages]?> { @@ -180,6 +210,11 @@ extension V2.GameCenterAchievementLocalizations.ById.GET { .init(key: "fields[gameCenterAchievementLocalizations]") } + /// the fields to include for returned resources of type gameCenterAchievementVersions + public static var gameCenterAchievementVersions: Relation<[GameCenterAchievementVersions]?> { + .init(key: "fields[gameCenterAchievementVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementVersions/ById/GameCenterAchievementVersionsById.GET.f3597fe.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementVersions/ById/GameCenterAchievementVersionsById.GET.f3597fe.generated.swift index 2edc4d24..d390314b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementVersions/ById/GameCenterAchievementVersionsById.GET.f3597fe.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievementVersions/ById/GameCenterAchievementVersionsById.GET.f3597fe.generated.swift @@ -32,6 +32,8 @@ extension V2.GameCenterAchievementVersions.ById { value: parameters.fields[.gameCenterAchievementLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterAchievementVersions]", value: parameters.fields[.gameCenterAchievementVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterAchievements]", + value: parameters.fields[.gameCenterAchievements]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[localizations]", @@ -165,6 +167,62 @@ extension V2.GameCenterAchievementVersions.ById.GET { } } + public struct GameCenterAchievements: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var activityProperties: Self { + .init(rawValue: "activityProperties") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var points: Self { + .init(rawValue: "points") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var repeatable: Self { + .init(rawValue: "repeatable") + } + + public static var showBeforeEarned: Self { + .init(rawValue: "showBeforeEarned") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterAchievementLocalizations public static var gameCenterAchievementLocalizations: Relation<[GameCenterAchievementLocalizations]?> { @@ -176,6 +234,11 @@ extension V2.GameCenterAchievementVersions.ById.GET { .init(key: "fields[gameCenterAchievementVersions]") } + /// the fields to include for returned resources of type gameCenterAchievements + public static var gameCenterAchievements: Relation<[GameCenterAchievements]?> { + .init(key: "fields[gameCenterAchievements]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievements/ById/GameCenterAchievementsById.GET.8acf8fa.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievements/ById/GameCenterAchievementsById.GET.8acf8fa.generated.swift index 5b9e55cd..b23ea1bc 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievements/ById/GameCenterAchievementsById.GET.8acf8fa.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievements/ById/GameCenterAchievementsById.GET.8acf8fa.generated.swift @@ -32,6 +32,12 @@ extension V2.GameCenterAchievements.ById { value: parameters.fields[.gameCenterAchievementVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterAchievements]", value: parameters.fields[.gameCenterAchievements]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterActivities]", + value: parameters.fields[.gameCenterActivities]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterGroups]", + value: parameters.fields[.gameCenterGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[versions]", @@ -185,6 +191,234 @@ extension V2.GameCenterAchievements.ById.GET { } } + public struct GameCenterActivities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievements: Self { + .init(rawValue: "achievements") + } + + public static var achievementsV2: Self { + .init(rawValue: "achievementsV2") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var leaderboards: Self { + .init(rawValue: "leaderboards") + } + + public static var leaderboardsV2: Self { + .init(rawValue: "leaderboardsV2") + } + + public static var maximumPlayersCount: Self { + .init(rawValue: "maximumPlayersCount") + } + + public static var minimumPlayersCount: Self { + .init(rawValue: "minimumPlayersCount") + } + + public static var playStyle: Self { + .init(rawValue: "playStyle") + } + + public static var properties: Self { + .init(rawValue: "properties") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var supportsPartyCode: Self { + .init(rawValue: "supportsPartyCode") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterDetails: Self { + .init(rawValue: "gameCenterDetails") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterAchievementVersions public static var gameCenterAchievementVersions: Relation<[GameCenterAchievementVersions]?> { @@ -196,6 +430,21 @@ extension V2.GameCenterAchievements.ById.GET { .init(key: "fields[gameCenterAchievements]") } + /// the fields to include for returned resources of type gameCenterActivities + public static var gameCenterActivities: Relation<[GameCenterActivities]?> { + .init(key: "fields[gameCenterActivities]") + } + + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + + /// the fields to include for returned resources of type gameCenterGroups + public static var gameCenterGroups: Relation<[GameCenterGroups]?> { + .init(key: "fields[gameCenterGroups]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievements/ById/Relationships/Activity/GameCenterAchievementsByIdRelationshipsActivity.PATCH.a5f26d0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievements/ById/Relationships/Activity/GameCenterAchievementsByIdRelationshipsActivity.PATCH.a5f26d0.generated.swift index 52c5b00d..c8ae55c2 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievements/ById/Relationships/Activity/GameCenterAchievementsByIdRelationshipsActivity.PATCH.a5f26d0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterAchievements/ById/Relationships/Activity/GameCenterAchievementsByIdRelationshipsActivity.PATCH.a5f26d0.generated.swift @@ -46,6 +46,7 @@ extension V2.GameCenterAchievements.ById.Relationships.Activity { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V2.GameCenterAchievements.ById.Relationships.Activity { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardImages/ById/GameCenterLeaderboardImagesById.GET.d5db53d.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardImages/ById/GameCenterLeaderboardImagesById.GET.d5db53d.generated.swift index a6b96504..6854b751 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardImages/ById/GameCenterLeaderboardImagesById.GET.d5db53d.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardImages/ById/GameCenterLeaderboardImagesById.GET.d5db53d.generated.swift @@ -30,6 +30,8 @@ extension V2.GameCenterLeaderboardImages.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterLeaderboardImages]", value: parameters.fields[.gameCenterLeaderboardImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardLocalizations]", + value: parameters.fields[.gameCenterLeaderboardLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -131,12 +133,61 @@ extension V2.GameCenterLeaderboardImages.ById.GET { } } + public struct GameCenterLeaderboardLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var description: Self { + .init(rawValue: "description") + } + + public static var formatterOverride: Self { + .init(rawValue: "formatterOverride") + } + + public static var formatterSuffix: Self { + .init(rawValue: "formatterSuffix") + } + + public static var formatterSuffixSingular: Self { + .init(rawValue: "formatterSuffixSingular") + } + + public static var image: Self { + .init(rawValue: "image") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardImages public static var gameCenterLeaderboardImages: Relation<[GameCenterLeaderboardImages]?> { .init(key: "fields[gameCenterLeaderboardImages]") } + /// the fields to include for returned resources of type gameCenterLeaderboardLocalizations + public static var gameCenterLeaderboardLocalizations: Relation<[GameCenterLeaderboardLocalizations]?> { + .init(key: "fields[gameCenterLeaderboardLocalizations]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardLocalizations/ById/GameCenterLeaderboardLocalizationsById.GET.e18436e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardLocalizations/ById/GameCenterLeaderboardLocalizationsById.GET.e18436e.generated.swift index 357bcdcf..eea9e516 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardLocalizations/ById/GameCenterLeaderboardLocalizationsById.GET.e18436e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardLocalizations/ById/GameCenterLeaderboardLocalizationsById.GET.e18436e.generated.swift @@ -32,6 +32,8 @@ extension V2.GameCenterLeaderboardLocalizations.ById { value: parameters.fields[.gameCenterLeaderboardImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardLocalizations]", value: parameters.fields[.gameCenterLeaderboardLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardVersions]", + value: parameters.fields[.gameCenterLeaderboardVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -177,6 +179,34 @@ extension V2.GameCenterLeaderboardLocalizations.ById.GET { } } + public struct GameCenterLeaderboardVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var leaderboard: Self { + .init(rawValue: "leaderboard") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardImages public static var gameCenterLeaderboardImages: Relation<[GameCenterLeaderboardImages]?> { @@ -188,6 +218,11 @@ extension V2.GameCenterLeaderboardLocalizations.ById.GET { .init(key: "fields[gameCenterLeaderboardLocalizations]") } + /// the fields to include for returned resources of type gameCenterLeaderboardVersions + public static var gameCenterLeaderboardVersions: Relation<[GameCenterLeaderboardVersions]?> { + .init(key: "fields[gameCenterLeaderboardVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetImages/ById/GameCenterLeaderboardSetImagesById.GET.d928b8a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetImages/ById/GameCenterLeaderboardSetImagesById.GET.d928b8a.generated.swift index 362d7533..55d9dbcf 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetImages/ById/GameCenterLeaderboardSetImagesById.GET.d928b8a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetImages/ById/GameCenterLeaderboardSetImagesById.GET.d928b8a.generated.swift @@ -30,6 +30,8 @@ extension V2.GameCenterLeaderboardSetImages.ById { components?.queryItems = [ URLQueryItem(name: "fields[gameCenterLeaderboardSetImages]", value: parameters.fields[.gameCenterLeaderboardSetImages]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardSetLocalizations]", + value: parameters.fields[.gameCenterLeaderboardSetLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -131,12 +133,45 @@ extension V2.GameCenterLeaderboardSetImages.ById.GET { } } + public struct GameCenterLeaderboardSetLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var image: Self { + .init(rawValue: "image") + } + + public static var locale: Self { + .init(rawValue: "locale") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardSetImages public static var gameCenterLeaderboardSetImages: Relation<[GameCenterLeaderboardSetImages]?> { .init(key: "fields[gameCenterLeaderboardSetImages]") } + /// the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations + public static var gameCenterLeaderboardSetLocalizations: Relation<[GameCenterLeaderboardSetLocalizations]?> { + .init(key: "fields[gameCenterLeaderboardSetLocalizations]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetLocalizations/ById/GameCenterLeaderboardSetLocalizationsById.GET.76ea3c1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetLocalizations/ById/GameCenterLeaderboardSetLocalizationsById.GET.76ea3c1.generated.swift index 2775d934..aba5122d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetLocalizations/ById/GameCenterLeaderboardSetLocalizationsById.GET.76ea3c1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetLocalizations/ById/GameCenterLeaderboardSetLocalizationsById.GET.76ea3c1.generated.swift @@ -32,6 +32,8 @@ extension V2.GameCenterLeaderboardSetLocalizations.ById { value: parameters.fields[.gameCenterLeaderboardSetImages]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardSetLocalizations]", value: parameters.fields[.gameCenterLeaderboardSetLocalizations]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardSetVersions]", + value: parameters.fields[.gameCenterLeaderboardSetVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -161,6 +163,34 @@ extension V2.GameCenterLeaderboardSetLocalizations.ById.GET { } } + public struct GameCenterLeaderboardSetVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var leaderboardSet: Self { + .init(rawValue: "leaderboardSet") + } + + public static var localizations: Self { + .init(rawValue: "localizations") + } + + public static var state: Self { + .init(rawValue: "state") + } + + public static var version: Self { + .init(rawValue: "version") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardSetImages public static var gameCenterLeaderboardSetImages: Relation<[GameCenterLeaderboardSetImages]?> { @@ -172,6 +202,11 @@ extension V2.GameCenterLeaderboardSetLocalizations.ById.GET { .init(key: "fields[gameCenterLeaderboardSetLocalizations]") } + /// the fields to include for returned resources of type gameCenterLeaderboardSetVersions + public static var gameCenterLeaderboardSetVersions: Relation<[GameCenterLeaderboardSetVersions]?> { + .init(key: "fields[gameCenterLeaderboardSetVersions]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetVersions/ById/GameCenterLeaderboardSetVersionsById.GET.ee47006.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetVersions/ById/GameCenterLeaderboardSetVersionsById.GET.ee47006.generated.swift index b0d0c403..110c13f7 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetVersions/ById/GameCenterLeaderboardSetVersionsById.GET.ee47006.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSetVersions/ById/GameCenterLeaderboardSetVersionsById.GET.ee47006.generated.swift @@ -32,6 +32,8 @@ extension V2.GameCenterLeaderboardSetVersions.ById { value: parameters.fields[.gameCenterLeaderboardSetLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardSetVersions]", value: parameters.fields[.gameCenterLeaderboardSetVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardSets]", + value: parameters.fields[.gameCenterLeaderboardSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[localizations]", @@ -157,6 +159,42 @@ extension V2.GameCenterLeaderboardSetVersions.ById.GET { } } + public struct GameCenterLeaderboardSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations public static var gameCenterLeaderboardSetLocalizations: Relation<[GameCenterLeaderboardSetLocalizations]?> { @@ -168,6 +206,11 @@ extension V2.GameCenterLeaderboardSetVersions.ById.GET { .init(key: "fields[gameCenterLeaderboardSetVersions]") } + /// the fields to include for returned resources of type gameCenterLeaderboardSets + public static var gameCenterLeaderboardSets: Relation<[GameCenterLeaderboardSets]?> { + .init(key: "fields[gameCenterLeaderboardSets]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/GameCenterLeaderboardSetsById.GET.d2546a9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/GameCenterLeaderboardSetsById.GET.d2546a9.generated.swift index 7a2b618f..eacd32e1 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/GameCenterLeaderboardSetsById.GET.d2546a9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/GameCenterLeaderboardSetsById.GET.d2546a9.generated.swift @@ -28,6 +28,10 @@ extension V2.GameCenterLeaderboardSets.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterGroups]", + value: parameters.fields[.gameCenterGroups]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardSetVersions]", value: parameters.fields[.gameCenterLeaderboardSetVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardSets]", @@ -105,6 +109,162 @@ extension V2.GameCenterLeaderboardSets.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterDetails: Self { + .init(rawValue: "gameCenterDetails") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterLeaderboardSetVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var leaderboardSet: Self { .init(rawValue: "leaderboardSet") @@ -258,6 +418,16 @@ extension V2.GameCenterLeaderboardSets.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + + /// the fields to include for returned resources of type gameCenterGroups + public static var gameCenterGroups: Relation<[GameCenterGroups]?> { + .init(key: "fields[gameCenterGroups]") + } + /// the fields to include for returned resources of type gameCenterLeaderboardSetVersions public static var gameCenterLeaderboardSetVersions: Relation<[GameCenterLeaderboardSetVersions]?> { .init(key: "fields[gameCenterLeaderboardSetVersions]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.DELETE.95bf64e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.DELETE.95bf64e.generated.swift index 91b18bff..973f6c5c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.DELETE.95bf64e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.DELETE.95bf64e.generated.swift @@ -31,6 +31,7 @@ extension V2.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -44,6 +45,9 @@ extension V2.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.PATCH.95bf64e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.PATCH.95bf64e.generated.swift index f6ce7c33..4e7d1b29 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.PATCH.95bf64e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.PATCH.95bf64e.generated.swift @@ -46,6 +46,7 @@ extension V2.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V2.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.POST.95bf64e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.POST.95bf64e.generated.swift index c4c54a88..0591b26f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.POST.95bf64e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardSets/ById/Relationships/GameCenterLeaderboards/GameCenterLeaderboardSetsByIdRelationshipsGameCenterLeaderboards.POST.95bf64e.generated.swift @@ -46,6 +46,7 @@ extension V2.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V2.GameCenterLeaderboardSets.ById.Relationships.GameCenterLeaderboards } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardVersions/ById/GameCenterLeaderboardVersionsById.GET.6b36f33.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardVersions/ById/GameCenterLeaderboardVersionsById.GET.6b36f33.generated.swift index ce8a1304..7446b10d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardVersions/ById/GameCenterLeaderboardVersionsById.GET.6b36f33.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboardVersions/ById/GameCenterLeaderboardVersionsById.GET.6b36f33.generated.swift @@ -32,6 +32,8 @@ extension V2.GameCenterLeaderboardVersions.ById { value: parameters.fields[.gameCenterLeaderboardLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardVersions]", value: parameters.fields[.gameCenterLeaderboardVersions]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboards]", + value: parameters.fields[.gameCenterLeaderboards]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "limit[localizations]", @@ -173,6 +175,94 @@ extension V2.GameCenterLeaderboardVersions.ById.GET { } } + public struct GameCenterLeaderboards: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var activity: Self { + .init(rawValue: "activity") + } + + public static var activityProperties: Self { + .init(rawValue: "activityProperties") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var challenge: Self { + .init(rawValue: "challenge") + } + + public static var defaultFormatter: Self { + .init(rawValue: "defaultFormatter") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var recurrenceDuration: Self { + .init(rawValue: "recurrenceDuration") + } + + public static var recurrenceRule: Self { + .init(rawValue: "recurrenceRule") + } + + public static var recurrenceStartDate: Self { + .init(rawValue: "recurrenceStartDate") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var scoreRangeEnd: Self { + .init(rawValue: "scoreRangeEnd") + } + + public static var scoreRangeStart: Self { + .init(rawValue: "scoreRangeStart") + } + + public static var scoreSortType: Self { + .init(rawValue: "scoreSortType") + } + + public static var submissionType: Self { + .init(rawValue: "submissionType") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public static var visibility: Self { + .init(rawValue: "visibility") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type gameCenterLeaderboardLocalizations public static var gameCenterLeaderboardLocalizations: Relation<[GameCenterLeaderboardLocalizations]?> { @@ -184,6 +274,11 @@ extension V2.GameCenterLeaderboardVersions.ById.GET { .init(key: "fields[gameCenterLeaderboardVersions]") } + /// the fields to include for returned resources of type gameCenterLeaderboards + public static var gameCenterLeaderboards: Relation<[GameCenterLeaderboards]?> { + .init(key: "fields[gameCenterLeaderboards]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/GameCenterLeaderboardsById.GET.b852ef7.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/GameCenterLeaderboardsById.GET.b852ef7.generated.swift index 2e5f3c26..77dd2263 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/GameCenterLeaderboardsById.GET.b852ef7.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/GameCenterLeaderboardsById.GET.b852ef7.generated.swift @@ -28,6 +28,16 @@ extension V2.GameCenterLeaderboards.ById { components?.path = path components?.queryItems = [ + URLQueryItem(name: "fields[gameCenterActivities]", + value: parameters.fields[.gameCenterActivities]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterChallenges]", + value: parameters.fields[.gameCenterChallenges]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterDetails]", + value: parameters.fields[.gameCenterDetails]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterGroups]", + value: parameters.fields[.gameCenterGroups]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[gameCenterLeaderboardSets]", + value: parameters.fields[.gameCenterLeaderboardSets]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboardVersions]", value: parameters.fields[.gameCenterLeaderboardVersions]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[gameCenterLeaderboards]", @@ -103,6 +113,322 @@ extension V2.GameCenterLeaderboards.ById.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct GameCenterActivities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievements: Self { + .init(rawValue: "achievements") + } + + public static var achievementsV2: Self { + .init(rawValue: "achievementsV2") + } + + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var leaderboards: Self { + .init(rawValue: "leaderboards") + } + + public static var leaderboardsV2: Self { + .init(rawValue: "leaderboardsV2") + } + + public static var maximumPlayersCount: Self { + .init(rawValue: "maximumPlayersCount") + } + + public static var minimumPlayersCount: Self { + .init(rawValue: "minimumPlayersCount") + } + + public static var playStyle: Self { + .init(rawValue: "playStyle") + } + + public static var properties: Self { + .init(rawValue: "properties") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var supportsPartyCode: Self { + .init(rawValue: "supportsPartyCode") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterChallenges: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var archived: Self { + .init(rawValue: "archived") + } + + public static var challengeType: Self { + .init(rawValue: "challengeType") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var leaderboard: Self { + .init(rawValue: "leaderboard") + } + + public static var leaderboardV2: Self { + .init(rawValue: "leaderboardV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var repeatable: Self { + .init(rawValue: "repeatable") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterDetails: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var achievementReleases: Self { + .init(rawValue: "achievementReleases") + } + + public static var activityReleases: Self { + .init(rawValue: "activityReleases") + } + + public static var app: Self { + .init(rawValue: "app") + } + + public static var arcadeEnabled: Self { + .init(rawValue: "arcadeEnabled") + } + + public static var challengeEnabled: Self { + .init(rawValue: "challengeEnabled") + } + + public static var challengeReleases: Self { + .init(rawValue: "challengeReleases") + } + + public static var challengesMinimumPlatformVersions: Self { + .init(rawValue: "challengesMinimumPlatformVersions") + } + + public static var defaultGroupLeaderboard: Self { + .init(rawValue: "defaultGroupLeaderboard") + } + + public static var defaultGroupLeaderboardV2: Self { + .init(rawValue: "defaultGroupLeaderboardV2") + } + + public static var defaultLeaderboard: Self { + .init(rawValue: "defaultLeaderboard") + } + + public static var defaultLeaderboardV2: Self { + .init(rawValue: "defaultLeaderboardV2") + } + + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterAppVersions: Self { + .init(rawValue: "gameCenterAppVersions") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var leaderboardReleases: Self { + .init(rawValue: "leaderboardReleases") + } + + public static var leaderboardSetReleases: Self { + .init(rawValue: "leaderboardSetReleases") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterGroups: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterAchievements: Self { + .init(rawValue: "gameCenterAchievements") + } + + public static var gameCenterAchievementsV2: Self { + .init(rawValue: "gameCenterAchievementsV2") + } + + public static var gameCenterActivities: Self { + .init(rawValue: "gameCenterActivities") + } + + public static var gameCenterChallenges: Self { + .init(rawValue: "gameCenterChallenges") + } + + public static var gameCenterDetails: Self { + .init(rawValue: "gameCenterDetails") + } + + public static var gameCenterLeaderboardSets: Self { + .init(rawValue: "gameCenterLeaderboardSets") + } + + public static var gameCenterLeaderboardSetsV2: Self { + .init(rawValue: "gameCenterLeaderboardSetsV2") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var gameCenterLeaderboardsV2: Self { + .init(rawValue: "gameCenterLeaderboardsV2") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct GameCenterLeaderboardSets: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterGroup: Self { + .init(rawValue: "gameCenterGroup") + } + + public static var gameCenterLeaderboards: Self { + .init(rawValue: "gameCenterLeaderboards") + } + + public static var referenceName: Self { + .init(rawValue: "referenceName") + } + + public static var vendorIdentifier: Self { + .init(rawValue: "vendorIdentifier") + } + + public static var versions: Self { + .init(rawValue: "versions") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct GameCenterLeaderboardVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { public static var leaderboard: Self { .init(rawValue: "leaderboard") @@ -220,6 +546,31 @@ extension V2.GameCenterLeaderboards.ById.GET { } public struct Relation: Hashable { + /// the fields to include for returned resources of type gameCenterActivities + public static var gameCenterActivities: Relation<[GameCenterActivities]?> { + .init(key: "fields[gameCenterActivities]") + } + + /// the fields to include for returned resources of type gameCenterChallenges + public static var gameCenterChallenges: Relation<[GameCenterChallenges]?> { + .init(key: "fields[gameCenterChallenges]") + } + + /// the fields to include for returned resources of type gameCenterDetails + public static var gameCenterDetails: Relation<[GameCenterDetails]?> { + .init(key: "fields[gameCenterDetails]") + } + + /// the fields to include for returned resources of type gameCenterGroups + public static var gameCenterGroups: Relation<[GameCenterGroups]?> { + .init(key: "fields[gameCenterGroups]") + } + + /// the fields to include for returned resources of type gameCenterLeaderboardSets + public static var gameCenterLeaderboardSets: Relation<[GameCenterLeaderboardSets]?> { + .init(key: "fields[gameCenterLeaderboardSets]") + } + /// the fields to include for returned resources of type gameCenterLeaderboardVersions public static var gameCenterLeaderboardVersions: Relation<[GameCenterLeaderboardVersions]?> { .init(key: "fields[gameCenterLeaderboardVersions]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/Relationships/Activity/GameCenterLeaderboardsByIdRelationshipsActivity.PATCH.b2836fd.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/Relationships/Activity/GameCenterLeaderboardsByIdRelationshipsActivity.PATCH.b2836fd.generated.swift index 7fc74fa2..031931f7 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/Relationships/Activity/GameCenterLeaderboardsByIdRelationshipsActivity.PATCH.b2836fd.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/Relationships/Activity/GameCenterLeaderboardsByIdRelationshipsActivity.PATCH.b2836fd.generated.swift @@ -46,6 +46,7 @@ extension V2.GameCenterLeaderboards.ById.Relationships.Activity { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V2.GameCenterLeaderboards.ById.Relationships.Activity { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/Relationships/Challenge/GameCenterLeaderboardsByIdRelationshipsChallenge.PATCH.f1523bb.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/Relationships/Challenge/GameCenterLeaderboardsByIdRelationshipsChallenge.PATCH.f1523bb.generated.swift index 65d94e2a..50d530b0 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/Relationships/Challenge/GameCenterLeaderboardsByIdRelationshipsChallenge.PATCH.f1523bb.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/GameCenterLeaderboards/ById/Relationships/Challenge/GameCenterLeaderboardsByIdRelationshipsChallenge.PATCH.f1523bb.generated.swift @@ -46,6 +46,7 @@ extension V2.GameCenterLeaderboards.ById.Relationships.Challenge { return urlRequest } + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` /// - Throws: **403**, Forbidden error as `ErrorResponse` /// - Throws: **404**, Not found error as `ErrorResponse` @@ -59,6 +60,9 @@ extension V2.GameCenterLeaderboards.ById.Relationships.Challenge { } switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + case 401: throw try jsonDecoder.decode(ErrorResponse.self, from: data) diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V3/AppPricePoints/ById/AppPricePointsById.GET.ad74125.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V3/AppPricePoints/ById/AppPricePointsById.GET.ad74125.generated.swift index 440eb13e..c9618328 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V3/AppPricePoints/ById/AppPricePointsById.GET.ad74125.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V3/AppPricePoints/ById/AppPricePointsById.GET.ad74125.generated.swift @@ -30,6 +30,10 @@ extension V3.AppPricePoints.ById { components?.queryItems = [ URLQueryItem(name: "fields[appPricePoints]", value: parameters.fields[.appPricePoints]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[apps]", + value: parameters.fields[.apps]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", value: parameters.include?.map { "\($0)" }.joined(separator: ",")) ].filter { $0.value != nil } @@ -127,12 +131,270 @@ extension V3.AppPricePoints.ById.GET { } } + public struct Apps: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var accessibilityDeclarations: Self { + .init(rawValue: "accessibilityDeclarations") + } + + public static var accessibilityUrl: Self { + .init(rawValue: "accessibilityUrl") + } + + public static var alternativeDistributionKey: Self { + .init(rawValue: "alternativeDistributionKey") + } + + public static var analyticsReportRequests: Self { + .init(rawValue: "analyticsReportRequests") + } + + public static var androidToIosAppMappingDetails: Self { + .init(rawValue: "androidToIosAppMappingDetails") + } + + public static var appAvailabilityV2: Self { + .init(rawValue: "appAvailabilityV2") + } + + public static var appClips: Self { + .init(rawValue: "appClips") + } + + public static var appCustomProductPages: Self { + .init(rawValue: "appCustomProductPages") + } + + public static var appEncryptionDeclarations: Self { + .init(rawValue: "appEncryptionDeclarations") + } + + public static var appEvents: Self { + .init(rawValue: "appEvents") + } + + public static var appInfos: Self { + .init(rawValue: "appInfos") + } + + public static var appPricePoints: Self { + .init(rawValue: "appPricePoints") + } + + public static var appPriceSchedule: Self { + .init(rawValue: "appPriceSchedule") + } + + public static var appStoreIcon: Self { + .init(rawValue: "appStoreIcon") + } + + public static var appStoreVersionExperimentsV2: Self { + .init(rawValue: "appStoreVersionExperimentsV2") + } + + public static var appStoreVersions: Self { + .init(rawValue: "appStoreVersions") + } + + public static var appTags: Self { + .init(rawValue: "appTags") + } + + public static var backgroundAssets: Self { + .init(rawValue: "backgroundAssets") + } + + public static var betaAppLocalizations: Self { + .init(rawValue: "betaAppLocalizations") + } + + public static var betaAppReviewDetail: Self { + .init(rawValue: "betaAppReviewDetail") + } + + public static var betaFeedbackCrashSubmissions: Self { + .init(rawValue: "betaFeedbackCrashSubmissions") + } + + public static var betaFeedbackScreenshotSubmissions: Self { + .init(rawValue: "betaFeedbackScreenshotSubmissions") + } + + public static var betaGroups: Self { + .init(rawValue: "betaGroups") + } + + public static var betaLicenseAgreement: Self { + .init(rawValue: "betaLicenseAgreement") + } + + public static var betaTesters: Self { + .init(rawValue: "betaTesters") + } + + public static var buildUploads: Self { + .init(rawValue: "buildUploads") + } + + public static var builds: Self { + .init(rawValue: "builds") + } + + public static var bundleId: Self { + .init(rawValue: "bundleId") + } + + public static var ciProduct: Self { + .init(rawValue: "ciProduct") + } + + public static var contentRightsDeclaration: Self { + .init(rawValue: "contentRightsDeclaration") + } + + public static var customerReviewSummarizations: Self { + .init(rawValue: "customerReviewSummarizations") + } + + public static var customerReviews: Self { + .init(rawValue: "customerReviews") + } + + public static var endUserLicenseAgreement: Self { + .init(rawValue: "endUserLicenseAgreement") + } + + public static var gameCenterDetail: Self { + .init(rawValue: "gameCenterDetail") + } + + public static var gameCenterEnabledVersions: Self { + .init(rawValue: "gameCenterEnabledVersions") + } + + public static var inAppPurchases: Self { + .init(rawValue: "inAppPurchases") + } + + public static var inAppPurchasesV2: Self { + .init(rawValue: "inAppPurchasesV2") + } + + public static var isOrEverWasMadeForKids: Self { + .init(rawValue: "isOrEverWasMadeForKids") + } + + public static var marketplaceSearchDetail: Self { + .init(rawValue: "marketplaceSearchDetail") + } + + public static var name: Self { + .init(rawValue: "name") + } + + public static var perfPowerMetrics: Self { + .init(rawValue: "perfPowerMetrics") + } + + public static var preReleaseVersions: Self { + .init(rawValue: "preReleaseVersions") + } + + public static var primaryLocale: Self { + .init(rawValue: "primaryLocale") + } + + public static var promotedPurchases: Self { + .init(rawValue: "promotedPurchases") + } + + public static var reviewSubmissions: Self { + .init(rawValue: "reviewSubmissions") + } + + public static var searchKeywords: Self { + .init(rawValue: "searchKeywords") + } + + public static var sku: Self { + .init(rawValue: "sku") + } + + public static var streamlinedPurchasingEnabled: Self { + .init(rawValue: "streamlinedPurchasingEnabled") + } + + public static var subscriptionGracePeriod: Self { + .init(rawValue: "subscriptionGracePeriod") + } + + public static var subscriptionGroups: Self { + .init(rawValue: "subscriptionGroups") + } + + public static var subscriptionStatusUrl: Self { + .init(rawValue: "subscriptionStatusUrl") + } + + public static var subscriptionStatusUrlForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlForSandbox") + } + + public static var subscriptionStatusUrlVersion: Self { + .init(rawValue: "subscriptionStatusUrlVersion") + } + + public static var subscriptionStatusUrlVersionForSandbox: Self { + .init(rawValue: "subscriptionStatusUrlVersionForSandbox") + } + + public static var webhooks: Self { + .init(rawValue: "webhooks") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { /// the fields to include for returned resources of type appPricePoints public static var appPricePoints: Relation<[AppPricePoints]?> { .init(key: "fields[appPricePoints]") } + /// the fields to include for returned resources of type apps + public static var apps: Relation<[Apps]?> { + .init(key: "fields[apps]") + } + + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + internal let key: String public func hash(into hasher: inout Hasher) { diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppPriceV2InlineCreate.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppPriceV2InlineCreate.generated.swift index 7a9253a9..21fa188f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppPriceV2InlineCreate.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppPriceV2InlineCreate.generated.swift @@ -8,22 +8,98 @@ public struct AppPriceV2InlineCreate: Hashable, Codable, Sendable { public var type: `Type` + public var attributes: Attributes? + + public var relationships: Relationships? + public init( id: String? = nil, - type: `Type` + type: `Type`, + attributes: Attributes? = nil, + relationships: Relationships? = nil ) { self.id = id self.type = type + self.attributes = attributes + self.relationships = relationships } private enum CodingKeys: String, CodingKey { case id case type + case attributes + case relationships } public enum `Type`: String, Hashable, Codable, Sendable { case appPrices } + + public struct Attributes: Hashable, Codable, Sendable { + public var endDate: String? + + public var startDate: String? + + public init( + endDate: String? = nil, + startDate: String? = nil + ) { + self.endDate = endDate + self.startDate = startDate + } + + private enum CodingKeys: String, CodingKey { + case endDate + case startDate + } + } + + public struct Relationships: Hashable, Codable, Sendable { + public var appPricePoint: AppPricePoint? + + public init(appPricePoint: AppPricePoint? = nil) { + self.appPricePoint = appPricePoint + } + + private enum CodingKeys: String, CodingKey { + case appPricePoint + } + + public struct AppPricePoint: Hashable, Codable, Sendable { + public var data: Data? + + public init(data: Data? = nil) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case appPricePoints + } + } + } + } } // swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/CustomerReview.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/CustomerReview.generated.swift index 6b22dfbd..ec5ad3bd 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/CustomerReview.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/CustomerReview.generated.swift @@ -82,12 +82,19 @@ public struct CustomerReview: Hashable, Codable, Sendable { public struct Relationships: Hashable, Codable, Sendable { public var response: Response? - public init(response: Response? = nil) { + public var reviewTerritory: ReviewTerritory? + + public init( + response: Response? = nil, + reviewTerritory: ReviewTerritory? = nil + ) { self.response = response + self.reviewTerritory = reviewTerritory } private enum CodingKeys: String, CodingKey { case response + case reviewTerritory } public struct Response: Hashable, Codable, Sendable { @@ -131,6 +138,41 @@ public struct CustomerReview: Hashable, Codable, Sendable { } } } + + public struct ReviewTerritory: Hashable, Codable, Sendable { + public var data: Data? + + public init(data: Data? = nil) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case territories + } + } + } } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/GameCenterMatchmakingTestPlayerPropertyInlineCreate.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/GameCenterMatchmakingTestPlayerPropertyInlineCreate.generated.swift index 2be46278..8f66e074 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/GameCenterMatchmakingTestPlayerPropertyInlineCreate.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/GameCenterMatchmakingTestPlayerPropertyInlineCreate.generated.swift @@ -8,12 +8,12 @@ public struct GameCenterMatchmakingTestPlayerPropertyInlineCreate: Hashable, Cod public var type: `Type` - public var attributes: Attributes + public var attributes: Attributes? public init( id: String? = nil, type: `Type`, - attributes: Attributes + attributes: Attributes? = nil ) { self.id = id self.type = type @@ -31,12 +31,12 @@ public struct GameCenterMatchmakingTestPlayerPropertyInlineCreate: Hashable, Cod } public struct Attributes: Hashable, Codable, Sendable { - public var playerId: String + public var playerId: String? public var properties: [Property]? public init( - playerId: String, + playerId: String? = nil, properties: [Property]? = nil ) { self.playerId = playerId diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/GameCenterMatchmakingTestRequestInlineCreate.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/GameCenterMatchmakingTestRequestInlineCreate.generated.swift index 6fb498f8..87ee68d9 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/GameCenterMatchmakingTestRequestInlineCreate.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/GameCenterMatchmakingTestRequestInlineCreate.generated.swift @@ -8,14 +8,14 @@ public struct GameCenterMatchmakingTestRequestInlineCreate: Hashable, Codable, S public var type: `Type` - public var attributes: Attributes + public var attributes: Attributes? public var relationships: Relationships? public init( id: String? = nil, type: `Type`, - attributes: Attributes, + attributes: Attributes? = nil, relationships: Relationships? = nil ) { self.id = id @@ -36,9 +36,9 @@ public struct GameCenterMatchmakingTestRequestInlineCreate: Hashable, Codable, S } public struct Attributes: Hashable, Codable, Sendable { - public var appVersion: String + public var appVersion: String? - public var bundleId: String + public var bundleId: String? public var locale: Locale? @@ -48,25 +48,25 @@ public struct GameCenterMatchmakingTestRequestInlineCreate: Hashable, Codable, S public var minPlayers: Int? - public var platform: Platform + public var platform: Platform? public var playerCount: Int? - public var requestName: String + public var requestName: String? - public var secondsInQueue: Int + public var secondsInQueue: Int? public init( - appVersion: String, - bundleId: String, + appVersion: String? = nil, + bundleId: String? = nil, locale: Locale? = nil, location: Location? = nil, maxPlayers: Int? = nil, minPlayers: Int? = nil, - platform: Platform, + platform: Platform? = nil, playerCount: Int? = nil, - requestName: String, - secondsInQueue: Int + requestName: String? = nil, + secondsInQueue: Int? = nil ) { self.appVersion = appVersion self.bundleId = bundleId diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/CustomerReviewResponse.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/CustomerReviewResponse.generated.swift index 34356151..5ee2b119 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/CustomerReviewResponse.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/CustomerReviewResponse.generated.swift @@ -6,13 +6,13 @@ import Foundation public struct CustomerReviewResponse: Hashable, Codable, Sendable { public var data: CustomerReview - public var included: [CustomerReviewResponseV1]? + public var included: [Included]? public var links: DocumentLinks public init( data: CustomerReview, - included: [CustomerReviewResponseV1]? = nil, + included: [Included]? = nil, links: DocumentLinks ) { self.data = data @@ -25,6 +25,38 @@ public struct CustomerReviewResponse: Hashable, Codable, Sendable { case included case links } + + public enum Included: Hashable, Codable, Sendable { + case customerReviewResponseV1(CustomerReviewResponseV1) + case territory(Territory) + + public init(from decoder: Decoder) throws { + self = try { + var lastError: Error! + do { + return .customerReviewResponseV1(try CustomerReviewResponseV1(from: decoder)) + } catch { + lastError = error + } + do { + return .territory(try Territory(from: decoder)) + } catch { + lastError = error + } + throw lastError + }() + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .customerReviewResponseV1(let value): + try value.encode(to: encoder) + + case .territory(let value): + try value.encode(to: encoder) + } + } + } } // swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/CustomerReviewsResponse.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/CustomerReviewsResponse.generated.swift index b4e8b4de..54c465d8 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/CustomerReviewsResponse.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/CustomerReviewsResponse.generated.swift @@ -6,7 +6,7 @@ import Foundation public struct CustomerReviewsResponse: Hashable, Codable, Sendable { public var data: [CustomerReview] - public var included: [CustomerReviewResponseV1]? + public var included: [Included]? public var links: PagedDocumentLinks @@ -14,7 +14,7 @@ public struct CustomerReviewsResponse: Hashable, Codable, Sendable { public init( data: [CustomerReview], - included: [CustomerReviewResponseV1]? = nil, + included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil ) { @@ -30,6 +30,38 @@ public struct CustomerReviewsResponse: Hashable, Codable, Sendable { case links case meta } + + public enum Included: Hashable, Codable, Sendable { + case customerReviewResponseV1(CustomerReviewResponseV1) + case territory(Territory) + + public init(from decoder: Decoder) throws { + self = try { + var lastError: Error! + do { + return .customerReviewResponseV1(try CustomerReviewResponseV1(from: decoder)) + } catch { + lastError = error + } + do { + return .territory(try Territory(from: decoder)) + } catch { + lastError = error + } + throw lastError + }() + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .customerReviewResponseV1(let value): + try value.encode(to: encoder) + + case .territory(let value): + try value.encode(to: encoder) + } + } + } } // swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/TerritoryAvailability.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/TerritoryAvailability.generated.swift index 68cb0bdb..9a9f28df 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/TerritoryAvailability.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/TerritoryAvailability.generated.swift @@ -90,6 +90,10 @@ public struct TerritoryAvailability: Hashable, Codable, Sendable { .init(rawValue: "AVAILABLE_FOR_SALE_UNRELEASED_APP") } + public static var brazilGamblingNotVerified: Self { + .init(rawValue: "BRAZIL_GAMBLING_NOT_VERIFIED") + } + public static var brazilRequiredTaxId: Self { .init(rawValue: "BRAZIL_REQUIRED_TAX_ID") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/TerritoryAvailabilityInlineCreate.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/TerritoryAvailabilityInlineCreate.generated.swift index 37939c18..f971bfa9 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/TerritoryAvailabilityInlineCreate.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/TerritoryAvailabilityInlineCreate.generated.swift @@ -8,22 +8,103 @@ public struct TerritoryAvailabilityInlineCreate: Hashable, Codable, Sendable { public var type: `Type` + public var attributes: Attributes? + + public var relationships: Relationships? + public init( id: String? = nil, - type: `Type` + type: `Type`, + attributes: Attributes? = nil, + relationships: Relationships? = nil ) { self.id = id self.type = type + self.attributes = attributes + self.relationships = relationships } private enum CodingKeys: String, CodingKey { case id case type + case attributes + case relationships } public enum `Type`: String, Hashable, Codable, Sendable { case territoryAvailabilities } + + public struct Attributes: Hashable, Codable, Sendable { + public var available: Bool? + + public var preOrderEnabled: Bool? + + public var releaseDate: String? + + public init( + available: Bool? = nil, + preOrderEnabled: Bool? = nil, + releaseDate: String? = nil + ) { + self.available = available + self.preOrderEnabled = preOrderEnabled + self.releaseDate = releaseDate + } + + private enum CodingKeys: String, CodingKey { + case available + case preOrderEnabled + case releaseDate + } + } + + public struct Relationships: Hashable, Codable, Sendable { + public var territory: Territory? + + public init(territory: Territory? = nil) { + self.territory = territory + } + + private enum CodingKeys: String, CodingKey { + case territory + } + + public struct Territory: Hashable, Codable, Sendable { + public var data: Data? + + public init(data: Data? = nil) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case territories + } + } + } + } } // swiftlint:enable all