Skip to content

Commit

Permalink
Merge pull request #78 from apivideo/update-video-status-endpoint-des…
Browse files Browse the repository at this point in the history
…cription

Update VideoStatusIngest enum descriptions
  • Loading branch information
bot-api-video authored Feb 19, 2024
2 parents b9bb4b6 + c64a4cd commit c86c4aa
Show file tree
Hide file tree
Showing 8 changed files with 14 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 @@
09cba6da28969c86b96778e25dab3f892246709c244e97aa0d53300dbebe1467
5678c55d78ebee898e89b47215b59cb855d1997cdda9202292548ec786d8e9f5
4 changes: 2 additions & 2 deletions ApiVideoClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = '10.0'
# Add back when CocoaPods/CocoaPods#11558 is released
#s.watchos.deployment_target = '3.0'
s.version = '1.2.1'
s.source = { :git => 'https://github.com/apivideo/api.video-swift-client', :tag => 'v1.2.1' }
s.version = '1.2.2'
s.source = { :git => 'https://github.com/apivideo/api.video-swift-client', :tag => 'v1.2.2' }
s.authors = { 'Ecosystem Team' => '[email protected]' }
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.2.2] - 2024-02-19
- Update VideoStatusIngest enum

## [1.2.1] - 2023-08-25
- Fix progressive upload with upload token and video id
- Use pascal case for enums
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ api.video's Swift API client for iOS, macOS and tvOS streamlines the coding proc
Specify it in your `Cartfile`:

```
github "apivideo/api.video-swift-client" ~> 1.2.1
github "apivideo/api.video-swift-client" ~> 1.2.2
```

Run `carthage update`

#### CocoaPods

Add `pod 'ApiVideoClient', '1.2.1'` in your `Podfile`
Add `pod 'ApiVideoClient', '1.2.2'` 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 @@ -8,7 +8,7 @@ import Foundation
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": "swift:1.2.1"]
internal static var customHeaders:[String: String] = ["AV-Origin-Client": "swift:1.2.2"]
private static var chunkSize: Int = 50 * 1024 * 1024
internal static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
internal static var credential = ApiVideoCredential()
Expand Down
5 changes: 3 additions & 2 deletions Sources/Models/VideoStatusIngest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ import AnyCodable
public struct VideoStatusIngest: Codable, Hashable {

public enum Status: String, Codable, CaseIterable {
case missing = "missing"
case uploading = "uploading"
case uploaded = "uploaded"
case ingesting = "ingesting"
case ingested = "ingested"
}
/** 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. */
/** 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. */
public var status: Status?
/** The size of your file in bytes. */
public var filesize: Int?
Expand Down
2 changes: 1 addition & 1 deletion docs/VideoStatusIngest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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]
**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]
**filesize** | **Int** | The size of your file in bytes. | [optional]
**receivedBytes** | [BytesRange] | The total number of bytes received, listed for each chunk of the upload. | [optional]
**receivedParts** | [**VideoStatusIngestReceivedParts**](VideoStatusIngestReceivedParts.md) | | [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.2.1
version: 1.2.2
settings:
APPLICATION_EXTENSION_API_ONLY: true
scheme: {}
Expand Down

0 comments on commit c86c4aa

Please sign in to comment.