@getlatedev/node 0.2.398 → 0.2.400
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 +20 -6
- package/dist/index.d.mts +691 -93
- package/dist/index.d.ts +691 -93
- package/dist/index.js +163 -42
- package/dist/index.mjs +163 -42
- package/package.json +1 -1
- package/src/client.ts +71 -41
- package/src/generated/sdk.gen.ts +269 -10
- package/src/generated/types.gen.ts +692 -53
package/src/client.ts
CHANGED
|
@@ -39,6 +39,8 @@ import {
|
|
|
39
39
|
connectWhatsAppCredentials,
|
|
40
40
|
createAccountGroup,
|
|
41
41
|
createAdAudience,
|
|
42
|
+
createAdCampaign,
|
|
43
|
+
createAdCreative,
|
|
42
44
|
createAdInsightsReport,
|
|
43
45
|
createApiKey,
|
|
44
46
|
createBroadcast,
|
|
@@ -65,6 +67,7 @@ import {
|
|
|
65
67
|
createQueueSlot,
|
|
66
68
|
createRfPrediction,
|
|
67
69
|
createSequence,
|
|
70
|
+
createSmsSenderId,
|
|
68
71
|
createStandaloneAd,
|
|
69
72
|
createTestLead,
|
|
70
73
|
createTrackingTag,
|
|
@@ -87,6 +90,7 @@ import {
|
|
|
87
90
|
deleteAd,
|
|
88
91
|
deleteAdAudience,
|
|
89
92
|
deleteAdCampaign,
|
|
93
|
+
deleteAdCreative,
|
|
90
94
|
deleteApiKey,
|
|
91
95
|
deleteBroadcast,
|
|
92
96
|
deleteCommentAutomation,
|
|
@@ -108,6 +112,7 @@ import {
|
|
|
108
112
|
deleteProfile,
|
|
109
113
|
deleteQueueSlot,
|
|
110
114
|
deleteSequence,
|
|
115
|
+
deleteSmsSenderId,
|
|
111
116
|
deleteTelegramCommands,
|
|
112
117
|
deleteWebhookSettings,
|
|
113
118
|
deleteWhatsAppFlow,
|
|
@@ -122,7 +127,9 @@ import {
|
|
|
122
127
|
disableVoiceOnNumber,
|
|
123
128
|
disableWhatsAppCalling,
|
|
124
129
|
disableWhatsAppCallingLegacy,
|
|
130
|
+
duplicateAd,
|
|
125
131
|
duplicateAdCampaign,
|
|
132
|
+
duplicateAdSet,
|
|
126
133
|
duplicateWorkflow,
|
|
127
134
|
editDiscordGuildRole,
|
|
128
135
|
editInboxComment,
|
|
@@ -144,6 +151,7 @@ import {
|
|
|
144
151
|
getAdAnalytics,
|
|
145
152
|
getAdAudience,
|
|
146
153
|
getAdComments,
|
|
154
|
+
getAdCreative,
|
|
147
155
|
getAdInsightsReport,
|
|
148
156
|
getAdPreviews,
|
|
149
157
|
getAdSetDetails,
|
|
@@ -170,6 +178,7 @@ import {
|
|
|
170
178
|
getConversionsQuality,
|
|
171
179
|
getDailyMetrics,
|
|
172
180
|
getDiscordChannels,
|
|
181
|
+
getDiscordGuildMember,
|
|
173
182
|
getDiscordScheduledEvent,
|
|
174
183
|
getDiscordSettings,
|
|
175
184
|
getDsaDefaults,
|
|
@@ -295,6 +304,9 @@ import {
|
|
|
295
304
|
listAdCampaigns,
|
|
296
305
|
listAdCatalogProductSets,
|
|
297
306
|
listAdCatalogs,
|
|
307
|
+
listAdCreatives,
|
|
308
|
+
listAdImages,
|
|
309
|
+
listAdLabels,
|
|
298
310
|
listAdStudies,
|
|
299
311
|
listAds,
|
|
300
312
|
listAdsBusinessCenters,
|
|
@@ -317,6 +329,7 @@ import {
|
|
|
317
329
|
listGoogleBusinessLocations,
|
|
318
330
|
listGoogleBusinessMedia,
|
|
319
331
|
listGoogleBusinessPlaceActions,
|
|
332
|
+
listHighDemandPeriods,
|
|
320
333
|
listInboxComments,
|
|
321
334
|
listInboxConversationAnalytics,
|
|
322
335
|
listInboxConversations,
|
|
@@ -327,6 +340,7 @@ import {
|
|
|
327
340
|
listLeads,
|
|
328
341
|
listLinkedInOrganizations,
|
|
329
342
|
listLogs,
|
|
343
|
+
listMetaBusinesses,
|
|
330
344
|
listPhoneNumberCountries,
|
|
331
345
|
listPhoneNumberPortIns,
|
|
332
346
|
listPhoneNumbers,
|
|
@@ -338,6 +352,7 @@ import {
|
|
|
338
352
|
listSequences,
|
|
339
353
|
listSmsOptOuts,
|
|
340
354
|
listSmsRegistrations,
|
|
355
|
+
listSmsSenderIds,
|
|
341
356
|
listSnapchatProfiles,
|
|
342
357
|
listTrackingTagSharedAccounts,
|
|
343
358
|
listTrackingTags,
|
|
@@ -383,6 +398,7 @@ import {
|
|
|
383
398
|
replyToInboxPost,
|
|
384
399
|
replyToInboxReview,
|
|
385
400
|
replyToMention,
|
|
401
|
+
requestSmsSenderIdLimitIncrease,
|
|
386
402
|
resendSmsRegistrationOtp,
|
|
387
403
|
reserveRfPrediction,
|
|
388
404
|
restoreWorkflowVersion,
|
|
@@ -395,6 +411,7 @@ import {
|
|
|
395
411
|
searchAdTargeting,
|
|
396
412
|
searchAvailablePhoneNumbers,
|
|
397
413
|
searchAvailableWhatsAppNumbers,
|
|
414
|
+
searchDiscordGuildMembers,
|
|
398
415
|
searchInboxConversations,
|
|
399
416
|
searchReddit,
|
|
400
417
|
selectFacebookPage,
|
|
@@ -442,6 +459,7 @@ import {
|
|
|
442
459
|
updateAdAudience,
|
|
443
460
|
updateAdCampaign,
|
|
444
461
|
updateAdCampaignStatus,
|
|
462
|
+
updateAdCreative,
|
|
445
463
|
updateAdSet,
|
|
446
464
|
updateAdSetStatus,
|
|
447
465
|
updateAdStatus,
|
|
@@ -864,6 +882,8 @@ export class Zernio {
|
|
|
864
882
|
editDiscordGuildRole: editDiscordGuildRole,
|
|
865
883
|
deleteDiscordGuildRole: deleteDiscordGuildRole,
|
|
866
884
|
listDiscordGuildMembers: listDiscordGuildMembers,
|
|
885
|
+
searchDiscordGuildMembers: searchDiscordGuildMembers,
|
|
886
|
+
getDiscordGuildMember: getDiscordGuildMember,
|
|
867
887
|
addDiscordMemberRole: addDiscordMemberRole,
|
|
868
888
|
removeDiscordMemberRole: removeDiscordMemberRole,
|
|
869
889
|
deleteDiscordMessage: deleteDiscordMessage,
|
|
@@ -931,10 +951,43 @@ export class Zernio {
|
|
|
931
951
|
};
|
|
932
952
|
|
|
933
953
|
/**
|
|
934
|
-
*
|
|
954
|
+
* whatsapp API
|
|
935
955
|
*/
|
|
936
|
-
|
|
956
|
+
whatsapp = {
|
|
937
957
|
getWhatsAppMedia: getWhatsAppMedia,
|
|
958
|
+
getWhatsAppTemplates: getWhatsAppTemplates,
|
|
959
|
+
createWhatsAppTemplate: createWhatsAppTemplate,
|
|
960
|
+
getWhatsAppTemplate: getWhatsAppTemplate,
|
|
961
|
+
updateWhatsAppTemplate: updateWhatsAppTemplate,
|
|
962
|
+
deleteWhatsAppTemplate: deleteWhatsAppTemplate,
|
|
963
|
+
getWhatsAppBusinessProfile: getWhatsAppBusinessProfile,
|
|
964
|
+
updateWhatsAppBusinessProfile: updateWhatsAppBusinessProfile,
|
|
965
|
+
uploadWhatsAppProfilePhoto: uploadWhatsAppProfilePhoto,
|
|
966
|
+
getWhatsAppDisplayName: getWhatsAppDisplayName,
|
|
967
|
+
updateWhatsAppDisplayName: updateWhatsAppDisplayName,
|
|
968
|
+
getWhatsappBusinessUsername: getWhatsappBusinessUsername,
|
|
969
|
+
setWhatsappBusinessUsername: setWhatsappBusinessUsername,
|
|
970
|
+
deleteWhatsappBusinessUsername: deleteWhatsappBusinessUsername,
|
|
971
|
+
getWhatsappBusinessUsernameSuggestions: getWhatsappBusinessUsernameSuggestions,
|
|
972
|
+
getWhatsAppBlockStatus: getWhatsAppBlockStatus,
|
|
973
|
+
getWhatsAppBlockedUsers: getWhatsAppBlockedUsers,
|
|
974
|
+
blockWhatsAppUsers: blockWhatsAppUsers,
|
|
975
|
+
unblockWhatsAppUsers: unblockWhatsAppUsers,
|
|
976
|
+
getWhatsAppDataset: getWhatsAppDataset,
|
|
977
|
+
createWhatsAppDataset: createWhatsAppDataset,
|
|
978
|
+
listWhatsAppGroupChats: listWhatsAppGroupChats,
|
|
979
|
+
createWhatsAppGroupChat: createWhatsAppGroupChat,
|
|
980
|
+
getWhatsAppGroupChat: getWhatsAppGroupChat,
|
|
981
|
+
updateWhatsAppGroupChat: updateWhatsAppGroupChat,
|
|
982
|
+
deleteWhatsAppGroupChat: deleteWhatsAppGroupChat,
|
|
983
|
+
addWhatsAppGroupParticipants: addWhatsAppGroupParticipants,
|
|
984
|
+
removeWhatsAppGroupParticipants: removeWhatsAppGroupParticipants,
|
|
985
|
+
createWhatsAppGroupInviteLink: createWhatsAppGroupInviteLink,
|
|
986
|
+
listWhatsAppGroupJoinRequests: listWhatsAppGroupJoinRequests,
|
|
987
|
+
approveWhatsAppGroupJoinRequests: approveWhatsAppGroupJoinRequests,
|
|
988
|
+
rejectWhatsAppGroupJoinRequests: rejectWhatsAppGroupJoinRequests,
|
|
989
|
+
listWhatsAppConversions: listWhatsAppConversions,
|
|
990
|
+
sendWhatsAppConversion: sendWhatsAppConversion,
|
|
938
991
|
};
|
|
939
992
|
|
|
940
993
|
/**
|
|
@@ -998,45 +1051,6 @@ export class Zernio {
|
|
|
998
1051
|
deleteInboxReviewReply: deleteInboxReviewReply,
|
|
999
1052
|
};
|
|
1000
1053
|
|
|
1001
|
-
/**
|
|
1002
|
-
* whatsapp API
|
|
1003
|
-
*/
|
|
1004
|
-
whatsapp = {
|
|
1005
|
-
getWhatsAppTemplates: getWhatsAppTemplates,
|
|
1006
|
-
createWhatsAppTemplate: createWhatsAppTemplate,
|
|
1007
|
-
getWhatsAppTemplate: getWhatsAppTemplate,
|
|
1008
|
-
updateWhatsAppTemplate: updateWhatsAppTemplate,
|
|
1009
|
-
deleteWhatsAppTemplate: deleteWhatsAppTemplate,
|
|
1010
|
-
getWhatsAppBusinessProfile: getWhatsAppBusinessProfile,
|
|
1011
|
-
updateWhatsAppBusinessProfile: updateWhatsAppBusinessProfile,
|
|
1012
|
-
uploadWhatsAppProfilePhoto: uploadWhatsAppProfilePhoto,
|
|
1013
|
-
getWhatsAppDisplayName: getWhatsAppDisplayName,
|
|
1014
|
-
updateWhatsAppDisplayName: updateWhatsAppDisplayName,
|
|
1015
|
-
getWhatsappBusinessUsername: getWhatsappBusinessUsername,
|
|
1016
|
-
setWhatsappBusinessUsername: setWhatsappBusinessUsername,
|
|
1017
|
-
deleteWhatsappBusinessUsername: deleteWhatsappBusinessUsername,
|
|
1018
|
-
getWhatsappBusinessUsernameSuggestions: getWhatsappBusinessUsernameSuggestions,
|
|
1019
|
-
getWhatsAppBlockStatus: getWhatsAppBlockStatus,
|
|
1020
|
-
getWhatsAppBlockedUsers: getWhatsAppBlockedUsers,
|
|
1021
|
-
blockWhatsAppUsers: blockWhatsAppUsers,
|
|
1022
|
-
unblockWhatsAppUsers: unblockWhatsAppUsers,
|
|
1023
|
-
getWhatsAppDataset: getWhatsAppDataset,
|
|
1024
|
-
createWhatsAppDataset: createWhatsAppDataset,
|
|
1025
|
-
listWhatsAppGroupChats: listWhatsAppGroupChats,
|
|
1026
|
-
createWhatsAppGroupChat: createWhatsAppGroupChat,
|
|
1027
|
-
getWhatsAppGroupChat: getWhatsAppGroupChat,
|
|
1028
|
-
updateWhatsAppGroupChat: updateWhatsAppGroupChat,
|
|
1029
|
-
deleteWhatsAppGroupChat: deleteWhatsAppGroupChat,
|
|
1030
|
-
addWhatsAppGroupParticipants: addWhatsAppGroupParticipants,
|
|
1031
|
-
removeWhatsAppGroupParticipants: removeWhatsAppGroupParticipants,
|
|
1032
|
-
createWhatsAppGroupInviteLink: createWhatsAppGroupInviteLink,
|
|
1033
|
-
listWhatsAppGroupJoinRequests: listWhatsAppGroupJoinRequests,
|
|
1034
|
-
approveWhatsAppGroupJoinRequests: approveWhatsAppGroupJoinRequests,
|
|
1035
|
-
rejectWhatsAppGroupJoinRequests: rejectWhatsAppGroupJoinRequests,
|
|
1036
|
-
listWhatsAppConversions: listWhatsAppConversions,
|
|
1037
|
-
sendWhatsAppConversion: sendWhatsAppConversion,
|
|
1038
|
-
};
|
|
1039
|
-
|
|
1040
1054
|
/**
|
|
1041
1055
|
* whatsappcalling API
|
|
1042
1056
|
*/
|
|
@@ -1090,6 +1104,10 @@ export class Zernio {
|
|
|
1090
1104
|
sendSms: sendSms,
|
|
1091
1105
|
lookupSmsNumber: lookupSmsNumber,
|
|
1092
1106
|
listSmsOptOuts: listSmsOptOuts,
|
|
1107
|
+
createSmsSenderId: createSmsSenderId,
|
|
1108
|
+
listSmsSenderIds: listSmsSenderIds,
|
|
1109
|
+
requestSmsSenderIdLimitIncrease: requestSmsSenderIdLimitIncrease,
|
|
1110
|
+
deleteSmsSenderId: deleteSmsSenderId,
|
|
1093
1111
|
startSmsRegistration: startSmsRegistration,
|
|
1094
1112
|
listSmsRegistrations: listSmsRegistrations,
|
|
1095
1113
|
deactivateSmsRegistration: deactivateSmsRegistration,
|
|
@@ -1283,6 +1301,7 @@ export class Zernio {
|
|
|
1283
1301
|
*/
|
|
1284
1302
|
ads = {
|
|
1285
1303
|
listAds: listAds,
|
|
1304
|
+
duplicateAd: duplicateAd,
|
|
1286
1305
|
getAd: getAd,
|
|
1287
1306
|
updateAd: updateAd,
|
|
1288
1307
|
deleteAd: deleteAd,
|
|
@@ -1304,6 +1323,14 @@ export class Zernio {
|
|
|
1304
1323
|
cancelRfReservation: cancelRfReservation,
|
|
1305
1324
|
reserveRfPrediction: reserveRfPrediction,
|
|
1306
1325
|
listAdStudies: listAdStudies,
|
|
1326
|
+
listMetaBusinesses: listMetaBusinesses,
|
|
1327
|
+
listAdLabels: listAdLabels,
|
|
1328
|
+
listHighDemandPeriods: listHighDemandPeriods,
|
|
1329
|
+
listAdCreatives: listAdCreatives,
|
|
1330
|
+
createAdCreative: createAdCreative,
|
|
1331
|
+
getAdCreative: getAdCreative,
|
|
1332
|
+
updateAdCreative: updateAdCreative,
|
|
1333
|
+
deleteAdCreative: deleteAdCreative,
|
|
1307
1334
|
getAdAccountFinance: getAdAccountFinance,
|
|
1308
1335
|
listAdAccounts: listAdAccounts,
|
|
1309
1336
|
updateAdAccount: updateAdAccount,
|
|
@@ -1319,6 +1346,7 @@ export class Zernio {
|
|
|
1319
1346
|
listFormLeads: listFormLeads,
|
|
1320
1347
|
createTestLead: createTestLead,
|
|
1321
1348
|
uploadAdImage: uploadAdImage,
|
|
1349
|
+
listAdImages: listAdImages,
|
|
1322
1350
|
searchAdInterests: searchAdInterests,
|
|
1323
1351
|
searchAdTargeting: searchAdTargeting,
|
|
1324
1352
|
estimateAdReach: estimateAdReach,
|
|
@@ -1348,11 +1376,13 @@ export class Zernio {
|
|
|
1348
1376
|
*/
|
|
1349
1377
|
adcampaigns = {
|
|
1350
1378
|
listAdCampaigns: listAdCampaigns,
|
|
1379
|
+
createAdCampaign: createAdCampaign,
|
|
1351
1380
|
updateAdCampaignStatus: updateAdCampaignStatus,
|
|
1352
1381
|
updateAdCampaign: updateAdCampaign,
|
|
1353
1382
|
deleteAdCampaign: deleteAdCampaign,
|
|
1354
1383
|
bulkUpdateAdCampaignStatus: bulkUpdateAdCampaignStatus,
|
|
1355
1384
|
duplicateAdCampaign: duplicateAdCampaign,
|
|
1385
|
+
duplicateAdSet: duplicateAdSet,
|
|
1356
1386
|
getAdSetDetails: getAdSetDetails,
|
|
1357
1387
|
updateAdSet: updateAdSet,
|
|
1358
1388
|
updateAdSetStatus: updateAdSetStatus,
|