@trii/types 2.10.668 → 2.10.669
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/Presence/AgentPause.d.ts +24 -0
- package/dist/Presence/AgentPause.js +19 -0
- package/dist/Presence/ChannelRoutingState.d.ts +17 -0
- package/dist/Presence/ChannelRoutingState.js +9 -0
- package/dist/Presence/QueueParticipation.d.ts +9 -0
- package/dist/Presence/QueueParticipation.js +2 -0
- package/dist/Presence/index.d.ts +3 -0
- package/dist/Presence/index.js +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface AgentPause {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
reason: PauseReason;
|
|
6
|
+
startedAt: Date;
|
|
7
|
+
startedByUserId?: string;
|
|
8
|
+
startedBy: PauseActorType;
|
|
9
|
+
endedAt?: Date;
|
|
10
|
+
}
|
|
11
|
+
export declare enum PauseReason {
|
|
12
|
+
LUNCH = 0,
|
|
13
|
+
RESTROOM = 1,
|
|
14
|
+
BREAK = 2,
|
|
15
|
+
MEETING = 3,
|
|
16
|
+
TRAINING = 4,
|
|
17
|
+
ADMINISTRATIVE_WORK = 5,
|
|
18
|
+
OTHER = 6
|
|
19
|
+
}
|
|
20
|
+
export declare enum PauseActorType {
|
|
21
|
+
AGENT = 0,
|
|
22
|
+
SUPERVISOR = 1,
|
|
23
|
+
SYSTEM = 2
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PauseActorType = exports.PauseReason = void 0;
|
|
4
|
+
var PauseReason;
|
|
5
|
+
(function (PauseReason) {
|
|
6
|
+
PauseReason[PauseReason["LUNCH"] = 0] = "LUNCH";
|
|
7
|
+
PauseReason[PauseReason["RESTROOM"] = 1] = "RESTROOM";
|
|
8
|
+
PauseReason[PauseReason["BREAK"] = 2] = "BREAK";
|
|
9
|
+
PauseReason[PauseReason["MEETING"] = 3] = "MEETING";
|
|
10
|
+
PauseReason[PauseReason["TRAINING"] = 4] = "TRAINING";
|
|
11
|
+
PauseReason[PauseReason["ADMINISTRATIVE_WORK"] = 5] = "ADMINISTRATIVE_WORK";
|
|
12
|
+
PauseReason[PauseReason["OTHER"] = 6] = "OTHER";
|
|
13
|
+
})(PauseReason || (exports.PauseReason = PauseReason = {}));
|
|
14
|
+
var PauseActorType;
|
|
15
|
+
(function (PauseActorType) {
|
|
16
|
+
PauseActorType[PauseActorType["AGENT"] = 0] = "AGENT";
|
|
17
|
+
PauseActorType[PauseActorType["SUPERVISOR"] = 1] = "SUPERVISOR";
|
|
18
|
+
PauseActorType[PauseActorType["SYSTEM"] = 2] = "SYSTEM";
|
|
19
|
+
})(PauseActorType || (exports.PauseActorType = PauseActorType = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChannelType } from "../Common/Channels/ChannelType";
|
|
2
|
+
export interface ChannelRoutingState {
|
|
3
|
+
spaceId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
channelType: ChannelType;
|
|
6
|
+
isEligible: boolean;
|
|
7
|
+
presenceStatus: RoutingPresenceStatus;
|
|
8
|
+
activeJobCount: number;
|
|
9
|
+
maxCapacity: number;
|
|
10
|
+
notRespondingDetectedAt?: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
export declare enum RoutingPresenceStatus {
|
|
14
|
+
IDLE = 0,
|
|
15
|
+
INTERACTING = 1,
|
|
16
|
+
BUSY = 2
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoutingPresenceStatus = void 0;
|
|
4
|
+
var RoutingPresenceStatus;
|
|
5
|
+
(function (RoutingPresenceStatus) {
|
|
6
|
+
RoutingPresenceStatus[RoutingPresenceStatus["IDLE"] = 0] = "IDLE";
|
|
7
|
+
RoutingPresenceStatus[RoutingPresenceStatus["INTERACTING"] = 1] = "INTERACTING";
|
|
8
|
+
RoutingPresenceStatus[RoutingPresenceStatus["BUSY"] = 2] = "BUSY";
|
|
9
|
+
})(RoutingPresenceStatus || (exports.RoutingPresenceStatus = RoutingPresenceStatus = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AgentPause"), exports);
|
|
18
|
+
__exportStar(require("./QueueParticipation"), exports);
|
|
19
|
+
__exportStar(require("./ChannelRoutingState"), exports);
|