@getlatedev/node 0.1.42 → 0.1.44
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/README.md +45 -0
- package/dist/index.d.mts +1349 -5
- package/dist/index.d.ts +1349 -5
- package/dist/index.js +269 -0
- package/dist/index.mjs +269 -0
- package/package.json +1 -1
- package/src/client.ts +86 -0
- package/src/generated/sdk.gen.ts +470 -1
- package/src/generated/types.gen.ts +1413 -5
package/src/client.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
client,
|
|
3
|
+
addWhatsAppBroadcastRecipients,
|
|
4
|
+
bulkDeleteWhatsAppContacts,
|
|
5
|
+
bulkUpdateWhatsAppContacts,
|
|
3
6
|
bulkUploadPosts,
|
|
7
|
+
cancelWhatsAppBroadcastSchedule,
|
|
4
8
|
checkInstagramHashtags,
|
|
5
9
|
completeTelegramConnect,
|
|
6
10
|
connectBlueskyCredentials,
|
|
@@ -13,6 +17,9 @@ import {
|
|
|
13
17
|
createProfile,
|
|
14
18
|
createQueueSlot,
|
|
15
19
|
createWebhookSettings,
|
|
20
|
+
createWhatsAppBroadcast,
|
|
21
|
+
createWhatsAppContact,
|
|
22
|
+
createWhatsAppTemplate,
|
|
16
23
|
deleteAccount,
|
|
17
24
|
deleteAccountGroup,
|
|
18
25
|
deleteApiKey,
|
|
@@ -27,6 +34,10 @@ import {
|
|
|
27
34
|
deleteQueueSlot,
|
|
28
35
|
deleteTelegramCommands,
|
|
29
36
|
deleteWebhookSettings,
|
|
37
|
+
deleteWhatsAppBroadcast,
|
|
38
|
+
deleteWhatsAppContact,
|
|
39
|
+
deleteWhatsAppGroup,
|
|
40
|
+
deleteWhatsAppTemplate,
|
|
30
41
|
downloadBlueskyMedia,
|
|
31
42
|
downloadFacebookVideo,
|
|
32
43
|
downloadInstagramMedia,
|
|
@@ -67,6 +78,7 @@ import {
|
|
|
67
78
|
getPostLogs,
|
|
68
79
|
getPostTimeline,
|
|
69
80
|
getPostingFrequency,
|
|
81
|
+
getPreverifiedWhatsAppNumbers,
|
|
70
82
|
getProfile,
|
|
71
83
|
getRedditFeed,
|
|
72
84
|
getRedditFlairs,
|
|
@@ -77,10 +89,22 @@ import {
|
|
|
77
89
|
getUser,
|
|
78
90
|
getWebhookLogs,
|
|
79
91
|
getWebhookSettings,
|
|
92
|
+
getWhatsAppBroadcast,
|
|
93
|
+
getWhatsAppBroadcastRecipients,
|
|
94
|
+
getWhatsAppBroadcasts,
|
|
95
|
+
getWhatsAppBusinessProfile,
|
|
96
|
+
getWhatsAppContact,
|
|
97
|
+
getWhatsAppContacts,
|
|
98
|
+
getWhatsAppGroups,
|
|
99
|
+
getWhatsAppPhoneNumber,
|
|
100
|
+
getWhatsAppPhoneNumbers,
|
|
101
|
+
getWhatsAppTemplate,
|
|
102
|
+
getWhatsAppTemplates,
|
|
80
103
|
getYouTubeDailyViews,
|
|
81
104
|
getYouTubeTranscript,
|
|
82
105
|
handleOAuthCallback,
|
|
83
106
|
hideInboxComment,
|
|
107
|
+
importWhatsAppContacts,
|
|
84
108
|
initiateTelegramConnect,
|
|
85
109
|
likeInboxComment,
|
|
86
110
|
listAccountGroups,
|
|
@@ -103,9 +127,16 @@ import {
|
|
|
103
127
|
listSnapchatProfiles,
|
|
104
128
|
listUsers,
|
|
105
129
|
previewQueue,
|
|
130
|
+
purchaseWhatsAppPhoneNumber,
|
|
131
|
+
releaseWhatsAppPhoneNumber,
|
|
132
|
+
removeWhatsAppBroadcastRecipients,
|
|
133
|
+
renameWhatsAppGroup,
|
|
106
134
|
replyToInboxPost,
|
|
107
135
|
replyToInboxReview,
|
|
136
|
+
requestWhatsAppVerificationCode,
|
|
108
137
|
retryPost,
|
|
138
|
+
scheduleWhatsAppBroadcast,
|
|
139
|
+
searchAvailableWhatsAppNumbers,
|
|
109
140
|
searchReddit,
|
|
110
141
|
selectFacebookPage,
|
|
111
142
|
selectGoogleBusinessLocation,
|
|
@@ -114,6 +145,8 @@ import {
|
|
|
114
145
|
selectSnapchatProfile,
|
|
115
146
|
sendInboxMessage,
|
|
116
147
|
sendPrivateReplyToComment,
|
|
148
|
+
sendWhatsAppBroadcast,
|
|
149
|
+
sendWhatsAppBulk,
|
|
117
150
|
setInstagramIceBreakers,
|
|
118
151
|
setMessengerMenu,
|
|
119
152
|
setTelegramCommands,
|
|
@@ -136,10 +169,14 @@ import {
|
|
|
136
169
|
updateQueueSlot,
|
|
137
170
|
updateRedditSubreddits,
|
|
138
171
|
updateWebhookSettings,
|
|
172
|
+
updateWhatsAppBusinessProfile,
|
|
173
|
+
updateWhatsAppContact,
|
|
174
|
+
updateWhatsAppTemplate,
|
|
139
175
|
validateMedia,
|
|
140
176
|
validatePost,
|
|
141
177
|
validatePostLength,
|
|
142
178
|
validateSubreddit,
|
|
179
|
+
verifyWhatsAppPhoneNumber,
|
|
143
180
|
} from './generated/sdk.gen';
|
|
144
181
|
|
|
145
182
|
import { LateApiError, parseApiError } from './errors';
|
|
@@ -514,6 +551,55 @@ export class Late {
|
|
|
514
551
|
deleteInboxReviewReply: deleteInboxReviewReply,
|
|
515
552
|
};
|
|
516
553
|
|
|
554
|
+
/**
|
|
555
|
+
* whatsapp API
|
|
556
|
+
*/
|
|
557
|
+
whatsapp = {
|
|
558
|
+
sendWhatsAppBulk: sendWhatsAppBulk,
|
|
559
|
+
getWhatsAppContacts: getWhatsAppContacts,
|
|
560
|
+
createWhatsAppContact: createWhatsAppContact,
|
|
561
|
+
getWhatsAppContact: getWhatsAppContact,
|
|
562
|
+
updateWhatsAppContact: updateWhatsAppContact,
|
|
563
|
+
deleteWhatsAppContact: deleteWhatsAppContact,
|
|
564
|
+
importWhatsAppContacts: importWhatsAppContacts,
|
|
565
|
+
bulkUpdateWhatsAppContacts: bulkUpdateWhatsAppContacts,
|
|
566
|
+
bulkDeleteWhatsAppContacts: bulkDeleteWhatsAppContacts,
|
|
567
|
+
getWhatsAppGroups: getWhatsAppGroups,
|
|
568
|
+
renameWhatsAppGroup: renameWhatsAppGroup,
|
|
569
|
+
deleteWhatsAppGroup: deleteWhatsAppGroup,
|
|
570
|
+
getWhatsAppTemplates: getWhatsAppTemplates,
|
|
571
|
+
createWhatsAppTemplate: createWhatsAppTemplate,
|
|
572
|
+
getWhatsAppTemplate: getWhatsAppTemplate,
|
|
573
|
+
updateWhatsAppTemplate: updateWhatsAppTemplate,
|
|
574
|
+
deleteWhatsAppTemplate: deleteWhatsAppTemplate,
|
|
575
|
+
getWhatsAppBroadcasts: getWhatsAppBroadcasts,
|
|
576
|
+
createWhatsAppBroadcast: createWhatsAppBroadcast,
|
|
577
|
+
getWhatsAppBroadcast: getWhatsAppBroadcast,
|
|
578
|
+
deleteWhatsAppBroadcast: deleteWhatsAppBroadcast,
|
|
579
|
+
sendWhatsAppBroadcast: sendWhatsAppBroadcast,
|
|
580
|
+
scheduleWhatsAppBroadcast: scheduleWhatsAppBroadcast,
|
|
581
|
+
cancelWhatsAppBroadcastSchedule: cancelWhatsAppBroadcastSchedule,
|
|
582
|
+
getWhatsAppBroadcastRecipients: getWhatsAppBroadcastRecipients,
|
|
583
|
+
addWhatsAppBroadcastRecipients: addWhatsAppBroadcastRecipients,
|
|
584
|
+
removeWhatsAppBroadcastRecipients: removeWhatsAppBroadcastRecipients,
|
|
585
|
+
getWhatsAppBusinessProfile: getWhatsAppBusinessProfile,
|
|
586
|
+
updateWhatsAppBusinessProfile: updateWhatsAppBusinessProfile,
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* whatsappphonenumbers API
|
|
591
|
+
*/
|
|
592
|
+
whatsappphonenumbers = {
|
|
593
|
+
getWhatsAppPhoneNumbers: getWhatsAppPhoneNumbers,
|
|
594
|
+
searchAvailableWhatsAppNumbers: searchAvailableWhatsAppNumbers,
|
|
595
|
+
getPreverifiedWhatsAppNumbers: getPreverifiedWhatsAppNumbers,
|
|
596
|
+
purchaseWhatsAppPhoneNumber: purchaseWhatsAppPhoneNumber,
|
|
597
|
+
getWhatsAppPhoneNumber: getWhatsAppPhoneNumber,
|
|
598
|
+
releaseWhatsAppPhoneNumber: releaseWhatsAppPhoneNumber,
|
|
599
|
+
requestWhatsAppVerificationCode: requestWhatsAppVerificationCode,
|
|
600
|
+
verifyWhatsAppPhoneNumber: verifyWhatsAppPhoneNumber,
|
|
601
|
+
};
|
|
602
|
+
|
|
517
603
|
/**
|
|
518
604
|
* Create a new Late API client.
|
|
519
605
|
*
|