@getlatedev/node 0.2.1347 → 0.2.1349

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.1347",
39
+ version: "0.2.1349",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -4914,6 +4914,12 @@ var getAdAccountFinance = (options) => {
4914
4914
  url: "/v1/ads/accounts/finance"
4915
4915
  });
4916
4916
  };
4917
+ var getAdAccountHealth = (options) => {
4918
+ return (options?.client ?? client).get({
4919
+ ...options,
4920
+ url: "/v1/ads/accounts/health"
4921
+ });
4922
+ };
4917
4923
  var getAdAccountLiveEntities = (options) => {
4918
4924
  return (options?.client ?? client).get({
4919
4925
  ...options,
@@ -5010,6 +5016,12 @@ var listLeads = (options) => {
5010
5016
  url: "/v1/ads/leads"
5011
5017
  });
5012
5018
  };
5019
+ var countLeads = (options) => {
5020
+ return (options?.client ?? client).get({
5021
+ ...options,
5022
+ url: "/v1/ads/leads/counts"
5023
+ });
5024
+ };
5013
5025
  var updateLead = (options) => {
5014
5026
  return (options?.client ?? client).patch({
5015
5027
  ...options,
@@ -7766,6 +7778,7 @@ var Zernio = class _Zernio {
7766
7778
  assignAdAccountUser: this._bind(assignAdAccountUser),
7767
7779
  removeAdAccountUser: this._bind(removeAdAccountUser),
7768
7780
  getAdAccountFinance: this._bind(getAdAccountFinance),
7781
+ getAdAccountHealth: this._bind(getAdAccountHealth),
7769
7782
  getAdAccountLiveEntities: this._bind(getAdAccountLiveEntities),
7770
7783
  createAdAccount: this._bind(createAdAccount),
7771
7784
  listAdAccounts: this._bind(listAdAccounts),
@@ -7790,6 +7803,7 @@ var Zernio = class _Zernio {
7790
7803
  */
7791
7804
  this.leadgen = {
7792
7805
  listLeads: this._bind(listLeads),
7806
+ countLeads: this._bind(countLeads),
7793
7807
  updateLead: this._bind(updateLead),
7794
7808
  listLeadForms: this._bind(listLeadForms),
7795
7809
  createLeadForm: this._bind(createLeadForm),
@@ -8335,6 +8349,8 @@ var Zernio = class _Zernio {
8335
8349
  removeAdAccountUser: this._bind(removeAdAccountUser),
8336
8350
  /** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
8337
8351
  getAdAccountFinance: this._bind(getAdAccountFinance),
8352
+ /** @deprecated Use `zernio.adaccounts.getAdAccountHealth` instead. */
8353
+ getAdAccountHealth: this._bind(getAdAccountHealth),
8338
8354
  /** @deprecated Use `zernio.adaccounts.getAdAccountLiveEntities` instead. */
8339
8355
  getAdAccountLiveEntities: this._bind(getAdAccountLiveEntities),
8340
8356
  /** @deprecated Use `zernio.adaccounts.createAdAccount` instead. */
@@ -8505,6 +8521,8 @@ var Zernio = class _Zernio {
8505
8521
  reserveRfPrediction: this._bind(reserveRfPrediction),
8506
8522
  /** @deprecated Use `zernio.leadgen.listLeads` instead. */
8507
8523
  listLeads: this._bind(listLeads),
8524
+ /** @deprecated Use `zernio.leadgen.countLeads` instead. */
8525
+ countLeads: this._bind(countLeads),
8508
8526
  /** @deprecated Use `zernio.leadgen.updateLead` instead. */
8509
8527
  updateLead: this._bind(updateLead),
8510
8528
  /** @deprecated Use `zernio.leadgen.listLeadForms` 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.1347",
8
+ version: "0.2.1349",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -4883,6 +4883,12 @@ var getAdAccountFinance = (options) => {
4883
4883
  url: "/v1/ads/accounts/finance"
4884
4884
  });
4885
4885
  };
4886
+ var getAdAccountHealth = (options) => {
4887
+ return (options?.client ?? client).get({
4888
+ ...options,
4889
+ url: "/v1/ads/accounts/health"
4890
+ });
4891
+ };
4886
4892
  var getAdAccountLiveEntities = (options) => {
4887
4893
  return (options?.client ?? client).get({
4888
4894
  ...options,
@@ -4979,6 +4985,12 @@ var listLeads = (options) => {
4979
4985
  url: "/v1/ads/leads"
4980
4986
  });
4981
4987
  };
4988
+ var countLeads = (options) => {
4989
+ return (options?.client ?? client).get({
4990
+ ...options,
4991
+ url: "/v1/ads/leads/counts"
4992
+ });
4993
+ };
4982
4994
  var updateLead = (options) => {
4983
4995
  return (options?.client ?? client).patch({
4984
4996
  ...options,
@@ -7735,6 +7747,7 @@ var Zernio = class _Zernio {
7735
7747
  assignAdAccountUser: this._bind(assignAdAccountUser),
7736
7748
  removeAdAccountUser: this._bind(removeAdAccountUser),
7737
7749
  getAdAccountFinance: this._bind(getAdAccountFinance),
7750
+ getAdAccountHealth: this._bind(getAdAccountHealth),
7738
7751
  getAdAccountLiveEntities: this._bind(getAdAccountLiveEntities),
7739
7752
  createAdAccount: this._bind(createAdAccount),
7740
7753
  listAdAccounts: this._bind(listAdAccounts),
@@ -7759,6 +7772,7 @@ var Zernio = class _Zernio {
7759
7772
  */
7760
7773
  this.leadgen = {
7761
7774
  listLeads: this._bind(listLeads),
7775
+ countLeads: this._bind(countLeads),
7762
7776
  updateLead: this._bind(updateLead),
7763
7777
  listLeadForms: this._bind(listLeadForms),
7764
7778
  createLeadForm: this._bind(createLeadForm),
@@ -8304,6 +8318,8 @@ var Zernio = class _Zernio {
8304
8318
  removeAdAccountUser: this._bind(removeAdAccountUser),
8305
8319
  /** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
8306
8320
  getAdAccountFinance: this._bind(getAdAccountFinance),
8321
+ /** @deprecated Use `zernio.adaccounts.getAdAccountHealth` instead. */
8322
+ getAdAccountHealth: this._bind(getAdAccountHealth),
8307
8323
  /** @deprecated Use `zernio.adaccounts.getAdAccountLiveEntities` instead. */
8308
8324
  getAdAccountLiveEntities: this._bind(getAdAccountLiveEntities),
8309
8325
  /** @deprecated Use `zernio.adaccounts.createAdAccount` instead. */
@@ -8474,6 +8490,8 @@ var Zernio = class _Zernio {
8474
8490
  reserveRfPrediction: this._bind(reserveRfPrediction),
8475
8491
  /** @deprecated Use `zernio.leadgen.listLeads` instead. */
8476
8492
  listLeads: this._bind(listLeads),
8493
+ /** @deprecated Use `zernio.leadgen.countLeads` instead. */
8494
+ countLeads: this._bind(countLeads),
8477
8495
  /** @deprecated Use `zernio.leadgen.updateLead` instead. */
8478
8496
  updateLead: this._bind(updateLead),
8479
8497
  /** @deprecated Use `zernio.leadgen.listLeadForms` instead. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1347",
3
+ "version": "0.2.1349",
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
@@ -80,6 +80,7 @@ import {
80
80
  connectWhatsAppEmbeddedSignup,
81
81
  connectWhopAdsCredentials,
82
82
  connectWordPressWithApplicationPassword,
83
+ countLeads,
83
84
  createAccountGroup,
84
85
  createAdAccount,
85
86
  createAdAudience,
@@ -294,6 +295,7 @@ import {
294
295
  getAd,
295
296
  getAdAccountBilling,
296
297
  getAdAccountFinance,
298
+ getAdAccountHealth,
297
299
  getAdAccountHierarchy,
298
300
  getAdAccountLiveEntities,
299
301
  getAdAnalytics,
@@ -2338,6 +2340,7 @@ export class Zernio {
2338
2340
  assignAdAccountUser: this._bind(assignAdAccountUser),
2339
2341
  removeAdAccountUser: this._bind(removeAdAccountUser),
2340
2342
  getAdAccountFinance: this._bind(getAdAccountFinance),
2343
+ getAdAccountHealth: this._bind(getAdAccountHealth),
2341
2344
  getAdAccountLiveEntities: this._bind(getAdAccountLiveEntities),
2342
2345
  createAdAccount: this._bind(createAdAccount),
2343
2346
  listAdAccounts: this._bind(listAdAccounts),
@@ -2364,6 +2367,7 @@ export class Zernio {
2364
2367
  */
2365
2368
  leadgen = {
2366
2369
  listLeads: this._bind(listLeads),
2370
+ countLeads: this._bind(countLeads),
2367
2371
  updateLead: this._bind(updateLead),
2368
2372
  listLeadForms: this._bind(listLeadForms),
2369
2373
  createLeadForm: this._bind(createLeadForm),
@@ -2923,6 +2927,8 @@ export class Zernio {
2923
2927
  removeAdAccountUser: this._bind(removeAdAccountUser),
2924
2928
  /** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
2925
2929
  getAdAccountFinance: this._bind(getAdAccountFinance),
2930
+ /** @deprecated Use `zernio.adaccounts.getAdAccountHealth` instead. */
2931
+ getAdAccountHealth: this._bind(getAdAccountHealth),
2926
2932
  /** @deprecated Use `zernio.adaccounts.getAdAccountLiveEntities` instead. */
2927
2933
  getAdAccountLiveEntities: this._bind(getAdAccountLiveEntities),
2928
2934
  /** @deprecated Use `zernio.adaccounts.createAdAccount` instead. */
@@ -3093,6 +3099,8 @@ export class Zernio {
3093
3099
  reserveRfPrediction: this._bind(reserveRfPrediction),
3094
3100
  /** @deprecated Use `zernio.leadgen.listLeads` instead. */
3095
3101
  listLeads: this._bind(listLeads),
3102
+ /** @deprecated Use `zernio.leadgen.countLeads` instead. */
3103
+ countLeads: this._bind(countLeads),
3096
3104
  /** @deprecated Use `zernio.leadgen.updateLead` instead. */
3097
3105
  updateLead: this._bind(updateLead),
3098
3106
  /** @deprecated Use `zernio.leadgen.listLeadForms` instead. */