Skip to content

Commit

Permalink
v8.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste Jamin committed Aug 24, 2023
1 parent c13ed5d commit 1cd330b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "crisp-api",
"description": "Crisp API wrapper for Node - official, maintained by Crisp",
"version": "8.0.1",
"version": "8.0.2",
"homepage": "https://github.com/crisp-im/node-crisp-api",
"license": "MIT",
"author": {
Expand Down
26 changes: 23 additions & 3 deletions types/crisp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,33 @@ declare class Crisp {
_readErrorResponseReason: (method: string, statusCode: number, response: object) => string;
_verifySignature: (secret: string, body: object, timestamp: string, signature: string) => boolean;
}
declare namespace Crisp {
export { RTM_MODES, AVAILABLE_RTM_MODES, DEFAULT_REQUEST_TIMEOUT, DEFAULT_SOCKET_TIMEOUT, DEFAULT_SOCKET_RECONNECT_DELAY, DEFAULT_SOCKET_RECONNECT_DELAY_MAX, DEFAULT_SOCKET_RECONNECT_FACTOR, DEFAULT_BROKER_SCHEDULE, DEFAULT_EVENT_REBIND_INTERVAL_MIN, DEFAULT_USERAGENT_PREFIX, DEFAULT_REST_HOST, DEFAULT_REST_BASE_PATH, WebSockets as DEFAULT_RTM_MODE, DEFAULT_RTM_EVENTS, Crisp };
}

declare namespace RTM_MODES {
let WebSockets: string;
let WebHooks: string;
}

declare namespace Crisp {
import DEFAULT_RTM_MODE = RTM_MODES.WebSockets;

export {
RTM_MODES,
AVAILABLE_RTM_MODES,
DEFAULT_REQUEST_TIMEOUT,
DEFAULT_SOCKET_TIMEOUT,
DEFAULT_SOCKET_RECONNECT_DELAY,
DEFAULT_SOCKET_RECONNECT_DELAY_MAX,
DEFAULT_SOCKET_RECONNECT_FACTOR,
DEFAULT_BROKER_SCHEDULE,
DEFAULT_EVENT_REBIND_INTERVAL_MIN,
DEFAULT_USERAGENT_PREFIX,
DEFAULT_REST_HOST,
DEFAULT_REST_BASE_PATH,
DEFAULT_RTM_MODE,
DEFAULT_RTM_EVENTS, Crisp
};
}

declare var AVAILABLE_RTM_MODES: string[];
declare var DEFAULT_REQUEST_TIMEOUT: number;
declare var DEFAULT_SOCKET_TIMEOUT: number;
Expand Down

0 comments on commit 1cd330b

Please sign in to comment.