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/ApiVideoUploader.podspec b/ApiVideoUploader.podspec index d74463b..676fbe3 100644 --- a/ApiVideoUploader.podspec +++ b/ApiVideoUploader.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 = '0.1.4' - s.source = { :git => 'https://github.com/apivideo/api.video-ios-uploader', :tag => 'v0.1.4' } + s.version = '0.1.5' + s.source = { :git => 'https://github.com/apivideo/api.video-ios-uploader', :tag => 'v0.1.5' } 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 be4c172..50866cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All changes to this project will be documented in this file. +## [0.1.5] - 2022-04-21 +- Fix `video.publishedAt` type + ## [0.1.4] - 2022-03-11 - Add Origin identification headers diff --git a/README.md b/README.md index 9d22a53..c1f3083 100644 --- a/README.md +++ b/README.md @@ -39,14 +39,14 @@ It allows you to upload videos in two ways: Specify it in your `Cartfile`: ``` -github "apivideo/api.video-ios-uploader" ~> 0.1.4 +github "apivideo/api.video-ios-uploader" ~> 0.1.5 ``` Run `carthage update` ### CocoaPods -Add `pod 'ApiVideoUploader', '0.1.4'` in your `Podfile` +Add `pod 'ApiVideoUploader', '0.1.5'` in your `Podfile` Run `pod install` diff --git a/Sources/APIs.swift b/Sources/APIs.swift index 6f21979..0e98a36 100644 --- a/Sources/APIs.swift +++ b/Sources/APIs.swift @@ -15,7 +15,7 @@ public class ApiVideoUploader { public static var apiKey: String? = nil public static var basePath = "https://ws.api.video" - internal static var customHeaders:[String: String] = ["AV-Origin-Client": "ios-uploader:0.1.4"] + internal static var customHeaders:[String: String] = ["AV-Origin-Client": "ios-uploader:0.1.5"] 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 b97b053..cf53f18 100644 --- a/project.yml +++ b/project.yml @@ -7,7 +7,7 @@ targets: sources: [Sources] info: path: ./Info.plist - version: 0.1.4 + version: 0.1.5 settings: APPLICATION_EXTENSION_API_ONLY: true scheme: {}