@trii/types 2.11.4 → 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.
|
@@ -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;
|