@getlatedev/node 0.2.393 → 0.2.395

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: "@getlatedev/node",
39
- version: "0.2.393",
39
+ version: "0.2.395",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -1894,6 +1894,30 @@ var listSmsOptOuts = (options) => {
1894
1894
  url: "/v1/sms/opt-outs"
1895
1895
  });
1896
1896
  };
1897
+ var createSmsSenderId = (options) => {
1898
+ return (options?.client ?? client).post({
1899
+ ...options,
1900
+ url: "/v1/sms/sender-ids"
1901
+ });
1902
+ };
1903
+ var listSmsSenderIds = (options) => {
1904
+ return (options?.client ?? client).get({
1905
+ ...options,
1906
+ url: "/v1/sms/sender-ids"
1907
+ });
1908
+ };
1909
+ var requestSmsSenderIdLimitIncrease = (options) => {
1910
+ return (options?.client ?? client).post({
1911
+ ...options,
1912
+ url: "/v1/sms/sender-ids/limit-request"
1913
+ });
1914
+ };
1915
+ var deleteSmsSenderId = (options) => {
1916
+ return (options?.client ?? client).delete({
1917
+ ...options,
1918
+ url: "/v1/sms/sender-ids/{id}"
1919
+ });
1920
+ };
1897
1921
  var startSmsRegistration = (options) => {
1898
1922
  return (options?.client ?? client).post({
1899
1923
  ...options,
@@ -2838,6 +2862,12 @@ var listAdCampaigns = (options) => {
2838
2862
  url: "/v1/ads/campaigns"
2839
2863
  });
2840
2864
  };
2865
+ var createAdCampaign = (options) => {
2866
+ return (options?.client ?? client).post({
2867
+ ...options,
2868
+ url: "/v1/ads/campaigns"
2869
+ });
2870
+ };
2841
2871
  var updateAdCampaignStatus = (options) => {
2842
2872
  return (options?.client ?? client).put({
2843
2873
  ...options,
@@ -2868,6 +2898,18 @@ var duplicateAdCampaign = (options) => {
2868
2898
  url: "/v1/ads/campaigns/{campaignId}/duplicate"
2869
2899
  });
2870
2900
  };
2901
+ var duplicateAdSet = (options) => {
2902
+ return (options?.client ?? client).post({
2903
+ ...options,
2904
+ url: "/v1/ads/ad-sets/{adSetId}/duplicate"
2905
+ });
2906
+ };
2907
+ var duplicateAd = (options) => {
2908
+ return (options?.client ?? client).post({
2909
+ ...options,
2910
+ url: "/v1/ads/{adId}/duplicate"
2911
+ });
2912
+ };
2871
2913
  var getAdSetDetails = (options) => {
2872
2914
  return (options?.client ?? client).get({
2873
2915
  ...options,
@@ -3024,6 +3066,48 @@ var listAdStudies = (options) => {
3024
3066
  url: "/v1/ads/studies"
3025
3067
  });
3026
3068
  };
3069
+ var listAdLabels = (options) => {
3070
+ return (options?.client ?? client).get({
3071
+ ...options,
3072
+ url: "/v1/ads/labels"
3073
+ });
3074
+ };
3075
+ var listHighDemandPeriods = (options) => {
3076
+ return (options?.client ?? client).get({
3077
+ ...options,
3078
+ url: "/v1/ads/high-demand-periods"
3079
+ });
3080
+ };
3081
+ var listAdCreatives = (options) => {
3082
+ return (options?.client ?? client).get({
3083
+ ...options,
3084
+ url: "/v1/ads/creatives"
3085
+ });
3086
+ };
3087
+ var createAdCreative = (options) => {
3088
+ return (options?.client ?? client).post({
3089
+ ...options,
3090
+ url: "/v1/ads/creatives"
3091
+ });
3092
+ };
3093
+ var getAdCreative = (options) => {
3094
+ return (options?.client ?? client).get({
3095
+ ...options,
3096
+ url: "/v1/ads/creatives/{creativeId}"
3097
+ });
3098
+ };
3099
+ var updateAdCreative = (options) => {
3100
+ return (options?.client ?? client).put({
3101
+ ...options,
3102
+ url: "/v1/ads/creatives/{creativeId}"
3103
+ });
3104
+ };
3105
+ var deleteAdCreative = (options) => {
3106
+ return (options?.client ?? client).delete({
3107
+ ...options,
3108
+ url: "/v1/ads/creatives/{creativeId}"
3109
+ });
3110
+ };
3027
3111
  var getAdAccountFinance = (options) => {
3028
3112
  return (options?.client ?? client).get({
3029
3113
  ...options,
@@ -3114,6 +3198,12 @@ var uploadAdImage = (options) => {
3114
3198
  url: "/v1/ads/images"
3115
3199
  });
3116
3200
  };
3201
+ var listAdImages = (options) => {
3202
+ return (options?.client ?? client).get({
3203
+ ...options,
3204
+ url: "/v1/ads/images"
3205
+ });
3206
+ };
3117
3207
  var searchAdInterests = (options) => {
3118
3208
  return (options?.client ?? client).get({
3119
3209
  ...options,
@@ -3931,6 +4021,10 @@ var Zernio = class {
3931
4021
  sendSms,
3932
4022
  lookupSmsNumber,
3933
4023
  listSmsOptOuts,
4024
+ createSmsSenderId,
4025
+ listSmsSenderIds,
4026
+ requestSmsSenderIdLimitIncrease,
4027
+ deleteSmsSenderId,
3934
4028
  startSmsRegistration,
3935
4029
  listSmsRegistrations,
3936
4030
  deactivateSmsRegistration,
@@ -4112,6 +4206,7 @@ var Zernio = class {
4112
4206
  */
4113
4207
  this.ads = {
4114
4208
  listAds,
4209
+ duplicateAd,
4115
4210
  getAd,
4116
4211
  updateAd,
4117
4212
  deleteAd,
@@ -4133,6 +4228,13 @@ var Zernio = class {
4133
4228
  cancelRfReservation,
4134
4229
  reserveRfPrediction,
4135
4230
  listAdStudies,
4231
+ listAdLabels,
4232
+ listHighDemandPeriods,
4233
+ listAdCreatives,
4234
+ createAdCreative,
4235
+ getAdCreative,
4236
+ updateAdCreative,
4237
+ deleteAdCreative,
4136
4238
  getAdAccountFinance,
4137
4239
  listAdAccounts,
4138
4240
  updateAdAccount,
@@ -4148,6 +4250,7 @@ var Zernio = class {
4148
4250
  listFormLeads,
4149
4251
  createTestLead,
4150
4252
  uploadAdImage,
4253
+ listAdImages,
4151
4254
  searchAdInterests,
4152
4255
  searchAdTargeting,
4153
4256
  estimateAdReach,
@@ -4176,11 +4279,13 @@ var Zernio = class {
4176
4279
  */
4177
4280
  this.adcampaigns = {
4178
4281
  listAdCampaigns,
4282
+ createAdCampaign,
4179
4283
  updateAdCampaignStatus,
4180
4284
  updateAdCampaign,
4181
4285
  deleteAdCampaign,
4182
4286
  bulkUpdateAdCampaignStatus,
4183
4287
  duplicateAdCampaign,
4288
+ duplicateAdSet,
4184
4289
  getAdSetDetails,
4185
4290
  updateAdSet,
4186
4291
  updateAdSetStatus,
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: "@getlatedev/node",
8
- version: "0.2.393",
8
+ version: "0.2.395",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -1863,6 +1863,30 @@ var listSmsOptOuts = (options) => {
1863
1863
  url: "/v1/sms/opt-outs"
1864
1864
  });
1865
1865
  };
1866
+ var createSmsSenderId = (options) => {
1867
+ return (options?.client ?? client).post({
1868
+ ...options,
1869
+ url: "/v1/sms/sender-ids"
1870
+ });
1871
+ };
1872
+ var listSmsSenderIds = (options) => {
1873
+ return (options?.client ?? client).get({
1874
+ ...options,
1875
+ url: "/v1/sms/sender-ids"
1876
+ });
1877
+ };
1878
+ var requestSmsSenderIdLimitIncrease = (options) => {
1879
+ return (options?.client ?? client).post({
1880
+ ...options,
1881
+ url: "/v1/sms/sender-ids/limit-request"
1882
+ });
1883
+ };
1884
+ var deleteSmsSenderId = (options) => {
1885
+ return (options?.client ?? client).delete({
1886
+ ...options,
1887
+ url: "/v1/sms/sender-ids/{id}"
1888
+ });
1889
+ };
1866
1890
  var startSmsRegistration = (options) => {
1867
1891
  return (options?.client ?? client).post({
1868
1892
  ...options,
@@ -2807,6 +2831,12 @@ var listAdCampaigns = (options) => {
2807
2831
  url: "/v1/ads/campaigns"
2808
2832
  });
2809
2833
  };
2834
+ var createAdCampaign = (options) => {
2835
+ return (options?.client ?? client).post({
2836
+ ...options,
2837
+ url: "/v1/ads/campaigns"
2838
+ });
2839
+ };
2810
2840
  var updateAdCampaignStatus = (options) => {
2811
2841
  return (options?.client ?? client).put({
2812
2842
  ...options,
@@ -2837,6 +2867,18 @@ var duplicateAdCampaign = (options) => {
2837
2867
  url: "/v1/ads/campaigns/{campaignId}/duplicate"
2838
2868
  });
2839
2869
  };
2870
+ var duplicateAdSet = (options) => {
2871
+ return (options?.client ?? client).post({
2872
+ ...options,
2873
+ url: "/v1/ads/ad-sets/{adSetId}/duplicate"
2874
+ });
2875
+ };
2876
+ var duplicateAd = (options) => {
2877
+ return (options?.client ?? client).post({
2878
+ ...options,
2879
+ url: "/v1/ads/{adId}/duplicate"
2880
+ });
2881
+ };
2840
2882
  var getAdSetDetails = (options) => {
2841
2883
  return (options?.client ?? client).get({
2842
2884
  ...options,
@@ -2993,6 +3035,48 @@ var listAdStudies = (options) => {
2993
3035
  url: "/v1/ads/studies"
2994
3036
  });
2995
3037
  };
3038
+ var listAdLabels = (options) => {
3039
+ return (options?.client ?? client).get({
3040
+ ...options,
3041
+ url: "/v1/ads/labels"
3042
+ });
3043
+ };
3044
+ var listHighDemandPeriods = (options) => {
3045
+ return (options?.client ?? client).get({
3046
+ ...options,
3047
+ url: "/v1/ads/high-demand-periods"
3048
+ });
3049
+ };
3050
+ var listAdCreatives = (options) => {
3051
+ return (options?.client ?? client).get({
3052
+ ...options,
3053
+ url: "/v1/ads/creatives"
3054
+ });
3055
+ };
3056
+ var createAdCreative = (options) => {
3057
+ return (options?.client ?? client).post({
3058
+ ...options,
3059
+ url: "/v1/ads/creatives"
3060
+ });
3061
+ };
3062
+ var getAdCreative = (options) => {
3063
+ return (options?.client ?? client).get({
3064
+ ...options,
3065
+ url: "/v1/ads/creatives/{creativeId}"
3066
+ });
3067
+ };
3068
+ var updateAdCreative = (options) => {
3069
+ return (options?.client ?? client).put({
3070
+ ...options,
3071
+ url: "/v1/ads/creatives/{creativeId}"
3072
+ });
3073
+ };
3074
+ var deleteAdCreative = (options) => {
3075
+ return (options?.client ?? client).delete({
3076
+ ...options,
3077
+ url: "/v1/ads/creatives/{creativeId}"
3078
+ });
3079
+ };
2996
3080
  var getAdAccountFinance = (options) => {
2997
3081
  return (options?.client ?? client).get({
2998
3082
  ...options,
@@ -3083,6 +3167,12 @@ var uploadAdImage = (options) => {
3083
3167
  url: "/v1/ads/images"
3084
3168
  });
3085
3169
  };
3170
+ var listAdImages = (options) => {
3171
+ return (options?.client ?? client).get({
3172
+ ...options,
3173
+ url: "/v1/ads/images"
3174
+ });
3175
+ };
3086
3176
  var searchAdInterests = (options) => {
3087
3177
  return (options?.client ?? client).get({
3088
3178
  ...options,
@@ -3900,6 +3990,10 @@ var Zernio = class {
3900
3990
  sendSms,
3901
3991
  lookupSmsNumber,
3902
3992
  listSmsOptOuts,
3993
+ createSmsSenderId,
3994
+ listSmsSenderIds,
3995
+ requestSmsSenderIdLimitIncrease,
3996
+ deleteSmsSenderId,
3903
3997
  startSmsRegistration,
3904
3998
  listSmsRegistrations,
3905
3999
  deactivateSmsRegistration,
@@ -4081,6 +4175,7 @@ var Zernio = class {
4081
4175
  */
4082
4176
  this.ads = {
4083
4177
  listAds,
4178
+ duplicateAd,
4084
4179
  getAd,
4085
4180
  updateAd,
4086
4181
  deleteAd,
@@ -4102,6 +4197,13 @@ var Zernio = class {
4102
4197
  cancelRfReservation,
4103
4198
  reserveRfPrediction,
4104
4199
  listAdStudies,
4200
+ listAdLabels,
4201
+ listHighDemandPeriods,
4202
+ listAdCreatives,
4203
+ createAdCreative,
4204
+ getAdCreative,
4205
+ updateAdCreative,
4206
+ deleteAdCreative,
4105
4207
  getAdAccountFinance,
4106
4208
  listAdAccounts,
4107
4209
  updateAdAccount,
@@ -4117,6 +4219,7 @@ var Zernio = class {
4117
4219
  listFormLeads,
4118
4220
  createTestLead,
4119
4221
  uploadAdImage,
4222
+ listAdImages,
4120
4223
  searchAdInterests,
4121
4224
  searchAdTargeting,
4122
4225
  estimateAdReach,
@@ -4145,11 +4248,13 @@ var Zernio = class {
4145
4248
  */
4146
4249
  this.adcampaigns = {
4147
4250
  listAdCampaigns,
4251
+ createAdCampaign,
4148
4252
  updateAdCampaignStatus,
4149
4253
  updateAdCampaign,
4150
4254
  deleteAdCampaign,
4151
4255
  bulkUpdateAdCampaignStatus,
4152
4256
  duplicateAdCampaign,
4257
+ duplicateAdSet,
4153
4258
  getAdSetDetails,
4154
4259
  updateAdSet,
4155
4260
  updateAdSetStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.393",
3
+ "version": "0.2.395",
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
@@ -38,6 +38,8 @@ import {
38
38
  connectWhatsAppCredentials,
39
39
  createAccountGroup,
40
40
  createAdAudience,
41
+ createAdCampaign,
42
+ createAdCreative,
41
43
  createAdInsightsReport,
42
44
  createApiKey,
43
45
  createBroadcast,
@@ -64,6 +66,7 @@ import {
64
66
  createQueueSlot,
65
67
  createRfPrediction,
66
68
  createSequence,
69
+ createSmsSenderId,
67
70
  createStandaloneAd,
68
71
  createTestLead,
69
72
  createTrackingTag,
@@ -85,6 +88,7 @@ import {
85
88
  deleteAd,
86
89
  deleteAdAudience,
87
90
  deleteAdCampaign,
91
+ deleteAdCreative,
88
92
  deleteApiKey,
89
93
  deleteBroadcast,
90
94
  deleteCommentAutomation,
@@ -106,6 +110,7 @@ import {
106
110
  deleteProfile,
107
111
  deleteQueueSlot,
108
112
  deleteSequence,
113
+ deleteSmsSenderId,
109
114
  deleteTelegramCommands,
110
115
  deleteWebhookSettings,
111
116
  deleteWhatsAppFlow,
@@ -120,7 +125,9 @@ import {
120
125
  disableVoiceOnNumber,
121
126
  disableWhatsAppCalling,
122
127
  disableWhatsAppCallingLegacy,
128
+ duplicateAd,
123
129
  duplicateAdCampaign,
130
+ duplicateAdSet,
124
131
  duplicateWorkflow,
125
132
  editDiscordGuildRole,
126
133
  editInboxComment,
@@ -142,6 +149,7 @@ import {
142
149
  getAdAnalytics,
143
150
  getAdAudience,
144
151
  getAdComments,
152
+ getAdCreative,
145
153
  getAdInsightsReport,
146
154
  getAdPreviews,
147
155
  getAdSetDetails,
@@ -291,6 +299,9 @@ import {
291
299
  listAdCampaigns,
292
300
  listAdCatalogProductSets,
293
301
  listAdCatalogs,
302
+ listAdCreatives,
303
+ listAdImages,
304
+ listAdLabels,
294
305
  listAdStudies,
295
306
  listAds,
296
307
  listAdsBusinessCenters,
@@ -313,6 +324,7 @@ import {
313
324
  listGoogleBusinessLocations,
314
325
  listGoogleBusinessMedia,
315
326
  listGoogleBusinessPlaceActions,
327
+ listHighDemandPeriods,
316
328
  listInboxComments,
317
329
  listInboxConversationAnalytics,
318
330
  listInboxConversations,
@@ -334,6 +346,7 @@ import {
334
346
  listSequences,
335
347
  listSmsOptOuts,
336
348
  listSmsRegistrations,
349
+ listSmsSenderIds,
337
350
  listSnapchatProfiles,
338
351
  listTrackingTagSharedAccounts,
339
352
  listTrackingTags,
@@ -379,6 +392,7 @@ import {
379
392
  replyToInboxPost,
380
393
  replyToInboxReview,
381
394
  replyToMention,
395
+ requestSmsSenderIdLimitIncrease,
382
396
  resendSmsRegistrationOtp,
383
397
  reserveRfPrediction,
384
398
  restoreWorkflowVersion,
@@ -438,6 +452,7 @@ import {
438
452
  updateAdAudience,
439
453
  updateAdCampaign,
440
454
  updateAdCampaignStatus,
455
+ updateAdCreative,
441
456
  updateAdSet,
442
457
  updateAdSetStatus,
443
458
  updateAdStatus,
@@ -1079,6 +1094,10 @@ export class Zernio {
1079
1094
  sendSms: sendSms,
1080
1095
  lookupSmsNumber: lookupSmsNumber,
1081
1096
  listSmsOptOuts: listSmsOptOuts,
1097
+ createSmsSenderId: createSmsSenderId,
1098
+ listSmsSenderIds: listSmsSenderIds,
1099
+ requestSmsSenderIdLimitIncrease: requestSmsSenderIdLimitIncrease,
1100
+ deleteSmsSenderId: deleteSmsSenderId,
1082
1101
  startSmsRegistration: startSmsRegistration,
1083
1102
  listSmsRegistrations: listSmsRegistrations,
1084
1103
  deactivateSmsRegistration: deactivateSmsRegistration,
@@ -1272,6 +1291,7 @@ export class Zernio {
1272
1291
  */
1273
1292
  ads = {
1274
1293
  listAds: listAds,
1294
+ duplicateAd: duplicateAd,
1275
1295
  getAd: getAd,
1276
1296
  updateAd: updateAd,
1277
1297
  deleteAd: deleteAd,
@@ -1293,6 +1313,13 @@ export class Zernio {
1293
1313
  cancelRfReservation: cancelRfReservation,
1294
1314
  reserveRfPrediction: reserveRfPrediction,
1295
1315
  listAdStudies: listAdStudies,
1316
+ listAdLabels: listAdLabels,
1317
+ listHighDemandPeriods: listHighDemandPeriods,
1318
+ listAdCreatives: listAdCreatives,
1319
+ createAdCreative: createAdCreative,
1320
+ getAdCreative: getAdCreative,
1321
+ updateAdCreative: updateAdCreative,
1322
+ deleteAdCreative: deleteAdCreative,
1296
1323
  getAdAccountFinance: getAdAccountFinance,
1297
1324
  listAdAccounts: listAdAccounts,
1298
1325
  updateAdAccount: updateAdAccount,
@@ -1308,6 +1335,7 @@ export class Zernio {
1308
1335
  listFormLeads: listFormLeads,
1309
1336
  createTestLead: createTestLead,
1310
1337
  uploadAdImage: uploadAdImage,
1338
+ listAdImages: listAdImages,
1311
1339
  searchAdInterests: searchAdInterests,
1312
1340
  searchAdTargeting: searchAdTargeting,
1313
1341
  estimateAdReach: estimateAdReach,
@@ -1337,11 +1365,13 @@ export class Zernio {
1337
1365
  */
1338
1366
  adcampaigns = {
1339
1367
  listAdCampaigns: listAdCampaigns,
1368
+ createAdCampaign: createAdCampaign,
1340
1369
  updateAdCampaignStatus: updateAdCampaignStatus,
1341
1370
  updateAdCampaign: updateAdCampaign,
1342
1371
  deleteAdCampaign: deleteAdCampaign,
1343
1372
  bulkUpdateAdCampaignStatus: bulkUpdateAdCampaignStatus,
1344
1373
  duplicateAdCampaign: duplicateAdCampaign,
1374
+ duplicateAdSet: duplicateAdSet,
1345
1375
  getAdSetDetails: getAdSetDetails,
1346
1376
  updateAdSet: updateAdSet,
1347
1377
  updateAdSetStatus: updateAdSetStatus,