UNPKG

@kaltura-ng/kaltura-client

Version:
47 lines 2.16 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { KalturaBulkUpload } from './KalturaBulkUpload'; import { KalturaBulkUploadType } from './KalturaBulkUploadType'; import { KalturaUploadRequest } from '../kaltura-upload-request'; /** * Build request payload for service 'bulkUpload' action 'add'. * * Usage: Add new bulk upload batch job * Conversion profile id can be specified in the API or in the CSV file, the one in the CSV file will be stronger. * If no conversion profile was specified, partner's default will be used * * Server response type: KalturaBulkUpload * Server failure response type: KalturaAPIException * @class * @extends KalturaUploadRequest */ var BulkUploadAddAction = (function (_super) { __extends(BulkUploadAddAction, _super); function BulkUploadAddAction(data) { return _super.call(this, data, { responseType: 'o', responseSubType: 'KalturaBulkUpload', responseConstructor: KalturaBulkUpload }) || this; } BulkUploadAddAction.prototype._getMetadata = function () { var result = _super.prototype._getMetadata.call(this); Object.assign(result.properties, { service: { type: 'c', default: 'bulkupload' }, action: { type: 'c', default: 'add' }, conversionProfileId: { type: 'n' }, csvFileData: { type: 'f' }, bulkUploadType: { type: 'es', subTypeConstructor: KalturaBulkUploadType, subType: 'KalturaBulkUploadType' }, uploadedBy: { type: 's' }, fileName: { type: 's' } }); return result; }; return BulkUploadAddAction; }(KalturaUploadRequest)); export { BulkUploadAddAction }; //# sourceMappingURL=BulkUploadAddAction.js.map