@getlatedev/node 0.2.1717 → 0.2.1719
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 +66 -3
- package/dist/index.d.ts +66 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -2
- package/src/generated/types.gen.ts +66 -3
package/dist/index.d.mts
CHANGED
|
@@ -73541,17 +73541,29 @@ type GetEventsOverviewError = (ErrorResponse | {
|
|
|
73541
73541
|
type GetEventsOverviewDailyData = {
|
|
73542
73542
|
query?: {
|
|
73543
73543
|
/**
|
|
73544
|
-
*
|
|
73544
|
+
* Only events of this name, such as `Purchase`.
|
|
73545
73545
|
*/
|
|
73546
|
-
|
|
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
|
*/
|
|
@@ -73584,6 +73600,10 @@ type GetEventsOverviewDailyResponse = ({
|
|
|
73584
73600
|
* The period's events that count as campaign results, the ones looked up for a campaign.
|
|
73585
73601
|
*/
|
|
73586
73602
|
counted?: number;
|
|
73603
|
+
/**
|
|
73604
|
+
* Of the counted events, those that came from an ad: they named a campaign or carried a UTM campaign, a Google click id or a Zernio ad id (`zrn`), their own or the website visit's behind them. `matched` over `fromAds` is the share tied to a campaign.
|
|
73605
|
+
*/
|
|
73606
|
+
fromAds?: number;
|
|
73587
73607
|
};
|
|
73588
73608
|
/**
|
|
73589
73609
|
* Every day of the period, oldest first, zero where nothing happened.
|
|
@@ -73602,7 +73622,50 @@ type GetEventsOverviewDailyResponse = ({
|
|
|
73602
73622
|
* Those the platform accepted.
|
|
73603
73623
|
*/
|
|
73604
73624
|
accepted?: number;
|
|
73625
|
+
/**
|
|
73626
|
+
* The day's stored events per event name.
|
|
73627
|
+
*/
|
|
73628
|
+
byEvent?: {
|
|
73629
|
+
[key: string]: (number);
|
|
73630
|
+
};
|
|
73631
|
+
}>;
|
|
73632
|
+
/**
|
|
73633
|
+
* The event names stored in the period, most events first.
|
|
73634
|
+
*/
|
|
73635
|
+
eventNames?: Array<(string)>;
|
|
73636
|
+
/**
|
|
73637
|
+
* Each platform events were sent to in the period, most sends first.
|
|
73638
|
+
*/
|
|
73639
|
+
platforms?: Array<{
|
|
73640
|
+
/**
|
|
73641
|
+
* Such as `metaads` or `googleads`.
|
|
73642
|
+
*/
|
|
73643
|
+
platform?: string;
|
|
73644
|
+
/**
|
|
73645
|
+
* Events first sent to it in the period.
|
|
73646
|
+
*/
|
|
73647
|
+
sent?: number;
|
|
73648
|
+
/**
|
|
73649
|
+
* Those it accepted.
|
|
73650
|
+
*/
|
|
73651
|
+
accepted?: number;
|
|
73652
|
+
/**
|
|
73653
|
+
* Every day of the period, oldest first.
|
|
73654
|
+
*/
|
|
73655
|
+
days?: Array<{
|
|
73656
|
+
day?: string;
|
|
73657
|
+
sent?: number;
|
|
73658
|
+
accepted?: number;
|
|
73659
|
+
}>;
|
|
73605
73660
|
}>;
|
|
73661
|
+
/**
|
|
73662
|
+
* 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.
|
|
73663
|
+
*/
|
|
73664
|
+
pixelMissed?: Array<{
|
|
73665
|
+
platform?: string;
|
|
73666
|
+
conversions?: number;
|
|
73667
|
+
missed?: number;
|
|
73668
|
+
}> | null;
|
|
73606
73669
|
});
|
|
73607
73670
|
type GetEventsOverviewDailyError = (ErrorResponse | {
|
|
73608
73671
|
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
|
-
*
|
|
73544
|
+
* Only events of this name, such as `Purchase`.
|
|
73545
73545
|
*/
|
|
73546
|
-
|
|
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
|
*/
|
|
@@ -73584,6 +73600,10 @@ type GetEventsOverviewDailyResponse = ({
|
|
|
73584
73600
|
* The period's events that count as campaign results, the ones looked up for a campaign.
|
|
73585
73601
|
*/
|
|
73586
73602
|
counted?: number;
|
|
73603
|
+
/**
|
|
73604
|
+
* Of the counted events, those that came from an ad: they named a campaign or carried a UTM campaign, a Google click id or a Zernio ad id (`zrn`), their own or the website visit's behind them. `matched` over `fromAds` is the share tied to a campaign.
|
|
73605
|
+
*/
|
|
73606
|
+
fromAds?: number;
|
|
73587
73607
|
};
|
|
73588
73608
|
/**
|
|
73589
73609
|
* Every day of the period, oldest first, zero where nothing happened.
|
|
@@ -73602,7 +73622,50 @@ type GetEventsOverviewDailyResponse = ({
|
|
|
73602
73622
|
* Those the platform accepted.
|
|
73603
73623
|
*/
|
|
73604
73624
|
accepted?: number;
|
|
73625
|
+
/**
|
|
73626
|
+
* The day's stored events per event name.
|
|
73627
|
+
*/
|
|
73628
|
+
byEvent?: {
|
|
73629
|
+
[key: string]: (number);
|
|
73630
|
+
};
|
|
73631
|
+
}>;
|
|
73632
|
+
/**
|
|
73633
|
+
* The event names stored in the period, most events first.
|
|
73634
|
+
*/
|
|
73635
|
+
eventNames?: Array<(string)>;
|
|
73636
|
+
/**
|
|
73637
|
+
* Each platform events were sent to in the period, most sends first.
|
|
73638
|
+
*/
|
|
73639
|
+
platforms?: Array<{
|
|
73640
|
+
/**
|
|
73641
|
+
* Such as `metaads` or `googleads`.
|
|
73642
|
+
*/
|
|
73643
|
+
platform?: string;
|
|
73644
|
+
/**
|
|
73645
|
+
* Events first sent to it in the period.
|
|
73646
|
+
*/
|
|
73647
|
+
sent?: number;
|
|
73648
|
+
/**
|
|
73649
|
+
* Those it accepted.
|
|
73650
|
+
*/
|
|
73651
|
+
accepted?: number;
|
|
73652
|
+
/**
|
|
73653
|
+
* Every day of the period, oldest first.
|
|
73654
|
+
*/
|
|
73655
|
+
days?: Array<{
|
|
73656
|
+
day?: string;
|
|
73657
|
+
sent?: number;
|
|
73658
|
+
accepted?: number;
|
|
73659
|
+
}>;
|
|
73605
73660
|
}>;
|
|
73661
|
+
/**
|
|
73662
|
+
* 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.
|
|
73663
|
+
*/
|
|
73664
|
+
pixelMissed?: Array<{
|
|
73665
|
+
platform?: string;
|
|
73666
|
+
conversions?: number;
|
|
73667
|
+
missed?: number;
|
|
73668
|
+
}> | null;
|
|
73606
73669
|
});
|
|
73607
73670
|
type GetEventsOverviewDailyError = (ErrorResponse | {
|
|
73608
73671
|
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.
|
|
39
|
+
version: "0.2.1719",
|
|
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.
|
|
8
|
+
version: "0.2.1719",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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
|
|
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
|
-
*
|
|
75328
|
+
* Only events of this name, such as `Purchase`.
|
|
75329
75329
|
*/
|
|
75330
|
-
|
|
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
|
*/
|
|
@@ -75369,6 +75385,10 @@ export type GetEventsOverviewDailyResponse = ({
|
|
|
75369
75385
|
* The period's events that count as campaign results, the ones looked up for a campaign.
|
|
75370
75386
|
*/
|
|
75371
75387
|
counted?: number;
|
|
75388
|
+
/**
|
|
75389
|
+
* Of the counted events, those that came from an ad: they named a campaign or carried a UTM campaign, a Google click id or a Zernio ad id (`zrn`), their own or the website visit's behind them. `matched` over `fromAds` is the share tied to a campaign.
|
|
75390
|
+
*/
|
|
75391
|
+
fromAds?: number;
|
|
75372
75392
|
};
|
|
75373
75393
|
/**
|
|
75374
75394
|
* Every day of the period, oldest first, zero where nothing happened.
|
|
@@ -75387,7 +75407,50 @@ export type GetEventsOverviewDailyResponse = ({
|
|
|
75387
75407
|
* Those the platform accepted.
|
|
75388
75408
|
*/
|
|
75389
75409
|
accepted?: number;
|
|
75410
|
+
/**
|
|
75411
|
+
* The day's stored events per event name.
|
|
75412
|
+
*/
|
|
75413
|
+
byEvent?: {
|
|
75414
|
+
[key: string]: (number);
|
|
75415
|
+
};
|
|
75416
|
+
}>;
|
|
75417
|
+
/**
|
|
75418
|
+
* The event names stored in the period, most events first.
|
|
75419
|
+
*/
|
|
75420
|
+
eventNames?: Array<(string)>;
|
|
75421
|
+
/**
|
|
75422
|
+
* Each platform events were sent to in the period, most sends first.
|
|
75423
|
+
*/
|
|
75424
|
+
platforms?: Array<{
|
|
75425
|
+
/**
|
|
75426
|
+
* Such as `metaads` or `googleads`.
|
|
75427
|
+
*/
|
|
75428
|
+
platform?: string;
|
|
75429
|
+
/**
|
|
75430
|
+
* Events first sent to it in the period.
|
|
75431
|
+
*/
|
|
75432
|
+
sent?: number;
|
|
75433
|
+
/**
|
|
75434
|
+
* Those it accepted.
|
|
75435
|
+
*/
|
|
75436
|
+
accepted?: number;
|
|
75437
|
+
/**
|
|
75438
|
+
* Every day of the period, oldest first.
|
|
75439
|
+
*/
|
|
75440
|
+
days?: Array<{
|
|
75441
|
+
day?: string;
|
|
75442
|
+
sent?: number;
|
|
75443
|
+
accepted?: number;
|
|
75444
|
+
}>;
|
|
75390
75445
|
}>;
|
|
75446
|
+
/**
|
|
75447
|
+
* 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.
|
|
75448
|
+
*/
|
|
75449
|
+
pixelMissed?: Array<{
|
|
75450
|
+
platform?: string;
|
|
75451
|
+
conversions?: number;
|
|
75452
|
+
missed?: number;
|
|
75453
|
+
}> | null;
|
|
75391
75454
|
});
|
|
75392
75455
|
|
|
75393
75456
|
export type GetEventsOverviewDailyError = (ErrorResponse | {
|