@trii/types 2.10.712 → 2.10.714
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/Tickets/AdvancedApi.d.ts +60 -0
- package/dist/Tickets/AdvancedApi.js +12 -1
- package/dist/Tickets/Automation.d.ts +2 -2
- package/dist/Tickets/Sla.d.ts +31 -0
- package/dist/index.d.ts +23 -23
- package/dist/index.js +59 -59
- package/package.json +1 -1
|
@@ -166,6 +166,66 @@ export interface ISplitTicketResult {
|
|
|
166
166
|
createdTicketId: string;
|
|
167
167
|
relationId: string;
|
|
168
168
|
}
|
|
169
|
+
export declare enum TicketPeriodPreset {
|
|
170
|
+
LAST_24_HOURS = "LAST_24_HOURS",
|
|
171
|
+
LAST_7_DAYS = "LAST_7_DAYS",
|
|
172
|
+
LAST_30_DAYS = "LAST_30_DAYS"
|
|
173
|
+
}
|
|
174
|
+
export declare enum TicketMergeConfirmationLevel {
|
|
175
|
+
CONFIRM = "CONFIRM",
|
|
176
|
+
SUPERVISOR = "SUPERVISOR"
|
|
177
|
+
}
|
|
178
|
+
/** Ticket fields compared by duplicate detection, expressed with the fieldNameKey convention. */
|
|
179
|
+
export type TicketDuplicateMatchField = "title" | "description" | "contactId" | "categoryId";
|
|
180
|
+
/** Space-level configuration for ticket relations and duplicate detection; read model returns effective values. */
|
|
181
|
+
export interface ITicketRelationSettings {
|
|
182
|
+
spaceId: string;
|
|
183
|
+
relationsEnabled: boolean;
|
|
184
|
+
suggestDuplicates: boolean;
|
|
185
|
+
matchFields: string[];
|
|
186
|
+
searchPeriod: TicketPeriodPreset;
|
|
187
|
+
excludedStatusIds: string[];
|
|
188
|
+
minimumScore: number;
|
|
189
|
+
copyMessages: boolean;
|
|
190
|
+
copyAttachments: boolean;
|
|
191
|
+
closeSourceTickets: boolean;
|
|
192
|
+
mergeConfirmation: TicketMergeConfirmationLevel;
|
|
193
|
+
warningMessage?: string;
|
|
194
|
+
version: number;
|
|
195
|
+
createdAt?: Date;
|
|
196
|
+
createdBy?: string;
|
|
197
|
+
updatedAt?: Date;
|
|
198
|
+
updatedBy?: string;
|
|
199
|
+
}
|
|
200
|
+
/** Replaces the whole relation settings record; omitted optional values are cleared. */
|
|
201
|
+
export interface IUpdateTicketRelationSettingsDto {
|
|
202
|
+
expectedVersion: number;
|
|
203
|
+
relationsEnabled: boolean;
|
|
204
|
+
suggestDuplicates: boolean;
|
|
205
|
+
matchFields: TicketDuplicateMatchField[];
|
|
206
|
+
searchPeriod: TicketPeriodPreset;
|
|
207
|
+
excludedStatusIds: string[];
|
|
208
|
+
minimumScore: number;
|
|
209
|
+
copyMessages: boolean;
|
|
210
|
+
copyAttachments: boolean;
|
|
211
|
+
closeSourceTickets: boolean;
|
|
212
|
+
mergeConfirmation: TicketMergeConfirmationLevel;
|
|
213
|
+
warningMessage?: string;
|
|
214
|
+
}
|
|
215
|
+
/** Updates only the provided relation settings; omitted fields keep their stored value. */
|
|
216
|
+
export interface IPatchTicketRelationSettingsDto {
|
|
217
|
+
relationsEnabled?: boolean;
|
|
218
|
+
suggestDuplicates?: boolean;
|
|
219
|
+
matchFields?: TicketDuplicateMatchField[];
|
|
220
|
+
searchPeriod?: TicketPeriodPreset;
|
|
221
|
+
excludedStatusIds?: string[];
|
|
222
|
+
minimumScore?: number;
|
|
223
|
+
copyMessages?: boolean;
|
|
224
|
+
copyAttachments?: boolean;
|
|
225
|
+
closeSourceTickets?: boolean;
|
|
226
|
+
mergeConfirmation?: TicketMergeConfirmationLevel;
|
|
227
|
+
warningMessage?: string | null;
|
|
228
|
+
}
|
|
169
229
|
export declare enum TicketFollowerRole {
|
|
170
230
|
FOLLOWER = "FOLLOWER",
|
|
171
231
|
COLLABORATOR = "COLLABORATOR",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketWebhookAuthType = exports.TicketSubscriptionEvent = exports.TicketExportFormat = exports.TicketJobStatus = exports.TicketBulkOperationType = exports.TicketMacroActionType = exports.TicketFollowerRole = exports.TicketRelationType = exports.TicketApiErrorCode = exports.TicketExpand = void 0;
|
|
3
|
+
exports.TicketWebhookAuthType = exports.TicketSubscriptionEvent = exports.TicketExportFormat = exports.TicketJobStatus = exports.TicketBulkOperationType = exports.TicketMacroActionType = exports.TicketFollowerRole = exports.TicketMergeConfirmationLevel = exports.TicketPeriodPreset = exports.TicketRelationType = exports.TicketApiErrorCode = exports.TicketExpand = void 0;
|
|
4
4
|
var TicketExpand;
|
|
5
5
|
(function (TicketExpand) {
|
|
6
6
|
TicketExpand["CONTACT"] = "CONTACT";
|
|
@@ -39,6 +39,17 @@ var TicketRelationType;
|
|
|
39
39
|
TicketRelationType["HAS_INCIDENT"] = "HAS_INCIDENT";
|
|
40
40
|
TicketRelationType["PROBLEM_OF"] = "PROBLEM_OF";
|
|
41
41
|
})(TicketRelationType || (exports.TicketRelationType = TicketRelationType = {}));
|
|
42
|
+
var TicketPeriodPreset;
|
|
43
|
+
(function (TicketPeriodPreset) {
|
|
44
|
+
TicketPeriodPreset["LAST_24_HOURS"] = "LAST_24_HOURS";
|
|
45
|
+
TicketPeriodPreset["LAST_7_DAYS"] = "LAST_7_DAYS";
|
|
46
|
+
TicketPeriodPreset["LAST_30_DAYS"] = "LAST_30_DAYS";
|
|
47
|
+
})(TicketPeriodPreset || (exports.TicketPeriodPreset = TicketPeriodPreset = {}));
|
|
48
|
+
var TicketMergeConfirmationLevel;
|
|
49
|
+
(function (TicketMergeConfirmationLevel) {
|
|
50
|
+
TicketMergeConfirmationLevel["CONFIRM"] = "CONFIRM";
|
|
51
|
+
TicketMergeConfirmationLevel["SUPERVISOR"] = "SUPERVISOR";
|
|
52
|
+
})(TicketMergeConfirmationLevel || (exports.TicketMergeConfirmationLevel = TicketMergeConfirmationLevel = {}));
|
|
42
53
|
var TicketFollowerRole;
|
|
43
54
|
(function (TicketFollowerRole) {
|
|
44
55
|
TicketFollowerRole["FOLLOWER"] = "FOLLOWER";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TicketPropertyValue } from "./Common";
|
|
1
|
+
import { ITicketAuditedEntity, TicketPropertyValue } from "./Common";
|
|
2
2
|
import { TicketSecurityOperation } from "./Security";
|
|
3
3
|
/** Events published by Tickets that may start or resume a Flow execution. */
|
|
4
4
|
export declare enum TicketAutomationTrigger {
|
|
@@ -220,7 +220,7 @@ export interface ITicketAutomationGuardDecision {
|
|
|
220
220
|
actionsRemaining?: number;
|
|
221
221
|
}
|
|
222
222
|
/** Registers the Flow binding that determines which ticket event starts which flow version. */
|
|
223
|
-
export interface ITicketFlowBinding {
|
|
223
|
+
export interface ITicketFlowBinding extends ITicketAuditedEntity {
|
|
224
224
|
id: string;
|
|
225
225
|
spaceId: string;
|
|
226
226
|
name: string;
|
package/dist/Tickets/Sla.d.ts
CHANGED
|
@@ -231,6 +231,37 @@ export interface ITicketSlaPolicy extends ITicketAuditedEntity {
|
|
|
231
231
|
policyChangeBehavior?: SlaPolicyChangeBehavior;
|
|
232
232
|
reopenBehavior?: SlaPolicyChangeBehavior;
|
|
233
233
|
}
|
|
234
|
+
export interface ICreateTicketSlaPolicyDto {
|
|
235
|
+
name: string;
|
|
236
|
+
description?: string;
|
|
237
|
+
enabled?: boolean;
|
|
238
|
+
order?: number;
|
|
239
|
+
priority?: TicketPriority;
|
|
240
|
+
categoryIds?: string[];
|
|
241
|
+
conditions?: ISlaPolicyCondition[];
|
|
242
|
+
conditionGroup?: ISlaConditionGroup;
|
|
243
|
+
targets: ISlaTarget[];
|
|
244
|
+
commitments?: IServiceCommitment[];
|
|
245
|
+
pausableStatusIds?: string[];
|
|
246
|
+
policyChangeBehavior?: SlaPolicyChangeBehavior;
|
|
247
|
+
reopenBehavior?: SlaPolicyChangeBehavior;
|
|
248
|
+
}
|
|
249
|
+
export interface IUpdateTicketSlaPolicyDto {
|
|
250
|
+
expectedVersion: number;
|
|
251
|
+
name?: string;
|
|
252
|
+
description?: string;
|
|
253
|
+
enabled?: boolean;
|
|
254
|
+
order?: number;
|
|
255
|
+
priority?: TicketPriority;
|
|
256
|
+
categoryIds?: string[];
|
|
257
|
+
conditions?: ISlaPolicyCondition[];
|
|
258
|
+
conditionGroup?: ISlaConditionGroup;
|
|
259
|
+
targets?: ISlaTarget[];
|
|
260
|
+
commitments?: IServiceCommitment[];
|
|
261
|
+
pausableStatusIds?: string[];
|
|
262
|
+
policyChangeBehavior?: SlaPolicyChangeBehavior;
|
|
263
|
+
reopenBehavior?: SlaPolicyChangeBehavior;
|
|
264
|
+
}
|
|
234
265
|
export interface ISlaPausePeriod {
|
|
235
266
|
startedAt: Date;
|
|
236
267
|
endedAt?: 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"));
|