@trii/types 2.10.250 → 2.10.251
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.
|
@@ -226,6 +226,23 @@ export interface MessageInfo {
|
|
|
226
226
|
export interface MessageTicket {
|
|
227
227
|
}
|
|
228
228
|
export interface MessageForm {
|
|
229
|
+
url: string;
|
|
230
|
+
title?: string;
|
|
231
|
+
subTitle?: string;
|
|
232
|
+
color?: string;
|
|
233
|
+
status: MessageFormStatus;
|
|
234
|
+
responses?: MessageFormResponse[];
|
|
235
|
+
expireAt?: Date;
|
|
236
|
+
completedAt?: Date;
|
|
237
|
+
}
|
|
238
|
+
export interface MessageFormResponse {
|
|
239
|
+
question: string;
|
|
240
|
+
response: string;
|
|
241
|
+
}
|
|
242
|
+
export declare enum MessageFormStatus {
|
|
243
|
+
pending = 0,
|
|
244
|
+
completed = 1,
|
|
245
|
+
expired = 2
|
|
229
246
|
}
|
|
230
247
|
export interface MessagePoll {
|
|
231
248
|
pollName: string;
|
|
@@ -30,3 +30,9 @@ export var MessageCdrCallStatus;
|
|
|
30
30
|
MessageCdrCallStatus[MessageCdrCallStatus["UNANSWERED"] = 2] = "UNANSWERED";
|
|
31
31
|
MessageCdrCallStatus[MessageCdrCallStatus["LOST"] = 3] = "LOST";
|
|
32
32
|
})(MessageCdrCallStatus || (MessageCdrCallStatus = {}));
|
|
33
|
+
export var MessageFormStatus;
|
|
34
|
+
(function (MessageFormStatus) {
|
|
35
|
+
MessageFormStatus[MessageFormStatus["pending"] = 0] = "pending";
|
|
36
|
+
MessageFormStatus[MessageFormStatus["completed"] = 1] = "completed";
|
|
37
|
+
MessageFormStatus[MessageFormStatus["expired"] = 2] = "expired";
|
|
38
|
+
})(MessageFormStatus || (MessageFormStatus = {}));
|