@trii/types 2.10.749 → 2.10.751
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.
|
@@ -19,6 +19,12 @@ export declare enum EmailConfigFromNameType {
|
|
|
19
19
|
USER_NAME = 2,
|
|
20
20
|
CUSTOM = 3
|
|
21
21
|
}
|
|
22
|
+
export declare enum EmailConfigInboundConnectionType {
|
|
23
|
+
NULL = 0,
|
|
24
|
+
IMAP = 1,
|
|
25
|
+
GOOGLE = 2,
|
|
26
|
+
MICROSOFT = 3
|
|
27
|
+
}
|
|
22
28
|
export declare class EmailConfig {
|
|
23
29
|
useInCampaigns?: boolean;
|
|
24
30
|
token?: string;
|
|
@@ -44,8 +50,27 @@ export declare class EmailConfig {
|
|
|
44
50
|
outboundTrii?: EmailDomain;
|
|
45
51
|
outboundGoogleStatus: EmailConfigOutboundStatus;
|
|
46
52
|
outboundGoogleAccount: GoogleAccountInfo;
|
|
53
|
+
inboundConnectionType: EmailConfigInboundConnectionType;
|
|
54
|
+
inboundSyncStatus: EmailConfigOutboundStatus;
|
|
55
|
+
inboundImapServer?: string;
|
|
56
|
+
inboundImapPort: number | 993;
|
|
57
|
+
inboundImapSecurityType: EmailConfigOutboundSecurityType;
|
|
58
|
+
inboundImapUser?: string;
|
|
59
|
+
inboundImapPassword?: string;
|
|
60
|
+
inboundMicrosoftAccount?: MicrosoftAccountInfo;
|
|
61
|
+
inboundMicrosoftAccessData?: MicrosoftAccountDataAccess;
|
|
47
62
|
signature: string;
|
|
48
63
|
}
|
|
64
|
+
export declare class MicrosoftAccountInfo {
|
|
65
|
+
name: string;
|
|
66
|
+
email: string;
|
|
67
|
+
}
|
|
68
|
+
export declare class MicrosoftAccountDataAccess {
|
|
69
|
+
access_token?: string;
|
|
70
|
+
access_token_expiration: Date;
|
|
71
|
+
refresh_token?: string;
|
|
72
|
+
scope?: string;
|
|
73
|
+
}
|
|
49
74
|
export declare class EmailDomain {
|
|
50
75
|
id: string;
|
|
51
76
|
spaceId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DNSRecord = exports.EmailDomain = exports.EmailConfig = exports.EmailConfigFromNameType = exports.EmailConfigOutboundStatus = exports.EmailConfigOutboundSecurityType = exports.EmailConfigOutboundConnectionType = void 0;
|
|
3
|
+
exports.DNSRecord = exports.EmailDomain = exports.MicrosoftAccountDataAccess = exports.MicrosoftAccountInfo = exports.EmailConfig = exports.EmailConfigInboundConnectionType = exports.EmailConfigFromNameType = exports.EmailConfigOutboundStatus = exports.EmailConfigOutboundSecurityType = exports.EmailConfigOutboundConnectionType = void 0;
|
|
4
4
|
var EmailConfigOutboundConnectionType;
|
|
5
5
|
(function (EmailConfigOutboundConnectionType) {
|
|
6
6
|
EmailConfigOutboundConnectionType[EmailConfigOutboundConnectionType["NULL"] = 0] = "NULL";
|
|
@@ -25,9 +25,22 @@ var EmailConfigFromNameType;
|
|
|
25
25
|
EmailConfigFromNameType[EmailConfigFromNameType["USER_NAME"] = 2] = "USER_NAME";
|
|
26
26
|
EmailConfigFromNameType[EmailConfigFromNameType["CUSTOM"] = 3] = "CUSTOM";
|
|
27
27
|
})(EmailConfigFromNameType || (exports.EmailConfigFromNameType = EmailConfigFromNameType = {}));
|
|
28
|
+
var EmailConfigInboundConnectionType;
|
|
29
|
+
(function (EmailConfigInboundConnectionType) {
|
|
30
|
+
EmailConfigInboundConnectionType[EmailConfigInboundConnectionType["NULL"] = 0] = "NULL";
|
|
31
|
+
EmailConfigInboundConnectionType[EmailConfigInboundConnectionType["IMAP"] = 1] = "IMAP";
|
|
32
|
+
EmailConfigInboundConnectionType[EmailConfigInboundConnectionType["GOOGLE"] = 2] = "GOOGLE";
|
|
33
|
+
EmailConfigInboundConnectionType[EmailConfigInboundConnectionType["MICROSOFT"] = 3] = "MICROSOFT";
|
|
34
|
+
})(EmailConfigInboundConnectionType || (exports.EmailConfigInboundConnectionType = EmailConfigInboundConnectionType = {}));
|
|
28
35
|
class EmailConfig {
|
|
29
36
|
}
|
|
30
37
|
exports.EmailConfig = EmailConfig;
|
|
38
|
+
class MicrosoftAccountInfo {
|
|
39
|
+
}
|
|
40
|
+
exports.MicrosoftAccountInfo = MicrosoftAccountInfo;
|
|
41
|
+
class MicrosoftAccountDataAccess {
|
|
42
|
+
}
|
|
43
|
+
exports.MicrosoftAccountDataAccess = MicrosoftAccountDataAccess;
|
|
31
44
|
class EmailDomain {
|
|
32
45
|
}
|
|
33
46
|
exports.EmailDomain = EmailDomain;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessageVisibility } from "../Common/Messages/Message";
|
|
2
|
-
import { ITicketAttachment, ITicketAuditedEntity, ITicketProperty, TicketPriority, TicketPropertyValue } from "./Common";
|
|
2
|
+
import { ITicketAttachment, ITicketAuditedEntity, ITicketProperty, TicketPriority, TicketPropertyValue, TicketStage } from "./Common";
|
|
3
3
|
import { ITicketFilter, ITicketCursorRequest, ITicketCursorResponse } from "./Api";
|
|
4
4
|
import { ITicketTimelineEntry } from "./Conversation";
|
|
5
5
|
import { ISlaMetricCycle } from "./Sla";
|
|
@@ -175,6 +175,32 @@ export interface ITicketRelation {
|
|
|
175
175
|
deletedAt?: Date;
|
|
176
176
|
deletedBy?: string;
|
|
177
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Lightweight summary of the OTHER ticket in a relation, embedded in
|
|
180
|
+
* `ITicketRelationView` so a relations list needs no second round trip per row.
|
|
181
|
+
*/
|
|
182
|
+
export interface ITicketRelationTicketSummary {
|
|
183
|
+
id: string;
|
|
184
|
+
number: number;
|
|
185
|
+
title: string;
|
|
186
|
+
statusId: string;
|
|
187
|
+
stage: TicketStage;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* `GET /:id/relations` response row. Unlike the persisted, directional
|
|
191
|
+
* `ITicketRelation` (fixed source -> target), this projects each active relation
|
|
192
|
+
* from the requested ticket's perspective: `type` is inverted when the ticket is
|
|
193
|
+
* the target, and the counterpart ticket is folded in as `relatedTicket`.
|
|
194
|
+
*/
|
|
195
|
+
export interface ITicketRelationView {
|
|
196
|
+
id: string;
|
|
197
|
+
relationId: string;
|
|
198
|
+
type: TicketRelationType;
|
|
199
|
+
comment?: string;
|
|
200
|
+
createdAt: Date;
|
|
201
|
+
createdBy: string;
|
|
202
|
+
relatedTicket: ITicketRelationTicketSummary;
|
|
203
|
+
}
|
|
178
204
|
/** Creates an explicit directional relation between two existing tickets. */
|
|
179
205
|
export interface ICreateTicketRelationDto {
|
|
180
206
|
expectedVersion: number;
|
package/dist/Tickets/Common.d.ts
CHANGED
|
@@ -121,6 +121,11 @@ export interface ITicketAttachment {
|
|
|
121
121
|
storageKey: string;
|
|
122
122
|
downloadUrl?: string;
|
|
123
123
|
checksum?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the attachment is visible to the customer (`true`) or internal to
|
|
126
|
+
* the agent side (`false`) — mirrors `isPublic` on `ITicketNote`.
|
|
127
|
+
*/
|
|
128
|
+
isPublic: boolean;
|
|
124
129
|
createdAt: Date;
|
|
125
130
|
createdBy: string;
|
|
126
131
|
deletedAt?: Date;
|
|
@@ -109,26 +109,6 @@ export interface ITicketMessageSnapshot {
|
|
|
109
109
|
bodyTruncated: boolean;
|
|
110
110
|
attachments: ITicketMessageSnapshotAttachment[];
|
|
111
111
|
}
|
|
112
|
-
/**
|
|
113
|
-
* A message cited on a ticket, as persisted. Immutable: written only at ticket
|
|
114
|
-
* creation and never edited afterwards.
|
|
115
|
-
*
|
|
116
|
-
* Not to be confused with `ITicketMessageReference`, which is the far smaller
|
|
117
|
-
* pointer the timeline projects.
|
|
118
|
-
*/
|
|
119
|
-
export interface ITicketCitedMessage {
|
|
120
|
-
id: string;
|
|
121
|
-
spaceId: string;
|
|
122
|
-
ticketId: string;
|
|
123
|
-
conversationId: string;
|
|
124
|
-
messageId: string;
|
|
125
|
-
snapshot: ITicketMessageSnapshot | null;
|
|
126
|
-
snapshotSource: TicketMessageSnapshotSource;
|
|
127
|
-
snapshotAt?: Date;
|
|
128
|
-
linkedAt: Date;
|
|
129
|
-
linkedBy?: string;
|
|
130
|
-
reason?: string;
|
|
131
|
-
}
|
|
132
112
|
export declare enum TicketTimelineEntryType {
|
|
133
113
|
ACTIVITY = "ACTIVITY",
|
|
134
114
|
MESSAGE = "MESSAGE"
|