import CallQueueInfo from "./CallQueueInfo"; import ContactInfo from "./ContactInfo"; import DepartmentInfo from "./DepartmentInfo"; import ExtensionPermissions from "./ExtensionPermissions"; import ExtensionServiceFeatureInfo from "./ExtensionServiceFeatureInfo"; import ExtensionStatusInfo from "./ExtensionStatusInfo"; import ProfileImageInfo from "./ProfileImageInfo"; import ReferenceInfo from "./ReferenceInfo"; import RegionalSettings from "./RegionalSettings"; interface GetExtensionInfoResponse { /** * Internal identifier of an extension */ id?: number; /** * Canonical URI of an extension */ uri?: string; /** * Contact detailed information */ contact?: ContactInfo; /** * Information on department extension(s), to which the requested extension belongs. Returned only for user extensions, members of department, requested by single extensionId */ departments?: DepartmentInfo[]; /** * Number of department extension */ extensionNumber?: string; /** * Extension user name */ name?: string; /** * For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension */ partnerId?: string; /** * Extension permissions, corresponding to the Service Web permissions 'Admin' and 'InternationalCalling' */ permissions?: ExtensionPermissions; /** * Information on profile image */ profileImage?: ProfileImageInfo; /** * List of non-RC internal identifiers assigned to an extension */ references?: ReferenceInfo[]; /** * Extension region data (timezone, home country, language) */ regionalSettings?: RegionalSettings; /** * Extension service features returned in response only when the logged-in user requests his/her own extension info, see also Extension Service Features */ serviceFeatures?: ExtensionServiceFeatureInfo[]; /** * Specifies extension configuration wizard state (web service setup). The default value is 'NotStarted' */ setupWizardState?: "NotStarted" | "Incomplete" | "Completed"; /** * Extension current state. If the status is 'Unassigned'. Returned for all extensions */ status?: "Enabled" | "Disabled" | "NotActivated" | "Unassigned"; /** * Status information (reason, comment). Returned for 'Disabled' status only */ statusInfo?: ExtensionStatusInfo; /** * Extension type */ type?: "User" | "FaxUser" | "VirtualUser" | "DigitalUser" | "Department" | "Announcement" | "Voicemail" | "SharedLinesGroup" | "PagingOnlyGroup" | "IvrMenu" | "ApplicationExtension" | "ParkLocation"; /** * For Department extension type only. Call queue settings */ callQueueInfo?: CallQueueInfo; } export default GetExtensionInfoResponse;