Skip to content

Commit 9491118

Browse files
authored
Merge pull request #35 from swiftty/update-generated-code
Update generated code to v4.3.1
2 parents 6515e83 + f2ca706 commit 9491118

197 files changed

Lines changed: 14778 additions & 41 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AlternativeDistributionPackageVersions/ById/AlternativeDistributionPackageVersionsById.GET.f08d676.generated.swift

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ extension V1.AlternativeDistributionPackageVersions.ById {
3434
value: parameters.fields[.alternativeDistributionPackageVariants]?.map { "\($0)" }.joined(separator: ",")),
3535
URLQueryItem(name: "fields[alternativeDistributionPackageVersions]",
3636
value: parameters.fields[.alternativeDistributionPackageVersions]?.map { "\($0)" }.joined(separator: ",")),
37+
URLQueryItem(name: "fields[alternativeDistributionPackages]",
38+
value: parameters.fields[.alternativeDistributionPackages]?.map { "\($0)" }.joined(separator: ",")),
3739
URLQueryItem(name: "include",
3840
value: parameters.include?.map { "\($0)" }.joined(separator: ",")),
3941
URLQueryItem(name: "limit[deltas]",
@@ -205,6 +207,26 @@ extension V1.AlternativeDistributionPackageVersions.ById.GET {
205207
}
206208
}
207209

210+
public struct AlternativeDistributionPackages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
211+
public static var sourceFileChecksum: Self {
212+
.init(rawValue: "sourceFileChecksum")
213+
}
214+
215+
public static var versions: Self {
216+
.init(rawValue: "versions")
217+
}
218+
219+
public var description: String {
220+
rawValue
221+
}
222+
223+
public var rawValue: String
224+
225+
public init(rawValue: String) {
226+
self.rawValue = rawValue
227+
}
228+
}
229+
208230
public struct Relation<T>: Hashable {
209231
/// the fields to include for returned resources of type alternativeDistributionPackageDeltas
210232
public static var alternativeDistributionPackageDeltas: Relation<[AlternativeDistributionPackageDeltas]?> {
@@ -221,6 +243,11 @@ extension V1.AlternativeDistributionPackageVersions.ById.GET {
221243
.init(key: "fields[alternativeDistributionPackageVersions]")
222244
}
223245

246+
/// the fields to include for returned resources of type alternativeDistributionPackages
247+
public static var alternativeDistributionPackages: Relation<[AlternativeDistributionPackages]?> {
248+
.init(key: "fields[alternativeDistributionPackages]")
249+
}
250+
224251
internal let key: String
225252

226253
public func hash(into hasher: inout Hasher) {

Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAdvancedExperiences/ById/AppClipAdvancedExperiencesById.GET.79eae35.generated.swift

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ extension V1.AppClipAdvancedExperiences.ById {
2828
components?.path = path
2929

3030
components?.queryItems = [
31+
URLQueryItem(name: "fields[appClipAdvancedExperienceImages]",
32+
value: parameters.fields[.appClipAdvancedExperienceImages]?.map { "\($0)" }.joined(separator: ",")),
33+
URLQueryItem(name: "fields[appClipAdvancedExperienceLocalizations]",
34+
value: parameters.fields[.appClipAdvancedExperienceLocalizations]?.map { "\($0)" }.joined(separator: ",")),
3135
URLQueryItem(name: "fields[appClipAdvancedExperiences]",
3236
value: parameters.fields[.appClipAdvancedExperiences]?.map { "\($0)" }.joined(separator: ",")),
37+
URLQueryItem(name: "fields[appClips]",
38+
value: parameters.fields[.appClips]?.map { "\($0)" }.joined(separator: ",")),
3339
URLQueryItem(name: "include",
3440
value: parameters.include?.map { "\($0)" }.joined(separator: ",")),
3541
URLQueryItem(name: "limit[localizations]",
@@ -99,6 +105,66 @@ extension V1.AppClipAdvancedExperiences.ById.GET {
99105

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

108+
public struct AppClipAdvancedExperienceImages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
109+
public static var assetDeliveryState: Self {
110+
.init(rawValue: "assetDeliveryState")
111+
}
112+
113+
public static var fileName: Self {
114+
.init(rawValue: "fileName")
115+
}
116+
117+
public static var fileSize: Self {
118+
.init(rawValue: "fileSize")
119+
}
120+
121+
public static var imageAsset: Self {
122+
.init(rawValue: "imageAsset")
123+
}
124+
125+
public static var sourceFileChecksum: Self {
126+
.init(rawValue: "sourceFileChecksum")
127+
}
128+
129+
public static var uploadOperations: Self {
130+
.init(rawValue: "uploadOperations")
131+
}
132+
133+
public var description: String {
134+
rawValue
135+
}
136+
137+
public var rawValue: String
138+
139+
public init(rawValue: String) {
140+
self.rawValue = rawValue
141+
}
142+
}
143+
144+
public struct AppClipAdvancedExperienceLocalizations: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
145+
public static var language: Self {
146+
.init(rawValue: "language")
147+
}
148+
149+
public static var subtitle: Self {
150+
.init(rawValue: "subtitle")
151+
}
152+
153+
public static var title: Self {
154+
.init(rawValue: "title")
155+
}
156+
157+
public var description: String {
158+
rawValue
159+
}
160+
161+
public var rawValue: String
162+
163+
public init(rawValue: String) {
164+
self.rawValue = rawValue
165+
}
166+
}
167+
102168
public struct AppClipAdvancedExperiences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
103169
public static var action: Self {
104170
.init(rawValue: "action")
@@ -159,12 +225,55 @@ extension V1.AppClipAdvancedExperiences.ById.GET {
159225
}
160226
}
161227

228+
public struct AppClips: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
229+
public static var app: Self {
230+
.init(rawValue: "app")
231+
}
232+
233+
public static var appClipAdvancedExperiences: Self {
234+
.init(rawValue: "appClipAdvancedExperiences")
235+
}
236+
237+
public static var appClipDefaultExperiences: Self {
238+
.init(rawValue: "appClipDefaultExperiences")
239+
}
240+
241+
public static var bundleId: Self {
242+
.init(rawValue: "bundleId")
243+
}
244+
245+
public var description: String {
246+
rawValue
247+
}
248+
249+
public var rawValue: String
250+
251+
public init(rawValue: String) {
252+
self.rawValue = rawValue
253+
}
254+
}
255+
162256
public struct Relation<T>: Hashable {
257+
/// the fields to include for returned resources of type appClipAdvancedExperienceImages
258+
public static var appClipAdvancedExperienceImages: Relation<[AppClipAdvancedExperienceImages]?> {
259+
.init(key: "fields[appClipAdvancedExperienceImages]")
260+
}
261+
262+
/// the fields to include for returned resources of type appClipAdvancedExperienceLocalizations
263+
public static var appClipAdvancedExperienceLocalizations: Relation<[AppClipAdvancedExperienceLocalizations]?> {
264+
.init(key: "fields[appClipAdvancedExperienceLocalizations]")
265+
}
266+
163267
/// the fields to include for returned resources of type appClipAdvancedExperiences
164268
public static var appClipAdvancedExperiences: Relation<[AppClipAdvancedExperiences]?> {
165269
.init(key: "fields[appClipAdvancedExperiences]")
166270
}
167271

272+
/// the fields to include for returned resources of type appClips
273+
public static var appClips: Relation<[AppClips]?> {
274+
.init(key: "fields[appClips]")
275+
}
276+
168277
internal let key: String
169278

170279
public func hash(into hasher: inout Hasher) {

Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipAppStoreReviewDetails/ById/AppClipAppStoreReviewDetailsById.GET.8072c9a.generated.swift

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ extension V1.AppClipAppStoreReviewDetails.ById {
3030
components?.queryItems = [
3131
URLQueryItem(name: "fields[appClipAppStoreReviewDetails]",
3232
value: parameters.fields[.appClipAppStoreReviewDetails]?.map { "\($0)" }.joined(separator: ",")),
33+
URLQueryItem(name: "fields[appClipDefaultExperiences]",
34+
value: parameters.fields[.appClipDefaultExperiences]?.map { "\($0)" }.joined(separator: ",")),
3335
URLQueryItem(name: "include",
3436
value: parameters.include?.map { "\($0)" }.joined(separator: ","))
3537
].filter { $0.value != nil }
@@ -115,12 +117,49 @@ extension V1.AppClipAppStoreReviewDetails.ById.GET {
115117
}
116118
}
117119

120+
public struct AppClipDefaultExperiences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
121+
public static var action: Self {
122+
.init(rawValue: "action")
123+
}
124+
125+
public static var appClip: Self {
126+
.init(rawValue: "appClip")
127+
}
128+
129+
public static var appClipAppStoreReviewDetail: Self {
130+
.init(rawValue: "appClipAppStoreReviewDetail")
131+
}
132+
133+
public static var appClipDefaultExperienceLocalizations: Self {
134+
.init(rawValue: "appClipDefaultExperienceLocalizations")
135+
}
136+
137+
public static var releaseWithAppStoreVersion: Self {
138+
.init(rawValue: "releaseWithAppStoreVersion")
139+
}
140+
141+
public var description: String {
142+
rawValue
143+
}
144+
145+
public var rawValue: String
146+
147+
public init(rawValue: String) {
148+
self.rawValue = rawValue
149+
}
150+
}
151+
118152
public struct Relation<T>: Hashable {
119153
/// the fields to include for returned resources of type appClipAppStoreReviewDetails
120154
public static var appClipAppStoreReviewDetails: Relation<[AppClipAppStoreReviewDetails]?> {
121155
.init(key: "fields[appClipAppStoreReviewDetails]")
122156
}
123157

158+
/// the fields to include for returned resources of type appClipDefaultExperiences
159+
public static var appClipDefaultExperiences: Relation<[AppClipDefaultExperiences]?> {
160+
.init(key: "fields[appClipDefaultExperiences]")
161+
}
162+
124163
internal let key: String
125164

126165
public func hash(into hasher: inout Hasher) {

Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperienceLocalizations/ById/AppClipDefaultExperienceLocalizationsById.GET.da71bfb.generated.swift

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ extension V1.AppClipDefaultExperienceLocalizations.ById {
3030
components?.queryItems = [
3131
URLQueryItem(name: "fields[appClipDefaultExperienceLocalizations]",
3232
value: parameters.fields[.appClipDefaultExperienceLocalizations]?.map { "\($0)" }.joined(separator: ",")),
33+
URLQueryItem(name: "fields[appClipDefaultExperiences]",
34+
value: parameters.fields[.appClipDefaultExperiences]?.map { "\($0)" }.joined(separator: ",")),
3335
URLQueryItem(name: "fields[appClipHeaderImages]",
3436
value: parameters.fields[.appClipHeaderImages]?.map { "\($0)" }.joined(separator: ",")),
3537
URLQueryItem(name: "include",
@@ -125,6 +127,38 @@ extension V1.AppClipDefaultExperienceLocalizations.ById.GET {
125127
}
126128
}
127129

130+
public struct AppClipDefaultExperiences: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
131+
public static var action: Self {
132+
.init(rawValue: "action")
133+
}
134+
135+
public static var appClip: Self {
136+
.init(rawValue: "appClip")
137+
}
138+
139+
public static var appClipAppStoreReviewDetail: Self {
140+
.init(rawValue: "appClipAppStoreReviewDetail")
141+
}
142+
143+
public static var appClipDefaultExperienceLocalizations: Self {
144+
.init(rawValue: "appClipDefaultExperienceLocalizations")
145+
}
146+
147+
public static var releaseWithAppStoreVersion: Self {
148+
.init(rawValue: "releaseWithAppStoreVersion")
149+
}
150+
151+
public var description: String {
152+
rawValue
153+
}
154+
155+
public var rawValue: String
156+
157+
public init(rawValue: String) {
158+
self.rawValue = rawValue
159+
}
160+
}
161+
128162
public struct AppClipHeaderImages: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
129163
public static var appClipDefaultExperienceLocalization: Self {
130164
.init(rawValue: "appClipDefaultExperienceLocalization")
@@ -171,6 +205,11 @@ extension V1.AppClipDefaultExperienceLocalizations.ById.GET {
171205
.init(key: "fields[appClipDefaultExperienceLocalizations]")
172206
}
173207

208+
/// the fields to include for returned resources of type appClipDefaultExperiences
209+
public static var appClipDefaultExperiences: Relation<[AppClipDefaultExperiences]?> {
210+
.init(key: "fields[appClipDefaultExperiences]")
211+
}
212+
174213
/// the fields to include for returned resources of type appClipHeaderImages
175214
public static var appClipHeaderImages: Relation<[AppClipHeaderImages]?> {
176215
.init(key: "fields[appClipHeaderImages]")

Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/AppClipDefaultExperiencesById.GET.ce80d07.generated.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ extension V1.AppClipDefaultExperiences.ById {
3434
value: parameters.fields[.appClipDefaultExperienceLocalizations]?.map { "\($0)" }.joined(separator: ",")),
3535
URLQueryItem(name: "fields[appClipDefaultExperiences]",
3636
value: parameters.fields[.appClipDefaultExperiences]?.map { "\($0)" }.joined(separator: ",")),
37+
URLQueryItem(name: "fields[appClips]",
38+
value: parameters.fields[.appClips]?.map { "\($0)" }.joined(separator: ",")),
3739
URLQueryItem(name: "fields[appStoreVersions]",
3840
value: parameters.fields[.appStoreVersions]?.map { "\($0)" }.joined(separator: ",")),
3941
URLQueryItem(name: "include",
@@ -185,6 +187,34 @@ extension V1.AppClipDefaultExperiences.ById.GET {
185187
}
186188
}
187189

190+
public struct AppClips: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
191+
public static var app: Self {
192+
.init(rawValue: "app")
193+
}
194+
195+
public static var appClipAdvancedExperiences: Self {
196+
.init(rawValue: "appClipAdvancedExperiences")
197+
}
198+
199+
public static var appClipDefaultExperiences: Self {
200+
.init(rawValue: "appClipDefaultExperiences")
201+
}
202+
203+
public static var bundleId: Self {
204+
.init(rawValue: "bundleId")
205+
}
206+
207+
public var description: String {
208+
rawValue
209+
}
210+
211+
public var rawValue: String
212+
213+
public init(rawValue: String) {
214+
self.rawValue = rawValue
215+
}
216+
}
217+
188218
public struct AppStoreVersions: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {
189219
public static var alternativeDistributionPackage: Self {
190220
.init(rawValue: "alternativeDistributionPackage")
@@ -309,6 +339,11 @@ extension V1.AppClipDefaultExperiences.ById.GET {
309339
.init(key: "fields[appClipDefaultExperiences]")
310340
}
311341

342+
/// the fields to include for returned resources of type appClips
343+
public static var appClips: Relation<[AppClips]?> {
344+
.init(key: "fields[appClips]")
345+
}
346+
312347
/// the fields to include for returned resources of type appStoreVersions
313348
public static var appStoreVersions: Relation<[AppStoreVersions]?> {
314349
.init(key: "fields[appStoreVersions]")

Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppClipDefaultExperiences/ById/Relationships/ReleaseWithAppStoreVersion/AppClipDefaultExperiencesByIdRelationshipsReleaseWithAppStoreVersion.PATCH.5f5225a.generated.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ extension V1.AppClipDefaultExperiences.ById.Relationships.ReleaseWithAppStoreVer
4646
return urlRequest
4747
}
4848

49+
/// - Throws: **400**, Parameter error(s) as `ErrorResponse`
4950
/// - Throws: **401**, Unauthorized error(s) as `ErrorResponse`
5051
/// - Throws: **403**, Forbidden error as `ErrorResponse`
5152
/// - Throws: **404**, Not found error as `ErrorResponse`
@@ -59,6 +60,9 @@ extension V1.AppClipDefaultExperiences.ById.Relationships.ReleaseWithAppStoreVer
5960
}
6061

6162
switch urlResponse.statusCode {
63+
case 400:
64+
throw try jsonDecoder.decode(ErrorResponse.self, from: data)
65+
6266
case 401:
6367
throw try jsonDecoder.decode(ErrorResponse.self, from: data)
6468

0 commit comments

Comments
 (0)