diff --git a/README.md b/README.md index 38ea5a08..3e43f43b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Kaltura OTT Typescript Client -Compatible with Kaltura OTT server version 7.4.0.29868 and above. +Compatible with Kaltura OTT server version 7.6.0.29891 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.4.0-29868 +npm install kaltura-ott-typescript-client@7.6.0-29891 ``` **Found a bug?** create [kaltura/clients-generator issue](https://github.com/kaltura/clients-generator/issues) diff --git a/package.json b/package.json index 16476144..a68b19fb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "kaltura-ott-typescript-client", "private": true, - "version": "7.4.0-29868", + "version": "7.6.0-29891", "description": "Kaltura OTT Typescript client", "keywords": [ "Kaltura" diff --git a/src/api/types/IotProfileDeleteAction.ts b/src/api/types/IotProfileGetAction.ts similarity index 73% rename from src/api/types/IotProfileDeleteAction.ts rename to src/api/types/IotProfileGetAction.ts index 7f2c45f1..66c40c5a 100644 --- a/src/api/types/IotProfileDeleteAction.ts +++ b/src/api/types/IotProfileGetAction.ts @@ -4,12 +4,12 @@ import { KalturaIotProfile } from './KalturaIotProfile'; import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request'; -export interface IotProfileDeleteActionArgs extends KalturaRequestArgs { +export interface IotProfileGetActionArgs extends KalturaRequestArgs { id : number; } /** - * Build request payload for service 'iotProfile' action 'delete'. + * Build request payload for service 'iotProfile' action 'get'. * * Usage: Get existing KalturaIotProfile * @@ -18,11 +18,11 @@ export interface IotProfileDeleteActionArgs extends KalturaRequestArgs { * @class * @extends KalturaRequest */ -export class IotProfileDeleteAction extends KalturaRequest { +export class IotProfileGetAction extends KalturaRequest { id : number; - constructor(data : IotProfileDeleteActionArgs) + constructor(data : IotProfileGetActionArgs) { super(data, {responseType : 'o', responseSubType : 'KalturaIotProfile', responseConstructor : KalturaIotProfile }); } @@ -34,7 +34,7 @@ export class IotProfileDeleteAction extends KalturaRequest { result.properties, { service : { type : 'c', default : 'iotprofile' }, - action : { type : 'c', default : 'delete' }, + action : { type : 'c', default : 'get' }, id : { type : 'n' } } ); diff --git a/src/api/types/KalturaAssetCondition.ts b/src/api/types/KalturaAssetCondition.ts index 9ac7ae5f..8187bdd3 100644 --- a/src/api/types/KalturaAssetCondition.ts +++ b/src/api/types/KalturaAssetCondition.ts @@ -1,14 +1,14 @@ import { KalturaObjectMetadata } from '../kaltura-object-base'; import { KalturaTypesFactory } from '../kaltura-types-factory'; -import { KalturaCondition, KalturaConditionArgs } from './KalturaCondition'; +import { KalturaAssetConditionBase, KalturaAssetConditionBaseArgs } from './KalturaAssetConditionBase'; -export interface KalturaAssetConditionArgs extends KalturaConditionArgs { +export interface KalturaAssetConditionArgs extends KalturaAssetConditionBaseArgs { ksql? : string; } -export class KalturaAssetCondition extends KalturaCondition { +export class KalturaAssetCondition extends KalturaAssetConditionBase { ksql : string; diff --git a/src/api/types/KalturaAssetConditionBase.ts b/src/api/types/KalturaAssetConditionBase.ts new file mode 100644 index 00000000..01902937 --- /dev/null +++ b/src/api/types/KalturaAssetConditionBase.ts @@ -0,0 +1,33 @@ + +import { KalturaObjectMetadata } from '../kaltura-object-base'; +import { KalturaTypesFactory } from '../kaltura-types-factory'; +import { KalturaCondition, KalturaConditionArgs } from './KalturaCondition'; + +export interface KalturaAssetConditionBaseArgs extends KalturaConditionArgs { + +} + + +export class KalturaAssetConditionBase extends KalturaCondition { + + + + constructor(data? : KalturaAssetConditionBaseArgs) + { + super(data); + } + + protected _getMetadata() : KalturaObjectMetadata + { + const result = super._getMetadata(); + Object.assign( + result.properties, + { + objectType : { type : 'c', default : 'KalturaAssetConditionBase' } + } + ); + return result; + } +} + +KalturaTypesFactory.registerType('KalturaAssetConditionBase',KalturaAssetConditionBase); diff --git a/src/api/types/KalturaAssetShopCondition.ts b/src/api/types/KalturaAssetShopCondition.ts new file mode 100644 index 00000000..dcef548f --- /dev/null +++ b/src/api/types/KalturaAssetShopCondition.ts @@ -0,0 +1,34 @@ + +import { KalturaObjectMetadata } from '../kaltura-object-base'; +import { KalturaTypesFactory } from '../kaltura-types-factory'; +import { KalturaAssetConditionBase, KalturaAssetConditionBaseArgs } from './KalturaAssetConditionBase'; + +export interface KalturaAssetShopConditionArgs extends KalturaAssetConditionBaseArgs { + value? : string; +} + + +export class KalturaAssetShopCondition extends KalturaAssetConditionBase { + + value : string; + + constructor(data? : KalturaAssetShopConditionArgs) + { + super(data); + } + + protected _getMetadata() : KalturaObjectMetadata + { + const result = super._getMetadata(); + Object.assign( + result.properties, + { + objectType : { type : 'c', default : 'KalturaAssetShopCondition' }, + value : { type : 's' } + } + ); + return result; + } +} + +KalturaTypesFactory.registerType('KalturaAssetShopCondition',KalturaAssetShopCondition); diff --git a/src/api/types/KalturaAssetUserRule.ts b/src/api/types/KalturaAssetUserRule.ts index 3539d56c..efbf38fb 100644 --- a/src/api/types/KalturaAssetUserRule.ts +++ b/src/api/types/KalturaAssetUserRule.ts @@ -1,19 +1,19 @@ import { KalturaObjectMetadata } from '../kaltura-object-base'; import { KalturaTypesFactory } from '../kaltura-types-factory'; -import { KalturaAssetCondition } from './KalturaAssetCondition'; +import { KalturaAssetConditionBase } from './KalturaAssetConditionBase'; import { KalturaAssetUserRuleAction } from './KalturaAssetUserRuleAction'; import { KalturaAssetRuleBase, KalturaAssetRuleBaseArgs } from './KalturaAssetRuleBase'; export interface KalturaAssetUserRuleArgs extends KalturaAssetRuleBaseArgs { - conditions? : KalturaAssetCondition[]; + conditions? : KalturaAssetConditionBase[]; actions? : KalturaAssetUserRuleAction[]; } export class KalturaAssetUserRule extends KalturaAssetRuleBase { - conditions : KalturaAssetCondition[]; + conditions : KalturaAssetConditionBase[]; actions : KalturaAssetUserRuleAction[]; constructor(data? : KalturaAssetUserRuleArgs) @@ -30,7 +30,7 @@ export class KalturaAssetUserRule extends KalturaAssetRuleBase { result.properties, { objectType : { type : 'c', default : 'KalturaAssetUserRule' }, - conditions : { type : 'a', subTypeConstructor : KalturaAssetCondition, subType : 'KalturaAssetCondition' }, + conditions : { type : 'a', subTypeConstructor : KalturaAssetConditionBase, subType : 'KalturaAssetConditionBase' }, actions : { type : 'a', subTypeConstructor : KalturaAssetUserRuleAction, subType : 'KalturaAssetUserRuleAction' } } ); diff --git a/src/api/types/KalturaAssetUserRuleFilter.ts b/src/api/types/KalturaAssetUserRuleFilter.ts index 8fb9a319..6bbb2c8c 100644 --- a/src/api/types/KalturaAssetUserRuleFilter.ts +++ b/src/api/types/KalturaAssetUserRuleFilter.ts @@ -2,11 +2,13 @@ import { KalturaObjectMetadata } from '../kaltura-object-base'; import { KalturaTypesFactory } from '../kaltura-types-factory'; import { KalturaRuleActionType } from './KalturaRuleActionType'; +import { KalturaRuleConditionType } from './KalturaRuleConditionType'; import { KalturaFilter, KalturaFilterArgs } from './KalturaFilter'; export interface KalturaAssetUserRuleFilterArgs extends KalturaFilterArgs { attachedUserIdEqualCurrent? : boolean; actionsContainType? : KalturaRuleActionType; + conditionsContainType? : KalturaRuleConditionType; } @@ -14,6 +16,7 @@ export class KalturaAssetUserRuleFilter extends KalturaFilter { attachedUserIdEqualCurrent : boolean; actionsContainType : KalturaRuleActionType; + conditionsContainType : KalturaRuleConditionType; constructor(data? : KalturaAssetUserRuleFilterArgs) { @@ -28,7 +31,8 @@ export class KalturaAssetUserRuleFilter extends KalturaFilter { { objectType : { type : 'c', default : 'KalturaAssetUserRuleFilter' }, attachedUserIdEqualCurrent : { type : 'b' }, - actionsContainType : { type : 'es', subTypeConstructor : KalturaRuleActionType, subType : 'KalturaRuleActionType' } + actionsContainType : { type : 'es', subTypeConstructor : KalturaRuleActionType, subType : 'KalturaRuleActionType' }, + conditionsContainType : { type : 'es', subTypeConstructor : KalturaRuleConditionType, subType : 'KalturaRuleConditionType' } } ); return result; diff --git a/src/api/types/KalturaCatalogPartnerConfig.ts b/src/api/types/KalturaCatalogPartnerConfig.ts index e10c3283..9e73e192 100644 --- a/src/api/types/KalturaCatalogPartnerConfig.ts +++ b/src/api/types/KalturaCatalogPartnerConfig.ts @@ -9,6 +9,7 @@ export interface KalturaCatalogPartnerConfigArgs extends KalturaPartnerConfigur categoryManagement? : KalturaCategoryManagement; epgMultilingualFallbackSupport? : boolean; uploadExportDatalake? : boolean; + shopMarkerMetaId? : number; } @@ -18,6 +19,7 @@ export class KalturaCatalogPartnerConfig extends KalturaPartnerConfiguration { categoryManagement : KalturaCategoryManagement; epgMultilingualFallbackSupport : boolean; uploadExportDatalake : boolean; + shopMarkerMetaId : number; constructor(data? : KalturaCatalogPartnerConfigArgs) { @@ -34,7 +36,8 @@ export class KalturaCatalogPartnerConfig extends KalturaPartnerConfiguration { singleMultilingualMode : { type : 'b' }, categoryManagement : { type : 'o', subTypeConstructor : KalturaCategoryManagement, subType : 'KalturaCategoryManagement' }, epgMultilingualFallbackSupport : { type : 'b' }, - uploadExportDatalake : { type : 'b' } + uploadExportDatalake : { type : 'b' }, + shopMarkerMetaId : { type : 'n' } } ); return result; diff --git a/src/api/types/KalturaIpV6RangeCondition.ts b/src/api/types/KalturaIpV6RangeCondition.ts new file mode 100644 index 00000000..eb5a3c2b --- /dev/null +++ b/src/api/types/KalturaIpV6RangeCondition.ts @@ -0,0 +1,37 @@ + +import { KalturaObjectMetadata } from '../kaltura-object-base'; +import { KalturaTypesFactory } from '../kaltura-types-factory'; +import { KalturaCondition, KalturaConditionArgs } from './KalturaCondition'; + +export interface KalturaIpV6RangeConditionArgs extends KalturaConditionArgs { + fromIP? : string; + toIP? : string; +} + + +export class KalturaIpV6RangeCondition extends KalturaCondition { + + fromIP : string; + toIP : string; + + constructor(data? : KalturaIpV6RangeConditionArgs) + { + super(data); + } + + protected _getMetadata() : KalturaObjectMetadata + { + const result = super._getMetadata(); + Object.assign( + result.properties, + { + objectType : { type : 'c', default : 'KalturaIpV6RangeCondition' }, + fromIP : { type : 's' }, + toIP : { type : 's' } + } + ); + return result; + } +} + +KalturaTypesFactory.registerType('KalturaIpV6RangeCondition',KalturaIpV6RangeCondition); diff --git a/src/api/types/KalturaRuleConditionType.ts b/src/api/types/KalturaRuleConditionType.ts index 38386aff..e4fb2847 100644 --- a/src/api/types/KalturaRuleConditionType.ts +++ b/src/api/types/KalturaRuleConditionType.ts @@ -2,6 +2,7 @@ export enum KalturaRuleConditionType { asset = 'ASSET', + assetShop = 'ASSET_SHOP', assetSubscription = 'ASSET_SUBSCRIPTION', businessModule = 'BUSINESS_MODULE', concurrency = 'CONCURRENCY', @@ -16,6 +17,7 @@ export enum KalturaRuleConditionType { dynamicKeys = 'DYNAMIC_KEYS', header = 'HEADER', ipRange = 'IP_RANGE', + ipV6Range = 'IP_V6_RANGE', or = 'OR', segments = 'SEGMENTS', userRole = 'USER_ROLE', diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 3bad6879..f6ddffb8 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -253,14 +253,16 @@ export { KalturaCondition, KalturaConditionArgs } from './KalturaCondition' export { KalturaRuleAction, KalturaRuleActionArgs } from './KalturaRuleAction' export { KalturaAssetRuleAction, KalturaAssetRuleActionArgs } from './KalturaAssetRuleAction' export { KalturaAssetRule, KalturaAssetRuleArgs } from './KalturaAssetRule' -export { KalturaAssetCondition, KalturaAssetConditionArgs } from './KalturaAssetCondition' +export { KalturaAssetConditionBase, KalturaAssetConditionBaseArgs } from './KalturaAssetConditionBase' export { KalturaAssetUserRuleAction, KalturaAssetUserRuleActionArgs } from './KalturaAssetUserRuleAction' export { KalturaAssetUserRule, KalturaAssetUserRuleArgs } from './KalturaAssetUserRule' +export { KalturaAssetShopCondition, KalturaAssetShopConditionArgs } from './KalturaAssetShopCondition' export { KalturaNotCondition, KalturaNotConditionArgs } from './KalturaNotCondition' export { KalturaOrCondition, KalturaOrConditionArgs } from './KalturaOrCondition' export { KalturaCountryCondition, KalturaCountryConditionArgs } from './KalturaCountryCondition' export { KalturaDateCondition, KalturaDateConditionArgs } from './KalturaDateCondition' export { KalturaHeaderCondition, KalturaHeaderConditionArgs } from './KalturaHeaderCondition' +export { KalturaAssetCondition, KalturaAssetConditionArgs } from './KalturaAssetCondition' export { KalturaConcurrencyCondition, KalturaConcurrencyConditionArgs } from './KalturaConcurrencyCondition' export { KalturaIpRangeCondition, KalturaIpRangeConditionArgs } from './KalturaIpRangeCondition' export { KalturaBusinessModuleCondition, KalturaBusinessModuleConditionArgs } from './KalturaBusinessModuleCondition' @@ -277,6 +279,7 @@ export { KalturaUdidDynamicListCondition, KalturaUdidDynamicListConditionArgs } export { KalturaDynamicKeysCondition, KalturaDynamicKeysConditionArgs } from './KalturaDynamicKeysCondition' export { KalturaDeviceDynamicDataCondition, KalturaDeviceDynamicDataConditionArgs } from './KalturaDeviceDynamicDataCondition' export { KalturaUserSessionProfileCondition, KalturaUserSessionProfileConditionArgs } from './KalturaUserSessionProfileCondition' +export { KalturaIpV6RangeCondition, KalturaIpV6RangeConditionArgs } from './KalturaIpV6RangeCondition' export { KalturaAccessControlBlockAction, KalturaAccessControlBlockActionArgs } from './KalturaAccessControlBlockAction' export { KalturaAllowPlaybackAction, KalturaAllowPlaybackActionArgs } from './KalturaAllowPlaybackAction' export { KalturaApplyPlaybackAdapterAction, KalturaApplyPlaybackAdapterActionArgs } from './KalturaApplyPlaybackAdapterAction' @@ -1275,7 +1278,7 @@ export { IngestStatusUpdatePartnerConfigurationAction, IngestStatusUpdatePartner export { IotGetClientConfigurationAction, IotGetClientConfigurationActionArgs } from './IotGetClientConfigurationAction' export { IotRegisterAction, IotRegisterActionArgs } from './IotRegisterAction' export { IotProfileAddAction, IotProfileAddActionArgs } from './IotProfileAddAction' -export { IotProfileDeleteAction, IotProfileDeleteActionArgs } from './IotProfileDeleteAction' +export { IotProfileGetAction, IotProfileGetActionArgs } from './IotProfileGetAction' export { IotProfileUpdateAction, IotProfileUpdateActionArgs } from './IotProfileUpdateAction' export { LabelAddAction, LabelAddActionArgs } from './LabelAddAction' export { LabelDeleteAction, LabelDeleteActionArgs } from './LabelDeleteAction' diff --git a/src/environment.ts b/src/environment.ts index 217af804..52c338ac 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -12,7 +12,7 @@ export interface Environment { export const environment: Environment = { request: { - apiVersion: '7.4.0.29868', + apiVersion: '7.6.0.29891', ottMode: true, fileFormatValue: 20 },