@trii/types 2.10.668 → 2.10.670

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.
@@ -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,9 @@
1
+ export interface QueueParticipation {
2
+ spaceId: string;
3
+ userId: string;
4
+ queueId: string;
5
+ authorized: boolean;
6
+ active: boolean;
7
+ updatedAt: Date;
8
+ updatedByUserId?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './AgentPause';
2
+ export * from './QueueParticipation';
3
+ export * from './ChannelRoutingState';
@@ -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);
@@ -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;
@@ -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"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.668",
3
+ "version": "2.10.670",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",