@trii/types 2.11.3 → 2.11.5
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.
|
@@ -30,6 +30,10 @@ export declare class UserConfig_Tickets {
|
|
|
30
30
|
newContactMessage: NotificationEventPreferences;
|
|
31
31
|
firstResponseTimeOut: NotificationEventPreferences;
|
|
32
32
|
resolutionTimeOut: NotificationEventPreferences;
|
|
33
|
+
/** A ticket task was assigned to the user. Optional: configs saved before it existed lack it (off). */
|
|
34
|
+
newTaskAssigned?: NotificationEventPreferences | null;
|
|
35
|
+
/** A task assigned to the user is about to be due. Optional: configs saved before it existed lack it (off). */
|
|
36
|
+
taskDueSoon?: NotificationEventPreferences | null;
|
|
33
37
|
}
|
|
34
38
|
export declare class NotificationEventPreferences {
|
|
35
39
|
email?: boolean | null;
|
|
@@ -65,4 +69,6 @@ export declare const notificationEventOptions: {
|
|
|
65
69
|
readonly 'tickets.newContactMessage': readonly ["email", "push"];
|
|
66
70
|
readonly 'tickets.firstResponseTimeOut': readonly ["email", "push"];
|
|
67
71
|
readonly 'tickets.resolutionTimeOut': readonly ["email", "push"];
|
|
72
|
+
readonly 'tickets.newTaskAssigned': readonly ["email", "push"];
|
|
73
|
+
readonly 'tickets.taskDueSoon': readonly ["email", "push"];
|
|
68
74
|
};
|
|
@@ -375,7 +375,8 @@ export interface ICustomerTicketView {
|
|
|
375
375
|
number: number;
|
|
376
376
|
title: string;
|
|
377
377
|
description?: string;
|
|
378
|
-
|
|
378
|
+
/** Absent when the ticket has no contact (it reached the portal through its company). */
|
|
379
|
+
contactId?: string;
|
|
379
380
|
requestTypeId?: string;
|
|
380
381
|
categoryId: string;
|
|
381
382
|
publicStatus: ICustomerPublicStatusView;
|
package/dist/Tickets/Ticket.d.ts
CHANGED
|
@@ -26,14 +26,26 @@ export interface ITicketLastActivity {
|
|
|
26
26
|
/** ISO 8601. */
|
|
27
27
|
at: string;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Free-form identification of who requested a ticket that has neither a
|
|
31
|
+
* contact nor a company. At least one field is present on such a ticket.
|
|
32
|
+
*/
|
|
33
|
+
export interface ITicketRequesterIdentity {
|
|
34
|
+
name?: string;
|
|
35
|
+
email?: string;
|
|
36
|
+
phone?: string;
|
|
37
|
+
}
|
|
29
38
|
export interface ITicket {
|
|
30
39
|
id: string;
|
|
31
40
|
spaceId: string;
|
|
32
41
|
number: number;
|
|
33
42
|
title: string;
|
|
34
43
|
description?: string;
|
|
35
|
-
|
|
44
|
+
/** Contact (always a person). Optional: a ticket may have only a company, or only a requester identity. */
|
|
45
|
+
contactId?: string;
|
|
36
46
|
contact?: ITicketContactProjection;
|
|
47
|
+
/** Present only when the ticket has neither a contact nor a company. */
|
|
48
|
+
requester?: ITicketRequesterIdentity;
|
|
37
49
|
/** Optional company the ticket is associated with, alongside the contact. */
|
|
38
50
|
businessId?: string;
|
|
39
51
|
business?: ITicketContactProjection;
|
|
@@ -99,7 +111,13 @@ export interface ITicket {
|
|
|
99
111
|
export interface ICreateTicketDto {
|
|
100
112
|
title: string;
|
|
101
113
|
description?: string;
|
|
102
|
-
|
|
114
|
+
/** Optional. Without a contact and without a company, `requester` is required. */
|
|
115
|
+
contactId?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Who requested the ticket when there is neither `contactId` nor `businessId`:
|
|
118
|
+
* at least one of name, email or phone. Rejected when either id is present.
|
|
119
|
+
*/
|
|
120
|
+
requester?: ITicketRequesterIdentity;
|
|
103
121
|
/** Optional company, in addition to the contact. Must be a business in contacts-api. */
|
|
104
122
|
businessId?: string;
|
|
105
123
|
statusId?: string;
|