@botonic/react 0.43.0 → 0.43.1
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.
|
@@ -28,9 +28,15 @@ export interface WhatsappTemplateHeaderImageParameter {
|
|
|
28
28
|
link: string;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
export interface WhatsappTemplateHeaderVideoParameter {
|
|
32
|
+
type: WhatsAppTemplateParameterType.VIDEO;
|
|
33
|
+
video: {
|
|
34
|
+
link: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
31
37
|
export interface WhatsappTemplateComponentHeader {
|
|
32
38
|
type: WhatsAppTemplateComponentType.HEADER;
|
|
33
|
-
parameters: WhatsappTemplateHeaderTextParameter[] | WhatsappTemplateHeaderImageParameter[];
|
|
39
|
+
parameters: WhatsappTemplateHeaderTextParameter[] | WhatsappTemplateHeaderImageParameter[] | WhatsappTemplateHeaderVideoParameter[];
|
|
34
40
|
}
|
|
35
41
|
export interface WhatsappTemplateComponentBody {
|
|
36
42
|
type: WhatsAppTemplateComponentType.BODY;
|
|
@@ -28,9 +28,15 @@ export interface WhatsappTemplateHeaderImageParameter {
|
|
|
28
28
|
link: string;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
export interface WhatsappTemplateHeaderVideoParameter {
|
|
32
|
+
type: WhatsAppTemplateParameterType.VIDEO;
|
|
33
|
+
video: {
|
|
34
|
+
link: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
31
37
|
export interface WhatsappTemplateComponentHeader {
|
|
32
38
|
type: WhatsAppTemplateComponentType.HEADER;
|
|
33
|
-
parameters: WhatsappTemplateHeaderTextParameter[] | WhatsappTemplateHeaderImageParameter[];
|
|
39
|
+
parameters: WhatsappTemplateHeaderTextParameter[] | WhatsappTemplateHeaderImageParameter[] | WhatsappTemplateHeaderVideoParameter[];
|
|
34
40
|
}
|
|
35
41
|
export interface WhatsappTemplateComponentBody {
|
|
36
42
|
type: WhatsAppTemplateComponentType.BODY;
|
package/package.json
CHANGED
|
@@ -33,15 +33,19 @@ export interface WhatsappTemplateHeaderImageParameter {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export interface WhatsappTemplateHeaderVideoParameter {
|
|
37
|
+
type: WhatsAppTemplateParameterType.VIDEO
|
|
38
|
+
video: {
|
|
39
|
+
link: string
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
36
43
|
export interface WhatsappTemplateComponentHeader {
|
|
37
44
|
type: WhatsAppTemplateComponentType.HEADER
|
|
38
45
|
parameters:
|
|
39
46
|
| WhatsappTemplateHeaderTextParameter[]
|
|
40
47
|
| WhatsappTemplateHeaderImageParameter[]
|
|
41
|
-
|
|
42
|
-
// type: WhatsAppTemplateParameterType.VIDEO
|
|
43
|
-
// video: string
|
|
44
|
-
// }[]
|
|
48
|
+
| WhatsappTemplateHeaderVideoParameter[]
|
|
45
49
|
// | {
|
|
46
50
|
// type: WhatsAppTemplateParameterType.DOCUMENT
|
|
47
51
|
// document: string
|