@getlatedev/node 0.2.1664 → 0.2.1665
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/README.md +2 -0
- package/dist/index.d.mts +128 -1
- package/dist/index.d.ts +128 -1
- package/dist/index.js +19 -1
- package/dist/index.mjs +19 -1
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/generated/sdk.gen.ts +30 -1
- package/src/generated/types.gen.ts +128 -0
|
@@ -19575,6 +19575,32 @@ export type type30 = 'CNAME';
|
|
|
19575
19575
|
*/
|
|
19576
19576
|
export type TrackingSiteConsentMode = 'eu_opt_in' | 'opt_in' | 'opt_out';
|
|
19577
19577
|
|
|
19578
|
+
/**
|
|
19579
|
+
* A tracking site's page views over a period, as approximate distinct counts.
|
|
19580
|
+
*/
|
|
19581
|
+
export type TrackingSitePeriodTotals = {
|
|
19582
|
+
/**
|
|
19583
|
+
* Page views without bots.
|
|
19584
|
+
*/
|
|
19585
|
+
visits?: number;
|
|
19586
|
+
/**
|
|
19587
|
+
* Page views from bots.
|
|
19588
|
+
*/
|
|
19589
|
+
bots?: number;
|
|
19590
|
+
/**
|
|
19591
|
+
* Page views with ad storage consent, at most `visits`.
|
|
19592
|
+
*/
|
|
19593
|
+
consented?: number;
|
|
19594
|
+
/**
|
|
19595
|
+
* Purchases recorded on the site.
|
|
19596
|
+
*/
|
|
19597
|
+
purchases?: number;
|
|
19598
|
+
/**
|
|
19599
|
+
* Purchases with ad consent for which no browser pixel fired, so only the server reported them.
|
|
19600
|
+
*/
|
|
19601
|
+
recovered?: number;
|
|
19602
|
+
};
|
|
19603
|
+
|
|
19578
19604
|
/**
|
|
19579
19605
|
* A platform measurement tag: the thing you create, install on a website, send events to, and target ads against. On Meta this is a Pixel (`kind: pixel`).
|
|
19580
19606
|
*
|
|
@@ -73556,6 +73582,14 @@ export type GetEventsOverviewResponse = ({
|
|
|
73556
73582
|
* The last day in the past 7 with a hit. `null` when none.
|
|
73557
73583
|
*/
|
|
73558
73584
|
lastActiveOn?: (string) | null;
|
|
73585
|
+
/**
|
|
73586
|
+
* The site's page views per period (`today`, `7d`, `30d`), each ending today (UTC).
|
|
73587
|
+
*/
|
|
73588
|
+
totals?: {
|
|
73589
|
+
today?: TrackingSitePeriodTotals;
|
|
73590
|
+
'7d'?: TrackingSitePeriodTotals;
|
|
73591
|
+
'30d'?: TrackingSitePeriodTotals;
|
|
73592
|
+
};
|
|
73559
73593
|
}>;
|
|
73560
73594
|
});
|
|
73561
73595
|
|
|
@@ -73563,6 +73597,100 @@ export type GetEventsOverviewError = (ErrorResponse | {
|
|
|
73563
73597
|
error?: string;
|
|
73564
73598
|
});
|
|
73565
73599
|
|
|
73600
|
+
export type GetEventsOverviewDailyData = {
|
|
73601
|
+
query?: {
|
|
73602
|
+
/**
|
|
73603
|
+
* The days to cover, each ending today (UTC): `today`, the last 7 days or the last 30 days.
|
|
73604
|
+
*/
|
|
73605
|
+
period?: 'today' | '7d' | '30d';
|
|
73606
|
+
/**
|
|
73607
|
+
* The profile to read. Omit to cover every profile you can access, summed across them.
|
|
73608
|
+
*/
|
|
73609
|
+
profileId?: string;
|
|
73610
|
+
};
|
|
73611
|
+
};
|
|
73612
|
+
|
|
73613
|
+
export type GetEventsOverviewDailyResponse = ({
|
|
73614
|
+
period?: 'today' | '7d' | '30d';
|
|
73615
|
+
/**
|
|
73616
|
+
* The period's figures, shaped like the overview's `today`.
|
|
73617
|
+
*/
|
|
73618
|
+
totals?: {
|
|
73619
|
+
/**
|
|
73620
|
+
* Stored events that occurred in the period, retracted ones excluded.
|
|
73621
|
+
*/
|
|
73622
|
+
conversions?: number;
|
|
73623
|
+
/**
|
|
73624
|
+
* Value of those events in `currency`. Events in other currencies are left out.
|
|
73625
|
+
*/
|
|
73626
|
+
value?: number;
|
|
73627
|
+
/**
|
|
73628
|
+
* The currency most of the period's events use; `null` when none carried a value.
|
|
73629
|
+
*/
|
|
73630
|
+
currency?: (string) | null;
|
|
73631
|
+
/**
|
|
73632
|
+
* Events first sent to a destination in the period, one per event and destination.
|
|
73633
|
+
*/
|
|
73634
|
+
sent?: number;
|
|
73635
|
+
/**
|
|
73636
|
+
* Those whose latest send the platform accepted.
|
|
73637
|
+
*/
|
|
73638
|
+
accepted?: number;
|
|
73639
|
+
/**
|
|
73640
|
+
* The period's events matched to an ad campaign.
|
|
73641
|
+
*/
|
|
73642
|
+
matched?: number;
|
|
73643
|
+
};
|
|
73644
|
+
/**
|
|
73645
|
+
* Every day of the period, oldest first, zero where nothing happened.
|
|
73646
|
+
*/
|
|
73647
|
+
days?: Array<{
|
|
73648
|
+
day?: string;
|
|
73649
|
+
/**
|
|
73650
|
+
* Stored events that occurred that day.
|
|
73651
|
+
*/
|
|
73652
|
+
conversions?: number;
|
|
73653
|
+
/**
|
|
73654
|
+
* Events first sent to a destination that day.
|
|
73655
|
+
*/
|
|
73656
|
+
sent?: number;
|
|
73657
|
+
/**
|
|
73658
|
+
* Those the platform accepted.
|
|
73659
|
+
*/
|
|
73660
|
+
accepted?: number;
|
|
73661
|
+
}>;
|
|
73662
|
+
});
|
|
73663
|
+
|
|
73664
|
+
export type GetEventsOverviewDailyError = (ErrorResponse | {
|
|
73665
|
+
error?: string;
|
|
73666
|
+
});
|
|
73667
|
+
|
|
73668
|
+
export type ListEventNamesData = {
|
|
73669
|
+
query?: {
|
|
73670
|
+
/**
|
|
73671
|
+
* The profile to read. Omit to cover every profile you can access.
|
|
73672
|
+
*/
|
|
73673
|
+
profileId?: string;
|
|
73674
|
+
};
|
|
73675
|
+
};
|
|
73676
|
+
|
|
73677
|
+
export type ListEventNamesResponse = ({
|
|
73678
|
+
names?: Array<{
|
|
73679
|
+
/**
|
|
73680
|
+
* Event name, such as `Purchase` or `demo_booked`.
|
|
73681
|
+
*/
|
|
73682
|
+
name?: string;
|
|
73683
|
+
/**
|
|
73684
|
+
* Events stored with this name in the last 30 days.
|
|
73685
|
+
*/
|
|
73686
|
+
events?: number;
|
|
73687
|
+
}>;
|
|
73688
|
+
});
|
|
73689
|
+
|
|
73690
|
+
export type ListEventNamesError = (ErrorResponse | {
|
|
73691
|
+
error?: string;
|
|
73692
|
+
});
|
|
73693
|
+
|
|
73566
73694
|
export type GetEventData = {
|
|
73567
73695
|
path: {
|
|
73568
73696
|
/**
|