meta-cloud-api 1.1.2 → 1.1.4

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 (234) hide show
  1. package/dist/WebhookProcessor-BUZFeZD_.js +3 -0
  2. package/dist/WebhookProcessor-BUZFeZD_.js.map +1 -0
  3. package/dist/WebhookProcessor-Dq2Pa2cY.d.ts +718 -0
  4. package/dist/WebhookProcessor-Dq2Pa2cY.d.ts.map +1 -0
  5. package/dist/api/encryption/index.d.ts +3 -10
  6. package/dist/api/encryption/index.js +1 -2
  7. package/dist/api/flow/index.d.ts +5 -11
  8. package/dist/api/flow/index.js +1 -2
  9. package/dist/api/index.d.ts +17 -18
  10. package/dist/api/index.js +1 -2
  11. package/dist/api/media/index.d.ts +3 -10
  12. package/dist/api/media/index.js +1 -2
  13. package/dist/api/messages/builders/index.d.ts +442 -439
  14. package/dist/api/messages/builders/index.d.ts.map +1 -0
  15. package/dist/api/messages/builders/index.js +1 -3
  16. package/dist/api/messages/builders/index.js.map +1 -1
  17. package/dist/api/messages/index.d.ts +4 -10
  18. package/dist/api/messages/index.js +1 -2
  19. package/dist/api/phone/index.d.ts +3 -10
  20. package/dist/api/phone/index.js +1 -2
  21. package/dist/api/profile/index.d.ts +3 -10
  22. package/dist/api/profile/index.js +1 -2
  23. package/dist/api/qrCode/index.d.ts +3 -10
  24. package/dist/api/qrCode/index.js +1 -2
  25. package/dist/api/registration/index.d.ts +3 -10
  26. package/dist/api/registration/index.js +1 -2
  27. package/dist/api/template/index.d.ts +3 -21
  28. package/dist/api/template/index.js +1 -2
  29. package/dist/api/twoStepVerification/index.d.ts +3 -10
  30. package/dist/api/twoStepVerification/index.js +1 -2
  31. package/dist/api/waba/index.d.ts +3 -10
  32. package/dist/api/waba/index.js +1 -2
  33. package/dist/api-8hRAOyaL.js +1 -0
  34. package/dist/base-CfDkvT1x.d.ts +807 -0
  35. package/dist/base-CfDkvT1x.d.ts.map +1 -0
  36. package/dist/base-D-cXu_lA.js +2 -0
  37. package/dist/base-D-cXu_lA.js.map +1 -0
  38. package/dist/buildFieldsQueryString-Cr-jz3p0.js +2 -0
  39. package/dist/buildFieldsQueryString-Cr-jz3p0.js.map +1 -0
  40. package/dist/chunk-CTAAG5j7.js +1 -0
  41. package/dist/common-C6FXBDm7.js +2 -0
  42. package/dist/common-C6FXBDm7.js.map +1 -0
  43. package/dist/common-CVbsmD26.d.ts +426 -0
  44. package/dist/common-CVbsmD26.d.ts.map +1 -0
  45. package/dist/common-CvPVD1o6.d.ts +406 -0
  46. package/dist/common-CvPVD1o6.d.ts.map +1 -0
  47. package/dist/core/webhook/frameworks/express.d.ts +20 -53
  48. package/dist/core/webhook/frameworks/express.js +1 -2
  49. package/dist/core/webhook/frameworks/nextjs-app.d.ts +36 -39
  50. package/dist/core/webhook/frameworks/nextjs-app.d.ts.map +1 -0
  51. package/dist/core/webhook/frameworks/nextjs-app.js +1 -1
  52. package/dist/core/webhook/frameworks/nextjs-app.js.map +1 -1
  53. package/dist/core/webhook/frameworks/nextjs.d.ts +20 -49
  54. package/dist/core/webhook/frameworks/nextjs.js +1 -2
  55. package/dist/core/webhook/index.d.ts +20 -29
  56. package/dist/core/webhook/index.js +1 -2
  57. package/dist/core/whatsapp/index.d.ts +18 -42
  58. package/dist/core/whatsapp/index.js +1 -2
  59. package/dist/encryption-Cwc0xcVL.js +2 -0
  60. package/dist/encryption-Cwc0xcVL.js.map +1 -0
  61. package/dist/enums-CSUpFXb8.js +2 -0
  62. package/dist/enums-CSUpFXb8.js.map +1 -0
  63. package/dist/express-B6fQdflY.d.ts +78 -0
  64. package/dist/express-B6fQdflY.d.ts.map +1 -0
  65. package/dist/express-CrfNLYMM.js +2 -0
  66. package/dist/express-CrfNLYMM.js.map +1 -0
  67. package/dist/flow-CVes0Qus.js +2 -0
  68. package/dist/flow-CVes0Qus.js.map +1 -0
  69. package/dist/flowTypeGuards-Gn3-slCW.js +2 -0
  70. package/dist/flowTypeGuards-Gn3-slCW.js.map +1 -0
  71. package/dist/handler-BGqjZ0xg.js +2 -0
  72. package/dist/handler-BGqjZ0xg.js.map +1 -0
  73. package/dist/index-3KglHVAg.d.ts +354 -0
  74. package/dist/index-3KglHVAg.d.ts.map +1 -0
  75. package/dist/index-BNeg6hHx.d.ts +99 -0
  76. package/dist/index-BNeg6hHx.d.ts.map +1 -0
  77. package/dist/index-BiTq23oi.d.ts +34 -0
  78. package/dist/index-BiTq23oi.d.ts.map +1 -0
  79. package/dist/index-BmfnREgM.d.ts +47 -0
  80. package/dist/index-BmfnREgM.d.ts.map +1 -0
  81. package/dist/index-CaGffSja.d.ts +24 -0
  82. package/dist/index-CaGffSja.d.ts.map +1 -0
  83. package/dist/index-CeTmbIXi.d.ts +180 -0
  84. package/dist/index-CeTmbIXi.d.ts.map +1 -0
  85. package/dist/index-CoyByMuM.d.ts +137 -0
  86. package/dist/index-CoyByMuM.d.ts.map +1 -0
  87. package/dist/index-CwujtcvH.d.ts +370 -0
  88. package/dist/index-CwujtcvH.d.ts.map +1 -0
  89. package/dist/index-DQ7z58xp.d.ts +104 -0
  90. package/dist/index-DQ7z58xp.d.ts.map +1 -0
  91. package/dist/index-DQkgkiB6.d.ts +30 -0
  92. package/dist/index-DQkgkiB6.d.ts.map +1 -0
  93. package/dist/index-LKrIp3Oo.d.ts +1 -0
  94. package/dist/index-_-06JPan.d.ts +143 -0
  95. package/dist/index-_-06JPan.d.ts.map +1 -0
  96. package/dist/index-a_YS40Iv.d.ts +91 -0
  97. package/dist/index-a_YS40Iv.d.ts.map +1 -0
  98. package/dist/index-d7TLqtYh.d.ts +171 -0
  99. package/dist/index-d7TLqtYh.d.ts.map +1 -0
  100. package/dist/index.d.ts +21 -27
  101. package/dist/index.js +1 -1
  102. package/dist/index.js.map +1 -1
  103. package/dist/{isMetaError-CQLXyEL4.d.ts → isMetaError-B3AglYeY.d.ts} +28 -25
  104. package/dist/isMetaError-B3AglYeY.d.ts.map +1 -0
  105. package/dist/media-Dw5OGzDD.js +2 -0
  106. package/dist/media-Dw5OGzDD.js.map +1 -0
  107. package/dist/messages-h5-NW8QO.js +2 -0
  108. package/dist/messages-h5-NW8QO.js.map +1 -0
  109. package/dist/nextjs-DxRCL4t3.js +2 -0
  110. package/dist/nextjs-DxRCL4t3.js.map +1 -0
  111. package/dist/objectToQueryString-CAHI0qTs.js +2 -0
  112. package/dist/objectToQueryString-CAHI0qTs.js.map +1 -0
  113. package/dist/phone-CZyWLyWB.js +2 -0
  114. package/dist/phone-CZyWLyWB.js.map +1 -0
  115. package/dist/profile-Bb7GDP0n.js +2 -0
  116. package/dist/profile-Bb7GDP0n.js.map +1 -0
  117. package/dist/qrCode-CeZEtX9J.js +2 -0
  118. package/dist/qrCode-CeZEtX9J.js.map +1 -0
  119. package/dist/registration-BkjhC3xw.js +2 -0
  120. package/dist/registration-BkjhC3xw.js.map +1 -0
  121. package/dist/template-Bgy-BCXJ.js +2 -0
  122. package/dist/template-Bgy-BCXJ.js.map +1 -0
  123. package/dist/twoStepVerification-DYlYF_P5.js +2 -0
  124. package/dist/twoStepVerification-DYlYF_P5.js.map +1 -0
  125. package/dist/types/index.d.ts +3 -6
  126. package/dist/types/index.js +1 -2
  127. package/dist/utils/index.d.ts +23 -20
  128. package/dist/utils/index.d.ts.map +1 -0
  129. package/dist/utils/index.js +1 -2
  130. package/dist/version-BUuqrHc6.js +3 -0
  131. package/dist/version-BUuqrHc6.js.map +1 -0
  132. package/dist/waba-SF2W3z2U.js +2 -0
  133. package/dist/waba-SF2W3z2U.js.map +1 -0
  134. package/dist/webhook-D4DQ01Xq.js +2 -0
  135. package/dist/webhook-D4DQ01Xq.js.map +1 -0
  136. package/dist/whatsapp-B85mxH5f.js +10 -0
  137. package/dist/whatsapp-B85mxH5f.js.map +1 -0
  138. package/package.json +27 -125
  139. package/dist/BusinessProfileApi-C_sEOrWM.d.ts +0 -353
  140. package/dist/EncryptionApi-CcCfeK2b.d.ts +0 -22
  141. package/dist/FlowApi-DDHrFT_Q.d.ts +0 -136
  142. package/dist/MediaApi-CY9RVo7u.d.ts +0 -90
  143. package/dist/MessageApi-CX_jN8da.d.ts +0 -171
  144. package/dist/PhoneNumberApi-B-hY7g1M.d.ts +0 -142
  145. package/dist/QrCodeApi-DRICKN04.d.ts +0 -98
  146. package/dist/RegistrationApi-CFPzU1Vw.d.ts +0 -47
  147. package/dist/TemplateApi-D9Q_7cf3.d.ts +0 -161
  148. package/dist/TwoStepVerificationApi-C0jpAKfu.d.ts +0 -33
  149. package/dist/WabaApi-BfvpkpFr.d.ts +0 -175
  150. package/dist/WebhookProcessor-C3oUXCBl.d.ts +0 -707
  151. package/dist/WhatsApp-BG0rDhMn.d.ts +0 -82
  152. package/dist/api/encryption/index.js.map +0 -1
  153. package/dist/api/flow/index.js.map +0 -1
  154. package/dist/api/index.js.map +0 -1
  155. package/dist/api/media/index.js.map +0 -1
  156. package/dist/api/messages/index.js.map +0 -1
  157. package/dist/api/phone/index.js.map +0 -1
  158. package/dist/api/profile/index.js.map +0 -1
  159. package/dist/api/qrCode/index.js.map +0 -1
  160. package/dist/api/registration/index.js.map +0 -1
  161. package/dist/api/template/index.js.map +0 -1
  162. package/dist/api/twoStepVerification/index.js.map +0 -1
  163. package/dist/api/waba/index.js.map +0 -1
  164. package/dist/base-BV6DyzGS.d.ts +0 -18
  165. package/dist/chunk-5577QQ7V.js +0 -2
  166. package/dist/chunk-5577QQ7V.js.map +0 -1
  167. package/dist/chunk-6DFC5L3X.js +0 -2
  168. package/dist/chunk-6DFC5L3X.js.map +0 -1
  169. package/dist/chunk-7QBIZCJ4.js +0 -2
  170. package/dist/chunk-7QBIZCJ4.js.map +0 -1
  171. package/dist/chunk-AMHQGG6Z.js +0 -2
  172. package/dist/chunk-AMHQGG6Z.js.map +0 -1
  173. package/dist/chunk-BAOZ4U74.js +0 -10
  174. package/dist/chunk-BAOZ4U74.js.map +0 -1
  175. package/dist/chunk-CRZ7EUYR.js +0 -2
  176. package/dist/chunk-CRZ7EUYR.js.map +0 -1
  177. package/dist/chunk-FKXSL2JK.js +0 -3
  178. package/dist/chunk-FKXSL2JK.js.map +0 -1
  179. package/dist/chunk-FSKBLPGE.js +0 -2
  180. package/dist/chunk-FSKBLPGE.js.map +0 -1
  181. package/dist/chunk-GM63NGNV.js +0 -2
  182. package/dist/chunk-GM63NGNV.js.map +0 -1
  183. package/dist/chunk-IYSR44P6.js +0 -2
  184. package/dist/chunk-IYSR44P6.js.map +0 -1
  185. package/dist/chunk-J2JPTKU6.js +0 -2
  186. package/dist/chunk-J2JPTKU6.js.map +0 -1
  187. package/dist/chunk-JC6YMVID.js +0 -2
  188. package/dist/chunk-JC6YMVID.js.map +0 -1
  189. package/dist/chunk-JPAV644F.js +0 -2
  190. package/dist/chunk-JPAV644F.js.map +0 -1
  191. package/dist/chunk-JXCLRKQ7.js +0 -2
  192. package/dist/chunk-JXCLRKQ7.js.map +0 -1
  193. package/dist/chunk-KMAH6636.js +0 -2
  194. package/dist/chunk-KMAH6636.js.map +0 -1
  195. package/dist/chunk-L4ESAO2S.js +0 -2
  196. package/dist/chunk-L4ESAO2S.js.map +0 -1
  197. package/dist/chunk-LV3TULSI.js +0 -2
  198. package/dist/chunk-LV3TULSI.js.map +0 -1
  199. package/dist/chunk-MJEG3K4V.js +0 -2
  200. package/dist/chunk-MJEG3K4V.js.map +0 -1
  201. package/dist/chunk-PHPQ5HP3.js +0 -2
  202. package/dist/chunk-PHPQ5HP3.js.map +0 -1
  203. package/dist/chunk-RIL6QABY.js +0 -2
  204. package/dist/chunk-RIL6QABY.js.map +0 -1
  205. package/dist/chunk-RWCVPWRC.js +0 -2
  206. package/dist/chunk-RWCVPWRC.js.map +0 -1
  207. package/dist/chunk-SNNRWNGZ.js +0 -2
  208. package/dist/chunk-SNNRWNGZ.js.map +0 -1
  209. package/dist/chunk-U5FBZ6UB.js +0 -3
  210. package/dist/chunk-U5FBZ6UB.js.map +0 -1
  211. package/dist/chunk-VHAODWCN.js +0 -2
  212. package/dist/chunk-VHAODWCN.js.map +0 -1
  213. package/dist/chunk-ZMNXRMWK.js +0 -2
  214. package/dist/chunk-ZMNXRMWK.js.map +0 -1
  215. package/dist/common-B8kp4RdL.d.ts +0 -403
  216. package/dist/common-CGbls9Y8.d.ts +0 -425
  217. package/dist/core/webhook/frameworks/express.js.map +0 -1
  218. package/dist/core/webhook/frameworks/nextjs.js.map +0 -1
  219. package/dist/core/webhook/index.js.map +0 -1
  220. package/dist/core/whatsapp/index.js.map +0 -1
  221. package/dist/enums-DIimUG6s.d.ts +0 -707
  222. package/dist/factory-B37vOPki.d.ts +0 -200
  223. package/dist/handler-DbySwF0E.d.ts +0 -20
  224. package/dist/httpsClient-Cbd2Y6mg.d.ts +0 -19
  225. package/dist/logger-BdE0Vyim.d.ts +0 -9
  226. package/dist/request-CUjrMn8R.d.ts +0 -50
  227. package/dist/types/config.d.ts +0 -78
  228. package/dist/types/config.js +0 -2
  229. package/dist/types/config.js.map +0 -1
  230. package/dist/types/enums.d.ts +0 -1
  231. package/dist/types/enums.js +0 -2
  232. package/dist/types/enums.js.map +0 -1
  233. package/dist/types/index.js.map +0 -1
  234. package/dist/utils/index.js.map +0 -1
@@ -1,536 +1,539 @@
1
- import { N as NameObject, h as AddressesObject, C as ContactObject, f as InteractiveObject, L as LocationObject, A as AudioMediaObject, D as DocumentMediaObject, I as ImageMediaObject, V as VideoMediaObject, e as StickerMediaObject, g as MessageTemplateObject, d as TextObject } from '../../../common-CGbls9Y8.js';
2
- import { f as InteractiveTypesEnum, P as ParametersTypesEnum, d as CurrencyCodesEnum, b as ComponentTypesEnum } from '../../../enums-DIimUG6s.js';
3
- import '../../../base-BV6DyzGS.js';
4
- import '../../../types/config.js';
5
- import '../../../request-CUjrMn8R.js';
1
+ import { ComponentTypesEnum, CurrencyCodesEnum, InteractiveTypesEnum, ParametersTypesEnum } from "../../../base-CfDkvT1x.js";
2
+ import { AddressesObject, AudioMediaObject, ContactObject, DocumentMediaObject, ImageMediaObject, InteractiveObject, LocationObject, MessageTemplateObject, NameObject, StickerMediaObject, TextObject, VideoMediaObject } from "../../../common-CVbsmD26.js";
6
3
 
4
+ //#region src/api/messages/builders/ContactMessageBuilder.d.ts
7
5
  /**
8
6
  * Builder class for creating contact messages with a fluent API
9
7
  */
10
8
  declare class ContactMessageBuilder {
11
- private contact;
12
- /**
13
- * Set the contact name (required)
14
- */
15
- setName(name: NameObject): this;
16
- /**
17
- * Set simple name with first name only
18
- */
19
- setSimpleName(firstName: string, lastName?: string): this;
20
- /**
21
- * Set full name details
22
- */
23
- setFullName(firstName: string, lastName?: string, middleName?: string, suffix?: string, prefix?: string): this;
24
- /**
25
- * Add phone numbers
26
- */
27
- addPhone(phone: string, type?: string, waId?: string): this;
28
- /**
29
- * Add email addresses
30
- */
31
- addEmail(email: string, type?: string): this;
32
- /**
33
- * Add address
34
- */
35
- addAddress(address: AddressesObject): this;
36
- /**
37
- * Add simple address
38
- */
39
- addSimpleAddress(street: string, city: string, country: string, type?: string): this;
40
- /**
41
- * Set organization details
42
- */
43
- setOrganization(company: string, department?: string, title?: string): this;
44
- /**
45
- * Add URL
46
- */
47
- addUrl(url: string, type?: string): this;
48
- /**
49
- * Set birthday (format: YYYY-MM-DD)
50
- */
51
- setBirthday(year: number, month: number, day: number): this;
52
- /**
53
- * Build the final contact object
54
- */
55
- build(): ContactObject;
56
- /**
57
- * Reset the builder for reuse
58
- */
59
- reset(): this;
9
+ private contact;
10
+ /**
11
+ * Set the contact name (required)
12
+ */
13
+ setName(name: NameObject): this;
14
+ /**
15
+ * Set simple name with first name only
16
+ */
17
+ setSimpleName(firstName: string, lastName?: string): this;
18
+ /**
19
+ * Set full name details
20
+ */
21
+ setFullName(firstName: string, lastName?: string, middleName?: string, suffix?: string, prefix?: string): this;
22
+ /**
23
+ * Add phone numbers
24
+ */
25
+ addPhone(phone: string, type?: string, waId?: string): this;
26
+ /**
27
+ * Add email addresses
28
+ */
29
+ addEmail(email: string, type?: string): this;
30
+ /**
31
+ * Add address
32
+ */
33
+ addAddress(address: AddressesObject): this;
34
+ /**
35
+ * Add simple address
36
+ */
37
+ addSimpleAddress(street: string, city: string, country: string, type?: string): this;
38
+ /**
39
+ * Set organization details
40
+ */
41
+ setOrganization(company: string, department?: string, title?: string): this;
42
+ /**
43
+ * Add URL
44
+ */
45
+ addUrl(url: string, type?: string): this;
46
+ /**
47
+ * Set birthday (format: YYYY-MM-DD)
48
+ */
49
+ setBirthday(year: number, month: number, day: number): this;
50
+ /**
51
+ * Build the final contact object
52
+ */
53
+ build(): ContactObject;
54
+ /**
55
+ * Reset the builder for reuse
56
+ */
57
+ reset(): this;
60
58
  }
61
59
  /**
62
60
  * Factory class for common contact patterns
63
61
  */
64
62
  declare class ContactMessageFactory {
65
- /**
66
- * Create a simple contact with name and phone
67
- */
68
- static createSimpleContact(firstName: string, phone: string): ContactObject;
69
- /**
70
- * Create a business contact
71
- */
72
- static createBusinessContact(firstName: string, lastName: string, company: string, title: string, phone: string, email: string): ContactObject;
73
- /**
74
- * Create a personal contact with full details
75
- */
76
- static createPersonalContact(firstName: string, lastName: string, mobilePhone: string, email?: string, birthday?: {
77
- year: number;
78
- month: number;
79
- day: number;
80
- }): ContactObject;
63
+ /**
64
+ * Create a simple contact with name and phone
65
+ */
66
+ static createSimpleContact(firstName: string, phone: string): ContactObject;
67
+ /**
68
+ * Create a business contact
69
+ */
70
+ static createBusinessContact(firstName: string, lastName: string, company: string, title: string, phone: string, email: string): ContactObject;
71
+ /**
72
+ * Create a personal contact with full details
73
+ */
74
+ static createPersonalContact(firstName: string, lastName: string, mobilePhone: string, email?: string, birthday?: {
75
+ year: number;
76
+ month: number;
77
+ day: number;
78
+ }): ContactObject;
81
79
  }
82
-
80
+ //#endregion
81
+ //#region src/api/messages/builders/InteractiveMessageBuilder.d.ts
83
82
  /**
84
83
  * Builder class for creating interactive messages with a fluent API
85
84
  */
86
85
  declare class InteractiveMessageBuilder {
87
- private message;
88
- /**
89
- * Set the interactive message type
90
- */
91
- setType(type: InteractiveTypesEnum): this;
92
- /**
93
- * Set the body text of the message
94
- */
95
- setBody(text: string): this;
96
- /**
97
- * Set the footer text of the message
98
- */
99
- setFooter(text: string): this;
100
- /**
101
- * Set a text header
102
- */
103
- setTextHeader(text: string): this;
104
- /**
105
- * Set an image header
106
- */
107
- setImageHeader(imageUrl: string): this;
108
- /**
109
- * Add reply buttons (for button type messages)
110
- */
111
- addReplyButtons(buttons: Array<{
112
- id: string;
113
- title: string;
114
- }>): this;
115
- /**
116
- * Add list sections (for list type messages)
117
- * Note: This creates a single section with multiple rows
118
- */
119
- addListSections(sections: Array<{
120
- title?: string;
121
- rows: Array<{
122
- id: string;
123
- title: string;
124
- description?: string;
125
- }>;
126
- }>): this;
127
- /**
128
- * Set the button text for list messages
129
- */
130
- setListButtonText(buttonText: string): this;
131
- /**
132
- * Set CTA URL action
133
- */
134
- setCTAUrl(displayText: string, url: string): this;
135
- /**
136
- * Build the final interactive object
137
- */
138
- build(): InteractiveObject;
139
- /**
140
- * Reset the builder for reuse
141
- */
142
- reset(): this;
86
+ private message;
87
+ /**
88
+ * Set the interactive message type
89
+ */
90
+ setType(type: InteractiveTypesEnum): this;
91
+ /**
92
+ * Set the body text of the message
93
+ */
94
+ setBody(text: string): this;
95
+ /**
96
+ * Set the footer text of the message
97
+ */
98
+ setFooter(text: string): this;
99
+ /**
100
+ * Set a text header
101
+ */
102
+ setTextHeader(text: string): this;
103
+ /**
104
+ * Set an image header
105
+ */
106
+ setImageHeader(imageUrl: string): this;
107
+ /**
108
+ * Add reply buttons (for button type messages)
109
+ */
110
+ addReplyButtons(buttons: Array<{
111
+ id: string;
112
+ title: string;
113
+ }>): this;
114
+ /**
115
+ * Add list sections (for list type messages)
116
+ * Note: This creates a single section with multiple rows
117
+ */
118
+ addListSections(sections: Array<{
119
+ title?: string;
120
+ rows: Array<{
121
+ id: string;
122
+ title: string;
123
+ description?: string;
124
+ }>;
125
+ }>): this;
126
+ /**
127
+ * Set the button text for list messages
128
+ */
129
+ setListButtonText(buttonText: string): this;
130
+ /**
131
+ * Set CTA URL action
132
+ */
133
+ setCTAUrl(displayText: string, url: string): this;
134
+ /**
135
+ * Build the final interactive object
136
+ */
137
+ build(): InteractiveObject;
138
+ /**
139
+ * Reset the builder for reuse
140
+ */
141
+ reset(): this;
143
142
  }
144
143
  /**
145
144
  * Convenience factory functions for common interactive message types
146
145
  */
147
146
  declare class InteractiveMessageFactory {
148
- /**
149
- * Create a button message with reply buttons
150
- */
151
- static createButtonMessage(bodyText: string, buttons: Array<{
152
- id: string;
153
- title: string;
154
- }>, options?: {
155
- headerText?: string;
156
- footerText?: string;
157
- }): InteractiveObject;
158
- /**
159
- * Create a list message with sections
160
- */
161
- static createListMessage(bodyText: string, buttonText: string, sections: Array<{
162
- title?: string;
163
- rows: Array<{
164
- id: string;
165
- title: string;
166
- description?: string;
167
- }>;
168
- }>, options?: {
169
- headerText?: string;
170
- footerText?: string;
171
- }): InteractiveObject;
172
- /**
173
- * Create a CTA URL message
174
- */
175
- static createCTAUrlMessage(bodyText: string, displayText: string, url: string, options?: {
176
- headerText?: string;
177
- footerText?: string;
178
- }): InteractiveObject;
147
+ /**
148
+ * Create a button message with reply buttons
149
+ */
150
+ static createButtonMessage(bodyText: string, buttons: Array<{
151
+ id: string;
152
+ title: string;
153
+ }>, options?: {
154
+ headerText?: string;
155
+ footerText?: string;
156
+ }): InteractiveObject;
157
+ /**
158
+ * Create a list message with sections
159
+ */
160
+ static createListMessage(bodyText: string, buttonText: string, sections: Array<{
161
+ title?: string;
162
+ rows: Array<{
163
+ id: string;
164
+ title: string;
165
+ description?: string;
166
+ }>;
167
+ }>, options?: {
168
+ headerText?: string;
169
+ footerText?: string;
170
+ }): InteractiveObject;
171
+ /**
172
+ * Create a CTA URL message
173
+ */
174
+ static createCTAUrlMessage(bodyText: string, displayText: string, url: string, options?: {
175
+ headerText?: string;
176
+ footerText?: string;
177
+ }): InteractiveObject;
179
178
  }
180
-
179
+ //#endregion
180
+ //#region src/api/messages/builders/LocationMessageBuilder.d.ts
181
181
  /**
182
182
  * Builder class for creating location messages with a fluent API
183
183
  */
184
184
  declare class LocationMessageBuilder {
185
- private location;
186
- /**
187
- * Set the latitude coordinate
188
- */
189
- setLatitude(latitude: number): this;
190
- /**
191
- * Set the longitude coordinate
192
- */
193
- setLongitude(longitude: number): this;
194
- /**
195
- * Set coordinates using latitude and longitude
196
- */
197
- setCoordinates(latitude: number, longitude: number): this;
198
- /**
199
- * Set the location name
200
- */
201
- setName(name: string): this;
202
- /**
203
- * Set the location address
204
- */
205
- setAddress(address: string): this;
206
- /**
207
- * Build the final location object
208
- */
209
- build(): LocationObject;
210
- /**
211
- * Reset the builder for reuse
212
- */
213
- reset(): this;
185
+ private location;
186
+ /**
187
+ * Set the latitude coordinate
188
+ */
189
+ setLatitude(latitude: number): this;
190
+ /**
191
+ * Set the longitude coordinate
192
+ */
193
+ setLongitude(longitude: number): this;
194
+ /**
195
+ * Set coordinates using latitude and longitude
196
+ */
197
+ setCoordinates(latitude: number, longitude: number): this;
198
+ /**
199
+ * Set the location name
200
+ */
201
+ setName(name: string): this;
202
+ /**
203
+ * Set the location address
204
+ */
205
+ setAddress(address: string): this;
206
+ /**
207
+ * Build the final location object
208
+ */
209
+ build(): LocationObject;
210
+ /**
211
+ * Reset the builder for reuse
212
+ */
213
+ reset(): this;
214
214
  }
215
215
  /**
216
216
  * Factory class for common location patterns
217
217
  */
218
218
  declare class LocationMessageFactory {
219
- /**
220
- * Create a simple location with just coordinates
221
- */
222
- static createSimpleLocation(latitude: number, longitude: number): LocationObject;
223
- /**
224
- * Create a location with name and address
225
- */
226
- static createNamedLocation(latitude: number, longitude: number, name: string, address: string): LocationObject;
227
- /**
228
- * Create a business location
229
- */
230
- static createBusinessLocation(latitude: number, longitude: number, businessName: string, fullAddress: string): LocationObject;
219
+ /**
220
+ * Create a simple location with just coordinates
221
+ */
222
+ static createSimpleLocation(latitude: number, longitude: number): LocationObject;
223
+ /**
224
+ * Create a location with name and address
225
+ */
226
+ static createNamedLocation(latitude: number, longitude: number, name: string, address: string): LocationObject;
227
+ /**
228
+ * Create a business location
229
+ */
230
+ static createBusinessLocation(latitude: number, longitude: number, businessName: string, fullAddress: string): LocationObject;
231
231
  }
232
-
232
+ //#endregion
233
+ //#region src/api/messages/builders/MediaMessageBuilder.d.ts
233
234
  /**
234
235
  * Base builder for media messages
235
236
  */
236
237
  declare abstract class BaseMediaBuilder<T> {
237
- protected media: Partial<T>;
238
- /**
239
- * Set media ID (for uploaded media)
240
- */
241
- setId(id: string): this;
242
- /**
243
- * Set media URL
244
- */
245
- setLink(url: string): this;
246
- /**
247
- * Set media caption
248
- */
249
- setCaption(caption: string): this;
250
- /**
251
- * Build the media object
252
- */
253
- build(): T;
254
- /**
255
- * Reset the builder
256
- */
257
- reset(): this;
238
+ protected media: Partial<T>;
239
+ /**
240
+ * Set media ID (for uploaded media)
241
+ */
242
+ setId(id: string): this;
243
+ /**
244
+ * Set media URL
245
+ */
246
+ setLink(url: string): this;
247
+ /**
248
+ * Set media caption
249
+ */
250
+ setCaption(caption: string): this;
251
+ /**
252
+ * Build the media object
253
+ */
254
+ build(): T;
255
+ /**
256
+ * Reset the builder
257
+ */
258
+ reset(): this;
258
259
  }
259
260
  /**
260
261
  * Builder for image messages
261
262
  */
262
- declare class ImageMessageBuilder extends BaseMediaBuilder<ImageMediaObject> {
263
- }
263
+ declare class ImageMessageBuilder extends BaseMediaBuilder<ImageMediaObject> {}
264
264
  /**
265
265
  * Builder for video messages
266
266
  */
267
- declare class VideoMessageBuilder extends BaseMediaBuilder<VideoMediaObject> {
268
- }
267
+ declare class VideoMessageBuilder extends BaseMediaBuilder<VideoMediaObject> {}
269
268
  /**
270
269
  * Builder for audio messages
271
270
  */
272
271
  declare class AudioMessageBuilder extends BaseMediaBuilder<AudioMediaObject> {
273
- setCaption(caption: string): this;
272
+ setCaption(caption: string): this;
274
273
  }
275
274
  /**
276
275
  * Builder for document messages
277
276
  */
278
277
  declare class DocumentMessageBuilder extends BaseMediaBuilder<DocumentMediaObject> {
279
- /**
280
- * Set document filename
281
- */
282
- setFilename(filename: string): this;
278
+ /**
279
+ * Set document filename
280
+ */
281
+ setFilename(filename: string): this;
283
282
  }
284
283
  /**
285
284
  * Builder for sticker messages
286
285
  */
287
286
  declare class StickerMessageBuilder extends BaseMediaBuilder<StickerMediaObject> {
288
- setCaption(caption: string): this;
287
+ setCaption(caption: string): this;
289
288
  }
290
289
  /**
291
290
  * Factory class for common media patterns
292
291
  */
293
292
  declare class MediaMessageFactory {
294
- /**
295
- * Create an image with caption
296
- */
297
- static createImageWithCaption(linkOrId: string, caption: string, isId?: boolean): ImageMediaObject;
298
- /**
299
- * Create a video with caption
300
- */
301
- static createVideoWithCaption(linkOrId: string, caption: string, isId?: boolean): VideoMediaObject;
302
- /**
303
- * Create a document with filename
304
- */
305
- static createDocument(linkOrId: string, filename: string, caption?: string, isId?: boolean): DocumentMediaObject;
306
- /**
307
- * Create an audio message
308
- */
309
- static createAudio(linkOrId: string, isId?: boolean): AudioMediaObject;
310
- /**
311
- * Create a sticker message
312
- */
313
- static createSticker(linkOrId: string, isId?: boolean): StickerMediaObject;
293
+ /**
294
+ * Create an image with caption
295
+ */
296
+ static createImageWithCaption(linkOrId: string, caption: string, isId?: boolean): ImageMediaObject;
297
+ /**
298
+ * Create a video with caption
299
+ */
300
+ static createVideoWithCaption(linkOrId: string, caption: string, isId?: boolean): VideoMediaObject;
301
+ /**
302
+ * Create a document with filename
303
+ */
304
+ static createDocument(linkOrId: string, filename: string, caption?: string, isId?: boolean): DocumentMediaObject;
305
+ /**
306
+ * Create an audio message
307
+ */
308
+ static createAudio(linkOrId: string, isId?: boolean): AudioMediaObject;
309
+ /**
310
+ * Create a sticker message
311
+ */
312
+ static createSticker(linkOrId: string, isId?: boolean): StickerMediaObject;
314
313
  }
315
-
314
+ //#endregion
315
+ //#region src/api/messages/builders/ReactionMessageBuilder.d.ts
316
316
  /**
317
317
  * Builder class for creating reaction messages with a fluent API
318
318
  */
319
319
  declare class ReactionMessageBuilder {
320
- private reaction;
321
- /**
322
- * Set the message ID to react to
323
- */
324
- setMessageId(messageId: string): this;
325
- /**
326
- * Set the emoji for the reaction
327
- */
328
- setEmoji(emoji: string): this;
329
- /**
330
- * Remove a reaction (by sending empty emoji)
331
- */
332
- removeReaction(): this;
333
- /**
334
- * Build the final reaction object
335
- */
336
- build(): {
337
- message_id: string;
338
- emoji: string;
339
- };
340
- /**
341
- * Reset the builder for reuse
342
- */
343
- reset(): this;
320
+ private reaction;
321
+ /**
322
+ * Set the message ID to react to
323
+ */
324
+ setMessageId(messageId: string): this;
325
+ /**
326
+ * Set the emoji for the reaction
327
+ */
328
+ setEmoji(emoji: string): this;
329
+ /**
330
+ * Remove a reaction (by sending empty emoji)
331
+ */
332
+ removeReaction(): this;
333
+ /**
334
+ * Build the final reaction object
335
+ */
336
+ build(): {
337
+ message_id: string;
338
+ emoji: string;
339
+ };
340
+ /**
341
+ * Reset the builder for reuse
342
+ */
343
+ reset(): this;
344
344
  }
345
345
  /**
346
346
  * Factory class for common reaction patterns
347
347
  */
348
348
  declare class ReactionMessageFactory {
349
- /**
350
- * Create a like reaction
351
- */
352
- static createLike(messageId: string): {
353
- message_id: string;
354
- emoji: string;
355
- };
356
- /**
357
- * Create a heart reaction
358
- */
359
- static createHeart(messageId: string): {
360
- message_id: string;
361
- emoji: string;
362
- };
363
- /**
364
- * Create a laughing reaction
365
- */
366
- static createLaugh(messageId: string): {
367
- message_id: string;
368
- emoji: string;
369
- };
370
- /**
371
- * Create a wow reaction
372
- */
373
- static createWow(messageId: string): {
374
- message_id: string;
375
- emoji: string;
376
- };
377
- /**
378
- * Create a sad reaction
379
- */
380
- static createSad(messageId: string): {
381
- message_id: string;
382
- emoji: string;
383
- };
384
- /**
385
- * Create an angry reaction
386
- */
387
- static createAngry(messageId: string): {
388
- message_id: string;
389
- emoji: string;
390
- };
391
- /**
392
- * Remove a reaction
393
- */
394
- static removeReaction(messageId: string): {
395
- message_id: string;
396
- emoji: string;
397
- };
349
+ /**
350
+ * Create a like reaction
351
+ */
352
+ static createLike(messageId: string): {
353
+ message_id: string;
354
+ emoji: string;
355
+ };
356
+ /**
357
+ * Create a heart reaction
358
+ */
359
+ static createHeart(messageId: string): {
360
+ message_id: string;
361
+ emoji: string;
362
+ };
363
+ /**
364
+ * Create a laughing reaction
365
+ */
366
+ static createLaugh(messageId: string): {
367
+ message_id: string;
368
+ emoji: string;
369
+ };
370
+ /**
371
+ * Create a wow reaction
372
+ */
373
+ static createWow(messageId: string): {
374
+ message_id: string;
375
+ emoji: string;
376
+ };
377
+ /**
378
+ * Create a sad reaction
379
+ */
380
+ static createSad(messageId: string): {
381
+ message_id: string;
382
+ emoji: string;
383
+ };
384
+ /**
385
+ * Create an angry reaction
386
+ */
387
+ static createAngry(messageId: string): {
388
+ message_id: string;
389
+ emoji: string;
390
+ };
391
+ /**
392
+ * Remove a reaction
393
+ */
394
+ static removeReaction(messageId: string): {
395
+ message_id: string;
396
+ emoji: string;
397
+ };
398
398
  }
399
-
399
+ //#endregion
400
+ //#region src/api/messages/builders/TemplateMessageBuilder.d.ts
400
401
  type CurrencyParameterHelper = {
401
- type: ParametersTypesEnum.Currency;
402
- currency: {
403
- fallback_value: string;
404
- code: CurrencyCodesEnum;
405
- amount_1000: number;
406
- };
402
+ type: ParametersTypesEnum.Currency;
403
+ currency: {
404
+ fallback_value: string;
405
+ code: CurrencyCodesEnum;
406
+ amount_1000: number;
407
+ };
407
408
  };
408
409
  type DateTimeParameterHelper = {
409
- type: ParametersTypesEnum.DateTime;
410
- date_time: {
411
- fallback_value: string;
412
- timestamp: number;
413
- };
410
+ type: ParametersTypesEnum.DateTime;
411
+ date_time: {
412
+ fallback_value: string;
413
+ timestamp: number;
414
+ };
414
415
  };
415
416
  /**
416
417
  * Builder class for creating template messages with a fluent API
417
418
  */
418
419
  declare class TemplateMessageBuilder {
419
- private template;
420
- /**
421
- * Set the template name
422
- */
423
- setName(name: string): this;
424
- /**
425
- * Set the template language
426
- */
427
- setLanguage(code: string): this;
428
- /**
429
- * Add a header component with text parameters
430
- */
431
- addTextHeader(parameters: string[]): this;
432
- /**
433
- * Add a header component with image
434
- */
435
- addImageHeader(imageUrl: string): this;
436
- /**
437
- * Add a body component with text parameters
438
- */
439
- addBody(parameters: string[]): this;
440
- /**
441
- * Add a footer component (usually no parameters needed)
442
- */
443
- addFooter(): this;
444
- /**
445
- * Add button components (for quick replies, URLs, etc.)
446
- */
447
- addButtons(buttons: Array<{
448
- index: number;
449
- type: 'quick_reply' | 'url';
450
- parameters?: string[];
451
- }>): this;
452
- /**
453
- * Add a currency parameter for header/body
454
- */
455
- addCurrencyParameter(fallbackValue: string, currencyCode: string, amount: number): CurrencyParameterHelper;
456
- /**
457
- * Add a date time parameter
458
- */
459
- addDateTimeParameter(fallbackValue: string, timestamp: number): DateTimeParameterHelper;
460
- /**
461
- * Build the final template object
462
- */
463
- build(): MessageTemplateObject<ComponentTypesEnum>;
464
- /**
465
- * Reset the builder for reuse
466
- */
467
- reset(): this;
420
+ private template;
421
+ /**
422
+ * Set the template name
423
+ */
424
+ setName(name: string): this;
425
+ /**
426
+ * Set the template language
427
+ */
428
+ setLanguage(code: string): this;
429
+ /**
430
+ * Add a header component with text parameters
431
+ */
432
+ addTextHeader(parameters: string[]): this;
433
+ /**
434
+ * Add a header component with image
435
+ */
436
+ addImageHeader(imageUrl: string): this;
437
+ /**
438
+ * Add a body component with text parameters
439
+ */
440
+ addBody(parameters: string[]): this;
441
+ /**
442
+ * Add a footer component (usually no parameters needed)
443
+ */
444
+ addFooter(): this;
445
+ /**
446
+ * Add button components (for quick replies, URLs, etc.)
447
+ */
448
+ addButtons(buttons: Array<{
449
+ index: number;
450
+ type: 'quick_reply' | 'url';
451
+ parameters?: string[];
452
+ }>): this;
453
+ /**
454
+ * Add a currency parameter for header/body
455
+ */
456
+ addCurrencyParameter(fallbackValue: string, currencyCode: string, amount: number): CurrencyParameterHelper;
457
+ /**
458
+ * Add a date time parameter
459
+ */
460
+ addDateTimeParameter(fallbackValue: string, timestamp: number): DateTimeParameterHelper;
461
+ /**
462
+ * Build the final template object
463
+ */
464
+ build(): MessageTemplateObject<ComponentTypesEnum>;
465
+ /**
466
+ * Reset the builder for reuse
467
+ */
468
+ reset(): this;
468
469
  }
469
470
  /**
470
471
  * Factory class for common template patterns
471
472
  */
472
473
  declare class TemplateMessageFactory {
473
- /**
474
- * Create a simple text-only template
475
- */
476
- static createSimpleTextTemplate(name: string, language: string, bodyParameters: string[]): MessageTemplateObject<ComponentTypesEnum>;
477
- /**
478
- * Create a template with header, body and buttons
479
- */
480
- static createCompleteTemplate(name: string, language: string, options: {
481
- headerParameters?: string[];
482
- headerImage?: string;
483
- bodyParameters: string[];
484
- buttons?: Array<{
485
- index: number;
486
- type: 'quick_reply' | 'url';
487
- parameters?: string[];
488
- }>;
489
- }): MessageTemplateObject<ComponentTypesEnum>;
490
- /**
491
- * Create an order confirmation template
492
- */
493
- static createOrderConfirmationTemplate(language: string, customerName: string, orderNumber: string, amount: number, currencyCode: string): MessageTemplateObject<ComponentTypesEnum>;
474
+ /**
475
+ * Create a simple text-only template
476
+ */
477
+ static createSimpleTextTemplate(name: string, language: string, bodyParameters: string[]): MessageTemplateObject<ComponentTypesEnum>;
478
+ /**
479
+ * Create a template with header, body and buttons
480
+ */
481
+ static createCompleteTemplate(name: string, language: string, options: {
482
+ headerParameters?: string[];
483
+ headerImage?: string;
484
+ bodyParameters: string[];
485
+ buttons?: Array<{
486
+ index: number;
487
+ type: 'quick_reply' | 'url';
488
+ parameters?: string[];
489
+ }>;
490
+ }): MessageTemplateObject<ComponentTypesEnum>;
491
+ /**
492
+ * Create an order confirmation template
493
+ */
494
+ static createOrderConfirmationTemplate(language: string, customerName: string, orderNumber: string, amount: number, currencyCode: string): MessageTemplateObject<ComponentTypesEnum>;
494
495
  }
495
-
496
+ //#endregion
497
+ //#region src/api/messages/builders/TextMessageBuilder.d.ts
496
498
  /**
497
499
  * Builder class for creating text messages with a fluent API
498
500
  */
499
501
  declare class TextMessageBuilder {
500
- private textMessage;
501
- /**
502
- * Set the message body text
503
- */
504
- setBody(text: string): this;
505
- /**
506
- * Enable or disable URL preview
507
- */
508
- setPreviewUrl(enable?: boolean): this;
509
- /**
510
- * Build the final text object
511
- */
512
- build(): TextObject;
513
- /**
514
- * Reset the builder for reuse
515
- */
516
- reset(): this;
502
+ private textMessage;
503
+ /**
504
+ * Set the message body text
505
+ */
506
+ setBody(text: string): this;
507
+ /**
508
+ * Enable or disable URL preview
509
+ */
510
+ setPreviewUrl(enable?: boolean): this;
511
+ /**
512
+ * Build the final text object
513
+ */
514
+ build(): TextObject;
515
+ /**
516
+ * Reset the builder for reuse
517
+ */
518
+ reset(): this;
517
519
  }
518
520
  /**
519
521
  * Factory class for common text message patterns
520
522
  */
521
523
  declare class TextMessageFactory {
522
- /**
523
- * Create a simple text message
524
- */
525
- static createSimpleText(body: string): TextObject;
526
- /**
527
- * Create a text message with URL preview
528
- */
529
- static createTextWithPreview(body: string): TextObject;
530
- /**
531
- * Create a notification message
532
- */
533
- static createNotification(title: string, message: string): TextObject;
524
+ /**
525
+ * Create a simple text message
526
+ */
527
+ static createSimpleText(body: string): TextObject;
528
+ /**
529
+ * Create a text message with URL preview
530
+ */
531
+ static createTextWithPreview(body: string): TextObject;
532
+ /**
533
+ * Create a notification message
534
+ */
535
+ static createNotification(title: string, message: string): TextObject;
534
536
  }
535
-
537
+ //#endregion
536
538
  export { AudioMessageBuilder, ContactMessageBuilder, ContactMessageFactory, DocumentMessageBuilder, ImageMessageBuilder, InteractiveMessageBuilder, InteractiveMessageFactory, LocationMessageBuilder, LocationMessageFactory, MediaMessageFactory, ReactionMessageBuilder, ReactionMessageFactory, StickerMessageBuilder, TemplateMessageBuilder, TemplateMessageFactory, TextMessageBuilder, TextMessageFactory, VideoMessageBuilder };
539
+ //# sourceMappingURL=index.d.ts.map