Skip to content

Commit c86c4aa

Browse files
Merge pull request #78 from apivideo/update-video-status-endpoint-description
Update VideoStatusIngest enum descriptions
2 parents b9bb4b6 + c64a4cd commit c86c4aa

File tree

8 files changed

+14
-10
lines changed

8 files changed

+14
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
09cba6da28969c86b96778e25dab3f892246709c244e97aa0d53300dbebe1467
1+
5678c55d78ebee898e89b47215b59cb855d1997cdda9202292548ec786d8e9f5

ApiVideoClient.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Pod::Spec.new do |s|
55
s.tvos.deployment_target = '10.0'
66
# Add back when CocoaPods/CocoaPods#11558 is released
77
#s.watchos.deployment_target = '3.0'
8-
s.version = '1.2.1'
9-
s.source = { :git => 'https://github.com/apivideo/api.video-swift-client', :tag => 'v1.2.1' }
8+
s.version = '1.2.2'
9+
s.source = { :git => 'https://github.com/apivideo/api.video-swift-client', :tag => 'v1.2.2' }
1010
s.authors = { 'Ecosystem Team' => 'ecosystem@api.video' }
1111
s.license = { :type => 'MIT' }
1212
s.homepage = 'https://docs.api.video'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [1.2.2] - 2024-02-19
5+
- Update VideoStatusIngest enum
6+
47
## [1.2.1] - 2023-08-25
58
- Fix progressive upload with upload token and video id
69
- Use pascal case for enums

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ api.video's Swift API client for iOS, macOS and tvOS streamlines the coding proc
5555
Specify it in your `Cartfile`:
5656

5757
```
58-
github "apivideo/api.video-swift-client" ~> 1.2.1
58+
github "apivideo/api.video-swift-client" ~> 1.2.2
5959
```
6060

6161
Run `carthage update`
6262

6363
#### CocoaPods
6464

65-
Add `pod 'ApiVideoClient', '1.2.1'` in your `Podfile`
65+
Add `pod 'ApiVideoClient', '1.2.2'` in your `Podfile`
6666

6767
Run `pod install`
6868

Sources/APIs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Foundation
88
public class ApiVideoClient {
99
public static var apiKey: String? = nil
1010
public static var basePath = "https://ws.api.video"
11-
internal static var customHeaders:[String: String] = ["AV-Origin-Client": "swift:1.2.1"]
11+
internal static var customHeaders:[String: String] = ["AV-Origin-Client": "swift:1.2.2"]
1212
private static var chunkSize: Int = 50 * 1024 * 1024
1313
internal static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
1414
internal static var credential = ApiVideoCredential()

Sources/Models/VideoStatusIngest.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ import AnyCodable
1414
public struct VideoStatusIngest: Codable, Hashable {
1515

1616
public enum Status: String, Codable, CaseIterable {
17-
case missing = "missing"
1817
case uploading = "uploading"
1918
case uploaded = "uploaded"
19+
case ingesting = "ingesting"
20+
case ingested = "ingested"
2021
}
21-
/** There are three possible ingest statuses. missing - you are missing information required to ingest the video. uploading - the video is in the process of being uploaded. uploaded - the video is ready for use. */
22+
/** There are four possible statuses depending on how you provide a video file: - `uploading` - the API is gathering the video source file from an upload. - `uploaded` - the video file is fully uploaded. - `ingesting` - the API is gathering the video source file from either a URL, or from cloning. - `ingested` - the video file is fully stored. */
2223
public var status: Status?
2324
/** The size of your file in bytes. */
2425
public var filesize: Int?

docs/VideoStatusIngest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**status** | **String** | There are three possible ingest statuses. missing - you are missing information required to ingest the video. uploading - the video is in the process of being uploaded. uploaded - the video is ready for use. | [optional]
6+
**status** | **String** | There are four possible statuses depending on how you provide a video file: - `uploading` - the API is gathering the video source file from an upload. - `uploaded` - the video file is fully uploaded. - `ingesting` - the API is gathering the video source file from either a URL, or from cloning. - `ingested` - the video file is fully stored. | [optional]
77
**filesize** | **Int** | The size of your file in bytes. | [optional]
88
**receivedBytes** | [BytesRange] | The total number of bytes received, listed for each chunk of the upload. | [optional]
99
**receivedParts** | [**VideoStatusIngestReceivedParts**](VideoStatusIngestReceivedParts.md) | | [optional]

project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ targets:
77
sources: [Sources]
88
info:
99
path: ./Info.plist
10-
version: 1.2.1
10+
version: 1.2.2
1111
settings:
1212
APPLICATION_EXTENSION_API_ONLY: true
1313
scheme: {}

0 commit comments

Comments
 (0)