From c05dc6ffe48bf2e44cfb89a22d7cea768012895a Mon Sep 17 00:00:00 2001 From: Backend CI Date: Tue, 14 Jun 2022 12:03:23 +0000 Subject: [PATCH] Auto-generated by Jenkins job OTT-Generate-ClientLibs/915, branch master --- README.md | 4 +-- package.json | 2 +- src/api/types/KalturaBasePromotion.ts | 36 -------------------- src/api/types/KalturaCampaign.ts | 8 ++--- src/api/types/KalturaCampaignOrderBy.ts | 7 +--- src/api/types/KalturaCampaignSearchFilter.ts | 11 +----- src/api/types/KalturaChannelCondition.ts | 34 ------------------ src/api/types/KalturaCouponPromotion.ts | 34 ------------------ src/api/types/KalturaFileTypeCondition.ts | 34 ------------------ src/api/types/KalturaPromotion.ts | 11 ++++-- src/api/types/KalturaRuleConditionType.ts | 2 -- src/api/types/index.ts | 6 +--- src/environment.ts | 2 +- 13 files changed, 19 insertions(+), 172 deletions(-) delete mode 100644 src/api/types/KalturaBasePromotion.ts delete mode 100644 src/api/types/KalturaChannelCondition.ts delete mode 100644 src/api/types/KalturaCouponPromotion.ts delete mode 100644 src/api/types/KalturaFileTypeCondition.ts diff --git a/README.md b/README.md index 757d60a3..2c9124e2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Kaltura OTT Typescript Client -Compatible with Kaltura OTT server version 7.7.0.29939 and above. +Compatible with Kaltura OTT server version 7.7.0.29910 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-29939 +npm install kaltura-ott-typescript-client@7.7.0-29910 ``` **Found a bug?** create [kaltura/clients-generator issue](https://github.com/kaltura/clients-generator/issues) diff --git a/package.json b/package.json index 5ed54b4c..89761f78 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "kaltura-ott-typescript-client", "private": true, - "version": "7.7.0-29939", + "version": "7.7.0-29910", "description": "Kaltura OTT Typescript client", "keywords": [ "Kaltura" diff --git a/src/api/types/KalturaBasePromotion.ts b/src/api/types/KalturaBasePromotion.ts deleted file mode 100644 index b22087fb..00000000 --- a/src/api/types/KalturaBasePromotion.ts +++ /dev/null @@ -1,36 +0,0 @@ - -import { KalturaObjectMetadata } from '../kaltura-object-base'; -import { KalturaTypesFactory } from '../kaltura-types-factory'; -import { KalturaCondition } from './KalturaCondition'; -import { KalturaObjectBase, KalturaObjectBaseArgs } from '../kaltura-object-base'; - -export interface KalturaBasePromotionArgs extends KalturaObjectBaseArgs { - conditions? : KalturaCondition[]; -} - - -export class KalturaBasePromotion extends KalturaObjectBase { - - conditions : KalturaCondition[]; - - constructor(data? : KalturaBasePromotionArgs) - { - super(data); - if (typeof this.conditions === 'undefined') this.conditions = []; - } - - protected _getMetadata() : KalturaObjectMetadata - { - const result = super._getMetadata(); - Object.assign( - result.properties, - { - objectType : { type : 'c', default : 'KalturaBasePromotion' }, - conditions : { type : 'a', subTypeConstructor : KalturaCondition, subType : 'KalturaCondition' } - } - ); - return result; - } -} - -KalturaTypesFactory.registerType('KalturaBasePromotion',KalturaBasePromotion); diff --git a/src/api/types/KalturaCampaign.ts b/src/api/types/KalturaCampaign.ts index b94c828b..5d088b47 100644 --- a/src/api/types/KalturaCampaign.ts +++ b/src/api/types/KalturaCampaign.ts @@ -2,7 +2,7 @@ import { KalturaObjectMetadata } from '../kaltura-object-base'; import { KalturaTypesFactory } from '../kaltura-types-factory'; import { KalturaObjectState } from './KalturaObjectState'; -import { KalturaBasePromotion } from './KalturaBasePromotion'; +import { KalturaPromotion } from './KalturaPromotion'; import { KalturaOTTObjectSupportNullable, KalturaOTTObjectSupportNullableArgs } from './KalturaOTTObjectSupportNullable'; export interface KalturaCampaignArgs extends KalturaOTTObjectSupportNullableArgs { @@ -11,7 +11,7 @@ export interface KalturaCampaignArgs extends KalturaOTTObjectSupportNullableArg name? : string; systemName? : string; description? : string; - promotion? : KalturaBasePromotion; + promotion? : KalturaPromotion; message? : string; collectionIdIn? : string; } @@ -28,7 +28,7 @@ export class KalturaCampaign extends KalturaOTTObjectSupportNullable { systemName : string; description : string; readonly state : KalturaObjectState; - promotion : KalturaBasePromotion; + promotion : KalturaPromotion; message : string; collectionIdIn : string; @@ -53,7 +53,7 @@ export class KalturaCampaign extends KalturaOTTObjectSupportNullable { systemName : { type : 's' }, description : { type : 's' }, state : { type : 'es', readOnly : true, subTypeConstructor : KalturaObjectState, subType : 'KalturaObjectState' }, - promotion : { type : 'o', subTypeConstructor : KalturaBasePromotion, subType : 'KalturaBasePromotion' }, + promotion : { type : 'o', subTypeConstructor : KalturaPromotion, subType : 'KalturaPromotion' }, message : { type : 's' }, collectionIdIn : { type : 's' } } diff --git a/src/api/types/KalturaCampaignOrderBy.ts b/src/api/types/KalturaCampaignOrderBy.ts index 7c8b9280..ecab1eb2 100644 --- a/src/api/types/KalturaCampaignOrderBy.ts +++ b/src/api/types/KalturaCampaignOrderBy.ts @@ -1,10 +1,5 @@ export enum KalturaCampaignOrderBy { - endDateAsc = 'END_DATE_ASC', - endDateDesc = 'END_DATE_DESC', - startDateAsc = 'START_DATE_ASC', - startDateDesc = 'START_DATE_DESC', - updateDateAsc = 'UPDATE_DATE_ASC', - updateDateDesc = 'UPDATE_DATE_DESC' + startDateDesc = 'START_DATE_DESC' } \ No newline at end of file diff --git a/src/api/types/KalturaCampaignSearchFilter.ts b/src/api/types/KalturaCampaignSearchFilter.ts index 4956bc89..f8e50180 100644 --- a/src/api/types/KalturaCampaignSearchFilter.ts +++ b/src/api/types/KalturaCampaignSearchFilter.ts @@ -9,9 +9,6 @@ export interface KalturaCampaignSearchFilterArgs extends KalturaCampaignFilterA endDateLessThanOrEqual? : number; stateEqual? : KalturaObjectState; hasPromotion? : boolean; - nameEqual? : string; - nameContains? : string; - stateIn? : string; } @@ -21,9 +18,6 @@ export class KalturaCampaignSearchFilter extends KalturaCampaignFilter { endDateLessThanOrEqual : number; stateEqual : KalturaObjectState; hasPromotion : boolean; - nameEqual : string; - nameContains : string; - stateIn : string; constructor(data? : KalturaCampaignSearchFilterArgs) { @@ -40,10 +34,7 @@ export class KalturaCampaignSearchFilter extends KalturaCampaignFilter { startDateGreaterThanOrEqual : { type : 'n' }, endDateLessThanOrEqual : { type : 'n' }, stateEqual : { type : 'es', subTypeConstructor : KalturaObjectState, subType : 'KalturaObjectState' }, - hasPromotion : { type : 'b' }, - nameEqual : { type : 's' }, - nameContains : { type : 's' }, - stateIn : { type : 's' } + hasPromotion : { type : 'b' } } ); return result; diff --git a/src/api/types/KalturaChannelCondition.ts b/src/api/types/KalturaChannelCondition.ts deleted file mode 100644 index 7fbd9207..00000000 --- a/src/api/types/KalturaChannelCondition.ts +++ /dev/null @@ -1,34 +0,0 @@ - -import { KalturaObjectMetadata } from '../kaltura-object-base'; -import { KalturaTypesFactory } from '../kaltura-types-factory'; -import { KalturaCondition, KalturaConditionArgs } from './KalturaCondition'; - -export interface KalturaChannelConditionArgs extends KalturaConditionArgs { - idIn? : string; -} - - -export class KalturaChannelCondition extends KalturaCondition { - - idIn : string; - - constructor(data? : KalturaChannelConditionArgs) - { - super(data); - } - - protected _getMetadata() : KalturaObjectMetadata - { - const result = super._getMetadata(); - Object.assign( - result.properties, - { - objectType : { type : 'c', default : 'KalturaChannelCondition' }, - idIn : { type : 's' } - } - ); - return result; - } -} - -KalturaTypesFactory.registerType('KalturaChannelCondition',KalturaChannelCondition); diff --git a/src/api/types/KalturaCouponPromotion.ts b/src/api/types/KalturaCouponPromotion.ts deleted file mode 100644 index 99a9fbe7..00000000 --- a/src/api/types/KalturaCouponPromotion.ts +++ /dev/null @@ -1,34 +0,0 @@ - -import { KalturaObjectMetadata } from '../kaltura-object-base'; -import { KalturaTypesFactory } from '../kaltura-types-factory'; -import { KalturaBasePromotion, KalturaBasePromotionArgs } from './KalturaBasePromotion'; - -export interface KalturaCouponPromotionArgs extends KalturaBasePromotionArgs { - couponGroupId? : number; -} - - -export class KalturaCouponPromotion extends KalturaBasePromotion { - - couponGroupId : number; - - constructor(data? : KalturaCouponPromotionArgs) - { - super(data); - } - - protected _getMetadata() : KalturaObjectMetadata - { - const result = super._getMetadata(); - Object.assign( - result.properties, - { - objectType : { type : 'c', default : 'KalturaCouponPromotion' }, - couponGroupId : { type : 'n' } - } - ); - return result; - } -} - -KalturaTypesFactory.registerType('KalturaCouponPromotion',KalturaCouponPromotion); diff --git a/src/api/types/KalturaFileTypeCondition.ts b/src/api/types/KalturaFileTypeCondition.ts deleted file mode 100644 index d121326a..00000000 --- a/src/api/types/KalturaFileTypeCondition.ts +++ /dev/null @@ -1,34 +0,0 @@ - -import { KalturaObjectMetadata } from '../kaltura-object-base'; -import { KalturaTypesFactory } from '../kaltura-types-factory'; -import { KalturaCondition, KalturaConditionArgs } from './KalturaCondition'; - -export interface KalturaFileTypeConditionArgs extends KalturaConditionArgs { - idIn? : string; -} - - -export class KalturaFileTypeCondition extends KalturaCondition { - - idIn : string; - - constructor(data? : KalturaFileTypeConditionArgs) - { - super(data); - } - - protected _getMetadata() : KalturaObjectMetadata - { - const result = super._getMetadata(); - Object.assign( - result.properties, - { - objectType : { type : 'c', default : 'KalturaFileTypeCondition' }, - idIn : { type : 's' } - } - ); - return result; - } -} - -KalturaTypesFactory.registerType('KalturaFileTypeCondition',KalturaFileTypeCondition); diff --git a/src/api/types/KalturaPromotion.ts b/src/api/types/KalturaPromotion.ts index 158561d8..8c4cb01f 100644 --- a/src/api/types/KalturaPromotion.ts +++ b/src/api/types/KalturaPromotion.ts @@ -1,22 +1,26 @@ import { KalturaObjectMetadata } from '../kaltura-object-base'; import { KalturaTypesFactory } from '../kaltura-types-factory'; -import { KalturaBasePromotion, KalturaBasePromotionArgs } from './KalturaBasePromotion'; +import { KalturaCondition } from './KalturaCondition'; +import { KalturaObjectBase, KalturaObjectBaseArgs } from '../kaltura-object-base'; -export interface KalturaPromotionArgs extends KalturaBasePromotionArgs { +export interface KalturaPromotionArgs extends KalturaObjectBaseArgs { discountModuleId? : number; + conditions? : KalturaCondition[]; numberOfRecurring? : number; } -export class KalturaPromotion extends KalturaBasePromotion { +export class KalturaPromotion extends KalturaObjectBase { discountModuleId : number; + conditions : KalturaCondition[]; numberOfRecurring : number; constructor(data? : KalturaPromotionArgs) { super(data); + if (typeof this.conditions === 'undefined') this.conditions = []; } protected _getMetadata() : KalturaObjectMetadata @@ -27,6 +31,7 @@ export class KalturaPromotion extends KalturaBasePromotion { { objectType : { type : 'c', default : 'KalturaPromotion' }, discountModuleId : { type : 'n' }, + conditions : { type : 'a', subTypeConstructor : KalturaCondition, subType : 'KalturaCondition' }, numberOfRecurring : { type : 'n' } } ); diff --git a/src/api/types/KalturaRuleConditionType.ts b/src/api/types/KalturaRuleConditionType.ts index ad4a4069..e4fb2847 100644 --- a/src/api/types/KalturaRuleConditionType.ts +++ b/src/api/types/KalturaRuleConditionType.ts @@ -5,7 +5,6 @@ export enum KalturaRuleConditionType { assetShop = 'ASSET_SHOP', assetSubscription = 'ASSET_SUBSCRIPTION', businessModule = 'BUSINESS_MODULE', - channel = 'CHANNEL', concurrency = 'CONCURRENCY', country = 'COUNTRY', date = 'DATE', @@ -16,7 +15,6 @@ export enum KalturaRuleConditionType { deviceModel = 'DEVICE_MODEL', deviceUdidDynamicList = 'DEVICE_UDID_DYNAMIC_LIST', dynamicKeys = 'DYNAMIC_KEYS', - fileType = 'FILE_TYPE', header = 'HEADER', ipRange = 'IP_RANGE', ipV6Range = 'IP_V6_RANGE', diff --git a/src/api/types/index.ts b/src/api/types/index.ts index de365de2..452771f6 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -258,7 +258,6 @@ export { KalturaAssetConditionBase, KalturaAssetConditionBaseArgs } from './Kalt export { KalturaAssetUserRuleAction, KalturaAssetUserRuleActionArgs } from './KalturaAssetUserRuleAction' export { KalturaAssetUserRule, KalturaAssetUserRuleArgs } from './KalturaAssetUserRule' export { KalturaAssetShopCondition, KalturaAssetShopConditionArgs } from './KalturaAssetShopCondition' -export { KalturaChannelCondition, KalturaChannelConditionArgs } from './KalturaChannelCondition' export { KalturaNotCondition, KalturaNotConditionArgs } from './KalturaNotCondition' export { KalturaOrCondition, KalturaOrConditionArgs } from './KalturaOrCondition' export { KalturaCountryCondition, KalturaCountryConditionArgs } from './KalturaCountryCondition' @@ -281,7 +280,6 @@ export { KalturaUdidDynamicListCondition, KalturaUdidDynamicListConditionArgs } export { KalturaDynamicKeysCondition, KalturaDynamicKeysConditionArgs } from './KalturaDynamicKeysCondition' export { KalturaDeviceDynamicDataCondition, KalturaDeviceDynamicDataConditionArgs } from './KalturaDeviceDynamicDataCondition' export { KalturaUserSessionProfileCondition, KalturaUserSessionProfileConditionArgs } from './KalturaUserSessionProfileCondition' -export { KalturaFileTypeCondition, KalturaFileTypeConditionArgs } from './KalturaFileTypeCondition' export { KalturaIpV6RangeCondition, KalturaIpV6RangeConditionArgs } from './KalturaIpV6RangeCondition' export { KalturaAccessControlBlockAction, KalturaAccessControlBlockActionArgs } from './KalturaAccessControlBlockAction' export { KalturaAllowPlaybackAction, KalturaAllowPlaybackActionArgs } from './KalturaAllowPlaybackAction' @@ -325,12 +323,10 @@ export { KalturaBusinessModuleRule, KalturaBusinessModuleRuleArgs } from './Kalt export { KalturaTvmRule, KalturaTvmRuleArgs } from './KalturaTvmRule' export { KalturaTvmDeviceRule, KalturaTvmDeviceRuleArgs } from './KalturaTvmDeviceRule' export { KalturaTvmGeoRule, KalturaTvmGeoRuleArgs } from './KalturaTvmGeoRule' -export { KalturaBasePromotion, KalturaBasePromotionArgs } from './KalturaBasePromotion' +export { KalturaPromotion, KalturaPromotionArgs } from './KalturaPromotion' export { KalturaCampaign, KalturaCampaignArgs } from './KalturaCampaign' export { KalturaBatchCampaign, KalturaBatchCampaignArgs } from './KalturaBatchCampaign' export { KalturaTriggerCampaign, KalturaTriggerCampaignArgs } from './KalturaTriggerCampaign' -export { KalturaCouponPromotion, KalturaCouponPromotionArgs } from './KalturaCouponPromotion' -export { KalturaPromotion, KalturaPromotionArgs } from './KalturaPromotion' export { KalturaEventNotification, KalturaEventNotificationArgs } from './KalturaEventNotification' export { KalturaIot, KalturaIotArgs } from './KalturaIot' export { KalturaIotProfileAws, KalturaIotProfileAwsArgs } from './KalturaIotProfileAws' diff --git a/src/environment.ts b/src/environment.ts index 9344d818..64eda772 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.29939', + apiVersion: '7.7.0.29910', ottMode: true, fileFormatValue: 20 },