@apostlejs/whatsapp 0.0.10 → 0.0.12
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.
- package/dist/index.d.cts +14 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -361,13 +361,21 @@ interface WaInteractiveBody {
|
|
|
361
361
|
interface WaInteractiveFooter {
|
|
362
362
|
text: string;
|
|
363
363
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
364
|
+
type WaInteractiveHeader = {
|
|
365
|
+
sub_text?: string;
|
|
366
|
+
} & ({
|
|
367
|
+
type: "text";
|
|
368
368
|
text: string;
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
} | {
|
|
370
|
+
video: WaOutgoingVideoMessage;
|
|
371
|
+
type: "video";
|
|
372
|
+
} | {
|
|
373
|
+
type: "document";
|
|
374
|
+
document: WaOutgoingDocumentMessage;
|
|
375
|
+
} | {
|
|
376
|
+
image: WaOutgoingImageMessage;
|
|
377
|
+
type: "image";
|
|
378
|
+
});
|
|
371
379
|
type WaInteractiveActionType = "button" | "catalog_message" | "list" | "product" | "product_list" | "flow";
|
|
372
380
|
interface WaInteractiveBase {
|
|
373
381
|
type: WaInteractiveActionType;
|
|
@@ -1687,7 +1695,6 @@ type MessageReceivedEventPayload = BaseMessageReceivedEventPayload & {
|
|
|
1687
1695
|
};
|
|
1688
1696
|
flowResponse?: {
|
|
1689
1697
|
flow_token: string;
|
|
1690
|
-
intent: string | null;
|
|
1691
1698
|
} & {
|
|
1692
1699
|
[key: string]: AnyType;
|
|
1693
1700
|
};
|