-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add service XInternal action XAddBulkDownload
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
import { KalturaObjectMetadata } from '../kaltura-object-base'; | ||
|
||
|
||
import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request'; | ||
|
||
export interface XInternalXAddBulkDownloadActionArgs extends KalturaRequestArgs { | ||
entryIds : string; | ||
flavorParamsId? : string; | ||
} | ||
|
||
/** | ||
* Creates new download job for multiple entry ids (comma separated), an email will | ||
* be sent when the job is done This sevice support the following entries: - | ||
* MediaEntry - Video will be converted using the flavor params id - Audio will | ||
* be downloaded as MP3 - Image will be downloaded as Jpeg - MixEntry will be | ||
* flattened using the flavor params id - Other entry types are not supported | ||
* Returns the admin email that the email message will be sent to | ||
**/ | ||
export class XInternalXAddBulkDownloadAction extends KalturaRequest<string> { | ||
|
||
entryIds : string; | ||
flavorParamsId : string; | ||
|
||
constructor(data : XInternalXAddBulkDownloadActionArgs) | ||
{ | ||
super(data, {responseType : 's', responseSubType : '', responseConstructor : null }); | ||
} | ||
|
||
protected _getMetadata() : KalturaObjectMetadata | ||
{ | ||
const result = super._getMetadata(); | ||
Object.assign( | ||
result.properties, | ||
{ | ||
service : { type : 'c', default : 'xinternal' }, | ||
action : { type : 'c', default : 'xAddBulkDownload' }, | ||
entryIds : { type : 's' }, | ||
flavorParamsId : { type : 's' } | ||
} | ||
); | ||
return result; | ||
} | ||
} | ||
|