From 39977863f61e718d109c950ba315cd3f02afcd1b Mon Sep 17 00:00:00 2001 From: Backend CI Date: Sun, 17 Jul 2022 11:21:24 +0000 Subject: [PATCH] Auto-generated by Jenkins job OTT-Generate-ClientLibs/928, branch BEO-12268 --- README.md | 4 +- package.json | 2 +- .../types/KalturaConcurrencyPartnerConfig.ts | 5 +- ...treamingDeviceBookPlaybackSessionAction.ts | 51 +++++++++++++++++++ src/api/types/index.ts | 3 +- src/environment.ts | 2 +- 6 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 src/api/types/StreamingDeviceBookPlaybackSessionAction.ts diff --git a/README.md b/README.md index 8932ee08..113085be 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Kaltura OTT Typescript Client -Compatible with Kaltura OTT server version 7.7.0.29917 and above. +Compatible with Kaltura OTT server version 7.8.0.29957 and above. [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![Gitter chat](https://badges.gitter.im/kaltura-ng/kaltura-ng.png)](https://gitter.im/kaltura-ng/kaltura-ng) [![Build Status](https://travis-ci.org/kaltura/KalturaOttGeneratedAPIClientsTypescript.svg?branch=master)](https://travis-ci.org/kaltura/KalturaOttGeneratedAPIClientsTypescript) @@ -16,7 +16,7 @@ To keep being update review the [changelog](CHANGELOG.md) frequently. You can install this client library using npm with: ``` -npm install kaltura-ott-typescript-client@7.7.0-29917 +npm install kaltura-ott-typescript-client@7.8.0-29957 ``` **Found a bug?** create [kaltura/clients-generator issue](https://github.com/kaltura/clients-generator/issues) diff --git a/package.json b/package.json index c6d51309..87531e06 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "kaltura-ott-typescript-client", "private": true, - "version": "7.7.0-29917", + "version": "7.8.0-29957", "description": "Kaltura OTT Typescript client", "keywords": [ "Kaltura" diff --git a/src/api/types/KalturaConcurrencyPartnerConfig.ts b/src/api/types/KalturaConcurrencyPartnerConfig.ts index 036ed478..83e258d9 100644 --- a/src/api/types/KalturaConcurrencyPartnerConfig.ts +++ b/src/api/types/KalturaConcurrencyPartnerConfig.ts @@ -9,6 +9,7 @@ export interface KalturaConcurrencyPartnerConfigArgs extends KalturaPartnerConf evictionPolicy? : KalturaEvictionPolicyType; concurrencyThresholdInSeconds? : number; revokeOnDeviceDelete? : boolean; + excludeFreeContentFromConcurrency? : boolean; } @@ -18,6 +19,7 @@ export class KalturaConcurrencyPartnerConfig extends KalturaPartnerConfiguration evictionPolicy : KalturaEvictionPolicyType; concurrencyThresholdInSeconds : number; revokeOnDeviceDelete : boolean; + excludeFreeContentFromConcurrency : boolean; constructor(data? : KalturaConcurrencyPartnerConfigArgs) { @@ -34,7 +36,8 @@ export class KalturaConcurrencyPartnerConfig extends KalturaPartnerConfiguration deviceFamilyIds : { type : 's' }, evictionPolicy : { type : 'es', subTypeConstructor : KalturaEvictionPolicyType, subType : 'KalturaEvictionPolicyType' }, concurrencyThresholdInSeconds : { type : 'n' }, - revokeOnDeviceDelete : { type : 'b' } + revokeOnDeviceDelete : { type : 'b' }, + excludeFreeContentFromConcurrency : { type : 'b' } } ); return result; diff --git a/src/api/types/StreamingDeviceBookPlaybackSessionAction.ts b/src/api/types/StreamingDeviceBookPlaybackSessionAction.ts new file mode 100644 index 00000000..d195d82e --- /dev/null +++ b/src/api/types/StreamingDeviceBookPlaybackSessionAction.ts @@ -0,0 +1,51 @@ + +import { KalturaObjectMetadata } from '../kaltura-object-base'; + + +import { KalturaAssetType } from './KalturaAssetType'; +import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request'; + +export interface StreamingDeviceBookPlaybackSessionActionArgs extends KalturaRequestArgs { + mediaFileId : string; + assetId : string; + assetType : KalturaAssetType; +} + +/** + * Build request payload for service 'streamingDevice' action 'bookPlaybackSession'. + * + * Usage: Reserves a concurrency slot for the given asset-device combination + * + * Server response type: boolean + * Server failure response type: KalturaAPIException + * @class + * @extends KalturaRequest + */ +export class StreamingDeviceBookPlaybackSessionAction extends KalturaRequest { + + mediaFileId : string; + assetId : string; + assetType : KalturaAssetType; + + constructor(data : StreamingDeviceBookPlaybackSessionActionArgs) + { + super(data, {responseType : 'b', responseSubType : '', responseConstructor : null }); + } + + protected _getMetadata() : KalturaObjectMetadata + { + const result = super._getMetadata(); + Object.assign( + result.properties, + { + service : { type : 'c', default : 'streamingdevice' }, + action : { type : 'c', default : 'bookPlaybackSession' }, + mediaFileId : { type : 's' }, + assetId : { type : 's' }, + assetType : { type : 'es', subTypeConstructor : KalturaAssetType, subType : 'KalturaAssetType' } + } + ); + return result; + } +} + diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 649dac1c..82642ca3 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -776,8 +776,8 @@ export { KalturaSSOAdapterProfileInvoke, KalturaSSOAdapterProfileInvokeArgs } fr export { KalturaTimeShiftedTvPartnerSettings, KalturaTimeShiftedTvPartnerSettingsArgs } from './KalturaTimeShiftedTvPartnerSettings' export { KalturaPurchaseBase, KalturaPurchaseBaseArgs } from './KalturaPurchaseBase' export { KalturaPurchase, KalturaPurchaseArgs } from './KalturaPurchase' -export { KalturaPurchaseSession, KalturaPurchaseSessionArgs } from './KalturaPurchaseSession' export { KalturaExternalReceipt, KalturaExternalReceiptArgs } from './KalturaExternalReceipt' +export { KalturaPurchaseSession, KalturaPurchaseSessionArgs } from './KalturaPurchaseSession' export { KalturaTransaction, KalturaTransactionArgs } from './KalturaTransaction' export { KalturaTransactionStatus, KalturaTransactionStatusArgs } from './KalturaTransactionStatus' export { KalturaEntitlementRenewalBase, KalturaEntitlementRenewalBaseArgs } from './KalturaEntitlementRenewalBase' @@ -1508,6 +1508,7 @@ export { SsoAdapterProfileGenerateSharedSecretAction, SsoAdapterProfileGenerateS export { SsoAdapterProfileInvokeAction, SsoAdapterProfileInvokeActionArgs } from './SsoAdapterProfileInvokeAction' export { SsoAdapterProfileListAction, SsoAdapterProfileListActionArgs } from './SsoAdapterProfileListAction' export { SsoAdapterProfileUpdateAction, SsoAdapterProfileUpdateActionArgs } from './SsoAdapterProfileUpdateAction' +export { StreamingDeviceBookPlaybackSessionAction, StreamingDeviceBookPlaybackSessionActionArgs } from './StreamingDeviceBookPlaybackSessionAction' export { StreamingDeviceListAction, StreamingDeviceListActionArgs } from './StreamingDeviceListAction' export { SubscriptionAddAction, SubscriptionAddActionArgs } from './SubscriptionAddAction' export { SubscriptionDeleteAction, SubscriptionDeleteActionArgs } from './SubscriptionDeleteAction' diff --git a/src/environment.ts b/src/environment.ts index 1ff5bc37..3b1a04ea 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -12,7 +12,7 @@ export interface Environment { export const environment: Environment = { request: { - apiVersion: '7.7.0.29917', + apiVersion: '7.8.0.29957', ottMode: true, fileFormatValue: 20 },