@getlatedev/node 0.2.940 → 0.2.942

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.940",
39
+ version: "0.2.942",
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,
@@ -4129,6 +4147,24 @@ var removeAccountStructuredSnippet = (options) => {
4129
4147
  url: "/v1/ads/accounts/structured-snippets"
4130
4148
  });
4131
4149
  };
4150
+ var getAdAccountHierarchy = (options) => {
4151
+ return (options?.client ?? client).get({
4152
+ ...options,
4153
+ url: "/v1/ads/accounts/hierarchy"
4154
+ });
4155
+ };
4156
+ var inviteAdAccountToManager = (options) => {
4157
+ return (options?.client ?? client).post({
4158
+ ...options,
4159
+ url: "/v1/ads/accounts/manager-links"
4160
+ });
4161
+ };
4162
+ var updateAdAccountManagerLink = (options) => {
4163
+ return (options?.client ?? client).patch({
4164
+ ...options,
4165
+ url: "/v1/ads/accounts/manager-links"
4166
+ });
4167
+ };
4132
4168
  var getAdAccountFinance = (options) => {
4133
4169
  return (options?.client ?? client).get({
4134
4170
  ...options,
@@ -6012,6 +6048,9 @@ var Zernio = class _Zernio {
6012
6048
  */
6013
6049
  this.adcampaigns = {
6014
6050
  listAds: this._bind(listAds),
6051
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
6052
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
6053
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
6015
6054
  listBidStrategies: this._bind(listBidStrategies),
6016
6055
  createBidStrategy: this._bind(createBidStrategy),
6017
6056
  updateBidStrategy: this._bind(updateBidStrategy),
@@ -6168,6 +6207,9 @@ var Zernio = class _Zernio {
6168
6207
  addAccountStructuredSnippets: this._bind(addAccountStructuredSnippets),
6169
6208
  updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
6170
6209
  removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
6210
+ getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
6211
+ inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
6212
+ updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
6171
6213
  getAdAccountFinance: this._bind(getAdAccountFinance),
6172
6214
  createAdAccount: this._bind(createAdAccount),
6173
6215
  listAdAccounts: this._bind(listAdAccounts),
@@ -6384,6 +6426,12 @@ var Zernio = class _Zernio {
6384
6426
  this.ads = {
6385
6427
  /** @deprecated Use `zernio.adcampaigns.listAds` instead. */
6386
6428
  listAds: this._bind(listAds),
6429
+ /** @deprecated Use `zernio.adcampaigns.listGoogleRecommendations` instead. */
6430
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
6431
+ /** @deprecated Use `zernio.adcampaigns.applyGoogleRecommendations` instead. */
6432
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
6433
+ /** @deprecated Use `zernio.adcampaigns.dismissGoogleRecommendations` instead. */
6434
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
6387
6435
  /** @deprecated Use `zernio.adcampaigns.listBidStrategies` instead. */
6388
6436
  listBidStrategies: this._bind(listBidStrategies),
6389
6437
  /** @deprecated Use `zernio.adcampaigns.createBidStrategy` instead. */
@@ -6580,6 +6628,12 @@ var Zernio = class _Zernio {
6580
6628
  updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
6581
6629
  /** @deprecated Use `zernio.adaccounts.removeAccountStructuredSnippet` instead. */
6582
6630
  removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
6631
+ /** @deprecated Use `zernio.adaccounts.getAdAccountHierarchy` instead. */
6632
+ getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
6633
+ /** @deprecated Use `zernio.adaccounts.inviteAdAccountToManager` instead. */
6634
+ inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
6635
+ /** @deprecated Use `zernio.adaccounts.updateAdAccountManagerLink` instead. */
6636
+ updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
6583
6637
  /** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
6584
6638
  getAdAccountFinance: this._bind(getAdAccountFinance),
6585
6639
  /** @deprecated Use `zernio.adaccounts.createAdAccount` 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.940",
8
+ version: "0.2.942",
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,
@@ -4098,6 +4116,24 @@ var removeAccountStructuredSnippet = (options) => {
4098
4116
  url: "/v1/ads/accounts/structured-snippets"
4099
4117
  });
4100
4118
  };
4119
+ var getAdAccountHierarchy = (options) => {
4120
+ return (options?.client ?? client).get({
4121
+ ...options,
4122
+ url: "/v1/ads/accounts/hierarchy"
4123
+ });
4124
+ };
4125
+ var inviteAdAccountToManager = (options) => {
4126
+ return (options?.client ?? client).post({
4127
+ ...options,
4128
+ url: "/v1/ads/accounts/manager-links"
4129
+ });
4130
+ };
4131
+ var updateAdAccountManagerLink = (options) => {
4132
+ return (options?.client ?? client).patch({
4133
+ ...options,
4134
+ url: "/v1/ads/accounts/manager-links"
4135
+ });
4136
+ };
4101
4137
  var getAdAccountFinance = (options) => {
4102
4138
  return (options?.client ?? client).get({
4103
4139
  ...options,
@@ -5981,6 +6017,9 @@ var Zernio = class _Zernio {
5981
6017
  */
5982
6018
  this.adcampaigns = {
5983
6019
  listAds: this._bind(listAds),
6020
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
6021
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
6022
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
5984
6023
  listBidStrategies: this._bind(listBidStrategies),
5985
6024
  createBidStrategy: this._bind(createBidStrategy),
5986
6025
  updateBidStrategy: this._bind(updateBidStrategy),
@@ -6137,6 +6176,9 @@ var Zernio = class _Zernio {
6137
6176
  addAccountStructuredSnippets: this._bind(addAccountStructuredSnippets),
6138
6177
  updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
6139
6178
  removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
6179
+ getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
6180
+ inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
6181
+ updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
6140
6182
  getAdAccountFinance: this._bind(getAdAccountFinance),
6141
6183
  createAdAccount: this._bind(createAdAccount),
6142
6184
  listAdAccounts: this._bind(listAdAccounts),
@@ -6353,6 +6395,12 @@ var Zernio = class _Zernio {
6353
6395
  this.ads = {
6354
6396
  /** @deprecated Use `zernio.adcampaigns.listAds` instead. */
6355
6397
  listAds: this._bind(listAds),
6398
+ /** @deprecated Use `zernio.adcampaigns.listGoogleRecommendations` instead. */
6399
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
6400
+ /** @deprecated Use `zernio.adcampaigns.applyGoogleRecommendations` instead. */
6401
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
6402
+ /** @deprecated Use `zernio.adcampaigns.dismissGoogleRecommendations` instead. */
6403
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
6356
6404
  /** @deprecated Use `zernio.adcampaigns.listBidStrategies` instead. */
6357
6405
  listBidStrategies: this._bind(listBidStrategies),
6358
6406
  /** @deprecated Use `zernio.adcampaigns.createBidStrategy` instead. */
@@ -6549,6 +6597,12 @@ var Zernio = class _Zernio {
6549
6597
  updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
6550
6598
  /** @deprecated Use `zernio.adaccounts.removeAccountStructuredSnippet` instead. */
6551
6599
  removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
6600
+ /** @deprecated Use `zernio.adaccounts.getAdAccountHierarchy` instead. */
6601
+ getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
6602
+ /** @deprecated Use `zernio.adaccounts.inviteAdAccountToManager` instead. */
6603
+ inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
6604
+ /** @deprecated Use `zernio.adaccounts.updateAdAccountManagerLink` instead. */
6605
+ updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
6552
6606
  /** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
6553
6607
  getAdAccountFinance: this._bind(getAdAccountFinance),
6554
6608
  /** @deprecated Use `zernio.adaccounts.createAdAccount` instead. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.940",
3
+ "version": "0.2.942",
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,6 +19,7 @@ import {
19
19
  addWhatsAppGroupParticipants,
20
20
  adjustConversions,
21
21
  appealSmsRegistration,
22
+ applyGoogleRecommendations,
22
23
  approveWhatsAppGroupJoinRequests,
23
24
  archiveLeadForm,
24
25
  assignGoogleBusinessLocation,
@@ -197,6 +198,7 @@ import {
197
198
  disableVoiceOnNumber,
198
199
  disableWhatsAppCalling,
199
200
  disableWhatsAppCallingLegacy,
201
+ dismissGoogleRecommendations,
200
202
  downloadTikTokVideo,
201
203
  duplicateAd,
202
204
  duplicateAdCampaign,
@@ -223,6 +225,7 @@ import {
223
225
  getAccountPosts,
224
226
  getAd,
225
227
  getAdAccountFinance,
228
+ getAdAccountHierarchy,
226
229
  getAdAnalytics,
227
230
  getAdAudience,
228
231
  getAdCampaignDetails,
@@ -423,6 +426,7 @@ import {
423
426
  hideInboxComment,
424
427
  initiateTelegramConnect,
425
428
  initiateWhatsAppCall,
429
+ inviteAdAccountToManager,
426
430
  likeInboxComment,
427
431
  likePost,
428
432
  linkWhatsAppCatalog,
@@ -492,6 +496,7 @@ import {
492
496
  listGoogleBusinessLocations,
493
497
  listGoogleBusinessMedia,
494
498
  listGoogleBusinessPlaceActions,
499
+ listGoogleRecommendations,
495
500
  listHighDemandPeriods,
496
501
  listImessageAudience,
497
502
  listImessageAvailableNumbers,
@@ -696,6 +701,7 @@ import {
696
701
  updateAccountStructuredSnippets,
697
702
  updateAd,
698
703
  updateAdAccount,
704
+ updateAdAccountManagerLink,
699
705
  updateAdAudience,
700
706
  updateAdCampaign,
701
707
  updateAdCampaignStatus,
@@ -1761,6 +1767,9 @@ export class Zernio {
1761
1767
  */
1762
1768
  adcampaigns = {
1763
1769
  listAds: this._bind(listAds),
1770
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
1771
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
1772
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
1764
1773
  listBidStrategies: this._bind(listBidStrategies),
1765
1774
  createBidStrategy: this._bind(createBidStrategy),
1766
1775
  updateBidStrategy: this._bind(updateBidStrategy),
@@ -1921,6 +1930,9 @@ export class Zernio {
1921
1930
  addAccountStructuredSnippets: this._bind(addAccountStructuredSnippets),
1922
1931
  updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
1923
1932
  removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
1933
+ getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
1934
+ inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
1935
+ updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
1924
1936
  getAdAccountFinance: this._bind(getAdAccountFinance),
1925
1937
  createAdAccount: this._bind(createAdAccount),
1926
1938
  listAdAccounts: this._bind(listAdAccounts),
@@ -2151,6 +2163,12 @@ export class Zernio {
2151
2163
  ads = {
2152
2164
  /** @deprecated Use `zernio.adcampaigns.listAds` instead. */
2153
2165
  listAds: this._bind(listAds),
2166
+ /** @deprecated Use `zernio.adcampaigns.listGoogleRecommendations` instead. */
2167
+ listGoogleRecommendations: this._bind(listGoogleRecommendations),
2168
+ /** @deprecated Use `zernio.adcampaigns.applyGoogleRecommendations` instead. */
2169
+ applyGoogleRecommendations: this._bind(applyGoogleRecommendations),
2170
+ /** @deprecated Use `zernio.adcampaigns.dismissGoogleRecommendations` instead. */
2171
+ dismissGoogleRecommendations: this._bind(dismissGoogleRecommendations),
2154
2172
  /** @deprecated Use `zernio.adcampaigns.listBidStrategies` instead. */
2155
2173
  listBidStrategies: this._bind(listBidStrategies),
2156
2174
  /** @deprecated Use `zernio.adcampaigns.createBidStrategy` instead. */
@@ -2347,6 +2365,12 @@ export class Zernio {
2347
2365
  updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
2348
2366
  /** @deprecated Use `zernio.adaccounts.removeAccountStructuredSnippet` instead. */
2349
2367
  removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
2368
+ /** @deprecated Use `zernio.adaccounts.getAdAccountHierarchy` instead. */
2369
+ getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
2370
+ /** @deprecated Use `zernio.adaccounts.inviteAdAccountToManager` instead. */
2371
+ inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
2372
+ /** @deprecated Use `zernio.adaccounts.updateAdAccountManagerLink` instead. */
2373
+ updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
2350
2374
  /** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
2351
2375
  getAdAccountFinance: this._bind(getAdAccountFinance),
2352
2376
  /** @deprecated Use `zernio.adaccounts.createAdAccount` instead. */