diff --git a/Sources/PodcastIndexKit/Models/CategoriesResponse.swift b/Sources/PodcastIndexKit/Models/CategoriesResponse.swift index eb2c59a..63065bf 100644 --- a/Sources/PodcastIndexKit/Models/CategoriesResponse.swift +++ b/Sources/PodcastIndexKit/Models/CategoriesResponse.swift @@ -18,12 +18,12 @@ public struct CategoriesResponse: Codable, Hashable, Sendable { public let count: Int? /// Description of the response - public let description: String? + public let categoriesResponseDescription: String? enum CodingKeys: String, CodingKey { case responseStatus = "status" case feeds case count - case description + case categoriesResponseDescription = "description" } } diff --git a/Sources/PodcastIndexKit/Models/DataResponse.swift b/Sources/PodcastIndexKit/Models/DataResponse.swift index 07c4a66..9f4faae 100644 --- a/Sources/PodcastIndexKit/Models/DataResponse.swift +++ b/Sources/PodcastIndexKit/Models/DataResponse.swift @@ -16,7 +16,7 @@ public struct DataResponse: Codable, Hashable, Sendable { public let since: Date? /// Description of the response - public let description: String? + public let dataResponseDescription: String? /// Value to pass as since parameter to get next batch of data public let nextSince: Int? @@ -40,7 +40,7 @@ public struct DataResponse: Codable, Hashable, Sendable { case itemCount case max case since - case description + case dataResponseDescription = "description" case nextSince case data } diff --git a/Sources/PodcastIndexKit/Models/Episode.swift b/Sources/PodcastIndexKit/Models/Episode.swift index 85605c1..78de2f1 100644 --- a/Sources/PodcastIndexKit/Models/Episode.swift +++ b/Sources/PodcastIndexKit/Models/Episode.swift @@ -13,7 +13,7 @@ public struct Episode: Codable, Hashable, Sendable { /// The item-level description of the episode. /// Uses the longer of the possible fields in the feed: , and - public let description: String? + public let episodeDescription: String? /// The unique identifier for the episode public let guid: String? @@ -131,6 +131,47 @@ public struct Episode: Codable, Hashable, Sendable { /// Status of the livestream /// Allowed: ended┃live public let status: LivestreamStatus? + + enum CodingKeys: String, CodingKey { + case id + case title + case link + case episodeDescription = "description" + case guid + case datePublished + case datePublishedPretty + case dateCrawled + case enclosureUrl + case enclosureType + case enclosureLength + case contentLink + case duration + case explicit + case episode + case episodeType + case season + case image + case feedItunesId + case feedImage + case feedId + case feedLanguage + case feedDead + case feedTitle + case feedDuplicateOf + case chaptersUrl + case transcriptUrl + case feedImageUrlHash + case imageUrlHash + case transcripts + case persons + case socialInteract + case value + case soundbite + case soundbites + case startTime + case endTime + case status + } } public enum LivestreamStatus: String, Codable, Hashable, Sendable { diff --git a/Sources/PodcastIndexKit/Models/EpisodeArrayResponse.swift b/Sources/PodcastIndexKit/Models/EpisodeArrayResponse.swift index 4ad0fec..3e9ece5 100644 --- a/Sources/PodcastIndexKit/Models/EpisodeArrayResponse.swift +++ b/Sources/PodcastIndexKit/Models/EpisodeArrayResponse.swift @@ -14,7 +14,7 @@ public struct EpisodeArrayResponse: Codable, Hashable, Sendable { public let query: EpisodeResponsesQuery? /// Description of the response - public let description: String? + public let episodeArrayResponseDescription: String? /// Indicates API request status /// Allowed: true┃false @@ -32,7 +32,7 @@ public struct EpisodeArrayResponse: Codable, Hashable, Sendable { case items case count case query - case description + case episodeArrayResponseDescription = "description" } } diff --git a/Sources/PodcastIndexKit/Models/EpisodeResponse.swift b/Sources/PodcastIndexKit/Models/EpisodeResponse.swift index b244e18..7322797 100644 --- a/Sources/PodcastIndexKit/Models/EpisodeResponse.swift +++ b/Sources/PodcastIndexKit/Models/EpisodeResponse.swift @@ -17,7 +17,7 @@ public struct EpisodeResponse: Codable, Hashable, Sendable { public let episode: Episode? /// Description of the response - public let description: String? + public let episodeResponseDescription: String? /// Indicates API request status /// Allowed: true┃false @@ -36,6 +36,6 @@ public struct EpisodeResponse: Codable, Hashable, Sendable { case guid case podcastGuid case episode - case description + case episodeResponseDescription = "description" } } diff --git a/Sources/PodcastIndexKit/Models/Podcast.swift b/Sources/PodcastIndexKit/Models/Podcast.swift index 333d0e3..7c807ad 100644 --- a/Sources/PodcastIndexKit/Models/Podcast.swift +++ b/Sources/PodcastIndexKit/Models/Podcast.swift @@ -20,7 +20,7 @@ public struct Podcast: Codable, Hashable, Sendable { /// The channel-level description /// Uses the longer of the possible fields in the feed: , and - public let description: String? + public let podcastDescription: String? /// The channel-level author element. /// Usually iTunes specific, but could be from another namespace if not present. @@ -131,6 +131,43 @@ public struct Podcast: Codable, Hashable, Sendable { /// Information for donation/funding the podcast. /// See the [podcast namespace spec](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#funding) for more information. public let funding: PodcastFunding? + + enum CodingKeys: String, CodingKey { + case id + case title + case url + case originalUrl + case link + case podcastDescription = "description" + case author + case ownerName + case image + case artwork + case lastUpdateTime + case lastCrawlTime + case lastParseTime + case lastGoodHttpStatusTime + case lastHttpStatus + case contentType + case itunesId + case generator + case language + case type + case dead + case crawlErrors + case parseErrors + case categories + case locked + case podcastGuid + case episodeCount + case imageUrlHash + case newestItemPubdate + case explicit + case itunesType + case chash + case value + case funding + } } public enum PodcastType: Int, Codable, Hashable, Sendable { diff --git a/Sources/PodcastIndexKit/Models/PodcastArrayResponse.swift b/Sources/PodcastIndexKit/Models/PodcastArrayResponse.swift index 7ae6f8f..c42ac18 100644 --- a/Sources/PodcastIndexKit/Models/PodcastArrayResponse.swift +++ b/Sources/PodcastIndexKit/Models/PodcastArrayResponse.swift @@ -12,7 +12,7 @@ public struct PodcastArrayResponse: Codable, Hashable, Sendable { public let query: String? /// Description of the response - public let description: String? + public let podcastArrayResponseDescription: String? /// Indicates API request status @@ -30,6 +30,6 @@ public struct PodcastArrayResponse: Codable, Hashable, Sendable { case feeds case count case query - case description + case podcastArrayResponseDescription = "description" } } diff --git a/Sources/PodcastIndexKit/Models/PodcastResponse.swift b/Sources/PodcastIndexKit/Models/PodcastResponse.swift index 4783209..27700ca 100644 --- a/Sources/PodcastIndexKit/Models/PodcastResponse.swift +++ b/Sources/PodcastIndexKit/Models/PodcastResponse.swift @@ -9,7 +9,7 @@ public struct PodcastResponse: Codable, Hashable, Sendable { public let query: PodcastResponsesQuery? /// Description of the response - public let description: String? + public let podcastResponseDescription: String? /// Indicates API request status /// Allowed: true┃false @@ -25,7 +25,7 @@ public struct PodcastResponse: Codable, Hashable, Sendable { case responseStatus = "status" case feed case query - case description + case podcastResponseDescription = "description" } } diff --git a/Sources/PodcastIndexKit/Models/PubNotifyResponse.swift b/Sources/PodcastIndexKit/Models/PubNotifyResponse.swift index fa65c7f..5602c79 100644 --- a/Sources/PodcastIndexKit/Models/PubNotifyResponse.swift +++ b/Sources/PodcastIndexKit/Models/PubNotifyResponse.swift @@ -2,7 +2,7 @@ public struct PubNotifyResponse: Codable, Hashable, Sendable { private let responseStatus: String? /// Description of the response - public let description: String? + public let pubNotifyDescription: String? /// Indicates API request status /// Allowed: true┃false @@ -16,6 +16,6 @@ public struct PubNotifyResponse: Codable, Hashable, Sendable { enum CodingKeys: String, CodingKey { case responseStatus = "status" - case description + case pubNotifyDescription = "description" } } diff --git a/Sources/PodcastIndexKit/Models/RandomEpisodeResponse.swift b/Sources/PodcastIndexKit/Models/RandomEpisodeResponse.swift index 7eef07a..15acd78 100644 --- a/Sources/PodcastIndexKit/Models/RandomEpisodeResponse.swift +++ b/Sources/PodcastIndexKit/Models/RandomEpisodeResponse.swift @@ -11,7 +11,7 @@ public struct RandomEpisodeResponse: Codable, Hashable, Sendable { public let max: Int? /// Description of the response - public let description: String? + public let randomEpisodeResponseDescription: String? /// Indicates API request status /// Allowed: true┃false @@ -28,6 +28,6 @@ public struct RandomEpisodeResponse: Codable, Hashable, Sendable { case episodes case count case max - case description + case randomEpisodeResponseDescription = "description" } } diff --git a/Sources/PodcastIndexKit/Models/SoundbiteArrayResponse.swift b/Sources/PodcastIndexKit/Models/SoundbiteArrayResponse.swift index b710227..9d107af 100644 --- a/Sources/PodcastIndexKit/Models/SoundbiteArrayResponse.swift +++ b/Sources/PodcastIndexKit/Models/SoundbiteArrayResponse.swift @@ -5,7 +5,7 @@ public struct SoundbiteArrayResponse: Codable, Hashable, Sendable { public let count: Int? /// Description of the response - public let description: String? + public let soundbiteArrayResponseDescription: String? /// List of soundbites matching request public let items: [Soundbite]? @@ -23,7 +23,7 @@ public struct SoundbiteArrayResponse: Codable, Hashable, Sendable { enum CodingKeys: String, CodingKey { case responseStatus = "status" case count - case description + case soundbiteArrayResponseDescription = "description" case items } } diff --git a/Sources/PodcastIndexKit/Models/StatsResponse.swift b/Sources/PodcastIndexKit/Models/StatsResponse.swift index 04d9e22..2c5126c 100644 --- a/Sources/PodcastIndexKit/Models/StatsResponse.swift +++ b/Sources/PodcastIndexKit/Models/StatsResponse.swift @@ -15,11 +15,11 @@ public struct StatsResponse: Codable, Hashable, Sendable { public let stats: [StatProperties]? /// Description of the response - public let description: String? + public let statsResponseDescription: String? enum CodingKeys: String, CodingKey { case responseStatus = "status" case stats - case description + case statsResponseDescription = "description" } } diff --git a/Sources/PodcastIndexKit/Models/ValueResponse.swift b/Sources/PodcastIndexKit/Models/ValueResponse.swift index 6ca46e9..5fda028 100644 --- a/Sources/PodcastIndexKit/Models/ValueResponse.swift +++ b/Sources/PodcastIndexKit/Models/ValueResponse.swift @@ -21,12 +21,12 @@ public struct ValueResponse: Codable, Hashable, Sendable { public let value: Value? /// Description of the response - public let description: String? + public let valueResponseDescription: String? enum CodingKeys: String, CodingKey { case responseStatus = "status" case query case value - case description + case valueResponseDescription = "description" } }