/* Options: Date: 2024-05-18 04:51:22 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ListEndpoints.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum SortOrders { Ascend, Descend, } abstract class ListRequest implements IGet { /** * The page of data to retrieve */ // @ApiMember(Description="The page of data to retrieve") int? page; /** * 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") bool? all; /** * The number per page to retrieve */ // @ApiMember(Description="The number per page to retrieve") int? countPerPage; /** * Specific IDs */ // @ApiMember(Description="Specific IDs") List? specificIds; /** * Specify a sort field */ // @ApiMember(Description="Specify a sort field") String? sortField; /** * Specify a sort order */ // @ApiMember(Description="Specify a sort order") SortOrders? sortOrder; /** * 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") bool? simplifiedPaging; ListRequest({this.page,this.all,this.countPerPage,this.specificIds,this.sortField,this.sortOrder,this.simplifiedPaging}); ListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { page = json['page']; all = json['all']; countPerPage = json['countPerPage']; specificIds = JsonConverters.fromJson(json['specificIds'],'List',context!); sortField = json['sortField']; sortOrder = JsonConverters.fromJson(json['sortOrder'],'SortOrders',context!); simplifiedPaging = json['simplifiedPaging']; return this; } Map toJson() => { 'page': page, 'all': all, 'countPerPage': countPerPage, 'specificIds': JsonConverters.toJson(specificIds,'List',context!), 'sortField': sortField, 'sortOrder': JsonConverters.toJson(sortOrder,'SortOrders',context!), 'simplifiedPaging': simplifiedPaging }; getTypeName() => "ListRequest<$T>"; TypeContext? context = _ctx; } enum UserModes { SoftPhone, Sip, Flow, DataOnly, ThirdParty, } enum EndpointTypes { PhoneNumber, User, FaxNumber, EmailAddress, Unused_1, Unused_2, Unused_3, Unused_4, Unused_5, Team, } class HostedSuiteCompletedFormField implements IConvertible { String? name; List? values; HostedSuiteCompletedFormField({this.name,this.values}); HostedSuiteCompletedFormField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; values = JsonConverters.fromJson(json['values'],'List',context!); return this; } Map toJson() => { 'name': name, 'values': JsonConverters.toJson(values,'List',context!) }; getTypeName() => "HostedSuiteCompletedFormField"; TypeContext? context = _ctx; } class HostedSuiteCompletedForm implements IConvertible { String? id; String? name; String? dateCreated; String? dateCompleted; String? formId; String? formName; String? clientId; String? clientName; String? contactId; String? contactName; List? contactsIds; List? contactsNames; String? emailSubject; String? callerNumber; List? fields; HostedSuiteCompletedForm({this.id,this.name,this.dateCreated,this.dateCompleted,this.formId,this.formName,this.clientId,this.clientName,this.contactId,this.contactName,this.contactsIds,this.contactsNames,this.emailSubject,this.callerNumber,this.fields}); HostedSuiteCompletedForm.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; dateCreated = json['dateCreated']; dateCompleted = json['dateCompleted']; formId = json['formId']; formName = json['formName']; clientId = json['clientId']; clientName = json['clientName']; contactId = json['contactId']; contactName = json['contactName']; contactsIds = JsonConverters.fromJson(json['contactsIds'],'List',context!); contactsNames = JsonConverters.fromJson(json['contactsNames'],'List',context!); emailSubject = json['emailSubject']; callerNumber = json['callerNumber']; fields = JsonConverters.fromJson(json['fields'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'dateCreated': dateCreated, 'dateCompleted': dateCompleted, 'formId': formId, 'formName': formName, 'clientId': clientId, 'clientName': clientName, 'contactId': contactId, 'contactName': contactName, 'contactsIds': JsonConverters.toJson(contactsIds,'List',context!), 'contactsNames': JsonConverters.toJson(contactsNames,'List',context!), 'emailSubject': emailSubject, 'callerNumber': callerNumber, 'fields': JsonConverters.toJson(fields,'List',context!) }; getTypeName() => "HostedSuiteCompletedForm"; TypeContext? context = _ctx; } abstract class EntityInfo { /** * The ID of the object */ // @ApiMember(Description="The ID of the object") String? id; /** * The date the object was created */ // @ApiMember(Description="The date the object was created") String? dateCreated; /** * The date the object was last modified */ // @ApiMember(Description="The date the object was last modified") String? dateLastModified; /** * The user that created this object */ // @ApiMember(Description="The user that created this object") String? createdBy; /** * The user that last modified this object */ // @ApiMember(Description="The user that last modified this object") String? lastModifiedBy; EntityInfo({this.id,this.dateCreated,this.dateLastModified,this.createdBy,this.lastModifiedBy}); EntityInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; dateCreated = json['dateCreated']; dateLastModified = json['dateLastModified']; createdBy = json['createdBy']; lastModifiedBy = json['lastModifiedBy']; return this; } Map toJson() => { 'id': id, 'dateCreated': dateCreated, 'dateLastModified': dateLastModified, 'createdBy': createdBy, 'lastModifiedBy': lastModifiedBy }; getTypeName() => "EntityInfo"; TypeContext? context = _ctx; } class CustomerBreadcrumb implements IConvertible { String? id; String? name; CustomerBreadcrumb({this.id,this.name}); CustomerBreadcrumb.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; return this; } Map toJson() => { 'id': id, 'name': name }; getTypeName() => "CustomerBreadcrumb"; TypeContext? context = _ctx; } class LogEntryInfo extends EntityInfo implements IConvertible { /** * The account ID this endpoint is associated with */ // @ApiMember(Description="The account ID this endpoint is associated with") String? accountId; /** * The name of the account this endpoint is associated with */ // @ApiMember(Description="The name of the account this endpoint is associated with") String? accountName; /** * The ID of the customer this endpoint is associated with */ // @ApiMember(Description="The ID of the customer this endpoint is associated with") String? customerId; /** * The name of the customer this endpoint is associated with */ // @ApiMember(Description="The name of the customer this endpoint is associated with") String? customerName; /** * The breadcrumb to the customer for this endpoint */ // @ApiMember(Description="The breadcrumb to the customer for this endpoint") List? customerBreadcrumb; String? userName; String? description; LogEntryInfo({this.accountId,this.accountName,this.customerId,this.customerName,this.customerBreadcrumb,this.userName,this.description}); LogEntryInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); accountId = json['accountId']; accountName = json['accountName']; customerId = json['customerId']; customerName = json['customerName']; customerBreadcrumb = JsonConverters.fromJson(json['customerBreadcrumb'],'List',context!); userName = json['userName']; description = json['description']; return this; } Map toJson() => super.toJson()..addAll({ 'accountId': accountId, 'accountName': accountName, 'customerId': customerId, 'customerName': customerName, 'customerBreadcrumb': JsonConverters.toJson(customerBreadcrumb,'List',context!), 'userName': userName, 'description': description }); getTypeName() => "LogEntryInfo"; TypeContext? context = _ctx; } class AccountInfo extends EntityInfo implements IConvertible { /** * The name of this account */ // @ApiMember(Description="The name of this account") String? name; /** * The ID of this account's parent */ // @ApiMember(Description="The ID of this account's parent") String? parentAccountId; /** * The twilio account SID */ // @ApiMember(Description="The twilio account SID") String? twilioAccountSid; /** * The ancestors of this account. Useful for breadcrumbs */ // @ApiMember(Description="The ancestors of this account. Useful for breadcrumbs") List? ancestorIds; /** * The max number of phone numbers this account can have */ // @ApiMember(Description="The max number of phone numbers this account can have") int? maxPhoneNumbers; /** * This account is BYOA */ // @ApiMember(Description="This account is BYOA") bool? isBYOA; /** * TrustHub Profile Sid */ // @ApiMember(Description="TrustHub Profile Sid") String? trustHubProfileSid; /** * The ID of the logo file */ // @ApiMember(Description="The ID of the logo file") String? logoId; /** * The URI of the logo file */ // @ApiMember(Description="The URI of the logo file") String? logoUri; /** * The billing settings for this account */ // @ApiMember(Description="The billing settings for this account") BillingSettings? billingSettings; AccountInfo({this.name,this.parentAccountId,this.twilioAccountSid,this.ancestorIds,this.maxPhoneNumbers,this.isBYOA,this.trustHubProfileSid,this.logoId,this.logoUri,this.billingSettings}); AccountInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); name = json['name']; parentAccountId = json['parentAccountId']; twilioAccountSid = json['twilioAccountSid']; ancestorIds = JsonConverters.fromJson(json['ancestorIds'],'List',context!); maxPhoneNumbers = json['maxPhoneNumbers']; isBYOA = json['isBYOA']; trustHubProfileSid = json['trustHubProfileSid']; logoId = json['logoId']; logoUri = json['logoUri']; billingSettings = JsonConverters.fromJson(json['billingSettings'],'BillingSettings',context!); return this; } Map toJson() => super.toJson()..addAll({ 'name': name, 'parentAccountId': parentAccountId, 'twilioAccountSid': twilioAccountSid, 'ancestorIds': JsonConverters.toJson(ancestorIds,'List',context!), 'maxPhoneNumbers': maxPhoneNumbers, 'isBYOA': isBYOA, 'trustHubProfileSid': trustHubProfileSid, 'logoId': logoId, 'logoUri': logoUri, 'billingSettings': JsonConverters.toJson(billingSettings,'BillingSettings',context!) }); getTypeName() => "AccountInfo"; TypeContext? context = _ctx; } class EndpointInfo extends EntityInfo implements IConvertible { /** * The account ID this endpoint is associated with */ // @ApiMember(Description="The account ID this endpoint is associated with") String? accountId; /** * The name of the account this endpoint is associated with */ // @ApiMember(Description="The name of the account this endpoint is associated with") String? accountName; /** * The ID of the customer this endpoint is associated with */ // @ApiMember(Description="The ID of the customer this endpoint is associated with") String? customerId; /** * The name of the customer this endpoint is associated with */ // @ApiMember(Description="The name of the customer this endpoint is associated with") String? customerName; /** * The third party reference ID for the endpoint */ // @ApiMember(Description="The third party reference ID for the endpoint") String? referenceId; /** * The breadcrumb to the customer for this endpoint */ // @ApiMember(Description="The breadcrumb to the customer for this endpoint") List? customerBreadcrumb; /** * The display name of the endpoint */ // @ApiMember(Description="The display name of the endpoint") String? displayName; /** * The type of endpoint */ // @ApiMember(Description="The type of endpoint") EndpointTypes? type; /** * Extra info for this endpoint (typically to show in grid) */ // @ApiMember(Description="Extra info for this endpoint (typically to show in grid)") String? extraInformation; /** * The ID of the flow to use for voice */ // @ApiMember(Description="The ID of the flow to use for voice") String? flowId; /** * The name of the flow to use for voice */ // @ApiMember(Description="The name of the flow to use for voice") String? flowName; /** * The params for the voice flow */ // @ApiMember(Description="The params for the voice flow") Struct? flowParams; /** * Whether to use a single flow always or use scheduled flow system */ // @ApiMember(Description="Whether to use a single flow always or use scheduled flow system") EndpointFlowSchedules? flowSchedule; /** * This endpoint's schedule */ // @ApiMember(Description="This endpoint's schedule") Schedule? schedule; /** * The list of scheduled flows when using scheduling */ // @ApiMember(Description="The list of scheduled flows when using scheduling") List? scheduledFlows; /** * Disable SMS */ // @ApiMember(Description="Disable SMS") bool? disableSms; /** * Set this to true to prevent Evo Voice from overriding the 10DLC / SMS settings for this number */ // @ApiMember(Description="Set this to true to prevent Evo Voice from overriding the 10DLC / SMS settings for this number") bool? useExternal10DlcCampaign; /** * Is this a virtual phone number? */ // @ApiMember(Description="Is this a virtual phone number?") bool? isVirtualPhoneNumber; /** * Is caller ID verified for this virtual number? */ // @ApiMember(Description="Is caller ID verified for this virtual number?") bool? isCallerIdVerified; /** * The verification code for this number */ // @ApiMember(Description="The verification code for this number") String? callerIdVerificationCode; /** * The phone number */ // @ApiMember(Description="The phone number") String? phoneNumber; /** * The Sid of the phone number */ // @ApiMember(Description="The Sid of the phone number") String? phoneNumberSid; /** * The caller ID Name (CNAM) for the phone number */ // @ApiMember(Description="The caller ID Name (CNAM) for the phone number") String? callerIdName; /** * The address SID associated with the phone number */ // @ApiMember(Description="The address SID associated with the phone number") String? addressSid; /** * Do not touch this phone number - for BYOA accounts */ // @ApiMember(Description="Do not touch this phone number - for BYOA accounts") bool? doNotTouchPhoneNumber; /** * Is this number enrolled in a 10DLC messaging service campaign */ // @ApiMember(Description="Is this number enrolled in a 10DLC messaging service campaign") bool? isEnrolledIn10DlcService; /** * Whether we look up caller ID or not */ // @ApiMember(Description="Whether we look up caller ID or not") bool? enableCallerIdLookup; /** * The email address of the user */ // @ApiMember(Description="The email address of the user") String? userEmailAddress; /** * The Twilio Region for the SIP endpoint */ // @ApiMember(Description="The Twilio Region for the SIP endpoint") TwilioSipRegions? sipRegion; /** * The Twilio Sid of the credentials for Sip */ // @ApiMember(Description="The Twilio Sid of the credentials for Sip") String? sipCredentialSid; /** * The Twilio SIP user name */ // @ApiMember(Description="The Twilio SIP user name") String? sipUserName; /** * The Twilio SIP password */ // @ApiMember(Description="The Twilio SIP password") String? sipPassword; /** * The SIP domain */ // @ApiMember(Description="The SIP domain") String? sipDomain; /** * Is emergency calling enabled on this number? */ // @ApiMember(Description="Is emergency calling enabled on this number?") bool? enableEmergencyCalling; /** * The SID of the emergency address for this number */ // @ApiMember(Description="The SID of the emergency address for this number") String? emergencyAddressSid; /** * The ID of the phone number to use for emergency dialing */ // @ApiMember(Description="The ID of the phone number to use for emergency dialing") String? emergencyPhoneNumberId; /** * The current agent state of this user endpoint */ // @ApiMember(Description="The current agent state of this user endpoint") AgentStates? agentState; /** * The current agent state reason of this user endpoint */ // @ApiMember(Description="The current agent state reason of this user endpoint") AgentStateReasons? agentStateReason; /** * The mode for this user */ // @ApiMember(Description="The mode for this user") UserModes? userMode; /** * The ID of the file to use for voicemail greeting */ // @ApiMember(Description="The ID of the file to use for voicemail greeting") String? voicemailGreetingId; /** * The endpoint's data */ // @ApiMember(Description="The endpoint's data") Struct? data; /** * The email address for email endpoints */ // @ApiMember(Description="The email address for email endpoints") String? emailAddress; /** * The first name of the user (for user endpoints) */ // @ApiMember(Description="The first name of the user (for user endpoints)") String? userFirstName; /** * The last name of the user (for user endpoints) */ // @ApiMember(Description="The last name of the user (for user endpoints)") String? userLastName; /** * The URL of an image for this user's avatar */ // @ApiMember(Description="The URL of an image for this user's avatar") String? avatarUrl; /** * Does this user have manager role? */ // @ApiMember(Description="Does this user have manager role?") UserManagerRoles? managerRole; /** * The list of dashboard permissions for when the manager role is custom */ // @ApiMember(Description="The list of dashboard permissions for when the manager role is custom") List? dashboardPermissions; /** * The type of visibility this user has to their own fields */ // @ApiMember(Description="The type of visibility this user has to their own fields") UserDataFieldModes? myFieldPermissions; /** * The type of visibility this user has to customer fields */ // @ApiMember(Description="The type of visibility this user has to customer fields") UserDataFieldModes? customerFieldPermissions; /** * The type of visibility this user has to other user fields */ // @ApiMember(Description="The type of visibility this user has to other user fields") UserDataFieldModes? otherUserFieldPermissions; /** * The type of visibility this user has to other endpoint fields */ // @ApiMember(Description="The type of visibility this user has to other endpoint fields") UserDataFieldModes? otherEndpointFieldPermissions; /** * The name of this endpoint (for bots etc.) */ // @ApiMember(Description="The name of this endpoint (for bots etc.)") String? name; /** * The list of tags for this endpoint */ // @ApiMember(Description="The list of tags for this endpoint") List? tags; /** * The list of action URLs */ // @ApiMember(Description="The list of action URLs") List? actionUrls; /** * The list of members in this team */ // @ApiMember(Description="The list of members in this team") List? teamMemberIds; /** * Visibility of this user/team in contact lists */ // @ApiMember(Description="Visibility of this user/team in contact lists") CustomerVisibility? contactListVisibility; /** * The list of contacts personal to this user */ // @ApiMember(Description="The list of contacts personal to this user") List? contacts; /** * The documo ID for this number */ // @ApiMember(Description="The documo ID for this number") String? documoId; /** * Integration data for this endpoint */ // @ApiMember(Description="Integration data for this endpoint") EntityIntegrationData? integrationData; /** * Settings for third party phone system */ // @ApiMember(Description="Settings for third party phone system") ThirdPartyPhoneSystemSettings? thirdPartyPhoneSystemSettings; /** * Should this user override the parent customer's app settings */ // @ApiMember(Description="Should this user override the parent customer's app settings") bool? overrideAppSettings; /** * App / Portal settings for this user */ // @ApiMember(Description="App / Portal settings for this user") AppSettings? appSettings; EndpointInfo({this.accountId,this.accountName,this.customerId,this.customerName,this.referenceId,this.customerBreadcrumb,this.displayName,this.type,this.extraInformation,this.flowId,this.flowName,this.flowParams,this.flowSchedule,this.schedule,this.scheduledFlows,this.disableSms,this.useExternal10DlcCampaign,this.isVirtualPhoneNumber,this.isCallerIdVerified,this.callerIdVerificationCode,this.phoneNumber,this.phoneNumberSid,this.callerIdName,this.addressSid,this.doNotTouchPhoneNumber,this.isEnrolledIn10DlcService,this.enableCallerIdLookup,this.userEmailAddress,this.sipRegion,this.sipCredentialSid,this.sipUserName,this.sipPassword,this.sipDomain,this.enableEmergencyCalling,this.emergencyAddressSid,this.emergencyPhoneNumberId,this.agentState,this.agentStateReason,this.userMode,this.voicemailGreetingId,this.data,this.emailAddress,this.userFirstName,this.userLastName,this.avatarUrl,this.managerRole,this.dashboardPermissions,this.myFieldPermissions,this.customerFieldPermissions,this.otherUserFieldPermissions,this.otherEndpointFieldPermissions,this.name,this.tags,this.actionUrls,this.teamMemberIds,this.contactListVisibility,this.contacts,this.documoId,this.integrationData,this.thirdPartyPhoneSystemSettings,this.overrideAppSettings,this.appSettings}); EndpointInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); accountId = json['accountId']; accountName = json['accountName']; customerId = json['customerId']; customerName = json['customerName']; referenceId = json['referenceId']; customerBreadcrumb = JsonConverters.fromJson(json['customerBreadcrumb'],'List',context!); displayName = json['displayName']; type = JsonConverters.fromJson(json['type'],'EndpointTypes',context!); extraInformation = json['extraInformation']; flowId = json['flowId']; flowName = json['flowName']; flowParams = JsonConverters.fromJson(json['flowParams'],'Struct',context!); flowSchedule = JsonConverters.fromJson(json['flowSchedule'],'EndpointFlowSchedules',context!); schedule = JsonConverters.fromJson(json['schedule'],'Schedule',context!); scheduledFlows = JsonConverters.fromJson(json['scheduledFlows'],'List',context!); disableSms = json['disableSms']; useExternal10DlcCampaign = json['useExternal10DlcCampaign']; isVirtualPhoneNumber = json['isVirtualPhoneNumber']; isCallerIdVerified = json['isCallerIdVerified']; callerIdVerificationCode = json['callerIdVerificationCode']; phoneNumber = json['phoneNumber']; phoneNumberSid = json['phoneNumberSid']; callerIdName = json['callerIdName']; addressSid = json['addressSid']; doNotTouchPhoneNumber = json['doNotTouchPhoneNumber']; isEnrolledIn10DlcService = json['isEnrolledIn10DlcService']; enableCallerIdLookup = json['enableCallerIdLookup']; userEmailAddress = json['userEmailAddress']; sipRegion = JsonConverters.fromJson(json['sipRegion'],'TwilioSipRegions',context!); sipCredentialSid = json['sipCredentialSid']; sipUserName = json['sipUserName']; sipPassword = json['sipPassword']; sipDomain = json['sipDomain']; enableEmergencyCalling = json['enableEmergencyCalling']; emergencyAddressSid = json['emergencyAddressSid']; emergencyPhoneNumberId = json['emergencyPhoneNumberId']; agentState = JsonConverters.fromJson(json['agentState'],'AgentStates',context!); agentStateReason = JsonConverters.fromJson(json['agentStateReason'],'AgentStateReasons',context!); userMode = JsonConverters.fromJson(json['userMode'],'UserModes',context!); voicemailGreetingId = json['voicemailGreetingId']; data = JsonConverters.fromJson(json['data'],'Struct',context!); emailAddress = json['emailAddress']; userFirstName = json['userFirstName']; userLastName = json['userLastName']; avatarUrl = json['avatarUrl']; managerRole = JsonConverters.fromJson(json['managerRole'],'UserManagerRoles',context!); dashboardPermissions = JsonConverters.fromJson(json['dashboardPermissions'],'List',context!); myFieldPermissions = JsonConverters.fromJson(json['myFieldPermissions'],'UserDataFieldModes',context!); customerFieldPermissions = JsonConverters.fromJson(json['customerFieldPermissions'],'UserDataFieldModes',context!); otherUserFieldPermissions = JsonConverters.fromJson(json['otherUserFieldPermissions'],'UserDataFieldModes',context!); otherEndpointFieldPermissions = JsonConverters.fromJson(json['otherEndpointFieldPermissions'],'UserDataFieldModes',context!); name = json['name']; tags = JsonConverters.fromJson(json['tags'],'List',context!); actionUrls = JsonConverters.fromJson(json['actionUrls'],'List',context!); teamMemberIds = JsonConverters.fromJson(json['teamMemberIds'],'List',context!); contactListVisibility = JsonConverters.fromJson(json['contactListVisibility'],'CustomerVisibility',context!); contacts = JsonConverters.fromJson(json['contacts'],'List',context!); documoId = json['documoId']; integrationData = JsonConverters.fromJson(json['integrationData'],'EntityIntegrationData',context!); thirdPartyPhoneSystemSettings = JsonConverters.fromJson(json['thirdPartyPhoneSystemSettings'],'ThirdPartyPhoneSystemSettings',context!); overrideAppSettings = json['overrideAppSettings']; appSettings = JsonConverters.fromJson(json['appSettings'],'AppSettings',context!); return this; } Map toJson() => super.toJson()..addAll({ 'accountId': accountId, 'accountName': accountName, 'customerId': customerId, 'customerName': customerName, 'referenceId': referenceId, 'customerBreadcrumb': JsonConverters.toJson(customerBreadcrumb,'List',context!), 'displayName': displayName, 'type': JsonConverters.toJson(type,'EndpointTypes',context!), 'extraInformation': extraInformation, 'flowId': flowId, 'flowName': flowName, 'flowParams': JsonConverters.toJson(flowParams,'Struct',context!), 'flowSchedule': JsonConverters.toJson(flowSchedule,'EndpointFlowSchedules',context!), 'schedule': JsonConverters.toJson(schedule,'Schedule',context!), 'scheduledFlows': JsonConverters.toJson(scheduledFlows,'List',context!), 'disableSms': disableSms, 'useExternal10DlcCampaign': useExternal10DlcCampaign, 'isVirtualPhoneNumber': isVirtualPhoneNumber, 'isCallerIdVerified': isCallerIdVerified, 'callerIdVerificationCode': callerIdVerificationCode, 'phoneNumber': phoneNumber, 'phoneNumberSid': phoneNumberSid, 'callerIdName': callerIdName, 'addressSid': addressSid, 'doNotTouchPhoneNumber': doNotTouchPhoneNumber, 'isEnrolledIn10DlcService': isEnrolledIn10DlcService, 'enableCallerIdLookup': enableCallerIdLookup, 'userEmailAddress': userEmailAddress, 'sipRegion': JsonConverters.toJson(sipRegion,'TwilioSipRegions',context!), 'sipCredentialSid': sipCredentialSid, 'sipUserName': sipUserName, 'sipPassword': sipPassword, 'sipDomain': sipDomain, 'enableEmergencyCalling': enableEmergencyCalling, 'emergencyAddressSid': emergencyAddressSid, 'emergencyPhoneNumberId': emergencyPhoneNumberId, 'agentState': JsonConverters.toJson(agentState,'AgentStates',context!), 'agentStateReason': JsonConverters.toJson(agentStateReason,'AgentStateReasons',context!), 'userMode': JsonConverters.toJson(userMode,'UserModes',context!), 'voicemailGreetingId': voicemailGreetingId, 'data': JsonConverters.toJson(data,'Struct',context!), 'emailAddress': emailAddress, 'userFirstName': userFirstName, 'userLastName': userLastName, 'avatarUrl': avatarUrl, 'managerRole': JsonConverters.toJson(managerRole,'UserManagerRoles',context!), 'dashboardPermissions': JsonConverters.toJson(dashboardPermissions,'List',context!), 'myFieldPermissions': JsonConverters.toJson(myFieldPermissions,'UserDataFieldModes',context!), 'customerFieldPermissions': JsonConverters.toJson(customerFieldPermissions,'UserDataFieldModes',context!), 'otherUserFieldPermissions': JsonConverters.toJson(otherUserFieldPermissions,'UserDataFieldModes',context!), 'otherEndpointFieldPermissions': JsonConverters.toJson(otherEndpointFieldPermissions,'UserDataFieldModes',context!), 'name': name, 'tags': JsonConverters.toJson(tags,'List',context!), 'actionUrls': JsonConverters.toJson(actionUrls,'List',context!), 'teamMemberIds': JsonConverters.toJson(teamMemberIds,'List',context!), 'contactListVisibility': JsonConverters.toJson(contactListVisibility,'CustomerVisibility',context!), 'contacts': JsonConverters.toJson(contacts,'List',context!), 'documoId': documoId, 'integrationData': JsonConverters.toJson(integrationData,'EntityIntegrationData',context!), 'thirdPartyPhoneSystemSettings': JsonConverters.toJson(thirdPartyPhoneSystemSettings,'ThirdPartyPhoneSystemSettings',context!), 'overrideAppSettings': overrideAppSettings, 'appSettings': JsonConverters.toJson(appSettings,'AppSettings',context!) }); getTypeName() => "EndpointInfo"; TypeContext? context = _ctx; } class ListResponse implements IConvertible { /** * The items */ // @ApiMember(Description="The items") List? items; /** * The total number of items */ // @ApiMember(Description="The total number of items") int? totalCount; /** * The total number of pages */ // @ApiMember(Description="The total number of pages") int? totalPages; /** * Are there more pages of items? Used with simplified paging */ // @ApiMember(Description="Are there more pages of items? Used with simplified paging") bool? hasMorePages; ListResponse({this.items,this.totalCount,this.totalPages,this.hasMorePages}); ListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { items = JsonConverters.fromJson(json['items'],'List<${runtimeGenericTypeDefs(this,[0]).join(",")}>',context!); totalCount = json['totalCount']; totalPages = json['totalPages']; hasMorePages = json['hasMorePages']; return this; } Map toJson() => { 'items': JsonConverters.toJson(items,'List',context!), 'totalCount': totalCount, 'totalPages': totalPages, 'hasMorePages': hasMorePages }; getTypeName() => "ListResponse<$EndpointInfo>"; TypeContext? context = _ctx; } /** * Lists all endpoints */ // @Route("/endpoints", "GET") // @Api(Description="Lists all endpoints") class ListEndpoints extends ListRequest implements IReturn>, IConvertible { /** * The IDs of the account whose endpoints you want to retrieve */ // @ApiMember(Description="The IDs of the account whose endpoints you want to retrieve") List? accountIds; /** * The IDs of the customers whose endpoints you want to retrieve */ // @ApiMember(Description="The IDs of the customers whose endpoints you want to retrieve") List? customerIds; /** * The third party IDs of endpoints you want to retrieve */ // @ApiMember(Description="The third party IDs of endpoints you want to retrieve") List? referenceIds; /** * If you want a shall parent customer filter (e.g. no deep children) */ // @ApiMember(Description="If you want a shall parent customer filter (e.g. no deep children)") bool? shallowParent; /** * The IDs of the flows whose endpoints you want to retrieve */ // @ApiMember(Description="The IDs of the flows whose endpoints you want to retrieve") List? flowIds; /** * The state where the specified flow IDs should be */ // @ApiMember(Description="The state where the specified flow IDs should be") String? flowState; /** * The list of tag IDs to filter by (must contain all) */ // @ApiMember(Description="The list of tag IDs to filter by (must contain all)") List? tagIds; /** * Filter by name */ // @ApiMember(Description="Filter by name") String? nameFilter; /** * Filter by phone number */ // @ApiMember(Description="Filter by phone number") String? phoneNumberFilter; /** * Filter by type */ // @ApiMember(Description="Filter by type") EndpointTypes? type; /** * Filter by types */ // @ApiMember(Description="Filter by types") List? types; /** * Filter by user mode */ // @ApiMember(Description="Filter by user mode") UserModes? userMode; /** * Filters for any endpoint data fields. Format for each entry should be 'FieldName=Value'. We do not support numeric or boolean currently */ // @ApiMember(Description="Filters for any endpoint data fields. Format for each entry should be 'FieldName=Value'. We do not support numeric or boolean currently") List? dataFilters; /** * Filter by SIP user name */ // @ApiMember(Description="Filter by SIP user name") String? sipUserName; /** * Filter by flow parameters (this must be a JSON struct) */ // @ApiMember(Description="Filter by flow parameters (this must be a JSON struct)") String? flowParametersFilter; ListEndpoints({this.accountIds,this.customerIds,this.referenceIds,this.shallowParent,this.flowIds,this.flowState,this.tagIds,this.nameFilter,this.phoneNumberFilter,this.type,this.types,this.userMode,this.dataFilters,this.sipUserName,this.flowParametersFilter}); ListEndpoints.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); accountIds = JsonConverters.fromJson(json['accountIds'],'List',context!); customerIds = JsonConverters.fromJson(json['customerIds'],'List',context!); referenceIds = JsonConverters.fromJson(json['referenceIds'],'List',context!); shallowParent = json['shallowParent']; flowIds = JsonConverters.fromJson(json['flowIds'],'List',context!); flowState = json['flowState']; tagIds = JsonConverters.fromJson(json['tagIds'],'List',context!); nameFilter = json['nameFilter']; phoneNumberFilter = json['phoneNumberFilter']; type = JsonConverters.fromJson(json['type'],'EndpointTypes',context!); types = JsonConverters.fromJson(json['types'],'List',context!); userMode = JsonConverters.fromJson(json['userMode'],'UserModes',context!); dataFilters = JsonConverters.fromJson(json['dataFilters'],'List',context!); sipUserName = json['sipUserName']; flowParametersFilter = json['flowParametersFilter']; return this; } Map toJson() => super.toJson()..addAll({ 'accountIds': JsonConverters.toJson(accountIds,'List',context!), 'customerIds': JsonConverters.toJson(customerIds,'List',context!), 'referenceIds': JsonConverters.toJson(referenceIds,'List',context!), 'shallowParent': shallowParent, 'flowIds': JsonConverters.toJson(flowIds,'List',context!), 'flowState': flowState, 'tagIds': JsonConverters.toJson(tagIds,'List',context!), 'nameFilter': nameFilter, 'phoneNumberFilter': phoneNumberFilter, 'type': JsonConverters.toJson(type,'EndpointTypes',context!), 'types': JsonConverters.toJson(types,'List',context!), 'userMode': JsonConverters.toJson(userMode,'UserModes',context!), 'dataFilters': JsonConverters.toJson(dataFilters,'List',context!), 'sipUserName': sipUserName, 'flowParametersFilter': flowParametersFilter }); createResponse() => ListResponse(); getResponseTypeName() => "ListResponse"; getTypeName() => "ListEndpoints"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'evovoice.io', types: { 'SortOrders': TypeInfo(TypeOf.Enum, enumValues:SortOrders.values), 'ListRequest': TypeInfo(TypeOf.AbstractClass), 'UserModes': TypeInfo(TypeOf.Enum, enumValues:UserModes.values), 'EndpointTypes': TypeInfo(TypeOf.Enum, enumValues:EndpointTypes.values), 'HostedSuiteCompletedFormField': TypeInfo(TypeOf.Class, create:() => HostedSuiteCompletedFormField()), 'HostedSuiteCompletedForm': TypeInfo(TypeOf.Class, create:() => HostedSuiteCompletedForm()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EntityInfo': TypeInfo(TypeOf.AbstractClass), 'CustomerBreadcrumb': TypeInfo(TypeOf.Class, create:() => CustomerBreadcrumb()), 'LogEntryInfo': TypeInfo(TypeOf.Class, create:() => LogEntryInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AccountInfo': TypeInfo(TypeOf.Class, create:() => AccountInfo()), 'BillingSettings': TypeInfo(TypeOf.Class, create:() => BillingSettings()), 'EndpointInfo': TypeInfo(TypeOf.Class, create:() => EndpointInfo()), 'Struct': TypeInfo(TypeOf.Class, create:() => Struct()), 'EndpointFlowSchedules': TypeInfo(TypeOf.Class, create:() => EndpointFlowSchedules()), 'Schedule': TypeInfo(TypeOf.Class, create:() => Schedule()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ScheduledFlow': TypeInfo(TypeOf.Class, create:() => ScheduledFlow()), 'TwilioSipRegions': TypeInfo(TypeOf.Class, create:() => TwilioSipRegions()), 'AgentStates': TypeInfo(TypeOf.Class, create:() => AgentStates()), 'AgentStateReasons': TypeInfo(TypeOf.Class, create:() => AgentStateReasons()), 'UserManagerRoles': TypeInfo(TypeOf.Class, create:() => UserManagerRoles()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DashboardPermissions': TypeInfo(TypeOf.Class, create:() => DashboardPermissions()), 'UserDataFieldModes': TypeInfo(TypeOf.Class, create:() => UserDataFieldModes()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Tag': TypeInfo(TypeOf.Class, create:() => Tag()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EndpointActionUrl': TypeInfo(TypeOf.Class, create:() => EndpointActionUrl()), 'CustomerVisibility': TypeInfo(TypeOf.Class, create:() => CustomerVisibility()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EndpointContact': TypeInfo(TypeOf.Class, create:() => EndpointContact()), 'EntityIntegrationData': TypeInfo(TypeOf.Class, create:() => EntityIntegrationData()), 'ThirdPartyPhoneSystemSettings': TypeInfo(TypeOf.Class, create:() => ThirdPartyPhoneSystemSettings()), 'AppSettings': TypeInfo(TypeOf.Class, create:() => AppSettings()), 'ListResponse': TypeInfo(TypeOf.Class, create:() => ListResponse()), 'ListEndpoints': TypeInfo(TypeOf.Class, create:() => ListEndpoints()), 'List': TypeInfo(TypeOf.Class, create:() => []), });