@trii/types 2.10.262 → 2.10.264

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.
@@ -0,0 +1,40 @@
1
+ export interface Template {
2
+ id: string;
3
+ spaceId: string;
4
+ channelId?: string;
5
+ name?: string;
6
+ namespace?: string;
7
+ language?: string;
8
+ category?: string;
9
+ contentSid?: string;
10
+ body: string;
11
+ buttons?: TemplateButton[];
12
+ header: string;
13
+ footer: string;
14
+ varsBody?: TemplateVar[];
15
+ varsHeader?: TemplateVar[];
16
+ varsFooter?: TemplateVar[];
17
+ status: TemplateStatus;
18
+ rejectedReason: boolean;
19
+ timestamp?: Date;
20
+ }
21
+ export declare enum TemplateStatus {
22
+ PENDING = 0,
23
+ APPROVED = 1,
24
+ REJECTED = 2,
25
+ PROCESSING = 3
26
+ }
27
+ export interface TemplateButton {
28
+ text: string;
29
+ url: string;
30
+ payload: string;
31
+ type: TemplateButtonType;
32
+ }
33
+ export declare enum TemplateButtonType {
34
+ TEXT = 0,
35
+ URL = 1
36
+ }
37
+ export interface TemplateVar {
38
+ name: string;
39
+ value: string;
40
+ }
@@ -0,0 +1,12 @@
1
+ export var TemplateStatus;
2
+ (function (TemplateStatus) {
3
+ TemplateStatus[TemplateStatus["PENDING"] = 0] = "PENDING";
4
+ TemplateStatus[TemplateStatus["APPROVED"] = 1] = "APPROVED";
5
+ TemplateStatus[TemplateStatus["REJECTED"] = 2] = "REJECTED";
6
+ TemplateStatus[TemplateStatus["PROCESSING"] = 3] = "PROCESSING";
7
+ })(TemplateStatus || (TemplateStatus = {}));
8
+ export var TemplateButtonType;
9
+ (function (TemplateButtonType) {
10
+ TemplateButtonType[TemplateButtonType["TEXT"] = 0] = "TEXT";
11
+ TemplateButtonType[TemplateButtonType["URL"] = 1] = "URL";
12
+ })(TemplateButtonType || (TemplateButtonType = {}));
@@ -1,2 +1,3 @@
1
1
  export * from "./Message";
2
2
  export * from "./MediaFile";
3
+ export * from "./Template";
@@ -1,2 +1,3 @@
1
1
  export * from "./Message";
2
2
  export * from "./MediaFile";
3
+ export * from "./Template";
@@ -39,6 +39,15 @@ export declare class EndingsDashboard {
39
39
  quantity: number;
40
40
  }
41
41
  export declare class MembersDashboard {
42
+ optionsList: MembersDashboardOption[];
43
+ values: MembersDashboardValue[];
44
+ }
45
+ export declare class MembersDashboardOption {
46
+ key: string;
47
+ name: string;
48
+ }
49
+ export declare class MembersDashboardValue {
50
+ key: string;
42
51
  activeConversations: number;
43
52
  inProgressConversations: number;
44
53
  expiredConversations: number;
@@ -26,6 +26,10 @@ export class EndingsDashboard {
26
26
  }
27
27
  export class MembersDashboard {
28
28
  }
29
+ export class MembersDashboardOption {
30
+ }
31
+ export class MembersDashboardValue {
32
+ }
29
33
  export class ChannelsDashboard {
30
34
  }
31
35
  export class LabelsDashboard {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.262",
3
+ "version": "2.10.264",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",