@trii/types 2.10.273 → 2.10.275

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.
@@ -47,7 +47,7 @@ export interface IMessage {
47
47
  form?: MessageForm;
48
48
  ticket?: MessageTicket;
49
49
  email?: MessageEmail;
50
- buttons?: [];
50
+ buttons?: MessageButton[];
51
51
  poll?: MessagePoll;
52
52
  reactions?: MessageReaction[];
53
53
  messageReference?: MessageReference;
@@ -262,6 +262,16 @@ export interface MessageForm {
262
262
  expireAt?: Date;
263
263
  completedAt?: Date;
264
264
  }
265
+ export interface MessageButton {
266
+ text: string;
267
+ url: string;
268
+ payload: string;
269
+ type: MessageButtonType;
270
+ }
271
+ export declare enum MessageButtonType {
272
+ TEXT = 0,
273
+ URL = 1
274
+ }
265
275
  export interface MessageFormResponse {
266
276
  question: string;
267
277
  response: string;
@@ -31,6 +31,11 @@ export var MessageCdrCallStatus;
31
31
  MessageCdrCallStatus[MessageCdrCallStatus["UNANSWERED"] = 2] = "UNANSWERED";
32
32
  MessageCdrCallStatus[MessageCdrCallStatus["LOST"] = 3] = "LOST";
33
33
  })(MessageCdrCallStatus || (MessageCdrCallStatus = {}));
34
+ export var MessageButtonType;
35
+ (function (MessageButtonType) {
36
+ MessageButtonType[MessageButtonType["TEXT"] = 0] = "TEXT";
37
+ MessageButtonType[MessageButtonType["URL"] = 1] = "URL";
38
+ })(MessageButtonType || (MessageButtonType = {}));
34
39
  export var MessageFormStatus;
35
40
  (function (MessageFormStatus) {
36
41
  MessageFormStatus[MessageFormStatus["pending"] = 0] = "pending";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.273",
3
+ "version": "2.10.275",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",