Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,6 @@ public enum V1 {

public enum AppStoreVersions {
public enum ById {
public enum AgeRatingDeclaration {}

public enum AlternativeDistributionPackage {}

public enum AppClipDefaultExperience {}
Expand All @@ -453,8 +451,6 @@ public enum V1 {
public enum GameCenterAppVersion {}

public enum Relationships {
public enum AgeRatingDeclaration {}

public enum AlternativeDistributionPackage {}

public enum AppClipDefaultExperience {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AccessibilityDeclarations.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AccessibilityDeclarations.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AlternativeDistributionDomains.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AlternativeDistributionDomains.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AlternativeDistributionKeys.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AlternativeDistributionKeys.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AnalyticsReportRequests.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AnalyticsReportRequests.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AndroidToIosAppMappingDetails.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AndroidToIosAppMappingDetails.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AppClipDefaultExperienceLocalizations.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AppClipDefaultExperienceLocalizations.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AppClipDefaultExperiences.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AppClipDefaultExperiences.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,6 @@ extension V1.AppClipDefaultExperiences.ById.GET {
}

public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
public static var ageRatingDeclaration: Self {
.init(rawValue: "ageRatingDeclaration")
}

public static var alternativeDistributionPackage: Self {
.init(rawValue: "alternativeDistributionPackage")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ extension V1.AppClipDefaultExperiences.ById.ReleaseWithAppStoreVersion {
components?.path = path

components?.queryItems = [
URLQueryItem(name: "fields[ageRatingDeclarations]",
value: parameters.fields[.ageRatingDeclarations]?.map { "\($0)" }.joined(separator: ",")),
URLQueryItem(name: "fields[alternativeDistributionPackages]",
value: parameters.fields[.alternativeDistributionPackages]?.map { "\($0)" }.joined(separator: ",")),
URLQueryItem(name: "fields[appClipDefaultExperiences]",
Expand Down Expand Up @@ -127,126 +125,6 @@ extension V1.AppClipDefaultExperiences.ById.ReleaseWithAppStoreVersion.GET {

private var values: [AnyHashable: AnyHashable] = [:]

public struct AgeRatingDeclarations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
public static var advertising: Self {
.init(rawValue: "advertising")
}

public static var ageAssurance: Self {
.init(rawValue: "ageAssurance")
}

public static var ageRatingOverride: Self {
.init(rawValue: "ageRatingOverride")
}

public static var ageRatingOverrideV2: Self {
.init(rawValue: "ageRatingOverrideV2")
}

public static var alcoholTobaccoOrDrugUseOrReferences: Self {
.init(rawValue: "alcoholTobaccoOrDrugUseOrReferences")
}

public static var contests: Self {
.init(rawValue: "contests")
}

public static var developerAgeRatingInfoUrl: Self {
.init(rawValue: "developerAgeRatingInfoUrl")
}

public static var gambling: Self {
.init(rawValue: "gambling")
}

public static var gamblingSimulated: Self {
.init(rawValue: "gamblingSimulated")
}

public static var gunsOrOtherWeapons: Self {
.init(rawValue: "gunsOrOtherWeapons")
}

public static var healthOrWellnessTopics: Self {
.init(rawValue: "healthOrWellnessTopics")
}

public static var horrorOrFearThemes: Self {
.init(rawValue: "horrorOrFearThemes")
}

public static var kidsAgeBand: Self {
.init(rawValue: "kidsAgeBand")
}

public static var koreaAgeRatingOverride: Self {
.init(rawValue: "koreaAgeRatingOverride")
}

public static var lootBox: Self {
.init(rawValue: "lootBox")
}

public static var matureOrSuggestiveThemes: Self {
.init(rawValue: "matureOrSuggestiveThemes")
}

public static var medicalOrTreatmentInformation: Self {
.init(rawValue: "medicalOrTreatmentInformation")
}

public static var messagingAndChat: Self {
.init(rawValue: "messagingAndChat")
}

public static var parentalControls: Self {
.init(rawValue: "parentalControls")
}

public static var profanityOrCrudeHumor: Self {
.init(rawValue: "profanityOrCrudeHumor")
}

public static var sexualContentGraphicAndNudity: Self {
.init(rawValue: "sexualContentGraphicAndNudity")
}

public static var sexualContentOrNudity: Self {
.init(rawValue: "sexualContentOrNudity")
}

public static var unrestrictedWebAccess: Self {
.init(rawValue: "unrestrictedWebAccess")
}

public static var userGeneratedContent: Self {
.init(rawValue: "userGeneratedContent")
}

public static var violenceCartoonOrFantasy: Self {
.init(rawValue: "violenceCartoonOrFantasy")
}

public static var violenceRealistic: Self {
.init(rawValue: "violenceRealistic")
}

public static var violenceRealisticProlongedGraphicOrSadistic: Self {
.init(rawValue: "violenceRealisticProlongedGraphicOrSadistic")
}

public var description: String {
rawValue
}

public var rawValue: String

public init(rawValue: String) {
self.rawValue = rawValue
}
}

public struct AlternativeDistributionPackages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
public static var sourceFileChecksum: Self {
.init(rawValue: "sourceFileChecksum")
Expand Down Expand Up @@ -512,10 +390,6 @@ extension V1.AppClipDefaultExperiences.ById.ReleaseWithAppStoreVersion.GET {
}

public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
public static var ageRatingDeclaration: Self {
.init(rawValue: "ageRatingDeclaration")
}

public static var alternativeDistributionPackage: Self {
.init(rawValue: "alternativeDistributionPackage")
}
Expand Down Expand Up @@ -1032,11 +906,6 @@ extension V1.AppClipDefaultExperiences.ById.ReleaseWithAppStoreVersion.GET {
}

public struct Relation<T>: Hashable {
/// the fields to include for returned resources of type ageRatingDeclarations
public static var ageRatingDeclarations: Relation<[AgeRatingDeclarations]?> {
.init(key: "fields[ageRatingDeclarations]")
}

/// the fields to include for returned resources of type alternativeDistributionPackages
public static var alternativeDistributionPackages: Relation<[AlternativeDistributionPackages]?> {
.init(key: "fields[alternativeDistributionPackages]")
Expand Down Expand Up @@ -1106,10 +975,6 @@ extension V1.AppClipDefaultExperiences.ById.ReleaseWithAppStoreVersion.GET {
}

public struct Include: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
public static var ageRatingDeclaration: Self {
.init(rawValue: "ageRatingDeclaration")
}

public static var alternativeDistributionPackage: Self {
.init(rawValue: "alternativeDistributionPackage")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AppClipHeaderImages.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AppClipHeaderImages.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,6 @@ extension V1.AppClips.ById.AppClipDefaultExperiences.GET {
}

public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
public static var ageRatingDeclaration: Self {
.init(rawValue: "ageRatingDeclaration")
}

public static var alternativeDistributionPackage: Self {
.init(rawValue: "alternativeDistributionPackage")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AppCustomProductPageLocalizations.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AppCustomProductPageLocalizations.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extension V1.AppCustomProductPages.ById {
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
/// - Throws: **403**, Forbidden error as `ErrorResponse`
/// - Throws: **404**, Not found error as `ErrorResponse`
/// - Throws: **409**, Request entity error(s) as `ErrorResponse`
/// - Throws: **429**, Rate limit exceeded error as `ErrorResponse`
public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response {
var jsonDecoder: JSONDecoder {
Expand All @@ -56,9 +55,6 @@ extension V1.AppCustomProductPages.ById {
case 404:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 409:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

case 429:
throw try jsonDecoder.decode(ErrorResponse.self, from: data)

Expand Down
Loading