Skip to content

Commit

Permalink
Auto-generated by Jenkins job OTT-Generate-ClientLibs/950, branch BEO…
Browse files Browse the repository at this point in the history
…-12548
  • Loading branch information
Backend CI committed Aug 16, 2022
1 parent c5a85a6 commit f2cb4c1
Show file tree
Hide file tree
Showing 22 changed files with 266 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kaltura OTT Typescript Client

Compatible with Kaltura OTT server version 7.8.1.29972 and above.
Compatible with Kaltura OTT server version 7.9.0.29981 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)
Expand All @@ -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.8.1-29972
npm install kaltura-ott-typescript-client@7.9.0-29981
```

**Found a bug?** create [kaltura/clients-generator issue](https://github.com/kaltura/clients-generator/issues)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kaltura-ott-typescript-client",
"private": true,
"version": "7.8.1-29972",
"version": "7.9.0-29981",
"description": "Kaltura OTT Typescript client",
"keywords": [
"Kaltura"
Expand Down
36 changes: 36 additions & 0 deletions src/api/types/KalturaBasePromotion.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

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);
6 changes: 6 additions & 0 deletions src/api/types/KalturaBooleanOperator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


export enum KalturaBooleanOperator {
and = 'And',
or = 'Or'
}
8 changes: 4 additions & 4 deletions src/api/types/KalturaCampaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { KalturaObjectMetadata } from '../kaltura-object-base';
import { KalturaTypesFactory } from '../kaltura-types-factory';
import { KalturaObjectState } from './KalturaObjectState';
import { KalturaPromotion } from './KalturaPromotion';
import { KalturaBasePromotion } from './KalturaBasePromotion';
import { KalturaOTTObjectSupportNullable, KalturaOTTObjectSupportNullableArgs } from './KalturaOTTObjectSupportNullable';

export interface KalturaCampaignArgs extends KalturaOTTObjectSupportNullableArgs {
Expand All @@ -11,7 +11,7 @@ export interface KalturaCampaignArgs extends KalturaOTTObjectSupportNullableArg
name? : string;
systemName? : string;
description? : string;
promotion? : KalturaPromotion;
promotion? : KalturaBasePromotion;
message? : string;
collectionIdIn? : string;
}
Expand All @@ -28,7 +28,7 @@ export class KalturaCampaign extends KalturaOTTObjectSupportNullable {
systemName : string;
description : string;
readonly state : KalturaObjectState;
promotion : KalturaPromotion;
promotion : KalturaBasePromotion;
message : string;
collectionIdIn : string;

Expand All @@ -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 : KalturaPromotion, subType : 'KalturaPromotion' },
promotion : { type : 'o', subTypeConstructor : KalturaBasePromotion, subType : 'KalturaBasePromotion' },
message : { type : 's' },
collectionIdIn : { type : 's' }
}
Expand Down
7 changes: 6 additions & 1 deletion src/api/types/KalturaCampaignOrderBy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@


export enum KalturaCampaignOrderBy {
startDateDesc = 'START_DATE_DESC'
endDateAsc = 'END_DATE_ASC',
endDateDesc = 'END_DATE_DESC',
startDateAsc = 'START_DATE_ASC',
startDateDesc = 'START_DATE_DESC',
updateDateAsc = 'UPDATE_DATE_ASC',
updateDateDesc = 'UPDATE_DATE_DESC'
}
11 changes: 10 additions & 1 deletion src/api/types/KalturaCampaignSearchFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export interface KalturaCampaignSearchFilterArgs extends KalturaCampaignFilterA
endDateLessThanOrEqual? : number;
stateEqual? : KalturaObjectState;
hasPromotion? : boolean;
nameEqual? : string;
nameContains? : string;
stateIn? : string;
}


Expand All @@ -18,6 +21,9 @@ export class KalturaCampaignSearchFilter extends KalturaCampaignFilter {
endDateLessThanOrEqual : number;
stateEqual : KalturaObjectState;
hasPromotion : boolean;
nameEqual : string;
nameContains : string;
stateIn : string;

constructor(data? : KalturaCampaignSearchFilterArgs)
{
Expand All @@ -34,7 +40,10 @@ export class KalturaCampaignSearchFilter extends KalturaCampaignFilter {
startDateGreaterThanOrEqual : { type : 'n' },
endDateLessThanOrEqual : { type : 'n' },
stateEqual : { type : 'es', subTypeConstructor : KalturaObjectState, subType : 'KalturaObjectState' },
hasPromotion : { type : 'b' }
hasPromotion : { type : 'b' },
nameEqual : { type : 's' },
nameContains : { type : 's' },
stateIn : { type : 's' }
}
);
return result;
Expand Down
34 changes: 34 additions & 0 deletions src/api/types/KalturaChannelCondition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

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);
9 changes: 8 additions & 1 deletion src/api/types/KalturaCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { KalturaUsageModule } from './KalturaUsageModule';
import { KalturaCouponsGroup } from './KalturaCouponsGroup';
import { KalturaCollectionCouponGroup } from './KalturaCollectionCouponGroup';
import { KalturaProductCode } from './KalturaProductCode';
import { KalturaIntegerValue } from './KalturaIntegerValue';
import { KalturaOTTObjectSupportNullable, KalturaOTTObjectSupportNullableArgs } from './KalturaOTTObjectSupportNullable';

export interface KalturaCollectionArgs extends KalturaOTTObjectSupportNullableArgs {
Expand All @@ -24,6 +25,7 @@ export interface KalturaCollectionArgs extends KalturaOTTObjectSupportNullableA
productCodes? : KalturaProductCode[];
priceDetailsId? : number;
isActive? : boolean;
fileTypesIds? : string;
}


Expand Down Expand Up @@ -51,6 +53,8 @@ export class KalturaCollection extends KalturaOTTObjectSupportNullable {
readonly createDate : number;
readonly updateDate : number;
readonly virtualAssetId : number;
readonly fileTypes : KalturaIntegerValue[];
fileTypesIds : string;

constructor(data? : KalturaCollectionArgs)
{
Expand All @@ -61,6 +65,7 @@ export class KalturaCollection extends KalturaOTTObjectSupportNullable {
if (typeof this.couponsGroups === 'undefined') this.couponsGroups = [];
if (typeof this.collectionCouponGroup === 'undefined') this.collectionCouponGroup = [];
if (typeof this.productCodes === 'undefined') this.productCodes = [];
if (typeof this.fileTypes === 'undefined') this.fileTypes = [];
}

protected _getMetadata() : KalturaObjectMetadata
Expand Down Expand Up @@ -91,7 +96,9 @@ export class KalturaCollection extends KalturaOTTObjectSupportNullable {
isActive : { type : 'b' },
createDate : { type : 'n', readOnly : true },
updateDate : { type : 'n', readOnly : true },
virtualAssetId : { type : 'n', readOnly : true }
virtualAssetId : { type : 'n', readOnly : true },
fileTypes : { type : 'a', readOnly : true, subTypeConstructor : KalturaIntegerValue, subType : 'KalturaIntegerValue' },
fileTypesIds : { type : 's' }
}
);
return result;
Expand Down
5 changes: 4 additions & 1 deletion src/api/types/KalturaConcurrencyPartnerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface KalturaConcurrencyPartnerConfigArgs extends KalturaPartnerConf
evictionPolicy? : KalturaEvictionPolicyType;
concurrencyThresholdInSeconds? : number;
revokeOnDeviceDelete? : boolean;
excludeFreeContentFromConcurrency? : boolean;
}


Expand All @@ -18,6 +19,7 @@ export class KalturaConcurrencyPartnerConfig extends KalturaPartnerConfiguration
evictionPolicy : KalturaEvictionPolicyType;
concurrencyThresholdInSeconds : number;
revokeOnDeviceDelete : boolean;
excludeFreeContentFromConcurrency : boolean;

constructor(data? : KalturaConcurrencyPartnerConfigArgs)
{
Expand All @@ -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;
Expand Down
34 changes: 34 additions & 0 deletions src/api/types/KalturaCouponPromotion.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

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);
34 changes: 34 additions & 0 deletions src/api/types/KalturaFileTypeCondition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

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);
5 changes: 4 additions & 1 deletion src/api/types/KalturaMonetizationCondition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface KalturaMonetizationConditionArgs extends KalturaBaseSegmentCon
type? : KalturaMonetizationType;
operator? : KalturaMathemticalOperatorType;
businessModuleIdIn? : string;
currencyCode? : string;
}


Expand All @@ -23,6 +24,7 @@ export class KalturaMonetizationCondition extends KalturaBaseSegmentCondition {
type : KalturaMonetizationType;
operator : KalturaMathemticalOperatorType;
businessModuleIdIn : string;
currencyCode : string;

constructor(data? : KalturaMonetizationConditionArgs)
{
Expand All @@ -41,7 +43,8 @@ export class KalturaMonetizationCondition extends KalturaBaseSegmentCondition {
days : { type : 'n' },
type : { type : 'es', subTypeConstructor : KalturaMonetizationType, subType : 'KalturaMonetizationType' },
operator : { type : 'es', subTypeConstructor : KalturaMathemticalOperatorType, subType : 'KalturaMathemticalOperatorType' },
businessModuleIdIn : { type : 's' }
businessModuleIdIn : { type : 's' },
currencyCode : { type : 's' }
}
);
return result;
Expand Down
11 changes: 3 additions & 8 deletions src/api/types/KalturaPromotion.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@

import { KalturaObjectMetadata } from '../kaltura-object-base';
import { KalturaTypesFactory } from '../kaltura-types-factory';
import { KalturaCondition } from './KalturaCondition';
import { KalturaObjectBase, KalturaObjectBaseArgs } from '../kaltura-object-base';
import { KalturaBasePromotion, KalturaBasePromotionArgs } from './KalturaBasePromotion';

export interface KalturaPromotionArgs extends KalturaObjectBaseArgs {
export interface KalturaPromotionArgs extends KalturaBasePromotionArgs {
discountModuleId? : number;
conditions? : KalturaCondition[];
numberOfRecurring? : number;
}


export class KalturaPromotion extends KalturaObjectBase {
export class KalturaPromotion extends KalturaBasePromotion {

discountModuleId : number;
conditions : KalturaCondition[];
numberOfRecurring : number;

constructor(data? : KalturaPromotionArgs)
{
super(data);
if (typeof this.conditions === 'undefined') this.conditions = [];
}

protected _getMetadata() : KalturaObjectMetadata
Expand All @@ -31,7 +27,6 @@ export class KalturaPromotion extends KalturaObjectBase {
{
objectType : { type : 'c', default : 'KalturaPromotion' },
discountModuleId : { type : 'n' },
conditions : { type : 'a', subTypeConstructor : KalturaCondition, subType : 'KalturaCondition' },
numberOfRecurring : { type : 'n' }
}
);
Expand Down
Loading

0 comments on commit f2cb4c1

Please sign in to comment.