From a73815c255562e261a20fb9d4aa12b04ab70025a Mon Sep 17 00:00:00 2001 From: Pol Piella Abadia Date: Wed, 6 Mar 2024 15:22:44 +0100 Subject: [PATCH] Updates Generated code to `v3.4` --- .../AlternativeDistributionPackageDelta.swift | 6 +- ...lternativeDistributionPackageVariant.swift | 6 +- ...lternativeDistributionPackageVersion.swift | 6 +- .../Generated/Entities/AnalyticsReport.swift | 68 + .../Entities/AnalyticsReportInstance.swift | 66 + .../AnalyticsReportInstanceResponse.swift | 27 + .../AnalyticsReportInstancesResponse.swift | 30 + .../Entities/AnalyticsReportRequest.swift | 161 ++ .../AnalyticsReportRequestCreateRequest.swift | 137 + .../AnalyticsReportRequestResponse.swift | 31 + .../AnalyticsReportRequestsResponse.swift | 34 + ...se.swift => AnalyticsReportResponse.swift} | 10 +- .../Entities/AnalyticsReportSegment.swift | 64 + .../AnalyticsReportSegmentResponse.swift | 27 + .../AnalyticsReportSegmentsResponse.swift | 30 + ...e.swift => AnalyticsReportsResponse.swift} | 8 +- .../BetaGroupsWithoutIncludesResponse.swift | 6 +- .../BetaTestersWithoutIncludesResponse.swift | 6 +- .../Generated/Entities/MetricsInsight.swift | 6 +- .../Generated/Entities/XcodeMetrics.swift | 8 +- ...ativeDistributionPackageDeltasWithID.swift | 1 + ...iveDistributionPackageVariantsWithID.swift | 1 + ...iveDistributionPackageVersionsWithID.swift | 3 + ...tributionPackageVersionsWithIDDeltas.swift | 1 + ...ibutionPackageVersionsWithIDVariants.swift | 1 + ...lternativeDistributionPackagesWithID.swift | 1 + ...veDistributionPackagesWithIDVersions.swift | 3 + .../PathsV1AnalyticsReportInstances.swift | 16 + ...athsV1AnalyticsReportInstancesWithID.swift | 39 + ...csReportInstancesWithIDRelationships.swift | 16 + ...InstancesWithIDRelationshipsSegments.swift | 16 + ...alyticsReportInstancesWithIDSegments.swift | 33 + .../PathsV1AnalyticsReportRequests.swift | 20 + ...PathsV1AnalyticsReportRequestsWithID.swift | 64 + ...icsReportRequestsWithIDRelationships.swift | 16 + ...rtRequestsWithIDRelationshipsReports.swift | 16 + ...AnalyticsReportRequestsWithIDReports.swift | 57 + .../PathsV1AnalyticsReportSegments.swift | 16 + ...PathsV1AnalyticsReportSegmentsWithID.swift | 32 + .../Paths/PathsV1AnalyticsReports.swift | 16 + .../Paths/PathsV1AnalyticsReportsWithID.swift | 39 + ...thsV1AnalyticsReportsWithIDInstances.swift | 55 + ...1AnalyticsReportsWithIDRelationships.swift | 16 + ...sReportsWithIDRelationshipsInstances.swift | 16 + ...ncesWithIDReleaseWithAppStoreVersion.swift | 1 + .../PathsV1AppEncryptionDeclarations.swift | 1 + ...thsV1AppEncryptionDeclarationsWithID.swift | 1 + ...V1AppEncryptionDeclarationsWithIDApp.swift | 1 + ...WithIDAlternativeDistributionPackage.swift | 1 + ...nsWithIDAppStoreVersionExperimentsV2.swift | 1 + ...nsWithIDAppStoreVersionLocalizations.swift | 117 +- .../OpenAPI/Generated/Paths/PathsV1Apps.swift | 34 +- .../Generated/Paths/PathsV1AppsWithID.swift | 13 +- ...sV1AppsWithIDAnalyticsReportRequests.swift | 71 + .../PathsV1AppsWithIDAppAvailability.swift | 1 + .../Paths/PathsV1AppsWithIDAppClips.swift | 1 + ...thsV1AppsWithIDAppCustomProductPages.swift | 1 + ...1AppsWithIDAppEncryptionDeclarations.swift | 1 + .../Paths/PathsV1AppsWithIDAppInfos.swift | 1 + .../PathsV1AppsWithIDAppPricePoints.swift | 1 + .../PathsV1AppsWithIDAppPriceSchedule.swift | 1 + ...psWithIDAppStoreVersionExperimentsV2.swift | 1 + .../PathsV1AppsWithIDAppStoreVersions.swift | 1 + .../Paths/PathsV1AppsWithIDCiProduct.swift | 1 + .../PathsV1AppsWithIDGameCenterDetail.swift | 1 + ...1AppsWithIDGameCenterEnabledVersions.swift | 1 + .../PathsV1AppsWithIDInAppPurchases.swift | 1 + .../Paths/PathsV1AppsWithIDPricePoints.swift | 1 + .../Paths/PathsV1AppsWithIDPrices.swift | 1 + ...RelationshipsAnalyticsReportRequests.swift | 16 + .../PathsV1AppsWithIDReviewSubmissions.swift | 1 + .../Paths/PathsV1BetaAppLocalizations.swift | 1 + .../PathsV1BetaAppLocalizationsWithID.swift | 1 + ...PathsV1BetaAppLocalizationsWithIDApp.swift | 1 + .../Paths/PathsV1BetaAppReviewDetails.swift | 1 + .../PathsV1BetaAppReviewDetailsWithID.swift | 1 + ...PathsV1BetaAppReviewDetailsWithIDApp.swift | 1 + .../Generated/Paths/PathsV1BetaGroups.swift | 1 + .../Paths/PathsV1BetaGroupsWithID.swift | 1 + .../Paths/PathsV1BetaGroupsWithIDApp.swift | 1 + .../Paths/PathsV1BetaLicenseAgreements.swift | 1 + .../PathsV1BetaLicenseAgreementsWithID.swift | 1 + ...athsV1BetaLicenseAgreementsWithIDApp.swift | 1 + .../Generated/Paths/PathsV1BetaTesters.swift | 1 + .../Paths/PathsV1BetaTestersWithID.swift | 1 + .../Paths/PathsV1BetaTestersWithIDApps.swift | 1 + .../Generated/Paths/PathsV1Builds.swift | 1 + .../Generated/Paths/PathsV1BuildsWithID.swift | 1 + .../Paths/PathsV1BuildsWithIDApp.swift | 1 + .../PathsV1BuildsWithIDAppStoreVersion.swift | 1 + .../PathsV1BuildsWithIDBuildBetaDetail.swift | 69 +- .../Generated/Paths/PathsV1BundleIDs.swift | 1 + .../Paths/PathsV1BundleIDsWithID.swift | 1 + .../Paths/PathsV1BundleIDsWithIDApp.swift | 1 + .../PathsV1CiBuildRunsWithIDBuilds.swift | 1 + .../Generated/Paths/PathsV1CiProducts.swift | 1 + .../Paths/PathsV1CiProductsWithID.swift | 1 + .../Paths/PathsV1CiProductsWithIDApp.swift | 1 + ...nterAppVersionsWithIDAppStoreVersion.swift | 1 + ...bledVersionsWithIDCompatibleVersions.swift | 1 + ...eCenterGroupsWithIDGameCenterDetails.swift | 1 + .../Paths/PathsV1PreReleaseVersions.swift | 1 + .../PathsV1PreReleaseVersionsWithID.swift | 1 + .../PathsV1PreReleaseVersionsWithIDApp.swift | 1 + .../Generated/Paths/PathsV1SalesReports.swift | 1 + .../Paths/PathsV1UserInvitations.swift | 1 + .../Paths/PathsV1UserInvitationsWithID.swift | 1 + ...hsV1UserInvitationsWithIDVisibleApps.swift | 1 + .../Generated/Paths/PathsV1Users.swift | 1 + .../Generated/Paths/PathsV1UsersWithID.swift | 1 + .../Paths/PathsV1UsersWithIDVisibleApps.swift | 1 + ...sV3AppPricePointsWithIDEqualizations.swift | 1 + Sources/OpenAPI/app_store_connect_api.json | 2357 +++++++++++++++-- 113 files changed, 3690 insertions(+), 280 deletions(-) create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReport.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportInstance.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportInstanceResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportInstancesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestsResponse.swift rename Sources/OpenAPI/Generated/Entities/{BuildBetaDetailWithoutIncludesResponse.swift => AnalyticsReportResponse.swift} (70%) create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportSegment.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportSegmentResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AnalyticsReportSegmentsResponse.swift rename Sources/OpenAPI/Generated/Entities/{AppStoreVersionLocalizationsWithoutIncludesResponse.swift => AnalyticsReportsResponse.swift} (76%) create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstances.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDRelationshipsSegments.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDSegments.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequests.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDRelationshipsReports.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDReports.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportSegments.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportSegmentsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReports.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDInstances.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDRelationshipsInstances.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAnalyticsReportRequests.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAnalyticsReportRequests.swift diff --git a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageDelta.swift b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageDelta.swift index fba454b6..2f98a0b5 100644 --- a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageDelta.swift +++ b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageDelta.swift @@ -17,11 +17,13 @@ public struct AlternativeDistributionPackageDelta: Codable, Identifiable { public var url: URL? public var urlExpirationDate: Date? public var alternativeDistributionKeyBlob: String? + public var fileChecksum: String? - public init(url: URL? = nil, urlExpirationDate: Date? = nil, alternativeDistributionKeyBlob: String? = nil) { + public init(url: URL? = nil, urlExpirationDate: Date? = nil, alternativeDistributionKeyBlob: String? = nil, fileChecksum: String? = nil) { self.url = url self.urlExpirationDate = urlExpirationDate self.alternativeDistributionKeyBlob = alternativeDistributionKeyBlob + self.fileChecksum = fileChecksum } public init(from decoder: Decoder) throws { @@ -29,6 +31,7 @@ public struct AlternativeDistributionPackageDelta: Codable, Identifiable { self.url = try values.decodeIfPresent(URL.self, forKey: "url") self.urlExpirationDate = try values.decodeIfPresent(Date.self, forKey: "urlExpirationDate") self.alternativeDistributionKeyBlob = try values.decodeIfPresent(String.self, forKey: "alternativeDistributionKeyBlob") + self.fileChecksum = try values.decodeIfPresent(String.self, forKey: "fileChecksum") } public func encode(to encoder: Encoder) throws { @@ -36,6 +39,7 @@ public struct AlternativeDistributionPackageDelta: Codable, Identifiable { try values.encodeIfPresent(url, forKey: "url") try values.encodeIfPresent(urlExpirationDate, forKey: "urlExpirationDate") try values.encodeIfPresent(alternativeDistributionKeyBlob, forKey: "alternativeDistributionKeyBlob") + try values.encodeIfPresent(fileChecksum, forKey: "fileChecksum") } } diff --git a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageVariant.swift b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageVariant.swift index 92d42118..20c0445c 100644 --- a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageVariant.swift +++ b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageVariant.swift @@ -17,11 +17,13 @@ public struct AlternativeDistributionPackageVariant: Codable, Identifiable { public var url: URL? public var urlExpirationDate: Date? public var alternativeDistributionKeyBlob: String? + public var fileChecksum: String? - public init(url: URL? = nil, urlExpirationDate: Date? = nil, alternativeDistributionKeyBlob: String? = nil) { + public init(url: URL? = nil, urlExpirationDate: Date? = nil, alternativeDistributionKeyBlob: String? = nil, fileChecksum: String? = nil) { self.url = url self.urlExpirationDate = urlExpirationDate self.alternativeDistributionKeyBlob = alternativeDistributionKeyBlob + self.fileChecksum = fileChecksum } public init(from decoder: Decoder) throws { @@ -29,6 +31,7 @@ public struct AlternativeDistributionPackageVariant: Codable, Identifiable { self.url = try values.decodeIfPresent(URL.self, forKey: "url") self.urlExpirationDate = try values.decodeIfPresent(Date.self, forKey: "urlExpirationDate") self.alternativeDistributionKeyBlob = try values.decodeIfPresent(String.self, forKey: "alternativeDistributionKeyBlob") + self.fileChecksum = try values.decodeIfPresent(String.self, forKey: "fileChecksum") } public func encode(to encoder: Encoder) throws { @@ -36,6 +39,7 @@ public struct AlternativeDistributionPackageVariant: Codable, Identifiable { try values.encodeIfPresent(url, forKey: "url") try values.encodeIfPresent(urlExpirationDate, forKey: "urlExpirationDate") try values.encodeIfPresent(alternativeDistributionKeyBlob, forKey: "alternativeDistributionKeyBlob") + try values.encodeIfPresent(fileChecksum, forKey: "fileChecksum") } } diff --git a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageVersion.swift b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageVersion.swift index 3bbe195d..e5db1aae 100644 --- a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionPackageVersion.swift @@ -18,6 +18,7 @@ public struct AlternativeDistributionPackageVersion: Codable, Identifiable { public var url: URL? public var urlExpirationDate: Date? public var version: String? + public var fileChecksum: String? public var state: State? public enum State: String, Codable, CaseIterable { @@ -25,10 +26,11 @@ public struct AlternativeDistributionPackageVersion: Codable, Identifiable { case replaced = "REPLACED" } - public init(url: URL? = nil, urlExpirationDate: Date? = nil, version: String? = nil, state: State? = nil) { + public init(url: URL? = nil, urlExpirationDate: Date? = nil, version: String? = nil, fileChecksum: String? = nil, state: State? = nil) { self.url = url self.urlExpirationDate = urlExpirationDate self.version = version + self.fileChecksum = fileChecksum self.state = state } @@ -37,6 +39,7 @@ public struct AlternativeDistributionPackageVersion: Codable, Identifiable { self.url = try values.decodeIfPresent(URL.self, forKey: "url") self.urlExpirationDate = try values.decodeIfPresent(Date.self, forKey: "urlExpirationDate") self.version = try values.decodeIfPresent(String.self, forKey: "version") + self.fileChecksum = try values.decodeIfPresent(String.self, forKey: "fileChecksum") self.state = try values.decodeIfPresent(State.self, forKey: "state") } @@ -45,6 +48,7 @@ public struct AlternativeDistributionPackageVersion: Codable, Identifiable { try values.encodeIfPresent(url, forKey: "url") try values.encodeIfPresent(urlExpirationDate, forKey: "urlExpirationDate") try values.encodeIfPresent(version, forKey: "version") + try values.encodeIfPresent(fileChecksum, forKey: "fileChecksum") try values.encodeIfPresent(state, forKey: "state") } } diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReport.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReport.swift new file mode 100644 index 00000000..26606a9f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReport.swift @@ -0,0 +1,68 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReport: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case analyticsReports + } + + public struct Attributes: Codable { + public var name: String? + public var category: Category? + + public enum Category: String, Codable, CaseIterable { + case appUsage = "APP_USAGE" + case appStoreEngagement = "APP_STORE_ENGAGEMENT" + case commerce = "COMMERCE" + case frameworkUsage = "FRAMEWORK_USAGE" + case performance = "PERFORMANCE" + } + + public init(name: String? = nil, category: Category? = nil) { + self.name = name + self.category = category + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.category = try values.decodeIfPresent(Category.self, forKey: "category") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(category, forKey: "category") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstance.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstance.swift new file mode 100644 index 00000000..75973156 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstance.swift @@ -0,0 +1,66 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportInstance: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case analyticsReportInstances + } + + public struct Attributes: Codable { + public var granularity: Granularity? + public var processingDate: String? + + public enum Granularity: String, Codable, CaseIterable { + case daily = "DAILY" + case weekly = "WEEKLY" + case monthly = "MONTHLY" + } + + public init(granularity: Granularity? = nil, processingDate: String? = nil) { + self.granularity = granularity + self.processingDate = processingDate + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.granularity = try values.decodeIfPresent(Granularity.self, forKey: "granularity") + self.processingDate = try values.decodeIfPresent(String.self, forKey: "processingDate") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(granularity, forKey: "granularity") + try values.encodeIfPresent(processingDate, forKey: "processingDate") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstanceResponse.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstanceResponse.swift new file mode 100644 index 00000000..7a1e8b6b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstanceResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportInstanceResponse: Codable { + /// AnalyticsReportInstance + public var data: AnalyticsReportInstance + public var links: DocumentLinks + + public init(data: AnalyticsReportInstance, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AnalyticsReportInstance.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstancesResponse.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstancesResponse.swift new file mode 100644 index 00000000..043763b2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportInstancesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportInstancesResponse: Codable { + public var data: [AnalyticsReportInstance] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [AnalyticsReportInstance], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([AnalyticsReportInstance].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequest.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequest.swift new file mode 100644 index 00000000..3a3e226a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequest.swift @@ -0,0 +1,161 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportRequest: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case analyticsReportRequests + } + + public struct Attributes: Codable { + public var accessType: AccessType? + public var isStoppedDueToInactivity: Bool? + + public enum AccessType: String, Codable, CaseIterable { + case oneTimeSnapshot = "ONE_TIME_SNAPSHOT" + case ongoing = "ONGOING" + } + + public init(accessType: AccessType? = nil, isStoppedDueToInactivity: Bool? = nil) { + self.accessType = accessType + self.isStoppedDueToInactivity = isStoppedDueToInactivity + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.accessType = try values.decodeIfPresent(AccessType.self, forKey: "accessType") + self.isStoppedDueToInactivity = try values.decodeIfPresent(Bool.self, forKey: "stoppedDueToInactivity") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(accessType, forKey: "accessType") + try values.encodeIfPresent(isStoppedDueToInactivity, forKey: "stoppedDueToInactivity") + } + } + + public struct Relationships: Codable { + public var reports: Reports? + + public struct Reports: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case analyticsReports + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(reports: Reports? = nil) { + self.reports = reports + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.reports = try values.decodeIfPresent(Reports.self, forKey: "reports") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(reports, forKey: "reports") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestCreateRequest.swift new file mode 100644 index 00000000..e35207e5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestCreateRequest.swift @@ -0,0 +1,137 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportRequestCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case analyticsReportRequests + } + + public struct Attributes: Codable { + public var accessType: AccessType + + public enum AccessType: String, Codable, CaseIterable { + case oneTimeSnapshot = "ONE_TIME_SNAPSHOT" + case ongoing = "ONGOING" + } + + public init(accessType: AccessType) { + self.accessType = accessType + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.accessType = try values.decode(AccessType.self, forKey: "accessType") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(accessType, forKey: "accessType") + } + } + + public struct Relationships: Codable { + public var app: App + + public struct App: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case apps + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(app: App) { + self.app = app + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.app = try values.decode(App.self, forKey: "app") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(app, forKey: "app") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestResponse.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestResponse.swift new file mode 100644 index 00000000..37a78e74 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestResponse.swift @@ -0,0 +1,31 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportRequestResponse: Codable { + /// AnalyticsReportRequest + public var data: AnalyticsReportRequest + public var included: [AnalyticsReport]? + public var links: DocumentLinks + + public init(data: AnalyticsReportRequest, included: [AnalyticsReport]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AnalyticsReportRequest.self, forKey: "data") + self.included = try values.decodeIfPresent([AnalyticsReport].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestsResponse.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestsResponse.swift new file mode 100644 index 00000000..4b259cc0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportRequestsResponse.swift @@ -0,0 +1,34 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportRequestsResponse: Codable { + public var data: [AnalyticsReportRequest] + public var included: [AnalyticsReport]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [AnalyticsReportRequest], included: [AnalyticsReport]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([AnalyticsReportRequest].self, forKey: "data") + self.included = try values.decodeIfPresent([AnalyticsReport].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportResponse.swift similarity index 70% rename from Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift rename to Sources/OpenAPI/Generated/Entities/AnalyticsReportResponse.swift index 29fbe6a7..660e5f84 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportResponse.swift @@ -3,19 +3,19 @@ import Foundation -public struct BuildBetaDetailWithoutIncludesResponse: Codable { - /// Build - public var data: Build +public struct AnalyticsReportResponse: Codable { + /// AnalyticsReport + public var data: AnalyticsReport public var links: DocumentLinks - public init(data: Build, links: DocumentLinks) { + public init(data: AnalyticsReport, links: DocumentLinks) { self.data = data self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.data = try values.decode(Build.self, forKey: "data") + self.data = try values.decode(AnalyticsReport.self, forKey: "data") self.links = try values.decode(DocumentLinks.self, forKey: "links") } diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegment.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegment.swift new file mode 100644 index 00000000..34a441e4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegment.swift @@ -0,0 +1,64 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportSegment: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case analyticsReportSegments + } + + public struct Attributes: Codable { + public var checksum: String? + public var sizeInBytes: Int? + public var url: URL? + + public init(checksum: String? = nil, sizeInBytes: Int? = nil, url: URL? = nil) { + self.checksum = checksum + self.sizeInBytes = sizeInBytes + self.url = url + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.checksum = try values.decodeIfPresent(String.self, forKey: "checksum") + self.sizeInBytes = try values.decodeIfPresent(Int.self, forKey: "sizeInBytes") + self.url = try values.decodeIfPresent(URL.self, forKey: "url") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(checksum, forKey: "checksum") + try values.encodeIfPresent(sizeInBytes, forKey: "sizeInBytes") + try values.encodeIfPresent(url, forKey: "url") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegmentResponse.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegmentResponse.swift new file mode 100644 index 00000000..fe2fc8d1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegmentResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportSegmentResponse: Codable { + /// AnalyticsReportSegment + public var data: AnalyticsReportSegment + public var links: DocumentLinks + + public init(data: AnalyticsReportSegment, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AnalyticsReportSegment.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegmentsResponse.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegmentsResponse.swift new file mode 100644 index 00000000..a1afd2fe --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportSegmentsResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AnalyticsReportSegmentsResponse: Codable { + public var data: [AnalyticsReportSegment] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [AnalyticsReportSegment], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([AnalyticsReportSegment].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AnalyticsReportsResponse.swift similarity index 76% rename from Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift rename to Sources/OpenAPI/Generated/Entities/AnalyticsReportsResponse.swift index 0bb86755..44808aef 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AnalyticsReportsResponse.swift @@ -3,12 +3,12 @@ import Foundation -public struct AppStoreVersionLocalizationsWithoutIncludesResponse: Codable { - public var data: [AppStoreVersion] +public struct AnalyticsReportsResponse: Codable { + public var data: [AnalyticsReport] public var links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppStoreVersion], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AnalyticsReport], links: PagedDocumentLinks, meta: PagingInformation? = nil) { self.data = data self.links = links self.meta = meta @@ -16,7 +16,7 @@ public struct AppStoreVersionLocalizationsWithoutIncludesResponse: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.data = try values.decode([AppStoreVersion].self, forKey: "data") + self.data = try values.decode([AnalyticsReport].self, forKey: "data") self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") } diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift index 6c5ff149..ad38c455 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift @@ -4,11 +4,11 @@ import Foundation public struct BetaGroupsWithoutIncludesResponse: Codable { - public var data: [BetaGroup] + public var data: [BetaTester] public var links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [BetaGroup], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaTester], links: PagedDocumentLinks, meta: PagingInformation? = nil) { self.data = data self.links = links self.meta = meta @@ -16,7 +16,7 @@ public struct BetaGroupsWithoutIncludesResponse: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.data = try values.decode([BetaGroup].self, forKey: "data") + self.data = try values.decode([BetaTester].self, forKey: "data") self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") } diff --git a/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift index 155f52b8..ab8f0480 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift @@ -4,11 +4,11 @@ import Foundation public struct BetaTestersWithoutIncludesResponse: Codable { - public var data: [BetaTester] + public var data: [Build] public var links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [BetaTester], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Build], links: PagedDocumentLinks, meta: PagingInformation? = nil) { self.data = data self.links = links self.meta = meta @@ -16,7 +16,7 @@ public struct BetaTestersWithoutIncludesResponse: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.data = try values.decode([BetaTester].self, forKey: "data") + self.data = try values.decode([Build].self, forKey: "data") self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") } diff --git a/Sources/OpenAPI/Generated/Entities/MetricsInsight.swift b/Sources/OpenAPI/Generated/Entities/MetricsInsight.swift index 26390959..0f99265b 100644 --- a/Sources/OpenAPI/Generated/Entities/MetricsInsight.swift +++ b/Sources/OpenAPI/Generated/Entities/MetricsInsight.swift @@ -8,7 +8,7 @@ public struct MetricsInsight: Codable { public var latestVersion: String? public var metric: String? public var summaryString: String? - public var referenceVersions: [String]? + public var referenceVersions: String? public var maxLatestVersionValue: Double? public var subSystemLabel: String? public var isHighImpact: Bool? @@ -52,7 +52,7 @@ public struct MetricsInsight: Codable { } } - public init(metricCategory: MetricCategory? = nil, latestVersion: String? = nil, metric: String? = nil, summaryString: String? = nil, referenceVersions: [String]? = nil, maxLatestVersionValue: Double? = nil, subSystemLabel: String? = nil, isHighImpact: Bool? = nil, populations: [Population]? = nil) { + public init(metricCategory: MetricCategory? = nil, latestVersion: String? = nil, metric: String? = nil, summaryString: String? = nil, referenceVersions: String? = nil, maxLatestVersionValue: Double? = nil, subSystemLabel: String? = nil, isHighImpact: Bool? = nil, populations: [Population]? = nil) { self.metricCategory = metricCategory self.latestVersion = latestVersion self.metric = metric @@ -70,7 +70,7 @@ public struct MetricsInsight: Codable { self.latestVersion = try values.decodeIfPresent(String.self, forKey: "latestVersion") self.metric = try values.decodeIfPresent(String.self, forKey: "metric") self.summaryString = try values.decodeIfPresent(String.self, forKey: "summaryString") - self.referenceVersions = try values.decodeIfPresent([String].self, forKey: "referenceVersions") + self.referenceVersions = try values.decodeIfPresent(String.self, forKey: "referenceVersions") self.maxLatestVersionValue = try values.decodeIfPresent(Double.self, forKey: "maxLatestVersionValue") self.subSystemLabel = try values.decodeIfPresent(String.self, forKey: "subSystemLabel") self.isHighImpact = try values.decodeIfPresent(Bool.self, forKey: "highImpact") diff --git a/Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift b/Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift index f05f0c7b..139d803c 100644 --- a/Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift +++ b/Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift @@ -126,10 +126,10 @@ public struct XcodeMetrics: Codable { public var version: String? public var value: Double? public var errorMargin: Double? - public var percentageBreakdown: [PercentageBreakdownItem]? + public var percentageBreakdown: PercentageBreakdown? public var goal: String? - public struct PercentageBreakdownItem: Codable { + public struct PercentageBreakdown: Codable { public var value: Double? public var subSystemLabel: String? @@ -151,7 +151,7 @@ public struct XcodeMetrics: Codable { } } - public init(version: String? = nil, value: Double? = nil, errorMargin: Double? = nil, percentageBreakdown: [PercentageBreakdownItem]? = nil, goal: String? = nil) { + public init(version: String? = nil, value: Double? = nil, errorMargin: Double? = nil, percentageBreakdown: PercentageBreakdown? = nil, goal: String? = nil) { self.version = version self.value = value self.errorMargin = errorMargin @@ -164,7 +164,7 @@ public struct XcodeMetrics: Codable { self.version = try values.decodeIfPresent(String.self, forKey: "version") self.value = try values.decodeIfPresent(Double.self, forKey: "value") self.errorMargin = try values.decodeIfPresent(Double.self, forKey: "errorMargin") - self.percentageBreakdown = try values.decodeIfPresent([PercentageBreakdownItem].self, forKey: "percentageBreakdown") + self.percentageBreakdown = try values.decodeIfPresent(PercentageBreakdown.self, forKey: "percentageBreakdown") self.goal = try values.decodeIfPresent(String.self, forKey: "goal") } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageDeltasWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageDeltasWithID.swift index e61a722f..49ed0e45 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageDeltasWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageDeltasWithID.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackageDeltas { public enum FieldsAlternativeDistributionPackageDeltas: String, Codable, CaseIterable { case alternativeDistributionKeyBlob + case fileChecksum case url case urlExpirationDate } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVariantsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVariantsWithID.swift index 69eb51f1..51cc6c83 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVariantsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVariantsWithID.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackageVariants { public enum FieldsAlternativeDistributionPackageVariants: String, Codable, CaseIterable { case alternativeDistributionKeyBlob + case fileChecksum case url case urlExpirationDate } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithID.swift index 40672961..40fa25d7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithID.swift @@ -28,6 +28,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackageVersions { public enum FieldsAlternativeDistributionPackageVersions: String, Codable, CaseIterable { case alternativeDistributionPackage case deltas + case fileChecksum case state case url case urlExpirationDate @@ -43,12 +44,14 @@ extension APIEndpoint.V1.AlternativeDistributionPackageVersions { public enum FieldsAlternativeDistributionPackageVariants: String, Codable, CaseIterable { case alternativeDistributionKeyBlob + case fileChecksum case url case urlExpirationDate } public enum FieldsAlternativeDistributionPackageDeltas: String, Codable, CaseIterable { case alternativeDistributionKeyBlob + case fileChecksum case url case urlExpirationDate } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithIDDeltas.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithIDDeltas.swift index 6f34ea90..6432fb70 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithIDDeltas.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithIDDeltas.swift @@ -26,6 +26,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackageVersions.WithID { public enum FieldsAlternativeDistributionPackageDeltas: String, Codable, CaseIterable { case alternativeDistributionKeyBlob + case fileChecksum case url case urlExpirationDate } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithIDVariants.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithIDVariants.swift index c2e3d9d8..705218b6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithIDVariants.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackageVersionsWithIDVariants.swift @@ -26,6 +26,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackageVersions.WithID { public enum FieldsAlternativeDistributionPackageVariants: String, Codable, CaseIterable { case alternativeDistributionKeyBlob + case fileChecksum case url case urlExpirationDate } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackagesWithID.swift index adde6275..1f4426d0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackagesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackagesWithID.swift @@ -35,6 +35,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackages { public enum FieldsAlternativeDistributionPackageVersions: String, Codable, CaseIterable { case alternativeDistributionPackage case deltas + case fileChecksum case state case url case urlExpirationDate diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackagesWithIDVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackagesWithIDVersions.swift index 49f11965..60972212 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackagesWithIDVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionPackagesWithIDVersions.swift @@ -35,6 +35,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackages.WithID { public enum FieldsAlternativeDistributionPackageVariants: String, Codable, CaseIterable { case alternativeDistributionKeyBlob + case fileChecksum case url case urlExpirationDate } @@ -47,6 +48,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackages.WithID { public enum FieldsAlternativeDistributionPackageVersions: String, Codable, CaseIterable { case alternativeDistributionPackage case deltas + case fileChecksum case state case url case urlExpirationDate @@ -56,6 +58,7 @@ extension APIEndpoint.V1.AlternativeDistributionPackages.WithID { public enum FieldsAlternativeDistributionPackageDeltas: String, Codable, CaseIterable { case alternativeDistributionKeyBlob + case fileChecksum case url case urlExpirationDate } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstances.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstances.swift new file mode 100644 index 00000000..c86a966e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstances.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var analyticsReportInstances: AnalyticsReportInstances { + AnalyticsReportInstances(path: path + "/analyticsReportInstances") + } + + public struct AnalyticsReportInstances { + /// Path: `/v1/analyticsReportInstances` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithID.swift new file mode 100644 index 00000000..a5577dd2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithID.swift @@ -0,0 +1,39 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportInstances { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/analyticsReportInstances/{id}` + public let path: String + + public func get(fieldsAnalyticsReportInstances: [FieldsAnalyticsReportInstances]? = nil, fieldsAnalyticsReportSegments: [FieldsAnalyticsReportSegments]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAnalyticsReportInstances, fieldsAnalyticsReportSegments), id: "analyticsReportInstances-get_instance") + } + + private func makeGetQuery(_ fieldsAnalyticsReportInstances: [FieldsAnalyticsReportInstances]?, _ fieldsAnalyticsReportSegments: [FieldsAnalyticsReportSegments]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsAnalyticsReportInstances, forKey: "fields[analyticsReportInstances]") + encoder.encode(fieldsAnalyticsReportSegments, forKey: "fields[analyticsReportSegments]") + return encoder.items + } + + public enum FieldsAnalyticsReportInstances: String, Codable, CaseIterable { + case granularity + case processingDate + case segments + } + + public enum FieldsAnalyticsReportSegments: String, Codable, CaseIterable { + case checksum + case sizeInBytes + case url + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDRelationships.swift new file mode 100644 index 00000000..2ce38ed1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportInstances.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/analyticsReportInstances/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDRelationshipsSegments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDRelationshipsSegments.swift new file mode 100644 index 00000000..d550e619 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDRelationshipsSegments.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportInstances.WithID.Relationships { + public var segments: Segments { + Segments(path: path + "/segments") + } + + public struct Segments { + /// Path: `/v1/analyticsReportInstances/{id}/relationships/segments` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDSegments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDSegments.swift new file mode 100644 index 00000000..5708857f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportInstancesWithIDSegments.swift @@ -0,0 +1,33 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportInstances.WithID { + public var segments: Segments { + Segments(path: path + "/segments") + } + + public struct Segments { + /// Path: `/v1/analyticsReportInstances/{id}/segments` + public let path: String + + public func get(fieldsAnalyticsReportSegments: [FieldsAnalyticsReportSegments]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAnalyticsReportSegments, limit), id: "analyticsReportInstances-segments-get_to_many_related") + } + + private func makeGetQuery(_ fieldsAnalyticsReportSegments: [FieldsAnalyticsReportSegments]?, _ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(fieldsAnalyticsReportSegments, forKey: "fields[analyticsReportSegments]", explode: false) + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public enum FieldsAnalyticsReportSegments: String, Codable, CaseIterable { + case checksum + case sizeInBytes + case url + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequests.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequests.swift new file mode 100644 index 00000000..e6c11432 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequests.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var analyticsReportRequests: AnalyticsReportRequests { + AnalyticsReportRequests(path: path + "/analyticsReportRequests") + } + + public struct AnalyticsReportRequests { + /// Path: `/v1/analyticsReportRequests` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.AnalyticsReportRequestCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "analyticsReportRequests-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithID.swift new file mode 100644 index 00000000..7054d662 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithID.swift @@ -0,0 +1,64 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportRequests { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/analyticsReportRequests/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "analyticsReportRequests-get_instance") + } + + public struct GetParameters { + public var fieldsAnalyticsReportRequests: [FieldsAnalyticsReportRequests]? + public var include: [Include]? + public var fieldsAnalyticsReports: [FieldsAnalyticsReports]? + public var limitReports: Int? + + public enum FieldsAnalyticsReportRequests: String, Codable, CaseIterable { + case accessType + case app + case reports + case stoppedDueToInactivity + } + + public enum Include: String, Codable, CaseIterable { + case reports + } + + public enum FieldsAnalyticsReports: String, Codable, CaseIterable { + case category + case instances + case name + } + + public init(fieldsAnalyticsReportRequests: [FieldsAnalyticsReportRequests]? = nil, include: [Include]? = nil, fieldsAnalyticsReports: [FieldsAnalyticsReports]? = nil, limitReports: Int? = nil) { + self.fieldsAnalyticsReportRequests = fieldsAnalyticsReportRequests + self.include = include + self.fieldsAnalyticsReports = fieldsAnalyticsReports + self.limitReports = limitReports + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsAnalyticsReportRequests, forKey: "fields[analyticsReportRequests]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsAnalyticsReports, forKey: "fields[analyticsReports]") + encoder.encode(limitReports, forKey: "limit[reports]") + return encoder.items + } + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "analyticsReportRequests-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDRelationships.swift new file mode 100644 index 00000000..accb5701 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportRequests.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/analyticsReportRequests/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDRelationshipsReports.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDRelationshipsReports.swift new file mode 100644 index 00000000..89c07a1e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDRelationshipsReports.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportRequests.WithID.Relationships { + public var reports: Reports { + Reports(path: path + "/reports") + } + + public struct Reports { + /// Path: `/v1/analyticsReportRequests/{id}/relationships/reports` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDReports.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDReports.swift new file mode 100644 index 00000000..85059186 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportRequestsWithIDReports.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportRequests.WithID { + public var reports: Reports { + Reports(path: path + "/reports") + } + + public struct Reports { + /// Path: `/v1/analyticsReportRequests/{id}/reports` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "analyticsReportRequests-reports-get_to_many_related") + } + + public struct GetParameters { + public var filterCategory: [FilterCategory]? + public var filterName: [String]? + public var fieldsAnalyticsReports: [FieldsAnalyticsReports]? + public var limit: Int? + + public enum FilterCategory: String, Codable, CaseIterable { + case appUsage = "APP_USAGE" + case appStoreEngagement = "APP_STORE_ENGAGEMENT" + case commerce = "COMMERCE" + case frameworkUsage = "FRAMEWORK_USAGE" + case performance = "PERFORMANCE" + } + + public enum FieldsAnalyticsReports: String, Codable, CaseIterable { + case category + case instances + case name + } + + public init(filterCategory: [FilterCategory]? = nil, filterName: [String]? = nil, fieldsAnalyticsReports: [FieldsAnalyticsReports]? = nil, limit: Int? = nil) { + self.filterCategory = filterCategory + self.filterName = filterName + self.fieldsAnalyticsReports = fieldsAnalyticsReports + self.limit = limit + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterCategory, forKey: "filter[category]") + encoder.encode(filterName, forKey: "filter[name]") + encoder.encode(fieldsAnalyticsReports, forKey: "fields[analyticsReports]") + encoder.encode(limit, forKey: "limit") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportSegments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportSegments.swift new file mode 100644 index 00000000..5d243da9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportSegments.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var analyticsReportSegments: AnalyticsReportSegments { + AnalyticsReportSegments(path: path + "/analyticsReportSegments") + } + + public struct AnalyticsReportSegments { + /// Path: `/v1/analyticsReportSegments` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportSegmentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportSegmentsWithID.swift new file mode 100644 index 00000000..f269d0c1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportSegmentsWithID.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReportSegments { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/analyticsReportSegments/{id}` + public let path: String + + public func get(fieldsAnalyticsReportSegments: [FieldsAnalyticsReportSegments]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAnalyticsReportSegments), id: "analyticsReportSegments-get_instance") + } + + private func makeGetQuery(_ fieldsAnalyticsReportSegments: [FieldsAnalyticsReportSegments]?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(fieldsAnalyticsReportSegments, forKey: "fields[analyticsReportSegments]", explode: false) + return encoder.items + } + + public enum FieldsAnalyticsReportSegments: String, Codable, CaseIterable { + case checksum + case sizeInBytes + case url + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReports.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReports.swift new file mode 100644 index 00000000..4e202c09 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReports.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var analyticsReports: AnalyticsReports { + AnalyticsReports(path: path + "/analyticsReports") + } + + public struct AnalyticsReports { + /// Path: `/v1/analyticsReports` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithID.swift new file mode 100644 index 00000000..371bb9f2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithID.swift @@ -0,0 +1,39 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReports { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/analyticsReports/{id}` + public let path: String + + public func get(fieldsAnalyticsReports: [FieldsAnalyticsReports]? = nil, fieldsAnalyticsReportInstances: [FieldsAnalyticsReportInstances]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAnalyticsReports, fieldsAnalyticsReportInstances), id: "analyticsReports-get_instance") + } + + private func makeGetQuery(_ fieldsAnalyticsReports: [FieldsAnalyticsReports]?, _ fieldsAnalyticsReportInstances: [FieldsAnalyticsReportInstances]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsAnalyticsReports, forKey: "fields[analyticsReports]") + encoder.encode(fieldsAnalyticsReportInstances, forKey: "fields[analyticsReportInstances]") + return encoder.items + } + + public enum FieldsAnalyticsReports: String, Codable, CaseIterable { + case category + case instances + case name + } + + public enum FieldsAnalyticsReportInstances: String, Codable, CaseIterable { + case granularity + case processingDate + case segments + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDInstances.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDInstances.swift new file mode 100644 index 00000000..b318fb34 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDInstances.swift @@ -0,0 +1,55 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReports.WithID { + public var instances: Instances { + Instances(path: path + "/instances") + } + + public struct Instances { + /// Path: `/v1/analyticsReports/{id}/instances` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "analyticsReports-instances-get_to_many_related") + } + + public struct GetParameters { + public var filterGranularity: [FilterGranularity]? + public var filterProcessingDate: [String]? + public var fieldsAnalyticsReportInstances: [FieldsAnalyticsReportInstances]? + public var limit: Int? + + public enum FilterGranularity: String, Codable, CaseIterable { + case daily = "DAILY" + case weekly = "WEEKLY" + case monthly = "MONTHLY" + } + + public enum FieldsAnalyticsReportInstances: String, Codable, CaseIterable { + case granularity + case processingDate + case segments + } + + public init(filterGranularity: [FilterGranularity]? = nil, filterProcessingDate: [String]? = nil, fieldsAnalyticsReportInstances: [FieldsAnalyticsReportInstances]? = nil, limit: Int? = nil) { + self.filterGranularity = filterGranularity + self.filterProcessingDate = filterProcessingDate + self.fieldsAnalyticsReportInstances = fieldsAnalyticsReportInstances + self.limit = limit + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterGranularity, forKey: "filter[granularity]") + encoder.encode(filterProcessingDate, forKey: "filter[processingDate]") + encoder.encode(fieldsAnalyticsReportInstances, forKey: "fields[analyticsReportInstances]") + encoder.encode(limit, forKey: "limit") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDRelationships.swift new file mode 100644 index 00000000..e3d3393f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReports.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/analyticsReports/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDRelationshipsInstances.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDRelationshipsInstances.swift new file mode 100644 index 00000000..dce4537e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AnalyticsReportsWithIDRelationshipsInstances.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AnalyticsReports.WithID.Relationships { + public var instances: Instances { + Instances(path: path + "/instances") + } + + public struct Instances { + /// Path: `/v1/analyticsReports/{id}/relationships/instances` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift index bd8c1f3f..29260791 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift @@ -135,6 +135,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift index c252e4ea..7d41f2a8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift @@ -75,6 +75,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift index 3d80843f..05c96248 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift @@ -64,6 +64,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift index 9ee6aaa2..eec632d1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAlternativeDistributionPackage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAlternativeDistributionPackage.swift index d7846489..08076bb2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAlternativeDistributionPackage.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAlternativeDistributionPackage.swift @@ -31,6 +31,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { public enum FieldsAlternativeDistributionPackageVersions: String, Codable, CaseIterable { case alternativeDistributionPackage case deltas + case fileChecksum case state case url case urlExpirationDate diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift index 76e0f485..454883dc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift @@ -93,6 +93,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift index e28cfa8b..debda8bd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift @@ -13,28 +13,107 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/appStoreVersionLocalizations` public let path: String - public func get(fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limit: Int? = nil) -> Request { - Request(path: path, method: "GET", query: makeGetQuery(fieldsAppStoreVersionLocalizations, limit), id: "appStoreVersions-appStoreVersionLocalizations-get_to_many_related") + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersions-appStoreVersionLocalizations-get_to_many_related") } - private func makeGetQuery(_ fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]?, _ limit: Int?) -> [(String, String?)] { - let encoder = URLQueryEncoder() - encoder.encode(fieldsAppStoreVersionLocalizations, forKey: "fields[appStoreVersionLocalizations]", explode: false) - encoder.encode(limit, forKey: "limit") - return encoder.items - } + public struct GetParameters { + public var filterLocale: [String]? + public var fieldsAppScreenshotSets: [FieldsAppScreenshotSets]? + public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? + public var fieldsAppPreviewSets: [FieldsAppPreviewSets]? + public var fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? + public var limit: Int? + public var limitAppScreenshotSets: Int? + public var limitAppPreviewSets: Int? + public var include: [Include]? + + public enum FieldsAppScreenshotSets: String, Codable, CaseIterable { + case appCustomProductPageLocalization + case appScreenshots + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization + case screenshotDisplayType + } + + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { + case ageRatingDeclaration + case alternativeDistributionPackage + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreState + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case appVersionState + case build + case copyright + case createdDate + case customerReviews + case downloadable + case earliestReleaseDate + case platform + case releaseType + case reviewType + case routingAppCoverage + case versionString + } + + public enum FieldsAppPreviewSets: String, Codable, CaseIterable { + case appCustomProductPageLocalization + case appPreviews + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization + case previewType + } + + public enum FieldsAppStoreVersionLocalizations: String, Codable, CaseIterable { + case appPreviewSets + case appScreenshotSets + case appStoreVersion + case description + case keywords + case locale + case marketingURL = "marketingUrl" + case promotionalText + case supportURL = "supportUrl" + case whatsNew + } + + public enum Include: String, Codable, CaseIterable { + case appPreviewSets + case appScreenshotSets + case appStoreVersion + } + + public init(filterLocale: [String]? = nil, fieldsAppScreenshotSets: [FieldsAppScreenshotSets]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppPreviewSets: [FieldsAppPreviewSets]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limit: Int? = nil, limitAppScreenshotSets: Int? = nil, limitAppPreviewSets: Int? = nil, include: [Include]? = nil) { + self.filterLocale = filterLocale + self.fieldsAppScreenshotSets = fieldsAppScreenshotSets + self.fieldsAppStoreVersions = fieldsAppStoreVersions + self.fieldsAppPreviewSets = fieldsAppPreviewSets + self.fieldsAppStoreVersionLocalizations = fieldsAppStoreVersionLocalizations + self.limit = limit + self.limitAppScreenshotSets = limitAppScreenshotSets + self.limitAppPreviewSets = limitAppPreviewSets + self.include = include + } - public enum FieldsAppStoreVersionLocalizations: String, Codable, CaseIterable { - case appPreviewSets - case appScreenshotSets - case appStoreVersion - case description - case keywords - case locale - case marketingURL = "marketingUrl" - case promotionalText - case supportURL = "supportUrl" - case whatsNew + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterLocale, forKey: "filter[locale]") + encoder.encode(fieldsAppScreenshotSets, forKey: "fields[appScreenshotSets]") + encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") + encoder.encode(fieldsAppPreviewSets, forKey: "fields[appPreviewSets]") + encoder.encode(fieldsAppStoreVersionLocalizations, forKey: "fields[appStoreVersionLocalizations]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitAppScreenshotSets, forKey: "limit[appScreenshotSets]") + encoder.encode(limitAppPreviewSets, forKey: "limit[appPreviewSets]") + encoder.encode(include, forKey: "include") + return encoder.items + } } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift index 945d1fdd..71e979aa 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift @@ -19,6 +19,7 @@ extension APIEndpoint.V1 { public struct GetParameters { public var filterAppStoreVersionsAppStoreState: [FilterAppStoreVersionsAppStoreState]? + public var filterAppStoreVersionsAppVersionState: [FilterAppStoreVersionsAppVersionState]? public var filterAppStoreVersionsPlatform: [FilterAppStoreVersionsPlatform]? public var filterBundleID: [String]? public var filterName: [String]? @@ -51,6 +52,7 @@ extension APIEndpoint.V1 { public var fieldsInAppPurchases: [FieldsInAppPurchases]? public var fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? public var fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? + public var fieldsAnalyticsReportRequests: [FieldsAnalyticsReportRequests]? public var fieldsAppPrices: [FieldsAppPrices]? public var fieldsAppPreOrders: [FieldsAppPreOrders]? public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? @@ -105,6 +107,24 @@ extension APIEndpoint.V1 { case notApplicable = "NOT_APPLICABLE" } + public enum FilterAppStoreVersionsAppVersionState: String, Codable, CaseIterable { + case accepted = "ACCEPTED" + case developerRejected = "DEVELOPER_REJECTED" + case inReview = "IN_REVIEW" + case invalidBinary = "INVALID_BINARY" + case metadataRejected = "METADATA_REJECTED" + case pendingAppleRelease = "PENDING_APPLE_RELEASE" + case pendingDeveloperRelease = "PENDING_DEVELOPER_RELEASE" + case prepareForSubmission = "PREPARE_FOR_SUBMISSION" + case processingForDistribution = "PROCESSING_FOR_DISTRIBUTION" + case readyForDistribution = "READY_FOR_DISTRIBUTION" + case readyForReview = "READY_FOR_REVIEW" + case rejected = "REJECTED" + case replacedWithNewVersion = "REPLACED_WITH_NEW_VERSION" + case waitingForExportCompliance = "WAITING_FOR_EXPORT_COMPLIANCE" + case waitingForReview = "WAITING_FOR_REVIEW" + } + public enum FilterAppStoreVersionsPlatform: String, Codable, CaseIterable { case ios = "IOS" case macOs = "MAC_OS" @@ -123,6 +143,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages @@ -437,6 +458,13 @@ extension APIEndpoint.V1 { case subscriptions } + public enum FieldsAnalyticsReportRequests: String, Codable, CaseIterable { + case accessType + case app + case reports + case stoppedDueToInactivity + } + public enum FieldsAppPrices: String, Codable, CaseIterable { case app case priceTier @@ -550,8 +578,9 @@ extension APIEndpoint.V1 { case platform } - public init(filterAppStoreVersionsAppStoreState: [FilterAppStoreVersionsAppStoreState]? = nil, filterAppStoreVersionsPlatform: [FilterAppStoreVersionsPlatform]? = nil, filterBundleID: [String]? = nil, filterName: [String]? = nil, filterSku: [String]? = nil, filterAppStoreVersions: [String]? = nil, filterID: [String]? = nil, isExistsGameCenterEnabledVersions: Bool? = nil, sort: [Sort]? = nil, fieldsApps: [FieldsApps]? = nil, limit: Int? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsAlternativeDistributionKeys: [FieldsAlternativeDistributionKeys]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsMarketplaceSearchDetails: [FieldsMarketplaceSearchDetails]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEncryptionDeclarations: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { + public init(filterAppStoreVersionsAppStoreState: [FilterAppStoreVersionsAppStoreState]? = nil, filterAppStoreVersionsAppVersionState: [FilterAppStoreVersionsAppVersionState]? = nil, filterAppStoreVersionsPlatform: [FilterAppStoreVersionsPlatform]? = nil, filterBundleID: [String]? = nil, filterName: [String]? = nil, filterSku: [String]? = nil, filterAppStoreVersions: [String]? = nil, filterID: [String]? = nil, isExistsGameCenterEnabledVersions: Bool? = nil, sort: [Sort]? = nil, fieldsApps: [FieldsApps]? = nil, limit: Int? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsAlternativeDistributionKeys: [FieldsAlternativeDistributionKeys]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsMarketplaceSearchDetails: [FieldsMarketplaceSearchDetails]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAnalyticsReportRequests: [FieldsAnalyticsReportRequests]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEncryptionDeclarations: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { self.filterAppStoreVersionsAppStoreState = filterAppStoreVersionsAppStoreState + self.filterAppStoreVersionsAppVersionState = filterAppStoreVersionsAppVersionState self.filterAppStoreVersionsPlatform = filterAppStoreVersionsPlatform self.filterBundleID = filterBundleID self.filterName = filterName @@ -584,6 +613,7 @@ extension APIEndpoint.V1 { self.fieldsInAppPurchases = fieldsInAppPurchases self.fieldsPreReleaseVersions = fieldsPreReleaseVersions self.fieldsSubscriptionGroups = fieldsSubscriptionGroups + self.fieldsAnalyticsReportRequests = fieldsAnalyticsReportRequests self.fieldsAppPrices = fieldsAppPrices self.fieldsAppPreOrders = fieldsAppPreOrders self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments @@ -619,6 +649,7 @@ extension APIEndpoint.V1 { public var asQuery: [(String, String?)] { let encoder = URLQueryEncoder(explode: false) encoder.encode(filterAppStoreVersionsAppStoreState, forKey: "filter[appStoreVersions.appStoreState]") + encoder.encode(filterAppStoreVersionsAppVersionState, forKey: "filter[appStoreVersions.appVersionState]") encoder.encode(filterAppStoreVersionsPlatform, forKey: "filter[appStoreVersions.platform]") encoder.encode(filterBundleID, forKey: "filter[bundleId]") encoder.encode(filterName, forKey: "filter[name]") @@ -651,6 +682,7 @@ extension APIEndpoint.V1 { encoder.encode(fieldsInAppPurchases, forKey: "fields[inAppPurchases]") encoder.encode(fieldsPreReleaseVersions, forKey: "fields[preReleaseVersions]") encoder.encode(fieldsSubscriptionGroups, forKey: "fields[subscriptionGroups]") + encoder.encode(fieldsAnalyticsReportRequests, forKey: "fields[analyticsReportRequests]") encoder.encode(fieldsAppPrices, forKey: "fields[appPrices]") encoder.encode(fieldsAppPreOrders, forKey: "fields[appPreOrders]") encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift index 5060c14a..2aa54ebe 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift @@ -41,6 +41,7 @@ extension APIEndpoint.V1.Apps { public var fieldsInAppPurchases: [FieldsInAppPurchases]? public var fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? public var fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? + public var fieldsAnalyticsReportRequests: [FieldsAnalyticsReportRequests]? public var fieldsAppPrices: [FieldsAppPrices]? public var fieldsAppPreOrders: [FieldsAppPreOrders]? public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? @@ -74,6 +75,7 @@ extension APIEndpoint.V1.Apps { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages @@ -388,6 +390,13 @@ extension APIEndpoint.V1.Apps { case subscriptions } + public enum FieldsAnalyticsReportRequests: String, Codable, CaseIterable { + case accessType + case app + case reports + case stoppedDueToInactivity + } + public enum FieldsAppPrices: String, Codable, CaseIterable { case app case priceTier @@ -501,7 +510,7 @@ extension APIEndpoint.V1.Apps { case platform } - public init(fieldsApps: [FieldsApps]? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsAlternativeDistributionKeys: [FieldsAlternativeDistributionKeys]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsMarketplaceSearchDetails: [FieldsMarketplaceSearchDetails]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEncryptionDeclarations: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { + public init(fieldsApps: [FieldsApps]? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsAlternativeDistributionKeys: [FieldsAlternativeDistributionKeys]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsMarketplaceSearchDetails: [FieldsMarketplaceSearchDetails]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAnalyticsReportRequests: [FieldsAnalyticsReportRequests]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEncryptionDeclarations: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { self.fieldsApps = fieldsApps self.include = include self.fieldsBetaAppReviewDetails = fieldsBetaAppReviewDetails @@ -525,6 +534,7 @@ extension APIEndpoint.V1.Apps { self.fieldsInAppPurchases = fieldsInAppPurchases self.fieldsPreReleaseVersions = fieldsPreReleaseVersions self.fieldsSubscriptionGroups = fieldsSubscriptionGroups + self.fieldsAnalyticsReportRequests = fieldsAnalyticsReportRequests self.fieldsAppPrices = fieldsAppPrices self.fieldsAppPreOrders = fieldsAppPreOrders self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments @@ -582,6 +592,7 @@ extension APIEndpoint.V1.Apps { encoder.encode(fieldsInAppPurchases, forKey: "fields[inAppPurchases]") encoder.encode(fieldsPreReleaseVersions, forKey: "fields[preReleaseVersions]") encoder.encode(fieldsSubscriptionGroups, forKey: "fields[subscriptionGroups]") + encoder.encode(fieldsAnalyticsReportRequests, forKey: "fields[analyticsReportRequests]") encoder.encode(fieldsAppPrices, forKey: "fields[appPrices]") encoder.encode(fieldsAppPreOrders, forKey: "fields[appPreOrders]") encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAnalyticsReportRequests.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAnalyticsReportRequests.swift new file mode 100644 index 00000000..8904e460 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAnalyticsReportRequests.swift @@ -0,0 +1,71 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Apps.WithID { + public var analyticsReportRequests: AnalyticsReportRequests { + AnalyticsReportRequests(path: path + "/analyticsReportRequests") + } + + public struct AnalyticsReportRequests { + /// Path: `/v1/apps/{id}/analyticsReportRequests` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-analyticsReportRequests-get_to_many_related") + } + + public struct GetParameters { + public var filterAccessType: [FilterAccessType]? + public var fieldsAnalyticsReportRequests: [FieldsAnalyticsReportRequests]? + public var fieldsAnalyticsReports: [FieldsAnalyticsReports]? + public var limit: Int? + public var limitReports: Int? + public var include: [Include]? + + public enum FilterAccessType: String, Codable, CaseIterable { + case oneTimeSnapshot = "ONE_TIME_SNAPSHOT" + case ongoing = "ONGOING" + } + + public enum FieldsAnalyticsReportRequests: String, Codable, CaseIterable { + case accessType + case app + case reports + case stoppedDueToInactivity + } + + public enum FieldsAnalyticsReports: String, Codable, CaseIterable { + case category + case instances + case name + } + + public enum Include: String, Codable, CaseIterable { + case reports + } + + public init(filterAccessType: [FilterAccessType]? = nil, fieldsAnalyticsReportRequests: [FieldsAnalyticsReportRequests]? = nil, fieldsAnalyticsReports: [FieldsAnalyticsReports]? = nil, limit: Int? = nil, limitReports: Int? = nil, include: [Include]? = nil) { + self.filterAccessType = filterAccessType + self.fieldsAnalyticsReportRequests = fieldsAnalyticsReportRequests + self.fieldsAnalyticsReports = fieldsAnalyticsReports + self.limit = limit + self.limitReports = limitReports + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterAccessType, forKey: "filter[accessType]") + encoder.encode(fieldsAnalyticsReportRequests, forKey: "fields[analyticsReportRequests]") + encoder.encode(fieldsAnalyticsReports, forKey: "fields[analyticsReports]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitReports, forKey: "limit[reports]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift index faa7650b..02c219fb 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift index b5ede0c1..441f3058 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift @@ -35,6 +35,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift index f6f64005..e68ca4fd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift @@ -45,6 +45,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift index dc671dfa..b6ededde 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift @@ -57,6 +57,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift index f8001bec..a0634292 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift @@ -84,6 +84,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift index 0bdf8edd..966cbeb1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift @@ -35,6 +35,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift index a2634480..5e323540 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift @@ -43,6 +43,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift index a4d30e1b..c01fc4b6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift @@ -93,6 +93,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift index 0cb40c62..8821c88d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift @@ -189,6 +189,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift index a90eedc4..92b29b2e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift @@ -39,6 +39,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift index 5e16ca34..edd9e241 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift @@ -126,6 +126,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift index 09b93c79..c84d0795 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift @@ -51,6 +51,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift index 5146f8aa..60cc09f4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift @@ -55,6 +55,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift index 7f737143..2afc2c99 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift @@ -42,6 +42,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift index d1e25bfc..772fe1c0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift @@ -31,6 +31,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAnalyticsReportRequests.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAnalyticsReportRequests.swift new file mode 100644 index 00000000..6bd750ad --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAnalyticsReportRequests.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Apps.WithID.Relationships { + public var analyticsReportRequests: AnalyticsReportRequests { + AnalyticsReportRequests(path: path + "/analyticsReportRequests") + } + + public struct AnalyticsReportRequests { + /// Path: `/v1/apps/{id}/relationships/analyticsReportRequests` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift index 63c353eb..71a618a2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift @@ -94,6 +94,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift index 3ab82e11..d6a89f55 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift @@ -41,6 +41,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift index 98245620..4ee61e1b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift @@ -38,6 +38,7 @@ extension APIEndpoint.V1.BetaAppLocalizations { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift index ce879a99..923345ed 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.BetaAppLocalizations.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift index 47e151e1..cb5a13e3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift @@ -42,6 +42,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift index dfecc107..1a07d005 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift @@ -40,6 +40,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift index ca3cb424..572378f7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift index 43405c77..fe2a43d9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift @@ -82,6 +82,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift index 46c1d42c..0ba84620 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift @@ -61,6 +61,7 @@ extension APIEndpoint.V1.BetaGroups { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift index a2ea5ae5..bb2c5cd2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.BetaGroups.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift index 2007c11d..5e0f9737 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift @@ -35,6 +35,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift index 0bb334bc..72ce1443 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift index 0704883b..72d3ce0d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift index cefaa637..456e53ac 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift @@ -71,6 +71,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift index 1515a654..69c27b2c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift @@ -45,6 +45,7 @@ extension APIEndpoint.V1.BetaTesters { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift index 630333c7..f4b7c5ce 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift @@ -26,6 +26,7 @@ extension APIEndpoint.V1.BetaTesters.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift index 651dfe17..b6010cb6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift @@ -225,6 +225,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift index a546af59..a677f47d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift @@ -175,6 +175,7 @@ extension APIEndpoint.V1.Builds { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift index f2b769f8..04350484 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.Builds.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift index 1ca1d368..e70f7b5e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift @@ -135,6 +135,7 @@ extension APIEndpoint.V1.Builds.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift index 89608311..75253c2b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift @@ -13,21 +13,66 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/buildBetaDetail` public let path: String - public func get(fieldsBuildBetaDetails: [FieldsBuildBetaDetails]? = nil) -> Request { - Request(path: path, method: "GET", query: makeGetQuery(fieldsBuildBetaDetails), id: "builds-buildBetaDetail-get_to_one_related") + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "builds-buildBetaDetail-get_to_one_related") } - private func makeGetQuery(_ fieldsBuildBetaDetails: [FieldsBuildBetaDetails]?) -> [(String, String?)] { - let encoder = URLQueryEncoder() - encoder.encode(fieldsBuildBetaDetails, forKey: "fields[buildBetaDetails]", explode: false) - return encoder.items - } + public struct GetParameters { + public var fieldsBuildBetaDetails: [FieldsBuildBetaDetails]? + public var fieldsBuilds: [FieldsBuilds]? + public var include: [Include]? + + public enum FieldsBuildBetaDetails: String, Codable, CaseIterable { + case autoNotifyEnabled + case build + case externalBuildState + case internalBuildState + } + + public enum FieldsBuilds: String, Codable, CaseIterable { + case app + case appEncryptionDeclaration + case appStoreVersion + case betaAppReviewSubmission + case betaBuildLocalizations + case betaGroups + case buildAudienceType + case buildBetaDetail + case buildBundles + case computedMinMacOsVersion + case diagnosticSignatures + case expirationDate + case expired + case iconAssetToken + case icons + case individualTesters + case lsMinimumSystemVersion + case minOsVersion + case perfPowerMetrics + case preReleaseVersion + case processingState + case uploadedDate + case usesNonExemptEncryption + case version + } + + public enum Include: String, Codable, CaseIterable { + case build + } + + public init(fieldsBuildBetaDetails: [FieldsBuildBetaDetails]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, include: [Include]? = nil) { + self.fieldsBuildBetaDetails = fieldsBuildBetaDetails + self.fieldsBuilds = fieldsBuilds + self.include = include + } - public enum FieldsBuildBetaDetails: String, Codable, CaseIterable { - case autoNotifyEnabled - case build - case externalBuildState - case internalBuildState + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsBuildBetaDetails, forKey: "fields[buildBetaDetails]") + encoder.encode(fieldsBuilds, forKey: "fields[builds]") + encoder.encode(include, forKey: "include") + return encoder.items + } } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift index 2e815e10..5ae173d1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift @@ -89,6 +89,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift index 8554e111..a5c7b7e7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift @@ -64,6 +64,7 @@ extension APIEndpoint.V1.BundleIDs { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift index 2ae947b9..1e3e6c3e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.BundleIDs.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift index 46768b00..5bfd8841 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift @@ -201,6 +201,7 @@ extension APIEndpoint.V1.CiBuildRuns.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift index 0b77a523..78b38e49 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift @@ -101,6 +101,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift index fae3ac06..1adc7fa3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift @@ -93,6 +93,7 @@ extension APIEndpoint.V1.CiProducts { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift index 48fe7843..33700f3b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift @@ -147,6 +147,7 @@ extension APIEndpoint.V1.CiProducts.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift index 035284f7..ab672b21 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift @@ -135,6 +135,7 @@ extension APIEndpoint.V1.GameCenterAppVersions.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift index 31cc9b5a..78e07b39 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift @@ -52,6 +52,7 @@ extension APIEndpoint.V1.GameCenterEnabledVersions.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift index de75e5b8..822041cd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift @@ -128,6 +128,7 @@ extension APIEndpoint.V1.GameCenterGroups.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift index 724289e6..315e2682 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift @@ -66,6 +66,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift index 15d6bc2e..4973c821 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift @@ -38,6 +38,7 @@ extension APIEndpoint.V1.PreReleaseVersions { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift index b4a975cc..7cf7fe11 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift @@ -25,6 +25,7 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SalesReports.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SalesReports.swift index a974e52c..997a13ab 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SalesReports.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SalesReports.swift @@ -49,6 +49,7 @@ extension APIEndpoint.V1 { case subscriber = "SUBSCRIBER" case subscriptionOfferCodeRedemption = "SUBSCRIPTION_OFFER_CODE_REDEMPTION" case installs = "INSTALLS" + case firstAnnual = "FIRST_ANNUAL" } public init(filterFrequency: [FilterFrequency], filterReportDate: [String]? = nil, filterReportSubType: [FilterReportSubType], filterReportType: [FilterReportType], filterVendorNumber: [String], filterVersion: [String]? = nil) { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift index 8d645c4e..22b3a34f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift @@ -69,6 +69,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift index 8573fd90..84a5431d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift @@ -40,6 +40,7 @@ extension APIEndpoint.V1.UserInvitations { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift index e800bc5b..fcb11b6f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift @@ -26,6 +26,7 @@ extension APIEndpoint.V1.UserInvitations.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift index e31bb7ce..4863a5a6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift @@ -68,6 +68,7 @@ extension APIEndpoint.V1 { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift index 626afead..5e5b087b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift @@ -39,6 +39,7 @@ extension APIEndpoint.V1.Users { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift index f3085d4c..5f489837 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift @@ -26,6 +26,7 @@ extension APIEndpoint.V1.Users.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift index 6651decb..b0937d21 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift @@ -35,6 +35,7 @@ extension APIEndpoint.V3.AppPricePoints.WithID { public enum FieldsApps: String, Codable, CaseIterable { case alternativeDistributionKey + case analyticsReportRequests case appAvailability case appClips case appCustomProductPages diff --git a/Sources/OpenAPI/app_store_connect_api.json b/Sources/OpenAPI/app_store_connect_api.json index 79d137cd..dc919d45 100644 --- a/Sources/OpenAPI/app_store_connect_api.json +++ b/Sources/OpenAPI/app_store_connect_api.json @@ -2,7 +2,7 @@ "openapi": "3.0.1", "info": { "title": "App Store Connect API", - "version": "3.3", + "version": "3.4", "x-platform": "app_store_connect_api" }, "servers": [ @@ -537,6 +537,7 @@ "type": "string", "enum": [ "alternativeDistributionKeyBlob", + "fileChecksum", "url", "urlExpirationDate" ] @@ -630,6 +631,7 @@ "type": "string", "enum": [ "alternativeDistributionKeyBlob", + "fileChecksum", "url", "urlExpirationDate" ] @@ -724,6 +726,7 @@ "enum": [ "alternativeDistributionPackage", "deltas", + "fileChecksum", "state", "url", "urlExpirationDate", @@ -765,6 +768,7 @@ "type": "string", "enum": [ "alternativeDistributionKeyBlob", + "fileChecksum", "url", "urlExpirationDate" ] @@ -784,6 +788,7 @@ "type": "string", "enum": [ "alternativeDistributionKeyBlob", + "fileChecksum", "url", "urlExpirationDate" ] @@ -1006,6 +1011,7 @@ "enum": [ "alternativeDistributionPackage", "deltas", + "fileChecksum", "state", "url", "urlExpirationDate", @@ -1096,6 +1102,596 @@ } ] }, + "/v1/analyticsReportInstances/{id}": { + "get": { + "tags": [ + "AnalyticsReportInstances" + ], + "operationId": "analyticsReportInstances-get_instance", + "parameters": [ + { + "name": "fields[analyticsReportInstances]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportInstances", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "granularity", + "processingDate", + "segments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[analyticsReportSegments]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportSegments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "checksum", + "sizeInBytes", + "url" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AnalyticsReportInstance", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportInstanceResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/analyticsReportRequests": { + "post": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests-create_instance", + "requestBody": { + "description": "AnalyticsReportRequest representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportRequestCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AnalyticsReportRequest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportRequestResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/analyticsReportRequests/{id}": { + "get": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests-get_instance", + "parameters": [ + { + "name": "fields[analyticsReportRequests]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessType", + "app", + "reports", + "stoppedDueToInactivity" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "reports" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[analyticsReports]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReports", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "instances", + "name" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[reports]", + "in": "query", + "description": "maximum number of related reports returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AnalyticsReportRequest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportRequestResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests-delete_instance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/analyticsReportSegments/{id}": { + "get": { + "tags": [ + "AnalyticsReportSegments" + ], + "operationId": "analyticsReportSegments-get_instance", + "parameters": [ + { + "name": "fields[analyticsReportSegments]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportSegments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "checksum", + "sizeInBytes", + "url" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AnalyticsReportSegment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportSegmentResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/analyticsReports/{id}": { + "get": { + "tags": [ + "AnalyticsReports" + ], + "operationId": "analyticsReports-get_instance", + "parameters": [ + { + "name": "fields[analyticsReports]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReports", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "instances", + "name" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[analyticsReportInstances]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportInstances", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "granularity", + "processingDate", + "segments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AnalyticsReport", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, "/v2/appAvailabilities": { "post": { "tags": [ @@ -5198,6 +5794,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -5400,6 +5997,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -13810,6 +14408,37 @@ "explode": false, "required": false }, + { + "name": "filter[appStoreVersions.appVersionState]", + "in": "query", + "description": "filter by attribute 'appStoreVersions.appVersionState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ACCEPTED", + "DEVELOPER_REJECTED", + "IN_REVIEW", + "INVALID_BINARY", + "METADATA_REJECTED", + "PENDING_APPLE_RELEASE", + "PENDING_DEVELOPER_RELEASE", + "PREPARE_FOR_SUBMISSION", + "PROCESSING_FOR_DISTRIBUTION", + "READY_FOR_DISTRIBUTION", + "READY_FOR_REVIEW", + "REJECTED", + "REPLACED_WITH_NEW_VERSION", + "WAITING_FOR_EXPORT_COMPLIANCE", + "WAITING_FOR_REVIEW" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "filter[appStoreVersions.platform]", "in": "query", @@ -13944,6 +14573,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -14560,6 +15190,26 @@ "explode": false, "required": false }, + { + "name": "fields[analyticsReportRequests]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessType", + "app", + "reports", + "stoppedDueToInactivity" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[appPrices]", "in": "query", @@ -15094,6 +15744,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -15700,6 +16351,26 @@ "explode": false, "required": false }, + { + "name": "fields[analyticsReportRequests]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessType", + "app", + "reports", + "stoppedDueToInactivity" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[appPrices]", "in": "query", @@ -16970,6 +17641,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -17193,6 +17865,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -17535,6 +18208,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -17691,6 +18365,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -19040,6 +19715,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -19357,6 +20033,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -19754,6 +20431,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -19903,6 +20581,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -20381,6 +21060,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -20709,6 +21389,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -21995,6 +22676,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -22462,6 +23144,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -23174,6 +23857,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -23467,6 +24151,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -25290,6 +25975,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -25557,6 +26243,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -38572,6 +39259,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -38775,6 +39463,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -41414,7 +42103,8 @@ "SUBSCRIPTION_EVENT", "SUBSCRIBER", "SUBSCRIPTION_OFFER_CODE_REDEMPTION", - "INSTALLS" + "INSTALLS", + "FIRST_ANNUAL" ] } }, @@ -47087,6 +47777,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -47322,6 +48013,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -47658,6 +48350,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -47823,6 +48516,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -48124,6 +48818,7 @@ "type": "string", "enum": [ "alternativeDistributionKeyBlob", + "fileChecksum", "url", "urlExpirationDate" ] @@ -48240,6 +48935,7 @@ "type": "string", "enum": [ "alternativeDistributionKeyBlob", + "fileChecksum", "url", "urlExpirationDate" ] @@ -48373,6 +49069,7 @@ "type": "string", "enum": [ "alternativeDistributionKeyBlob", + "fileChecksum", "url", "urlExpirationDate" ] @@ -48409,6 +49106,7 @@ "enum": [ "alternativeDistributionPackage", "deltas", + "fileChecksum", "state", "url", "urlExpirationDate", @@ -48430,6 +49128,7 @@ "type": "string", "enum": [ "alternativeDistributionKeyBlob", + "fileChecksum", "url", "urlExpirationDate" ] @@ -48553,6 +49252,418 @@ } ] }, + "/v1/analyticsReportInstances/{id}/relationships/segments": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/analyticsReportInstances/{id}/segments": { + "get": { + "tags": [ + "AnalyticsReportInstances" + ], + "operationId": "analyticsReportInstances-segments-get_to_many_related", + "parameters": [ + { + "name": "fields[analyticsReportSegments]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportSegments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "checksum", + "sizeInBytes", + "url" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AnalyticsReportSegments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportSegmentsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/analyticsReportRequests/{id}/relationships/reports": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/analyticsReportRequests/{id}/reports": { + "get": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests-reports-get_to_many_related", + "parameters": [ + { + "name": "filter[category]", + "in": "query", + "description": "filter by attribute 'category'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_USAGE", + "APP_STORE_ENGAGEMENT", + "COMMERCE", + "FRAMEWORK_USAGE", + "PERFORMANCE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[analyticsReports]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReports", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "instances", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AnalyticsReports", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/analyticsReports/{id}/relationships/instances": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/analyticsReports/{id}/instances": { + "get": { + "tags": [ + "AnalyticsReports" + ], + "operationId": "analyticsReports-instances-get_to_many_related", + "parameters": [ + { + "name": "filter[granularity]", + "in": "query", + "description": "filter by attribute 'granularity'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DAILY", + "WEEKLY", + "MONTHLY" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[processingDate]", + "in": "query", + "description": "filter by attribute 'processingDate'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[analyticsReportInstances]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportInstances", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "granularity", + "processingDate", + "segments" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AnalyticsReportInstances", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportInstancesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, "/v2/appAvailabilities/{id}/relationships/territoryAvailabilities": { "parameters": [ { @@ -49854,6 +50965,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -51721,6 +52833,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -54037,6 +55150,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -57462,6 +58576,7 @@ "enum": [ "alternativeDistributionPackage", "deltas", + "fileChecksum", "state", "url", "urlExpirationDate", @@ -58494,6 +59609,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -58682,6 +59798,97 @@ ], "operationId": "appStoreVersions-appStoreVersionLocalizations-get_to_many_related", "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "screenshotDisplayType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "alternativeDistributionPackage", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "appVersionState", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "reviewType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "previewType" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[appStoreVersionLocalizations]", "in": "query", @@ -58716,6 +59923,44 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[appScreenshotSets]", + "in": "query", + "description": "maximum number of related appScreenshotSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appPreviewSets]", + "in": "query", + "description": "maximum number of related appPreviewSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -58760,11 +60005,11 @@ } }, "200": { - "description": "List of AppStoreVersionLocalizations with get", + "description": "List of AppStoreVersionLocalizations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionLocalizationsWithoutIncludesResponse" + "$ref": "#/components/schemas/AppStoreVersionLocalizationsResponse" } } } @@ -59958,6 +61203,184 @@ } ] }, + "/v1/apps/{id}/relationships/analyticsReportRequests": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/analyticsReportRequests": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps-analyticsReportRequests-get_to_many_related", + "parameters": [ + { + "name": "filter[accessType]", + "in": "query", + "description": "filter by attribute 'accessType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ONE_TIME_SNAPSHOT", + "ONGOING" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[analyticsReportRequests]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessType", + "app", + "reports", + "stoppedDueToInactivity" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[analyticsReports]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReports", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "instances", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[reports]", + "in": "query", + "description": "maximum number of related reports returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "reports" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AnalyticsReportRequests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportRequestsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, "/v1/apps/{id}/relationships/appAvailability": { "parameters": [ { @@ -60008,6 +61431,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -60232,6 +61656,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -60493,6 +61918,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -60743,6 +62169,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -61307,6 +62734,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -61533,6 +62961,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -61769,6 +63198,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -62084,6 +63514,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -62574,6 +64005,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -63712,6 +65144,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -64668,6 +66101,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -65014,6 +66448,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -65276,6 +66711,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -66351,6 +67787,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -66561,6 +67998,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -67244,6 +68682,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -67826,6 +69265,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -67975,6 +69415,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -68378,6 +69819,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -69172,6 +70614,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -69456,6 +70899,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -70881,6 +72325,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -71453,6 +72898,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -72130,6 +73576,61 @@ }, "style": "form", "explode": false + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "build" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -72174,11 +73675,11 @@ } }, "200": { - "description": "Single BuildBetaDetail with get", + "description": "Single BuildBetaDetail", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildBetaDetailWithoutIncludesResponse" + "$ref": "#/components/schemas/BuildBetaDetailResponse" } } } @@ -73025,6 +74526,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -74676,6 +76178,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -75482,6 +76985,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -79423,6 +80927,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -82920,6 +84425,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -83725,6 +85231,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -90175,6 +91682,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -95492,6 +97000,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -95907,6 +97416,7 @@ "type": "string", "enum": [ "alternativeDistributionKey", + "analyticsReportRequests", "appAvailability", "appClips", "appCustomProductPages", @@ -98730,6 +100240,9 @@ }, "alternativeDistributionKeyBlob": { "type": "string" + }, + "fileChecksum": { + "type": "string" } } }, @@ -98806,6 +100319,9 @@ }, "alternativeDistributionKeyBlob": { "type": "string" + }, + "fileChecksum": { + "type": "string" } } }, @@ -98883,6 +100399,9 @@ "version": { "type": "string" }, + "fileChecksum": { + "type": "string" + }, "state": { "type": "string", "enum": [ @@ -98964,7 +100483,423 @@ "type": { "type": "string", "enum": [ - "alternativeDistributionPackageDeltas" + "alternativeDistributionPackageDeltas" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "alternativeDistributionPackage": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionPackageVersionsResponse": { + "type": "object", + "title": "AlternativeDistributionPackageVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AlternativeDistributionPackageVariant" + }, + { + "$ref": "#/components/schemas/AlternativeDistributionPackageDelta" + }, + { + "$ref": "#/components/schemas/AlternativeDistributionPackage" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageVersionResponse": { + "type": "object", + "title": "AlternativeDistributionPackageVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AlternativeDistributionPackageVariant" + }, + { + "$ref": "#/components/schemas/AlternativeDistributionPackageDelta" + }, + { + "$ref": "#/components/schemas/AlternativeDistributionPackage" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackage": { + "type": "object", + "title": "AlternativeDistributionPackage", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackages" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "versions": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionPackageResponse": { + "type": "object", + "title": "AlternativeDistributionPackageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionPackage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageCreateRequest": { + "type": "object", + "title": "AlternativeDistributionPackageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackages" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appStoreVersion" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AnalyticsReportInstance": { + "type": "object", + "title": "AnalyticsReportInstance", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportInstances" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "granularity": { + "type": "string", + "enum": [ + "DAILY", + "WEEKLY", + "MONTHLY" + ] + }, + "processingDate": { + "type": "string", + "format": "date" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AnalyticsReportInstancesResponse": { + "type": "object", + "title": "AnalyticsReportInstancesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsReportInstance" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportInstanceResponse": { + "type": "object", + "title": "AnalyticsReportInstanceResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AnalyticsReportInstance" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportRequest": { + "type": "object", + "title": "AnalyticsReportRequest", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportRequests" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "accessType": { + "type": "string", + "enum": [ + "ONE_TIME_SNAPSHOT", + "ONGOING" + ] + }, + "stoppedDueToInactivity": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "reports": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReports" ] }, "id": { @@ -98978,42 +100913,6 @@ } } } - }, - "alternativeDistributionPackage": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "alternativeDistributionPackages" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } } } }, @@ -99026,30 +100925,20 @@ "type" ] }, - "AlternativeDistributionPackageVersionsResponse": { + "AnalyticsReportRequestsResponse": { "type": "object", - "title": "AlternativeDistributionPackageVersionsResponse", + "title": "AnalyticsReportRequestsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + "$ref": "#/components/schemas/AnalyticsReportRequest" } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AlternativeDistributionPackageVariant" - }, - { - "$ref": "#/components/schemas/AlternativeDistributionPackageDelta" - }, - { - "$ref": "#/components/schemas/AlternativeDistributionPackage" - } - ] + "$ref": "#/components/schemas/AnalyticsReport" } }, "links": { @@ -99064,27 +100953,17 @@ "links" ] }, - "AlternativeDistributionPackageVersionResponse": { + "AnalyticsReportRequestResponse": { "type": "object", - "title": "AlternativeDistributionPackageVersionResponse", + "title": "AnalyticsReportRequestResponse", "properties": { "data": { - "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + "$ref": "#/components/schemas/AnalyticsReportRequest" }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AlternativeDistributionPackageVariant" - }, - { - "$ref": "#/components/schemas/AlternativeDistributionPackageDelta" - }, - { - "$ref": "#/components/schemas/AlternativeDistributionPackage" - } - ] + "$ref": "#/components/schemas/AnalyticsReport" } }, "links": { @@ -99096,63 +100975,105 @@ "links" ] }, - "AlternativeDistributionPackage": { + "AnalyticsReportRequestCreateRequest": { "type": "object", - "title": "AlternativeDistributionPackage", + "title": "AnalyticsReportRequestCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportRequests" + ] + }, + "attributes": { + "type": "object", + "properties": { + "accessType": { + "type": "string", + "enum": [ + "ONE_TIME_SNAPSHOT", + "ONGOING" + ] + } + }, + "required": [ + "accessType" + ] + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AnalyticsReportSegment": { + "type": "object", + "title": "AnalyticsReportSegment", "properties": { "type": { "type": "string", "enum": [ - "alternativeDistributionPackages" + "analyticsReportSegments" ] }, "id": { "type": "string" }, - "relationships": { + "attributes": { "type": "object", "properties": { - "versions": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "alternativeDistributionPackageVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } + "checksum": { + "type": "string" + }, + "sizeInBytes": { + "type": "integer" + }, + "url": { + "type": "string", + "format": "uri" } } }, @@ -99165,21 +101086,21 @@ "type" ] }, - "AlternativeDistributionPackageResponse": { + "AnalyticsReportSegmentsResponse": { "type": "object", - "title": "AlternativeDistributionPackageResponse", + "title": "AnalyticsReportSegmentsResponse", "properties": { "data": { - "$ref": "#/components/schemas/AlternativeDistributionPackage" - }, - "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + "$ref": "#/components/schemas/AnalyticsReportSegment" } }, "links": { - "$ref": "#/components/schemas/DocumentLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ @@ -99187,62 +101108,98 @@ "links" ] }, - "AlternativeDistributionPackageCreateRequest": { + "AnalyticsReportSegmentResponse": { "type": "object", - "title": "AlternativeDistributionPackageCreateRequest", + "title": "AnalyticsReportSegmentResponse", "properties": { "data": { + "$ref": "#/components/schemas/AnalyticsReportSegment" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReport": { + "type": "object", + "title": "AnalyticsReport", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReports" + ] + }, + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "type": { + "name": { + "type": "string" + }, + "category": { "type": "string", "enum": [ - "alternativeDistributionPackages" - ] - }, - "relationships": { - "type": "object", - "properties": { - "appStoreVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "appStoreVersion" + "APP_USAGE", + "APP_STORE_ENGAGEMENT", + "COMMERCE", + "FRAMEWORK_USAGE", + "PERFORMANCE" ] } - }, - "required": [ - "relationships", - "type" - ] + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "data" + "id", + "type" + ] + }, + "AnalyticsReportsResponse": { + "type": "object", + "title": "AnalyticsReportsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsReport" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportResponse": { + "type": "object", + "title": "AnalyticsReportResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AnalyticsReport" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" ] }, "AppAvailabilityV2": { @@ -141673,28 +143630,6 @@ "data" ] }, - "AppStoreVersionLocalizationsWithoutIncludesResponse": { - "type": "object", - "title": "AppStoreVersionLocalizationsWithoutIncludesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppStoreVersion" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, "AppStoreVersionPhasedReleaseWithoutIncludesResponse": { "type": "object", "title": "AppStoreVersionPhasedReleaseWithoutIncludesResponse", @@ -141844,7 +143779,7 @@ "data": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaGroup" + "$ref": "#/components/schemas/BetaTester" } }, "links": { @@ -142052,7 +143987,7 @@ "data": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaTester" + "$ref": "#/components/schemas/Build" } }, "links": { @@ -142553,22 +144488,6 @@ "data" ] }, - "BuildBetaDetailWithoutIncludesResponse": { - "type": "object", - "title": "BuildBetaDetailWithoutIncludesResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/Build" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, "BuildIconsWithoutIncludesResponse": { "type": "object", "title": "BuildIconsWithoutIncludesResponse", @@ -145559,10 +147478,7 @@ "type": "string" }, "referenceVersions": { - "type": "array", - "items": { - "type": "string" - } + "type": "string" }, "maxLatestVersionValue": { "type": "number" @@ -146260,18 +148176,15 @@ "type": "number" }, "percentageBreakdown": { - "type": "array", - "items": { - "type": "object", - "properties": { - "value": { - "type": "number" - }, - "subSystemLabel": { - "type": "string" - } + "type": "object", + "properties": { + "value": { + "type": "number" + }, + "subSystemLabel": { + "type": "string" } - } + } }, "goal": { "type": "string"