@trii/types 2.10.634 → 2.10.636
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.
|
@@ -31,7 +31,7 @@ export interface WhatsAppConfig {
|
|
|
31
31
|
apiqrVersion?: string;
|
|
32
32
|
apiqrPhoneNumber?: string;
|
|
33
33
|
onboardingCompleted: boolean;
|
|
34
|
-
|
|
34
|
+
manualConfiguration: boolean;
|
|
35
35
|
cloudApiSystemUserAccessToken?: string;
|
|
36
36
|
cloudApiAppToken?: string;
|
|
37
37
|
cloudApiMetaDeveloperAppId?: string;
|
|
@@ -12,6 +12,9 @@ export interface Template {
|
|
|
12
12
|
buttons?: TemplateButton[];
|
|
13
13
|
header: TemplateHeader;
|
|
14
14
|
footer: string;
|
|
15
|
+
add_security_recommendation?: boolean;
|
|
16
|
+
code_expiration_minutes?: number;
|
|
17
|
+
message_send_ttl_seconds?: number;
|
|
15
18
|
varsBody?: TemplateVar[];
|
|
16
19
|
varsHeader?: TemplateVar[];
|
|
17
20
|
varsFooter?: TemplateVar[];
|
|
@@ -56,10 +59,22 @@ export interface TemplateButton {
|
|
|
56
59
|
url: string;
|
|
57
60
|
payload: string;
|
|
58
61
|
type: TemplateButtonType;
|
|
62
|
+
package_name?: string;
|
|
63
|
+
signature_hash?: string;
|
|
64
|
+
autofill_text?: string;
|
|
65
|
+
zero_tap_terms_accepted?: boolean;
|
|
66
|
+
supported_apps?: TemplateButtonApp[];
|
|
59
67
|
}
|
|
60
68
|
export declare enum TemplateButtonType {
|
|
61
69
|
TEXT = 0,
|
|
62
|
-
URL = 1
|
|
70
|
+
URL = 1,
|
|
71
|
+
COPY_CODE = 2,
|
|
72
|
+
ONE_TAP = 3,
|
|
73
|
+
ZERO_TAP = 4
|
|
74
|
+
}
|
|
75
|
+
export interface TemplateButtonApp {
|
|
76
|
+
package_name: string;
|
|
77
|
+
signature_hash: string;
|
|
63
78
|
}
|
|
64
79
|
export interface TemplateVar {
|
|
65
80
|
name: string;
|
|
@@ -20,4 +20,7 @@ var TemplateButtonType;
|
|
|
20
20
|
(function (TemplateButtonType) {
|
|
21
21
|
TemplateButtonType[TemplateButtonType["TEXT"] = 0] = "TEXT";
|
|
22
22
|
TemplateButtonType[TemplateButtonType["URL"] = 1] = "URL";
|
|
23
|
+
TemplateButtonType[TemplateButtonType["COPY_CODE"] = 2] = "COPY_CODE";
|
|
24
|
+
TemplateButtonType[TemplateButtonType["ONE_TAP"] = 3] = "ONE_TAP";
|
|
25
|
+
TemplateButtonType[TemplateButtonType["ZERO_TAP"] = 4] = "ZERO_TAP";
|
|
23
26
|
})(TemplateButtonType || (exports.TemplateButtonType = TemplateButtonType = {}));
|
|
@@ -109,9 +109,14 @@ export interface INode {
|
|
|
109
109
|
name: string;
|
|
110
110
|
nameKey?: string;
|
|
111
111
|
enableStatics?: boolean | false;
|
|
112
|
+
propertiesTabs: INodeTab[];
|
|
112
113
|
properties: INodeProperty[];
|
|
113
114
|
values?: ICommonObject;
|
|
114
115
|
}
|
|
116
|
+
export interface INodeTab {
|
|
117
|
+
id: string;
|
|
118
|
+
label: string;
|
|
119
|
+
}
|
|
115
120
|
export interface INodeHandle {
|
|
116
121
|
id: string;
|
|
117
122
|
name: string;
|
|
@@ -182,8 +187,7 @@ export interface INodeProperty {
|
|
|
182
187
|
hideCodeExecute?: boolean;
|
|
183
188
|
codeExample?: string;
|
|
184
189
|
hint?: Record<string, string>;
|
|
185
|
-
|
|
186
|
-
tabs?: Array<INodeProperty>;
|
|
190
|
+
tabId?: string;
|
|
187
191
|
refresh?: boolean;
|
|
188
192
|
freeSolo?: boolean;
|
|
189
193
|
loadPreviousNodes?: boolean;
|