@zernio/node 0.2.715 → 0.2.717

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/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.715",
39
+ version: "0.2.717",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -1152,6 +1152,12 @@ var connectDiscordChannel = (options) => {
1152
1152
  url: "/v1/connect/discord"
1153
1153
  });
1154
1154
  };
1155
+ var listSlackChannels = (options) => {
1156
+ return (options?.client ?? client).get({
1157
+ ...options,
1158
+ url: "/v1/connect/slack"
1159
+ });
1160
+ };
1155
1161
  var connectSlackChannel = (options) => {
1156
1162
  return (options?.client ?? client).post({
1157
1163
  ...options,
@@ -3229,6 +3235,24 @@ var listAdKeywords = (options) => {
3229
3235
  url: "/v1/ads/keywords"
3230
3236
  });
3231
3237
  };
3238
+ var addAdKeywords = (options) => {
3239
+ return (options?.client ?? client).post({
3240
+ ...options,
3241
+ url: "/v1/ads/keywords"
3242
+ });
3243
+ };
3244
+ var updateAdKeyword = (options) => {
3245
+ return (options?.client ?? client).patch({
3246
+ ...options,
3247
+ url: "/v1/ads/keywords/{keywordId}"
3248
+ });
3249
+ };
3250
+ var removeAdKeyword = (options) => {
3251
+ return (options?.client ?? client).delete({
3252
+ ...options,
3253
+ url: "/v1/ads/keywords/{keywordId}"
3254
+ });
3255
+ };
3232
3256
  var listAdCampaigns = (options) => {
3233
3257
  return (options?.client ?? client).get({
3234
3258
  ...options,
@@ -3259,6 +3283,18 @@ var deleteAdCampaign = (options) => {
3259
3283
  url: "/v1/ads/campaigns/{campaignId}"
3260
3284
  });
3261
3285
  };
3286
+ var listCampaignNegativeKeywords = (options) => {
3287
+ return (options?.client ?? client).get({
3288
+ ...options,
3289
+ url: "/v1/ads/campaigns/{campaignId}/negative-keywords"
3290
+ });
3291
+ };
3292
+ var replaceCampaignNegativeKeywords = (options) => {
3293
+ return (options?.client ?? client).put({
3294
+ ...options,
3295
+ url: "/v1/ads/campaigns/{campaignId}/negative-keywords"
3296
+ });
3297
+ };
3262
3298
  var bulkUpdateAdCampaignStatus = (options) => {
3263
3299
  return (options?.client ?? client).post({
3264
3300
  ...options,
@@ -4326,6 +4362,7 @@ var Zernio = class _Zernio {
4326
4362
  completeWhatsAppPhoneSelection: this._bind(completeWhatsAppPhoneSelection),
4327
4363
  connectWhatsAppEmbeddedSignup: this._bind(connectWhatsAppEmbeddedSignup),
4328
4364
  connectDiscordChannel: this._bind(connectDiscordChannel),
4365
+ listSlackChannels: this._bind(listSlackChannels),
4329
4366
  connectSlackChannel: this._bind(connectSlackChannel),
4330
4367
  getFacebookPages: this._bind(getFacebookPages),
4331
4368
  updateFacebookPage: this._bind(updateFacebookPage),
@@ -4840,11 +4877,16 @@ var Zernio = class _Zernio {
4840
4877
  this.adcampaigns = {
4841
4878
  listAds: this._bind(listAds),
4842
4879
  listAdKeywords: this._bind(listAdKeywords),
4880
+ addAdKeywords: this._bind(addAdKeywords),
4881
+ updateAdKeyword: this._bind(updateAdKeyword),
4882
+ removeAdKeyword: this._bind(removeAdKeyword),
4843
4883
  listAdCampaigns: this._bind(listAdCampaigns),
4844
4884
  createAdCampaign: this._bind(createAdCampaign),
4845
4885
  updateAdCampaignStatus: this._bind(updateAdCampaignStatus),
4846
4886
  updateAdCampaign: this._bind(updateAdCampaign),
4847
4887
  deleteAdCampaign: this._bind(deleteAdCampaign),
4888
+ listCampaignNegativeKeywords: this._bind(listCampaignNegativeKeywords),
4889
+ replaceCampaignNegativeKeywords: this._bind(replaceCampaignNegativeKeywords),
4848
4890
  bulkUpdateAdCampaignStatus: this._bind(bulkUpdateAdCampaignStatus),
4849
4891
  duplicateAdCampaign: this._bind(duplicateAdCampaign),
4850
4892
  duplicateAdSet: this._bind(duplicateAdSet),
@@ -5045,6 +5087,12 @@ var Zernio = class _Zernio {
5045
5087
  listAds: this._bind(listAds),
5046
5088
  /** @deprecated Use `zernio.adcampaigns.listAdKeywords` instead. */
5047
5089
  listAdKeywords: this._bind(listAdKeywords),
5090
+ /** @deprecated Use `zernio.adcampaigns.addAdKeywords` instead. */
5091
+ addAdKeywords: this._bind(addAdKeywords),
5092
+ /** @deprecated Use `zernio.adcampaigns.updateAdKeyword` instead. */
5093
+ updateAdKeyword: this._bind(updateAdKeyword),
5094
+ /** @deprecated Use `zernio.adcampaigns.removeAdKeyword` instead. */
5095
+ removeAdKeyword: this._bind(removeAdKeyword),
5048
5096
  /** @deprecated Use `zernio.adcampaigns.listAdCampaigns` instead. */
5049
5097
  listAdCampaigns: this._bind(listAdCampaigns),
5050
5098
  /** @deprecated Use `zernio.adcampaigns.createAdCampaign` instead. */
@@ -5055,6 +5103,10 @@ var Zernio = class _Zernio {
5055
5103
  updateAdCampaign: this._bind(updateAdCampaign),
5056
5104
  /** @deprecated Use `zernio.adcampaigns.deleteAdCampaign` instead. */
5057
5105
  deleteAdCampaign: this._bind(deleteAdCampaign),
5106
+ /** @deprecated Use `zernio.adcampaigns.listCampaignNegativeKeywords` instead. */
5107
+ listCampaignNegativeKeywords: this._bind(listCampaignNegativeKeywords),
5108
+ /** @deprecated Use `zernio.adcampaigns.replaceCampaignNegativeKeywords` instead. */
5109
+ replaceCampaignNegativeKeywords: this._bind(replaceCampaignNegativeKeywords),
5058
5110
  /** @deprecated Use `zernio.adcampaigns.bulkUpdateAdCampaignStatus` instead. */
5059
5111
  bulkUpdateAdCampaignStatus: this._bind(bulkUpdateAdCampaignStatus),
5060
5112
  /** @deprecated Use `zernio.adcampaigns.duplicateAdCampaign` 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.715",
8
+ version: "0.2.717",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -1121,6 +1121,12 @@ var connectDiscordChannel = (options) => {
1121
1121
  url: "/v1/connect/discord"
1122
1122
  });
1123
1123
  };
1124
+ var listSlackChannels = (options) => {
1125
+ return (options?.client ?? client).get({
1126
+ ...options,
1127
+ url: "/v1/connect/slack"
1128
+ });
1129
+ };
1124
1130
  var connectSlackChannel = (options) => {
1125
1131
  return (options?.client ?? client).post({
1126
1132
  ...options,
@@ -3198,6 +3204,24 @@ var listAdKeywords = (options) => {
3198
3204
  url: "/v1/ads/keywords"
3199
3205
  });
3200
3206
  };
3207
+ var addAdKeywords = (options) => {
3208
+ return (options?.client ?? client).post({
3209
+ ...options,
3210
+ url: "/v1/ads/keywords"
3211
+ });
3212
+ };
3213
+ var updateAdKeyword = (options) => {
3214
+ return (options?.client ?? client).patch({
3215
+ ...options,
3216
+ url: "/v1/ads/keywords/{keywordId}"
3217
+ });
3218
+ };
3219
+ var removeAdKeyword = (options) => {
3220
+ return (options?.client ?? client).delete({
3221
+ ...options,
3222
+ url: "/v1/ads/keywords/{keywordId}"
3223
+ });
3224
+ };
3201
3225
  var listAdCampaigns = (options) => {
3202
3226
  return (options?.client ?? client).get({
3203
3227
  ...options,
@@ -3228,6 +3252,18 @@ var deleteAdCampaign = (options) => {
3228
3252
  url: "/v1/ads/campaigns/{campaignId}"
3229
3253
  });
3230
3254
  };
3255
+ var listCampaignNegativeKeywords = (options) => {
3256
+ return (options?.client ?? client).get({
3257
+ ...options,
3258
+ url: "/v1/ads/campaigns/{campaignId}/negative-keywords"
3259
+ });
3260
+ };
3261
+ var replaceCampaignNegativeKeywords = (options) => {
3262
+ return (options?.client ?? client).put({
3263
+ ...options,
3264
+ url: "/v1/ads/campaigns/{campaignId}/negative-keywords"
3265
+ });
3266
+ };
3231
3267
  var bulkUpdateAdCampaignStatus = (options) => {
3232
3268
  return (options?.client ?? client).post({
3233
3269
  ...options,
@@ -4295,6 +4331,7 @@ var Zernio = class _Zernio {
4295
4331
  completeWhatsAppPhoneSelection: this._bind(completeWhatsAppPhoneSelection),
4296
4332
  connectWhatsAppEmbeddedSignup: this._bind(connectWhatsAppEmbeddedSignup),
4297
4333
  connectDiscordChannel: this._bind(connectDiscordChannel),
4334
+ listSlackChannels: this._bind(listSlackChannels),
4298
4335
  connectSlackChannel: this._bind(connectSlackChannel),
4299
4336
  getFacebookPages: this._bind(getFacebookPages),
4300
4337
  updateFacebookPage: this._bind(updateFacebookPage),
@@ -4809,11 +4846,16 @@ var Zernio = class _Zernio {
4809
4846
  this.adcampaigns = {
4810
4847
  listAds: this._bind(listAds),
4811
4848
  listAdKeywords: this._bind(listAdKeywords),
4849
+ addAdKeywords: this._bind(addAdKeywords),
4850
+ updateAdKeyword: this._bind(updateAdKeyword),
4851
+ removeAdKeyword: this._bind(removeAdKeyword),
4812
4852
  listAdCampaigns: this._bind(listAdCampaigns),
4813
4853
  createAdCampaign: this._bind(createAdCampaign),
4814
4854
  updateAdCampaignStatus: this._bind(updateAdCampaignStatus),
4815
4855
  updateAdCampaign: this._bind(updateAdCampaign),
4816
4856
  deleteAdCampaign: this._bind(deleteAdCampaign),
4857
+ listCampaignNegativeKeywords: this._bind(listCampaignNegativeKeywords),
4858
+ replaceCampaignNegativeKeywords: this._bind(replaceCampaignNegativeKeywords),
4817
4859
  bulkUpdateAdCampaignStatus: this._bind(bulkUpdateAdCampaignStatus),
4818
4860
  duplicateAdCampaign: this._bind(duplicateAdCampaign),
4819
4861
  duplicateAdSet: this._bind(duplicateAdSet),
@@ -5014,6 +5056,12 @@ var Zernio = class _Zernio {
5014
5056
  listAds: this._bind(listAds),
5015
5057
  /** @deprecated Use `zernio.adcampaigns.listAdKeywords` instead. */
5016
5058
  listAdKeywords: this._bind(listAdKeywords),
5059
+ /** @deprecated Use `zernio.adcampaigns.addAdKeywords` instead. */
5060
+ addAdKeywords: this._bind(addAdKeywords),
5061
+ /** @deprecated Use `zernio.adcampaigns.updateAdKeyword` instead. */
5062
+ updateAdKeyword: this._bind(updateAdKeyword),
5063
+ /** @deprecated Use `zernio.adcampaigns.removeAdKeyword` instead. */
5064
+ removeAdKeyword: this._bind(removeAdKeyword),
5017
5065
  /** @deprecated Use `zernio.adcampaigns.listAdCampaigns` instead. */
5018
5066
  listAdCampaigns: this._bind(listAdCampaigns),
5019
5067
  /** @deprecated Use `zernio.adcampaigns.createAdCampaign` instead. */
@@ -5024,6 +5072,10 @@ var Zernio = class _Zernio {
5024
5072
  updateAdCampaign: this._bind(updateAdCampaign),
5025
5073
  /** @deprecated Use `zernio.adcampaigns.deleteAdCampaign` instead. */
5026
5074
  deleteAdCampaign: this._bind(deleteAdCampaign),
5075
+ /** @deprecated Use `zernio.adcampaigns.listCampaignNegativeKeywords` instead. */
5076
+ listCampaignNegativeKeywords: this._bind(listCampaignNegativeKeywords),
5077
+ /** @deprecated Use `zernio.adcampaigns.replaceCampaignNegativeKeywords` instead. */
5078
+ replaceCampaignNegativeKeywords: this._bind(replaceCampaignNegativeKeywords),
5027
5079
  /** @deprecated Use `zernio.adcampaigns.bulkUpdateAdCampaignStatus` instead. */
5028
5080
  bulkUpdateAdCampaignStatus: this._bind(bulkUpdateAdCampaignStatus),
5029
5081
  /** @deprecated Use `zernio.adcampaigns.duplicateAdCampaign` instead. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.715",
3
+ "version": "0.2.717",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -3,6 +3,7 @@ import { createClient, createConfig, type Client } from '@hey-api/client-fetch';
3
3
  import {
4
4
  activateSequence,
5
5
  activateWorkflow,
6
+ addAdKeywords,
6
7
  addBroadcastRecipients,
7
8
  addConversionAssociations,
8
9
  addDiscordMemberRole,
@@ -364,6 +365,7 @@ import {
364
365
  listBroadcastRecipients,
365
366
  listBroadcasts,
366
367
  listCalls,
368
+ listCampaignNegativeKeywords,
367
369
  listCommentAutomationLogs,
368
370
  listCommentAutomations,
369
371
  listConnectedApps,
@@ -407,6 +409,7 @@ import {
407
409
  listSequenceEnrollments,
408
410
  listSequences,
409
411
  listSipTrunks,
412
+ listSlackChannels,
410
413
  listSlackMembers,
411
414
  listSmsOptOuts,
412
415
  listSmsRegistrations,
@@ -452,6 +455,7 @@ import {
452
455
  releaseWhatsAppPhoneNumber,
453
456
  remediatePhoneNumber,
454
457
  remediateWhatsAppNumber,
458
+ removeAdKeyword,
455
459
  removeBookmark,
456
460
  removeConversionAssociations,
457
461
  removeDiscordMemberRole,
@@ -459,6 +463,7 @@ import {
459
463
  removeTrackingTagSharedAccount,
460
464
  removeWhatsAppGroupParticipants,
461
465
  replaceAdAudienceCompanies,
466
+ replaceCampaignNegativeKeywords,
462
467
  replyToGoogleBusinessReview,
463
468
  replyToInboxPost,
464
469
  replyToInboxReview,
@@ -537,6 +542,7 @@ import {
537
542
  updateAdCampaign,
538
543
  updateAdCampaignStatus,
539
544
  updateAdCreative,
545
+ updateAdKeyword,
540
546
  updateAdSet,
541
547
  updateAdSetStatus,
542
548
  updateAdStatus,
@@ -981,6 +987,7 @@ export class Zernio {
981
987
  completeWhatsAppPhoneSelection: this._bind(completeWhatsAppPhoneSelection),
982
988
  connectWhatsAppEmbeddedSignup: this._bind(connectWhatsAppEmbeddedSignup),
983
989
  connectDiscordChannel: this._bind(connectDiscordChannel),
990
+ listSlackChannels: this._bind(listSlackChannels),
984
991
  connectSlackChannel: this._bind(connectSlackChannel),
985
992
  getFacebookPages: this._bind(getFacebookPages),
986
993
  updateFacebookPage: this._bind(updateFacebookPage),
@@ -1530,11 +1537,16 @@ export class Zernio {
1530
1537
  adcampaigns = {
1531
1538
  listAds: this._bind(listAds),
1532
1539
  listAdKeywords: this._bind(listAdKeywords),
1540
+ addAdKeywords: this._bind(addAdKeywords),
1541
+ updateAdKeyword: this._bind(updateAdKeyword),
1542
+ removeAdKeyword: this._bind(removeAdKeyword),
1533
1543
  listAdCampaigns: this._bind(listAdCampaigns),
1534
1544
  createAdCampaign: this._bind(createAdCampaign),
1535
1545
  updateAdCampaignStatus: this._bind(updateAdCampaignStatus),
1536
1546
  updateAdCampaign: this._bind(updateAdCampaign),
1537
1547
  deleteAdCampaign: this._bind(deleteAdCampaign),
1548
+ listCampaignNegativeKeywords: this._bind(listCampaignNegativeKeywords),
1549
+ replaceCampaignNegativeKeywords: this._bind(replaceCampaignNegativeKeywords),
1538
1550
  bulkUpdateAdCampaignStatus: this._bind(bulkUpdateAdCampaignStatus),
1539
1551
  duplicateAdCampaign: this._bind(duplicateAdCampaign),
1540
1552
  duplicateAdSet: this._bind(duplicateAdSet),
@@ -1749,6 +1761,12 @@ export class Zernio {
1749
1761
  listAds: this._bind(listAds),
1750
1762
  /** @deprecated Use `zernio.adcampaigns.listAdKeywords` instead. */
1751
1763
  listAdKeywords: this._bind(listAdKeywords),
1764
+ /** @deprecated Use `zernio.adcampaigns.addAdKeywords` instead. */
1765
+ addAdKeywords: this._bind(addAdKeywords),
1766
+ /** @deprecated Use `zernio.adcampaigns.updateAdKeyword` instead. */
1767
+ updateAdKeyword: this._bind(updateAdKeyword),
1768
+ /** @deprecated Use `zernio.adcampaigns.removeAdKeyword` instead. */
1769
+ removeAdKeyword: this._bind(removeAdKeyword),
1752
1770
  /** @deprecated Use `zernio.adcampaigns.listAdCampaigns` instead. */
1753
1771
  listAdCampaigns: this._bind(listAdCampaigns),
1754
1772
  /** @deprecated Use `zernio.adcampaigns.createAdCampaign` instead. */
@@ -1759,6 +1777,10 @@ export class Zernio {
1759
1777
  updateAdCampaign: this._bind(updateAdCampaign),
1760
1778
  /** @deprecated Use `zernio.adcampaigns.deleteAdCampaign` instead. */
1761
1779
  deleteAdCampaign: this._bind(deleteAdCampaign),
1780
+ /** @deprecated Use `zernio.adcampaigns.listCampaignNegativeKeywords` instead. */
1781
+ listCampaignNegativeKeywords: this._bind(listCampaignNegativeKeywords),
1782
+ /** @deprecated Use `zernio.adcampaigns.replaceCampaignNegativeKeywords` instead. */
1783
+ replaceCampaignNegativeKeywords: this._bind(replaceCampaignNegativeKeywords),
1762
1784
  /** @deprecated Use `zernio.adcampaigns.bulkUpdateAdCampaignStatus` instead. */
1763
1785
  bulkUpdateAdCampaignStatus: this._bind(bulkUpdateAdCampaignStatus),
1764
1786
  /** @deprecated Use `zernio.adcampaigns.duplicateAdCampaign` instead. */