Skip to content

Commit

Permalink
Auto-generated by Jenkins job OTT-Generate-ClientLibs/914, branch 781…
Browse files Browse the repository at this point in the history
…_BEO-12190_campaign_filtering_and_ordering
  • Loading branch information
Backend CI committed Jun 14, 2022
1 parent 6fdc52f commit 70e501a
Show file tree
Hide file tree
Showing 30 changed files with 808 additions and 22 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.6.0.29891 and above.
Compatible with Kaltura OTT server version 7.7.0.29939 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.6.0-29891
npm install kaltura-ott-typescript-client@7.7.0-29939
```

**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.6.0-29891",
"version": "7.7.0-29939",
"description": "Kaltura OTT Typescript client",
"keywords": [
"Kaltura"
Expand Down
45 changes: 45 additions & 0 deletions src/api/types/AssetListPersonalSelectionAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

import { KalturaObjectMetadata } from '../kaltura-object-base';
import { KalturaAssetListResponse } from './KalturaAssetListResponse';

import { KalturaPersonalAssetSelectionFilter } from './KalturaPersonalAssetSelectionFilter';
import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request';

export interface AssetListPersonalSelectionActionArgs extends KalturaRequestArgs {
filter : KalturaPersonalAssetSelectionFilter;
}

/**
* Build request payload for service 'asset' action 'listPersonalSelection'.
*
* Usage: Returns recent selected assets
*
* Server response type: KalturaAssetListResponse
* Server failure response type: KalturaAPIException
* @class
* @extends KalturaRequest
*/
export class AssetListPersonalSelectionAction extends KalturaRequest<KalturaAssetListResponse> {

filter : KalturaPersonalAssetSelectionFilter;

constructor(data : AssetListPersonalSelectionActionArgs)
{
super(data, {responseType : 'o', responseSubType : 'KalturaAssetListResponse', responseConstructor : KalturaAssetListResponse });
}

protected _getMetadata() : KalturaObjectMetadata
{
const result = super._getMetadata();
Object.assign(
result.properties,
{
service : { type : 'c', default : 'asset' },
action : { type : 'c', default : 'listPersonalSelection' },
filter : { type : 'o', subTypeConstructor : KalturaPersonalAssetSelectionFilter, subType : 'KalturaPersonalAssetSelectionFilter' }
}
);
return result;
}
}

51 changes: 51 additions & 0 deletions src/api/types/AssetPersonalSelectionDeleteAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

import { KalturaObjectMetadata } from '../kaltura-object-base';


import { KalturaAssetType } from './KalturaAssetType';
import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request';

export interface AssetPersonalSelectionDeleteActionArgs extends KalturaRequestArgs {
assetId : number;
assetType : KalturaAssetType;
slotNumber : number;
}

/**
* Build request payload for service 'assetPersonalSelection' action 'delete'.
*
* Usage: Remove asset selection in slot
*
* Server response type: void
* Server failure response type: KalturaAPIException
* @class
* @extends KalturaRequest
*/
export class AssetPersonalSelectionDeleteAction extends KalturaRequest<void> {

assetId : number;
assetType : KalturaAssetType;
slotNumber : number;

constructor(data : AssetPersonalSelectionDeleteActionArgs)
{
super(data, {responseType : 'v', responseSubType : '', responseConstructor : null });
}

protected _getMetadata() : KalturaObjectMetadata
{
const result = super._getMetadata();
Object.assign(
result.properties,
{
service : { type : 'c', default : 'assetpersonalselection' },
action : { type : 'c', default : 'delete' },
assetId : { type : 'n' },
assetType : { type : 'es', subTypeConstructor : KalturaAssetType, subType : 'KalturaAssetType' },
slotNumber : { type : 'n' }
}
);
return result;
}
}

44 changes: 44 additions & 0 deletions src/api/types/AssetPersonalSelectionDeleteAllAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

import { KalturaObjectMetadata } from '../kaltura-object-base';


import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request';

export interface AssetPersonalSelectionDeleteAllActionArgs extends KalturaRequestArgs {
slotNumber : number;
}

/**
* Build request payload for service 'assetPersonalSelection' action 'deleteAll'.
*
* Usage: Remove asset selection in slot
*
* Server response type: void
* Server failure response type: KalturaAPIException
* @class
* @extends KalturaRequest
*/
export class AssetPersonalSelectionDeleteAllAction extends KalturaRequest<void> {

slotNumber : number;

constructor(data : AssetPersonalSelectionDeleteAllActionArgs)
{
super(data, {responseType : 'v', responseSubType : '', responseConstructor : null });
}

protected _getMetadata() : KalturaObjectMetadata
{
const result = super._getMetadata();
Object.assign(
result.properties,
{
service : { type : 'c', default : 'assetpersonalselection' },
action : { type : 'c', default : 'deleteAll' },
slotNumber : { type : 'n' }
}
);
return result;
}
}

51 changes: 51 additions & 0 deletions src/api/types/AssetPersonalSelectionUpsertAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

import { KalturaObjectMetadata } from '../kaltura-object-base';
import { KalturaAssetPersonalSelection } from './KalturaAssetPersonalSelection';

import { KalturaAssetType } from './KalturaAssetType';
import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request';

export interface AssetPersonalSelectionUpsertActionArgs extends KalturaRequestArgs {
assetId : number;
assetType : KalturaAssetType;
slotNumber : number;
}

/**
* Build request payload for service 'assetPersonalSelection' action 'upsert'.
*
* Usage: Add or update asset selection in slot
*
* Server response type: KalturaAssetPersonalSelection
* Server failure response type: KalturaAPIException
* @class
* @extends KalturaRequest
*/
export class AssetPersonalSelectionUpsertAction extends KalturaRequest<KalturaAssetPersonalSelection> {

assetId : number;
assetType : KalturaAssetType;
slotNumber : number;

constructor(data : AssetPersonalSelectionUpsertActionArgs)
{
super(data, {responseType : 'o', responseSubType : 'KalturaAssetPersonalSelection', responseConstructor : KalturaAssetPersonalSelection });
}

protected _getMetadata() : KalturaObjectMetadata
{
const result = super._getMetadata();
Object.assign(
result.properties,
{
service : { type : 'c', default : 'assetpersonalselection' },
action : { type : 'c', default : 'upsert' },
assetId : { type : 'n' },
assetType : { type : 'es', subTypeConstructor : KalturaAssetType, subType : 'KalturaAssetType' },
slotNumber : { type : 'n' }
}
);
return result;
}
}

39 changes: 39 additions & 0 deletions src/api/types/KalturaAssetPersonalSelection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

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

export interface KalturaAssetPersonalSelectionArgs extends KalturaObjectBaseArgs {

}


export class KalturaAssetPersonalSelection extends KalturaObjectBase {

readonly assetId : number;
readonly assetType : KalturaAssetType;
readonly updateDate : number;

constructor(data? : KalturaAssetPersonalSelectionArgs)
{
super(data);
}

protected _getMetadata() : KalturaObjectMetadata
{
const result = super._getMetadata();
Object.assign(
result.properties,
{
objectType : { type : 'c', default : 'KalturaAssetPersonalSelection' },
assetId : { type : 'n', readOnly : true },
assetType : { type : 'es', readOnly : true, subTypeConstructor : KalturaAssetType, subType : 'KalturaAssetType' },
updateDate : { type : 'n', readOnly : true }
}
);
return result;
}
}

KalturaTypesFactory.registerType('KalturaAssetPersonalSelection',KalturaAssetPersonalSelection);
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);
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
Loading

0 comments on commit 70e501a

Please sign in to comment.