@trii/types 2.10.697 → 2.10.699

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.
@@ -281,6 +281,27 @@ export type ConversationSubscription = ConversationSubscriptionBase & {
281
281
  followedAt: Date;
282
282
  unfollowedAt: Date;
283
283
  };
284
+ export interface UserConversationState {
285
+ id: ID;
286
+ spaceId: ID;
287
+ conversationId: ID;
288
+ userId: ID;
289
+ pinned: boolean;
290
+ pinnedAt?: Date;
291
+ lastReadMessageId?: ID;
292
+ lastReadAt?: Date;
293
+ updatedAt: Date;
294
+ version: number;
295
+ }
296
+ export type ConversationReadStateMode = 'read' | 'unread';
297
+ export interface PutConversationReadStateRequest {
298
+ mode: ConversationReadStateMode;
299
+ lastReadMessageId?: ID;
300
+ lastReadAt?: Date;
301
+ }
302
+ export interface PutConversationPinRequest {
303
+ pinned: boolean;
304
+ }
284
305
  export type InboxVisibilityReason = 'manual_follow' | 'assigned_to_user' | 'shared_queue_member' | 'queue_claimable' | 'active_participant' | 'sla_warning_owner' | 'sla_breached_owner' | 'supervised_queue_sla' | 'supervisor_escalation' | 'resolved_visible';
285
306
  export interface ConversationInboxSnapshot {
286
307
  interactionKind: 'private' | 'wall_post' | 'comment' | 'mention';
@@ -447,4 +468,24 @@ export interface InboxFilterOptionsResponse {
447
468
  facets: InboxFacetsDto;
448
469
  generatedAt: Date;
449
470
  }
471
+ export type ConversationTimelineItemType = 'assignment' | 'sla' | 'system';
472
+ export interface ConversationTimelineItem {
473
+ type: ConversationTimelineItemType;
474
+ time: Date;
475
+ text: string;
476
+ conversationId: string;
477
+ }
478
+ export interface ConversationUserRelationDto {
479
+ isOwner: boolean;
480
+ isParticipant: boolean;
481
+ isFollowing: boolean;
482
+ isPinned: boolean;
483
+ unreadCount: number;
484
+ }
485
+ export interface ConversationDetailResponse {
486
+ conversation: IConversation;
487
+ relation: ConversationUserRelationDto;
488
+ capabilities: ConversationCapabilitiesDto;
489
+ availableActions: string[];
490
+ }
450
491
  export {};
@@ -67,6 +67,46 @@ export interface ITicketPortal extends ITicketAuditedEntity {
67
67
  privacyDocumentId?: string;
68
68
  enabled: boolean;
69
69
  }
70
+ export interface ICreateTicketPortalDto {
71
+ name: string;
72
+ slug: string;
73
+ title: string;
74
+ description?: string;
75
+ logoUrl?: string;
76
+ faviconUrl?: string;
77
+ primaryColor?: string;
78
+ defaultLocale: string;
79
+ supportedLocales?: string[];
80
+ authenticationMode: TicketPortalAuthenticationMode;
81
+ allowTicketCreation?: boolean;
82
+ allowTicketTracking?: boolean;
83
+ allowComments?: boolean;
84
+ allowReopen?: boolean;
85
+ allowCancellation?: boolean;
86
+ termsDocumentId?: string;
87
+ privacyDocumentId?: string;
88
+ enabled?: boolean;
89
+ }
90
+ export interface IUpdateTicketPortalDto {
91
+ name?: string;
92
+ slug?: string;
93
+ title?: string;
94
+ description?: string | null;
95
+ logoUrl?: string | null;
96
+ faviconUrl?: string | null;
97
+ primaryColor?: string | null;
98
+ defaultLocale?: string;
99
+ supportedLocales?: string[] | null;
100
+ authenticationMode?: TicketPortalAuthenticationMode;
101
+ allowTicketCreation?: boolean;
102
+ allowTicketTracking?: boolean;
103
+ allowComments?: boolean;
104
+ allowReopen?: boolean;
105
+ allowCancellation?: boolean;
106
+ termsDocumentId?: string | null;
107
+ privacyDocumentId?: string | null;
108
+ enabled?: boolean;
109
+ }
70
110
  export interface ITicketRequestType extends ITicketAuditedEntity {
71
111
  name: string;
72
112
  description?: string;
@@ -84,6 +124,40 @@ export interface ITicketRequestType extends ITicketAuditedEntity {
84
124
  audiencePolicyId?: string;
85
125
  enabled: boolean;
86
126
  }
127
+ export interface ICreateTicketRequestTypeDto {
128
+ name: string;
129
+ description?: string;
130
+ categoryId: string;
131
+ icon?: string;
132
+ formId: string;
133
+ formVersion?: number;
134
+ workflowId?: string;
135
+ defaultPriority?: TicketPriority;
136
+ defaultAssignedGroupId?: string;
137
+ slaPolicyId?: string;
138
+ publicStatusSchemeId?: string;
139
+ fieldDefinitionIds?: string[];
140
+ layoutIds?: string[];
141
+ audiencePolicyId?: string;
142
+ enabled?: boolean;
143
+ }
144
+ export interface IUpdateTicketRequestTypeDto {
145
+ name?: string;
146
+ description?: string | null;
147
+ categoryId?: string;
148
+ icon?: string | null;
149
+ formId?: string;
150
+ formVersion?: number | null;
151
+ workflowId?: string | null;
152
+ defaultPriority?: TicketPriority | null;
153
+ defaultAssignedGroupId?: string | null;
154
+ slaPolicyId?: string | null;
155
+ publicStatusSchemeId?: string | null;
156
+ fieldDefinitionIds?: string[] | null;
157
+ layoutIds?: string[] | null;
158
+ audiencePolicyId?: string | null;
159
+ enabled?: boolean;
160
+ }
87
161
  export interface IServiceCatalog extends ITicketAuditedEntity {
88
162
  portalId: string;
89
163
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.697",
3
+ "version": "2.10.699",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",