npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ufpdsapi

v1.0.53

Published

unify PDS system API

Readme

Enums

Enumeration: CdtPhoneState

ccu.CdtPhoneState

调度话机调度状态定义

Table of contents

Enumeration Members

Enumeration Members

Conference

• Conference

多方会议


GroupIn

• GroupIn

组来话


Hunt

• Hunt

组寻线


Intrude

• Intrude

强插


Monitor

• Monitor

监听


PhoneMonitor

• PhoneMonitor

通话监控

Enumeration: MsgCatalog

ccu.MsgCatalog

协议消息分类

Table of contents

Enumeration Members

Enumeration Members

Event

• Event

事件消息


Request

• Request

请求消息


Response

• Response

响应消息

Enumeration: MsgTypes

ccu.MsgTypes

协议消息类型ID

Table of contents

Enumeration Members

Enumeration Members

CmdAnswerCall

• CmdAnswerCall


CmdCdGroupOffHourForwardSet

• CmdCdGroupOffHourForwardSet


CmdCdtPhoneAlt

• CmdCdtPhoneAlt


CmdCdtPhoneHook

• CmdCdtPhoneHook


CmdCdtPhoneSelect

• CmdCdtPhoneSelect


CmdDialDTMF

• CmdDialDTMF


CmdDialNumber

• CmdDialNumber


CmdFuncBtnClick

• CmdFuncBtnClick


CmdGetCCUVer

• CmdGetCCUVer


CmdHotKeyClick

• CmdHotKeyClick


CmdHotKeyMapClose

• CmdHotKeyMapClose


CmdHotKeyMapOpen

• CmdHotKeyMapOpen


CmdInstantMeetKeepCalling

• CmdInstantMeetKeepCalling


CmdInstantMeetPartyBye

• CmdInstantMeetPartyBye


CmdInstantMeetPartyInvite

• CmdInstantMeetPartyInvite


CmdInstantMeetPartyListen

• CmdInstantMeetPartyListen


CmdInstantMeetPartyRmv

• CmdInstantMeetPartyRmv


CmdInstantMeetPartySpeak

• CmdInstantMeetPartySpeak


CmdInstantMeetingLoad

• CmdInstantMeetingLoad


CmdKeepAlive

• CmdKeepAlive


CmdLoadActiveHotKeyPage

• CmdLoadActiveHotKeyPage


CmdLoadCdtDevice

• CmdLoadCdtDevice


CmdLoadCommonFunc

• CmdLoadCommonFunc


CmdLoadExtPages

• CmdLoadExtPages


CmdLoadFuncPage

• CmdLoadFuncPage


CmdLoadMainHotKeyPages

• CmdLoadMainHotKeyPages


CmdResumeCall

• CmdResumeCall


CmdSearchHotKeys

• CmdSearchHotKeys


CmdSetCdGroupForwarding

• CmdSetCdGroupForwarding


CmdSetForwarding

• CmdSetForwarding


CmdSetHuntGroupForward

• CmdSetHuntGroupForward


EvtCdGroupForwarding

• EvtCdGroupForwarding

登录工作组离席转移设置


EvtCdGroupNameUpdate

• EvtCdGroupNameUpdate

工作组名称更新事件


EvtCdGroupOffHourForwardUpdate

• EvtCdGroupOffHourForwardUpdate

工作组值班电话更新事件


EvtCdtPhoneSelected

• EvtCdtPhoneSelected

当前键权话机选择事件


EvtCdtPhoneState

• EvtCdtPhoneState

调度话机状态事件


EvtExtPageUpdate

• EvtExtPageUpdate

扩展页配置更新事件


EvtFuncKeyState

• EvtFuncKeyState

功能键状态事件


EvtHeldCalls

• EvtHeldCalls

工作组保持通话队列事件


EvtHotKeyDel

• EvtHotKeyDel

热键删除事件


EvtHotKeyPageDel

• EvtHotKeyPageDel

热键页删除事件


EvtHotKeyPageUpdate

• EvtHotKeyPageUpdate

热键页更新事件


EvtHotKeyState

• EvtHotKeyState

热键状态事件


EvtHotKeyUpdate

• EvtHotKeyUpdate

热键配置更新事件


EvtHuntGroupForwardUpdate

• EvtHuntGroupForwardUpdate

寻线组转移设置更新事件


EvtIncomingCalls

• EvtIncomingCalls

工作组来话队列事件


EvtInstantMeetPartyCallState

• EvtInstantMeetPartyCallState

即时会议成员呼叫状态更新事件


EvtMainHotKeyPagesUpdate

• EvtMainHotKeyPagesUpdate

一级热键页配置更新事件


EvtShutDown

• EvtShutDown

服务器关闭调度台连接事件


EvtUpdateCdtDevice

• EvtUpdateCdtDevice

调度话机配置更新事件


EvtUpdateCommonFunc

• EvtUpdateCommonFunc

常用功能键更新事件


EvtUpdateFuncPage

• EvtUpdateFuncPage

功能页更新事件


EvtUserNameUpdate

• EvtUserNameUpdate

调度用户名称更新事件


RespApiObjID

• RespApiObjID


RespError

• RespError


RespOK

• RespOK

Enumeration: PhoneCallState

ccu.PhoneCallState

话机通话状态

Table of contents

Enumeration Members

Enumeration Members

Alert

• Alert

振铃中


Connected

• Connected

通话中


Failed

• Failed

失败


Idle

• Idle

空闲


Offline

• Offline

离线


Proceeding

• Proceeding

正在呼叫中

Enumeration: AdmObjTypes

mtypes.AdmObjTypes

后台管理操作对象分类值定义

Table of contents

Enumeration Members

Enumeration Members

CdGroup

• CdGroup

调度工作组


CdtDevice

• CdtDevice

调度台终端设备


HotKey

• HotKey

热键


HotKeyPage

• HotKeyPage

热键页


Role

• Role

用户角色


User

• User

用户账号

Enumeration: AdmOpTypes

mtypes.AdmOpTypes

后台管理操作类型值定义

Table of contents

Enumeration Members

Enumeration Members

Create

• Create

新增


Disable

• Disable

禁用


Enable

• Enable

启用


Remove

• Remove

删除


Update

• Update

修改

Enumeration: CallLogCatalog

mtypes.CallLogCatalog

通话记录分类值定义

Table of contents

Enumeration Members

Enumeration Members

Conference

• Conference

会议呼叫


Emergency

• Emergency

紧急


Hunt

• Hunt

组寻线呼叫


Normal

• Normal

普通


VIP

• VIP

非常重要


WGIncom

• WGIncom

组来话

Enumeration: CdtFunction

mtypes.CdtFunction

调度台操作功能键值定义

Table of contents

Enumeration Members

Enumeration Members

AtdTransfer

• AtdTransfer

咨询转移


CdGroupForward

• CdGroupForward

工作组离席转移


Conference

• Conference

多方会议


Consult

• Consult

咨询


DialPad

• DialPad

拨号盘


ExternalApp

• ExternalApp

外部应用


ForceInvite

• ForceInvite

强呼


HoldOn

• HoldOn

通话保持


HuntBurst

• HuntBurst

群振


HuntGroupForward

• HuntGroupForward

寻线组号码转移


HuntLoop

• HuntLoop

轮呼


Intrude

• Intrude

强插


Monitor

• Monitor

监听


MuteRing

• MuteRing

闭铃


PTT

• PTT

对讲频道占用(push to talk)


Pickup

• Pickup

组代接


PickupDesignated

• PickupDesignated

代接


ReDial

• ReDial

重拨


Reset

• Reset

终端复位


Tear

• Tear

强拆


TransferSingleStep

• TransferSingleStep

通话转接


UCForward

• UCForward

无条件转移


UILock

• UILock

界面锁定

Enumeration: CdtOpTypes

mtypes.CdtOpTypes

调度台操作类型值定义

Table of contents

Enumeration Members

Enumeration Members

AltCall

• AltCall

调度话机通话切换按键


AnswerGroupInCom

• AnswerGroupInCom

接听组来话


AtdTransfer

• AtdTransfer

咨询通话切换


CdtPhoneHook

• CdtPhoneHook

调度话机(摘/挂机)按键操作


CdtPhoneSelect

• CdtPhoneSelect

调度话机键权选择


DialNumber

• DialNumber

拨号


ForceInvite

• ForceInvite

强呼


FuncKeyClick

• FuncKeyClick

功能键选择


GroupResumeCall

• GroupResumeCall

恢复组保持通话


HotKeyClick

• HotKeyClick

热键操作


Intrude

• Intrude

强插


Monitor

• Monitor

监听


MuteRing

• MuteRing

组来话闭铃


Pickup

• Pickup

代接


SetCdGroupForwarding

• SetCdGroupForwarding

设置组离位转移


SetUCTransfer

• SetUCTransfer

设置无条件转移


Tear

• Tear

强拆


Transfer

• Transfer

通话盲转

Enumeration: ExtPageName

mtypes.ExtPageName

扩展功能页名称列表

Table of contents

Enumeration Members

Enumeration Members

CDR

• CDR


Conference

• Conference


Config

• Config


FavoritePage

• FavoritePage


FuncPage

• FuncPage


GeneralQuery

• GeneralQuery


MAP

• MAP


SMS

• SMS


TBC

• TBC


VConference

• VConference

Enumeration: ExtPageType

mtypes.ExtPageType

扩展功能页类型值定义

Table of contents

Enumeration Members

Enumeration Members

CDR

• CDR

通话记录


Conference

• Conference

语音会议系统


Config

• Config

系统配置


FavoritePage

• FavoritePage

个性页


FuncPage

• FuncPage

功能键页


GeneralQuery

• GeneralQuery

综合查询页


MAP

• MAP

图形化调度


SMS

• SMS

短信通知


TBC

• TBC

预案语音广播


VConference

• VConference

视频会议系统

Enumeration: HotkeyType

mtypes.HotkeyType

热键类型定义

Table of contents

Enumeration Members

Enumeration Members

camera

• camera

摄像头


cdGroup

• cdGroup

工作组


cdOperator

• cdOperator

调度员用户,呼叫其登录调度台绑定话机


direct

• direct

直拨号码(注册到CSTA交换机,支持强插、强拆)


huntGroup

• huntGroup

铃组(多号码轮呼,群振)


inner

• inner

内部号码(注册到调度服务器,支持强插、强拆)


meetGroup

• meetGroup

会议组


speedDial

• speedDial

速拨号码(外线,支持一键拨号)


subPage

• subPage

热键子页

Enumeration: HuntCallMode

mtypes.HuntCallMode

寻线组号码呼叫模式

Table of contents

Enumeration Members

Enumeration Members

Burst

• Burst

群振铃


RoundRobin

• RoundRobin

轮转呼叫


Sequence

• Sequence

顺序呼叫

Enumeration: ListMode

mtypes.ListMode

名单模式

Table of contents

Enumeration Members

Enumeration Members

Blacklist

• Blacklist

黑名单


Whitelist

• Whitelist

白名单

Enumeration: LoginEvtTypes

mtypes.LoginEvtTypes

用户登录事件值定义

Table of contents

Enumeration Members

Enumeration Members

Login

• Login

登录


LoginFail

• LoginFail

登录失败


Logout

• Logout

登出


SessionDown

• SessionDown

会话异常中断

Enumeration: ObjectType

mtypes.ObjectType

管理对象类型定义

Table of contents

Enumeration Members

Enumeration Members

CdGroup

• CdGroup

调度工作组


CdtDevice

• CdtDevice

调度台终端设备


HotKey

• HotKey

热键


HotKeyPage

• HotKeyPage

热键页


Role

• Role

用户角色


User

• User

用户账号

Enumeration: Operation

mtypes.Operation

管理对象操作定义

Table of contents

Enumeration Members

Enumeration Members

Del

• Del

删除


Disable

• Disable

禁用


Enable

• Enable

启用


Reset

• Reset

重置

Enumeration: PeerNumberType

mtypes.PeerNumberType

通话对方号码类型

Table of contents

Enumeration Members

Enumeration Members

Internal

• Internal

内线


International

• International

国际长途电话


Local

• Local

市话


Toll

• Toll

国内长途电话

Enumeration: RoleRightId

mtypes.RoleRightId

用户角色权限定义

Table of contents

Enumeration Members

Enumeration Members

CdGroups_add

• CdGroups_add


CdGroups_belongConfig

• CdGroups_belongConfig


CdGroups_del

• CdGroups_del


CdGroups_login

• CdGroups_login


CdGroups_query

• CdGroups_query


CdGroups_update

• CdGroups_update


CdtDevices_add

• CdtDevices_add


CdtDevices_del

• CdtDevices_del


CdtDevices_query

• CdtDevices_query


CdtDevices_update

• CdtDevices_update


ConferenceSystem_admin

• ConferenceSystem_admin


ConferenceSystem_log_query

• ConferenceSystem_log_query


ConferenceSystem_rec_query

• ConferenceSystem_rec_query


ConferenceSystem_service

• ConferenceSystem_service


GeneralQuery

• GeneralQuery


GeneralQuery_EContacts

• GeneralQuery_EContacts


GeneralQuery_Normal

• GeneralQuery_Normal


GeneralQuery_OA

• GeneralQuery_OA


HotKeyPages_add

• HotKeyPages_add


HotKeyPages_del

• HotKeyPages_del


HotKeyPages_favorite

• HotKeyPages_favorite


HotKeyPages_query

• HotKeyPages_query


HotKeyPages_update

• HotKeyPages_update


HotKeys_add

• HotKeys_add


HotKeys_del

• HotKeys_del


HotKeys_query

• HotKeys_query


HotKeys_update

• HotKeys_update


MAP_admin

• MAP_admin


MAP_dispatch

• MAP_dispatch


Radio_admin

• Radio_admin


Radio_dispatch

• Radio_dispatch


RecordSystem_admin

• RecordSystem_admin


RecordSystem_recordDownload

• RecordSystem_recordDownload


RecordSystem_recordPlayback

• RecordSystem_recordPlayback


RecordSystem_recordQuery

• RecordSystem_recordQuery


Roles_admin

• Roles_admin


Roles_query

• Roles_query


SMS_admin

• SMS_admin


SMS_bcTask_add

• SMS_bcTask_add


SMS_bcTask_del

• SMS_bcTask_del


SMS_bcTask_query

• SMS_bcTask_query


SysConfig_query

• SysConfig_query


SysConfig_update

• SysConfig_update


TBCSystem_admin

• TBCSystem_admin


TBCSystem_log_query

• TBCSystem_log_query


TBCSystem_reassign

• TBCSystem_reassign


TBCSystem_service

• TBCSystem_service


TBCSystem_template

• TBCSystem_template


Users_add

• Users_add


Users_del

• Users_del


Users_query

• Users_query


Users_update

• Users_update


VConferenceSystem_admin

• VConferenceSystem_admin


VConferenceSystem_log_query

• VConferenceSystem_log_query


VConferenceSystem_rec_query

• VConferenceSystem_rec_query


VConferenceSystem_service

• VConferenceSystem_service

Interfaces

Interface: CameraProfile

mtypes.CameraProfile

摄像头配置

Table of contents

Properties

Properties

audio

• audio: boolean

是否支持语音喊话


intercom

• intercom: boolean

是否支持语音对讲


ptz

• ptz: boolean

是否支持云台控制

Interface: HotKeyNumberItem

mtypes.HotKeyNumberItem

热键号码项

Table of contents

Properties

Properties

hasVideo

• hasVideo: boolean

是否视频终端


hkey

• Optional hkey: number


nName

• Optional nName: string

号码名称


number

• number: string

电话号码


outGoPrefix

• outGoPrefix: string

呼出前缀


priority

• priority: number

优先级别

ufpdsapi

Table of contents

Namespaces

Type Aliases

Variables

Functions

Type Aliases

Session

Ƭ Session: Object

终端登录会话状态数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | administrator | boolean | 登录用户是否管理员 | | auth_id | string | 登录认证成功后返回的会话ID | | errMsg | string | 服务器最近返回错误信息 | | inProgress | boolean | 是否正在登录 | | lastRequestIndex | number | 最近发送请求序号 | | pwd | string | 用户登录密码 | | rights | { [key: string]: boolean; } | 登录用户操作权限集合 | | userId | string | 用户状态 | | userName | string | 用户名称 |

Variables

sess

• Const sess: Session

共享会话信息对象

Functions

admLoginLogsQuery

▸ admLoginLogsQuery(offset, rows, startTime, endTime, filter): Promise<{ items: AdmLoginLog[] ; total: number }>

后台管理登录日志查询

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | offset | number | 结果偏移量 | | rows | number | 结果限制行数 | | startTime | undefined | string | 开始时间 | | endTime | undefined | string | 结束时间 | | filter | undefined | string | 查询过滤条件SQL表达式 |

Returns

Promise<{ items: AdmLoginLog[] ; total: number }>

满足查询条件记录总数及指定偏移量、限定行数的日志记录列表


admOpLogsQuery

▸ admOpLogsQuery(offset, rows, startTime, endTime, filter): Promise<{ items: AdmOpLog[] ; total: number }>

后台维护管理日志查询

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | offset | number | 结果偏移量 | | rows | number | 结果限制行数 | | startTime | undefined | string | 开始时间 | | endTime | undefined | string | 结束时间 | | filter | undefined | string | 查询过滤条件SQL表达式 |

Returns

Promise<{ items: AdmOpLog[] ; total: number }>

满足查询条件记录总数及指定偏移量、限定行数的日志记录列表


cdGroupRingLoad

▸ cdGroupRingLoad(cdGroup): Promise<CdGroupRing>

加载工作组振铃组配置

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | cdGroup | number | 工作组ID |

Returns

Promise<CdGroupRing>

振铃顺序用户账号及名称列表CdGroupRing


cdGroupRingSave

▸ cdGroupRingSave(cdGroup, users): Promise<void>

保存工作组振铃组配置

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | cdGroup | number | 工作组ID | | users | string[] | 振铃顺序用户账号列表 |

Returns

Promise<void>


cdtLoginLogsQuery

▸ cdtLoginLogsQuery(offset, rows, startTime, endTime, filter): Promise<{ items: CdtLoginLog[] ; total: number }>

调度台登录日志查询

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | offset | number | 结果偏移量 | | rows | number | 结果限制行数 | | startTime | undefined | string | 开始时间 | | endTime | undefined | string | 结束时间 | | filter | undefined | string | 查询过滤条件SQL表达式 |

Returns

Promise<{ items: CdtLoginLog[] ; total: number }>

满足查询条件记录总数及指定偏移量、限定行数的日志记录列表


cdtOpLogsQuery

▸ cdtOpLogsQuery(offset, rows, startTime, endTime, filter): Promise<{ items: CdtOpLog[] ; total: number }>

调度台操作日志查询

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | offset | number | 结果偏移量 | | rows | number | 结果限制行数 | | startTime | undefined | string | 开始时间 | | endTime | undefined | string | 结束时间 | | filter | undefined | string | 查询过滤条件SQL表达式 |

Returns

Promise<{ items: CdtOpLog[] ; total: number }>

满足查询条件记录总数及指定偏移量、限定行数的日志记录列表


clusterStatusPoll

▸ clusterStatusPoll(): Promise<ClusterStatus>

轮询双机热备集群状态

Returns

Promise<ClusterStatus>

状态数据结构ClusterStatus


cstaSwitchStatusPoll

▸ cstaSwitchStatusPoll(): Promise<CSTALinkStatus>

轮询CSTA交换机状态

Returns

Promise<CSTALinkStatus>

mtypes.CSTASwitchStatus


downloadCdrGeneral

▸ downloadCdrGeneral(startTime, endTime, filter?): Promise<string>

后台下载通话记录csv文件格式

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | startTime | string | 开始时间 | | endTime | string | 结束时间 | | filter? | string | 查询过滤条件SQL表达式 |

Returns

Promise<string>

文件URL数据对象


getServerAddress

▸ getServerAddress(): Object

Returns

Object

服务器地址 {hostAddr,ssl}

| Name | Type | | :------ | :------ | | hostAddr | string | | ssl | boolean |


hotKeyPageFavoriteLoad

▸ hotKeyPageFavoriteLoad(): Promise<HotKeyPageConfig>

加载登录用户个性化热键页

Returns

Promise<HotKeyPageConfig>


hotKeyPageFavoriteSave

▸ hotKeyPageFavoriteSave(config): Promise<void>

保存登录用户个性化热键页

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | config | HotKeyPageConfig | 热键页配置数据结构HotKeyPageConfig |

Returns

Promise<void>


hotKeysExport

▸ hotKeysExport(ids?): void

导出热键配置数据到csv格式文件

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | ids? | number[] | 热键ID列表,可选参数,不带参数将导出所有热键 |

Returns

void


hotKeysImport

▸ hotKeysImport(file): Promise<any>

导入热键配置csv格式文件

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | file | any | 文件对象 |

Returns

Promise<any>

成功导入热键数量


keepalive

▸ keepalive(): Promise<void>

会话心跳保持

Returns

Promise<void>

无


login

▸ login(acc, password, onSessionDown?): Promise<undefined | Session>

登录服务器后台

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | acc | string | 登录账号 | | password | string | 登录密码 | | onSessionDown? | (e: { result: string ; resultComment: string }) => void | 会话中断回调事件函数 |

Returns

Promise<undefined | Session>

会话数据结构


loginByToken

▸ loginByToken(token, onSessionDown?): Promise<undefined | Session>

通过单点认证平台登录调度服务器后台

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | token | string | 单点认证平台返回的令牌 | | onSessionDown? | (e: { result: string ; resultComment: string }) => void | 会话中断回调事件函数 |

Returns

Promise<undefined | Session>

会话数据结构


logout

▸ logout(): void

登出系统

Returns

void

无


mapHotKeyMarkAdd

▸ mapHotKeyMarkAdd(mark): Promise<void>

添加图形化调度热键标注点

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | mark | MapHotKeyMark | 热键标注点数据MapHotKeyMark |

Returns

Promise<void>


mapHotKeyMarkRemove

▸ mapHotKeyMarkRemove(id): Promise<void>

删除图形化调度热键标注点

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | id | number | 热键ID |

Returns

Promise<void>


mapHotKeyMarksLoad

▸ mapHotKeyMarksLoad(): Promise<MapHotKeyMarkSet>

加载图形化调度热键标注映射表

Returns

Promise<MapHotKeyMarkSet>

热键标注映射表MapHotKeyMarkSet


mapZoneMarkAdd

▸ mapZoneMarkAdd(mark): Promise<void>

添加图形化调度区域标注

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | mark | MapZoneMark | 区域标注数据MapZoneMark |

Returns

Promise<void>


mapZoneMarkRemove

▸ mapZoneMarkRemove(name): Promise<void>

删除图形化调度区域标注

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | name | string | 区域名称 |

Returns

Promise<void>


mapZoneMarkUpdate

▸ mapZoneMarkUpdate(mark): Promise<void>

更新图形化调度区域标注

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | mark | MapZoneMark | 区域标注数据MapZoneMark |

Returns

Promise<void>


mapZoneMarksLoad

▸ mapZoneMarksLoad(): Promise<MapZoneMarkSet>

加载图形化调度区域标注映射表

Returns

Promise<MapZoneMarkSet>

区域标注映射表MapZoneMarkSet


objLoad

▸ objLoad(id, ot): Promise<any>

加载管理对象配置

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | id | string | number | 对象ID | | ot | ObjectType | 对象类型 |

Returns

Promise<any>

对象配置数据


objectAdd

▸ objectAdd(ot, cfg): Promise<any>

新增管理对象

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | ot | ObjectType | 对象类型 | | cfg | any | 对象配置数据 |

Returns

Promise<any>

新增对象ID


objectList

▸ objectList(ot, offset, rows, filter?): Promise<any>

配置数据对象列表查询

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | ot | ObjectType | 对象类型 | | offset | number | 结果起始偏移 | | rows | number | 结果行数 | | filter? | string | 查询过滤条件字符串(sql表达式) |

Returns

Promise<any>


objectOperation

▸ objectOperation(ids, ot, op): Promise<void>

管理对象批量操作

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | ids | (string | number)[] | 管理对象ID列表 | | ot | ObjectType | 对象类型 | | op | Operation | 操作类型 |

Returns

Promise<void>


objectPollState

▸ objectPollState(ot, ids): Promise<any>

轮询管理对象状态

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | ot | ObjectType | 管理对象类型 | | ids | (string | number)[] | 管理对象ID列表 |

Returns

Promise<any>

对象ID到对象实时状态的映射表


objectUpdate

▸ objectUpdate(ids, ot, cfg): Promise<void>

批量更新管理对象配置

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | ids | (string | number)[] | 管理对象ID列表 | | ot | ObjectType | 管理对象类型 | | cfg | any | 管理对象配置数据 |

Returns

Promise<void>


queryCdUsers

▸ queryCdUsers(): Promise<any>

查询列表已启用调度功能用户

Returns

Promise<any>

调度用户列表


queryCdr

▸ queryCdr(startTime, endTime, offset, rows, catalog, outgo, cdtDevice, cdGroup, userSelf, connected, peerName, peerNumber): Promise<{ items: CdrRow[] ; total: number }>

调度台通话记录查询

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | startTime | string | 起始时间 | | endTime | string | 结束时间 | | offset | number | 结果起始偏移量 | | rows | number | 查询返回记录行数 | | catalog | undefined | CallLogCatalog | 通话类别 | | outgo | undefined | boolean | 是否呼出 | | cdtDevice | undefined | string | 终端设备ID或名称、索引模糊查询过滤字符串 | | cdGroup | undefined | number | 工作组名称、索引模糊查询过滤字符串 | | userSelf | undefined | boolean | 是否只返回当前用户通话记录 | | connected | undefined | boolean | 是否只范围已接通通话记录 | | peerName | string | 通话对方名称或索引模糊查询过滤字符串 | | peerNumber | string | 通话对方号码模糊查询过滤字符串 |

Returns

Promise<{ items: CdrRow[] ; total: number }>

满足查询条件通话记录总数量,及指定偏移量及行数的通话记录列表


queryCdrGeneral

▸ queryCdrGeneral(startTime, endTime, offset, rows, filter?): Promise<{ items: CdrRowGeneral[] ; total: number }>

管理后台查询通话记录

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | startTime | string | 开始时间 | | endTime | string | 结束时间 | | offset | number | 返回结果偏移量 | | rows | number | 返回结果最大行数 | | filter? | string | 查询过滤条件,SQL表达式 |

Returns

Promise<{ items: CdrRowGeneral[] ; total: number }>

满足条件的通话记录总数,及指定偏移及行数的通话记录列表


queryCdrSummary

▸ queryCdrSummary(startTime, endTime, cdtDevice, cdGroup, userSelf, peerName, peerNumber): Promise<CdrSummary>

调度台通话记录统计数据查询

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | startTime | string | 起始时间 | | endTime | string | 结束时间 | | cdtDevice | undefined | string | 终端设备ID或名称、索引模糊查询过滤字符串 | | cdGroup | undefined | number | 工作组名称、索引模糊查询过滤字符串 | | userSelf | undefined | boolean | 是否只返回当前用户通话记录 | | peerName | string | 通话对方名称或索引模糊查询过滤字符串 | | peerNumber | string | 通话对方号码模糊查询过滤字符串 |

Returns

Promise<CdrSummary>

统计数据 CdrSummary


queryUserCdGroups

▸ queryUserCdGroups(userId): Promise<any>

查询列表特定用户可登录工作组

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | userId | string | 用户登录ID |

Returns

Promise<any>

工作组列表


setServerAddress

▸ setServerAddress(hostAddr, ssl): void

初始化服务器URL地址

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | hostAddr | string | 服务器IP地址:端口,例如192.168.1.88:3000 | | ssl | boolean | 是否采用SSL加密协议 |

Returns

void


sqlQuery

▸ sqlQuery(stmt): Promise<any>

通用系统数据库查询

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | stmt | string | sql查询语句 |

Returns

Promise<any>

查询结果记录数组


systemStateSummaryPoll

▸ systemStateSummaryPoll(): Promise<SystemStateSummary>

系统运行状态轮询

Returns

Promise<SystemStateSummary>

系统运行状态,数据结构参考SystemStateSummary


userSetPassword

▸ userSetPassword(oldPass, newPass): Promise<void>

设置当前用户登录密码

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | oldPass | string | 原密码 | | newPass | string | 新密码 |

Returns

Promise<void>

Modules

Namespace: ccu

Table of contents

Enumerations

Type Aliases

Functions

Type Aliases

CdGroupForwardState

Ƭ CdGroupForwardState: Object

工作组离位转移设置状态

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | enabled | boolean | 是否启用前转 | | forward | string | 绑定话机前转电话号码,未定义表示未设置转移 | | users | { [userId: string]: { enabled: boolean ; name: string }; } | 组归属用户转移启用映射表 |


CdtDeviceConfig

Ƭ CdtDeviceConfig: Object

调度终端设备配置

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | leftPhones | { name: string ; number: string }[] | 左话机配置,支持多个列表 | | name | string | 设备名称 | | rightPhones | { name: string ; number: string }[] | 右话机配置,支持多个列表 | | webPhone? | { number: string ; password: string ; useAudio: boolean } | 网页软电话配置 | | webPhone.number | string | 电话号码 | | webPhone.password | string | 登录注册密码 | | webPhone.useAudio | boolean | 是否启用视频 |


CdtPhoneStates

Ƭ CdtPhoneStates: Object

调度话机复合状态数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | alertMuted | boolean | 是否组来话闭铃 | | burst? | boolean | 组寻线时是否群振铃(否则是轮呼) | | callState? | PhoneCallState | 通话状态 | | forwarding? | { [forwardType: string]: string; } | 来话呼叫转移设置 | | helds | { callID: string ; nameAndNumber: string }[] | 保持中通话列表 | | hotlineName | string | 来话热线名称 | | isCaller? | boolean | 是否主叫 | | onHold? | boolean | 是否被保持 | | peerHotKeys | { [key: string]: { callState: PhoneCallState ; number?: string ; onHold?: boolean }; } | 通话对方热键映射表 | | peers | { name: string ; number: string }[] | 通话对方号码及名称列表 | | state | CdtPhoneState | 调度状态 |


CommonFuncLayout

Ƭ CommonFuncLayout: FuncKeyLayout

常用功能布局


DirectKeyState

Ƭ DirectKeyState: Object

直拨类型热键监控状态

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | callState | PhoneCallState | 通话状态 | | isCaller? | boolean | 是否主叫 | | onHold? | boolean | 是否被保持 | | peerNames? | string[] | 对方名称号码 |


ExtPageLayout

Ƭ ExtPageLayout: Object

扩展页布局数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | pages | { Type: ExtPageType ; name: string }[] | 扩展页列表 | | visibleSize | number | TAB页可见扩展页数量 |


FuncKey

Ƭ FuncKey: Object

功能键配置项

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | funcID | number | 功能键ID | | name | string | 功能键名称 |


FuncKeyLayout

Ƭ FuncKeyLayout: Object

功能键页面布局

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | fontSize | number | 文字尺寸 | | keys | ((FuncKey | null)[] | null)[] | 功能键ID二维数组,按行x列布局,某行列未配置功能键时,取值null,整行未配置功能键时,行取值null |


FuncPageLayout

Ƭ FuncPageLayout: FuncKeyLayout

功能页布局


HotKeyConfig

Ƭ HotKeyConfig: Object

热键配置数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | color? | string | 字体颜色 | | fontBold | boolean | 是否粗体 | | fontItalic | boolean | 是否斜体 | | fontSize | number | 字体大小 | | fontUnderline | boolean | 是否加下划线 | | hasVideo | boolean | 是否视频终端 | | id? | number | 热键ID | | name | string | 热键名称 | | namesOfNumber? | (string | undefined)[] | 号码名称列表 | | numbers? | string[] | 号码列表 | | showNumber | boolean | 是否显示号码 | | subHotPage? | number | null | 热键子页ID | | subHotPageName? | string | 热键子页名称 | | type | HotkeyType | 热键类型 |


HotPageLayout

Ƭ HotPageLayout: Object

热键页布局数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | hotkeys | ((number | null)[] | null)[] | 热键ID二维数组,按行x列布局,某行列未配置热键时,取值null,整行未配置热键时,行取值null | | name | string | 热键名称 |


InstantMeetingParty

Ƭ InstantMeetingParty: Object

即时会议成员状态数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | listen | boolean | 是否允许收听 | | name | string | 名称 | | number | string | 电话号码 | | speak | boolean | 是否允许发言 | | state | PhoneCallState | 呼叫状态 |


InstantMeetingState

Ƭ InstantMeetingState: Object

即时会议状态数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | keepCalling | boolean | 成员掉线是否自动呼叫 | | parties | InstantMeetingParty[] | 会议成员列表 | | startTime | number | 会议开始时间戳 |


MainHotPageItem

Ƭ MainHotPageItem: Object

一级热键配置项

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | id | number | 热键页ID | | name | string | 热键页名称 |


MainHotPages

Ƭ MainHotPages: Object

一级热键页配置数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | pages | MainHotPageItem[] | 热键页列表 | | visibleSize | number | TAB页可见热键页数量 |


Message

Ƭ Message: Object

协议消息结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | Catalog | MsgCatalog | 消息分类 | | ErrorMsg? | string | 出错信息 | | InvokeID | number | 调用ID | | MsgType | MsgTypes | 消息具体类型 | | Param? | any | 调用参数 | | Ret? | any | 调用返回结果 |


QueuedCall

Ƭ QueuedCall: Object

工作组通话(来话/保持通话)队列项数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | chID? | number | 中继线路通道号 | | emergency? | boolean | 是否紧急呼叫 | | hasVideo | boolean | 是否视频呼叫 | | hkeys? | { [key: string]: number; } | 通话对应热键集合 | | hotlineName? | string | 热线名称 | | hotlineNumber | string | 热线号码 | | name | string | 名称 | | number | string | 电话号码 | | picked? | boolean | 是否被应答(或恢复) | | priority | number | 来话方优先级别 | | startTime? | number | 来话开始时间 |

Functions

answerCall

▸ answerCall(index, chID): Promise<void>

接听来话队列中的工作组来话

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | index | number | 队列中序号 | | chID | number | 中继电路通道号 |

Returns

Promise<void>


cdtPhoneAlt

▸ cdtPhoneAlt(number, callID): Promise<void>

调度话机通话切换(保持当前通话,恢复咨询通话时保持的通话)

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | number | string | 调度话机号码 | | callID | string | 恢复的通话ID号 |

Returns

Promise<void>


cdtPhoneHook

▸ cdtPhoneHook(number): Promise<void>

调度话机叉簧操作,根据状态接听来话或挂断当前通话

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | number | string | 调度话机号码 |

Returns

Promise<void>


cdtPhoneSelect

▸ cdtPhoneSelect(number): Promise<void>

调度话机键权选择

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | number | string | 调度话机号码 |

Returns

Promise<void>


dialDTMF

▸ dialDTMF(digits): Promise<void>

调度话机二次DTMF拨号

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | digits | string | 号码串 |

Returns

Promise<void>


dialNumber

▸ dialNumber(digits): Promise<void>

调度话机拨打号码

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | digits | string | 号码串 |

Returns

Promise<void>


funcBtnClick

▸ funcBtnClick(funcID): Promise<void>

点击功能键操作

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | funcID | CdtFunction | 功能键ID |

Returns

Promise<void>


getVersion

▸ getVersion(): Promise<string>

获取终端软件版本号

Returns

Promise<string>

版本号


hotKeyClick

▸ hotKeyClick(id): Promise<void>

点击热键操作

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | id | number | 热键ID |

Returns

Promise<void>


hotKeyMapClose

▸ hotKeyMapClose(): Promise<any>

关闭卸载图形化调度界面

Returns

Promise<any>


hotKeyMapOpen

▸ hotKeyMapOpen(): Promise<{ hkeys: MapHotKeyMarkSet ; zones: MapZoneMarkSet }>

打开加载图形化调度界面

Returns

Promise<{ hkeys: MapHotKeyMarkSet ; zones: MapZoneMarkSet }>


instantMeetKeepCalling

▸ instantMeetKeepCalling(keep): Promise<void>

设置会议成员掉线是否保持自动呼叫

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | keep | boolean | 是否保持自动呼叫 |

Returns

Promise<void>


instantMeetLoad

▸ instantMeetLoad(): Promise<InstantMeetingState>

加载即时会议状态

Returns

Promise<InstantMeetingState>

即时会议状态数据结构 InstantMeetingState


instantMeetPartyBye

▸ instantMeetPartyBye(number): Promise<void>

挂断会议成员

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | number | string | 会议成员电话号码 |

Returns

Promise<void>


instantMeetPartyInvite

▸ instantMeetPartyInvite(number): Promise<void>

呼叫邀请会议成员

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | number | string | 会议成员电话号码 |

Returns

Promise<void>


instantMeetPartyListen

▸ instantMeetPartyListen(number, enable): Promise<void>

允许/禁止会议成员收听

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | number | string | 会议成员电话号码 | | enable | boolean | 是否允许收听 |

Returns

Promise<void>


instantMeetPartyRemove

▸ instantMeetPartyRemove(number): Promise<void>

移除会议成员

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | number | string | 会议成员电路通道号 |

Returns

Promise<void>


instantMeetPartySpeak

▸ instantMeetPartySpeak(number, enable): Promise<void>

允许/禁止会议成员发言

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | number | string | 会议成员电话号码 | | enable | boolean | 是否允许发言 |

Returns

Promise<void>


loadActiveHotKeyPage

▸ loadActiveHotKeyPage(pageId?): Promise<{ pageHotKeysConfig: HotKeyPageConfig ; pageLayout: HotPageLayout }>

加载当前热键页

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | pageId? | number | 热键页ID,可以不填,表示加载登录用户的个性化热键页 |

Returns

Promise<{ pageHotKeysConfig: HotKeyPageConfig ; pageLayout: HotPageLayout }>

热键页布局及其热键配置


loadCdtDevice

▸ loadCdtDevice(): Promise<CdtDeviceConfig>

加载终端设备配置

Returns

Promise<CdtDeviceConfig>

终端设备配置,参考类型CdtDeviceConfig


loadCommonFunc

▸ loadCommonFunc(): Promise<FuncKeyLayout>

加载常用功能键布局

Returns

Promise<FuncKeyLayout>

加载常用功能键布局,参考类型CommonFuncLayout


loadExtPages

▸ loadExtPages(): Promise<ExtPageLayout>

加载扩展页列表

Returns

Promise<ExtPageLayout>

扩展页列表,参考类型ExtPageLayout


loadFuncPage

▸ loadFuncPage(): Promise<FuncKeyLayout>

加载功能页布局

Returns

Promise<FuncKeyLayout>

功能页布局,参考类型FuncKeyLayout


loadMainHotKeyPages

▸ loadMainHotKeyPages(): Promise<MainHotPages>

加载一级热键页列表

Returns

Promise<MainHotPages>

一级热键页列表,参考类型MainHotPages


resumeCall

▸ resumeCall(index, chID): Promise<void>

取回工作组保持队列中的通话

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | index | number | 队列中序号 | | chID | number | 中继电路通道号 |

Returns

Promise<void>


searchHotKeys

▸ searchHotKeys(offset, filter, rows): Promise<{ pageHotKeysConfig: HotKeyPageConfig ; pageLayout: HotPageLayout }>

条件搜索热键,按filter条件过滤,offset,rows返回单页结果

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | offset | number | 起始记录偏移量 | | filter | string | 过滤条件字符串 | | rows | number | 返回热键数 |

Returns

Promise<{ pageHotKeysConfig: HotKeyPageConfig ; pageLayout: HotPageLayout }>

按搜索结果临时创建的热键页


setCdGroupForwarding

▸ setCdGroupForwarding(cfg): Promise<void>

设置登录工作组离位转移

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | cfg | CdGroupForwardState | 工作组离位转移配置,参见CdGroupForwardState |

Returns

Promise<void>


setForwarding

▸ setForwarding(toNumber): Promise<void>

设置或清除无条件转移目标号码

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | toNumber | string | 转移目标号码,为空时取消无条件转移 |

Returns

Promise<void>


setHuntGroupForward

▸ setHuntGroupForward(forwardTo): Promise<void>

设置寻线组转移目标号码

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | forwardTo | string | 转移目标号码,参数为空则取消转移 |

Returns

Promise<void>


setOffHourForwarding

▸ setOffHourForwarding(forwardTo): Promise<void>

设置工作组值班号码

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | forwardTo | string | 值班号码 |

Returns

Promise<void>

Namespace: mtypes

Table of contents

Enumerations

Interfaces

Type Aliases

Variables

Type Aliases

AdmLoginLog

Ƭ AdmLoginLog: Object

后台管理用户登录日志记录数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | comment? | string | 详情备注 | | evtType | LoginEvtTypes | 登录事件类型 | | id? | number | 记录内部自动ID | | ipAddress | string | 终端IP地址 | | logTime | string | Date | 登录时间 | | userId | string | 用户账号 | | userName? | string | 用户名称 |


AdmOpLog

Ƭ AdmOpLog: Object

后台管理操作日志记录数据结构

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | comment? | string | 操作详情备注 | | id? | number | 记录内部自动ID | | logTime | Date | string | 记录时间 | | objId? | string | 操作对象ID,如果有的话 | | objName | string | 操作对象名称 | | objType | AdmObjTypes | 操作对象类型值 | | opType | AdmOpTypes | 操作类型值 | | userId | string | 用户账号 | | userName? | string | 用户名称 |


CDR

Ƭ CDR: Object

通话记录数据