forked from AvdLee/appstoreconnect-swift-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rate-limit-parsing
- Loading branch information
Showing
154 changed files
with
6,754 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
dotenv (2.8.1) | ||
|
||
PLATFORMS | ||
universal-darwin-22 | ||
|
||
DEPENDENCIES | ||
dotenv | ||
|
||
BUNDLED WITH | ||
2.2.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// Generated by Create API | ||
// https://github.com/CreateAPI/CreateAPI | ||
// | ||
// swiftlint:disable all | ||
|
||
import Foundation | ||
|
||
public struct Actor: 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 actors | ||
} | ||
|
||
public struct Attributes: Codable { | ||
public var actorType: ActorType? | ||
public var userFirstName: String? | ||
public var userLastName: String? | ||
public var userEmail: String? | ||
public var apiKeyID: String? | ||
|
||
public enum ActorType: String, Codable, CaseIterable { | ||
case user = "USER" | ||
case apiKey = "API_KEY" | ||
case xcodeCloud = "XCODE_CLOUD" | ||
case apple = "APPLE" | ||
} | ||
|
||
public init(actorType: ActorType? = nil, userFirstName: String? = nil, userLastName: String? = nil, userEmail: String? = nil, apiKeyID: String? = nil) { | ||
self.actorType = actorType | ||
self.userFirstName = userFirstName | ||
self.userLastName = userLastName | ||
self.userEmail = userEmail | ||
self.apiKeyID = apiKeyID | ||
} | ||
|
||
public init(from decoder: Decoder) throws { | ||
let values = try decoder.container(keyedBy: StringCodingKey.self) | ||
self.actorType = try values.decodeIfPresent(ActorType.self, forKey: "actorType") | ||
self.userFirstName = try values.decodeIfPresent(String.self, forKey: "userFirstName") | ||
self.userLastName = try values.decodeIfPresent(String.self, forKey: "userLastName") | ||
self.userEmail = try values.decodeIfPresent(String.self, forKey: "userEmail") | ||
self.apiKeyID = try values.decodeIfPresent(String.self, forKey: "apiKeyId") | ||
} | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var values = encoder.container(keyedBy: StringCodingKey.self) | ||
try values.encodeIfPresent(actorType, forKey: "actorType") | ||
try values.encodeIfPresent(userFirstName, forKey: "userFirstName") | ||
try values.encodeIfPresent(userLastName, forKey: "userLastName") | ||
try values.encodeIfPresent(userEmail, forKey: "userEmail") | ||
try values.encodeIfPresent(apiKeyID, forKey: "apiKeyId") | ||
} | ||
} | ||
|
||
public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { | ||
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.decode(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.encode(links, forKey: "links") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Generated by Create API | ||
// https://github.com/CreateAPI/CreateAPI | ||
// | ||
// swiftlint:disable all | ||
|
||
import Foundation | ||
|
||
public struct ActorResponse: Codable { | ||
/// Actor | ||
public var data: Actor | ||
public var links: DocumentLinks | ||
|
||
public init(data: Actor, 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(Actor.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") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Generated by Create API | ||
// https://github.com/CreateAPI/CreateAPI | ||
// | ||
// swiftlint:disable all | ||
|
||
import Foundation | ||
|
||
public struct ActorsResponse: Codable { | ||
public var data: [Actor] | ||
public var links: PagedDocumentLinks | ||
public var meta: PagingInformation? | ||
|
||
public init(data: [Actor], 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([Actor].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") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.