Skip to content

Commit

Permalink
Merge pull request #31 from apivideo/fix-publishedAt-type
Browse files Browse the repository at this point in the history
Fix publishedAt type
  • Loading branch information
bot-api-video authored Apr 21, 2022
2 parents 0ffcc37 + 2eb275a commit 4a46356
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/oas_apivideo.yaml-defaut-cli.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44bc31782e7fd372028f532b784b171b30b9d4f4dc62f35672daa9f12225a939
83a284189e8563226661d57e8ab4ca3a79c4cf6b98a313c193e42cd7ad04c433
4 changes: 2 additions & 2 deletions ApiVideoClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion Sources/APIs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions Sources/Models/Video.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/Video.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down

0 comments on commit 4a46356

Please sign in to comment.