@zernio/node 0.2.56 → 0.2.57
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 +0 -26
- package/dist/index.d.mts +99 -1310
- package/dist/index.d.ts +99 -1310
- package/dist/index.js +1 -183
- package/dist/index.mjs +1 -183
- package/package.json +1 -1
- package/src/client.ts +0 -52
- package/src/generated/sdk.gen.ts +1 -383
- package/src/generated/types.gen.ts +96 -1366
package/dist/index.js
CHANGED
|
@@ -549,12 +549,6 @@ var deleteAccount = (options) => {
|
|
|
549
549
|
url: "/v1/accounts/{accountId}"
|
|
550
550
|
});
|
|
551
551
|
};
|
|
552
|
-
var disconnectAds = (options) => {
|
|
553
|
-
return (options?.client ?? client).post({
|
|
554
|
-
...options,
|
|
555
|
-
url: "/v1/accounts/{accountId}/disconnect-ads"
|
|
556
|
-
});
|
|
557
|
-
};
|
|
558
552
|
var getAllAccountsHealth = (options) => {
|
|
559
553
|
return (options?.client ?? client).get({
|
|
560
554
|
...options,
|
|
@@ -963,24 +957,6 @@ var listLogs = (options) => {
|
|
|
963
957
|
url: "/v1/logs"
|
|
964
958
|
});
|
|
965
959
|
};
|
|
966
|
-
var getWebhookLogs = (options) => {
|
|
967
|
-
return (options?.client ?? client).get({
|
|
968
|
-
...options,
|
|
969
|
-
url: "/v1/webhooks/logs"
|
|
970
|
-
});
|
|
971
|
-
};
|
|
972
|
-
var listPostsLogs = (options) => {
|
|
973
|
-
return (options?.client ?? client).get({
|
|
974
|
-
...options,
|
|
975
|
-
url: "/v1/posts/logs"
|
|
976
|
-
});
|
|
977
|
-
};
|
|
978
|
-
var listConnectionLogs = (options) => {
|
|
979
|
-
return (options?.client ?? client).get({
|
|
980
|
-
...options,
|
|
981
|
-
url: "/v1/connections/logs"
|
|
982
|
-
});
|
|
983
|
-
};
|
|
984
960
|
var getPostLogs = (options) => {
|
|
985
961
|
return (options?.client ?? client).get({
|
|
986
962
|
...options,
|
|
@@ -1226,78 +1202,6 @@ var deleteInboxReviewReply = (options) => {
|
|
|
1226
1202
|
url: "/v1/inbox/reviews/{reviewId}/reply"
|
|
1227
1203
|
});
|
|
1228
1204
|
};
|
|
1229
|
-
var sendWhatsAppBulk = (options) => {
|
|
1230
|
-
return (options?.client ?? client).post({
|
|
1231
|
-
...options,
|
|
1232
|
-
url: "/v1/whatsapp/bulk"
|
|
1233
|
-
});
|
|
1234
|
-
};
|
|
1235
|
-
var getWhatsAppContacts = (options) => {
|
|
1236
|
-
return (options?.client ?? client).get({
|
|
1237
|
-
...options,
|
|
1238
|
-
url: "/v1/whatsapp/contacts"
|
|
1239
|
-
});
|
|
1240
|
-
};
|
|
1241
|
-
var createWhatsAppContact = (options) => {
|
|
1242
|
-
return (options?.client ?? client).post({
|
|
1243
|
-
...options,
|
|
1244
|
-
url: "/v1/whatsapp/contacts"
|
|
1245
|
-
});
|
|
1246
|
-
};
|
|
1247
|
-
var getWhatsAppContact = (options) => {
|
|
1248
|
-
return (options?.client ?? client).get({
|
|
1249
|
-
...options,
|
|
1250
|
-
url: "/v1/whatsapp/contacts/{contactId}"
|
|
1251
|
-
});
|
|
1252
|
-
};
|
|
1253
|
-
var updateWhatsAppContact = (options) => {
|
|
1254
|
-
return (options?.client ?? client).put({
|
|
1255
|
-
...options,
|
|
1256
|
-
url: "/v1/whatsapp/contacts/{contactId}"
|
|
1257
|
-
});
|
|
1258
|
-
};
|
|
1259
|
-
var deleteWhatsAppContact = (options) => {
|
|
1260
|
-
return (options?.client ?? client).delete({
|
|
1261
|
-
...options,
|
|
1262
|
-
url: "/v1/whatsapp/contacts/{contactId}"
|
|
1263
|
-
});
|
|
1264
|
-
};
|
|
1265
|
-
var importWhatsAppContacts = (options) => {
|
|
1266
|
-
return (options?.client ?? client).post({
|
|
1267
|
-
...options,
|
|
1268
|
-
url: "/v1/whatsapp/contacts/import"
|
|
1269
|
-
});
|
|
1270
|
-
};
|
|
1271
|
-
var bulkUpdateWhatsAppContacts = (options) => {
|
|
1272
|
-
return (options?.client ?? client).post({
|
|
1273
|
-
...options,
|
|
1274
|
-
url: "/v1/whatsapp/contacts/bulk"
|
|
1275
|
-
});
|
|
1276
|
-
};
|
|
1277
|
-
var bulkDeleteWhatsAppContacts = (options) => {
|
|
1278
|
-
return (options?.client ?? client).delete({
|
|
1279
|
-
...options,
|
|
1280
|
-
url: "/v1/whatsapp/contacts/bulk"
|
|
1281
|
-
});
|
|
1282
|
-
};
|
|
1283
|
-
var getWhatsAppGroups = (options) => {
|
|
1284
|
-
return (options?.client ?? client).get({
|
|
1285
|
-
...options,
|
|
1286
|
-
url: "/v1/whatsapp/groups"
|
|
1287
|
-
});
|
|
1288
|
-
};
|
|
1289
|
-
var renameWhatsAppGroup = (options) => {
|
|
1290
|
-
return (options?.client ?? client).post({
|
|
1291
|
-
...options,
|
|
1292
|
-
url: "/v1/whatsapp/groups"
|
|
1293
|
-
});
|
|
1294
|
-
};
|
|
1295
|
-
var deleteWhatsAppGroup = (options) => {
|
|
1296
|
-
return (options?.client ?? client).delete({
|
|
1297
|
-
...options,
|
|
1298
|
-
url: "/v1/whatsapp/groups"
|
|
1299
|
-
});
|
|
1300
|
-
};
|
|
1301
1205
|
var getWhatsAppTemplates = (options) => {
|
|
1302
1206
|
return (options?.client ?? client).get({
|
|
1303
1207
|
...options,
|
|
@@ -1328,66 +1232,6 @@ var deleteWhatsAppTemplate = (options) => {
|
|
|
1328
1232
|
url: "/v1/whatsapp/templates/{templateName}"
|
|
1329
1233
|
});
|
|
1330
1234
|
};
|
|
1331
|
-
var getWhatsAppBroadcasts = (options) => {
|
|
1332
|
-
return (options?.client ?? client).get({
|
|
1333
|
-
...options,
|
|
1334
|
-
url: "/v1/whatsapp/broadcasts"
|
|
1335
|
-
});
|
|
1336
|
-
};
|
|
1337
|
-
var createWhatsAppBroadcast = (options) => {
|
|
1338
|
-
return (options?.client ?? client).post({
|
|
1339
|
-
...options,
|
|
1340
|
-
url: "/v1/whatsapp/broadcasts"
|
|
1341
|
-
});
|
|
1342
|
-
};
|
|
1343
|
-
var getWhatsAppBroadcast = (options) => {
|
|
1344
|
-
return (options?.client ?? client).get({
|
|
1345
|
-
...options,
|
|
1346
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}"
|
|
1347
|
-
});
|
|
1348
|
-
};
|
|
1349
|
-
var deleteWhatsAppBroadcast = (options) => {
|
|
1350
|
-
return (options?.client ?? client).delete({
|
|
1351
|
-
...options,
|
|
1352
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}"
|
|
1353
|
-
});
|
|
1354
|
-
};
|
|
1355
|
-
var sendWhatsAppBroadcast = (options) => {
|
|
1356
|
-
return (options?.client ?? client).post({
|
|
1357
|
-
...options,
|
|
1358
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/send"
|
|
1359
|
-
});
|
|
1360
|
-
};
|
|
1361
|
-
var scheduleWhatsAppBroadcast = (options) => {
|
|
1362
|
-
return (options?.client ?? client).post({
|
|
1363
|
-
...options,
|
|
1364
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/schedule"
|
|
1365
|
-
});
|
|
1366
|
-
};
|
|
1367
|
-
var cancelWhatsAppBroadcastSchedule = (options) => {
|
|
1368
|
-
return (options?.client ?? client).delete({
|
|
1369
|
-
...options,
|
|
1370
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/schedule"
|
|
1371
|
-
});
|
|
1372
|
-
};
|
|
1373
|
-
var getWhatsAppBroadcastRecipients = (options) => {
|
|
1374
|
-
return (options?.client ?? client).get({
|
|
1375
|
-
...options,
|
|
1376
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
|
|
1377
|
-
});
|
|
1378
|
-
};
|
|
1379
|
-
var addWhatsAppBroadcastRecipients = (options) => {
|
|
1380
|
-
return (options?.client ?? client).patch({
|
|
1381
|
-
...options,
|
|
1382
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
|
|
1383
|
-
});
|
|
1384
|
-
};
|
|
1385
|
-
var removeWhatsAppBroadcastRecipients = (options) => {
|
|
1386
|
-
return (options?.client ?? client).delete({
|
|
1387
|
-
...options,
|
|
1388
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
|
|
1389
|
-
});
|
|
1390
|
-
};
|
|
1391
1235
|
var getWhatsAppBusinessProfile = (options) => {
|
|
1392
1236
|
return (options?.client ?? client).get({
|
|
1393
1237
|
...options,
|
|
@@ -2109,7 +1953,6 @@ var Zernio = class {
|
|
|
2109
1953
|
getFollowerStats,
|
|
2110
1954
|
updateAccount,
|
|
2111
1955
|
deleteAccount,
|
|
2112
|
-
disconnectAds,
|
|
2113
1956
|
getAllAccountsHealth,
|
|
2114
1957
|
getAccountHealth,
|
|
2115
1958
|
getTikTokCreatorInfo,
|
|
@@ -2237,16 +2080,13 @@ var Zernio = class {
|
|
|
2237
2080
|
createWebhookSettings,
|
|
2238
2081
|
updateWebhookSettings,
|
|
2239
2082
|
deleteWebhookSettings,
|
|
2240
|
-
testWebhook
|
|
2241
|
-
getWebhookLogs
|
|
2083
|
+
testWebhook
|
|
2242
2084
|
};
|
|
2243
2085
|
/**
|
|
2244
2086
|
* Logs API - Publishing logs
|
|
2245
2087
|
*/
|
|
2246
2088
|
this.logs = {
|
|
2247
2089
|
listLogs,
|
|
2248
|
-
listPostsLogs,
|
|
2249
|
-
listConnectionLogs,
|
|
2250
2090
|
getPostLogs
|
|
2251
2091
|
};
|
|
2252
2092
|
/**
|
|
@@ -2317,33 +2157,11 @@ var Zernio = class {
|
|
|
2317
2157
|
* whatsapp API
|
|
2318
2158
|
*/
|
|
2319
2159
|
this.whatsapp = {
|
|
2320
|
-
sendWhatsAppBulk,
|
|
2321
|
-
getWhatsAppContacts,
|
|
2322
|
-
createWhatsAppContact,
|
|
2323
|
-
getWhatsAppContact,
|
|
2324
|
-
updateWhatsAppContact,
|
|
2325
|
-
deleteWhatsAppContact,
|
|
2326
|
-
importWhatsAppContacts,
|
|
2327
|
-
bulkUpdateWhatsAppContacts,
|
|
2328
|
-
bulkDeleteWhatsAppContacts,
|
|
2329
|
-
getWhatsAppGroups,
|
|
2330
|
-
renameWhatsAppGroup,
|
|
2331
|
-
deleteWhatsAppGroup,
|
|
2332
2160
|
getWhatsAppTemplates,
|
|
2333
2161
|
createWhatsAppTemplate,
|
|
2334
2162
|
getWhatsAppTemplate,
|
|
2335
2163
|
updateWhatsAppTemplate,
|
|
2336
2164
|
deleteWhatsAppTemplate,
|
|
2337
|
-
getWhatsAppBroadcasts,
|
|
2338
|
-
createWhatsAppBroadcast,
|
|
2339
|
-
getWhatsAppBroadcast,
|
|
2340
|
-
deleteWhatsAppBroadcast,
|
|
2341
|
-
sendWhatsAppBroadcast,
|
|
2342
|
-
scheduleWhatsAppBroadcast,
|
|
2343
|
-
cancelWhatsAppBroadcastSchedule,
|
|
2344
|
-
getWhatsAppBroadcastRecipients,
|
|
2345
|
-
addWhatsAppBroadcastRecipients,
|
|
2346
|
-
removeWhatsAppBroadcastRecipients,
|
|
2347
2165
|
getWhatsAppBusinessProfile,
|
|
2348
2166
|
updateWhatsAppBusinessProfile,
|
|
2349
2167
|
uploadWhatsAppProfilePhoto,
|
package/dist/index.mjs
CHANGED
|
@@ -518,12 +518,6 @@ var deleteAccount = (options) => {
|
|
|
518
518
|
url: "/v1/accounts/{accountId}"
|
|
519
519
|
});
|
|
520
520
|
};
|
|
521
|
-
var disconnectAds = (options) => {
|
|
522
|
-
return (options?.client ?? client).post({
|
|
523
|
-
...options,
|
|
524
|
-
url: "/v1/accounts/{accountId}/disconnect-ads"
|
|
525
|
-
});
|
|
526
|
-
};
|
|
527
521
|
var getAllAccountsHealth = (options) => {
|
|
528
522
|
return (options?.client ?? client).get({
|
|
529
523
|
...options,
|
|
@@ -932,24 +926,6 @@ var listLogs = (options) => {
|
|
|
932
926
|
url: "/v1/logs"
|
|
933
927
|
});
|
|
934
928
|
};
|
|
935
|
-
var getWebhookLogs = (options) => {
|
|
936
|
-
return (options?.client ?? client).get({
|
|
937
|
-
...options,
|
|
938
|
-
url: "/v1/webhooks/logs"
|
|
939
|
-
});
|
|
940
|
-
};
|
|
941
|
-
var listPostsLogs = (options) => {
|
|
942
|
-
return (options?.client ?? client).get({
|
|
943
|
-
...options,
|
|
944
|
-
url: "/v1/posts/logs"
|
|
945
|
-
});
|
|
946
|
-
};
|
|
947
|
-
var listConnectionLogs = (options) => {
|
|
948
|
-
return (options?.client ?? client).get({
|
|
949
|
-
...options,
|
|
950
|
-
url: "/v1/connections/logs"
|
|
951
|
-
});
|
|
952
|
-
};
|
|
953
929
|
var getPostLogs = (options) => {
|
|
954
930
|
return (options?.client ?? client).get({
|
|
955
931
|
...options,
|
|
@@ -1195,78 +1171,6 @@ var deleteInboxReviewReply = (options) => {
|
|
|
1195
1171
|
url: "/v1/inbox/reviews/{reviewId}/reply"
|
|
1196
1172
|
});
|
|
1197
1173
|
};
|
|
1198
|
-
var sendWhatsAppBulk = (options) => {
|
|
1199
|
-
return (options?.client ?? client).post({
|
|
1200
|
-
...options,
|
|
1201
|
-
url: "/v1/whatsapp/bulk"
|
|
1202
|
-
});
|
|
1203
|
-
};
|
|
1204
|
-
var getWhatsAppContacts = (options) => {
|
|
1205
|
-
return (options?.client ?? client).get({
|
|
1206
|
-
...options,
|
|
1207
|
-
url: "/v1/whatsapp/contacts"
|
|
1208
|
-
});
|
|
1209
|
-
};
|
|
1210
|
-
var createWhatsAppContact = (options) => {
|
|
1211
|
-
return (options?.client ?? client).post({
|
|
1212
|
-
...options,
|
|
1213
|
-
url: "/v1/whatsapp/contacts"
|
|
1214
|
-
});
|
|
1215
|
-
};
|
|
1216
|
-
var getWhatsAppContact = (options) => {
|
|
1217
|
-
return (options?.client ?? client).get({
|
|
1218
|
-
...options,
|
|
1219
|
-
url: "/v1/whatsapp/contacts/{contactId}"
|
|
1220
|
-
});
|
|
1221
|
-
};
|
|
1222
|
-
var updateWhatsAppContact = (options) => {
|
|
1223
|
-
return (options?.client ?? client).put({
|
|
1224
|
-
...options,
|
|
1225
|
-
url: "/v1/whatsapp/contacts/{contactId}"
|
|
1226
|
-
});
|
|
1227
|
-
};
|
|
1228
|
-
var deleteWhatsAppContact = (options) => {
|
|
1229
|
-
return (options?.client ?? client).delete({
|
|
1230
|
-
...options,
|
|
1231
|
-
url: "/v1/whatsapp/contacts/{contactId}"
|
|
1232
|
-
});
|
|
1233
|
-
};
|
|
1234
|
-
var importWhatsAppContacts = (options) => {
|
|
1235
|
-
return (options?.client ?? client).post({
|
|
1236
|
-
...options,
|
|
1237
|
-
url: "/v1/whatsapp/contacts/import"
|
|
1238
|
-
});
|
|
1239
|
-
};
|
|
1240
|
-
var bulkUpdateWhatsAppContacts = (options) => {
|
|
1241
|
-
return (options?.client ?? client).post({
|
|
1242
|
-
...options,
|
|
1243
|
-
url: "/v1/whatsapp/contacts/bulk"
|
|
1244
|
-
});
|
|
1245
|
-
};
|
|
1246
|
-
var bulkDeleteWhatsAppContacts = (options) => {
|
|
1247
|
-
return (options?.client ?? client).delete({
|
|
1248
|
-
...options,
|
|
1249
|
-
url: "/v1/whatsapp/contacts/bulk"
|
|
1250
|
-
});
|
|
1251
|
-
};
|
|
1252
|
-
var getWhatsAppGroups = (options) => {
|
|
1253
|
-
return (options?.client ?? client).get({
|
|
1254
|
-
...options,
|
|
1255
|
-
url: "/v1/whatsapp/groups"
|
|
1256
|
-
});
|
|
1257
|
-
};
|
|
1258
|
-
var renameWhatsAppGroup = (options) => {
|
|
1259
|
-
return (options?.client ?? client).post({
|
|
1260
|
-
...options,
|
|
1261
|
-
url: "/v1/whatsapp/groups"
|
|
1262
|
-
});
|
|
1263
|
-
};
|
|
1264
|
-
var deleteWhatsAppGroup = (options) => {
|
|
1265
|
-
return (options?.client ?? client).delete({
|
|
1266
|
-
...options,
|
|
1267
|
-
url: "/v1/whatsapp/groups"
|
|
1268
|
-
});
|
|
1269
|
-
};
|
|
1270
1174
|
var getWhatsAppTemplates = (options) => {
|
|
1271
1175
|
return (options?.client ?? client).get({
|
|
1272
1176
|
...options,
|
|
@@ -1297,66 +1201,6 @@ var deleteWhatsAppTemplate = (options) => {
|
|
|
1297
1201
|
url: "/v1/whatsapp/templates/{templateName}"
|
|
1298
1202
|
});
|
|
1299
1203
|
};
|
|
1300
|
-
var getWhatsAppBroadcasts = (options) => {
|
|
1301
|
-
return (options?.client ?? client).get({
|
|
1302
|
-
...options,
|
|
1303
|
-
url: "/v1/whatsapp/broadcasts"
|
|
1304
|
-
});
|
|
1305
|
-
};
|
|
1306
|
-
var createWhatsAppBroadcast = (options) => {
|
|
1307
|
-
return (options?.client ?? client).post({
|
|
1308
|
-
...options,
|
|
1309
|
-
url: "/v1/whatsapp/broadcasts"
|
|
1310
|
-
});
|
|
1311
|
-
};
|
|
1312
|
-
var getWhatsAppBroadcast = (options) => {
|
|
1313
|
-
return (options?.client ?? client).get({
|
|
1314
|
-
...options,
|
|
1315
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}"
|
|
1316
|
-
});
|
|
1317
|
-
};
|
|
1318
|
-
var deleteWhatsAppBroadcast = (options) => {
|
|
1319
|
-
return (options?.client ?? client).delete({
|
|
1320
|
-
...options,
|
|
1321
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}"
|
|
1322
|
-
});
|
|
1323
|
-
};
|
|
1324
|
-
var sendWhatsAppBroadcast = (options) => {
|
|
1325
|
-
return (options?.client ?? client).post({
|
|
1326
|
-
...options,
|
|
1327
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/send"
|
|
1328
|
-
});
|
|
1329
|
-
};
|
|
1330
|
-
var scheduleWhatsAppBroadcast = (options) => {
|
|
1331
|
-
return (options?.client ?? client).post({
|
|
1332
|
-
...options,
|
|
1333
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/schedule"
|
|
1334
|
-
});
|
|
1335
|
-
};
|
|
1336
|
-
var cancelWhatsAppBroadcastSchedule = (options) => {
|
|
1337
|
-
return (options?.client ?? client).delete({
|
|
1338
|
-
...options,
|
|
1339
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/schedule"
|
|
1340
|
-
});
|
|
1341
|
-
};
|
|
1342
|
-
var getWhatsAppBroadcastRecipients = (options) => {
|
|
1343
|
-
return (options?.client ?? client).get({
|
|
1344
|
-
...options,
|
|
1345
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
|
|
1346
|
-
});
|
|
1347
|
-
};
|
|
1348
|
-
var addWhatsAppBroadcastRecipients = (options) => {
|
|
1349
|
-
return (options?.client ?? client).patch({
|
|
1350
|
-
...options,
|
|
1351
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
|
|
1352
|
-
});
|
|
1353
|
-
};
|
|
1354
|
-
var removeWhatsAppBroadcastRecipients = (options) => {
|
|
1355
|
-
return (options?.client ?? client).delete({
|
|
1356
|
-
...options,
|
|
1357
|
-
url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
|
|
1358
|
-
});
|
|
1359
|
-
};
|
|
1360
1204
|
var getWhatsAppBusinessProfile = (options) => {
|
|
1361
1205
|
return (options?.client ?? client).get({
|
|
1362
1206
|
...options,
|
|
@@ -2078,7 +1922,6 @@ var Zernio = class {
|
|
|
2078
1922
|
getFollowerStats,
|
|
2079
1923
|
updateAccount,
|
|
2080
1924
|
deleteAccount,
|
|
2081
|
-
disconnectAds,
|
|
2082
1925
|
getAllAccountsHealth,
|
|
2083
1926
|
getAccountHealth,
|
|
2084
1927
|
getTikTokCreatorInfo,
|
|
@@ -2206,16 +2049,13 @@ var Zernio = class {
|
|
|
2206
2049
|
createWebhookSettings,
|
|
2207
2050
|
updateWebhookSettings,
|
|
2208
2051
|
deleteWebhookSettings,
|
|
2209
|
-
testWebhook
|
|
2210
|
-
getWebhookLogs
|
|
2052
|
+
testWebhook
|
|
2211
2053
|
};
|
|
2212
2054
|
/**
|
|
2213
2055
|
* Logs API - Publishing logs
|
|
2214
2056
|
*/
|
|
2215
2057
|
this.logs = {
|
|
2216
2058
|
listLogs,
|
|
2217
|
-
listPostsLogs,
|
|
2218
|
-
listConnectionLogs,
|
|
2219
2059
|
getPostLogs
|
|
2220
2060
|
};
|
|
2221
2061
|
/**
|
|
@@ -2286,33 +2126,11 @@ var Zernio = class {
|
|
|
2286
2126
|
* whatsapp API
|
|
2287
2127
|
*/
|
|
2288
2128
|
this.whatsapp = {
|
|
2289
|
-
sendWhatsAppBulk,
|
|
2290
|
-
getWhatsAppContacts,
|
|
2291
|
-
createWhatsAppContact,
|
|
2292
|
-
getWhatsAppContact,
|
|
2293
|
-
updateWhatsAppContact,
|
|
2294
|
-
deleteWhatsAppContact,
|
|
2295
|
-
importWhatsAppContacts,
|
|
2296
|
-
bulkUpdateWhatsAppContacts,
|
|
2297
|
-
bulkDeleteWhatsAppContacts,
|
|
2298
|
-
getWhatsAppGroups,
|
|
2299
|
-
renameWhatsAppGroup,
|
|
2300
|
-
deleteWhatsAppGroup,
|
|
2301
2129
|
getWhatsAppTemplates,
|
|
2302
2130
|
createWhatsAppTemplate,
|
|
2303
2131
|
getWhatsAppTemplate,
|
|
2304
2132
|
updateWhatsAppTemplate,
|
|
2305
2133
|
deleteWhatsAppTemplate,
|
|
2306
|
-
getWhatsAppBroadcasts,
|
|
2307
|
-
createWhatsAppBroadcast,
|
|
2308
|
-
getWhatsAppBroadcast,
|
|
2309
|
-
deleteWhatsAppBroadcast,
|
|
2310
|
-
sendWhatsAppBroadcast,
|
|
2311
|
-
scheduleWhatsAppBroadcast,
|
|
2312
|
-
cancelWhatsAppBroadcastSchedule,
|
|
2313
|
-
getWhatsAppBroadcastRecipients,
|
|
2314
|
-
addWhatsAppBroadcastRecipients,
|
|
2315
|
-
removeWhatsAppBroadcastRecipients,
|
|
2316
2134
|
getWhatsAppBusinessProfile,
|
|
2317
2135
|
updateWhatsAppBusinessProfile,
|
|
2318
2136
|
uploadWhatsAppProfilePhoto,
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -4,17 +4,13 @@ import {
|
|
|
4
4
|
addBroadcastRecipients,
|
|
5
5
|
addMessageReaction,
|
|
6
6
|
addUsersToAdAudience,
|
|
7
|
-
addWhatsAppBroadcastRecipients,
|
|
8
7
|
addWhatsAppGroupParticipants,
|
|
9
8
|
approveWhatsAppGroupJoinRequests,
|
|
10
9
|
bookmarkPost,
|
|
11
10
|
boostPost,
|
|
12
11
|
bulkCreateContacts,
|
|
13
|
-
bulkDeleteWhatsAppContacts,
|
|
14
|
-
bulkUpdateWhatsAppContacts,
|
|
15
12
|
bulkUploadPosts,
|
|
16
13
|
cancelBroadcast,
|
|
17
|
-
cancelWhatsAppBroadcastSchedule,
|
|
18
14
|
clearContactFieldValue,
|
|
19
15
|
completeTelegramConnect,
|
|
20
16
|
connectAds,
|
|
@@ -37,8 +33,6 @@ import {
|
|
|
37
33
|
createSequence,
|
|
38
34
|
createStandaloneAd,
|
|
39
35
|
createWebhookSettings,
|
|
40
|
-
createWhatsAppBroadcast,
|
|
41
|
-
createWhatsAppContact,
|
|
42
36
|
createWhatsAppFlow,
|
|
43
37
|
createWhatsAppGroupChat,
|
|
44
38
|
createWhatsAppGroupInviteLink,
|
|
@@ -65,14 +59,10 @@ import {
|
|
|
65
59
|
deleteSequence,
|
|
66
60
|
deleteTelegramCommands,
|
|
67
61
|
deleteWebhookSettings,
|
|
68
|
-
deleteWhatsAppBroadcast,
|
|
69
|
-
deleteWhatsAppContact,
|
|
70
62
|
deleteWhatsAppFlow,
|
|
71
|
-
deleteWhatsAppGroup,
|
|
72
63
|
deleteWhatsAppGroupChat,
|
|
73
64
|
deleteWhatsAppTemplate,
|
|
74
65
|
deprecateWhatsAppFlow,
|
|
75
|
-
disconnectAds,
|
|
76
66
|
editInboxMessage,
|
|
77
67
|
editPost,
|
|
78
68
|
enrollContacts,
|
|
@@ -131,19 +121,12 @@ import {
|
|
|
131
121
|
getTikTokCreatorInfo,
|
|
132
122
|
getUsageStats,
|
|
133
123
|
getUser,
|
|
134
|
-
getWebhookLogs,
|
|
135
124
|
getWebhookSettings,
|
|
136
|
-
getWhatsAppBroadcast,
|
|
137
|
-
getWhatsAppBroadcastRecipients,
|
|
138
|
-
getWhatsAppBroadcasts,
|
|
139
125
|
getWhatsAppBusinessProfile,
|
|
140
|
-
getWhatsAppContact,
|
|
141
|
-
getWhatsAppContacts,
|
|
142
126
|
getWhatsAppDisplayName,
|
|
143
127
|
getWhatsAppFlow,
|
|
144
128
|
getWhatsAppFlowJson,
|
|
145
129
|
getWhatsAppGroupChat,
|
|
146
|
-
getWhatsAppGroups,
|
|
147
130
|
getWhatsAppPhoneNumber,
|
|
148
131
|
getWhatsAppPhoneNumbers,
|
|
149
132
|
getWhatsAppTemplate,
|
|
@@ -153,7 +136,6 @@ import {
|
|
|
153
136
|
getYoutubePlaylists,
|
|
154
137
|
handleOAuthCallback,
|
|
155
138
|
hideInboxComment,
|
|
156
|
-
importWhatsAppContacts,
|
|
157
139
|
initiateTelegramConnect,
|
|
158
140
|
likeInboxComment,
|
|
159
141
|
listAccountGroups,
|
|
@@ -167,7 +149,6 @@ import {
|
|
|
167
149
|
listBroadcasts,
|
|
168
150
|
listCommentAutomationLogs,
|
|
169
151
|
listCommentAutomations,
|
|
170
|
-
listConnectionLogs,
|
|
171
152
|
listContacts,
|
|
172
153
|
listCustomFields,
|
|
173
154
|
listFacebookPages,
|
|
@@ -181,7 +162,6 @@ import {
|
|
|
181
162
|
listLogs,
|
|
182
163
|
listPinterestBoardsForSelection,
|
|
183
164
|
listPosts,
|
|
184
|
-
listPostsLogs,
|
|
185
165
|
listProfiles,
|
|
186
166
|
listQueueSlots,
|
|
187
167
|
listSequenceEnrollments,
|
|
@@ -199,15 +179,12 @@ import {
|
|
|
199
179
|
releaseWhatsAppPhoneNumber,
|
|
200
180
|
removeBookmark,
|
|
201
181
|
removeMessageReaction,
|
|
202
|
-
removeWhatsAppBroadcastRecipients,
|
|
203
182
|
removeWhatsAppGroupParticipants,
|
|
204
|
-
renameWhatsAppGroup,
|
|
205
183
|
replyToInboxPost,
|
|
206
184
|
replyToInboxReview,
|
|
207
185
|
retryPost,
|
|
208
186
|
retweetPost,
|
|
209
187
|
scheduleBroadcast,
|
|
210
|
-
scheduleWhatsAppBroadcast,
|
|
211
188
|
searchAdInterests,
|
|
212
189
|
searchReddit,
|
|
213
190
|
selectFacebookPage,
|
|
@@ -219,8 +196,6 @@ import {
|
|
|
219
196
|
sendInboxMessage,
|
|
220
197
|
sendPrivateReplyToComment,
|
|
221
198
|
sendTypingIndicator,
|
|
222
|
-
sendWhatsAppBroadcast,
|
|
223
|
-
sendWhatsAppBulk,
|
|
224
199
|
sendWhatsAppFlowMessage,
|
|
225
200
|
setContactFieldValue,
|
|
226
201
|
setInstagramIceBreakers,
|
|
@@ -257,7 +232,6 @@ import {
|
|
|
257
232
|
updateSequence,
|
|
258
233
|
updateWebhookSettings,
|
|
259
234
|
updateWhatsAppBusinessProfile,
|
|
260
|
-
updateWhatsAppContact,
|
|
261
235
|
updateWhatsAppDisplayName,
|
|
262
236
|
updateWhatsAppFlow,
|
|
263
237
|
updateWhatsAppGroupChat,
|
|
@@ -440,7 +414,6 @@ export class Zernio {
|
|
|
440
414
|
getFollowerStats: getFollowerStats,
|
|
441
415
|
updateAccount: updateAccount,
|
|
442
416
|
deleteAccount: deleteAccount,
|
|
443
|
-
disconnectAds: disconnectAds,
|
|
444
417
|
getAllAccountsHealth: getAllAccountsHealth,
|
|
445
418
|
getAccountHealth: getAccountHealth,
|
|
446
419
|
getTikTokCreatorInfo: getTikTokCreatorInfo,
|
|
@@ -579,7 +552,6 @@ export class Zernio {
|
|
|
579
552
|
updateWebhookSettings: updateWebhookSettings,
|
|
580
553
|
deleteWebhookSettings: deleteWebhookSettings,
|
|
581
554
|
testWebhook: testWebhook,
|
|
582
|
-
getWebhookLogs: getWebhookLogs,
|
|
583
555
|
};
|
|
584
556
|
|
|
585
557
|
/**
|
|
@@ -587,8 +559,6 @@ export class Zernio {
|
|
|
587
559
|
*/
|
|
588
560
|
logs = {
|
|
589
561
|
listLogs: listLogs,
|
|
590
|
-
listPostsLogs: listPostsLogs,
|
|
591
|
-
listConnectionLogs: listConnectionLogs,
|
|
592
562
|
getPostLogs: getPostLogs,
|
|
593
563
|
};
|
|
594
564
|
|
|
@@ -665,33 +635,11 @@ export class Zernio {
|
|
|
665
635
|
* whatsapp API
|
|
666
636
|
*/
|
|
667
637
|
whatsapp = {
|
|
668
|
-
sendWhatsAppBulk: sendWhatsAppBulk,
|
|
669
|
-
getWhatsAppContacts: getWhatsAppContacts,
|
|
670
|
-
createWhatsAppContact: createWhatsAppContact,
|
|
671
|
-
getWhatsAppContact: getWhatsAppContact,
|
|
672
|
-
updateWhatsAppContact: updateWhatsAppContact,
|
|
673
|
-
deleteWhatsAppContact: deleteWhatsAppContact,
|
|
674
|
-
importWhatsAppContacts: importWhatsAppContacts,
|
|
675
|
-
bulkUpdateWhatsAppContacts: bulkUpdateWhatsAppContacts,
|
|
676
|
-
bulkDeleteWhatsAppContacts: bulkDeleteWhatsAppContacts,
|
|
677
|
-
getWhatsAppGroups: getWhatsAppGroups,
|
|
678
|
-
renameWhatsAppGroup: renameWhatsAppGroup,
|
|
679
|
-
deleteWhatsAppGroup: deleteWhatsAppGroup,
|
|
680
638
|
getWhatsAppTemplates: getWhatsAppTemplates,
|
|
681
639
|
createWhatsAppTemplate: createWhatsAppTemplate,
|
|
682
640
|
getWhatsAppTemplate: getWhatsAppTemplate,
|
|
683
641
|
updateWhatsAppTemplate: updateWhatsAppTemplate,
|
|
684
642
|
deleteWhatsAppTemplate: deleteWhatsAppTemplate,
|
|
685
|
-
getWhatsAppBroadcasts: getWhatsAppBroadcasts,
|
|
686
|
-
createWhatsAppBroadcast: createWhatsAppBroadcast,
|
|
687
|
-
getWhatsAppBroadcast: getWhatsAppBroadcast,
|
|
688
|
-
deleteWhatsAppBroadcast: deleteWhatsAppBroadcast,
|
|
689
|
-
sendWhatsAppBroadcast: sendWhatsAppBroadcast,
|
|
690
|
-
scheduleWhatsAppBroadcast: scheduleWhatsAppBroadcast,
|
|
691
|
-
cancelWhatsAppBroadcastSchedule: cancelWhatsAppBroadcastSchedule,
|
|
692
|
-
getWhatsAppBroadcastRecipients: getWhatsAppBroadcastRecipients,
|
|
693
|
-
addWhatsAppBroadcastRecipients: addWhatsAppBroadcastRecipients,
|
|
694
|
-
removeWhatsAppBroadcastRecipients: removeWhatsAppBroadcastRecipients,
|
|
695
643
|
getWhatsAppBusinessProfile: getWhatsAppBusinessProfile,
|
|
696
644
|
updateWhatsAppBusinessProfile: updateWhatsAppBusinessProfile,
|
|
697
645
|
uploadWhatsAppProfilePhoto: uploadWhatsAppProfilePhoto,
|