Skip to content

Commit

Permalink
Update from new spec (2.1) (#107)
Browse files Browse the repository at this point in the history
* Update from new spec (2.1)

* Update NullCodableTests.swift

* Regenerate locally

Co-authored-by: Bagbutik CI <[email protected]>
  • Loading branch information
MortenGregersen and bagbutik-ci authored Sep 20, 2022
1 parent 7635d37 commit 5b97b0e
Show file tree
Hide file tree
Showing 12 changed files with 5,940 additions and 5,919 deletions.
11,714 changes: 5,857 additions & 5,857 deletions Documentation/OperationDocumentation.json

Large diffs are not rendered by default.

106 changes: 53 additions & 53 deletions Documentation/SchemaIndex.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public enum ListAppPreviewSetsForAppCustomProductPageLocalizationV1 {
case previewType([PreviewType])

public enum PreviewType: String, ParameterValue, CaseIterable {
case iPhone67 = "IPHONE_67"
case iPhone61 = "IPHONE_61"
case iPhone65 = "IPHONE_65"
case iPhone58 = "IPHONE_58"
case iPhone55 = "IPHONE_55"
Expand All @@ -119,8 +121,6 @@ public enum ListAppPreviewSetsForAppCustomProductPageLocalizationV1 {
case iPad105 = "IPAD_105"
case iPad97 = "IPAD_97"
case desktop = "DESKTOP"
case watchSeries4 = "WATCH_SERIES_4"
case watchSeries3 = "WATCH_SERIES_3"
case appleTV = "APPLE_TV"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public enum ListAppScreenshotSetsForAppCustomProductPageLocalizationV1 {
case screenshotDisplayType([ScreenshotDisplayType])

public enum ScreenshotDisplayType: String, ParameterValue, CaseIterable {
case appIphone67 = "APP_IPHONE_67"
case appIphone61 = "APP_IPHONE_61"
case appIphone65 = "APP_IPHONE_65"
case appIphone58 = "APP_IPHONE_58"
case appIphone55 = "APP_IPHONE_55"
Expand All @@ -118,10 +120,13 @@ public enum ListAppScreenshotSetsForAppCustomProductPageLocalizationV1 {
case appIpad105 = "APP_IPAD_105"
case appIpad97 = "APP_IPAD_97"
case appDesktop = "APP_DESKTOP"
case appWatchUltra = "APP_WATCH_ULTRA"
case appWatchSeries7 = "APP_WATCH_SERIES_7"
case appWatchSeries4 = "APP_WATCH_SERIES_4"
case appWatchSeries3 = "APP_WATCH_SERIES_3"
case appAppleTV = "APP_APPLE_TV"
case iMessageAppIphone67 = "IMESSAGE_APP_IPHONE_67"
case iMessageAppIphone61 = "IMESSAGE_APP_IPHONE_61"
case iMessageAppIphone65 = "IMESSAGE_APP_IPHONE_65"
case iMessageAppIphone58 = "IMESSAGE_APP_IPHONE_58"
case iMessageAppIphone55 = "IMESSAGE_APP_IPHONE_55"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public enum ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV
case previewType([PreviewType])

public enum PreviewType: String, ParameterValue, CaseIterable {
case iPhone67 = "IPHONE_67"
case iPhone61 = "IPHONE_61"
case iPhone65 = "IPHONE_65"
case iPhone58 = "IPHONE_58"
case iPhone55 = "IPHONE_55"
Expand All @@ -119,8 +121,6 @@ public enum ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV
case iPad105 = "IPAD_105"
case iPad97 = "IPAD_97"
case desktop = "DESKTOP"
case watchSeries4 = "WATCH_SERIES_4"
case watchSeries3 = "WATCH_SERIES_3"
case appleTV = "APPLE_TV"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public enum ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizati
case screenshotDisplayType([ScreenshotDisplayType])

public enum ScreenshotDisplayType: String, ParameterValue, CaseIterable {
case appIphone67 = "APP_IPHONE_67"
case appIphone61 = "APP_IPHONE_61"
case appIphone65 = "APP_IPHONE_65"
case appIphone58 = "APP_IPHONE_58"
case appIphone55 = "APP_IPHONE_55"
Expand All @@ -118,10 +120,13 @@ public enum ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizati
case appIpad105 = "APP_IPAD_105"
case appIpad97 = "APP_IPAD_97"
case appDesktop = "APP_DESKTOP"
case appWatchUltra = "APP_WATCH_ULTRA"
case appWatchSeries7 = "APP_WATCH_SERIES_7"
case appWatchSeries4 = "APP_WATCH_SERIES_4"
case appWatchSeries3 = "APP_WATCH_SERIES_3"
case appAppleTV = "APP_APPLE_TV"
case iMessageAppIphone67 = "IMESSAGE_APP_IPHONE_67"
case iMessageAppIphone61 = "IMESSAGE_APP_IPHONE_61"
case iMessageAppIphone65 = "IMESSAGE_APP_IPHONE_65"
case iMessageAppIphone58 = "IMESSAGE_APP_IPHONE_58"
case iMessageAppIphone55 = "IMESSAGE_APP_IPHONE_55"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public enum ListAppPreviewSetsForAppStoreVersionLocalizationV1 {
case previewType([PreviewType])

public enum PreviewType: String, ParameterValue, CaseIterable {
case iPhone67 = "IPHONE_67"
case iPhone61 = "IPHONE_61"
case iPhone65 = "IPHONE_65"
case iPhone58 = "IPHONE_58"
case iPhone55 = "IPHONE_55"
Expand All @@ -120,8 +122,6 @@ public enum ListAppPreviewSetsForAppStoreVersionLocalizationV1 {
case iPad105 = "IPAD_105"
case iPad97 = "IPAD_97"
case desktop = "DESKTOP"
case watchSeries4 = "WATCH_SERIES_4"
case watchSeries3 = "WATCH_SERIES_3"
case appleTV = "APPLE_TV"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public enum ListAppScreenshotSetsForAppStoreVersionLocalizationV1 {
case screenshotDisplayType([ScreenshotDisplayType])

public enum ScreenshotDisplayType: String, ParameterValue, CaseIterable {
case appIphone67 = "APP_IPHONE_67"
case appIphone61 = "APP_IPHONE_61"
case appIphone65 = "APP_IPHONE_65"
case appIphone58 = "APP_IPHONE_58"
case appIphone55 = "APP_IPHONE_55"
Expand All @@ -119,10 +121,13 @@ public enum ListAppScreenshotSetsForAppStoreVersionLocalizationV1 {
case appIpad105 = "APP_IPAD_105"
case appIpad97 = "APP_IPAD_97"
case appDesktop = "APP_DESKTOP"
case appWatchUltra = "APP_WATCH_ULTRA"
case appWatchSeries7 = "APP_WATCH_SERIES_7"
case appWatchSeries4 = "APP_WATCH_SERIES_4"
case appWatchSeries3 = "APP_WATCH_SERIES_3"
case appAppleTV = "APP_APPLE_TV"
case iMessageAppIphone67 = "IMESSAGE_APP_IPHONE_67"
case iMessageAppIphone61 = "IMESSAGE_APP_IPHONE_61"
case iMessageAppIphone65 = "IMESSAGE_APP_IPHONE_65"
case iMessageAppIphone58 = "IMESSAGE_APP_IPHONE_58"
case iMessageAppIphone55 = "IMESSAGE_APP_IPHONE_55"
Expand Down
4 changes: 2 additions & 2 deletions Sources/Bagbutik-Models/AppStore/PreviewType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import Foundation
<https://developer.apple.com/documentation/appstoreconnectapi/previewtype>
*/
public enum PreviewType: String, Codable, CaseIterable {
case iPhone67 = "IPHONE_67"
case iPhone61 = "IPHONE_61"
case iPhone65 = "IPHONE_65"
case iPhone58 = "IPHONE_58"
case iPhone55 = "IPHONE_55"
Expand All @@ -21,7 +23,5 @@ public enum PreviewType: String, Codable, CaseIterable {
case iPad105 = "IPAD_105"
case iPad97 = "IPAD_97"
case desktop = "DESKTOP"
case watchSeries4 = "WATCH_SERIES_4"
case watchSeries3 = "WATCH_SERIES_3"
case appleTV = "APPLE_TV"
}
5 changes: 5 additions & 0 deletions Sources/Bagbutik-Models/AppStore/ScreenshotDisplayType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import Foundation
<https://developer.apple.com/documentation/appstoreconnectapi/screenshotdisplaytype>
*/
public enum ScreenshotDisplayType: String, Codable, CaseIterable {
case appIphone67 = "APP_IPHONE_67"
case appIphone61 = "APP_IPHONE_61"
case appIphone65 = "APP_IPHONE_65"
case appIphone58 = "APP_IPHONE_58"
case appIphone55 = "APP_IPHONE_55"
Expand All @@ -21,10 +23,13 @@ public enum ScreenshotDisplayType: String, Codable, CaseIterable {
case appIpad105 = "APP_IPAD_105"
case appIpad97 = "APP_IPAD_97"
case appDesktop = "APP_DESKTOP"
case appWatchUltra = "APP_WATCH_ULTRA"
case appWatchSeries7 = "APP_WATCH_SERIES_7"
case appWatchSeries4 = "APP_WATCH_SERIES_4"
case appWatchSeries3 = "APP_WATCH_SERIES_3"
case appAppleTV = "APP_APPLE_TV"
case iMessageAppIphone67 = "IMESSAGE_APP_IPHONE_67"
case iMessageAppIphone61 = "IMESSAGE_APP_IPHONE_61"
case iMessageAppIphone65 = "IMESSAGE_APP_IPHONE_65"
case iMessageAppIphone58 = "IMESSAGE_APP_IPHONE_58"
case iMessageAppIphone55 = "IMESSAGE_APP_IPHONE_55"
Expand Down
1 change: 1 addition & 0 deletions Tests/Bagbutik-CoreTests/NullCodableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ final class NullCodableTests: XCTestCase {
func testEncodingNonNull() throws {
// Given
let encoder = JSONEncoder()
encoder.outputFormatting = .sortedKeys
let testData = TestData(id: "42", name: "Bob")
// When
let jsonData = try encoder.encode(testData)
Expand Down
2 changes: 1 addition & 1 deletion spec-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0
2.1

0 comments on commit 5b97b0e

Please sign in to comment.