@getlatedev/node 0.2.939 → 0.2.941

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.939",
39
+ version: "0.2.941",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -3445,6 +3445,24 @@ var getAdsSearchTerms = (options) => {
3445
3445
  url: "/v1/ads/search-terms"
3446
3446
  });
3447
3447
  };
3448
+ var listGoogleRecommendations = (options) => {
3449
+ return (options?.client ?? client).get({
3450
+ ...options,
3451
+ url: "/v1/ads/recommendations"
3452
+ });
3453
+ };
3454
+ var applyGoogleRecommendations = (options) => {
3455
+ return (options?.client ?? client).post({
3456
+ ...options,
3457
+ url: "/v1/ads/recommendations/apply"
3458
+ });
3459
+ };
3460
+ var dismissGoogleRecommendations = (options) => {
3461
+ return (options?.client ?? client).post({
3462
+ ...options,
3463
+ url: "/v1/ads/recommendations/dismiss"
3464
+ });
3465
+ };
3448
3466
  var listBidStrategies = (options) => {
3449
3467
  return (options?.client ?? client).get({
3450
3468
  ...options,
@@ -3907,6 +3925,36 @@ var listAdLabels = (options) => {
3907
3925
  url: "/v1/ads/labels"
3908
3926
  });
3909
3927
  };
3928
+ var createAdLabel = (options) => {
3929
+ return (options?.client ?? client).post({
3930
+ ...options,
3931
+ url: "/v1/ads/labels"
3932
+ });
3933
+ };
3934
+ var updateAdLabel = (options) => {
3935
+ return (options?.client ?? client).patch({
3936
+ ...options,
3937
+ url: "/v1/ads/labels/{labelId}"
3938
+ });
3939
+ };
3940
+ var removeAdLabel = (options) => {
3941
+ return (options?.client ?? client).delete({
3942
+ ...options,
3943
+ url: "/v1/ads/labels/{labelId}"
3944
+ });
3945
+ };
3946
+ var attachAdLabel = (options) => {
3947
+ return (options?.client ?? client).post({
3948
+ ...options,
3949
+ url: "/v1/ads/labels/{labelId}/assignments"
3950
+ });
3951
+ };
3952
+ var detachAdLabel = (options) => {
3953
+ return (options?.client ?? client).delete({
3954
+ ...options,
3955
+ url: "/v1/ads/labels/{labelId}/assignments"
3956
+ });
3957
+ };
3910
3958
  var listHighDemandPeriods = (options) => {
3911
3959
  return (options?.client ?? client).get({
3912
3960
  ...options,
@@ -5982,6 +6030,9 @@ var Zernio = class _Zernio {
5982
6030
  */
5983
6031
  this.adcampaigns = {
5984
6032
  listAds: this._bind(listAds),
6033
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
6034
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
6035
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
5985
6036
  listBidStrategies: this._bind(listBidStrategies),
5986
6037
  createBidStrategy: this._bind(createBidStrategy),
5987
6038
  updateBidStrategy: this._bind(updateBidStrategy),
@@ -6108,6 +6159,11 @@ var Zernio = class _Zernio {
6108
6159
  getIosFourteenCampaignLimits: this._bind(getIosFourteenCampaignLimits),
6109
6160
  listMetaBusinesses: this._bind(listMetaBusinesses),
6110
6161
  listAdLabels: this._bind(listAdLabels),
6162
+ createAdLabel: this._bind(createAdLabel),
6163
+ updateAdLabel: this._bind(updateAdLabel),
6164
+ removeAdLabel: this._bind(removeAdLabel),
6165
+ attachAdLabel: this._bind(attachAdLabel),
6166
+ detachAdLabel: this._bind(detachAdLabel),
6111
6167
  listHighDemandPeriods: this._bind(listHighDemandPeriods),
6112
6168
  createHighDemandPeriod: this._bind(createHighDemandPeriod),
6113
6169
  listValueRuleSets: this._bind(listValueRuleSets),
@@ -6349,6 +6405,12 @@ var Zernio = class _Zernio {
6349
6405
  this.ads = {
6350
6406
  /** @deprecated Use `zernio.adcampaigns.listAds` instead. */
6351
6407
  listAds: this._bind(listAds),
6408
+ /** @deprecated Use `zernio.adcampaigns.listGoogleRecommendations` instead. */
6409
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
6410
+ /** @deprecated Use `zernio.adcampaigns.applyGoogleRecommendations` instead. */
6411
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
6412
+ /** @deprecated Use `zernio.adcampaigns.dismissGoogleRecommendations` instead. */
6413
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
6352
6414
  /** @deprecated Use `zernio.adcampaigns.listBidStrategies` instead. */
6353
6415
  listBidStrategies: this._bind(listBidStrategies),
6354
6416
  /** @deprecated Use `zernio.adcampaigns.createBidStrategy` instead. */
@@ -6485,6 +6547,16 @@ var Zernio = class _Zernio {
6485
6547
  listMetaBusinesses: this._bind(listMetaBusinesses),
6486
6548
  /** @deprecated Use `zernio.adaccounts.listAdLabels` instead. */
6487
6549
  listAdLabels: this._bind(listAdLabels),
6550
+ /** @deprecated Use `zernio.adaccounts.createAdLabel` instead. */
6551
+ createAdLabel: this._bind(createAdLabel),
6552
+ /** @deprecated Use `zernio.adaccounts.updateAdLabel` instead. */
6553
+ updateAdLabel: this._bind(updateAdLabel),
6554
+ /** @deprecated Use `zernio.adaccounts.removeAdLabel` instead. */
6555
+ removeAdLabel: this._bind(removeAdLabel),
6556
+ /** @deprecated Use `zernio.adaccounts.attachAdLabel` instead. */
6557
+ attachAdLabel: this._bind(attachAdLabel),
6558
+ /** @deprecated Use `zernio.adaccounts.detachAdLabel` instead. */
6559
+ detachAdLabel: this._bind(detachAdLabel),
6488
6560
  /** @deprecated Use `zernio.adaccounts.listHighDemandPeriods` instead. */
6489
6561
  listHighDemandPeriods: this._bind(listHighDemandPeriods),
6490
6562
  /** @deprecated Use `zernio.adaccounts.createHighDemandPeriod` 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: "@getlatedev/node",
8
- version: "0.2.939",
8
+ version: "0.2.941",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -3414,6 +3414,24 @@ var getAdsSearchTerms = (options) => {
3414
3414
  url: "/v1/ads/search-terms"
3415
3415
  });
3416
3416
  };
3417
+ var listGoogleRecommendations = (options) => {
3418
+ return (options?.client ?? client).get({
3419
+ ...options,
3420
+ url: "/v1/ads/recommendations"
3421
+ });
3422
+ };
3423
+ var applyGoogleRecommendations = (options) => {
3424
+ return (options?.client ?? client).post({
3425
+ ...options,
3426
+ url: "/v1/ads/recommendations/apply"
3427
+ });
3428
+ };
3429
+ var dismissGoogleRecommendations = (options) => {
3430
+ return (options?.client ?? client).post({
3431
+ ...options,
3432
+ url: "/v1/ads/recommendations/dismiss"
3433
+ });
3434
+ };
3417
3435
  var listBidStrategies = (options) => {
3418
3436
  return (options?.client ?? client).get({
3419
3437
  ...options,
@@ -3876,6 +3894,36 @@ var listAdLabels = (options) => {
3876
3894
  url: "/v1/ads/labels"
3877
3895
  });
3878
3896
  };
3897
+ var createAdLabel = (options) => {
3898
+ return (options?.client ?? client).post({
3899
+ ...options,
3900
+ url: "/v1/ads/labels"
3901
+ });
3902
+ };
3903
+ var updateAdLabel = (options) => {
3904
+ return (options?.client ?? client).patch({
3905
+ ...options,
3906
+ url: "/v1/ads/labels/{labelId}"
3907
+ });
3908
+ };
3909
+ var removeAdLabel = (options) => {
3910
+ return (options?.client ?? client).delete({
3911
+ ...options,
3912
+ url: "/v1/ads/labels/{labelId}"
3913
+ });
3914
+ };
3915
+ var attachAdLabel = (options) => {
3916
+ return (options?.client ?? client).post({
3917
+ ...options,
3918
+ url: "/v1/ads/labels/{labelId}/assignments"
3919
+ });
3920
+ };
3921
+ var detachAdLabel = (options) => {
3922
+ return (options?.client ?? client).delete({
3923
+ ...options,
3924
+ url: "/v1/ads/labels/{labelId}/assignments"
3925
+ });
3926
+ };
3879
3927
  var listHighDemandPeriods = (options) => {
3880
3928
  return (options?.client ?? client).get({
3881
3929
  ...options,
@@ -5951,6 +5999,9 @@ var Zernio = class _Zernio {
5951
5999
  */
5952
6000
  this.adcampaigns = {
5953
6001
  listAds: this._bind(listAds),
6002
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
6003
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
6004
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
5954
6005
  listBidStrategies: this._bind(listBidStrategies),
5955
6006
  createBidStrategy: this._bind(createBidStrategy),
5956
6007
  updateBidStrategy: this._bind(updateBidStrategy),
@@ -6077,6 +6128,11 @@ var Zernio = class _Zernio {
6077
6128
  getIosFourteenCampaignLimits: this._bind(getIosFourteenCampaignLimits),
6078
6129
  listMetaBusinesses: this._bind(listMetaBusinesses),
6079
6130
  listAdLabels: this._bind(listAdLabels),
6131
+ createAdLabel: this._bind(createAdLabel),
6132
+ updateAdLabel: this._bind(updateAdLabel),
6133
+ removeAdLabel: this._bind(removeAdLabel),
6134
+ attachAdLabel: this._bind(attachAdLabel),
6135
+ detachAdLabel: this._bind(detachAdLabel),
6080
6136
  listHighDemandPeriods: this._bind(listHighDemandPeriods),
6081
6137
  createHighDemandPeriod: this._bind(createHighDemandPeriod),
6082
6138
  listValueRuleSets: this._bind(listValueRuleSets),
@@ -6318,6 +6374,12 @@ var Zernio = class _Zernio {
6318
6374
  this.ads = {
6319
6375
  /** @deprecated Use `zernio.adcampaigns.listAds` instead. */
6320
6376
  listAds: this._bind(listAds),
6377
+ /** @deprecated Use `zernio.adcampaigns.listGoogleRecommendations` instead. */
6378
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
6379
+ /** @deprecated Use `zernio.adcampaigns.applyGoogleRecommendations` instead. */
6380
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
6381
+ /** @deprecated Use `zernio.adcampaigns.dismissGoogleRecommendations` instead. */
6382
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
6321
6383
  /** @deprecated Use `zernio.adcampaigns.listBidStrategies` instead. */
6322
6384
  listBidStrategies: this._bind(listBidStrategies),
6323
6385
  /** @deprecated Use `zernio.adcampaigns.createBidStrategy` instead. */
@@ -6454,6 +6516,16 @@ var Zernio = class _Zernio {
6454
6516
  listMetaBusinesses: this._bind(listMetaBusinesses),
6455
6517
  /** @deprecated Use `zernio.adaccounts.listAdLabels` instead. */
6456
6518
  listAdLabels: this._bind(listAdLabels),
6519
+ /** @deprecated Use `zernio.adaccounts.createAdLabel` instead. */
6520
+ createAdLabel: this._bind(createAdLabel),
6521
+ /** @deprecated Use `zernio.adaccounts.updateAdLabel` instead. */
6522
+ updateAdLabel: this._bind(updateAdLabel),
6523
+ /** @deprecated Use `zernio.adaccounts.removeAdLabel` instead. */
6524
+ removeAdLabel: this._bind(removeAdLabel),
6525
+ /** @deprecated Use `zernio.adaccounts.attachAdLabel` instead. */
6526
+ attachAdLabel: this._bind(attachAdLabel),
6527
+ /** @deprecated Use `zernio.adaccounts.detachAdLabel` instead. */
6528
+ detachAdLabel: this._bind(detachAdLabel),
6457
6529
  /** @deprecated Use `zernio.adaccounts.listHighDemandPeriods` instead. */
6458
6530
  listHighDemandPeriods: this._bind(listHighDemandPeriods),
6459
6531
  /** @deprecated Use `zernio.adaccounts.createHighDemandPeriod` instead. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.939",
3
+ "version": "0.2.941",
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
@@ -19,10 +19,12 @@ import {
19
19
  addWhatsAppGroupParticipants,
20
20
  adjustConversions,
21
21
  appealSmsRegistration,
22
+ applyGoogleRecommendations,
22
23
  approveWhatsAppGroupJoinRequests,
23
24
  archiveLeadForm,
24
25
  assignGoogleBusinessLocation,
25
26
  attachAdGroupAssets,
27
+ attachAdLabel,
26
28
  attachCampaignAssets,
27
29
  attachNumberToSipTrunk,
28
30
  batchAdCatalogProducts,
@@ -67,6 +69,7 @@ import {
67
69
  createAdCatalogProductSet,
68
70
  createAdCreative,
69
71
  createAdInsightsReport,
72
+ createAdLabel,
70
73
  createAdNegativeKeywordList,
71
74
  createAdSet,
72
75
  createApiKey,
@@ -188,12 +191,14 @@ import {
188
191
  deleteWhatsappBusinessUsername,
189
192
  deleteWorkflow,
190
193
  deprecateWhatsAppFlow,
194
+ detachAdLabel,
191
195
  detachNumberFromSipTrunk,
192
196
  dialVoiceWebCall,
193
197
  disableSmsOnNumber,
194
198
  disableVoiceOnNumber,
195
199
  disableWhatsAppCalling,
196
200
  disableWhatsAppCallingLegacy,
201
+ dismissGoogleRecommendations,
197
202
  downloadTikTokVideo,
198
203
  duplicateAd,
199
204
  duplicateAdCampaign,
@@ -489,6 +494,7 @@ import {
489
494
  listGoogleBusinessLocations,
490
495
  listGoogleBusinessMedia,
491
496
  listGoogleBusinessPlaceActions,
497
+ listGoogleRecommendations,
492
498
  listHighDemandPeriods,
493
499
  listImessageAudience,
494
500
  listImessageAvailableNumbers,
@@ -582,6 +588,7 @@ import {
582
588
  removeAccountStructuredSnippet,
583
589
  removeAdGroupAssets,
584
590
  removeAdKeyword,
591
+ removeAdLabel,
585
592
  removeBookmark,
586
593
  removeBusinessAgentAllowlistEntry,
587
594
  removeCampaignAssets,
@@ -700,6 +707,7 @@ import {
700
707
  updateAdCreative,
701
708
  updateAdGroupAssets,
702
709
  updateAdKeyword,
710
+ updateAdLabel,
703
711
  updateAdNegativeKeywordList,
704
712
  updateAdSet,
705
713
  updateAdSetStatus,
@@ -1756,6 +1764,9 @@ export class Zernio {
1756
1764
  */
1757
1765
  adcampaigns = {
1758
1766
  listAds: this._bind(listAds),
1767
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
1768
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
1769
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
1759
1770
  listBidStrategies: this._bind(listBidStrategies),
1760
1771
  createBidStrategy: this._bind(createBidStrategy),
1761
1772
  updateBidStrategy: this._bind(updateBidStrategy),
@@ -1886,6 +1897,11 @@ export class Zernio {
1886
1897
  getIosFourteenCampaignLimits: this._bind(getIosFourteenCampaignLimits),
1887
1898
  listMetaBusinesses: this._bind(listMetaBusinesses),
1888
1899
  listAdLabels: this._bind(listAdLabels),
1900
+ createAdLabel: this._bind(createAdLabel),
1901
+ updateAdLabel: this._bind(updateAdLabel),
1902
+ removeAdLabel: this._bind(removeAdLabel),
1903
+ attachAdLabel: this._bind(attachAdLabel),
1904
+ detachAdLabel: this._bind(detachAdLabel),
1889
1905
  listHighDemandPeriods: this._bind(listHighDemandPeriods),
1890
1906
  createHighDemandPeriod: this._bind(createHighDemandPeriod),
1891
1907
  listValueRuleSets: this._bind(listValueRuleSets),
@@ -2141,6 +2157,12 @@ export class Zernio {
2141
2157
  ads = {
2142
2158
  /** @deprecated Use `zernio.adcampaigns.listAds` instead. */
2143
2159
  listAds: this._bind(listAds),
2160
+ /** @deprecated Use `zernio.adcampaigns.listGoogleRecommendations` instead. */
2161
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
2162
+ /** @deprecated Use `zernio.adcampaigns.applyGoogleRecommendations` instead. */
2163
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
2164
+ /** @deprecated Use `zernio.adcampaigns.dismissGoogleRecommendations` instead. */
2165
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
2144
2166
  /** @deprecated Use `zernio.adcampaigns.listBidStrategies` instead. */
2145
2167
  listBidStrategies: this._bind(listBidStrategies),
2146
2168
  /** @deprecated Use `zernio.adcampaigns.createBidStrategy` instead. */
@@ -2277,6 +2299,16 @@ export class Zernio {
2277
2299
  listMetaBusinesses: this._bind(listMetaBusinesses),
2278
2300
  /** @deprecated Use `zernio.adaccounts.listAdLabels` instead. */
2279
2301
  listAdLabels: this._bind(listAdLabels),
2302
+ /** @deprecated Use `zernio.adaccounts.createAdLabel` instead. */
2303
+ createAdLabel: this._bind(createAdLabel),
2304
+ /** @deprecated Use `zernio.adaccounts.updateAdLabel` instead. */
2305
+ updateAdLabel: this._bind(updateAdLabel),
2306
+ /** @deprecated Use `zernio.adaccounts.removeAdLabel` instead. */
2307
+ removeAdLabel: this._bind(removeAdLabel),
2308
+ /** @deprecated Use `zernio.adaccounts.attachAdLabel` instead. */
2309
+ attachAdLabel: this._bind(attachAdLabel),
2310
+ /** @deprecated Use `zernio.adaccounts.detachAdLabel` instead. */
2311
+ detachAdLabel: this._bind(detachAdLabel),
2280
2312
  /** @deprecated Use `zernio.adaccounts.listHighDemandPeriods` instead. */
2281
2313
  listHighDemandPeriods: this._bind(listHighDemandPeriods),
2282
2314
  /** @deprecated Use `zernio.adaccounts.createHighDemandPeriod` instead. */