/* Options: Date: 2025-05-04 22:32:30 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: ListMessages.* //ExcludeTypes: //DefaultImports: */ export class NodeParameterMap { [key:string] : NodeParameter; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export interface IReturn { createResponse(): T; } export enum SortOrders { Ascend = 'Ascend', Descend = 'Descend', } export class ListRequest implements IGet { /** @description The page of data to retrieve */ // @ApiMember(Description="The page of data to retrieve") public page: number; /** @description If you want all objects to be returned. This should be used with care */ // @ApiMember(Description="If you want all objects to be returned. This should be used with care") public all: boolean; /** @description The number per page to retrieve */ // @ApiMember(Description="The number per page to retrieve") public countPerPage: number; /** @description Specific IDs */ // @ApiMember(Description="Specific IDs") public specificIds: string[]; /** @description Specify a sort field */ // @ApiMember(Description="Specify a sort field") public sortField: string; /** @description Specify a sort order */ // @ApiMember(Description="Specify a sort order") public sortOrder: SortOrders; /** @description Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array */ // @ApiMember(Description="Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array") public simplifiedPaging: boolean; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class ListResponse { /** @description The items */ // @ApiMember(Description="The items") public items: T[]; /** @description The total number of items */ // @ApiMember(Description="The total number of items") public totalCount: number; /** @description The total number of pages */ // @ApiMember(Description="The total number of pages") public totalPages: number; /** @description Are there more pages of items? Used with simplified paging */ // @ApiMember(Description="Are there more pages of items? Used with simplified paging") public hasMorePages: boolean; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export enum MessageDirections { Incoming = 'Incoming', Outgoing = 'Outgoing', } export class MessageInfo { public id: string; public accountId: string; public customerId: string; public endpointId: string; public endpointDisplayName: string; public date: string; public direction: MessageDirections; public otherAddress: string; public sender: string; public text: string; public isUnread: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/messages", "GET") export class ListMessages extends ListRequest implements IReturn> { /** @description The IDs of the account whose messages you want to retrieve */ // @ApiMember(Description="The IDs of the account whose messages you want to retrieve") public accountIds: string[]; /** @description The IDs of the customers whose messages you want to retrieve */ // @ApiMember(Description="The IDs of the customers whose messages you want to retrieve") public customerIds: string[]; /** @description The IDs of the endpoints whose messages you want to retrieve */ // @ApiMember(Description="The IDs of the endpoints whose messages you want to retrieve") public endpointIds: string[]; /** @description The ID of the conversations whose messages you want to retrieve */ // @ApiMember(Description="The ID of the conversations whose messages you want to retrieve") public conversationIds: string[]; /** @description The date after which messages should be retrieved */ // @ApiMember(Description="The date after which messages should be retrieved") public afterDate: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'ListMessages'; } public getMethod() { return 'GET'; } public createResponse() { return new ListResponse(); } }