/* Options: Date: 2026-02-27 14:17:42 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NewAlert.* //ExcludeTypes: //DefaultImports: */ export class NodeParameterMap { [key:string] : NodeParameter; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export interface IReturn { createResponse(): T; } export interface IPost { } export enum AlertTriggers { CallSpend = 'CallSpend', CallCount = 'CallCount', } export enum AlertCustomerSelection { AllCustomers = 'AllCustomers', ExcludeCustomers = 'ExcludeCustomers', IncludeCustomers = 'IncludeCustomers', } export class EntityInfo { /** @description The ID of the object */ // @ApiMember(Description="The ID of the object") public id: string; /** @description The date the object was created */ // @ApiMember(Description="The date the object was created") public dateCreated: string; /** @description The date the object was last modified */ // @ApiMember(Description="The date the object was last modified") public dateLastModified: string; /** @description The user that created this object */ // @ApiMember(Description="The user that created this object") public createdBy: string; /** @description The user that last modified this object */ // @ApiMember(Description="The user that last modified this object") public lastModifiedBy: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class AlertInfo extends EntityInfo { /** @description The ID of the account associated with this alert */ // @ApiMember(Description="The ID of the account associated with this alert") public accountId: string; /** @description The name of the alert */ // @ApiMember(Description="The name of the alert") public name: string; /** @description The trigger alert */ // @ApiMember(Description="The trigger alert") public trigger: AlertTriggers; /** @description The number of hours for the window over which the alert will trigger */ // @ApiMember(Description="The number of hours for the window over which the alert will trigger") public windowHours: number; /** @description The value at which the alert will trigger */ // @ApiMember(Description="The value at which the alert will trigger") public threshold: number; /** @description The email addresses (one per line) to notify */ // @ApiMember(Description="The email addresses (one per line) to notify") public notificationEmailAddresses: string; /** @description Customer selection for this alert */ // @ApiMember(Description="Customer selection for this alert") public customerSelection: AlertCustomerSelection; /** @description The list of customer IDs for the selection model */ // @ApiMember(Description="The list of customer IDs for the selection model") public customerIds: string[]; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } /** @description Creates a new alert */ // @Route("/alerts", "POST") // @Api(Description="Creates a new alert") export class NewAlert implements IReturn, IPost { /** @description The account ID to associate this alert with */ // @ApiMember(Description="The account ID to associate this alert with") public accountId: string; /** @description The name of the alert */ // @ApiMember(Description="The name of the alert") public name: string; /** @description The trigger alert */ // @ApiMember(Description="The trigger alert") public trigger: AlertTriggers; /** @description The number of hours for the window over which the alert will trigger */ // @ApiMember(Description="The number of hours for the window over which the alert will trigger") public windowHours: number; /** @description The value at which the alert will trigger */ // @ApiMember(Description="The value at which the alert will trigger") public threshold: number; /** @description The email addresses (one per line) to notify */ // @ApiMember(Description="The email addresses (one per line) to notify") public notificationEmailAddresses: string; /** @description Customer selection for this alert */ // @ApiMember(Description="Customer selection for this alert") public customerSelection: AlertCustomerSelection; /** @description The list of customer IDs for the selection model */ // @ApiMember(Description="The list of customer IDs for the selection model") public customerIds: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'NewAlert'; } public getMethod() { return 'POST'; } public createResponse() { return new AlertInfo(); } }