Skip to content

Commit

Permalink
Fix publishedAt type
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo committed Apr 21, 2022
1 parent a582ba9 commit 3f5ec99
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 51 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [2.2.6] - 2022-04-21
- Fix `video.publishedAt` type

## [2.2.5] - 2022-03-21
- Add `ingest.receivedParts` attribute in GET /videos/{video_id}/status

Expand Down
2 changes: 1 addition & 1 deletion doc/model/Video.md
Expand Up @@ -9,7 +9,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** | **Array<string>** | One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. | [optional]
**metadata** | [**Array<Metadata>**](Metadata.md) | 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
121 changes: 77 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@api.video/nodejs-client",
"version": "2.2.5",
"version": "2.2.6",
"description": "api.video nodejs API client",
"keywords": [
"api.video",
Expand Down
2 changes: 1 addition & 1 deletion src/HttpClient.ts
Expand Up @@ -44,7 +44,7 @@ export default class HttpClient {
this.tokenType = 'Bearer';
this.headers = {
Accept: 'application/json, */*;q=0.8',
'AV-Origin-Client': 'nodejs:2.2.5',
'AV-Origin-Client': 'nodejs:2.2.6',
...(params.applicationName
? {
'AV-Origin-App': `${params.applicationName}${
Expand Down
6 changes: 3 additions & 3 deletions src/model/Video.ts
Expand Up @@ -34,7 +34,7 @@ export default class Video {
/**
* The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
*/
'publishedAt'?: string;
'publishedAt'?: Date;
/**
* The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
*/
Expand Down Expand Up @@ -96,8 +96,8 @@ export default class Video {
{
name: 'publishedAt',
baseName: 'publishedAt',
type: 'string',
format: '',
type: 'Date',
format: 'date-time',
},
{
name: 'updatedAt',
Expand Down
2 changes: 1 addition & 1 deletion test/sandbox.spec.ts
Expand Up @@ -97,7 +97,7 @@ describe('ApiVideoClient', () => {
baseUri: process.env.BASE_URI,
chunkSize: 5 * 1024 * 1024,
applicationName: 'client-integration-tests',
applicationVersion: '2.2.5',
applicationVersion: '2.2.6',
});

// Upload a watermark
Expand Down

0 comments on commit 3f5ec99

Please sign in to comment.