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 🙏

© 2024 – Pkg Stats / Ryan Hefner

hxtbcapi

v1.0.2

Published

unify tbc system API

Downloads

2

Readme

Enums

Enumeration: BroadcastMemberResult

广播成员通知结果

Table of contents

Enumeration Members

Enumeration Members

CONNECTED

CONNECTED

话机已接通


DONE

DONE

通知完成


TRY

TRY

尝试通知,未接通

Interfaces

Interface: BroadcastMember

广播任务通知成员

Table of contents

Properties

Properties

confirmDone

confirmDone: boolean

成员是否可以按键确认收到按键通知


confirmToPlay

confirmToPlay: boolean

成员收听前是否要按键确认


memberName

memberName: string

成员名称


memberNumber

memberNumber: string

成员电话号码


repeatTimes

repeatTimes: number

最大重复播放次数

Interface: BroadcastMemberState

广播成员通知状态

Table of contents

Properties

Properties

confirmDone

confirmDone: boolean

成员是否可以按键确认收到按键通知


confirmToPlay

confirmToPlay: boolean

成员收听前是否要按键确认


idTask

idTask: number

任务ID


memberAnsweredTime

memberAnsweredTime: string

接通时间


memberBroadcastTime

memberBroadcastTime: string

通知语音播放时间


memberConfirmedTime

memberConfirmedTime: string

确认收到通知时间


memberName

memberName: string

成员名称


memberNumber

memberNumber: string

成员号码


repeatTimes

repeatTimes: number

最大重复播放次数


result

result: BroadcastMemberResult

通知结果


retryCount

retryCount: number

重复尝试呼叫计次

Interface: BroadcastTask

广播任务,字段对应API协议文档

Table of contents

Properties

Properties

broadcastContent

broadcastContent: string

播放文字内容


expiredMinutes

expiredMinutes: number

任务失效超时分钟数


maxTry

maxTry: number

最大尝试呼叫次数


members

members: BroadcastMember[]

通知成员列表


tag

tag: string

任务标记

Interface: BroadcastTaskState

广播通知任务状态

Table of contents

Properties

Properties

broadcastContent

broadcastContent: string

广播内容


finish

finish: boolean

任务是否完成


members

members: BroadcastMemberState

成员通知状态


voiceRelativePath

voiceRelativePath: string

合成语音文件相对路径

Interface: Session

会话参数

Table of contents

Properties

Properties

auth_id

auth_id: string

访问认证码


bizCode

bizCode: string

密码


host

host: string

主机地址


lastRequestIndex

lastRequestIndex: number

请求顺序号


port

port: number

服务器端口


username

username: string

用户名

uftbcapi

Table of contents

Enumerations

Interfaces

Functions

Functions

keepalive

keepalive(): Promise<void>

会话心跳保持

Returns

Promise<void>


login

login(host, port, username, bizCode, keepaliveInMinutes): Promise<void>

登录服务器

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | host | string | 服务器地址 | | port | number | 服务器端口 | | username | string | 用户账号 | | bizCode | string | 登录密码 | | keepaliveInMinutes | number | 会话保持心跳周期(分钟) |

Returns

Promise<void>


logout

logout(): Promise<void>

登出服务器

Returns

Promise<void>


queryBroadcast

queryBroadcast(broadcastId): Promise<BroadcastTaskState>

查询广播任务状态

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | broadcastId | number | 任务ID |

Returns

Promise<BroadcastTaskState>

任务状态


startBroadcast

startBroadcast(task): Promise<number>

启动广播任务

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | task | BroadcastTask | 任务数据对象 |

Returns

Promise<number>

任务ID,数值类型