@kaltura-ng/kaltura-client
Version:
Kaltura Typescript client
75 lines • 3.67 kB
JavaScript
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 { KalturaTypesFactory } from '../kaltura-types-factory';
import { KalturaBatchJobType } from './KalturaBatchJobType';
import { KalturaJobData } from './KalturaJobData';
import { KalturaBatchJobStatus } from './KalturaBatchJobStatus';
import { KalturaBatchHistoryData } from './KalturaBatchHistoryData';
import { KalturaBatchJobErrorTypes } from './KalturaBatchJobErrorTypes';
import { KalturaObjectBase } from '../kaltura-object-base';
var KalturaBatchJob = (function (_super) {
__extends(KalturaBatchJob, _super);
function KalturaBatchJob(data) {
var _this = _super.call(this, data) || this;
if (typeof _this.history === 'undefined')
_this.history = [];
return _this;
}
KalturaBatchJob.prototype._getMetadata = function () {
var result = _super.prototype._getMetadata.call(this);
Object.assign(result.properties, {
objectType: { type: 'c', default: 'KalturaBatchJob' },
id: { type: 'n', readOnly: true },
partnerId: { type: 'n', readOnly: true },
createdAt: { type: 'd', readOnly: true },
updatedAt: { type: 'd', readOnly: true },
deletedAt: { type: 'd', readOnly: true },
lockExpiration: { type: 'n', readOnly: true },
executionAttempts: { type: 'n', readOnly: true },
lockVersion: { type: 'n', readOnly: true },
entryId: { type: 's' },
entryName: { type: 's' },
jobType: { type: 'es', readOnly: true, subTypeConstructor: KalturaBatchJobType, subType: 'KalturaBatchJobType' },
jobSubType: { type: 'n' },
data: { type: 'o', subTypeConstructor: KalturaJobData, subType: 'KalturaJobData' },
status: { type: 'en', subTypeConstructor: KalturaBatchJobStatus, subType: 'KalturaBatchJobStatus' },
abort: { type: 'n' },
checkAgainTimeout: { type: 'n' },
message: { type: 's' },
description: { type: 's' },
priority: { type: 'n' },
history: { type: 'a', subTypeConstructor: KalturaBatchHistoryData, subType: 'KalturaBatchHistoryData' },
bulkJobId: { type: 'n' },
batchVersion: { type: 'n' },
parentJobId: { type: 'n' },
rootJobId: { type: 'n' },
queueTime: { type: 'n' },
finishTime: { type: 'n' },
errType: { type: 'en', subTypeConstructor: KalturaBatchJobErrorTypes, subType: 'KalturaBatchJobErrorTypes' },
errNumber: { type: 'n' },
estimatedEffort: { type: 'n' },
urgency: { type: 'n' },
schedulerId: { type: 'n' },
workerId: { type: 'n' },
batchIndex: { type: 'n' },
lastSchedulerId: { type: 'n' },
lastWorkerId: { type: 'n' },
dc: { type: 'n' },
jobObjectId: { type: 's' },
jobObjectType: { type: 'n' }
});
return result;
};
return KalturaBatchJob;
}(KalturaObjectBase));
export { KalturaBatchJob };
KalturaTypesFactory.registerType('KalturaBatchJob', KalturaBatchJob);
//# sourceMappingURL=KalturaBatchJob.js.map