@trii/types 2.10.262 → 2.10.263
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 = {}));
|