@trii/types 2.10.508 → 2.10.510
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Calls/Audio.d.ts +17 -0
- package/dist/Calls/Audio.js +8 -0
- package/dist/Calls/Call.d.ts +2 -0
- package/dist/Calls/Extension.d.ts +20 -0
- package/dist/Calls/Extension.js +2 -0
- package/dist/Calls/Queue.d.ts +52 -0
- package/dist/Calls/Queue.js +12 -0
- package/dist/Calls/RingGroup.d.ts +2 -0
- package/dist/Calls/Trunk.d.ts +2 -0
- package/dist/Calls/index.d.ts +1 -0
- package/dist/Calls/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IAudio {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
type: audioType;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
url: string;
|
|
8
|
+
fileName: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
duration: number;
|
|
11
|
+
createdAt?: Date | null;
|
|
12
|
+
createdBy?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare enum audioType {
|
|
15
|
+
PROMPT = 0,
|
|
16
|
+
MUSIC = 1
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.audioType = void 0;
|
|
4
|
+
var audioType;
|
|
5
|
+
(function (audioType) {
|
|
6
|
+
audioType[audioType["PROMPT"] = 0] = "PROMPT";
|
|
7
|
+
audioType[audioType["MUSIC"] = 1] = "MUSIC";
|
|
8
|
+
})(audioType || (exports.audioType = audioType = {}));
|
package/dist/Calls/Call.d.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface IExtension {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
extension: string;
|
|
5
|
+
callerIdNumber: string;
|
|
6
|
+
authID: string;
|
|
7
|
+
sipPassword: string;
|
|
8
|
+
voicemailEnabled: boolean;
|
|
9
|
+
voicemailPassword: string;
|
|
10
|
+
keepAlive: boolean;
|
|
11
|
+
keepAliveFrequency: number;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
name: string;
|
|
14
|
+
email: string;
|
|
15
|
+
concurrentRegistrations: number;
|
|
16
|
+
dtmfMode: string;
|
|
17
|
+
codecs: string;
|
|
18
|
+
createdAt?: Date | null;
|
|
19
|
+
createdBy?: string | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ExtensionType, IRingGroupMember } from "./RingGroup";
|
|
2
|
+
export interface IQueue {
|
|
3
|
+
id: string;
|
|
4
|
+
spaceId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
extension: string;
|
|
7
|
+
ringStrategy: RingStrategyQueue;
|
|
8
|
+
musicOnHold?: string;
|
|
9
|
+
maxQueueLength?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Agent Rest Time (s)
|
|
12
|
+
* Configure the amount of time in seconds after ending a call where the agent will not receive additional calls.
|
|
13
|
+
* Once this time has passed, the agent will be able to receive calls again.
|
|
14
|
+
* If set to 0, agents can receive additional calls immediately after ending a call.
|
|
15
|
+
*/
|
|
16
|
+
agentRestTime?: number;
|
|
17
|
+
/**Retry Time (s)
|
|
18
|
+
* Configure the number of seconds to wait before ringing the next agent. The minimum is 1.
|
|
19
|
+
*/
|
|
20
|
+
retryTime?: number;
|
|
21
|
+
/**Agent Ring Time (s)
|
|
22
|
+
* Configure the number of seconds to ring an agent. The minimum is 5.
|
|
23
|
+
*/
|
|
24
|
+
agentRingTime?: number;
|
|
25
|
+
autoRecord: boolean;
|
|
26
|
+
/**Welcome Prompt
|
|
27
|
+
* Configure a custom welcome prompt for the queue.
|
|
28
|
+
*/
|
|
29
|
+
customPrompt?: string;
|
|
30
|
+
skipBusyAgent: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* extension number for static users
|
|
33
|
+
*/
|
|
34
|
+
staticMembers: IRingGroupMember[];
|
|
35
|
+
/**
|
|
36
|
+
* users Id who are allowed to login in this queue to answer calls
|
|
37
|
+
*/
|
|
38
|
+
allowedAgents?: string[];
|
|
39
|
+
TimeOutDestinationEnabled: boolean;
|
|
40
|
+
TimeOutDestinationType: ExtensionType;
|
|
41
|
+
TimeOutDestinationValue?: string;
|
|
42
|
+
createdAt?: Date | null;
|
|
43
|
+
createdBy?: string | null;
|
|
44
|
+
}
|
|
45
|
+
export declare enum RingStrategyQueue {
|
|
46
|
+
RING_ALL = 0,
|
|
47
|
+
LINEAR = 1,
|
|
48
|
+
LAST_RECENT = 2,
|
|
49
|
+
FEWEST_CALLS = 3,
|
|
50
|
+
RANDOM = 4,
|
|
51
|
+
ROUND_ROBIN = 5
|
|
52
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RingStrategyQueue = void 0;
|
|
4
|
+
var RingStrategyQueue;
|
|
5
|
+
(function (RingStrategyQueue) {
|
|
6
|
+
RingStrategyQueue[RingStrategyQueue["RING_ALL"] = 0] = "RING_ALL";
|
|
7
|
+
RingStrategyQueue[RingStrategyQueue["LINEAR"] = 1] = "LINEAR";
|
|
8
|
+
RingStrategyQueue[RingStrategyQueue["LAST_RECENT"] = 2] = "LAST_RECENT";
|
|
9
|
+
RingStrategyQueue[RingStrategyQueue["FEWEST_CALLS"] = 3] = "FEWEST_CALLS";
|
|
10
|
+
RingStrategyQueue[RingStrategyQueue["RANDOM"] = 4] = "RANDOM";
|
|
11
|
+
RingStrategyQueue[RingStrategyQueue["ROUND_ROBIN"] = 5] = "ROUND_ROBIN";
|
|
12
|
+
})(RingStrategyQueue || (exports.RingStrategyQueue = RingStrategyQueue = {}));
|
|
@@ -15,6 +15,8 @@ export interface IRingGroup {
|
|
|
15
15
|
TimeOutDestinationEnabled: boolean;
|
|
16
16
|
TimeOutDestinationType: ExtensionType;
|
|
17
17
|
TimeOutDestinationValue?: string;
|
|
18
|
+
createdAt?: Date | null;
|
|
19
|
+
createdBy?: string | null;
|
|
18
20
|
}
|
|
19
21
|
export declare enum RingStrategyType {
|
|
20
22
|
SIMULTANEOUS = 0,
|
package/dist/Calls/Trunk.d.ts
CHANGED
package/dist/Calls/index.d.ts
CHANGED
package/dist/Calls/index.js
CHANGED