@trii/types 2.10.705 → 2.10.707

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.
@@ -5,9 +5,11 @@ export type ConversationAssignmentReason = 'conversation_created' | 'routing_sel
5
5
  export type AssignmentOwnerReference = {
6
6
  type: 'none';
7
7
  id?: never;
8
+ displayName?: string;
8
9
  } | {
9
10
  type: 'user' | 'bot' | 'flow';
10
11
  id: ID;
12
+ displayName?: string;
11
13
  };
12
14
  export type AssignmentStateReference = {
13
15
  status: 'unrouted';
@@ -5,6 +5,7 @@ import { Channels } from "../Common/index";
5
5
  import { IContactAddress, IContactInfo } from "../Contacts/contacts";
6
6
  import { IEnding } from "./Ending";
7
7
  import { ChatType } from "../Chats/Chat";
8
+ import { TransferConversationCommand, TransferConversationResult } from "./Transfer";
8
9
  export interface IConversation {
9
10
  id: string;
10
11
  spaceId: string;
@@ -310,15 +311,18 @@ export type InboxVisibilityReason = 'manual_follow' | 'assigned_to_user' | 'shar
310
311
  export interface ConversationInboxSnapshot {
311
312
  interactionKind: 'private' | 'wall_post' | 'comment' | 'mention';
312
313
  channelType: string;
314
+ channelId?: ID;
313
315
  contact: {
314
316
  id?: ID;
315
317
  displayName: string;
316
318
  initials?: string;
319
+ isBusiness: boolean;
317
320
  };
318
321
  status: ConversationStatus;
319
322
  owner: ConversationOwner;
320
323
  queueId?: ID;
321
324
  preview?: string;
325
+ lastMessageId?: ID;
322
326
  unreadCount: number;
323
327
  priority: 'low' | 'normal' | 'high' | 'urgent';
324
328
  sla: {
@@ -495,4 +499,24 @@ export interface ConversationDetailResponse {
495
499
  export interface AddConversationParticipantRequest {
496
500
  userId: string;
497
501
  }
502
+ export interface TransferQueueOptionDto {
503
+ id: ID;
504
+ name: string;
505
+ color?: string;
506
+ canTransfer: boolean;
507
+ supportsCurrentChannel: boolean;
508
+ }
509
+ export interface TransferUserOptionDto {
510
+ id: ID;
511
+ displayName: string;
512
+ available: boolean;
513
+ capacityUsed: number;
514
+ capacityTotal: number;
515
+ }
516
+ export interface TransferOptionsResponse {
517
+ queues: TransferQueueOptionDto[];
518
+ usersByQueue?: Record<ID, TransferUserOptionDto[]>;
519
+ }
520
+ export type StartTransferRequest = Pick<TransferConversationCommand, 'target' | 'expectedConversationVersion' | 'reason'>;
521
+ export type StartTransferResponse = TransferConversationResult;
498
522
  export {};
@@ -1,4 +1,4 @@
1
- import { ITicketAuditedEntity } from './Common';
1
+ import { ITicketAuditedEntity } from "./Common";
2
2
  export declare enum TicketApprovalMode {
3
3
  SEQUENTIAL = "SEQUENTIAL",
4
4
  PARALLEL = "PARALLEL"
@@ -29,13 +29,13 @@ export interface ITicketApprovalQuorum {
29
29
  rejectOnAnyRejection?: boolean;
30
30
  }
31
31
  export type ITicketApprover = {
32
- type: 'USER';
32
+ type: "USER";
33
33
  userId: string;
34
34
  } | {
35
- type: 'GROUP';
35
+ type: "GROUP";
36
36
  groupId: string;
37
37
  } | {
38
- type: 'ROLE';
38
+ type: "ROLE";
39
39
  roleId: string;
40
40
  };
41
41
  export interface ITicketApprovalStepDefinition {
@@ -56,6 +56,22 @@ export interface ITicketApprovalProcessDefinition extends ITicketAuditedEntity {
56
56
  steps: ITicketApprovalStepDefinition[];
57
57
  enabled: boolean;
58
58
  }
59
+ export interface ICreateTicketApprovalProcessDefinitionDto {
60
+ name: string;
61
+ description?: string;
62
+ categoryIds?: string[];
63
+ mode: TicketApprovalMode;
64
+ steps: ITicketApprovalStepDefinition[];
65
+ enabled: boolean;
66
+ }
67
+ export interface IUpdateTicketApprovalProcessDefinitionDto {
68
+ name?: string;
69
+ description?: string | null;
70
+ categoryIds?: string[] | null;
71
+ mode?: TicketApprovalMode;
72
+ steps?: ITicketApprovalStepDefinition[];
73
+ enabled?: boolean;
74
+ }
59
75
  export interface ITicketApprovalStep extends ITicketApprovalStepDefinition {
60
76
  status: TicketApprovalStatus;
61
77
  startedAt?: Date;
package/dist/index.d.ts CHANGED
@@ -1,23 +1,23 @@
1
- export * as Accounts from './Accounts/index';
2
- export * as AuditLogs from './AuditLogs/index';
3
- export * as Common from './Common/index';
4
- export * as Contacts from './Contacts/index';
5
- export * as Calendar from './Calendar/index';
6
- export * as Conversations from './Conversations/index';
7
- export * as Calls from './Calls/index';
8
- export * as Security from './Security/index';
9
- export * as Reports from './Reports/index';
10
- export * as Spaces from './Spaces/index';
11
- export * as Tickets from './Tickets/index';
12
- export * as Sales from './Sales/index';
13
- export * as Collections from './Collections/index';
14
- export * as Users from './Users/index';
15
- export * as Presence from './Presence/index';
16
- export * as ApiResponses from './ApiResponses/index';
17
- export * as EventsQueue from './Common/EventsQueue/index';
18
- export * as APIKeys from './PublicAPI/apiKey';
19
- export * as AI from './AI/index';
20
- export * as Shop from './Shop/index';
21
- export * as APIResponses from './ApiResponses/index';
22
- export * as Forms from './Forms/index';
23
- export * as Automations from './Automations/index';
1
+ export * as Accounts from './Accounts/index';
2
+ export * as AuditLogs from './AuditLogs/index';
3
+ export * as Common from './Common/index';
4
+ export * as Contacts from './Contacts/index';
5
+ export * as Calendar from './Calendar/index';
6
+ export * as Conversations from './Conversations/index';
7
+ export * as Calls from './Calls/index';
8
+ export * as Security from './Security/index';
9
+ export * as Reports from './Reports/index';
10
+ export * as Spaces from './Spaces/index';
11
+ export * as Tickets from './Tickets/index';
12
+ export * as Sales from './Sales/index';
13
+ export * as Collections from './Collections/index';
14
+ export * as Users from './Users/index';
15
+ export * as Presence from './Presence/index';
16
+ export * as ApiResponses from './ApiResponses/index';
17
+ export * as EventsQueue from './Common/EventsQueue/index';
18
+ export * as APIKeys from './PublicAPI/apiKey';
19
+ export * as AI from './AI/index';
20
+ export * as Shop from './Shop/index';
21
+ export * as APIResponses from './ApiResponses/index';
22
+ export * as Forms from './Forms/index';
23
+ export * as Automations from './Automations/index';
package/dist/index.js CHANGED
@@ -1,59 +1,59 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Automations = exports.Forms = 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
- exports.Accounts = __importStar(require("./Accounts/index"));
38
- exports.AuditLogs = __importStar(require("./AuditLogs/index"));
39
- exports.Common = __importStar(require("./Common/index"));
40
- exports.Contacts = __importStar(require("./Contacts/index"));
41
- exports.Calendar = __importStar(require("./Calendar/index"));
42
- exports.Conversations = __importStar(require("./Conversations/index"));
43
- exports.Calls = __importStar(require("./Calls/index"));
44
- exports.Security = __importStar(require("./Security/index"));
45
- exports.Reports = __importStar(require("./Reports/index"));
46
- exports.Spaces = __importStar(require("./Spaces/index"));
47
- exports.Tickets = __importStar(require("./Tickets/index"));
48
- exports.Sales = __importStar(require("./Sales/index"));
49
- exports.Collections = __importStar(require("./Collections/index"));
50
- exports.Users = __importStar(require("./Users/index"));
51
- exports.Presence = __importStar(require("./Presence/index"));
52
- exports.ApiResponses = __importStar(require("./ApiResponses/index"));
53
- exports.EventsQueue = __importStar(require("./Common/EventsQueue/index"));
54
- exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
55
- exports.AI = __importStar(require("./AI/index"));
56
- exports.Shop = __importStar(require("./Shop/index"));
57
- exports.APIResponses = __importStar(require("./ApiResponses/index"));
58
- exports.Forms = __importStar(require("./Forms/index"));
59
- exports.Automations = __importStar(require("./Automations/index"));
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Automations = exports.Forms = 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
+ exports.Accounts = __importStar(require("./Accounts/index"));
38
+ exports.AuditLogs = __importStar(require("./AuditLogs/index"));
39
+ exports.Common = __importStar(require("./Common/index"));
40
+ exports.Contacts = __importStar(require("./Contacts/index"));
41
+ exports.Calendar = __importStar(require("./Calendar/index"));
42
+ exports.Conversations = __importStar(require("./Conversations/index"));
43
+ exports.Calls = __importStar(require("./Calls/index"));
44
+ exports.Security = __importStar(require("./Security/index"));
45
+ exports.Reports = __importStar(require("./Reports/index"));
46
+ exports.Spaces = __importStar(require("./Spaces/index"));
47
+ exports.Tickets = __importStar(require("./Tickets/index"));
48
+ exports.Sales = __importStar(require("./Sales/index"));
49
+ exports.Collections = __importStar(require("./Collections/index"));
50
+ exports.Users = __importStar(require("./Users/index"));
51
+ exports.Presence = __importStar(require("./Presence/index"));
52
+ exports.ApiResponses = __importStar(require("./ApiResponses/index"));
53
+ exports.EventsQueue = __importStar(require("./Common/EventsQueue/index"));
54
+ exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
55
+ exports.AI = __importStar(require("./AI/index"));
56
+ exports.Shop = __importStar(require("./Shop/index"));
57
+ exports.APIResponses = __importStar(require("./ApiResponses/index"));
58
+ exports.Forms = __importStar(require("./Forms/index"));
59
+ exports.Automations = __importStar(require("./Automations/index"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.705",
3
+ "version": "2.10.707",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",