-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-generated by Jenkins job OTT-Generate-ClientLibs/914, branch 781…
…_BEO-12190_campaign_filtering_and_ordering
- Loading branch information
Backend CI
committed
Jun 14, 2022
1 parent
6fdc52f
commit 70e501a
Showing
30 changed files
with
808 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.