UNPKG

@kaltura-ng/kaltura-client

Version:
49 lines 2.4 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 { KalturaTypesFactory } from '../kaltura-types-factory'; import { KalturaRuleAction } from './KalturaRuleAction'; import { KalturaCondition } from './KalturaCondition'; import { KalturaContextTypeHolder } from './KalturaContextTypeHolder'; import { KalturaNullableBoolean } from './KalturaNullableBoolean'; import { KalturaObjectBase } from '../kaltura-object-base'; var KalturaRule = (function (_super) { __extends(KalturaRule, _super); function KalturaRule(data) { var _this = _super.call(this, data) || this; if (typeof _this.actions === 'undefined') _this.actions = []; if (typeof _this.conditions === 'undefined') _this.conditions = []; if (typeof _this.contexts === 'undefined') _this.contexts = []; return _this; } KalturaRule.prototype._getMetadata = function () { var result = _super.prototype._getMetadata.call(this); Object.assign(result.properties, { objectType: { type: 'c', default: 'KalturaRule' }, description: { type: 's' }, ruleData: { type: 's' }, message: { type: 's' }, code: { type: 's' }, actions: { type: 'a', subTypeConstructor: KalturaRuleAction, subType: 'KalturaRuleAction' }, conditions: { type: 'a', subTypeConstructor: KalturaCondition, subType: 'KalturaCondition' }, contexts: { type: 'a', subTypeConstructor: KalturaContextTypeHolder, subType: 'KalturaContextTypeHolder' }, stopProcessing: { type: 'b' }, forceAdminValidation: { type: 'en', subTypeConstructor: KalturaNullableBoolean, subType: 'KalturaNullableBoolean' } }); return result; }; return KalturaRule; }(KalturaObjectBase)); export { KalturaRule }; KalturaTypesFactory.registerType('KalturaRule', KalturaRule); //# sourceMappingURL=KalturaRule.js.map