@trii/types 2.10.669 → 2.10.671
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/Conversations/Groups/Group.d.ts +1 -0
- package/dist/Presence/QueueRoutingState.d.ts +16 -0
- package/dist/Presence/QueueRoutingState.js +9 -0
- package/dist/Presence/index.d.ts +1 -1
- package/dist/Presence/index.js +1 -1
- package/dist/Users/UserTrii.d.ts +10 -0
- package/dist/Users/UserTrii.js +8 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface QueueRoutingState {
|
|
2
|
+
spaceId: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
queueId: string;
|
|
5
|
+
isEligible: boolean;
|
|
6
|
+
presenceStatus: RoutingPresenceStatus;
|
|
7
|
+
activeJobCount: number;
|
|
8
|
+
maxCapacity?: number;
|
|
9
|
+
notRespondingDetectedAt?: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}
|
|
12
|
+
export declare enum RoutingPresenceStatus {
|
|
13
|
+
IDLE = 0,
|
|
14
|
+
INTERACTING = 1,
|
|
15
|
+
BUSY = 2
|
|
16
|
+
}
|
|
@@ -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 = {}));
|
package/dist/Presence/index.d.ts
CHANGED
package/dist/Presence/index.js
CHANGED
|
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AgentPause"), exports);
|
|
18
18
|
__exportStar(require("./QueueParticipation"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./QueueRoutingState"), exports);
|
package/dist/Users/UserTrii.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import UserType from './UserType';
|
|
2
2
|
import { UserProfile, UserRole } from './UserProfile';
|
|
3
|
+
import { PauseReason } from '../Presence/AgentPause';
|
|
3
4
|
export interface UserInfo {
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
@@ -62,6 +63,9 @@ export interface UserTrii {
|
|
|
62
63
|
userType: UserType;
|
|
63
64
|
verifiedAccount: boolean;
|
|
64
65
|
status: UserStatus;
|
|
66
|
+
availability: AvailabilityStatus;
|
|
67
|
+
currentPauseReason?: PauseReason;
|
|
68
|
+
currentPauseSince?: Date;
|
|
65
69
|
firstname: string;
|
|
66
70
|
lastname: string;
|
|
67
71
|
display_name: string;
|
|
@@ -90,6 +94,12 @@ export interface UserTrii {
|
|
|
90
94
|
socialLinkedinID: string;
|
|
91
95
|
socialTwitterID: string;
|
|
92
96
|
}
|
|
97
|
+
export declare enum AvailabilityStatus {
|
|
98
|
+
AVAILABLE = 0,
|
|
99
|
+
AWAY = 1,
|
|
100
|
+
DO_NOT_DISTURB = 2,
|
|
101
|
+
OFFLINE = 3
|
|
102
|
+
}
|
|
93
103
|
export interface NotificationConfig {
|
|
94
104
|
volume: NotificationVolumeLevel;
|
|
95
105
|
sound: NotificationSound;
|
package/dist/Users/UserTrii.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserStatus = void 0;
|
|
3
|
+
exports.AvailabilityStatus = exports.UserStatus = void 0;
|
|
4
4
|
var UserStatus;
|
|
5
5
|
(function (UserStatus) {
|
|
6
6
|
UserStatus[UserStatus["OFFLINE"] = 0] = "OFFLINE";
|
|
@@ -8,3 +8,10 @@ var UserStatus;
|
|
|
8
8
|
UserStatus[UserStatus["AWAY"] = 2] = "AWAY";
|
|
9
9
|
UserStatus[UserStatus["BUSY"] = 3] = "BUSY";
|
|
10
10
|
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
11
|
+
var AvailabilityStatus;
|
|
12
|
+
(function (AvailabilityStatus) {
|
|
13
|
+
AvailabilityStatus[AvailabilityStatus["AVAILABLE"] = 0] = "AVAILABLE";
|
|
14
|
+
AvailabilityStatus[AvailabilityStatus["AWAY"] = 1] = "AWAY";
|
|
15
|
+
AvailabilityStatus[AvailabilityStatus["DO_NOT_DISTURB"] = 2] = "DO_NOT_DISTURB";
|
|
16
|
+
AvailabilityStatus[AvailabilityStatus["OFFLINE"] = 3] = "OFFLINE";
|
|
17
|
+
})(AvailabilityStatus || (exports.AvailabilityStatus = AvailabilityStatus = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * as Tickets from './Tickets/index';
|
|
|
12
12
|
export * as Sales from './Sales/index';
|
|
13
13
|
export * as Collections from './Collections/index';
|
|
14
14
|
export * as Users from './Users/index';
|
|
15
|
+
export * as Presence from './Presence/index';
|
|
15
16
|
export * as ApiResponses from './ApiResponses/index';
|
|
16
17
|
export * as EventsQueue from './Common/EventsQueue/index';
|
|
17
18
|
export * as APIKeys from './PublicAPI/apiKey';
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
|
|
36
|
+
exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Presence = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
|
|
37
37
|
exports.Accounts = __importStar(require("./Accounts/index"));
|
|
38
38
|
exports.AuditLogs = __importStar(require("./AuditLogs/index"));
|
|
39
39
|
exports.Common = __importStar(require("./Common/index"));
|
|
@@ -48,6 +48,7 @@ exports.Tickets = __importStar(require("./Tickets/index"));
|
|
|
48
48
|
exports.Sales = __importStar(require("./Sales/index"));
|
|
49
49
|
exports.Collections = __importStar(require("./Collections/index"));
|
|
50
50
|
exports.Users = __importStar(require("./Users/index"));
|
|
51
|
+
exports.Presence = __importStar(require("./Presence/index"));
|
|
51
52
|
exports.ApiResponses = __importStar(require("./ApiResponses/index"));
|
|
52
53
|
exports.EventsQueue = __importStar(require("./Common/EventsQueue/index"));
|
|
53
54
|
exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
|