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.
- package/dist/WebhookProcessor-BUZFeZD_.js +3 -0
- package/dist/WebhookProcessor-BUZFeZD_.js.map +1 -0
- package/dist/WebhookProcessor-Dq2Pa2cY.d.ts +718 -0
- package/dist/WebhookProcessor-Dq2Pa2cY.d.ts.map +1 -0
- package/dist/api/encryption/index.d.ts +3 -10
- package/dist/api/encryption/index.js +1 -2
- package/dist/api/flow/index.d.ts +5 -11
- package/dist/api/flow/index.js +1 -2
- package/dist/api/index.d.ts +17 -18
- package/dist/api/index.js +1 -2
- package/dist/api/media/index.d.ts +3 -10
- package/dist/api/media/index.js +1 -2
- package/dist/api/messages/builders/index.d.ts +442 -439
- package/dist/api/messages/builders/index.d.ts.map +1 -0
- package/dist/api/messages/builders/index.js +1 -3
- package/dist/api/messages/builders/index.js.map +1 -1
- package/dist/api/messages/index.d.ts +4 -10
- package/dist/api/messages/index.js +1 -2
- package/dist/api/phone/index.d.ts +3 -10
- package/dist/api/phone/index.js +1 -2
- package/dist/api/profile/index.d.ts +3 -10
- package/dist/api/profile/index.js +1 -2
- package/dist/api/qrCode/index.d.ts +3 -10
- package/dist/api/qrCode/index.js +1 -2
- package/dist/api/registration/index.d.ts +3 -10
- package/dist/api/registration/index.js +1 -2
- package/dist/api/template/index.d.ts +3 -21
- package/dist/api/template/index.js +1 -2
- package/dist/api/twoStepVerification/index.d.ts +3 -10
- package/dist/api/twoStepVerification/index.js +1 -2
- package/dist/api/waba/index.d.ts +3 -10
- package/dist/api/waba/index.js +1 -2
- package/dist/api-8hRAOyaL.js +1 -0
- package/dist/base-CfDkvT1x.d.ts +807 -0
- package/dist/base-CfDkvT1x.d.ts.map +1 -0
- package/dist/base-D-cXu_lA.js +2 -0
- package/dist/base-D-cXu_lA.js.map +1 -0
- package/dist/buildFieldsQueryString-Cr-jz3p0.js +2 -0
- package/dist/buildFieldsQueryString-Cr-jz3p0.js.map +1 -0
- package/dist/chunk-CTAAG5j7.js +1 -0
- package/dist/common-C6FXBDm7.js +2 -0
- package/dist/common-C6FXBDm7.js.map +1 -0
- package/dist/common-CVbsmD26.d.ts +426 -0
- package/dist/common-CVbsmD26.d.ts.map +1 -0
- package/dist/common-CvPVD1o6.d.ts +406 -0
- package/dist/common-CvPVD1o6.d.ts.map +1 -0
- package/dist/core/webhook/frameworks/express.d.ts +20 -53
- package/dist/core/webhook/frameworks/express.js +1 -2
- package/dist/core/webhook/frameworks/nextjs-app.d.ts +36 -39
- package/dist/core/webhook/frameworks/nextjs-app.d.ts.map +1 -0
- package/dist/core/webhook/frameworks/nextjs-app.js +1 -1
- package/dist/core/webhook/frameworks/nextjs-app.js.map +1 -1
- package/dist/core/webhook/frameworks/nextjs.d.ts +20 -49
- package/dist/core/webhook/frameworks/nextjs.js +1 -2
- package/dist/core/webhook/index.d.ts +20 -29
- package/dist/core/webhook/index.js +1 -2
- package/dist/core/whatsapp/index.d.ts +18 -42
- package/dist/core/whatsapp/index.js +1 -2
- package/dist/encryption-Cwc0xcVL.js +2 -0
- package/dist/encryption-Cwc0xcVL.js.map +1 -0
- package/dist/enums-CSUpFXb8.js +2 -0
- package/dist/enums-CSUpFXb8.js.map +1 -0
- package/dist/express-B6fQdflY.d.ts +78 -0
- package/dist/express-B6fQdflY.d.ts.map +1 -0
- package/dist/express-CrfNLYMM.js +2 -0
- package/dist/express-CrfNLYMM.js.map +1 -0
- package/dist/flow-CVes0Qus.js +2 -0
- package/dist/flow-CVes0Qus.js.map +1 -0
- package/dist/flowTypeGuards-Gn3-slCW.js +2 -0
- package/dist/flowTypeGuards-Gn3-slCW.js.map +1 -0
- package/dist/handler-BGqjZ0xg.js +2 -0
- package/dist/handler-BGqjZ0xg.js.map +1 -0
- package/dist/index-3KglHVAg.d.ts +354 -0
- package/dist/index-3KglHVAg.d.ts.map +1 -0
- package/dist/index-BNeg6hHx.d.ts +99 -0
- package/dist/index-BNeg6hHx.d.ts.map +1 -0
- package/dist/index-BiTq23oi.d.ts +34 -0
- package/dist/index-BiTq23oi.d.ts.map +1 -0
- package/dist/index-BmfnREgM.d.ts +47 -0
- package/dist/index-BmfnREgM.d.ts.map +1 -0
- package/dist/index-CaGffSja.d.ts +24 -0
- package/dist/index-CaGffSja.d.ts.map +1 -0
- package/dist/index-CeTmbIXi.d.ts +180 -0
- package/dist/index-CeTmbIXi.d.ts.map +1 -0
- package/dist/index-CoyByMuM.d.ts +137 -0
- package/dist/index-CoyByMuM.d.ts.map +1 -0
- package/dist/index-CwujtcvH.d.ts +370 -0
- package/dist/index-CwujtcvH.d.ts.map +1 -0
- package/dist/index-DQ7z58xp.d.ts +104 -0
- package/dist/index-DQ7z58xp.d.ts.map +1 -0
- package/dist/index-DQkgkiB6.d.ts +30 -0
- package/dist/index-DQkgkiB6.d.ts.map +1 -0
- package/dist/index-LKrIp3Oo.d.ts +1 -0
- package/dist/index-_-06JPan.d.ts +143 -0
- package/dist/index-_-06JPan.d.ts.map +1 -0
- package/dist/index-a_YS40Iv.d.ts +91 -0
- package/dist/index-a_YS40Iv.d.ts.map +1 -0
- package/dist/index-d7TLqtYh.d.ts +171 -0
- package/dist/index-d7TLqtYh.d.ts.map +1 -0
- package/dist/index.d.ts +21 -27
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{isMetaError-CQLXyEL4.d.ts → isMetaError-B3AglYeY.d.ts} +28 -25
- package/dist/isMetaError-B3AglYeY.d.ts.map +1 -0
- package/dist/media-Dw5OGzDD.js +2 -0
- package/dist/media-Dw5OGzDD.js.map +1 -0
- package/dist/messages-h5-NW8QO.js +2 -0
- package/dist/messages-h5-NW8QO.js.map +1 -0
- package/dist/nextjs-DxRCL4t3.js +2 -0
- package/dist/nextjs-DxRCL4t3.js.map +1 -0
- package/dist/objectToQueryString-CAHI0qTs.js +2 -0
- package/dist/objectToQueryString-CAHI0qTs.js.map +1 -0
- package/dist/phone-CZyWLyWB.js +2 -0
- package/dist/phone-CZyWLyWB.js.map +1 -0
- package/dist/profile-Bb7GDP0n.js +2 -0
- package/dist/profile-Bb7GDP0n.js.map +1 -0
- package/dist/qrCode-CeZEtX9J.js +2 -0
- package/dist/qrCode-CeZEtX9J.js.map +1 -0
- package/dist/registration-BkjhC3xw.js +2 -0
- package/dist/registration-BkjhC3xw.js.map +1 -0
- package/dist/template-Bgy-BCXJ.js +2 -0
- package/dist/template-Bgy-BCXJ.js.map +1 -0
- package/dist/twoStepVerification-DYlYF_P5.js +2 -0
- package/dist/twoStepVerification-DYlYF_P5.js.map +1 -0
- package/dist/types/index.d.ts +3 -6
- package/dist/types/index.js +1 -2
- package/dist/utils/index.d.ts +23 -20
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +1 -2
- package/dist/version-BUuqrHc6.js +3 -0
- package/dist/version-BUuqrHc6.js.map +1 -0
- package/dist/waba-SF2W3z2U.js +2 -0
- package/dist/waba-SF2W3z2U.js.map +1 -0
- package/dist/webhook-D4DQ01Xq.js +2 -0
- package/dist/webhook-D4DQ01Xq.js.map +1 -0
- package/dist/whatsapp-B85mxH5f.js +10 -0
- package/dist/whatsapp-B85mxH5f.js.map +1 -0
- package/package.json +27 -125
- package/dist/BusinessProfileApi-C_sEOrWM.d.ts +0 -353
- package/dist/EncryptionApi-CcCfeK2b.d.ts +0 -22
- package/dist/FlowApi-DDHrFT_Q.d.ts +0 -136
- package/dist/MediaApi-CY9RVo7u.d.ts +0 -90
- package/dist/MessageApi-CX_jN8da.d.ts +0 -171
- package/dist/PhoneNumberApi-B-hY7g1M.d.ts +0 -142
- package/dist/QrCodeApi-DRICKN04.d.ts +0 -98
- package/dist/RegistrationApi-CFPzU1Vw.d.ts +0 -47
- package/dist/TemplateApi-D9Q_7cf3.d.ts +0 -161
- package/dist/TwoStepVerificationApi-C0jpAKfu.d.ts +0 -33
- package/dist/WabaApi-BfvpkpFr.d.ts +0 -175
- package/dist/WebhookProcessor-C3oUXCBl.d.ts +0 -707
- package/dist/WhatsApp-BG0rDhMn.d.ts +0 -82
- package/dist/api/encryption/index.js.map +0 -1
- package/dist/api/flow/index.js.map +0 -1
- package/dist/api/index.js.map +0 -1
- package/dist/api/media/index.js.map +0 -1
- package/dist/api/messages/index.js.map +0 -1
- package/dist/api/phone/index.js.map +0 -1
- package/dist/api/profile/index.js.map +0 -1
- package/dist/api/qrCode/index.js.map +0 -1
- package/dist/api/registration/index.js.map +0 -1
- package/dist/api/template/index.js.map +0 -1
- package/dist/api/twoStepVerification/index.js.map +0 -1
- package/dist/api/waba/index.js.map +0 -1
- package/dist/base-BV6DyzGS.d.ts +0 -18
- package/dist/chunk-5577QQ7V.js +0 -2
- package/dist/chunk-5577QQ7V.js.map +0 -1
- package/dist/chunk-6DFC5L3X.js +0 -2
- package/dist/chunk-6DFC5L3X.js.map +0 -1
- package/dist/chunk-7QBIZCJ4.js +0 -2
- package/dist/chunk-7QBIZCJ4.js.map +0 -1
- package/dist/chunk-AMHQGG6Z.js +0 -2
- package/dist/chunk-AMHQGG6Z.js.map +0 -1
- package/dist/chunk-BAOZ4U74.js +0 -10
- package/dist/chunk-BAOZ4U74.js.map +0 -1
- package/dist/chunk-CRZ7EUYR.js +0 -2
- package/dist/chunk-CRZ7EUYR.js.map +0 -1
- package/dist/chunk-FKXSL2JK.js +0 -3
- package/dist/chunk-FKXSL2JK.js.map +0 -1
- package/dist/chunk-FSKBLPGE.js +0 -2
- package/dist/chunk-FSKBLPGE.js.map +0 -1
- package/dist/chunk-GM63NGNV.js +0 -2
- package/dist/chunk-GM63NGNV.js.map +0 -1
- package/dist/chunk-IYSR44P6.js +0 -2
- package/dist/chunk-IYSR44P6.js.map +0 -1
- package/dist/chunk-J2JPTKU6.js +0 -2
- package/dist/chunk-J2JPTKU6.js.map +0 -1
- package/dist/chunk-JC6YMVID.js +0 -2
- package/dist/chunk-JC6YMVID.js.map +0 -1
- package/dist/chunk-JPAV644F.js +0 -2
- package/dist/chunk-JPAV644F.js.map +0 -1
- package/dist/chunk-JXCLRKQ7.js +0 -2
- package/dist/chunk-JXCLRKQ7.js.map +0 -1
- package/dist/chunk-KMAH6636.js +0 -2
- package/dist/chunk-KMAH6636.js.map +0 -1
- package/dist/chunk-L4ESAO2S.js +0 -2
- package/dist/chunk-L4ESAO2S.js.map +0 -1
- package/dist/chunk-LV3TULSI.js +0 -2
- package/dist/chunk-LV3TULSI.js.map +0 -1
- package/dist/chunk-MJEG3K4V.js +0 -2
- package/dist/chunk-MJEG3K4V.js.map +0 -1
- package/dist/chunk-PHPQ5HP3.js +0 -2
- package/dist/chunk-PHPQ5HP3.js.map +0 -1
- package/dist/chunk-RIL6QABY.js +0 -2
- package/dist/chunk-RIL6QABY.js.map +0 -1
- package/dist/chunk-RWCVPWRC.js +0 -2
- package/dist/chunk-RWCVPWRC.js.map +0 -1
- package/dist/chunk-SNNRWNGZ.js +0 -2
- package/dist/chunk-SNNRWNGZ.js.map +0 -1
- package/dist/chunk-U5FBZ6UB.js +0 -3
- package/dist/chunk-U5FBZ6UB.js.map +0 -1
- package/dist/chunk-VHAODWCN.js +0 -2
- package/dist/chunk-VHAODWCN.js.map +0 -1
- package/dist/chunk-ZMNXRMWK.js +0 -2
- package/dist/chunk-ZMNXRMWK.js.map +0 -1
- package/dist/common-B8kp4RdL.d.ts +0 -403
- package/dist/common-CGbls9Y8.d.ts +0 -425
- package/dist/core/webhook/frameworks/express.js.map +0 -1
- package/dist/core/webhook/frameworks/nextjs.js.map +0 -1
- package/dist/core/webhook/index.js.map +0 -1
- package/dist/core/whatsapp/index.js.map +0 -1
- package/dist/enums-DIimUG6s.d.ts +0 -707
- package/dist/factory-B37vOPki.d.ts +0 -200
- package/dist/handler-DbySwF0E.d.ts +0 -20
- package/dist/httpsClient-Cbd2Y6mg.d.ts +0 -19
- package/dist/logger-BdE0Vyim.d.ts +0 -9
- package/dist/request-CUjrMn8R.d.ts +0 -50
- package/dist/types/config.d.ts +0 -78
- package/dist/types/config.js +0 -2
- package/dist/types/config.js.map +0 -1
- package/dist/types/enums.d.ts +0 -1
- package/dist/types/enums.js +0 -2
- package/dist/types/enums.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
|
@@ -1,536 +1,539 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
-
|
|
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
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
|
|
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
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
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
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
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
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
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
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
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
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
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
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
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
|