UNPKG

@kaltura-ng/kaltura-client

Version:
40 lines 2.19 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 { KalturaEventNotificationTemplate } from './KalturaEventNotificationTemplate'; import { KalturaRequest } from '../kaltura-request'; /** * Build request payload for service 'eventNotificationTemplate' action 'add'. * * Usage: This action allows for the creation of new backend event types in the system. This action requires access to the Kaltura server Admin Console. If you're looking to register to existing event types, please use the clone action instead * * Server response type: KalturaEventNotificationTemplate * Server failure response type: KalturaAPIException * @class * @extends KalturaRequest */ var EventNotificationTemplateAddAction = (function (_super) { __extends(EventNotificationTemplateAddAction, _super); function EventNotificationTemplateAddAction(data) { return _super.call(this, data, { responseType: 'o', responseSubType: 'KalturaEventNotificationTemplate', responseConstructor: KalturaEventNotificationTemplate }) || this; } EventNotificationTemplateAddAction.prototype._getMetadata = function () { var result = _super.prototype._getMetadata.call(this); Object.assign(result.properties, { service: { type: 'c', default: 'eventnotification_eventnotificationtemplate' }, action: { type: 'c', default: 'add' }, eventNotificationTemplate: { type: 'o', subTypeConstructor: KalturaEventNotificationTemplate, subType: 'KalturaEventNotificationTemplate' } }); return result; }; return EventNotificationTemplateAddAction; }(KalturaRequest)); export { EventNotificationTemplateAddAction }; //# sourceMappingURL=EventNotificationTemplateAddAction.js.map