@getlatedev/node 0.2.1717 → 0.2.1718

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.d.mts CHANGED
@@ -73541,17 +73541,29 @@ type GetEventsOverviewError = (ErrorResponse | {
73541
73541
  type GetEventsOverviewDailyData = {
73542
73542
  query?: {
73543
73543
  /**
73544
- * The days to cover, each ending today (UTC): `today`, the last 7 days or the last 30 days.
73544
+ * Only events of this name, such as `Purchase`.
73545
73545
  */
73546
- period?: 'today' | '7d' | '30d';
73546
+ eventName?: string;
73547
+ /**
73548
+ * The days to cover, each ending today (UTC): `today`, the last 7, 30 or 90 days.
73549
+ */
73550
+ period?: 'today' | '7d' | '30d' | '90d';
73551
+ /**
73552
+ * Only sends to this platform (`metaads`, `googleads`...), and only the events sent to it.
73553
+ */
73554
+ platform?: string;
73547
73555
  /**
73548
73556
  * The profile to read. Omit to cover every profile you can access, summed across them.
73549
73557
  */
73550
73558
  profileId?: string;
73559
+ /**
73560
+ * Comma-separated sources (`web`, `shopify`, `stripe`, `api`...). Only events from them.
73561
+ */
73562
+ sources?: string;
73551
73563
  };
73552
73564
  };
73553
73565
  type GetEventsOverviewDailyResponse = ({
73554
- period?: 'today' | '7d' | '30d';
73566
+ period?: 'today' | '7d' | '30d' | '90d';
73555
73567
  /**
73556
73568
  * The period's figures, shaped like the overview's `today`.
73557
73569
  */
@@ -73564,6 +73576,10 @@ type GetEventsOverviewDailyResponse = ({
73564
73576
  * Value of those events in `currency`. Events in other currencies are left out.
73565
73577
  */
73566
73578
  value?: number;
73579
+ /**
73580
+ * Value in `currency` of those events at least one platform accepted.
73581
+ */
73582
+ valueSent?: number;
73567
73583
  /**
73568
73584
  * The currency most of the period's events use; `null` when none carried a value.
73569
73585
  */
@@ -73602,7 +73618,50 @@ type GetEventsOverviewDailyResponse = ({
73602
73618
  * Those the platform accepted.
73603
73619
  */
73604
73620
  accepted?: number;
73621
+ /**
73622
+ * The day's stored events per event name.
73623
+ */
73624
+ byEvent?: {
73625
+ [key: string]: (number);
73626
+ };
73627
+ }>;
73628
+ /**
73629
+ * The event names stored in the period, most events first.
73630
+ */
73631
+ eventNames?: Array<(string)>;
73632
+ /**
73633
+ * Each platform events were sent to in the period, most sends first.
73634
+ */
73635
+ platforms?: Array<{
73636
+ /**
73637
+ * Such as `metaads` or `googleads`.
73638
+ */
73639
+ platform?: string;
73640
+ /**
73641
+ * Events first sent to it in the period.
73642
+ */
73643
+ sent?: number;
73644
+ /**
73645
+ * Those it accepted.
73646
+ */
73647
+ accepted?: number;
73648
+ /**
73649
+ * Every day of the period, oldest first.
73650
+ */
73651
+ days?: Array<{
73652
+ day?: string;
73653
+ sent?: number;
73654
+ accepted?: number;
73655
+ }>;
73605
73656
  }>;
73657
+ /**
73658
+ * For each platform sent to in the period, the website conversions of people who allowed ad cookies (bots left out) and how many its browser pixel missed, which Zernio sent from its server. Most missed first; `null` without a tracked website in scope.
73659
+ */
73660
+ pixelMissed?: Array<{
73661
+ platform?: string;
73662
+ conversions?: number;
73663
+ missed?: number;
73664
+ }> | null;
73606
73665
  });
73607
73666
  type GetEventsOverviewDailyError = (ErrorResponse | {
73608
73667
  error?: string;
package/dist/index.d.ts CHANGED
@@ -73541,17 +73541,29 @@ type GetEventsOverviewError = (ErrorResponse | {
73541
73541
  type GetEventsOverviewDailyData = {
73542
73542
  query?: {
73543
73543
  /**
73544
- * The days to cover, each ending today (UTC): `today`, the last 7 days or the last 30 days.
73544
+ * Only events of this name, such as `Purchase`.
73545
73545
  */
73546
- period?: 'today' | '7d' | '30d';
73546
+ eventName?: string;
73547
+ /**
73548
+ * The days to cover, each ending today (UTC): `today`, the last 7, 30 or 90 days.
73549
+ */
73550
+ period?: 'today' | '7d' | '30d' | '90d';
73551
+ /**
73552
+ * Only sends to this platform (`metaads`, `googleads`...), and only the events sent to it.
73553
+ */
73554
+ platform?: string;
73547
73555
  /**
73548
73556
  * The profile to read. Omit to cover every profile you can access, summed across them.
73549
73557
  */
73550
73558
  profileId?: string;
73559
+ /**
73560
+ * Comma-separated sources (`web`, `shopify`, `stripe`, `api`...). Only events from them.
73561
+ */
73562
+ sources?: string;
73551
73563
  };
73552
73564
  };
73553
73565
  type GetEventsOverviewDailyResponse = ({
73554
- period?: 'today' | '7d' | '30d';
73566
+ period?: 'today' | '7d' | '30d' | '90d';
73555
73567
  /**
73556
73568
  * The period's figures, shaped like the overview's `today`.
73557
73569
  */
@@ -73564,6 +73576,10 @@ type GetEventsOverviewDailyResponse = ({
73564
73576
  * Value of those events in `currency`. Events in other currencies are left out.
73565
73577
  */
73566
73578
  value?: number;
73579
+ /**
73580
+ * Value in `currency` of those events at least one platform accepted.
73581
+ */
73582
+ valueSent?: number;
73567
73583
  /**
73568
73584
  * The currency most of the period's events use; `null` when none carried a value.
73569
73585
  */
@@ -73602,7 +73618,50 @@ type GetEventsOverviewDailyResponse = ({
73602
73618
  * Those the platform accepted.
73603
73619
  */
73604
73620
  accepted?: number;
73621
+ /**
73622
+ * The day's stored events per event name.
73623
+ */
73624
+ byEvent?: {
73625
+ [key: string]: (number);
73626
+ };
73627
+ }>;
73628
+ /**
73629
+ * The event names stored in the period, most events first.
73630
+ */
73631
+ eventNames?: Array<(string)>;
73632
+ /**
73633
+ * Each platform events were sent to in the period, most sends first.
73634
+ */
73635
+ platforms?: Array<{
73636
+ /**
73637
+ * Such as `metaads` or `googleads`.
73638
+ */
73639
+ platform?: string;
73640
+ /**
73641
+ * Events first sent to it in the period.
73642
+ */
73643
+ sent?: number;
73644
+ /**
73645
+ * Those it accepted.
73646
+ */
73647
+ accepted?: number;
73648
+ /**
73649
+ * Every day of the period, oldest first.
73650
+ */
73651
+ days?: Array<{
73652
+ day?: string;
73653
+ sent?: number;
73654
+ accepted?: number;
73655
+ }>;
73605
73656
  }>;
73657
+ /**
73658
+ * For each platform sent to in the period, the website conversions of people who allowed ad cookies (bots left out) and how many its browser pixel missed, which Zernio sent from its server. Most missed first; `null` without a tracked website in scope.
73659
+ */
73660
+ pixelMissed?: Array<{
73661
+ platform?: string;
73662
+ conversions?: number;
73663
+ missed?: number;
73664
+ }> | null;
73606
73665
  });
73607
73666
  type GetEventsOverviewDailyError = (ErrorResponse | {
73608
73667
  error?: string;
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.1717",
39
+ version: "0.2.1718",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
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.1717",
8
+ version: "0.2.1718",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1717",
3
+ "version": "0.2.1718",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20298,9 +20298,9 @@ export const getEventsOverview = <ThrowOnError extends boolean = false>(options?
20298
20298
 
20299
20299
  /**
20300
20300
  * Get daily tracking figures
20301
- * The tracking figures of a period, day by day (UTC): events stored, events sent to the ad platforms and how many they accepted, plus the period's totals in the same shape as the overview's `today`.
20301
+ * The tracking figures of a period, day by day (UTC): events stored per event name, events sent to each ad platform and how many it accepted, the period's totals in the same shape as the overview's `today`, and how many website conversions each platform's browser pixel missed.
20302
20302
  *
20303
- * An event sent to a destination counts once, on the day of its first send, by its latest outcome. Without `profileId` it covers every profile you can access. Requires the Ads add-on.
20303
+ * An event sent to a destination counts once, on the day of its first send, by its latest outcome. Without `profileId` it covers every profile you can access. `eventName`, `sources` and `platform` narrow every figure. Requires the Ads add-on.
20304
20304
  *
20305
20305
  */
20306
20306
  export const getEventsOverviewDaily = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetEventsOverviewDailyData, ThrowOnError>) => {
@@ -75325,18 +75325,30 @@ export type GetEventsOverviewError = (ErrorResponse | {
75325
75325
  export type GetEventsOverviewDailyData = {
75326
75326
  query?: {
75327
75327
  /**
75328
- * The days to cover, each ending today (UTC): `today`, the last 7 days or the last 30 days.
75328
+ * Only events of this name, such as `Purchase`.
75329
75329
  */
75330
- period?: 'today' | '7d' | '30d';
75330
+ eventName?: string;
75331
+ /**
75332
+ * The days to cover, each ending today (UTC): `today`, the last 7, 30 or 90 days.
75333
+ */
75334
+ period?: 'today' | '7d' | '30d' | '90d';
75335
+ /**
75336
+ * Only sends to this platform (`metaads`, `googleads`...), and only the events sent to it.
75337
+ */
75338
+ platform?: string;
75331
75339
  /**
75332
75340
  * The profile to read. Omit to cover every profile you can access, summed across them.
75333
75341
  */
75334
75342
  profileId?: string;
75343
+ /**
75344
+ * Comma-separated sources (`web`, `shopify`, `stripe`, `api`...). Only events from them.
75345
+ */
75346
+ sources?: string;
75335
75347
  };
75336
75348
  };
75337
75349
 
75338
75350
  export type GetEventsOverviewDailyResponse = ({
75339
- period?: 'today' | '7d' | '30d';
75351
+ period?: 'today' | '7d' | '30d' | '90d';
75340
75352
  /**
75341
75353
  * The period's figures, shaped like the overview's `today`.
75342
75354
  */
@@ -75349,6 +75361,10 @@ export type GetEventsOverviewDailyResponse = ({
75349
75361
  * Value of those events in `currency`. Events in other currencies are left out.
75350
75362
  */
75351
75363
  value?: number;
75364
+ /**
75365
+ * Value in `currency` of those events at least one platform accepted.
75366
+ */
75367
+ valueSent?: number;
75352
75368
  /**
75353
75369
  * The currency most of the period's events use; `null` when none carried a value.
75354
75370
  */
@@ -75387,7 +75403,50 @@ export type GetEventsOverviewDailyResponse = ({
75387
75403
  * Those the platform accepted.
75388
75404
  */
75389
75405
  accepted?: number;
75406
+ /**
75407
+ * The day's stored events per event name.
75408
+ */
75409
+ byEvent?: {
75410
+ [key: string]: (number);
75411
+ };
75412
+ }>;
75413
+ /**
75414
+ * The event names stored in the period, most events first.
75415
+ */
75416
+ eventNames?: Array<(string)>;
75417
+ /**
75418
+ * Each platform events were sent to in the period, most sends first.
75419
+ */
75420
+ platforms?: Array<{
75421
+ /**
75422
+ * Such as `metaads` or `googleads`.
75423
+ */
75424
+ platform?: string;
75425
+ /**
75426
+ * Events first sent to it in the period.
75427
+ */
75428
+ sent?: number;
75429
+ /**
75430
+ * Those it accepted.
75431
+ */
75432
+ accepted?: number;
75433
+ /**
75434
+ * Every day of the period, oldest first.
75435
+ */
75436
+ days?: Array<{
75437
+ day?: string;
75438
+ sent?: number;
75439
+ accepted?: number;
75440
+ }>;
75390
75441
  }>;
75442
+ /**
75443
+ * For each platform sent to in the period, the website conversions of people who allowed ad cookies (bots left out) and how many its browser pixel missed, which Zernio sent from its server. Most missed first; `null` without a tracked website in scope.
75444
+ */
75445
+ pixelMissed?: Array<{
75446
+ platform?: string;
75447
+ conversions?: number;
75448
+ missed?: number;
75449
+ }> | null;
75391
75450
  });
75392
75451
 
75393
75452
  export type GetEventsOverviewDailyError = (ErrorResponse | {