Skip to content

Commit

Permalink
Update from new spec (3.4) (#172)
Browse files Browse the repository at this point in the history
Co-authored-by: Bagbutik CI <[email protected]>
  • Loading branch information
MortenGregersen and bagbutik-ci authored Mar 5, 2024
1 parent f4eaa76 commit 274c8ea
Show file tree
Hide file tree
Showing 104 changed files with 11,105 additions and 9,681 deletions.
19,120 changes: 9,560 additions & 9,560 deletions Documentation/OperationDocumentation.json

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions Documentation/SchemaIndex.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions Sources/Bagbutik-AppStore/App/GetAppV1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public enum GetAppV1 {
public enum Field: FieldParameter {
/// The fields to include for returned resources of type alternativeDistributionKeys
case alternativeDistributionKeys([AlternativeDistributionKeys])
/// The fields to include for returned resources of type analyticsReportRequests
case analyticsReportRequests([AnalyticsReportRequests])
/// The fields to include for returned resources of type appAvailabilities
@available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.")
case appAvailabilities([AppAvailabilities])
Expand Down Expand Up @@ -108,6 +110,13 @@ public enum GetAppV1 {
case publicKey
}

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

public enum AppAvailabilities: String, ParameterValue, Codable, CaseIterable {
case app
case availableInNewTerritories
Expand Down Expand Up @@ -254,6 +263,7 @@ public enum GetAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
12 changes: 12 additions & 0 deletions Sources/Bagbutik-AppStore/App/ListAppsV1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public enum ListAppsV1 {
public enum Field: FieldParameter {
/// The fields to include for returned resources of type alternativeDistributionKeys
case alternativeDistributionKeys([AlternativeDistributionKeys])
/// The fields to include for returned resources of type analyticsReportRequests
case analyticsReportRequests([AnalyticsReportRequests])
/// The fields to include for returned resources of type appAvailabilities
@available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.")
case appAvailabilities([AppAvailabilities])
Expand Down Expand Up @@ -115,6 +117,13 @@ public enum ListAppsV1 {
case publicKey
}

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

public enum AppAvailabilities: String, ParameterValue, Codable, CaseIterable {
case app
case availableInNewTerritories
Expand Down Expand Up @@ -261,6 +270,7 @@ public enum ListAppsV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down Expand Up @@ -519,6 +529,8 @@ public enum ListAppsV1 {
case appStoreVersions([String])
/// Filter by attribute 'appStoreVersions.appStoreState'
case appStoreVersions_appStoreState([AppStoreVersionState])
/// Filter by attribute 'appStoreVersions.appVersionState'
case appStoreVersions_appVersionState([AppVersionState])
/// Filter by attribute 'appStoreVersions.platform'
case appStoreVersions_platform([Platform])
/// Filter by attribute 'bundleId'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public enum GetAppAvailabilityForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public enum GetAppPriceScheduleForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public enum ListAppClipsForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public enum ListAppCustomProductPagesForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public enum ListAppEncryptionDeclarationsForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public enum ListAppInfosForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public enum ListAppPricePointsForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public enum ListAppStoreVersionExperimentsV2ForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public enum ListAppStoreVersionsForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public enum ListGameCenterEnabledVersionsForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public enum ListInAppPurchasesForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public enum ListPricePointsForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public enum ListPricesForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public enum ListReviewSubmissionsForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public enum GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public enum GetAppEncryptionDeclarationV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public enum ListAppEncryptionDeclarationsV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public enum GetAppForAppEncryptionDeclarationV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public enum ListEqualizationsForAppPricePointsV3 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public enum ListAppStoreVersionExperimentsV2ForAppStoreVersionV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ public extension Request {

- Parameter id: The id of the requested resource
- Parameter fields: Fields to return for included related types
- Parameter limit: Maximum resources per page - maximum 200
- Parameter filters: Attributes, relationships, and IDs by which to filter
- Parameter includes: Relationship data to include in the response
- Parameter limits: Number of resources to return
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func listAppStoreVersionLocalizationsForAppStoreVersionV1(id: String,
fields: [ListAppStoreVersionLocalizationsForAppStoreVersionV1.Field]? = nil,
limit: Int? = nil) -> Request<AppStoreVersionLocalizationsWithoutIncludesResponse, ErrorResponse>
filters: [ListAppStoreVersionLocalizationsForAppStoreVersionV1.Filter]? = nil,
includes: [ListAppStoreVersionLocalizationsForAppStoreVersionV1.Include]? = nil,
limits: [ListAppStoreVersionLocalizationsForAppStoreVersionV1.Limit]? = nil) -> Request<AppStoreVersionLocalizationsResponse, ErrorResponse>
{
.init(path: "/v1/appStoreVersions/\(id)/appStoreVersionLocalizations", method: .get, parameters: .init(fields: fields,
limit: limit))
filters: filters,
includes: includes,
limits: limits))
}
}

Expand All @@ -28,8 +34,30 @@ public enum ListAppStoreVersionLocalizationsForAppStoreVersionV1 {
Fields to return for included related types.
*/
public enum Field: FieldParameter {
/// The fields to include for returned resources of type appPreviewSets
case appPreviewSets([AppPreviewSets])
/// The fields to include for returned resources of type appScreenshotSets
case appScreenshotSets([AppScreenshotSets])
/// The fields to include for returned resources of type appStoreVersionLocalizations
case appStoreVersionLocalizations([AppStoreVersionLocalizations])
/// The fields to include for returned resources of type appStoreVersions
case appStoreVersions([AppStoreVersions])

public enum AppPreviewSets: String, ParameterValue, Codable, CaseIterable {
case appCustomProductPageLocalization
case appPreviews
case appStoreVersionExperimentTreatmentLocalization
case appStoreVersionLocalization
case previewType
}

public enum AppScreenshotSets: String, ParameterValue, Codable, CaseIterable {
case appCustomProductPageLocalization
case appScreenshots
case appStoreVersionExperimentTreatmentLocalization
case appStoreVersionLocalization
case screenshotDisplayType
}

public enum AppStoreVersionLocalizations: String, ParameterValue, Codable, CaseIterable {
case appPreviewSets
Expand All @@ -43,5 +71,60 @@ public enum ListAppStoreVersionLocalizationsForAppStoreVersionV1 {
case supportUrl
case whatsNew
}

public enum AppStoreVersions: String, ParameterValue, 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
}
}

/**
Attributes, relationships, and IDs by which to filter.
*/
public enum Filter: FilterParameter {
/// Filter by attribute 'locale'
case locale([String])
}

/**
Relationship data to include in the response.
*/
public enum Include: String, IncludeParameter, CaseIterable {
case appPreviewSets
case appScreenshotSets
case appStoreVersion
}

/**
Number of included related resources to return.
*/
public enum Limit: LimitParameter {
/// Maximum number of related appPreviewSets returned (when they are included) - maximum 50
case appPreviewSets(Int)
/// Maximum number of related appScreenshotSets returned (when they are included) - maximum 50
case appScreenshotSets(Int)
/// Maximum resources per page - maximum 200
case limit(Int)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public enum ListCompatibleVersionsForGameCenterEnabledVersionV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public enum GetGameCenterDetailForAppV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public enum GetAppStoreVersionForGameCenterAppVersionV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public enum ListGameCenterDetailsForGameCenterGroupV1 {

public enum Apps: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionKey
case analyticsReportRequests
case appAvailability
case appClips
case appCustomProductPages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public enum GetAlternativeDistributionPackageV1 {
public enum AlternativeDistributionPackageVersions: String, ParameterValue, Codable, CaseIterable {
case alternativeDistributionPackage
case deltas
case fileChecksum
case state
case url
case urlExpirationDate
Expand Down
Loading

0 comments on commit 274c8ea

Please sign in to comment.