@trii/types 2.10.727 → 2.10.728
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/Automations/Events/Event.d.ts +3 -3
- package/dist/Contacts/CommunicationEndpoint.d.ts +8 -8
- package/dist/Conversations/Conversation.d.ts +8 -8
- package/dist/Conversations/InboxMongo.d.ts +12 -12
- package/dist/Conversations/Routing.d.ts +10 -10
- package/dist/Events/DomainEventTypes.d.ts +23 -23
- package/dist/Tickets/AdvancedApi.d.ts +55 -0
- package/dist/Tickets/AdvancedApi.js +17 -1
- package/dist/src/Automations/Capabilities/Capability.d.ts +81 -0
- package/dist/src/Automations/Capabilities/Capability.js +23 -0
- package/dist/src/Automations/Capabilities/index.d.ts +1 -0
- package/dist/src/Automations/Capabilities/index.js +17 -0
- package/dist/src/Automations/Common.d.ts +94 -0
- package/dist/src/Automations/Common.js +40 -0
- package/dist/src/Automations/Events/Event.d.ts +96 -0
- package/dist/src/Automations/Events/Event.js +19 -0
- package/dist/src/Automations/Events/index.d.ts +1 -0
- package/dist/src/Automations/Events/index.js +17 -0
- package/dist/src/Automations/Executions/Execution.d.ts +298 -0
- package/dist/src/Automations/Executions/Execution.js +76 -0
- package/dist/src/Automations/Executions/Testing.d.ts +166 -0
- package/dist/src/Automations/Executions/Testing.js +54 -0
- package/dist/src/Automations/Executions/index.d.ts +2 -0
- package/dist/src/Automations/Executions/index.js +18 -0
- package/dist/src/Automations/Flows/Canvas.d.ts +109 -0
- package/dist/src/Automations/Flows/Canvas.js +43 -0
- package/dist/src/Automations/Flows/Flow.d.ts +154 -0
- package/dist/src/Automations/Flows/Flow.js +58 -0
- package/dist/src/Automations/Flows/Requests.d.ts +71 -0
- package/dist/src/Automations/Flows/Validation.d.ts +28 -0
- package/dist/src/Automations/Flows/Validation.js +9 -0
- package/dist/src/Automations/Flows/index.d.ts +4 -0
- package/dist/src/Automations/Flows/index.js +20 -0
- package/dist/src/Automations/Nodes/Node.d.ts +116 -0
- package/dist/src/Automations/Nodes/Node.js +27 -0
- package/dist/src/Automations/Nodes/index.d.ts +1 -0
- package/dist/src/Automations/Nodes/index.js +17 -0
- package/dist/src/Automations/Triggers/Trigger.d.ts +112 -0
- package/dist/src/Automations/Triggers/Trigger.js +66 -0
- package/dist/src/Automations/Triggers/index.d.ts +1 -0
- package/dist/src/Automations/Triggers/index.js +17 -0
- package/dist/src/Automations/index.d.ts +7 -0
- package/dist/src/Automations/index.js +23 -0
- package/dist/src/Chats/Chat.d.ts +61 -0
- package/dist/src/Chats/Chat.js +28 -0
- package/dist/src/Common/Channels/Channel.d.ts +28 -1
- package/dist/src/Common/Channels/Email.d.ts +1 -0
- package/dist/src/Common/Channels/Facebook.d.ts +1 -0
- package/dist/src/Common/Channels/Form.d.ts +1 -0
- package/dist/src/Common/Channels/GoogleBusiness.d.ts +1 -0
- package/dist/src/Common/Channels/Instagram.d.ts +1 -0
- package/dist/src/Common/Channels/MercadoLibre.d.ts +1 -0
- package/dist/src/Common/Channels/WebChat.d.ts +1 -0
- package/dist/src/Contacts/CommunicationEndpoint.d.ts +107 -0
- package/dist/src/Contacts/CommunicationEndpoint.js +39 -0
- package/dist/src/Contacts/CommunicationMethod.d.ts +9 -0
- package/dist/src/Contacts/CommunicationMethod.js +2 -0
- package/dist/src/Contacts/contacts.d.ts +2 -2
- package/dist/src/Contacts/index.d.ts +2 -0
- package/dist/src/Contacts/index.js +2 -0
- package/dist/src/Conversations/Assignment.d.ts +181 -0
- package/dist/src/Conversations/Assignment.js +4 -0
- package/dist/src/Conversations/Conversation.d.ts +410 -48
- package/dist/src/Conversations/Conversation.js +14 -34
- package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
- package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +280 -123
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +85 -35
- package/dist/src/Conversations/Groups/Group.d.ts +2 -8
- package/dist/src/Conversations/Groups/Group.js +0 -6
- package/dist/src/Conversations/InboxMongo.d.ts +154 -0
- package/dist/src/Conversations/InboxMongo.js +128 -0
- package/dist/src/Conversations/InboxProjection.d.ts +162 -0
- package/dist/src/Conversations/InboxProjection.js +2 -0
- package/dist/src/Conversations/Label.d.ts +1 -1
- package/dist/src/Conversations/Outbox.d.ts +24 -0
- package/dist/src/Conversations/Outbox.js +4 -0
- package/dist/src/Conversations/Queue.d.ts +107 -0
- package/dist/src/Conversations/Queue.js +4 -0
- package/dist/src/Conversations/Routing.d.ts +164 -0
- package/dist/src/Conversations/Routing.js +2 -0
- package/dist/src/Conversations/Sla.d.ts +227 -0
- package/dist/src/Conversations/Sla.js +6 -0
- package/dist/src/Conversations/Transfer.d.ts +73 -0
- package/dist/src/Conversations/Transfer.js +2 -0
- package/dist/src/Conversations/WebHook.d.ts +1 -1
- package/dist/src/Conversations/index.d.ts +9 -1
- package/dist/src/Conversations/index.js +9 -1
- package/dist/src/Events/DomainEventTypes.d.ts +51 -0
- package/dist/src/Events/DomainEventTypes.js +49 -0
- package/dist/src/Events/index.d.ts +1 -0
- package/dist/src/Events/index.js +17 -0
- package/dist/src/Forms/API.d.ts +53 -0
- package/dist/src/Forms/API.js +2 -0
- package/dist/src/Forms/SubmittedForm.d.ts +56 -0
- package/dist/src/Forms/SubmittedForm.js +9 -0
- package/dist/src/Forms/index.d.ts +2 -0
- package/dist/src/Forms/index.js +18 -0
- package/dist/src/Presence/AgentPause.d.ts +24 -0
- package/dist/src/Presence/AgentPause.js +19 -0
- package/dist/src/Presence/QueueParticipation.d.ts +17 -0
- package/dist/src/Presence/QueueParticipation.js +2 -0
- package/dist/src/Presence/QueueRoutingState.d.ts +27 -0
- package/dist/src/Presence/QueueRoutingState.js +9 -0
- package/dist/src/Presence/index.d.ts +3 -0
- package/dist/src/Presence/index.js +19 -0
- package/dist/src/PublicAPI/apiKey.d.ts +92 -3
- package/dist/src/PublicAPI/apiKey.js +27 -0
- package/dist/src/Tickets/AI.d.ts +50 -2
- package/dist/src/Tickets/AdvancedApi.d.ts +142 -2
- package/dist/src/Tickets/AdvancedApi.js +28 -1
- package/dist/src/Tickets/Approval.d.ts +20 -4
- package/dist/src/Tickets/Automation.d.ts +46 -2
- package/dist/src/Tickets/Category.d.ts +18 -0
- package/dist/src/Tickets/Dashboard.d.ts +78 -0
- package/dist/src/Tickets/Dashboard.js +13 -1
- package/dist/src/Tickets/Fields.d.ts +4 -0
- package/dist/src/Tickets/Layouts.d.ts +3 -1
- package/dist/src/Tickets/Routing.d.ts +105 -3
- package/dist/src/Tickets/Routing.js +7 -1
- package/dist/src/Tickets/Security.d.ts +271 -4
- package/dist/src/Tickets/Security.js +10 -1
- package/dist/src/Tickets/SelfService.d.ts +190 -0
- package/dist/src/Tickets/Sla.d.ts +140 -0
- package/dist/src/Tickets/Workflow.d.ts +20 -0
- package/dist/src/Users/UserTrii.d.ts +10 -0
- package/dist/src/Users/UserTrii.js +8 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +5 -1
- package/package.json +12 -12
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/Conversations/DashBoard/dashboardForms.js +0 -24
- package/dist/Conversations/InboxCounters.d.ts +0 -18
- package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/src/Conversations/DashBoard/dashboardForms.js +0 -24
- /package/dist/{Conversations/InboxCounters.js → src/Automations/Flows/Requests.js} +0 -0
|
@@ -79,6 +79,57 @@ export interface IBusinessCalendar extends ITicketAuditedEntity {
|
|
|
79
79
|
exceptions: IBusinessCalendarException[];
|
|
80
80
|
enabled: boolean;
|
|
81
81
|
}
|
|
82
|
+
export interface ICreateBusinessCalendarDto {
|
|
83
|
+
name: string;
|
|
84
|
+
timeZone: string;
|
|
85
|
+
schedule: IBusinessDaySchedule[];
|
|
86
|
+
exceptions: IBusinessCalendarException[];
|
|
87
|
+
enabled?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface IUpdateBusinessCalendarDto {
|
|
90
|
+
name?: string;
|
|
91
|
+
timeZone?: string;
|
|
92
|
+
schedule?: IBusinessDaySchedule[];
|
|
93
|
+
exceptions?: IBusinessCalendarException[];
|
|
94
|
+
enabled?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface IBusinessCalendarPreviewRequest {
|
|
97
|
+
businessCalendarId?: string;
|
|
98
|
+
calendar?: {
|
|
99
|
+
timeZone: string;
|
|
100
|
+
schedule: IBusinessDaySchedule[];
|
|
101
|
+
exceptions: IBusinessCalendarException[];
|
|
102
|
+
};
|
|
103
|
+
check: {
|
|
104
|
+
type: 'IS_WORKING_MOMENT';
|
|
105
|
+
at: string;
|
|
106
|
+
} | {
|
|
107
|
+
type: 'NEXT_WORKING_PERIOD';
|
|
108
|
+
from: string;
|
|
109
|
+
} | {
|
|
110
|
+
type: 'DEADLINE';
|
|
111
|
+
from: string;
|
|
112
|
+
durationMinutes: number;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
export interface IBusinessCalendarPreviewResponse {
|
|
116
|
+
result: {
|
|
117
|
+
type: 'IS_WORKING_MOMENT';
|
|
118
|
+
isWorking: boolean;
|
|
119
|
+
matchedException?: {
|
|
120
|
+
date: string;
|
|
121
|
+
name?: string;
|
|
122
|
+
};
|
|
123
|
+
} | {
|
|
124
|
+
type: 'NEXT_WORKING_PERIOD';
|
|
125
|
+
startsAt: string;
|
|
126
|
+
endsAt: string;
|
|
127
|
+
} | {
|
|
128
|
+
type: 'DEADLINE';
|
|
129
|
+
dueAt: string;
|
|
130
|
+
businessMinutesConsumed: number;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
82
133
|
export interface ISlaEventMatcher {
|
|
83
134
|
eventType: SlaEventType;
|
|
84
135
|
statusId?: string;
|
|
@@ -97,6 +148,30 @@ export interface ISlaMetricDefinition extends ITicketAuditedEntity {
|
|
|
97
148
|
cycleStartBehavior: SlaCycleStartBehavior;
|
|
98
149
|
enabled: boolean;
|
|
99
150
|
}
|
|
151
|
+
export interface ICreateSlaMetricDefinitionDto {
|
|
152
|
+
code: string;
|
|
153
|
+
name: string;
|
|
154
|
+
description?: string;
|
|
155
|
+
type: SlaMetricType;
|
|
156
|
+
statusId?: string;
|
|
157
|
+
customEventType?: string;
|
|
158
|
+
startEvent: ISlaEventMatcher;
|
|
159
|
+
completionEvent: ISlaEventMatcher;
|
|
160
|
+
cycleStartBehavior: SlaCycleStartBehavior;
|
|
161
|
+
enabled?: boolean;
|
|
162
|
+
}
|
|
163
|
+
export interface IUpdateSlaMetricDefinitionDto {
|
|
164
|
+
code?: string;
|
|
165
|
+
name?: string;
|
|
166
|
+
description?: string;
|
|
167
|
+
type?: SlaMetricType;
|
|
168
|
+
statusId?: string;
|
|
169
|
+
customEventType?: string;
|
|
170
|
+
startEvent?: ISlaEventMatcher;
|
|
171
|
+
completionEvent?: ISlaEventMatcher;
|
|
172
|
+
cycleStartBehavior?: SlaCycleStartBehavior;
|
|
173
|
+
enabled?: boolean;
|
|
174
|
+
}
|
|
100
175
|
export interface ISlaWarningThreshold {
|
|
101
176
|
id: string;
|
|
102
177
|
percentage?: number;
|
|
@@ -156,6 +231,71 @@ export interface ITicketSlaPolicy extends ITicketAuditedEntity {
|
|
|
156
231
|
policyChangeBehavior?: SlaPolicyChangeBehavior;
|
|
157
232
|
reopenBehavior?: SlaPolicyChangeBehavior;
|
|
158
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
|
+
}
|
|
265
|
+
export interface ISimulateSlaPolicyRequest {
|
|
266
|
+
ticket: {
|
|
267
|
+
categoryId?: string;
|
|
268
|
+
priority?: TicketPriority;
|
|
269
|
+
properties?: Record<string, TicketPropertyValue>;
|
|
270
|
+
};
|
|
271
|
+
startAt: string;
|
|
272
|
+
}
|
|
273
|
+
export interface ISimulatedTarget {
|
|
274
|
+
targetId?: string;
|
|
275
|
+
metricDefinitionId?: string;
|
|
276
|
+
metric?: SlaMetricType;
|
|
277
|
+
mode: SlaTimeMode;
|
|
278
|
+
businessCalendarId?: string;
|
|
279
|
+
dueAt: string;
|
|
280
|
+
warnings: {
|
|
281
|
+
thresholdId: string;
|
|
282
|
+
at: string;
|
|
283
|
+
}[];
|
|
284
|
+
}
|
|
285
|
+
export interface ISimulatedCommitment {
|
|
286
|
+
id: string;
|
|
287
|
+
type: ServiceCommitmentType;
|
|
288
|
+
name: string;
|
|
289
|
+
targets: ISimulatedTarget[];
|
|
290
|
+
}
|
|
291
|
+
export interface ISimulateSlaPolicyResponse {
|
|
292
|
+
policy: {
|
|
293
|
+
id: string;
|
|
294
|
+
name: string;
|
|
295
|
+
} | null;
|
|
296
|
+
targets: ISimulatedTarget[];
|
|
297
|
+
commitments: ISimulatedCommitment[];
|
|
298
|
+
}
|
|
159
299
|
export interface ISlaPausePeriod {
|
|
160
300
|
startedAt: Date;
|
|
161
301
|
endedAt?: Date;
|
|
@@ -11,6 +11,13 @@ export interface ITicketStatus extends ITicketAuditedEntity {
|
|
|
11
11
|
isInitial: boolean;
|
|
12
12
|
isFinal: boolean;
|
|
13
13
|
enabled: boolean;
|
|
14
|
+
version: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ITicketStatusCreateDTO extends Omit<ITicketStatus, keyof ITicketAuditedEntity | 'enabled' | 'version'> {
|
|
17
|
+
}
|
|
18
|
+
export interface ITicketStatusUpdateDTO extends Partial<Omit<ITicketStatus, keyof ITicketAuditedEntity | 'version'>> {
|
|
19
|
+
id: string;
|
|
20
|
+
expectedVersion: number;
|
|
14
21
|
}
|
|
15
22
|
export declare enum TicketConditionOperator {
|
|
16
23
|
EQUALS = "EQUALS",
|
|
@@ -50,14 +57,27 @@ export interface ITicketTransitionCondition {
|
|
|
50
57
|
checklistItemId?: string;
|
|
51
58
|
expectedValue?: TicketPropertyValue;
|
|
52
59
|
}
|
|
60
|
+
export interface ICreateTicketTransitionConditionDTO extends Omit<ITicketTransitionCondition, 'id'> {
|
|
61
|
+
}
|
|
62
|
+
export interface IUpdateTicketTransitionConditionDTO extends Partial<Omit<ITicketTransitionCondition, 'id'>> {
|
|
63
|
+
id: string;
|
|
64
|
+
}
|
|
53
65
|
export interface ITicketTransition extends ITicketAuditedEntity {
|
|
54
66
|
name?: string;
|
|
55
67
|
fromStatusId: string;
|
|
56
68
|
toStatusId: string;
|
|
57
69
|
enabled: boolean;
|
|
70
|
+
version: number;
|
|
58
71
|
allowedRoleIds?: string[];
|
|
59
72
|
conditions: ITicketTransitionCondition[];
|
|
60
73
|
}
|
|
74
|
+
export interface ICreateTicketTransitionDTO extends Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version' | 'conditions'> {
|
|
75
|
+
conditions: ICreateTicketTransitionConditionDTO[];
|
|
76
|
+
}
|
|
77
|
+
export interface IUpdateTicketTransitionDTO extends Partial<Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version'>> {
|
|
78
|
+
id: string;
|
|
79
|
+
expectedVersion: number;
|
|
80
|
+
}
|
|
61
81
|
export declare enum TicketActivityType {
|
|
62
82
|
CREATED = "CREATED",
|
|
63
83
|
UPDATED = "UPDATED",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import UserType from './UserType';
|
|
2
2
|
import { UserProfile, UserRole } from './UserProfile';
|
|
3
|
+
import { PauseReason } from '../Presence/AgentPause';
|
|
3
4
|
export interface UserInfo {
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
@@ -62,6 +63,9 @@ export interface UserTrii {
|
|
|
62
63
|
userType: UserType;
|
|
63
64
|
verifiedAccount: boolean;
|
|
64
65
|
status: UserStatus;
|
|
66
|
+
availability: AvailabilityStatus;
|
|
67
|
+
currentPauseReason?: PauseReason;
|
|
68
|
+
currentPauseSince?: Date;
|
|
65
69
|
firstname: string;
|
|
66
70
|
lastname: string;
|
|
67
71
|
display_name: string;
|
|
@@ -90,6 +94,12 @@ export interface UserTrii {
|
|
|
90
94
|
socialLinkedinID: string;
|
|
91
95
|
socialTwitterID: string;
|
|
92
96
|
}
|
|
97
|
+
export declare enum AvailabilityStatus {
|
|
98
|
+
AVAILABLE = 0,
|
|
99
|
+
AWAY = 1,
|
|
100
|
+
DO_NOT_DISTURB = 2,
|
|
101
|
+
OFFLINE = 3
|
|
102
|
+
}
|
|
93
103
|
export interface NotificationConfig {
|
|
94
104
|
volume: NotificationVolumeLevel;
|
|
95
105
|
sound: NotificationSound;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserStatus = void 0;
|
|
3
|
+
exports.AvailabilityStatus = exports.UserStatus = void 0;
|
|
4
4
|
var UserStatus;
|
|
5
5
|
(function (UserStatus) {
|
|
6
6
|
UserStatus[UserStatus["OFFLINE"] = 0] = "OFFLINE";
|
|
@@ -8,3 +8,10 @@ var UserStatus;
|
|
|
8
8
|
UserStatus[UserStatus["AWAY"] = 2] = "AWAY";
|
|
9
9
|
UserStatus[UserStatus["BUSY"] = 3] = "BUSY";
|
|
10
10
|
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
11
|
+
var AvailabilityStatus;
|
|
12
|
+
(function (AvailabilityStatus) {
|
|
13
|
+
AvailabilityStatus[AvailabilityStatus["AVAILABLE"] = 0] = "AVAILABLE";
|
|
14
|
+
AvailabilityStatus[AvailabilityStatus["AWAY"] = 1] = "AWAY";
|
|
15
|
+
AvailabilityStatus[AvailabilityStatus["DO_NOT_DISTURB"] = 2] = "DO_NOT_DISTURB";
|
|
16
|
+
AvailabilityStatus[AvailabilityStatus["OFFLINE"] = 3] = "OFFLINE";
|
|
17
|
+
})(AvailabilityStatus || (exports.AvailabilityStatus = AvailabilityStatus = {}));
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,9 +12,13 @@ export * as Tickets from './Tickets/index';
|
|
|
12
12
|
export * as Sales from './Sales/index';
|
|
13
13
|
export * as Collections from './Collections/index';
|
|
14
14
|
export * as Users from './Users/index';
|
|
15
|
+
export * as Presence from './Presence/index';
|
|
15
16
|
export * as ApiResponses from './ApiResponses/index';
|
|
16
17
|
export * as EventsQueue from './Common/EventsQueue/index';
|
|
18
|
+
export * as Events from './Events/index';
|
|
17
19
|
export * as APIKeys from './PublicAPI/apiKey';
|
|
18
20
|
export * as AI from './AI/index';
|
|
19
21
|
export * as Shop from './Shop/index';
|
|
20
22
|
export * as APIResponses from './ApiResponses/index';
|
|
23
|
+
export * as Forms from './Forms/index';
|
|
24
|
+
export * as Automations from './Automations/index';
|
package/dist/src/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = 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;
|
|
36
|
+
exports.Automations = exports.Forms = exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.Events = 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
37
|
exports.Accounts = __importStar(require("./Accounts/index"));
|
|
38
38
|
exports.AuditLogs = __importStar(require("./AuditLogs/index"));
|
|
39
39
|
exports.Common = __importStar(require("./Common/index"));
|
|
@@ -48,9 +48,13 @@ exports.Tickets = __importStar(require("./Tickets/index"));
|
|
|
48
48
|
exports.Sales = __importStar(require("./Sales/index"));
|
|
49
49
|
exports.Collections = __importStar(require("./Collections/index"));
|
|
50
50
|
exports.Users = __importStar(require("./Users/index"));
|
|
51
|
+
exports.Presence = __importStar(require("./Presence/index"));
|
|
51
52
|
exports.ApiResponses = __importStar(require("./ApiResponses/index"));
|
|
52
53
|
exports.EventsQueue = __importStar(require("./Common/EventsQueue/index"));
|
|
54
|
+
exports.Events = __importStar(require("./Events/index"));
|
|
53
55
|
exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
|
|
54
56
|
exports.AI = __importStar(require("./AI/index"));
|
|
55
57
|
exports.Shop = __importStar(require("./Shop/index"));
|
|
56
58
|
exports.APIResponses = __importStar(require("./ApiResponses/index"));
|
|
59
|
+
exports.Forms = __importStar(require("./Forms/index"));
|
|
60
|
+
exports.Automations = __importStar(require("./Automations/index"));
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@trii/types",
|
|
3
|
-
"version": "2.10.
|
|
4
|
-
"description": "Types definitions for Trii projects - ",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"/dist"
|
|
9
|
-
],
|
|
10
|
-
"author": "Trii LLC",
|
|
11
|
-
"license": "ISC"
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@trii/types",
|
|
3
|
+
"version": "2.10.728",
|
|
4
|
+
"description": "Types definitions for Trii projects - ",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"/dist"
|
|
9
|
+
],
|
|
10
|
+
"author": "Trii LLC",
|
|
11
|
+
"license": "ISC"
|
|
12
|
+
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { FormItemType } from "../../Common/Channels/Form";
|
|
2
|
-
export declare class DashBoardFormsSummaryInfo {
|
|
3
|
-
formId: string;
|
|
4
|
-
timeStart: Date;
|
|
5
|
-
timeEnd: Date;
|
|
6
|
-
completedForms: number;
|
|
7
|
-
records: DashBoardFormsQuestionSummary[];
|
|
8
|
-
}
|
|
9
|
-
export declare class DashBoardFormsQuestionSummary {
|
|
10
|
-
questionId: string;
|
|
11
|
-
question: string;
|
|
12
|
-
type: FormItemType;
|
|
13
|
-
count: number;
|
|
14
|
-
responses: DashBoardFormsResponseSummary[];
|
|
15
|
-
}
|
|
16
|
-
export declare class DashBoardFormsResponseSummary {
|
|
17
|
-
count: number;
|
|
18
|
-
responseTitle: string;
|
|
19
|
-
}
|
|
20
|
-
export declare class DashBoardFormsSubmittedFormsInfo {
|
|
21
|
-
formId: string;
|
|
22
|
-
timeStart: Date;
|
|
23
|
-
timeEnd: Date;
|
|
24
|
-
completedForms: number;
|
|
25
|
-
records: DashBoardFormsSubmittedFormRecord[];
|
|
26
|
-
}
|
|
27
|
-
export declare class DashBoardFormsSubmittedFormRecord {
|
|
28
|
-
id: string;
|
|
29
|
-
tags: FormTag[];
|
|
30
|
-
responses: DashBoardFormsSubmittedFormResponse[];
|
|
31
|
-
expireAt: Date;
|
|
32
|
-
createdAt: Date;
|
|
33
|
-
completedAt: Date;
|
|
34
|
-
}
|
|
35
|
-
export declare class DashBoardFormsSubmittedFormResponse {
|
|
36
|
-
questionId: string;
|
|
37
|
-
question: string;
|
|
38
|
-
type: FormItemType;
|
|
39
|
-
response: any;
|
|
40
|
-
}
|
|
41
|
-
export declare class FormTag {
|
|
42
|
-
name: string;
|
|
43
|
-
value: string;
|
|
44
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormTag = exports.DashBoardFormsSubmittedFormResponse = exports.DashBoardFormsSubmittedFormRecord = exports.DashBoardFormsSubmittedFormsInfo = exports.DashBoardFormsResponseSummary = exports.DashBoardFormsQuestionSummary = exports.DashBoardFormsSummaryInfo = void 0;
|
|
4
|
-
class DashBoardFormsSummaryInfo {
|
|
5
|
-
}
|
|
6
|
-
exports.DashBoardFormsSummaryInfo = DashBoardFormsSummaryInfo;
|
|
7
|
-
class DashBoardFormsQuestionSummary {
|
|
8
|
-
}
|
|
9
|
-
exports.DashBoardFormsQuestionSummary = DashBoardFormsQuestionSummary;
|
|
10
|
-
class DashBoardFormsResponseSummary {
|
|
11
|
-
}
|
|
12
|
-
exports.DashBoardFormsResponseSummary = DashBoardFormsResponseSummary;
|
|
13
|
-
class DashBoardFormsSubmittedFormsInfo {
|
|
14
|
-
}
|
|
15
|
-
exports.DashBoardFormsSubmittedFormsInfo = DashBoardFormsSubmittedFormsInfo;
|
|
16
|
-
class DashBoardFormsSubmittedFormRecord {
|
|
17
|
-
}
|
|
18
|
-
exports.DashBoardFormsSubmittedFormRecord = DashBoardFormsSubmittedFormRecord;
|
|
19
|
-
class DashBoardFormsSubmittedFormResponse {
|
|
20
|
-
}
|
|
21
|
-
exports.DashBoardFormsSubmittedFormResponse = DashBoardFormsSubmittedFormResponse;
|
|
22
|
-
class FormTag {
|
|
23
|
-
}
|
|
24
|
-
exports.FormTag = FormTag;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface InboxCounters {
|
|
2
|
-
spaceId: string;
|
|
3
|
-
userId: string;
|
|
4
|
-
pending: number;
|
|
5
|
-
following: number;
|
|
6
|
-
slaWarning: number;
|
|
7
|
-
slaBreached: number;
|
|
8
|
-
teamSlaBreached: number;
|
|
9
|
-
finalized: number;
|
|
10
|
-
spam: number;
|
|
11
|
-
tags: TagCount[];
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
}
|
|
14
|
-
export interface TagCount {
|
|
15
|
-
tagId: string;
|
|
16
|
-
name: string;
|
|
17
|
-
count: number;
|
|
18
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { FormItemType } from "../../Common/Channels/Form";
|
|
2
|
-
export declare class DashBoardFormsSummaryInfo {
|
|
3
|
-
formId: string;
|
|
4
|
-
timeStart: Date;
|
|
5
|
-
timeEnd: Date;
|
|
6
|
-
completedForms: number;
|
|
7
|
-
records: DashBoardFormsQuestionSummary[];
|
|
8
|
-
}
|
|
9
|
-
export declare class DashBoardFormsQuestionSummary {
|
|
10
|
-
questionId: string;
|
|
11
|
-
question: string;
|
|
12
|
-
type: FormItemType;
|
|
13
|
-
count: number;
|
|
14
|
-
responses: DashBoardFormsResponseSummary[];
|
|
15
|
-
}
|
|
16
|
-
export declare class DashBoardFormsResponseSummary {
|
|
17
|
-
count: number;
|
|
18
|
-
responseTitle: string;
|
|
19
|
-
}
|
|
20
|
-
export declare class DashBoardFormsSubmittedFormsInfo {
|
|
21
|
-
formId: string;
|
|
22
|
-
timeStart: Date;
|
|
23
|
-
timeEnd: Date;
|
|
24
|
-
completedForms: number;
|
|
25
|
-
records: DashBoardFormsSubmittedFormRecord[];
|
|
26
|
-
}
|
|
27
|
-
export declare class DashBoardFormsSubmittedFormRecord {
|
|
28
|
-
id: string;
|
|
29
|
-
tags: FormTag[];
|
|
30
|
-
responses: DashBoardFormsSubmittedFormResponse[];
|
|
31
|
-
expireAt: Date;
|
|
32
|
-
createdAt: Date;
|
|
33
|
-
completedAt: Date;
|
|
34
|
-
}
|
|
35
|
-
export declare class DashBoardFormsSubmittedFormResponse {
|
|
36
|
-
questionId: string;
|
|
37
|
-
question: string;
|
|
38
|
-
type: FormItemType;
|
|
39
|
-
response: any;
|
|
40
|
-
}
|
|
41
|
-
export declare class FormTag {
|
|
42
|
-
name: string;
|
|
43
|
-
value: string;
|
|
44
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormTag = exports.DashBoardFormsSubmittedFormResponse = exports.DashBoardFormsSubmittedFormRecord = exports.DashBoardFormsSubmittedFormsInfo = exports.DashBoardFormsResponseSummary = exports.DashBoardFormsQuestionSummary = exports.DashBoardFormsSummaryInfo = void 0;
|
|
4
|
-
class DashBoardFormsSummaryInfo {
|
|
5
|
-
}
|
|
6
|
-
exports.DashBoardFormsSummaryInfo = DashBoardFormsSummaryInfo;
|
|
7
|
-
class DashBoardFormsQuestionSummary {
|
|
8
|
-
}
|
|
9
|
-
exports.DashBoardFormsQuestionSummary = DashBoardFormsQuestionSummary;
|
|
10
|
-
class DashBoardFormsResponseSummary {
|
|
11
|
-
}
|
|
12
|
-
exports.DashBoardFormsResponseSummary = DashBoardFormsResponseSummary;
|
|
13
|
-
class DashBoardFormsSubmittedFormsInfo {
|
|
14
|
-
}
|
|
15
|
-
exports.DashBoardFormsSubmittedFormsInfo = DashBoardFormsSubmittedFormsInfo;
|
|
16
|
-
class DashBoardFormsSubmittedFormRecord {
|
|
17
|
-
}
|
|
18
|
-
exports.DashBoardFormsSubmittedFormRecord = DashBoardFormsSubmittedFormRecord;
|
|
19
|
-
class DashBoardFormsSubmittedFormResponse {
|
|
20
|
-
}
|
|
21
|
-
exports.DashBoardFormsSubmittedFormResponse = DashBoardFormsSubmittedFormResponse;
|
|
22
|
-
class FormTag {
|
|
23
|
-
}
|
|
24
|
-
exports.FormTag = FormTag;
|
|
File without changes
|