@zernio/node 0.2.611 → 0.2.640
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 +13 -0
- package/dist/index.d.mts +934 -70
- package/dist/index.d.ts +934 -70
- package/dist/index.js +99 -2
- package/dist/index.mjs +99 -2
- package/package.json +1 -1
- package/src/client.ts +32 -0
- package/src/generated/sdk.gen.ts +239 -9
- package/src/generated/types.gen.ts +958 -70
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.640",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -1122,6 +1122,24 @@ var completeWhatsAppPhoneSelection = (options) => {
|
|
|
1122
1122
|
url: "/v1/connect/whatsapp/select-phone-number"
|
|
1123
1123
|
});
|
|
1124
1124
|
};
|
|
1125
|
+
var connectWhatsAppEmbeddedSignup = (options) => {
|
|
1126
|
+
return (options?.client ?? client).post({
|
|
1127
|
+
...options,
|
|
1128
|
+
url: "/v1/connect/whatsapp/embedded-signup"
|
|
1129
|
+
});
|
|
1130
|
+
};
|
|
1131
|
+
var connectDiscordChannel = (options) => {
|
|
1132
|
+
return (options?.client ?? client).post({
|
|
1133
|
+
...options,
|
|
1134
|
+
url: "/v1/connect/discord"
|
|
1135
|
+
});
|
|
1136
|
+
};
|
|
1137
|
+
var connectSlackChannel = (options) => {
|
|
1138
|
+
return (options?.client ?? client).post({
|
|
1139
|
+
...options,
|
|
1140
|
+
url: "/v1/connect/slack"
|
|
1141
|
+
});
|
|
1142
|
+
};
|
|
1125
1143
|
var getTelegramConnectStatus = (options) => {
|
|
1126
1144
|
return (options?.client ?? client).get({
|
|
1127
1145
|
...options,
|
|
@@ -2515,6 +2533,48 @@ var disableVoiceOnNumber = (options) => {
|
|
|
2515
2533
|
url: "/v1/phone-numbers/{id}/voice"
|
|
2516
2534
|
});
|
|
2517
2535
|
};
|
|
2536
|
+
var createSipTrunk = (options) => {
|
|
2537
|
+
return (options?.client ?? client).post({
|
|
2538
|
+
...options,
|
|
2539
|
+
url: "/v1/phone-numbers/sip-trunks"
|
|
2540
|
+
});
|
|
2541
|
+
};
|
|
2542
|
+
var listSipTrunks = (options) => {
|
|
2543
|
+
return (options?.client ?? client).get({
|
|
2544
|
+
...options,
|
|
2545
|
+
url: "/v1/phone-numbers/sip-trunks"
|
|
2546
|
+
});
|
|
2547
|
+
};
|
|
2548
|
+
var getSipTrunk = (options) => {
|
|
2549
|
+
return (options?.client ?? client).get({
|
|
2550
|
+
...options,
|
|
2551
|
+
url: "/v1/phone-numbers/sip-trunks/{id}"
|
|
2552
|
+
});
|
|
2553
|
+
};
|
|
2554
|
+
var deleteSipTrunk = (options) => {
|
|
2555
|
+
return (options?.client ?? client).delete({
|
|
2556
|
+
...options,
|
|
2557
|
+
url: "/v1/phone-numbers/sip-trunks/{id}"
|
|
2558
|
+
});
|
|
2559
|
+
};
|
|
2560
|
+
var rotateSipTrunkCredentials = (options) => {
|
|
2561
|
+
return (options?.client ?? client).post({
|
|
2562
|
+
...options,
|
|
2563
|
+
url: "/v1/phone-numbers/sip-trunks/{id}/rotate-credentials"
|
|
2564
|
+
});
|
|
2565
|
+
};
|
|
2566
|
+
var attachNumberToSipTrunk = (options) => {
|
|
2567
|
+
return (options?.client ?? client).post({
|
|
2568
|
+
...options,
|
|
2569
|
+
url: "/v1/phone-numbers/{id}/sip-trunk"
|
|
2570
|
+
});
|
|
2571
|
+
};
|
|
2572
|
+
var detachNumberFromSipTrunk = (options) => {
|
|
2573
|
+
return (options?.client ?? client).delete({
|
|
2574
|
+
...options,
|
|
2575
|
+
url: "/v1/phone-numbers/{id}/sip-trunk"
|
|
2576
|
+
});
|
|
2577
|
+
};
|
|
2518
2578
|
var enableSmsOnNumber = (options) => {
|
|
2519
2579
|
return (options?.client ?? client).post({
|
|
2520
2580
|
...options,
|
|
@@ -3217,6 +3277,12 @@ var getAdPreviews = (options) => {
|
|
|
3217
3277
|
url: "/v1/ads/{adId}/preview"
|
|
3218
3278
|
});
|
|
3219
3279
|
};
|
|
3280
|
+
var getAdMedia = (options) => {
|
|
3281
|
+
return (options?.client ?? client).get({
|
|
3282
|
+
...options,
|
|
3283
|
+
url: "/v1/ads/{adId}/media"
|
|
3284
|
+
});
|
|
3285
|
+
};
|
|
3220
3286
|
var generateKeywordIdeas = (options) => {
|
|
3221
3287
|
return (options?.client ?? client).post({
|
|
3222
3288
|
...options,
|
|
@@ -3493,12 +3559,24 @@ var listAdImages = (options) => {
|
|
|
3493
3559
|
url: "/v1/ads/images"
|
|
3494
3560
|
});
|
|
3495
3561
|
};
|
|
3562
|
+
var uploadAdVideo = (options) => {
|
|
3563
|
+
return (options?.client ?? client).post({
|
|
3564
|
+
...options,
|
|
3565
|
+
url: "/v1/ads/videos"
|
|
3566
|
+
});
|
|
3567
|
+
};
|
|
3496
3568
|
var listAdVideos = (options) => {
|
|
3497
3569
|
return (options?.client ?? client).get({
|
|
3498
3570
|
...options,
|
|
3499
3571
|
url: "/v1/ads/videos"
|
|
3500
3572
|
});
|
|
3501
3573
|
};
|
|
3574
|
+
var deleteAdVideo = (options) => {
|
|
3575
|
+
return (options?.client ?? client).delete({
|
|
3576
|
+
...options,
|
|
3577
|
+
url: "/v1/ads/videos/{videoId}"
|
|
3578
|
+
});
|
|
3579
|
+
};
|
|
3502
3580
|
var searchAdInterests = (options) => {
|
|
3503
3581
|
return (options?.client ?? client).get({
|
|
3504
3582
|
...options,
|
|
@@ -4144,6 +4222,9 @@ var Zernio = class _Zernio {
|
|
|
4144
4222
|
connectWhatsAppCredentials: this._bind(connectWhatsAppCredentials),
|
|
4145
4223
|
listWhatsAppPhoneNumbers: this._bind(listWhatsAppPhoneNumbers),
|
|
4146
4224
|
completeWhatsAppPhoneSelection: this._bind(completeWhatsAppPhoneSelection),
|
|
4225
|
+
connectWhatsAppEmbeddedSignup: this._bind(connectWhatsAppEmbeddedSignup),
|
|
4226
|
+
connectDiscordChannel: this._bind(connectDiscordChannel),
|
|
4227
|
+
connectSlackChannel: this._bind(connectSlackChannel),
|
|
4147
4228
|
getFacebookPages: this._bind(getFacebookPages),
|
|
4148
4229
|
updateFacebookPage: this._bind(updateFacebookPage),
|
|
4149
4230
|
getLinkedInOrganizations: this._bind(getLinkedInOrganizations),
|
|
@@ -4442,7 +4523,14 @@ var Zernio = class _Zernio {
|
|
|
4442
4523
|
createVoiceWebSession: this._bind(createVoiceWebSession),
|
|
4443
4524
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
4444
4525
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
4445
|
-
disableVoiceOnNumber: this._bind(disableVoiceOnNumber)
|
|
4526
|
+
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|
|
4527
|
+
createSipTrunk: this._bind(createSipTrunk),
|
|
4528
|
+
listSipTrunks: this._bind(listSipTrunks),
|
|
4529
|
+
getSipTrunk: this._bind(getSipTrunk),
|
|
4530
|
+
deleteSipTrunk: this._bind(deleteSipTrunk),
|
|
4531
|
+
rotateSipTrunkCredentials: this._bind(rotateSipTrunkCredentials),
|
|
4532
|
+
attachNumberToSipTrunk: this._bind(attachNumberToSipTrunk),
|
|
4533
|
+
detachNumberFromSipTrunk: this._bind(detachNumberFromSipTrunk)
|
|
4446
4534
|
};
|
|
4447
4535
|
/**
|
|
4448
4536
|
* sms API
|
|
@@ -4685,6 +4773,7 @@ var Zernio = class _Zernio {
|
|
|
4685
4773
|
this.adcreatives = {
|
|
4686
4774
|
generateAdPreviews: this._bind(generateAdPreviews),
|
|
4687
4775
|
getAdPreviews: this._bind(getAdPreviews),
|
|
4776
|
+
getAdMedia: this._bind(getAdMedia),
|
|
4688
4777
|
listAdCreatives: this._bind(listAdCreatives),
|
|
4689
4778
|
createAdCreative: this._bind(createAdCreative),
|
|
4690
4779
|
getAdCreative: this._bind(getAdCreative),
|
|
@@ -4692,7 +4781,9 @@ var Zernio = class _Zernio {
|
|
|
4692
4781
|
deleteAdCreative: this._bind(deleteAdCreative),
|
|
4693
4782
|
uploadAdImage: this._bind(uploadAdImage),
|
|
4694
4783
|
listAdImages: this._bind(listAdImages),
|
|
4784
|
+
uploadAdVideo: this._bind(uploadAdVideo),
|
|
4695
4785
|
listAdVideos: this._bind(listAdVideos),
|
|
4786
|
+
deleteAdVideo: this._bind(deleteAdVideo),
|
|
4696
4787
|
listAdCatalogs: this._bind(listAdCatalogs),
|
|
4697
4788
|
listAdCatalogProductSets: this._bind(listAdCatalogProductSets)
|
|
4698
4789
|
};
|
|
@@ -4921,6 +5012,8 @@ var Zernio = class _Zernio {
|
|
|
4921
5012
|
generateAdPreviews: this._bind(generateAdPreviews),
|
|
4922
5013
|
/** @deprecated Use `zernio.adcreatives.getAdPreviews` instead. */
|
|
4923
5014
|
getAdPreviews: this._bind(getAdPreviews),
|
|
5015
|
+
/** @deprecated Use `zernio.adcreatives.getAdMedia` instead. */
|
|
5016
|
+
getAdMedia: this._bind(getAdMedia),
|
|
4924
5017
|
/** @deprecated Use `zernio.adcreatives.listAdCreatives` instead. */
|
|
4925
5018
|
listAdCreatives: this._bind(listAdCreatives),
|
|
4926
5019
|
/** @deprecated Use `zernio.adcreatives.createAdCreative` instead. */
|
|
@@ -4935,8 +5028,12 @@ var Zernio = class _Zernio {
|
|
|
4935
5028
|
uploadAdImage: this._bind(uploadAdImage),
|
|
4936
5029
|
/** @deprecated Use `zernio.adcreatives.listAdImages` instead. */
|
|
4937
5030
|
listAdImages: this._bind(listAdImages),
|
|
5031
|
+
/** @deprecated Use `zernio.adcreatives.uploadAdVideo` instead. */
|
|
5032
|
+
uploadAdVideo: this._bind(uploadAdVideo),
|
|
4938
5033
|
/** @deprecated Use `zernio.adcreatives.listAdVideos` instead. */
|
|
4939
5034
|
listAdVideos: this._bind(listAdVideos),
|
|
5035
|
+
/** @deprecated Use `zernio.adcreatives.deleteAdVideo` instead. */
|
|
5036
|
+
deleteAdVideo: this._bind(deleteAdVideo),
|
|
4940
5037
|
/** @deprecated Use `zernio.adcreatives.listAdCatalogs` instead. */
|
|
4941
5038
|
listAdCatalogs: this._bind(listAdCatalogs),
|
|
4942
5039
|
/** @deprecated Use `zernio.adcreatives.listAdCatalogProductSets` instead. */
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.640",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -1091,6 +1091,24 @@ var completeWhatsAppPhoneSelection = (options) => {
|
|
|
1091
1091
|
url: "/v1/connect/whatsapp/select-phone-number"
|
|
1092
1092
|
});
|
|
1093
1093
|
};
|
|
1094
|
+
var connectWhatsAppEmbeddedSignup = (options) => {
|
|
1095
|
+
return (options?.client ?? client).post({
|
|
1096
|
+
...options,
|
|
1097
|
+
url: "/v1/connect/whatsapp/embedded-signup"
|
|
1098
|
+
});
|
|
1099
|
+
};
|
|
1100
|
+
var connectDiscordChannel = (options) => {
|
|
1101
|
+
return (options?.client ?? client).post({
|
|
1102
|
+
...options,
|
|
1103
|
+
url: "/v1/connect/discord"
|
|
1104
|
+
});
|
|
1105
|
+
};
|
|
1106
|
+
var connectSlackChannel = (options) => {
|
|
1107
|
+
return (options?.client ?? client).post({
|
|
1108
|
+
...options,
|
|
1109
|
+
url: "/v1/connect/slack"
|
|
1110
|
+
});
|
|
1111
|
+
};
|
|
1094
1112
|
var getTelegramConnectStatus = (options) => {
|
|
1095
1113
|
return (options?.client ?? client).get({
|
|
1096
1114
|
...options,
|
|
@@ -2484,6 +2502,48 @@ var disableVoiceOnNumber = (options) => {
|
|
|
2484
2502
|
url: "/v1/phone-numbers/{id}/voice"
|
|
2485
2503
|
});
|
|
2486
2504
|
};
|
|
2505
|
+
var createSipTrunk = (options) => {
|
|
2506
|
+
return (options?.client ?? client).post({
|
|
2507
|
+
...options,
|
|
2508
|
+
url: "/v1/phone-numbers/sip-trunks"
|
|
2509
|
+
});
|
|
2510
|
+
};
|
|
2511
|
+
var listSipTrunks = (options) => {
|
|
2512
|
+
return (options?.client ?? client).get({
|
|
2513
|
+
...options,
|
|
2514
|
+
url: "/v1/phone-numbers/sip-trunks"
|
|
2515
|
+
});
|
|
2516
|
+
};
|
|
2517
|
+
var getSipTrunk = (options) => {
|
|
2518
|
+
return (options?.client ?? client).get({
|
|
2519
|
+
...options,
|
|
2520
|
+
url: "/v1/phone-numbers/sip-trunks/{id}"
|
|
2521
|
+
});
|
|
2522
|
+
};
|
|
2523
|
+
var deleteSipTrunk = (options) => {
|
|
2524
|
+
return (options?.client ?? client).delete({
|
|
2525
|
+
...options,
|
|
2526
|
+
url: "/v1/phone-numbers/sip-trunks/{id}"
|
|
2527
|
+
});
|
|
2528
|
+
};
|
|
2529
|
+
var rotateSipTrunkCredentials = (options) => {
|
|
2530
|
+
return (options?.client ?? client).post({
|
|
2531
|
+
...options,
|
|
2532
|
+
url: "/v1/phone-numbers/sip-trunks/{id}/rotate-credentials"
|
|
2533
|
+
});
|
|
2534
|
+
};
|
|
2535
|
+
var attachNumberToSipTrunk = (options) => {
|
|
2536
|
+
return (options?.client ?? client).post({
|
|
2537
|
+
...options,
|
|
2538
|
+
url: "/v1/phone-numbers/{id}/sip-trunk"
|
|
2539
|
+
});
|
|
2540
|
+
};
|
|
2541
|
+
var detachNumberFromSipTrunk = (options) => {
|
|
2542
|
+
return (options?.client ?? client).delete({
|
|
2543
|
+
...options,
|
|
2544
|
+
url: "/v1/phone-numbers/{id}/sip-trunk"
|
|
2545
|
+
});
|
|
2546
|
+
};
|
|
2487
2547
|
var enableSmsOnNumber = (options) => {
|
|
2488
2548
|
return (options?.client ?? client).post({
|
|
2489
2549
|
...options,
|
|
@@ -3186,6 +3246,12 @@ var getAdPreviews = (options) => {
|
|
|
3186
3246
|
url: "/v1/ads/{adId}/preview"
|
|
3187
3247
|
});
|
|
3188
3248
|
};
|
|
3249
|
+
var getAdMedia = (options) => {
|
|
3250
|
+
return (options?.client ?? client).get({
|
|
3251
|
+
...options,
|
|
3252
|
+
url: "/v1/ads/{adId}/media"
|
|
3253
|
+
});
|
|
3254
|
+
};
|
|
3189
3255
|
var generateKeywordIdeas = (options) => {
|
|
3190
3256
|
return (options?.client ?? client).post({
|
|
3191
3257
|
...options,
|
|
@@ -3462,12 +3528,24 @@ var listAdImages = (options) => {
|
|
|
3462
3528
|
url: "/v1/ads/images"
|
|
3463
3529
|
});
|
|
3464
3530
|
};
|
|
3531
|
+
var uploadAdVideo = (options) => {
|
|
3532
|
+
return (options?.client ?? client).post({
|
|
3533
|
+
...options,
|
|
3534
|
+
url: "/v1/ads/videos"
|
|
3535
|
+
});
|
|
3536
|
+
};
|
|
3465
3537
|
var listAdVideos = (options) => {
|
|
3466
3538
|
return (options?.client ?? client).get({
|
|
3467
3539
|
...options,
|
|
3468
3540
|
url: "/v1/ads/videos"
|
|
3469
3541
|
});
|
|
3470
3542
|
};
|
|
3543
|
+
var deleteAdVideo = (options) => {
|
|
3544
|
+
return (options?.client ?? client).delete({
|
|
3545
|
+
...options,
|
|
3546
|
+
url: "/v1/ads/videos/{videoId}"
|
|
3547
|
+
});
|
|
3548
|
+
};
|
|
3471
3549
|
var searchAdInterests = (options) => {
|
|
3472
3550
|
return (options?.client ?? client).get({
|
|
3473
3551
|
...options,
|
|
@@ -4113,6 +4191,9 @@ var Zernio = class _Zernio {
|
|
|
4113
4191
|
connectWhatsAppCredentials: this._bind(connectWhatsAppCredentials),
|
|
4114
4192
|
listWhatsAppPhoneNumbers: this._bind(listWhatsAppPhoneNumbers),
|
|
4115
4193
|
completeWhatsAppPhoneSelection: this._bind(completeWhatsAppPhoneSelection),
|
|
4194
|
+
connectWhatsAppEmbeddedSignup: this._bind(connectWhatsAppEmbeddedSignup),
|
|
4195
|
+
connectDiscordChannel: this._bind(connectDiscordChannel),
|
|
4196
|
+
connectSlackChannel: this._bind(connectSlackChannel),
|
|
4116
4197
|
getFacebookPages: this._bind(getFacebookPages),
|
|
4117
4198
|
updateFacebookPage: this._bind(updateFacebookPage),
|
|
4118
4199
|
getLinkedInOrganizations: this._bind(getLinkedInOrganizations),
|
|
@@ -4411,7 +4492,14 @@ var Zernio = class _Zernio {
|
|
|
4411
4492
|
createVoiceWebSession: this._bind(createVoiceWebSession),
|
|
4412
4493
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
4413
4494
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
4414
|
-
disableVoiceOnNumber: this._bind(disableVoiceOnNumber)
|
|
4495
|
+
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|
|
4496
|
+
createSipTrunk: this._bind(createSipTrunk),
|
|
4497
|
+
listSipTrunks: this._bind(listSipTrunks),
|
|
4498
|
+
getSipTrunk: this._bind(getSipTrunk),
|
|
4499
|
+
deleteSipTrunk: this._bind(deleteSipTrunk),
|
|
4500
|
+
rotateSipTrunkCredentials: this._bind(rotateSipTrunkCredentials),
|
|
4501
|
+
attachNumberToSipTrunk: this._bind(attachNumberToSipTrunk),
|
|
4502
|
+
detachNumberFromSipTrunk: this._bind(detachNumberFromSipTrunk)
|
|
4415
4503
|
};
|
|
4416
4504
|
/**
|
|
4417
4505
|
* sms API
|
|
@@ -4654,6 +4742,7 @@ var Zernio = class _Zernio {
|
|
|
4654
4742
|
this.adcreatives = {
|
|
4655
4743
|
generateAdPreviews: this._bind(generateAdPreviews),
|
|
4656
4744
|
getAdPreviews: this._bind(getAdPreviews),
|
|
4745
|
+
getAdMedia: this._bind(getAdMedia),
|
|
4657
4746
|
listAdCreatives: this._bind(listAdCreatives),
|
|
4658
4747
|
createAdCreative: this._bind(createAdCreative),
|
|
4659
4748
|
getAdCreative: this._bind(getAdCreative),
|
|
@@ -4661,7 +4750,9 @@ var Zernio = class _Zernio {
|
|
|
4661
4750
|
deleteAdCreative: this._bind(deleteAdCreative),
|
|
4662
4751
|
uploadAdImage: this._bind(uploadAdImage),
|
|
4663
4752
|
listAdImages: this._bind(listAdImages),
|
|
4753
|
+
uploadAdVideo: this._bind(uploadAdVideo),
|
|
4664
4754
|
listAdVideos: this._bind(listAdVideos),
|
|
4755
|
+
deleteAdVideo: this._bind(deleteAdVideo),
|
|
4665
4756
|
listAdCatalogs: this._bind(listAdCatalogs),
|
|
4666
4757
|
listAdCatalogProductSets: this._bind(listAdCatalogProductSets)
|
|
4667
4758
|
};
|
|
@@ -4890,6 +4981,8 @@ var Zernio = class _Zernio {
|
|
|
4890
4981
|
generateAdPreviews: this._bind(generateAdPreviews),
|
|
4891
4982
|
/** @deprecated Use `zernio.adcreatives.getAdPreviews` instead. */
|
|
4892
4983
|
getAdPreviews: this._bind(getAdPreviews),
|
|
4984
|
+
/** @deprecated Use `zernio.adcreatives.getAdMedia` instead. */
|
|
4985
|
+
getAdMedia: this._bind(getAdMedia),
|
|
4893
4986
|
/** @deprecated Use `zernio.adcreatives.listAdCreatives` instead. */
|
|
4894
4987
|
listAdCreatives: this._bind(listAdCreatives),
|
|
4895
4988
|
/** @deprecated Use `zernio.adcreatives.createAdCreative` instead. */
|
|
@@ -4904,8 +4997,12 @@ var Zernio = class _Zernio {
|
|
|
4904
4997
|
uploadAdImage: this._bind(uploadAdImage),
|
|
4905
4998
|
/** @deprecated Use `zernio.adcreatives.listAdImages` instead. */
|
|
4906
4999
|
listAdImages: this._bind(listAdImages),
|
|
5000
|
+
/** @deprecated Use `zernio.adcreatives.uploadAdVideo` instead. */
|
|
5001
|
+
uploadAdVideo: this._bind(uploadAdVideo),
|
|
4907
5002
|
/** @deprecated Use `zernio.adcreatives.listAdVideos` instead. */
|
|
4908
5003
|
listAdVideos: this._bind(listAdVideos),
|
|
5004
|
+
/** @deprecated Use `zernio.adcreatives.deleteAdVideo` instead. */
|
|
5005
|
+
deleteAdVideo: this._bind(deleteAdVideo),
|
|
4909
5006
|
/** @deprecated Use `zernio.adcreatives.listAdCatalogs` instead. */
|
|
4910
5007
|
listAdCatalogs: this._bind(listAdCatalogs),
|
|
4911
5008
|
/** @deprecated Use `zernio.adcreatives.listAdCatalogProductSets` instead. */
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
approveWhatsAppGroupJoinRequests,
|
|
16
16
|
archiveLeadForm,
|
|
17
17
|
assignGoogleBusinessLocation,
|
|
18
|
+
attachNumberToSipTrunk,
|
|
18
19
|
batchGetGoogleBusinessReviews,
|
|
19
20
|
blockWhatsAppUsers,
|
|
20
21
|
bookmarkPost,
|
|
@@ -36,9 +37,12 @@ import {
|
|
|
36
37
|
configureTikTokAdsBrandIdentity,
|
|
37
38
|
connectAds,
|
|
38
39
|
connectBlueskyCredentials,
|
|
40
|
+
connectDiscordChannel,
|
|
39
41
|
connectOpenAiAdsCredentials,
|
|
40
42
|
connectShopifyWithToken,
|
|
43
|
+
connectSlackChannel,
|
|
41
44
|
connectWhatsAppCredentials,
|
|
45
|
+
connectWhatsAppEmbeddedSignup,
|
|
42
46
|
createAccountGroup,
|
|
43
47
|
createAdAudience,
|
|
44
48
|
createAdCampaign,
|
|
@@ -73,6 +77,7 @@ import {
|
|
|
73
77
|
createQueueSlot,
|
|
74
78
|
createRfPrediction,
|
|
75
79
|
createSequence,
|
|
80
|
+
createSipTrunk,
|
|
76
81
|
createSmsSenderId,
|
|
77
82
|
createStandaloneAd,
|
|
78
83
|
createTestLead,
|
|
@@ -98,6 +103,7 @@ import {
|
|
|
98
103
|
deleteAdAudience,
|
|
99
104
|
deleteAdCampaign,
|
|
100
105
|
deleteAdCreative,
|
|
106
|
+
deleteAdVideo,
|
|
101
107
|
deleteApiKey,
|
|
102
108
|
deleteBlog,
|
|
103
109
|
deleteBlogArticle,
|
|
@@ -121,6 +127,7 @@ import {
|
|
|
121
127
|
deleteProfile,
|
|
122
128
|
deleteQueueSlot,
|
|
123
129
|
deleteSequence,
|
|
130
|
+
deleteSipTrunk,
|
|
124
131
|
deleteSmsSenderId,
|
|
125
132
|
deleteTelegramCommands,
|
|
126
133
|
deleteValueRuleSet,
|
|
@@ -132,6 +139,7 @@ import {
|
|
|
132
139
|
deleteWhatsappBusinessUsername,
|
|
133
140
|
deleteWorkflow,
|
|
134
141
|
deprecateWhatsAppFlow,
|
|
142
|
+
detachNumberFromSipTrunk,
|
|
135
143
|
dialVoiceWebCall,
|
|
136
144
|
disableSmsOnNumber,
|
|
137
145
|
disableVoiceOnNumber,
|
|
@@ -165,6 +173,7 @@ import {
|
|
|
165
173
|
getAdComments,
|
|
166
174
|
getAdCreative,
|
|
167
175
|
getAdInsightsReport,
|
|
176
|
+
getAdMedia,
|
|
168
177
|
getAdPreviews,
|
|
169
178
|
getAdSetDetails,
|
|
170
179
|
getAdTrackingTags,
|
|
@@ -261,6 +270,7 @@ import {
|
|
|
261
270
|
getRfPrediction,
|
|
262
271
|
getSequence,
|
|
263
272
|
getShopifyConnectUrl,
|
|
273
|
+
getSipTrunk,
|
|
264
274
|
getSlackSettings,
|
|
265
275
|
getSmsRegistration,
|
|
266
276
|
getSmsUsage,
|
|
@@ -384,6 +394,7 @@ import {
|
|
|
384
394
|
listQueueSlots,
|
|
385
395
|
listSequenceEnrollments,
|
|
386
396
|
listSequences,
|
|
397
|
+
listSipTrunks,
|
|
387
398
|
listSlackMembers,
|
|
388
399
|
listSmsOptOuts,
|
|
389
400
|
listSmsRegistrations,
|
|
@@ -451,6 +462,7 @@ import {
|
|
|
451
462
|
reuseSmsRegistrationForNumber,
|
|
452
463
|
reviewPhoneNumberKycPacket,
|
|
453
464
|
revokeConnectedApp,
|
|
465
|
+
rotateSipTrunkCredentials,
|
|
454
466
|
scheduleBroadcast,
|
|
455
467
|
searchAdInterests,
|
|
456
468
|
searchAdTargeting,
|
|
@@ -554,6 +566,7 @@ import {
|
|
|
554
566
|
updateWorkflow,
|
|
555
567
|
updateYoutubeDefaultPlaylist,
|
|
556
568
|
uploadAdImage,
|
|
569
|
+
uploadAdVideo,
|
|
557
570
|
uploadMediaDirect,
|
|
558
571
|
uploadPhoneNumberKycDocument,
|
|
559
572
|
uploadPhoneNumberPortInDocument,
|
|
@@ -944,6 +957,9 @@ export class Zernio {
|
|
|
944
957
|
connectWhatsAppCredentials: this._bind(connectWhatsAppCredentials),
|
|
945
958
|
listWhatsAppPhoneNumbers: this._bind(listWhatsAppPhoneNumbers),
|
|
946
959
|
completeWhatsAppPhoneSelection: this._bind(completeWhatsAppPhoneSelection),
|
|
960
|
+
connectWhatsAppEmbeddedSignup: this._bind(connectWhatsAppEmbeddedSignup),
|
|
961
|
+
connectDiscordChannel: this._bind(connectDiscordChannel),
|
|
962
|
+
connectSlackChannel: this._bind(connectSlackChannel),
|
|
947
963
|
getFacebookPages: this._bind(getFacebookPages),
|
|
948
964
|
updateFacebookPage: this._bind(updateFacebookPage),
|
|
949
965
|
getLinkedInOrganizations: this._bind(getLinkedInOrganizations),
|
|
@@ -1265,6 +1281,13 @@ export class Zernio {
|
|
|
1265
1281
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
1266
1282
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
1267
1283
|
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|
|
1284
|
+
createSipTrunk: this._bind(createSipTrunk),
|
|
1285
|
+
listSipTrunks: this._bind(listSipTrunks),
|
|
1286
|
+
getSipTrunk: this._bind(getSipTrunk),
|
|
1287
|
+
deleteSipTrunk: this._bind(deleteSipTrunk),
|
|
1288
|
+
rotateSipTrunkCredentials: this._bind(rotateSipTrunkCredentials),
|
|
1289
|
+
attachNumberToSipTrunk: this._bind(attachNumberToSipTrunk),
|
|
1290
|
+
detachNumberFromSipTrunk: this._bind(detachNumberFromSipTrunk),
|
|
1268
1291
|
};
|
|
1269
1292
|
|
|
1270
1293
|
/**
|
|
@@ -1522,6 +1545,7 @@ export class Zernio {
|
|
|
1522
1545
|
adcreatives = {
|
|
1523
1546
|
generateAdPreviews: this._bind(generateAdPreviews),
|
|
1524
1547
|
getAdPreviews: this._bind(getAdPreviews),
|
|
1548
|
+
getAdMedia: this._bind(getAdMedia),
|
|
1525
1549
|
listAdCreatives: this._bind(listAdCreatives),
|
|
1526
1550
|
createAdCreative: this._bind(createAdCreative),
|
|
1527
1551
|
getAdCreative: this._bind(getAdCreative),
|
|
@@ -1529,7 +1553,9 @@ export class Zernio {
|
|
|
1529
1553
|
deleteAdCreative: this._bind(deleteAdCreative),
|
|
1530
1554
|
uploadAdImage: this._bind(uploadAdImage),
|
|
1531
1555
|
listAdImages: this._bind(listAdImages),
|
|
1556
|
+
uploadAdVideo: this._bind(uploadAdVideo),
|
|
1532
1557
|
listAdVideos: this._bind(listAdVideos),
|
|
1558
|
+
deleteAdVideo: this._bind(deleteAdVideo),
|
|
1533
1559
|
listAdCatalogs: this._bind(listAdCatalogs),
|
|
1534
1560
|
listAdCatalogProductSets: this._bind(listAdCatalogProductSets),
|
|
1535
1561
|
};
|
|
@@ -1769,6 +1795,8 @@ export class Zernio {
|
|
|
1769
1795
|
generateAdPreviews: this._bind(generateAdPreviews),
|
|
1770
1796
|
/** @deprecated Use `zernio.adcreatives.getAdPreviews` instead. */
|
|
1771
1797
|
getAdPreviews: this._bind(getAdPreviews),
|
|
1798
|
+
/** @deprecated Use `zernio.adcreatives.getAdMedia` instead. */
|
|
1799
|
+
getAdMedia: this._bind(getAdMedia),
|
|
1772
1800
|
/** @deprecated Use `zernio.adcreatives.listAdCreatives` instead. */
|
|
1773
1801
|
listAdCreatives: this._bind(listAdCreatives),
|
|
1774
1802
|
/** @deprecated Use `zernio.adcreatives.createAdCreative` instead. */
|
|
@@ -1783,8 +1811,12 @@ export class Zernio {
|
|
|
1783
1811
|
uploadAdImage: this._bind(uploadAdImage),
|
|
1784
1812
|
/** @deprecated Use `zernio.adcreatives.listAdImages` instead. */
|
|
1785
1813
|
listAdImages: this._bind(listAdImages),
|
|
1814
|
+
/** @deprecated Use `zernio.adcreatives.uploadAdVideo` instead. */
|
|
1815
|
+
uploadAdVideo: this._bind(uploadAdVideo),
|
|
1786
1816
|
/** @deprecated Use `zernio.adcreatives.listAdVideos` instead. */
|
|
1787
1817
|
listAdVideos: this._bind(listAdVideos),
|
|
1818
|
+
/** @deprecated Use `zernio.adcreatives.deleteAdVideo` instead. */
|
|
1819
|
+
deleteAdVideo: this._bind(deleteAdVideo),
|
|
1788
1820
|
/** @deprecated Use `zernio.adcreatives.listAdCatalogs` instead. */
|
|
1789
1821
|
listAdCatalogs: this._bind(listAdCatalogs),
|
|
1790
1822
|
/** @deprecated Use `zernio.adcreatives.listAdCatalogProductSets` instead. */
|