@getlatedev/node 0.2.1358 → 0.2.1360

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.1358",
39
+ version: "0.2.1360",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -4470,6 +4470,12 @@ var deleteAdSet = (options) => {
4470
4470
  url: "/v1/ads/ad-sets/{adSetId}"
4471
4471
  });
4472
4472
  };
4473
+ var getAdSetTargeting = (options) => {
4474
+ return (options?.client ?? client).get({
4475
+ ...options,
4476
+ url: "/v1/ads/ad-sets/{adSetId}/targeting"
4477
+ });
4478
+ };
4473
4479
  var updateAdSetStatus = (options) => {
4474
4480
  return (options?.client ?? client).put({
4475
4481
  ...options,
@@ -5574,6 +5580,12 @@ var removeCustomConversionGoal = (options) => {
5574
5580
  url: "/v1/ads/conversions/custom-goals/{goalId}"
5575
5581
  });
5576
5582
  };
5583
+ var listEvents = (options) => {
5584
+ return (options?.client ?? client).get({
5585
+ ...options,
5586
+ url: "/v1/events"
5587
+ });
5588
+ };
5577
5589
  var sendEvents = (options) => {
5578
5590
  return (options?.client ?? client).post({
5579
5591
  ...options,
@@ -7840,6 +7852,7 @@ var Zernio = class _Zernio {
7840
7852
  getAdSetDetails: this._bind(getAdSetDetails),
7841
7853
  updateAdSet: this._bind(updateAdSet),
7842
7854
  deleteAdSet: this._bind(deleteAdSet),
7855
+ getAdSetTargeting: this._bind(getAdSetTargeting),
7843
7856
  updateAdSetStatus: this._bind(updateAdSetStatus),
7844
7857
  getAdTree: this._bind(getAdTree),
7845
7858
  getAdsTimeline: this._bind(getAdsTimeline),
@@ -8122,6 +8135,7 @@ var Zernio = class _Zernio {
8122
8135
  createCustomConversionGoal: this._bind(createCustomConversionGoal),
8123
8136
  updateCustomConversionGoal: this._bind(updateCustomConversionGoal),
8124
8137
  removeCustomConversionGoal: this._bind(removeCustomConversionGoal),
8138
+ listEvents: this._bind(listEvents),
8125
8139
  sendEvents: this._bind(sendEvents),
8126
8140
  listEventDestinations: this._bind(listEventDestinations),
8127
8141
  createEventDestination: this._bind(createEventDestination),
@@ -8404,6 +8418,8 @@ var Zernio = class _Zernio {
8404
8418
  updateAdSet: this._bind(updateAdSet),
8405
8419
  /** @deprecated Use `zernio.adcampaigns.deleteAdSet` instead. */
8406
8420
  deleteAdSet: this._bind(deleteAdSet),
8421
+ /** @deprecated Use `zernio.adcampaigns.getAdSetTargeting` instead. */
8422
+ getAdSetTargeting: this._bind(getAdSetTargeting),
8407
8423
  /** @deprecated Use `zernio.adcampaigns.updateAdSetStatus` instead. */
8408
8424
  updateAdSetStatus: this._bind(updateAdSetStatus),
8409
8425
  /** @deprecated Use `zernio.adcampaigns.getAdTree` instead. */
@@ -8722,6 +8738,8 @@ var Zernio = class _Zernio {
8722
8738
  updateCustomConversionGoal: this._bind(updateCustomConversionGoal),
8723
8739
  /** @deprecated Use `zernio.conversions.removeCustomConversionGoal` instead. */
8724
8740
  removeCustomConversionGoal: this._bind(removeCustomConversionGoal),
8741
+ /** @deprecated Use `zernio.conversions.listEvents` instead. */
8742
+ listEvents: this._bind(listEvents),
8725
8743
  /** @deprecated Use `zernio.conversions.sendEvents` instead. */
8726
8744
  sendEvents: this._bind(sendEvents),
8727
8745
  /** @deprecated Use `zernio.conversions.listEventDestinations` 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.1358",
8
+ version: "0.2.1360",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -4439,6 +4439,12 @@ var deleteAdSet = (options) => {
4439
4439
  url: "/v1/ads/ad-sets/{adSetId}"
4440
4440
  });
4441
4441
  };
4442
+ var getAdSetTargeting = (options) => {
4443
+ return (options?.client ?? client).get({
4444
+ ...options,
4445
+ url: "/v1/ads/ad-sets/{adSetId}/targeting"
4446
+ });
4447
+ };
4442
4448
  var updateAdSetStatus = (options) => {
4443
4449
  return (options?.client ?? client).put({
4444
4450
  ...options,
@@ -5543,6 +5549,12 @@ var removeCustomConversionGoal = (options) => {
5543
5549
  url: "/v1/ads/conversions/custom-goals/{goalId}"
5544
5550
  });
5545
5551
  };
5552
+ var listEvents = (options) => {
5553
+ return (options?.client ?? client).get({
5554
+ ...options,
5555
+ url: "/v1/events"
5556
+ });
5557
+ };
5546
5558
  var sendEvents = (options) => {
5547
5559
  return (options?.client ?? client).post({
5548
5560
  ...options,
@@ -7809,6 +7821,7 @@ var Zernio = class _Zernio {
7809
7821
  getAdSetDetails: this._bind(getAdSetDetails),
7810
7822
  updateAdSet: this._bind(updateAdSet),
7811
7823
  deleteAdSet: this._bind(deleteAdSet),
7824
+ getAdSetTargeting: this._bind(getAdSetTargeting),
7812
7825
  updateAdSetStatus: this._bind(updateAdSetStatus),
7813
7826
  getAdTree: this._bind(getAdTree),
7814
7827
  getAdsTimeline: this._bind(getAdsTimeline),
@@ -8091,6 +8104,7 @@ var Zernio = class _Zernio {
8091
8104
  createCustomConversionGoal: this._bind(createCustomConversionGoal),
8092
8105
  updateCustomConversionGoal: this._bind(updateCustomConversionGoal),
8093
8106
  removeCustomConversionGoal: this._bind(removeCustomConversionGoal),
8107
+ listEvents: this._bind(listEvents),
8094
8108
  sendEvents: this._bind(sendEvents),
8095
8109
  listEventDestinations: this._bind(listEventDestinations),
8096
8110
  createEventDestination: this._bind(createEventDestination),
@@ -8373,6 +8387,8 @@ var Zernio = class _Zernio {
8373
8387
  updateAdSet: this._bind(updateAdSet),
8374
8388
  /** @deprecated Use `zernio.adcampaigns.deleteAdSet` instead. */
8375
8389
  deleteAdSet: this._bind(deleteAdSet),
8390
+ /** @deprecated Use `zernio.adcampaigns.getAdSetTargeting` instead. */
8391
+ getAdSetTargeting: this._bind(getAdSetTargeting),
8376
8392
  /** @deprecated Use `zernio.adcampaigns.updateAdSetStatus` instead. */
8377
8393
  updateAdSetStatus: this._bind(updateAdSetStatus),
8378
8394
  /** @deprecated Use `zernio.adcampaigns.getAdTree` instead. */
@@ -8691,6 +8707,8 @@ var Zernio = class _Zernio {
8691
8707
  updateCustomConversionGoal: this._bind(updateCustomConversionGoal),
8692
8708
  /** @deprecated Use `zernio.conversions.removeCustomConversionGoal` instead. */
8693
8709
  removeCustomConversionGoal: this._bind(removeCustomConversionGoal),
8710
+ /** @deprecated Use `zernio.conversions.listEvents` instead. */
8711
+ listEvents: this._bind(listEvents),
8694
8712
  /** @deprecated Use `zernio.conversions.sendEvents` instead. */
8695
8713
  sendEvents: this._bind(sendEvents),
8696
8714
  /** @deprecated Use `zernio.conversions.listEventDestinations` instead. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1358",
3
+ "version": "0.2.1360",
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
@@ -322,6 +322,7 @@ import {
322
322
  getAdReview,
323
323
  getAdRule,
324
324
  getAdSetDetails,
325
+ getAdSetTargeting,
325
326
  getAdTrackingTags,
326
327
  getAdTree,
327
328
  getAdVideoStatus,
@@ -660,6 +661,7 @@ import {
660
661
  listEmailMessages,
661
662
  listEmailThreads,
662
663
  listEventDestinations,
664
+ listEvents,
663
665
  listFacebookPages,
664
666
  listFacebookTaggedPosts,
665
667
  listFacebookVisitorPosts,
@@ -2240,6 +2242,7 @@ export class Zernio {
2240
2242
  getAdSetDetails: this._bind(getAdSetDetails),
2241
2243
  updateAdSet: this._bind(updateAdSet),
2242
2244
  deleteAdSet: this._bind(deleteAdSet),
2245
+ getAdSetTargeting: this._bind(getAdSetTargeting),
2243
2246
  updateAdSetStatus: this._bind(updateAdSetStatus),
2244
2247
  getAdTree: this._bind(getAdTree),
2245
2248
  getAdsTimeline: this._bind(getAdsTimeline),
@@ -2534,6 +2537,7 @@ export class Zernio {
2534
2537
  createCustomConversionGoal: this._bind(createCustomConversionGoal),
2535
2538
  updateCustomConversionGoal: this._bind(updateCustomConversionGoal),
2536
2539
  removeCustomConversionGoal: this._bind(removeCustomConversionGoal),
2540
+ listEvents: this._bind(listEvents),
2537
2541
  sendEvents: this._bind(sendEvents),
2538
2542
  listEventDestinations: this._bind(listEventDestinations),
2539
2543
  createEventDestination: this._bind(createEventDestination),
@@ -2825,6 +2829,8 @@ export class Zernio {
2825
2829
  updateAdSet: this._bind(updateAdSet),
2826
2830
  /** @deprecated Use `zernio.adcampaigns.deleteAdSet` instead. */
2827
2831
  deleteAdSet: this._bind(deleteAdSet),
2832
+ /** @deprecated Use `zernio.adcampaigns.getAdSetTargeting` instead. */
2833
+ getAdSetTargeting: this._bind(getAdSetTargeting),
2828
2834
  /** @deprecated Use `zernio.adcampaigns.updateAdSetStatus` instead. */
2829
2835
  updateAdSetStatus: this._bind(updateAdSetStatus),
2830
2836
  /** @deprecated Use `zernio.adcampaigns.getAdTree` instead. */
@@ -3143,6 +3149,8 @@ export class Zernio {
3143
3149
  updateCustomConversionGoal: this._bind(updateCustomConversionGoal),
3144
3150
  /** @deprecated Use `zernio.conversions.removeCustomConversionGoal` instead. */
3145
3151
  removeCustomConversionGoal: this._bind(removeCustomConversionGoal),
3152
+ /** @deprecated Use `zernio.conversions.listEvents` instead. */
3153
+ listEvents: this._bind(listEvents),
3146
3154
  /** @deprecated Use `zernio.conversions.sendEvents` instead. */
3147
3155
  sendEvents: this._bind(sendEvents),
3148
3156
  /** @deprecated Use `zernio.conversions.listEventDestinations` instead. */