diff --git a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 index 74c8d27..e4ef56a 100644 --- a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 +++ b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 @@ -1 +1 @@ -44bc31782e7fd372028f532b784b171b30b9d4f4dc62f35672daa9f12225a939 \ No newline at end of file +83a284189e8563226661d57e8ab4ca3a79c4cf6b98a313c193e42cd7ad04c433 \ No newline at end of file diff --git a/ApiVideoClient.podspec b/ApiVideoClient.podspec index 3ffee8a..ce76519 100644 --- a/ApiVideoClient.podspec +++ b/ApiVideoClient.podspec @@ -4,8 +4,8 @@ Pod::Spec.new do |s| s.osx.deployment_target = '10.12' s.tvos.deployment_target = '10.0' s.watchos.deployment_target = '3.0' - s.version = '1.0.3' - s.source = { :git => 'https://github.com/apivideo/api.video-ios-client', :tag => 'v1.0.3' } + s.version = '1.0.4' + s.source = { :git => 'https://github.com/apivideo/api.video-ios-client', :tag => 'v1.0.4' } s.authors = { 'Ecosystem Team' => 'ecosystem@api.video' } s.license = { :type => 'MIT' } s.homepage = 'https://docs.api.video' diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fec7be..0671fc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All changes to this project will be documented in this file. +## [1.0.4] - 2022-04-21 +- Fix `video.publishedAt` type + ## [1.0.3] - 2022-03-21 - Add `ingest.receivedParts` attribute in GET /videos/{video_id}/status diff --git a/README.md b/README.md index 75eb8e7..4a02486 100644 --- a/README.md +++ b/README.md @@ -42,14 +42,14 @@ api.video's iOS streamlines the coding process. Chunking files is handled for y Specify it in your `Cartfile`: ``` -github "apivideo/api.video-ios-client" ~> 1.0.3 +github "apivideo/api.video-ios-client" ~> 1.0.4 ``` Run `carthage update` ### CocoaPods -Add `pod 'ApiVideoClient', '1.0.3'` in your `Podfile` +Add `pod 'ApiVideoClient', '1.0.4'` in your `Podfile` Run `pod install` diff --git a/Sources/APIs.swift b/Sources/APIs.swift index a5e4b3a..88ce5af 100644 --- a/Sources/APIs.swift +++ b/Sources/APIs.swift @@ -15,7 +15,7 @@ public class ApiVideoClient { public static var apiKey: String? = nil public static var basePath = "https://ws.api.video" - internal static var customHeaders:[String: String] = ["AV-Origin-Client": "ios:1.0.3"] + internal static var customHeaders:[String: String] = ["AV-Origin-Client": "ios:1.0.4"] private static var chunkSize: Int = 50 * 1024 * 1024 internal static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory() internal static var credential = ApiVideoCredential() diff --git a/Sources/Models/Video.swift b/Sources/Models/Video.swift index 22cf680..6cd9b32 100644 --- a/Sources/Models/Video.swift +++ b/Sources/Models/Video.swift @@ -21,7 +21,7 @@ public struct Video: Codable, Hashable { /** A description for the video content. */ public var description: String? /** The date and time the API created the video. Date and time are provided using ISO-8601 UTC format. */ - public var publishedAt: String? + public var publishedAt: Date? /** The date and time the video was updated. Date and time are provided using ISO-8601 UTC format. */ public var updatedAt: Date? /** One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. */ @@ -39,7 +39,7 @@ public struct Video: Codable, Hashable { /** This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video. */ public var mp4Support: Bool? - public init(videoId: String, createdAt: Date? = nil, title: String? = nil, description: String? = nil, publishedAt: String? = nil, updatedAt: Date? = nil, tags: [String]? = nil, metadata: [Metadata]? = nil, source: VideoSource? = nil, assets: VideoAssets? = nil, playerId: String? = nil, _public: Bool? = nil, panoramic: Bool? = nil, mp4Support: Bool? = nil) { + public init(videoId: String, createdAt: Date? = nil, title: String? = nil, description: String? = nil, publishedAt: Date? = nil, updatedAt: Date? = nil, tags: [String]? = nil, metadata: [Metadata]? = nil, source: VideoSource? = nil, assets: VideoAssets? = nil, playerId: String? = nil, _public: Bool? = nil, panoramic: Bool? = nil, mp4Support: Bool? = nil) { self.videoId = videoId self.createdAt = createdAt self.title = title diff --git a/docs/Video.md b/docs/Video.md index ffcdb9e..24e97e6 100644 --- a/docs/Video.md +++ b/docs/Video.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **createdAt** | **Date** | When a video was created, presented in ISO-8601 format. | [optional] **title** | **String** | The title of the video content. | [optional] **description** | **String** | A description for the video content. | [optional] -**publishedAt** | **String** | The date and time the API created the video. Date and time are provided using ISO-8601 UTC format. | [optional] +**publishedAt** | **Date** | The date and time the API created the video. Date and time are provided using ISO-8601 UTC format. | [optional] **updatedAt** | **Date** | The date and time the video was updated. Date and time are provided using ISO-8601 UTC format. | [optional] **tags** | **[String]** | One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. | [optional] **metadata** | [Metadata] | Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair. | [optional] diff --git a/project.yml b/project.yml index 564b312..f47a321 100644 --- a/project.yml +++ b/project.yml @@ -7,7 +7,7 @@ targets: sources: [Sources] info: path: ./Info.plist - version: 1.0.3 + version: 1.0.4 settings: APPLICATION_EXTENSION_API_ONLY: true scheme: {}