@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.
Files changed (2) hide show
  1. package/dist/index.d.cts +14 -7
  2. 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
- interface WaInteractiveHeader {
365
- document?: WaOutgoingDocumentMessage;
366
- image?: WaOutgoingImageMessage;
367
- video?: WaOutgoingVideoMessage;
364
+ type WaInteractiveHeader = {
365
+ sub_text?: string;
366
+ } & ({
367
+ type: "text";
368
368
  text: string;
369
- type: "text" | "video" | "image" | "document";
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
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.0.10",
7
+ "version": "0.0.12",
8
8
  "type": "module",
9
9
  "files": [
10
10
  "dist"